/* Tokling 官网样式。主题色由 app.js 写到 --eye / --eye-rgb 上，整页跟着宠物换色。 */
:root {
  --eye: #2ce8ff;
  --eye-rgb: 44, 232, 255;
  --gold: #ffd23f;
  --warn: #ff5a6e;
  --ok: #3dff9a;
  --bg: #04070d;
  --panel: #0a101b;
  --line: rgba(160, 200, 255, 0.12);
  --text: #e9f1fb;
  --mute: #8b9bb3;
  --display: "Chakra Petch", "Avenir Next", "Segoe UI", system-ui, "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, system-ui, "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg); color: var(--text); font-family: var(--body);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; text-wrap: balance; }
.gold { color: var(--gold); }
.ok { color: var(--ok); }
.mono { font-family: var(--mono); }

/* ---------- 背景 ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(var(--eye-rgb), 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--eye-rgb), 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 85%);
}
.bg-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 420px at 72% 18%, rgba(var(--eye-rgb), 0.16), transparent 70%),
    radial-gradient(500px 400px at 8% 60%, rgba(var(--eye-rgb), 0.06), transparent 70%);
  transition: background 0.6s;
}
.bg-scan {
  position: absolute; left: 0; right: 0; height: 140px; top: -140px;
  background: linear-gradient(transparent, rgba(var(--eye-rgb), 0.05), transparent);
  animation: scan 9s linear infinite;
}
@keyframes scan { to { transform: translateY(calc(100vh + 280px)); } }

/* ---------- 小眼睛图形（多处复用） ---------- */
.eyes { display: inline-flex; gap: 0.28em; align-items: center; }
.eyes i, .brand-eyes i {
  display: block; width: 0.36em; height: 0.66em; border-radius: 0.18em;
  background: var(--eye); box-shadow: 0 0 0.5em rgba(var(--eye-rgb), 0.9);
  animation: blink 5s infinite;
}
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(4, 7, 13, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.02em; }
.brand-eyes { display: inline-flex; gap: 5px; padding: 7px 8px; border-radius: 9px; background: #070b13; border: 1px solid rgba(var(--eye-rgb), 0.5); font-size: 16px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; font-size: 15px; color: var(--mute); }
.nav-links a:hover { color: var(--eye); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--mute); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; }
.lang select { background: transparent; color: var(--text); border: 0; font: inherit; outline: none; cursor: pointer; }
.lang select option { background: #0a101b; color: #e9f1fb; }
.lang-ico { color: var(--eye); }
.gh { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; color: var(--mute); transition: color 0.2s, border-color 0.2s; }
.gh:hover { color: var(--eye); border-color: var(--eye); }
.gh svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 10px; font-family: var(--display); font-weight: 600; font-size: 16px;
  background: var(--eye); color: #03121a; border: 1px solid var(--eye); white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(var(--eye-rgb), 0.5), 0 8px 30px -8px rgba(var(--eye-rgb), 0.7);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(var(--eye-rgb), 0.18), 0 12px 34px -8px rgba(var(--eye-rgb), 0.9); }
.btn:focus-visible, .chip:focus-visible, .mood:focus-visible { outline: 2px solid var(--eye); outline-offset: 3px; }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--eye); color: var(--eye); }
.btn .arr { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
.btn.off { background: transparent; color: var(--mute); border: 1px dashed var(--line); box-shadow: none; cursor: default; pointer-events: none; }

/* ---------- 首屏 ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 3.5vw, 56px); align-items: center; min-height: calc(100vh - 70px); padding: 48px 0 72px; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--eye); display: flex; align-items: center; gap: 10px; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
h1 { font-size: clamp(36px, 4.3vw, 60px); margin: 20px 0 22px; letter-spacing: -0.01em; }
h1 em { font-style: normal; color: var(--eye); text-shadow: 0 0 34px rgba(var(--eye-rgb), 0.55); display: block; }
.lead { color: var(--mute); font-size: clamp(16px, 1.4vw, 18.5px); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.free-line { font-family: var(--mono); font-size: 13px; color: var(--ok); margin: -8px 0 16px; letter-spacing: 0.04em; }
.plat { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.plat li { border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; }

.hero-stage { position: relative; }
.hint { text-align: center; margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--mute); }

/* 手机：内部尺寸全部用容器宽度的百分比（cqw），整体等比缩放 */
.phone {
  position: relative; aspect-ratio: 874 / 410; padding: 1.3%; border-radius: 7.2% / 15.4%;
  background: linear-gradient(145deg, #2a313d, #0c1016 40%, #1c222c);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 90px -30px rgba(var(--eye-rgb), 0.45), 0 30px 60px -20px #000;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.hero-stage:hover .phone { transform: perspective(1400px) rotateY(0) rotateX(0); }
.screen {
  container-type: inline-size; position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 6% / 13%; display: grid; grid-template-columns: 45% 55%;
  background:
    linear-gradient(rgba(var(--eye-rgb), 0.05) 1px, transparent 1px) 0 0 / 5cqw 5cqw,
    linear-gradient(90deg, rgba(var(--eye-rgb), 0.05) 1px, transparent 1px) 0 0 / 5cqw 5cqw,
    radial-gradient(60% 90% at 25% 50%, rgba(var(--eye-rgb), 0.13), transparent 70%), #05080f;
}
.p-island { position: absolute; left: 1.6cqw; top: 50%; width: 3.6cqw; height: 13cqw; margin-top: -6.5cqw; border-radius: 2cqw; background: #000; z-index: 3; }
.p-left { position: relative; }
.pet-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: manipulation; cursor: pointer; }
.p-left .pet-canvas { inset: 9cqw auto auto 6cqw; width: calc(100% - 9cqw); height: calc(100% - 17cqw); }
.hud { position: absolute; font-family: var(--mono); font-size: 1.32cqw; line-height: 1.6; letter-spacing: 0.06em; color: rgba(var(--eye-rgb), 0.75); z-index: 2; white-space: nowrap; }
.hud b { color: var(--text); font-weight: 500; }
.hud.tl { left: 8cqw; top: 3cqw; padding: 0.4cqw 0 0 1cqw; border-left: 1px solid rgba(var(--eye-rgb), 0.6); border-top: 1px solid rgba(var(--eye-rgb), 0.6); }
.hud.tr { right: 2cqw; top: 3cqw; padding: 0.4cqw 1cqw 0 0; text-align: right; border-right: 1px solid rgba(var(--eye-rgb), 0.6); border-top: 1px solid rgba(var(--eye-rgb), 0.6); }
.hud.bl { left: 8cqw; bottom: 3cqw; padding: 0 0 0.4cqw 1cqw; border-left: 1px solid rgba(var(--eye-rgb), 0.6); border-bottom: 1px solid rgba(var(--eye-rgb), 0.6); }
.hud.br { right: 2cqw; bottom: 3cqw; padding: 0 1cqw 0.4cqw 0; border-right: 1px solid rgba(var(--eye-rgb), 0.6); border-bottom: 1px solid rgba(var(--eye-rgb), 0.6); }
.caret { display: inline-block; width: 0.7cqw; height: 1.4cqw; background: var(--eye); margin-left: 0.3cqw; vertical-align: -0.2cqw; animation: pulse 1s steps(1) infinite; }
.scope { position: absolute; left: 8cqw; right: 2cqw; bottom: 6cqw; height: 3.4cqw; width: auto; z-index: 1; }
.scope path { fill: none; stroke: var(--eye); stroke-width: 1.2; opacity: 0.8; vector-effect: non-scaling-stroke; }

.p-right { padding: 3.2cqw 4.5cqw 2.4cqw 1.5cqw; display: flex; flex-direction: column; gap: 1.6cqw; min-width: 0; }
.p-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1cqw; }
.p-label { font-size: 1.7cqw; color: #a9b6c9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34cqw; }
.p-saved { font-family: var(--display); font-weight: 700; font-size: 7.4cqw; line-height: 1; color: var(--gold); text-shadow: 0 0 3cqw rgba(255, 210, 63, 0.45); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.p-math { font-family: var(--mono); font-size: 1.35cqw; color: #8b9bb3; text-align: right; line-height: 1.6; white-space: nowrap; }
.p-card { flex: 1; border-radius: 2.6cqw; padding: 1.8cqw 2.2cqw 1.4cqw; background: linear-gradient(160deg, rgba(20, 30, 48, 0.9), rgba(8, 13, 24, 0.9)); border: 1px solid rgba(var(--eye-rgb), 0.28); box-shadow: 0 0 4cqw -1cqw rgba(var(--eye-rgb), 0.35); min-height: 0; display: flex; flex-direction: column; }
.p-card-h { display: flex; align-items: center; gap: 1cqw; font-size: 1.5cqw; color: #8b9bb3; }
.p-card-h > b { font-family: var(--display); font-size: 2.6cqw; color: #fff; }
.p-card-h .tag { border: 1px solid var(--eye); color: var(--eye); border-radius: 2cqw; padding: 0 1cqw; font-size: 1.4cqw; font-weight: 600; }
.p-card-h .r { margin-left: auto; font-family: var(--mono); white-space: nowrap; }
.rings { flex: 1; display: flex; justify-content: space-around; align-items: center; min-height: 0; }
.ring-box { position: relative; width: 14cqw; text-align: center; }
.ring { width: 100%; display: block; transform: rotate(-90deg); overflow: visible; }
.ring .trk { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 9; }
.ring .val { fill: none; stroke: var(--eye); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 251.3; stroke-dashoffset: 251.3; filter: drop-shadow(0 0 4px rgba(var(--eye-rgb), 0.8)); transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1), stroke 0.4s; }
.ring .tick { stroke: #fff; stroke-width: 3; stroke-linecap: round; transform-origin: 50px 50px; transition: transform 1.2s; }
.ring.warn .val { stroke: var(--warn); filter: drop-shadow(0 0 4px rgba(255, 90, 110, 0.8)); }
.ring-num { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.ring-num b { font-family: var(--display); font-size: 4.2cqw; font-variant-numeric: tabular-nums; }
.ring-num span { font-size: 1.2cqw; color: #8b9bb3; }
.ring-cap { font-size: 1.5cqw; font-weight: 600; margin-top: 0.3cqw; white-space: nowrap; }
.p-bar { display: flex; align-items: center; gap: 0.8cqw; font-size: 1.4cqw; color: #8b9bb3; }
.p-bar .dots { margin-left: auto; display: flex; gap: 0.7cqw; }
.p-bar .dots i { width: 0.8cqw; height: 0.8cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.2); transition: all 0.3s; }
.p-bar .dots i.on { width: 2.4cqw; background: var(--eye); }

/* ---------- 通用区块 ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 780px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 46px); margin: 14px 0 16px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 省钱账本 ---------- */
.ledger { max-width: 860px; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 38px); background: linear-gradient(170deg, rgba(14, 21, 35, 0.9), rgba(6, 10, 18, 0.9)); font-family: var(--mono); position: relative; overflow: hidden; }
.ledger::before { content: "LEDGER / 30D"; position: absolute; right: 18px; top: 14px; font-size: 11px; letter-spacing: 0.14em; color: rgba(var(--eye-rgb), 0.5); }
.ledger-row { display: flex; align-items: baseline; gap: 12px; font-size: clamp(16px, 2vw, 22px); padding: 8px 0; }
.ledger-row.dim { color: var(--mute); }
.ledger-row .lab { font-family: var(--body); }
.leader { flex: 1; border-bottom: 1px dashed rgba(255, 255, 255, 0.16); transform: translateY(-4px); }
.ledger-row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.ledger-total { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-top: 18px; padding-top: 22px; border-top: 1px solid rgba(var(--eye-rgb), 0.35); }
.ledger-total .lab { font-family: var(--body); font-size: 14px; color: var(--mute); }
.big { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 8vw, 92px); line-height: 1; font-variant-numeric: tabular-nums; }
.big.gold { text-shadow: 0 0 44px rgba(255, 210, 63, 0.4); }
.mult { text-align: right; }
.mult .big { font-size: clamp(30px, 4.6vw, 54px); color: var(--eye); }
.ledger-bars { display: grid; gap: 10px; margin-top: 28px; }
.lbar { display: grid; grid-template-columns: 120px 1fr 86px; align-items: center; gap: 12px; font-size: 13px; color: var(--mute); }
.lbar .track { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.lbar .fill { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, rgba(var(--eye-rgb), 0.5), var(--eye)); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.lbar .amt { text-align: right; color: var(--text); }
.note { margin-top: 22px; font-family: var(--body); font-size: 13px; color: var(--mute); }

/* ---------- 回本称号 ---------- */
.tiers { margin-top: 26px; padding-top: 20px; border-top: 1px dashed rgba(255, 255, 255, 0.12); }
.tiers-h { display: block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.tiers ol { display: flex; flex-wrap: wrap; gap: 8px; }
.tiers li { display: flex; flex-direction: column; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; line-height: 1.3; color: var(--mute); }
.tiers li b { font-family: var(--body); font-weight: 600; font-size: 13.5px; }
.tiers li small { font-size: 11px; opacity: 0.8; }
.tiers li.past { color: #c5d2e3; border-color: rgba(var(--eye-rgb), 0.3); }
.tiers li.on { color: var(--gold); border-color: var(--gold); background: rgba(255, 210, 63, 0.08); box-shadow: 0 0 22px -8px rgba(255, 210, 63, 0.8); }

/* ---------- 遥控 ---------- */
.a-approve, .a-chat, .a-resume { width: 86%; max-width: 280px; border-radius: 14px; background: #0c121d; border: 1px solid var(--line); padding: 12px 14px; font-size: 12px; display: grid; gap: 9px; }
.ap-h { display: flex; align-items: center; gap: 8px; } .ap-h .eyes { font-size: 13px; } .ap-h b { font-family: var(--display); font-size: 14px; } .ap-h small { margin-left: auto; color: var(--warn); font-size: 11px; }
.a-approve code { font-family: var(--mono); font-size: 11.5px; color: var(--text); background: #05080f; border: 1px solid rgba(var(--eye-rgb), 0.25); border-radius: 7px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .ap-btns span { text-align: center; padding: 6px 0; border-radius: 8px; font-weight: 600; }
.ap-btns .no { border: 1px solid var(--line); color: var(--mute); } .ap-btns .yes { background: var(--eye); color: #03121a; box-shadow: 0 6px 18px -6px rgba(var(--eye-rgb), 0.9); }
.a-chat .tools { display: flex; gap: 5px; flex-wrap: wrap; } .a-chat .tools span { font-size: 10.5px; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--line); color: var(--mute); }
.a-chat .tools .on { border-color: var(--eye); color: var(--eye); background: rgba(var(--eye-rgb), 0.08); }
.a-chat .cfg { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--mute); }
.a-chat .bub { justify-self: end; max-width: 92%; background: rgba(var(--eye-rgb), 0.16); border: 1px solid rgba(var(--eye-rgb), 0.35); border-radius: 12px 12px 3px 12px; padding: 6px 10px; color: var(--text); }
.a-chat .caret { width: 6px; height: 12px; margin-left: 3px; vertical-align: -2px; }
.a-resume { gap: 6px; padding: 10px; }
.rs { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--mute); }
.rs i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; } .rs span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rs small { font-family: var(--mono); font-size: 10px; }
.rs.on { background: rgba(var(--eye-rgb), 0.08); border: 1px solid rgba(var(--eye-rgb), 0.45); color: var(--text); } .rs.on i { background: var(--eye); box-shadow: 0 0 8px var(--eye); } .rs.on b { color: var(--eye); font-size: 11px; white-space: nowrap; }

/* ---------- 会话提醒 ---------- */
.sess-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) 70px minmax(0, 1fr); align-items: center; }
.term { border: 1px solid var(--line); border-radius: 14px; background: #070b13; overflow: hidden; font-family: var(--mono); font-size: 14px; box-shadow: 0 30px 60px -30px #000; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #0b111c; color: var(--mute); font-size: 12px; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3342; }
.term-bar span { margin-left: 10px; }
.term-body { padding: 16px; display: grid; gap: 10px; min-height: 230px; align-content: start; }
.row { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 9px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.025); transition: all 0.35s; }
.row .who { color: var(--eye); }
.row .task { color: #c5d2e3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .st { font-size: 12px; padding: 2px 9px; border-radius: 20px; border: 1px solid currentColor; white-space: nowrap; font-family: var(--body); }
.row[data-s="work"] .st { color: var(--eye); }
.row[data-s="work"] .st::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; animation: pulse 0.9s infinite; }
.row[data-s="need"] { border-color: var(--gold); background: rgba(255, 210, 63, 0.07); }
.row[data-s="need"] .st { color: #05080f; background: var(--gold); border-color: var(--gold); animation: pulse 0.7s steps(1) infinite; }
.row[data-s="done"] .st { color: var(--ok); }
.row[data-s="done"] .task { color: var(--mute); }
.term-log { color: var(--mute); font-size: 12.5px; padding: 6px 2px 0; min-height: 20px; }
.term-log::before { content: "› "; color: var(--eye); }
.wire { height: 2px; background: repeating-linear-gradient(90deg, rgba(var(--eye-rgb), 0.5) 0 6px, transparent 6px 12px); position: relative; }
.wire span { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--eye); box-shadow: 0 0 12px var(--eye); animation: packet 1.6s linear infinite; }
@keyframes packet { to { left: calc(100% - 8px); } }
.sess-devices { display: flex; align-items: center; justify-content: center; gap: 22px; }
.mini-phone { position: relative; width: min(100%, 250px); aspect-ratio: 9 / 13; border-radius: 34px; border: 2px solid #232a36; background: linear-gradient(180deg, #0a0f19, #05080f); padding: 12px; overflow: hidden; }
.mini-island { margin: 0 auto; height: 30px; min-width: 92px; width: fit-content; max-width: 100%; padding: 0 12px; border-radius: 16px; background: #000; display: flex; align-items: center; gap: 10px; font-size: 12px; font-family: var(--mono); border: 1px solid transparent; transition: all 0.45s cubic-bezier(.2,.9,.2,1.2); white-space: nowrap; }
.mini-island .eyes { font-size: 15px; }
.mini-island[data-s="need"] { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 22px rgba(255, 210, 63, 0.4); }
.mini-island[data-s="done"] { border-color: var(--ok); color: var(--ok); }
.notif { position: absolute; left: 12px; right: 12px; top: 58px; display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 16px; background: rgba(28, 36, 50, 0.92); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.4; transform: translateY(-16px); opacity: 0; transition: all 0.45s cubic-bezier(.2,.9,.2,1.2); }
.notif.on { transform: none; opacity: 1; }
.notif .eyes { font-size: 18px; padding: 8px 7px; border-radius: 9px; background: #05080f; flex: none; }
.notif b { display: block; font-size: 12px; color: var(--mute); font-weight: 500; }
.lock-clock { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font-family: var(--display); font-weight: 600; font-size: 54px; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.1); }
.watch { position: relative; flex: none; width: 124px; aspect-ratio: 0.84; border-radius: 34px; background: linear-gradient(150deg, #2c333f, #0d1118); padding: 9px; box-shadow: 0 20px 40px -16px #000; }
.watch::before, .watch::after { content: ""; position: absolute; left: 22%; right: 22%; height: 34px; background: #11161f; z-index: -1; }
.watch::before { top: -28px; border-radius: 10px 10px 0 0; } .watch::after { bottom: -28px; border-radius: 0 0 10px 10px; }
.watch-crown { position: absolute; right: -5px; top: 30%; width: 6px; height: 22px; border-radius: 3px; background: #3a4352; }
.watch-screen { position: relative; width: 100%; height: 100%; border-radius: 26px; background: #000; overflow: hidden; }
.watch-screen .pet-canvas { height: 72%; }
.watch-txt { position: absolute; left: 4px; right: 4px; bottom: 9px; text-align: center; font-size: 10.5px; line-height: 1.25; color: var(--mute); }
.watch-txt[data-s="need"] { color: var(--gold); } .watch-txt[data-s="done"] { color: var(--ok); }
.bullets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; color: var(--mute); font-size: 15px; }
.bullets li { padding-left: 18px; border-left: 2px solid rgba(var(--eye-rgb), 0.5); }

/* ---------- 宠物实验台 ---------- */
.lab-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.lab-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; background: radial-gradient(60% 60% at 50% 50%, rgba(var(--eye-rgb), 0.12), transparent 70%), #05080f; border: 1px solid var(--line); overflow: hidden; }
.corner { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(var(--eye-rgb), 0.7); pointer-events: none; z-index: 2; }
.c1 { left: 14px; top: 14px; border-left-width: 2px; border-top-width: 2px; } .c2 { right: 14px; top: 14px; border-right-width: 2px; border-top-width: 2px; }
.c3 { left: 14px; bottom: 14px; border-left-width: 2px; border-bottom-width: 2px; } .c4 { right: 14px; bottom: 14px; border-right-width: 2px; border-bottom-width: 2px; }
.lab-read { position: absolute; left: 26px; right: 26px; bottom: 22px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: rgba(var(--eye-rgb), 0.8); pointer-events: none; }
.lab-read span::before { content: "▸ "; }
.ctl + .ctl { margin-top: 26px; }
.ctl h3 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { font: inherit; font-size: 14px; color: var(--text); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 9px; padding: 8px 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.chip:hover { border-color: rgba(var(--eye-rgb), 0.6); }
.chip.on { border-color: var(--eye); background: rgba(var(--eye-rgb), 0.12); color: var(--eye); }
.chip sup { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--gold); margin-left: -2px; }
.chip .sw { width: 12px; height: 12px; border-radius: 4px; box-shadow: 0 0 8px currentColor; }
.moods { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.mood { font: inherit; color: var(--mute); background: #070b13; border: 1px solid var(--line); border-radius: 10px; padding: 6px 2px 6px; cursor: pointer; font-size: 11.5px; line-height: 1.3; transition: all 0.2s; min-width: 0; overflow: hidden; }
.mood canvas { display: block; width: 100%; aspect-ratio: 16 / 9; }
.mood span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.mood:hover, .mood.on { border-color: var(--eye); color: var(--eye); transform: translateY(-2px); }
.gestures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.gest { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: rgba(255, 255, 255, 0.02); }
.gest b { display: block; font-family: var(--mono); font-size: 13px; color: var(--eye); font-weight: 500; margin-bottom: 2px; }
.gest span { color: var(--mute); font-size: 14.5px; }

/* ---------- 生态卡片 ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: linear-gradient(170deg, rgba(14, 21, 35, 0.75), rgba(6, 10, 18, 0.75)); transition: border-color 0.25s, transform 0.25s; }
.card:hover { border-color: rgba(var(--eye-rgb), 0.55); transform: translateY(-4px); }
.card h3 { font-size: 19px; margin: 18px 0 6px; }
.card p { color: var(--mute); font-size: 14.5px; }
.art { height: 150px; border-radius: 12px; background: #05080f; display: grid; place-items: center; overflow: hidden; background-image: radial-gradient(rgba(var(--eye-rgb), 0.14) 1px, transparent 1px); background-size: 14px 14px; }
.a-watch { width: 92px; height: 108px; border-radius: 28px; background: linear-gradient(150deg, #2c333f, #0d1118); padding: 7px; }
.a-watch-s { position: relative; width: 100%; height: 100%; border-radius: 22px; background: #000; display: grid; place-items: center; padding: 10px; }
.a-watch-s b { position: absolute; font-family: var(--display); font-size: 17px; }
.a-island { display: flex; align-items: center; gap: 44px; padding: 10px 18px; border-radius: 30px; background: #000; border: 1px solid #1c2330; font-family: var(--display); font-size: 17px; color: var(--eye); }
.a-island .eyes { font-size: 22px; }
.a-widgets { display: flex; gap: 12px; }
.wd { width: 82px; height: 82px; border-radius: 20px; background: #0c121d; border: 1px solid var(--line); padding: 14px; display: grid; place-items: center; }
.wd.wide { width: 128px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 12px 14px; font-family: var(--mono); }
.wd small { font-size: 10px; color: var(--mute); letter-spacing: 0.12em; } .wd b { font-family: var(--display); font-size: 24px; line-height: 1.2; }
.a-share { width: 100px; height: 128px; border-radius: 12px; background: linear-gradient(170deg, #121a2b, #070b13); border: 1px solid rgba(var(--eye-rgb), 0.4); padding: 12px 11px; display: flex; flex-direction: column; gap: 3px; transform: rotate(-6deg); box-shadow: 0 14px 30px -10px rgba(var(--eye-rgb), 0.5); }
.a-share .eyes { font-size: 16px; margin-bottom: 4px; } .a-share b { font-family: var(--display); font-size: 21px; line-height: 1; } .a-share small { font-family: var(--mono); font-size: 9px; color: var(--mute); }
.a-share .bars { margin-top: auto; display: grid; gap: 4px; } .a-share .bars i { height: 4px; border-radius: 2px; background: var(--eye); opacity: 0.7; }
.a-level { width: 78%; font-family: var(--mono); }
.a-level .lv { font-family: var(--display); font-size: 30px; color: var(--eye); line-height: 1; } .a-level .lv b { font-size: 44px; }
.xp { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); margin: 10px 0 12px; overflow: hidden; } .xp i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--eye), var(--gold)); border-radius: 4px; }
.acc { display: flex; gap: 8px; } .acc span { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(var(--eye-rgb), 0.5); display: grid; place-items: center; color: var(--eye); font-size: 15px; } .acc .lock { border-style: dashed; border-color: var(--line); color: var(--mute); }
.a-pace { position: relative; width: 108px; } .pace-t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.pace-t b { font-family: var(--display); font-size: 24px; } .pace-t span { font-family: var(--mono); font-size: 11px; color: var(--warn); }

/* ---------- 隐私与服务 ---------- */
.prov-chips { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 14px; }
.prov-chips span { border: 1px solid rgba(var(--eye-rgb), 0.4); border-radius: 8px; padding: 7px 14px; background: rgba(var(--eye-rgb), 0.06); }
.link-diagram { display: flex; align-items: center; gap: 0; margin: 36px 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; max-width: 720px; }
.node { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border: 1px solid rgba(var(--eye-rgb), 0.5); border-radius: 12px; background: #070b13; }
.node small { color: var(--mute); } .node .n-ico { color: var(--eye); font-size: 18px; } .node .eyes { font-size: 18px; }
.pipe { flex: 1; position: relative; height: 2px; background: rgba(var(--eye-rgb), 0.25); min-width: 60px; }
.pipe span { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); color: var(--mute); font-size: 11px; }
.pipe i { position: absolute; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--eye); box-shadow: 0 0 10px var(--eye); animation: packet 2.4s linear infinite; }
.pipe i:nth-child(2) { animation-delay: 0.8s; } .pipe i:nth-child(3) { animation-delay: 1.6s; }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tri h3 { font-size: 20px; margin-bottom: 8px; } .tri h3::before { content: "✓ "; color: var(--ok); }
.tri p { color: var(--mute); font-size: 15px; }

/* ---------- Pro ---------- */
.plans { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; max-width: 980px; align-items: start; }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: rgba(10, 16, 27, 0.7); position: relative; overflow: hidden; }
.plan-h { display: grid; gap: 6px; margin-bottom: 20px; }
.plan h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.price { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1.1; }
.plan-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--mute); }
.plan li { padding: 9px 0 9px 26px; position: relative; color: #c5d2e3; font-size: 15.5px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.plan li::before { content: "▸"; position: absolute; left: 4px; color: var(--eye); }
.plan li b { color: #fff; }
.plan-foot { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.plan-foot a, .foot-oss a, .dl-notes a { color: var(--eye); }
.plan-foot.oss { font-size: 13px; }
.plan.looks { padding: 24px; border-color: rgba(255, 210, 63, 0.55); background: linear-gradient(165deg, rgba(255, 210, 63, 0.08), rgba(10, 16, 27, 0.8) 50%); }
.plan.looks h3 { font-size: 19px; }
.plan.looks .price { color: var(--gold); font-size: 34px; }
.plan.looks .price.tbd { font-size: 20px; padding: 6px 0; }
.plan.looks li { font-size: 14.5px; }
.plan.looks li::before { color: var(--gold); }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; margin: -6px 0 16px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 10px -2px currentColor; }

/* ---------- 下载 ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.dl { border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px; background: rgba(10, 16, 27, 0.7); display: flex; flex-direction: column; gap: 6px; transition: border-color 0.25s; }
.dl:hover { border-color: rgba(var(--eye-rgb), 0.55); }
.dl-ico { height: 38px; margin-bottom: 6px; }
.dl-ico svg { height: 100%; fill: none; stroke: var(--eye); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(var(--eye-rgb), 0.8)); }
.dl h3 { font-size: 20px; }
.dl p { color: var(--mute); font-size: 13.5px; line-height: 1.5; flex: 1; margin-bottom: 12px; }
.dl .btn { padding: 10px 12px; font-size: 14px; }
.dl-auto { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--ok); background: rgba(var(--eye-rgb), 0.06); border: 1px solid rgba(var(--eye-rgb), 0.25); text-align: center; line-height: 1.3; }
.dl-auto::before { content: "✓"; }
.dl-notes { margin-top: 24px; max-width: 980px; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: rgba(10, 16, 27, 0.6); display: grid; gap: 10px; color: #c5d2e3; font-size: 14.5px; }
.dl-notes h3, .steps h3 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.dl-notes b { color: var(--text); }
.steps { margin-top: 44px; max-width: 780px; }
.steps h3 { margin-bottom: 14px; }
.steps ol { counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; color: #c5d2e3; }
.steps li::before { content: "0" counter(s); font-family: var(--mono); color: var(--eye); font-size: 14px; }

/* ---------- 页脚 ---------- */
.foot { max-width: 1240px; margin: 0 auto; padding: 44px clamp(18px, 4vw, 48px) 60px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13.5px; display: grid; gap: 12px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--mute); }
.foot-links a:hover { color: var(--eye); }
.foot .mono { font-size: 12px; }

/* ---------- 帮助、隐私页 ---------- */
.doc { max-width: 780px; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.doc h1 { font-size: clamp(32px, 4vw, 48px); margin: 14px 0 10px; }
.doc h2 { font-size: clamp(21px, 2.2vw, 26px); margin: 40px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc h3 { font-family: var(--body); font-size: 17px; font-weight: 600; margin: 24px 0 6px; color: var(--text); }
.doc p, .doc li { color: #c5d2e3; font-size: 16px; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { display: grid; gap: 8px; margin: 12px 0; }
.doc ul li { padding-left: 22px; position: relative; } .doc ul li::before { content: "▸"; position: absolute; left: 2px; color: var(--eye); }
.doc ol { counter-reset: s; } .doc ol li { counter-increment: s; padding-left: 34px; position: relative; } .doc ol li::before { content: "0" counter(s); position: absolute; left: 0; top: 0.15em; font-family: var(--mono); color: var(--eye); font-size: 14px; }
.doc a { color: var(--eye); } .doc a:hover { text-decoration: underline; }
.doc b { color: var(--text); }
.doc code { font-family: var(--mono); font-size: 0.88em; background: rgba(var(--eye-rgb), 0.08); border: 1px solid rgba(var(--eye-rgb), 0.25); border-radius: 6px; padding: 1px 6px; }
.doc .muted { color: var(--mute); font-family: var(--mono); font-size: 13px; }
.doc-note[hidden] { display: none; }
.doc-note { margin-top: 18px; display: inline-block; font-family: var(--mono); font-size: 12.5px; color: var(--gold); border: 1px dashed rgba(255, 210, 63, 0.45); border-radius: 8px; padding: 6px 10px; }
.doc [data-l="zh"] { display: none; }
html:lang(zh) .doc [data-l="zh"] { display: block; }
html:lang(zh) .doc [data-l="en"] { display: none; }

/* ---------- 窄屏 ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; }
  .phone, .hero-stage:hover .phone { transform: none; }
  .lab-grid, .plans { grid-template-columns: 1fr; }
  .sess-grid { grid-template-columns: 1fr; gap: 24px; }
  .wire { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav-right { gap: 8px; }
  .lang { padding: 5px 6px; } .lang-ico { display: none; }
  .dl .btn { white-space: normal; text-align: center; line-height: 1.3; }
  .bento, .bullets, .tri, .gestures { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moods { grid-template-columns: repeat(3, 1fr); }
  .lbar { grid-template-columns: 92px 1fr 70px; }
  .link-diagram { font-size: 11px; } .node { padding: 10px 12px; }
  .hud.tr { display: none; }
}
@media (max-width: 420px) {
  .brand { font-size: 18px; gap: 8px; }
  .nav .btn.sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
