:root {
  --bg: #0b0a0c;
  --fg: #f7f3f5;
  --muted: #a9a1a8;
  --pink: #ff2f93;
  --pink-rgb: 255, 47, 147;
  --melon: #ff5b79;
  --peach: #ffb9a8;
  --inner: rgba(16, 12, 16, 0.92);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { color: var(--fg); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
html.intro, html.intro body { overflow: hidden; }
a { color: inherit; text-decoration: none; }

.stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.bg { position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(900px 560px at 50% 62%, rgba(var(--pink-rgb), 0.12), transparent 65%), radial-gradient(700px 500px at 0% 0%, rgba(255, 91, 121, 0.07), transparent 60%), var(--bg); }
.bg-grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 20%, transparent 78%); }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
html:not(.intro) .fx { display: none; }

/* ---------- nav ---------- */
.nav { position: absolute; inset: 0 0 auto; z-index: 8; display: flex; align-items: center; justify-content: space-between; padding: 22px 6vw; transition: opacity 0.6s ease, transform 0.6s ease; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.08em; font-size: 15px; }
.nav-logo img { border-radius: 7px; box-shadow: 0 0 16px rgba(var(--pink-rgb), 0.45); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
.nav-links .nav-console { color: var(--fg); padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(var(--pink-rgb), 0.45); background: rgba(var(--pink-rgb), 0.08); }
.nav-links a:focus-visible, .nav-logo:focus-visible { outline: 2px solid var(--peach); outline-offset: 4px; border-radius: 6px; }

/* ---------- hero 终态布局：左字 / 中按钮 / 右玩偶 ---------- */
.hero { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "brand cta robot"; align-items: center; gap: 4vw; min-height: 100vh; min-height: 100svh; padding: 96px 6vw 72px; }
.brand { grid-area: brand; container-type: inline-size; }
.cta-slot { grid-area: cta; position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.robot-slot { grid-area: robot; display: flex; justify-content: center; align-items: flex-end; }

.wordmark { margin: 0; font-size: 7vw; font-size: clamp(46px, 25cqi, 176px); font-weight: 900; line-height: 1.04; letter-spacing: -0.04em; white-space: nowrap; filter: drop-shadow(0 0 26px rgba(var(--pink-rgb), 0.35)); }
#wordmarkText { background: linear-gradient(92deg, #fff1f7 0%, #ffd6e8 26%, #ff2f93 58%, #ff5b79 78%, #ffb9a8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w1, .w2 { color: transparent; }
.tagline { margin: 18px 0 0; color: var(--muted); font-size: clamp(15px, 1.35vw, 19px); letter-spacing: 0.08em; transition: opacity 0.6s ease, transform 0.6s ease; }

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cta { position: relative; isolation: isolate; display: inline-block; padding: 1.5px; border-radius: 999px;
  background: conic-gradient(from var(--ang), rgba(255,255,255,0.15) 0 60%, #fff 80%, rgba(255,255,255,0.15) 92%); animation: orbit 2.8s linear infinite; }
.cta::after { content: ""; position: absolute; inset: -8px; z-index: -1; border-radius: inherit; background: radial-gradient(closest-side, rgba(var(--pink-rgb), 0.55), transparent); filter: blur(10px); animation: breathe-glow 2.6s ease-in-out infinite; }
.cta-inner { display: flex; align-items: center; gap: 12px; padding: 18px 40px; border-radius: inherit; background: linear-gradient(135deg, #ff2f93, #ff5b79 70%, #ff8a8a); color: #fff;
  font-size: 18px; font-weight: 700; letter-spacing: 0.14em; white-space: nowrap; transition: filter 0.25s; }
.cta-arrow { transition: transform 0.25s; }
.cta:hover .cta-inner { filter: brightness(1.08); }
.cta:hover .cta-arrow { transform: translateX(5px); }
.cta:focus-visible { outline: 2px solid var(--peach); outline-offset: 8px; }
.cta-note { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: 0.06em; transition: opacity 0.6s ease; }
.cta-note b { color: var(--peach); }
@keyframes orbit { to { --ang: 360deg; } }
@keyframes breathe-glow { 50% { opacity: 0.55; transform: scale(1.06); } }
.cta-slot.pop .cta { animation: pop 0.65s cubic-bezier(0.2, 1.6, 0.4, 1) both, orbit 2.8s linear infinite; }
.cta-slot.pop::before { content: ""; position: absolute; left: 50%; top: 30px; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; border: 2px solid var(--pink); pointer-events: none; animation: ring 0.8s ease-out both; }
@keyframes pop { 0% { opacity: 0; transform: scale(0.3); filter: blur(10px); } 60% { opacity: 1; transform: scale(1.1); filter: blur(0); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ring { from { opacity: 0.9; transform: scale(0.4); } to { opacity: 0; transform: scale(4.2); } }

/* ---------- Claude 玩偶 ---------- */
.robot { position: relative; width: clamp(170px, 23vw, 330px); transform-origin: 50% 100%; }
.robot::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -5%; height: 9%; z-index: -1; background: radial-gradient(closest-side, rgba(var(--pink-rgb), 0.45), transparent); filter: blur(4px); }
.robot-svg { display: block; width: 100%; height: auto; overflow: visible; transform-origin: 50% 100%; }
.r-body rect { fill: #d97757; } .r-body .r-shade { fill: #b65c3f; } .r-body .r-light { fill: #ec9677; }
.r-body .r-blush { fill: #ff8fb4; opacity: 0.75; }
.r-legs rect { fill: #c4664a; } .r-body .r-eye { fill: #1c0f0b; }
.r-eye, .r-arm { transform-box: fill-box; transform-origin: 50% 50%; }
.r-eyes { transition: transform 0.15s ease-out; }
.robot.idle .robot-svg { animation: bob 3.4s ease-in-out infinite; }
.robot.idle .r-eye { animation: blink 4.2s infinite; }
.robot.idle { cursor: pointer; }
.robot.land .robot-svg { animation: land 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }
.robot.wave .r-arm-r { transform-origin: 0 50%; animation: wave 0.32s ease-in-out 4 alternate; }
.robot.boing .robot-svg { animation: boing 0.7s cubic-bezier(0.3, 1.4, 0.5, 1); }
@keyframes bob { 50% { transform: translateY(-4%); } }
@keyframes blink { 0%, 92%, 100% { transform: none; } 95% { transform: scaleY(0.1); } }
@keyframes land { 0% { transform: scale(1.22, 0.74); } 55% { transform: scale(0.94, 1.07); } 100% { transform: none; } }
@keyframes wave { to { transform: translateY(-1.4px) rotate(-30deg); } }
@keyframes boing { 30% { transform: translateY(-22%) rotate(-8deg); } 60% { transform: scale(1.1, 0.88); } }

/* ---------- 大盒子 ---------- */
.bigbox { display: none; position: absolute; left: 50%; top: 52%; z-index: 4; width: clamp(200px, 26vw, 340px); aspect-ratio: 1 / 0.86; transform: translate(-50%, -50%); }
html.intro .bigbox { display: block; }
.bigbox > * { position: absolute; }
.bb-core { left: 8%; right: 8%; top: 10%; bottom: 12%; border-radius: 10px; background: radial-gradient(closest-side, #fff, rgba(255, 220, 236, 0.9) 30%, rgba(var(--pink-rgb), 0.8) 60%, transparent); opacity: 0; transition: opacity 0.15s; }
.bb-front { left: 0; right: 0; top: 18%; bottom: 0; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, #2a1622, #1a0f16); border: 2px solid rgba(var(--pink-rgb), 0.85);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset, 0 0 40px rgba(var(--pink-rgb), 0.35), 0 30px 60px rgba(0,0,0,0.55); }
.bb-front::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 14%; transform: translateX(-50%); background: repeating-linear-gradient(180deg, rgba(var(--pink-rgb), 0.55) 0 6px, rgba(var(--pink-rgb), 0.3) 6px 12px); }
.bb-q { position: absolute; width: 50%; height: 50%; border: 1px dashed rgba(255, 185, 168, 0.18); }
.bb-q:nth-child(1) { left: 0; top: 0; } .bb-q:nth-child(2) { right: 0; top: 0; } .bb-q:nth-child(3) { left: 0; bottom: 0; } .bb-q:nth-child(4) { right: 0; bottom: 0; }
.bb-mark { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%) rotate(-6deg); padding: 6px 12px; border: 2px solid rgba(255, 185, 168, 0.75); border-radius: 6px;
  font-weight: 900; font-size: clamp(16px, 2vw, 26px); letter-spacing: 0.06em; color: var(--peach); background: rgba(16, 10, 14, 0.75); white-space: nowrap; }
.bb-mark b { color: var(--pink); margin-left: 4px; }
.bb-care { position: absolute; left: 8px; bottom: 6px; font: 600 10px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.12em; color: rgba(255, 185, 168, 0.45); }
.bb-lid { top: 0; height: 22%; width: 50%; background: linear-gradient(180deg, #3a1e2e, #2a1622); border: 2px solid rgba(var(--pink-rgb), 0.85); }
.bb-lid-l { left: 0; border-radius: 10px 0 0 4px; transform-origin: 0 100%; }
.bb-lid-r { right: 0; border-radius: 0 10px 4px 0; transform-origin: 100% 100%; }

.bigbox.charge .bb-front { animation: shake 0.09s linear infinite; }
.bigbox.charge .bb-core { opacity: 0.6; }
.bigbox.charge .bb-lid-l { animation: lidL 0.14s ease-in-out infinite alternate; }
.bigbox.charge .bb-lid-r { animation: lidR 0.14s ease-in-out infinite alternate; }
@keyframes shake { 0% { transform: translate(0, 0); } 25% { transform: translate(-2px, 1px); } 50% { transform: translate(2px, -1px); } 75% { transform: translate(-1px, -1px); } 100% { transform: translate(1px, 1px); } }
@keyframes lidL { to { transform: rotate(-12deg); } }
@keyframes lidR { to { transform: rotate(12deg); } }
.bigbox.boom .bb-front { background: transparent; border-color: transparent; box-shadow: none; }
.bigbox.boom .bb-front::before, .bigbox.boom .bb-care { display: none; }
.bigbox.gone { visibility: hidden; }

/* ---------- 开场初始态 ---------- */
html.intro:not(.staged) .robot, html.intro:not(.staged) .bigbox { visibility: hidden; }
html.intro .wordmark:not(.in), html.intro .cta-slot:not(.in), html.intro .cta-note:not(.in) { opacity: 0; }
html.intro .tagline:not(.in) { opacity: 0; transform: translateY(14px); }
html.intro .nav:not(.in) { opacity: 0; transform: translateY(-12px); }
html.intro .cta-slot:not(.in) { pointer-events: none; }
html.intro .robot:not(.out) { visibility: hidden; }
.wordmark { transition: opacity 0.4s ease; }

/* ---------- 微信客服 ---------- */
.nav-wx { font: inherit; font-size: 15px; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; transition: color 0.2s; }
.nav-wx:hover { color: var(--fg); }
.nav-wx::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 8px #3ee08f; vertical-align: 1px; }
.wx { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 6px 6px 6px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(var(--pink-rgb), 0.3); transition: opacity 0.6s ease; }
.wx-l { font-size: 13px; color: var(--muted); }
.wx-id { font-size: 16px; font-weight: 700; letter-spacing: 0.06em; color: var(--fg); }
.wx button, .wxd-id button { font: inherit; font-size: 13px; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.wx-copy, .wxd-id button { background: var(--pink); color: #fff; font-weight: 600; transition: background 0.2s; }
.wx-copy:hover, .wxd-id button:hover { background: #ff4fa3; }
.wx-copy.ok, .wxd-id button.ok { background: #2fbf74; }
.wx-how { background: transparent; color: var(--peach); padding-left: 4px !important; }
.wx-how:hover { color: #fff; }
.nav-wx:focus-visible, .wx button:focus-visible, .wxd button:focus-visible, .wxd-open:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; }
html.intro .wx:not(.in) { opacity: 0; pointer-events: none; }

.wxd { width: min(400px, calc(100vw - 32px)); padding: 28px 26px 22px; border-radius: 22px; border: 1px solid rgba(var(--pink-rgb), 0.35);
  background: linear-gradient(180deg, #1c1219, #120d11); color: var(--fg); box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(var(--pink-rgb), 0.15); }
.wxd::backdrop { background: rgba(5, 4, 6, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.wxd[open] { animation: wxd-in 0.28s cubic-bezier(.2,.9,.3,1.2); }
@keyframes wxd-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
.wxd form { position: absolute; right: 12px; top: 10px; margin: 0; }
.wxd-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.wxd-x:hover { color: var(--fg); background: rgba(255,255,255,0.06); }
.wxd h2 { margin: 0 0 18px; font-size: 20px; }
.wxd-id { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.wxd-id span { font-size: 13px; color: var(--muted); }
.wxd-id b { flex: 1; font-size: 22px; letter-spacing: 0.06em; }
.wxd-steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.wxd-steps li { position: relative; padding-left: 34px; font-size: 14.5px; line-height: 1.55; color: #d8cfd5; counter-increment: s; }
.wxd-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; background: rgba(var(--pink-rgb), 0.85); }
.wxd-steps b { color: var(--fg); }
.wxd-open { display: none; margin-top: 20px; min-height: 48px; border-radius: 14px; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ff2f93, #ff5b79); }
.wxd-tip { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.wxd-tip b { color: var(--peach); }
.toast { position: fixed; left: 50%; bottom: 70px; z-index: 50; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 999px; font-size: 14px;
  background: rgba(30, 22, 28, 0.95); border: 1px solid rgba(var(--pink-rgb), 0.4); color: var(--fg); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (pointer: coarse) { .wxd-open { display: flex; } }

/* ---------- skip + preview ---------- */
/* 开场期间的直达入口：一开场就在，点了直接走，不用等动画 */
.quick { display: none; position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 12; transform: translateX(-50%);
  align-items: center; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 999px; white-space: nowrap;
  background: rgba(20, 14, 18, 0.82); border: 1px solid rgba(var(--pink-rgb), 0.35); box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: quick-in 0.5s 0.15s cubic-bezier(.2,.9,.3,1.2) both; }
html.intro .quick { display: flex; }
@keyframes quick-in { from { opacity: 0; transform: translate(-50%, 16px); } }
.q-l { font-size: 13px; color: var(--muted); margin-right: 4px; }
.quick a, .quick button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border: 0; transition: background 0.2s, color 0.2s; }
.q-reg { background: linear-gradient(135deg, #ff2f93, #ff5b79); color: #fff; }
.q-reg:hover { filter: brightness(1.08); }
.q-in { background: rgba(255,255,255,0.08); color: var(--fg); }
.q-in:hover { background: rgba(255,255,255,0.14); }
.q-skip { background: transparent; color: var(--muted); font-weight: 500 !important; }
.q-skip:hover { color: var(--fg); }
.quick a:focus-visible, .quick button:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "robot" "cta"; justify-items: center; align-content: center; gap: 34px; padding: 92px 24px 84px; text-align: center; }
  .brand { width: 100%; }
  .wordmark { font-size: clamp(54px, 21cqi, 120px); }
  .robot { width: clamp(130px, 36vw, 200px); }
  .nav { padding: 18px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-console) { display: none; }
  .nav-wx { font-size: 14px; }
  .wx { flex-wrap: wrap; justify-content: center; border-radius: 18px; padding: 8px 10px 8px 14px; }
  .bigbox { width: clamp(180px, 56vw, 260px); top: 50%; }
  .quick { padding: 5px; gap: 4px; }
  .q-l { display: none; }
  .quick a, .quick button { padding: 0 13px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
