/* 智选 · 极简问答端
   设计语言：暖纸底 + 深空蓝能量核 + 墨绿与金线。只用系统字体，零外部依赖。 */

:root {
  --paper: #F5F2EA;
  --paper-2: #FBFAF6;
  --card: #FFFFFF;
  --ink: #141A20;
  --ink-2: #39423F;
  --muted: #737A75;
  --faint: #A5AAA3;
  --line: rgba(20, 26, 32, .085);
  --line-2: rgba(20, 26, 32, .045);
  --emerald: #0C7A64;
  --emerald-2: #25A98A;
  --emerald-3: #7FE3C4;
  --emerald-soft: rgba(12, 122, 100, .075);
  --gold: #C4963C;
  --gold-2: #E6C884;
  --gold-soft: rgba(196, 150, 60, .11);
  --tech-cyan: #6FE7FF;
  --tech-ice: #C9F7FF;
  --tech-blue: #2F7DFF;
  --tech-deep: #061634;
  --danger: #B4472F;
  --shadow-sm: 0 4px 16px -8px rgba(20, 26, 32, .18);
  --shadow-md: 0 18px 50px -28px rgba(20, 26, 32, .35);

  /* 表面层：深色模式只覆盖这一组令牌 */
  --glow-top: #FFFFFF;
  --page-1: #F7F5EF;
  --page-2: #F1EEE5;
  --topbar: rgba(247, 245, 239, .82);
  --dock-mid: rgba(245, 242, 234, .9);
  --dock-far: rgba(245, 242, 234, 0);
  --drawer-1: #FAF8F3;
  --drawer-2: #F3F0E8;
  --panel-1: #FCFBF7;
  --panel-2: #F7F4ED;
  --panel-foot: rgba(252, 251, 247, .92);
  --surface: rgba(255, 255, 255, .8);
  --surface-2: rgba(255, 255, 255, .88);
  --surface-hi: #FFFFFF;
  --field: #FFFFFF;
  --tint: rgba(20, 26, 32, .045);
  --tint-glow-a: rgba(37, 169, 138, .07);
  --tint-glow-b: rgba(196, 150, 60, .075);
  --hairline: rgba(255, 255, 255, .75);
  --inner-hi: rgba(255, 255, 255, .9);
  --grab: rgba(20, 26, 32, .14);
  --bubble-1: #202B27;
  --bubble-2: #101815;
  --none-1: #FFFEFA;
  --none-2: #FFFCF4;
  --gold-ink: #8A6420;
  --tool-idle: #7E847E;
  --dis: #B3B6AE;
  --on-ink: #FFFFFF;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  font-size: 16px;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -18%, var(--glow-top) 0%, rgba(255, 255, 255, 0) 54%),
    linear-gradient(180deg, var(--page-1) 0%, var(--page-2) 100%);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid rgba(12, 122, 100, .38); outline-offset: 2px; }

.shell { position: relative; height: var(--app-h, 100vh); height: var(--app-h, 100dvh); width: 100%; }
.shell::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(var(--tint) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 62%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 62%);
  pointer-events: none;
}

.app {
  position: relative;
  width: 100%;
  height: var(--app-h, 100vh);
  height: var(--app-h, 100dvh);
  overflow: hidden;
  background:
    radial-gradient(90% 55% at 82% 0%, var(--tint-glow-a), transparent 58%),
    radial-gradient(70% 45% at 8% 100%, var(--tint-glow-b), transparent 62%),
    linear-gradient(180deg, var(--page-1) 0%, var(--page-2) 100%);
  isolation: isolate;
}

/* ── 顶栏 ─────────────────────────────────────── */
.topbar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 62px;
  padding: calc(11px + env(safe-area-inset-top)) 13px 0;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 30;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.app.is-thread .topbar {
  background: var(--topbar);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line-2);
}
.iconbtn {
  width: 38px; height: 38px; border-radius: 13px;
  border: 0; background: transparent; color: var(--ink-2);
  display: grid; place-items: center;
  transition: background .18s ease, transform .18s ease;
}
.iconbtn:hover { background: var(--tint); }
.iconbtn:active { transform: scale(.94); }
.iconbtn--strong {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px -2px rgba(20, 26, 32, .12);
  color: var(--ink);
}
.iconbtn--strong:hover { background: var(--surface-hi); }
.topbar__right { display: flex; align-items: center; gap: 4px; }
.brand {
  position: absolute; left: 50%; top: calc(50% + env(safe-area-inset-top) / 2);
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 7px;
  color: var(--ink); letter-spacing: .14em; font-size: 13.5px;
  pointer-events: none;
}
.brand b { font-weight: 650; }
.brand__mark {
  display: block; width: 21px; height: 21px; flex: none;
  filter: drop-shadow(0 2px 5px rgba(47, 125, 255, .3));
}

/* ── 舞台 ─────────────────────────────────────── */
.stage {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  padding: 66px 18px 0;
  overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  z-index: 1;
}
.stage::-webkit-scrollbar { display: none; }
.app:not(.is-thread) .stage { display: flex; overflow: hidden; padding-bottom: 126px; }
.app.is-thread .stage { padding-bottom: 150px; }

/* ── 首页 ─────────────────────────────────────── */
.home {
  flex: 1; width: 100%; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2px 0 6px;
}
.hero {
  width: 100%; max-width: 410px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  animation: rise .6s cubic-bezier(.2, .8, .2, 1) both;
}

/* 3D 立方体：深空蓝能量核 */
.orb {
  --cube: clamp(98px, 24.5vh, 146px);
  --orb-h: clamp(154px, 30vh, 222px);
  position: relative;
  width: 100%; height: var(--orb-h);
  display: flex; align-items: center; justify-content: center;
  perspective: 760px;
  perspective-origin: 50% 46%;
  margin-bottom: 2px;
}
.orb__halo {
  position: absolute; width: calc(var(--cube) * 2.3); height: calc(var(--cube) * 2.3);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 125, 255, .3), rgba(31, 91, 255, .08) 42%, transparent 66%);
  filter: blur(8px);
  animation: halo 7s ease-in-out infinite;
}
.orb__bob { animation: bob 7s ease-in-out infinite; transform-style: preserve-3d; }
.cube-tilt {
  position: relative;
  width: var(--cube); height: var(--cube);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .55s cubic-bezier(.2, .8, .2, 1);
  cursor: grab;
  touch-action: none;
}
.cube-tilt:active { cursor: grabbing; }
.cube {
  position: absolute; inset: 0;
  width: var(--cube); height: var(--cube);
  transform-style: preserve-3d;
  animation: tumble 18s linear infinite;
  will-change: transform;
}
.cube__face {
  position: absolute; inset: 0;
  border-radius: 3px;
  border: 1px solid rgba(112, 212, 255, .55);
  background:
    linear-gradient(118deg, rgba(176, 244, 255, .12) 0 12%, rgba(176, 244, 255, .015) 32%, transparent 54%),
    radial-gradient(90% 70% at 50% 112%, rgba(47, 125, 255, .34), transparent 62%),
    linear-gradient(160deg, rgba(6, 22, 60, .76), rgba(1, 6, 20, .88));
  box-shadow:
    inset 0 0 0 1px rgba(100, 196, 255, .1),
    inset 0 0 30px rgba(36, 104, 255, .22),
    0 0 22px rgba(38, 112, 255, .2);
  overflow: hidden;
  backface-visibility: hidden;
}
.cube__face::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(112, 205, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 205, 255, .07) 1px, transparent 1px),
    radial-gradient(1.4px 1.4px at 18% 28%, rgba(226, 251, 255, .95), transparent 65%),
    radial-gradient(1.2px 1.2px at 72% 22%, rgba(160, 234, 255, .7), transparent 65%),
    radial-gradient(1.5px 1.5px at 82% 64%, rgba(148, 228, 255, .8), transparent 65%),
    radial-gradient(1.1px 1.1px at 38% 78%, rgba(226, 251, 255, .65), transparent 65%),
    radial-gradient(1px 1px at 58% 46%, rgba(180, 240, 255, .55), transparent 65%),
    radial-gradient(1px 1px at 12% 68%, rgba(148, 228, 255, .5), transparent 65%),
    radial-gradient(1.2px 1.2px at 64% 84%, rgba(226, 251, 255, .45), transparent 65%);
  background-size: 22px 22px, 22px 22px;
  opacity: .9;
}
.cube__face::after {
  content: "";
  position: absolute; inset: 7%;
  border: 1px solid rgba(122, 222, 255, .12);
  border-radius: 2px;
  background:
    linear-gradient(#7DE9FF, #7DE9FF) left top / 10px 1px no-repeat,
    linear-gradient(#7DE9FF, #7DE9FF) left top / 1px 10px no-repeat,
    linear-gradient(#7DE9FF, #7DE9FF) right top / 10px 1px no-repeat,
    linear-gradient(#7DE9FF, #7DE9FF) right top / 1px 10px no-repeat,
    linear-gradient(#7DE9FF, #7DE9FF) left bottom / 10px 1px no-repeat,
    linear-gradient(#7DE9FF, #7DE9FF) left bottom / 1px 10px no-repeat,
    linear-gradient(#7DE9FF, #7DE9FF) right bottom / 10px 1px no-repeat,
    linear-gradient(#7DE9FF, #7DE9FF) right bottom / 1px 10px no-repeat;
  box-shadow: inset 0 0 24px rgba(64, 152, 255, .1);
  opacity: .72;
}
.scan {
  position: absolute; left: 7%; right: 7%; top: -32%; height: 30%;
  background:
    linear-gradient(180deg, transparent, rgba(95, 214, 255, .06) 38%, rgba(160, 238, 255, .3) 49.5%, rgba(214, 251, 255, .5) 50%, rgba(160, 238, 255, .3) 50.5%, rgba(95, 214, 255, .06) 62%, transparent);
  animation: scan 5.6s linear infinite;
  pointer-events: none;
}
.cube__face--back .scan { animation-delay: -2.1s; }
.cube__face--right .scan { animation-delay: -3.4s; }
.cube__face--left .scan { animation-delay: -4.7s; }
.cube__face--top .scan { animation-delay: -5.1s; }
.cube__face--bottom .scan { animation-delay: -1.3s; }
.cube__face i {
  position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: radial-gradient(circle, #EAFDFF 0%, rgba(132, 235, 255, .7) 38%, rgba(132, 235, 255, 0) 72%);
  box-shadow: 0 0 14px 3px rgba(96, 214, 255, .35);
  opacity: .62;
}
.cube__face--front { transform: translateZ(calc(var(--cube) / 2)); }
.cube__face--back { transform: rotateY(180deg) translateZ(calc(var(--cube) / 2)); filter: brightness(.72); }
.cube__face--right { transform: rotateY(90deg) translateZ(calc(var(--cube) / 2)); filter: brightness(.84); }
.cube__face--left { transform: rotateY(-90deg) translateZ(calc(var(--cube) / 2)); filter: brightness(.94); }
.cube__face--top {
  transform: rotateX(90deg) translateZ(calc(var(--cube) / 2));
  border-color: rgba(140, 228, 255, .7);
  background:
    linear-gradient(118deg, rgba(194, 248, 255, .2) 0 16%, transparent 42%),
    radial-gradient(80% 70% at 50% 100%, rgba(47, 125, 255, .32), transparent 66%),
    linear-gradient(160deg, rgba(9, 30, 80, .78), rgba(2, 8, 24, .9));
  box-shadow:
    inset 0 0 0 1px rgba(140, 228, 255, .12),
    inset 0 0 30px rgba(88, 190, 255, .18),
    0 0 24px rgba(46, 132, 255, .24);
}
.cube__face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--cube) / 2)); filter: brightness(.62); }

/* 内核：反向自转的发光晶体 */
.cube__core {
  position: absolute; left: 24%; top: 24%; width: 52%; height: 52%;
  transform-style: preserve-3d;
  animation: coreSpin 26s linear infinite;
}
.cube__core-f {
  position: absolute; inset: 0;
  border: 1px solid rgba(190, 248, 255, 1);
  border-radius: 2px;
  background: radial-gradient(circle at 50% 50%, rgba(110, 214, 255, .24), rgba(12, 44, 130, .16) 62%, transparent 82%);
  box-shadow:
    inset 0 0 14px rgba(160, 242, 255, .5),
    0 0 16px rgba(90, 190, 255, .45);
  backface-visibility: hidden;
}
.cube__core-f--front { transform: translateZ(calc(var(--cube) * .26)); }
.cube__core-f--back { transform: rotateY(180deg) translateZ(calc(var(--cube) * .26)); }
.cube__core-f--right { transform: rotateY(90deg) translateZ(calc(var(--cube) * .26)); }
.cube__core-f--left { transform: rotateY(-90deg) translateZ(calc(var(--cube) * .26)); }
.cube__core-f--top { transform: rotateX(90deg) translateZ(calc(var(--cube) * .26)); }
.cube__core-f--bottom { transform: rotateX(-90deg) translateZ(calc(var(--cube) * .26)); }
.cube__aura {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: calc(var(--cube) * .4); height: calc(var(--cube) * .4);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 252, 255, .6), rgba(90, 180, 255, .22) 42%, transparent 68%);
  filter: blur(4px);
  mix-blend-mode: screen;
  pointer-events: none;
}
.cube__aura::before {
  content: "";
  position: absolute; inset: -24%;
  border: 1px dashed rgba(122, 228, 255, .3);
  border-radius: 50%;
}
.cube__aura::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: #EAFDFF;
  box-shadow:
    0 0 10px 3px rgba(111, 231, 255, .85),
    0 0 28px 10px rgba(47, 125, 255, .4);
}

/* 八个顶点光标 */
.cube__node {
  position: absolute; left: 50%; top: 50%;
  width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: var(--tech-ice);
  box-shadow: 0 0 7px 2px rgba(111, 231, 255, .8), 0 0 16px 4px rgba(47, 125, 255, .35);
}
.cube__node--1 { transform: translate3d(calc(var(--cube) * -.5), calc(var(--cube) * -.5), calc(var(--cube) * .5)); }
.cube__node--2 { transform: translate3d(calc(var(--cube) * .5), calc(var(--cube) * -.5), calc(var(--cube) * .5)); }
.cube__node--3 { transform: translate3d(calc(var(--cube) * -.5), calc(var(--cube) * .5), calc(var(--cube) * .5)); }
.cube__node--4 { transform: translate3d(calc(var(--cube) * .5), calc(var(--cube) * .5), calc(var(--cube) * .5)); }
.cube__node--5 { transform: translate3d(calc(var(--cube) * -.5), calc(var(--cube) * -.5), calc(var(--cube) * -.5)); }
.cube__node--6 { transform: translate3d(calc(var(--cube) * .5), calc(var(--cube) * -.5), calc(var(--cube) * -.5)); }
.cube__node--7 { transform: translate3d(calc(var(--cube) * -.5), calc(var(--cube) * .5), calc(var(--cube) * -.5)); }
.cube__node--8 { transform: translate3d(calc(var(--cube) * .5), calc(var(--cube) * .5), calc(var(--cube) * -.5)); }

.orb__ring {
  position: absolute;
  width: calc(var(--cube) * 1.72); height: calc(var(--cube) * 1.72);
  border-radius: 50%;
  border: 1px dashed rgba(86, 180, 255, .28);
  transform: rotateX(74deg) rotateZ(0deg);
  animation: ring 20s linear infinite;
  pointer-events: none;
}
.orb__ring::before {
  content: ""; position: absolute; top: -2.5px; left: 50%;
  width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: var(--tech-cyan);
  box-shadow: 0 0 10px 2px rgba(111, 231, 255, .6);
}
.orb__ring--b {
  width: calc(var(--cube) * 2.05); height: calc(var(--cube) * 2.05);
  border-style: solid; border-color: rgba(47, 125, 255, .14);
  transform: rotateX(68deg) rotateZ(40deg);
  animation: ring 32s linear infinite reverse;
}
.orb__ring--b::before { background: #9DEBFF; box-shadow: 0 0 12px 3px rgba(47, 125, 255, .5); }
.orb__shadow {
  position: absolute; bottom: 7%; left: 50%;
  width: calc(var(--cube) * 1.4); height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(20, 70, 180, .28), transparent 70%);
  filter: blur(5px);
}
.orb__shadow::after {
  content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 231, 255, .5), transparent);
  box-shadow: 0 0 12px rgba(64, 156, 255, .5);
}
.spark {
  position: absolute; border-radius: 50%;
  background: var(--tech-cyan);
  opacity: .35;
  animation: drift 6.5s ease-in-out infinite alternate;
  pointer-events: none;
}
.spark--1 { width: 3px; height: 3px; left: 18%; top: 36%; }
.spark--2 { width: 2px; height: 2px; right: 20%; top: 30%; background: #9DEBFF; animation-delay: -1.6s; }
.spark--3 { width: 2.5px; height: 2.5px; left: 24%; bottom: 26%; animation-delay: -3.1s; }
.spark--4 { width: 2px; height: 2px; right: 24%; bottom: 30%; background: #9DEBFF; animation-delay: -4.4s; }
.spark--5 { width: 1.5px; height: 1.5px; left: 38%; top: 14%; opacity: .22; animation-delay: -2.2s; }
.spark--6 { width: 1.5px; height: 1.5px; right: 36%; bottom: 12%; opacity: .2; background: #9DEBFF; animation-delay: -5.2s; }

/* 标题 */
.hero__copy { margin-top: 4px; }
.hero__copy h1 {
  margin: 0;
  font-size: clamp(24px, 6.2vw, 30px);
  line-height: 1.32;
  font-weight: 650;
  letter-spacing: .015em;
  color: var(--ink);
}
.hl { position: relative; display: inline-block; }
.hl::after {
  content: ""; position: absolute; left: 1px; right: -2px; bottom: 3px; height: 7px;
  background: linear-gradient(90deg, rgba(230, 200, 132, .5), rgba(230, 200, 132, .06));
  border-radius: 4px; z-index: -1;
}
.hero__copy p {
  margin: 9px 0 0;
  font-size: 12px; letter-spacing: .025em;
  color: var(--muted);
}
.hero__copy p b { color: var(--ink-2); font-weight: 560; }

.boxpill {
  margin-top: 17px;
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%;
  padding: 8px 12px 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink-2);
  font-size: 11px; letter-spacing: .01em;
  box-shadow: 0 4px 14px -10px rgba(20, 26, 32, .35);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.boxpill:hover { background: var(--surface-hi); border-color: rgba(12, 122, 100, .18); }
.boxpill:active { transform: scale(.985); }
.boxpill__dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--emerald-2);
  box-shadow: 0 0 0 3px rgba(37, 169, 138, .12);
}
.boxpill--empty .boxpill__dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 150, 60, .13);
  animation: pulse 2.4s ease-in-out infinite;
}
.boxpill b { font-weight: 600; color: var(--ink); }
.boxpill i { font-style: normal; color: var(--gold); }
.boxpill__go { color: var(--faint); display: inline-flex; margin-left: -1px; }
.boxpill__sep { color: var(--faint); opacity: .8; }

.learnflash {
  margin-top: 11px;
  display: flex; align-items: center; gap: 9px;
  max-width: 100%; padding: 8px 13px 8px 9px;
  background: var(--surface);
  border: 1px solid rgba(12, 122, 100, .16);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  animation: rise .35s ease both;
}
.learnflash__ic {
  width: 21px; height: 21px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, var(--emerald-2), var(--emerald));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 3px 8px -3px rgba(12, 122, 100, .6);
}
.learnflash__b { min-width: 0; text-align: left; }
.learnflash__b b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink); }
.learnflash__b span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 1px; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 底部输入 ─────────────────────────────────── */
.dock {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 25;
  padding: 20px 13px calc(11px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--paper) 56%, var(--dock-mid) 78%, var(--dock-far));
}
.composer { width: 100%; max-width: 460px; margin: 0 auto; }
.composer__field {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 10px 10px 9px 15px;
  box-shadow:
    0 14px 36px -22px rgba(20, 26, 32, .4),
    0 2px 6px -4px rgba(20, 26, 32, .12),
    inset 0 1px 0 var(--inner-hi);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.composer__field:focus-within {
  border-color: rgba(12, 122, 100, .32);
  box-shadow:
    0 18px 42px -24px rgba(12, 122, 100, .45),
    0 0 0 3px rgba(12, 122, 100, .055),
    inset 0 1px 0 var(--inner-hi);
}
.composer__field.is-shake { animation: shake .4s ease; }
#ask-input {
  display: block; width: 100%;
  min-height: 25px; max-height: 96px;
  padding: 4px 2px 7px;
  border: 0; outline: 0; resize: none;
  background: transparent;
  color: var(--ink);
  font-size: 15px; line-height: 1.55;
  letter-spacing: .005em;
}
#ask-input::placeholder { color: #9EA39C; }
.composer__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.modes { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--tint); }
.mode {
  border: 0; background: transparent;
  border-radius: 999px; padding: 6px 10px;
  font-size: 11px; letter-spacing: .01em; color: var(--muted);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.mode.is-on { background: var(--surface-hi); color: var(--emerald); font-weight: 600; box-shadow: 0 1px 4px rgba(20, 26, 32, .09); }
.composer__tools { display: flex; align-items: center; gap: 2px; }
.toolbtn {
  width: 31px; height: 31px; border-radius: 10px;
  border: 0; background: transparent; color: var(--tool-idle);
  display: grid; place-items: center;
  transition: background .16s ease, color .16s ease;
}
.toolbtn:hover { background: var(--tint); color: var(--ink-2); }
.toolbtn.is-live { color: var(--emerald); background: var(--emerald-soft); animation: pulse 1.4s infinite; }
.sendbtn {
  width: 33px; height: 33px; border-radius: 50%;
  border: 0; margin-left: 2px;
  background: linear-gradient(145deg, #12856D, #0A6654);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 14px -7px rgba(12, 122, 100, .8), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.sendbtn:hover { box-shadow: 0 8px 18px -8px rgba(12, 122, 100, .9), inset 0 1px 0 rgba(255,255,255,.2); }
.sendbtn:active { transform: scale(.93); }
.dock__hint {
  margin-top: 8px; text-align: center;
  font-size: 9.5px; letter-spacing: .035em;
  color: #9DA29B;
}
.dock__hint b { color: var(--gold); font-weight: 500; }
.dock__beian { margin-top: 5px; text-align: center; font-size: 8.5px; letter-spacing: .03em; }
.dock__beian a { color: #A9ADA6; text-decoration: none; }
.learnchips { display: flex; gap: 6px; overflow-x: auto; padding: 3px 2px 0; scrollbar-width: none; justify-content: center; flex-wrap: wrap; }
.learnchips::-webkit-scrollbar { display: none; }
.learnchip {
  flex: none; border: 1px solid rgba(12, 122, 100, .14);
  background: var(--surface); color: var(--emerald);
  border-radius: 999px; padding: 4px 9px; font-size: 9.5px;
}

/* ── 对话流 ───────────────────────────────────── */
.thread { width: 100%; max-width: 460px; margin: 0 auto; padding-top: 3px; }
.thread__head {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 2px 17px;
  font-size: 9.5px; letter-spacing: .16em; color: var(--faint);
  text-transform: uppercase;
}
.thread__head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ask-bubble { display: flex; justify-content: flex-end; margin-bottom: 15px; animation: rise .35s ease both; }
.ask-bubble p {
  margin: 0; max-width: 86%;
  padding: 11px 15px;
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(145deg, var(--bubble-1), var(--bubble-2));
  color: #F4F2EA;
  font-size: calc(14px * var(--scale)); line-height: 1.58;
  letter-spacing: .005em;
  box-shadow: 0 10px 24px -16px rgba(10, 20, 16, .8);
  overflow-wrap: anywhere;
}

/* 思考 */
.thinking {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 17px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  animation: rise .25s ease both;
}
.thinking__dots { display: flex; gap: 4px; }
.thinking__dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--emerald-2);
  animation: blink 1.1s infinite ease-in-out;
}
.thinking__dots i:nth-child(2) { animation-delay: .15s; }
.thinking__dots i:nth-child(3) { animation-delay: .3s; background: var(--gold); }
.thinking span { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }

/* 答案卡 */
.acard {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 17px 17px 15px;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
  overflow: hidden;
  animation: rise .38s cubic-bezier(.2, .8, .2, 1) both;
}
.acard::before {
  content: "";
  position: absolute; top: -70px; right: -50px;
  width: 190px; height: 190px;
  background: radial-gradient(circle, rgba(37, 169, 138, .085), transparent 66%);
  pointer-events: none;
}
.acard--folk::before { background: radial-gradient(circle, rgba(196, 150, 60, .11), transparent 66%); }
.acard--none { background: linear-gradient(180deg, var(--none-1), var(--none-2)); border-color: rgba(196, 150, 60, .18); }
.acard--none::before { background: radial-gradient(circle, rgba(196, 150, 60, .13), transparent 68%); }
.acard__top { display: flex; align-items: center; gap: 6px; position: relative; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 999px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .05em;
  background: var(--emerald-soft); color: var(--emerald);
  white-space: nowrap;
}
.tag--ghost { background: var(--tint); color: var(--muted); font-weight: 500; }
.tag--gold { background: var(--gold-soft); color: var(--gold-ink); }
.tag--risk { background: rgba(180, 71, 47, .08); color: var(--danger); }
.tag--ai { background: rgba(46, 123, 255, .1); color: #1F5FD1; }
.acard__time { margin-left: auto; font-size: 9.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.acard__answer {
  position: relative;
  margin: 13px 0 0;
  font-size: calc(clamp(35px, 10.4vw, 47px) * var(--scale));
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: .012em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.acard__answer .punct { color: var(--emerald-2); }
.acard__answer--none { font-size: calc(clamp(32px, 9vw, 39px) * var(--scale)); color: var(--gold-ink); letter-spacing: .04em; }
.acard__reason {
  position: relative;
  margin: 10px 0 0;
  font-size: calc(13.5px * var(--scale)); line-height: 1.72;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.acard__reason b { font-weight: 600; color: var(--ink); }

/* 依据 */
.basis { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line-2); }
.basis__t {
  display: flex; align-items: center; gap: 6px;
  font-size: 9px; letter-spacing: .13em; color: var(--faint);
  text-transform: uppercase;
}
.basis__t::before { content: ""; width: 12px; height: 1px; background: var(--gold-2); }
.basis__row { display: flex; align-items: center; gap: 10px; padding: 9px 0 0; }
.basis__glyph {
  width: 29px; height: 29px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--emerald-2), var(--emerald));
  color: #fff; font-size: 11px; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.basis__glyph[data-d="money"] { background: linear-gradient(140deg, #D9B76D, #B78A35); }
.basis__glyph[data-d="persona"] { background: linear-gradient(140deg, #4E7F73, #234C43); }
.basis__glyph[data-d="risk"] { background: linear-gradient(140deg, #6C8E84, #35574E); }
.basis__glyph[data-d="life"] { background: linear-gradient(140deg, #B9A06A, #8D733C); }
.basis__glyph[data-d="value"] { background: linear-gradient(140deg, #5E7B8D, #334C5A); }
.basis__glyph[data-d="history"] { background: linear-gradient(140deg, #8A8F86, #5A6058); }
.basis__glyph[data-d="folk"] { background: linear-gradient(140deg, #D3B875, #9A7832); }
.basis__glyph[data-d="none"] { background: linear-gradient(140deg, #B9BCB4, #8B8F87); }
.basis__n { font-size: 9.5px; color: var(--muted); letter-spacing: .01em; }
.basis__v { font-size: calc(12.5px * var(--scale)); font-weight: 600; color: var(--ink); margin-top: 1px; overflow-wrap: anywhere; }
.basis__c { width: 48px; flex: none; }
.basis__bar { height: 3.5px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.basis__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--emerald-2), var(--gold-2)); }
.basis__pct { margin-top: 3px; text-align: right; font-size: 8.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.basis__empty {
  margin-top: 9px; padding: 9px 11px;
  background: var(--tint);
  border-radius: 10px;
  font-size: 11px; line-height: 1.65; color: var(--muted);
}

.folknote {
  margin-top: 12px; padding: 9px 11px;
  border: 1px solid rgba(196, 150, 60, .16);
  background: rgba(196, 150, 60, .06);
  border-radius: 11px;
  font-size: 10px; line-height: 1.65; color: #7B5B21;
}
.hintbox {
  margin-top: 12px; padding: 10px 12px;
  border-left: 2px solid var(--gold-2);
  background: rgba(196, 150, 60, .045);
  border-radius: 4px 10px 10px 4px;
  font-size: 11px; line-height: 1.68; color: #6F5A33;
}
.hintbox b { font-weight: 600; color: #5E4A24; }
.cta {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(12, 122, 100, .18);
  background: var(--emerald-soft);
  color: var(--emerald);
  border-radius: 999px; padding: 7px 12px;
  font-size: 10.5px; font-weight: 600;
}
.cta:active { transform: scale(.98); }
.acard__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.source { font-size: 9px; letter-spacing: .02em; color: var(--faint); }
.acard__actions { display: flex; gap: 6px; flex: none; }
.actbtn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 9.5px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease;
}
.actbtn:hover { background: var(--surface-hi); border-color: rgba(12, 122, 100, .2); color: var(--emerald); }
.acard__dis { margin: 10px 0 0; font-size: 8.5px; line-height: 1.6; color: var(--dis); }

/* 学习回执（对话内） */
.learncard {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface);
  border: 1px solid rgba(12, 122, 100, .15);
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  animation: rise .35s ease both;
}
.learncard__ic {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--emerald-2), var(--emerald));
  color: #fff;
  box-shadow: 0 5px 12px -5px rgba(12, 122, 100, .65);
}
.learncard b { display: block; font-size: 12px; font-weight: 600; }
.learncard p { margin: 2px 0 0; font-size: 10.5px; color: var(--muted); line-height: 1.6; }
.learncard__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.learncard__tags span { font-size: 9.5px; color: var(--emerald); background: var(--emerald-soft); border-radius: 999px; padding: 3px 7px; }

/* ── 抽屉 ─────────────────────────────────────── */
.scrim {
  position: absolute; inset: 0; z-index: 40;
  background: rgba(12, 18, 16, .35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.app.is-menu .scrim, .app.is-sheet .scrim { opacity: 1; pointer-events: auto; }

.drawer {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 85%; max-width: 345px;
  z-index: 45;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--drawer-1) 0%, var(--drawer-2) 100%);
  border-right: 1px solid var(--hairline);
  box-shadow: 34px 0 80px -48px rgba(0, 0, 0, .55);
  transform: translateX(-104%);
  transition: transform .34s cubic-bezier(.2, .8, .2, 1);
  padding-top: env(safe-area-inset-top);
}
.app.is-menu .drawer { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 16px 10px;
}
.drawer__brand { display: flex; align-items: center; gap: 8px; }
.drawer__brand b { font-size: 15px; font-weight: 650; letter-spacing: .1em; }
.drawer__brand > div > span { display: block; font-size: 9.5px; color: var(--faint); letter-spacing: .08em; margin-top: 2px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 14px 18px; scrollbar-width: none; }
.drawer__body::-webkit-scrollbar { display: none; }
.newchat {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: 14px;
  padding: 11px 14px;
  background: linear-gradient(145deg, #177F69, #0A5C4C);
  color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 10px 22px -14px rgba(12, 122, 100, .9), inset 0 1px 0 rgba(255,255,255,.15);
  margin: 4px 0 20px;
}
.newchat:active { transform: scale(.99); }
.dsec { margin-bottom: 20px; }
.dsec__t {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 9.5px; letter-spacing: .14em; color: var(--faint);
  text-transform: uppercase; margin-bottom: 8px; padding: 0 2px;
}
.dsec__t button { border: 0; background: none; color: var(--emerald); font-size: 9.5px; letter-spacing: .03em; padding: 2px; text-transform: none; }
.hitem {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 9px;
  border: 0; border-radius: 11px;
  background: transparent; text-align: left;
  transition: background .16s ease;
}
.hitem:hover { background: var(--tint); }
.hitem.is-on { background: rgba(12, 122, 100, .065); }
.hitem__ic {
  width: 25px; height: 25px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: var(--tint); color: var(--muted);
  font-size: 10px; font-weight: 700;
}
.hitem.is-on .hitem__ic { background: var(--emerald); color: #fff; }
.hitem__b { min-width: 0; flex: 1; }
.hitem__b b { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hitem__b span { display: block; font-size: 9px; color: var(--faint); margin-top: 2px; }
.hitem__a { font-size: 9px; color: var(--faint); flex: none; max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dempty { font-size: 10.5px; color: var(--faint); padding: 6px 4px 10px; line-height: 1.7; }
.dmore {
  width: 100%; border: 1px dashed var(--line); background: transparent;
  color: var(--muted); font-size: 10px; padding: 10px 12px; margin: 4px 0 2px;
  border-radius: 10px; text-align: center; line-height: 1.5;
}
.dmore:active { background: var(--tint); }
.dmore--end { border-style: solid; color: var(--faint); cursor: default; }
.dmore--end:active { background: transparent; }
.boxsum {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 12px 13px;
  box-shadow: 0 6px 18px -16px rgba(20, 26, 32, .4);
}
.boxsum__top { display: flex; align-items: center; justify-content: space-between; }
.boxsum__n { font-size: 19px; font-weight: 700; letter-spacing: .02em; }
.boxsum__n small { font-size: 9.5px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: .02em; }
.boxsum__s { font-size: 9.5px; color: var(--faint); margin-top: 2px; }
.boxsum__ring { width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--emerald-2) 0 55%, rgba(20,26,32,.07) 55% 100%);
  display: grid; place-items: center; }
.boxsum__ring::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--drawer-1); }
.boxsum__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.boxsum__tags span { font-size: 9px; color: var(--ink-2); background: var(--tint); border-radius: 999px; padding: 3px 7px; }
.dlinks { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.dlink {
  display: flex; align-items: center; gap: 9px;
  border: 0; background: none; text-align: left;
  padding: 9px 6px; border-radius: 9px;
  font-size: 11.5px; color: var(--ink-2);
}
.dlink:hover { background: var(--tint); }
.dlink__ic { color: var(--faint); display: inline-flex; }
.dlink__r { margin-left: auto; color: var(--faint); font-size: 9.5px; }
.drawer__foot {
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-2);
  font-size: 9px; color: var(--faint); line-height: 1.7;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.drawer__foot button { border: 0; background: none; color: var(--faint); font-size: 9px; text-decoration: underline; text-underline-offset: 2px; padding: 0; }

/* ── 底部面板 ─────────────────────────────────── */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 50;
  transform: translateY(104%);
  transition: transform .36s cubic-bezier(.2, .8, .2, 1);
  max-height: 88%;
  display: flex; flex-direction: column;
}
.app.is-sheet .sheet { transform: none; }
.sheet.is-page { top: 0; max-height: 100%; }
.sheet__panel {
  display: flex; flex-direction: column;
  max-height: 88vh;
  max-height: 88dvh;
  background: linear-gradient(180deg, var(--panel-1), var(--panel-2));
  border-radius: 27px 27px 0 0;
  border-top: 1px solid var(--hairline);
  box-shadow: 0 -34px 90px -46px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.sheet__grab { width: 34px; height: 3.5px; border-radius: 99px; background: var(--grab); margin: 8px auto 0; flex: none; }
.sheet__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 13px 18px 10px;
  flex: none;
}
.sheet__head h3 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: .01em; }
.sheet__head p { margin: 4px 0 0; font-size: 10.5px; color: var(--muted); line-height: 1.6; max-width: 280px; }
.sheet__close {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: rgba(255,255,255,.7);
  color: var(--muted); display: grid; place-items: center;
}
.sheet__body { overflow-y: auto; padding: 4px 18px 18px; scrollbar-width: none; }
.sheet__body::-webkit-scrollbar { display: none; }
.sheet__foot {
  flex: none; padding: 10px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-2);
  background: var(--panel-foot);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 9px; color: var(--faint); line-height: 1.6;
}
.sheet__done {
  border: 0; border-radius: 999px; padding: 9px 18px;
  background: var(--ink); color: var(--on-ink); font-size: 11.5px; font-weight: 600; flex: none;
}
.sheet__done--gold { background: linear-gradient(145deg, #D3AE63, #B58A31); }
.sheet__done--danger { background: var(--danger); }

/* 学习面板 */
.lgroup { margin-bottom: 17px; }
.lgroup__h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.lgroup__h b { font-size: 12px; font-weight: 600; color: var(--ink); }
.lgroup__h span { font-size: 9px; color: var(--faint); letter-spacing: .03em; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px; padding: 7px 12px;
  font-size: 11px; color: var(--ink-2);
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.chip:hover { border-color: rgba(12, 122, 100, .22); }
.chip:active { transform: scale(.97); }
.chip.is-on {
  background: linear-gradient(145deg, #16866F, #0A6453);
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 5px 12px -6px rgba(12, 122, 100, .6);
}
.chip--gold.is-on { background: linear-gradient(145deg, #D3AE63, #B58A31); box-shadow: 0 5px 12px -6px rgba(196, 150, 60, .6); }
.learn-say { display: flex; gap: 7px; margin-top: 2px; }
.learn-say input {
  flex: 1; min-width: 0;
  border: 1px solid var(--line);
  background: var(--field);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px; color: var(--ink); outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.learn-say input:focus { border-color: rgba(12, 122, 100, .32); box-shadow: 0 0 0 3px rgba(12, 122, 100, .055); }
.learn-say input::placeholder { color: var(--faint); }
.learn-say button {
  flex: none; border: 0; border-radius: 12px;
  background: var(--emerald); color: #fff;
  padding: 0 14px; font-size: 11.5px; font-weight: 600;
  box-shadow: 0 6px 14px -8px rgba(12, 122, 100, .8);
}
.grow { flex: 1; min-width: 0; }
.taglist { display: flex; flex-wrap: wrap; gap: 6px; }
.tagdom { width: 100%; font-size: 9px; color: var(--faint); margin: 7px 0 1px; letter-spacing: .06em; }
.tagpill {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 5px 6px 5px 9px;
  font-size: 10px; color: var(--ink-2);
}
.tagpill b { font-weight: 600; }
.tagpill small { color: var(--faint); font-size: 8.5px; }
.tagpill button {
  width: 16px; height: 16px; border-radius: 50%;
  border: 0; background: var(--tint);
  color: var(--muted); font-size: 11px; line-height: 1;
  display: grid; place-items: center;
}
.tagpill button:hover { background: rgba(180, 71, 47, .1); color: var(--danger); }
.tagempty { font-size: 10.5px; color: var(--faint); line-height: 1.7; }

/* 设置面板 */
/* 分组卡片：小标题在卡片上方（iOS 分组设置风格） */
.setgroup {
  margin-bottom: 16px;
  padding: 2px 14px;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.setgroup__t {
  font-size: 9px; letter-spacing: .14em; color: var(--faint);
  text-transform: uppercase; margin: 0 4px 7px; font-weight: 600;
}
.set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}
.set-row:last-child { border-bottom: 0; }
.set-row__ic {
  flex: none; width: 22px; height: 22px; margin-right: 9px;
  display: grid; place-items: center; color: var(--ink-2); opacity: .78;
}
.set-row__t { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.set-row__s { font-size: 9.5px; color: var(--faint); margin-top: 2px; line-height: 1.55; }
.set-row input[type="date"], .set-row select {
  border: 1px solid var(--line);
  background: var(--field);
  border-radius: 10px;
  padding: 7px 8px;
  font-size: 11.5px;
  color: var(--ink);
  max-width: 142px;
  outline: none;
}
.set-row input[type="date"]:focus, .set-row select:focus { border-color: rgba(12, 122, 100, .32); }
.seg { display: flex; gap: 2px; padding: 3px; background: var(--tint); border-radius: 999px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 5px 9px; font-size: 10px; color: var(--muted); }
.seg button.is-on { background: var(--surface-hi); color: var(--emerald); font-weight: 600; box-shadow: 0 1px 4px rgba(20, 26, 32, .08); }
.switch {
  position: relative; flex: none;
  width: 40px; height: 23px; border-radius: 99px;
  border: 0; background: #D7D8D1;
  transition: background .2s ease;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 19px; height: 19px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.switch.is-on { background: var(--emerald); }
.switch.is-on::after { transform: translateX(17px); }
.settings-note {
  margin: 12px 0 4px; padding: 10px 12px;
  border-radius: 11px;
  background: var(--tint);
  font-size: 9.5px; line-height: 1.7; color: var(--muted);
}
/* 危险动作行：单独一张卡片里的红色文字，不带箭头 */
.setgroup--danger { background: rgba(180, 71, 47, .045); border-color: rgba(180, 71, 47, .16); }
.set-row--danger {
  cursor: pointer; border-bottom: 0;
  margin: 0 -14px; padding-left: 14px; padding-right: 14px;
  border-radius: 12px;
}
.set-row--danger .set-row__t { color: var(--danger); font-weight: 500; }
.set-row--danger .set-row__ic { color: var(--danger); }
.set-row--danger:active { background: rgba(180, 71, 47, .09); }
.set-row--danger.is-armed .set-row__t { font-weight: 700; }
.agepill { font-size: 9.5px; color: var(--gold); margin-left: 6px; }

/* 示例面板 */
.egsec { margin-bottom: 16px; }
.egsec__t { font-size: 9px; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; margin: 2px 2px 7px; }
.eglist { display: flex; flex-direction: column; gap: 6px; }
.eg {
  width: 100%; display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 11px;
  font-size: 11.5px; color: var(--ink-2); text-align: left;
  transition: border-color .16s ease, background .16s ease;
}
.eg:hover { background: var(--surface-hi); border-color: rgba(12, 122, 100, .22); }
.eg span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eg .eg__k { flex: none; }
.eg em { font-style: normal; color: var(--faint); flex: none; }
.eg__k { font-size: 8.5px; padding: 3px 6px; border-radius: 999px; background: var(--emerald-soft); color: var(--emerald); flex: none; }
.eg__k--gold { background: var(--gold-soft); color: var(--gold-ink); }

/* 关于 */
.about-hero { text-align: center; padding: 4px 0 14px; }
.about-hero__mark { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: linear-gradient(145deg, #177F69, #0A5C4C); box-shadow: 0 12px 26px -14px rgba(12, 122, 100, .9), inset 0 1px 0 rgba(255,255,255,.18); }
.about-hero h4 { margin: 10px 0 0; font-size: 16px; font-weight: 650; letter-spacing: .08em; }
.about-hero p { margin: 4px 0 0; font-size: 10px; color: var(--faint); letter-spacing: .04em; }
.about-rule {
  display: flex; gap: 10px; padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
}
.about-rule__n { font-size: 9.5px; color: var(--gold); font-weight: 700; width: 15px; flex: none; padding-top: 1px; }
.about-rule b { display: block; font-size: 11.5px; font-weight: 600; }
.about-rule p { margin: 3px 0 0; font-size: 10px; color: var(--muted); line-height: 1.65; }
.about-dis { margin-top: 14px; font-size: 9px; line-height: 1.75; color: var(--faint); }

/* ── Toast ────────────────────────────────────── */
.toast {
  position: absolute; left: 50%; bottom: calc(148px + env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  max-width: 86%;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(20, 26, 32, .93);
  color: #fff;
  font-size: 10.5px; line-height: 1.5; letter-spacing: .01em;
  text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 70;
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .5);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── 动效 ─────────────────────────────────────── */
@keyframes tumble {
  0%   { transform: rotateX(-24deg) rotateY(-38deg); }
  25%  { transform: rotateX(-14deg) rotateY(52deg); }
  50%  { transform: rotateX(-27deg) rotateY(142deg); }
  75%  { transform: rotateX(-15deg) rotateY(232deg); }
  100% { transform: rotateX(-24deg) rotateY(322deg); }
}
@keyframes coreSpin {
  0%   { transform: rotateX(12deg) rotateY(28deg); }
  50%  { transform: rotateX(-16deg) rotateY(200deg); }
  100% { transform: rotateX(12deg) rotateY(388deg); }
}
@keyframes scan {
  0%   { top: -32%; opacity: 0; }
  12%  { opacity: .9; }
  88%  { opacity: .9; }
  100% { top: 104%; opacity: 0; }
}
@keyframes bob { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-5px); } }
@keyframes halo { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes ring { from { transform: rotateX(74deg) rotateZ(0deg); } to { transform: rotateX(74deg) rotateZ(360deg); } }
@keyframes drift { from { transform: translate3d(0, 0, 0); opacity: .18; } to { transform: translate3d(4px, -10px, 0); opacity: .5; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(196, 150, 60, .12); } 50% { box-shadow: 0 0 0 5px rgba(196, 150, 60, .02); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* ── 桌面外壳 ─────────────────────────────────── */
@media (min-width: 760px) {
  body { display: grid; place-items: center; padding: 22px; }
  .shell { height: min(900px, calc(100vh - 44px)); height: min(900px, calc(100dvh - 44px)); width: auto; }
  .app {
    width: 430px;
    height: min(900px, calc(100vh - 44px));
    height: min(900px, calc(100dvh - 44px));
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow:
      0 50px 110px -50px rgba(20, 26, 32, .55),
      0 18px 40px -30px rgba(20, 26, 32, .3),
      0 0 0 1px rgba(20, 26, 32, .045);
  }
  .topbar { padding-top: 14px; }
  .toast { bottom: 154px; }
}
@media (max-width: 380px) {
  .hero__copy h1 { font-size: 23px; }
  .orb { --cube: clamp(88px, 22vh, 120px); --orb-h: clamp(136px, 27vh, 180px); }
  .acard { padding: 15px 14px 13px; border-radius: 22px; }
  .acard__answer { font-size: calc(31px * var(--scale)); }
  .basis__c { width: 40px; }
  .mode { padding: 6px 8px; }
  .dock__hint { font-size: 9px; }
}
@media (max-height: 620px) {
  .orb { --cube: clamp(84px, 21vh, 112px); --orb-h: clamp(128px, 26vh, 160px); }
  .hero__copy h1 { font-size: 23px; }
  .hero__copy p { margin-top: 6px; font-size: 11px; }
  .boxpill { margin-top: 11px; }
  .topbar { height: 56px; }
  .stage { padding-top: 58px; }
  .app:not(.is-thread) .stage { padding-bottom: 116px; }
}
@media (prefers-reduced-motion: reduce) {
  .cube { animation: none; transform: rotateX(-15deg) rotateY(-24deg); }
  .cube__core { animation: none; transform: rotateX(14deg) rotateY(-26deg); }
  .scan { display: none; }
  .orb__bob, .orb__halo, .orb__ring, .spark { animation: none; }
  .hero, .acard, .ask-bubble, .thinking, .learncard, .learnflash { animation: none; }
}

/* ── 合规：举报、协议入口 ─────────────────────── */
.set-row--link { text-decoration: none; color: inherit; }
.set-row--link svg { flex: none; color: var(--faint); }
.linkbtn {
  border: 0; background: none; padding: 2px 0;
  color: var(--emerald); font-size: 10.5px; font-weight: 600;
}
.cta--ghost {
  background: var(--surface); color: var(--ink-2);
  border-color: var(--line);
}
.acct-form { display: flex; flex-direction: column; gap: 10px; }
.acct-form.is-disabled { opacity: .5; }
.acct-field { display: flex; flex-direction: column; gap: 5px; }
.acct-field > span {
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); font-weight: 600;
}
.acct-field input {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2);
  padding: 10px 12px; font-size: 12.5px; color: var(--ink);
  font-family: inherit; width: 100%;
}
.acct-field input:focus { outline: none; border-color: rgba(12, 122, 100, .34); background: var(--field); }
.acct-field input::placeholder { color: var(--faint); }
.acct-actions { display: flex; gap: 8px; margin-top: 2px; }
.acct-actions .cta { margin-top: 0; flex: 1; justify-content: center; }
.acct-actions .cta:disabled { opacity: .55; }
.acct-note {
  margin: 4px 0 0; font-size: 9.5px; line-height: 1.7; color: var(--faint);
}
.acct-code { display: flex; align-items: center; gap: 8px; }
.acct-code input { flex: 1; min-width: 0; }
.acct-code .linkbtn {
  flex: none; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); padding: 7px 11px;
  font-size: 10px; color: var(--emerald); font-weight: 600;
}
.acct-code .linkbtn:disabled { opacity: .5; }
.acct-hint {
  margin: 2px 0 0; font-size: 9.5px; line-height: 1.7; color: var(--faint);
}
.acct-offline {
  padding: 11px 12px; border-radius: 13px;
  border: 1px solid rgba(196, 150, 60, .28);
  background: var(--gold-soft);
  font-size: 10px; line-height: 1.7; color: #7A5A1E;
}
.acct-base {
  padding: 12px; border-radius: 14px;
  border: 1px dashed var(--line); background: var(--surface);
}
.acct-base__t {
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; margin-bottom: 8px;
}
.acct-base__row { display: flex; align-items: center; gap: 8px; }
.acct-base__row input {
  flex: 1; min-width: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2);
  padding: 8px 10px; font-size: 11px; color: var(--ink); font-family: inherit;
}
.acct-base__row input:focus { outline: none; border-color: rgba(12, 122, 100, .34); }
.acct-base__s { margin-top: 7px; font-size: 9px; line-height: 1.65; color: var(--faint); overflow-wrap: anywhere; }
.about-links {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.about-links a, .about-links button {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 6px 11px;
  font-size: 10px; color: var(--ink-2); text-decoration: none;
}
.report-quote {
  margin: 2px 0 16px; padding: 12px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface);
}
.report-quote > div + div { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.report-quote b { display: block; font-size: 9px; letter-spacing: .12em; color: var(--faint); font-weight: 600; }
.report-quote p { margin: 4px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.report-quote--general p { color: var(--muted); }
.reportchip.is-on {
  background: linear-gradient(145deg, #B4472F, #8E3321);
  border-color: transparent; color: #fff; font-weight: 600;
}
.report-detail {
  width: 100%; min-height: 76px; resize: vertical;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--field); padding: 10px 12px;
  font-family: inherit; font-size: 11.5px; line-height: 1.6; color: var(--ink);
  outline: none;
}
.report-detail:focus { border-color: rgba(180, 71, 47, .3); box-shadow: 0 0 0 3px rgba(180, 71, 47, .05); }
.report-done { text-align: center; padding: 18px 4px 4px; }
.report-done__ic {
  width: 52px; height: 52px; margin: 0 auto; border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(180, 71, 47, .08); color: var(--danger);
}
.report-done h4 { margin: 12px 0 0; font-size: 17px; font-weight: 650; }
.report-done > p { margin: 7px 0 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.report-done__meta {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding: 9px 12px;
  border-radius: 10px; background: var(--tint);
  font-size: 10px; color: var(--faint); text-align: left;
}
.report-done__meta b { color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; }
.report-list { display: flex; flex-direction: column; gap: 8px; }
.report-row {
  border: 1px solid var(--line); border-radius: 13px;
  background: var(--surface); padding: 11px 12px;
}
.report-row__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.report-row__top b { font-size: 11.5px; font-weight: 600; }
.report-row__top span { font-size: 9px; color: var(--gold); flex: none; }
.report-row p { margin: 5px 0 0; font-size: 10.5px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.report-row__foot { margin-top: 6px; font-size: 8.5px; color: var(--faint); }

/* ── 设置：多级面板与新板块 ─────────────────────── */
.sheet__back {
  width: 30px; height: 30px; border-radius: 50%; flex: none; margin-top: 1px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); display: grid; place-items: center;
}
.sheet__head.has-back { gap: 11px; }
.sheet__head.has-back > div { flex: 1; min-width: 0; }
.sheet__head.has-back h3 { font-size: 16px; }
.sheet__legal {
  flex: none;
  padding: 11px 18px calc(13px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-2);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--panel-foot);
  font-size: 8.5px; line-height: 1.6; color: var(--faint); letter-spacing: .02em;
}
.sheet__legal__r { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px 10px; }
.sheet__legal span { white-space: nowrap; }
.sheet__legal span:last-child { font-variant-numeric: tabular-nums; }
.sheet__legal a { color: inherit; text-decoration: none; white-space: nowrap; }

.set-row { cursor: default; }
.set-row__l { min-width: 0; flex: 1; }
.set-row__v {
  flex: none; max-width: 46%;
  font-size: 10.5px; color: var(--muted);
  text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.set-row__ok { flex: none; display: grid; place-items: center; color: var(--emerald); }
.set-row--link { cursor: pointer; transition: background .16s ease; border-radius: 8px; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.set-row--link:active { background: var(--tint); }
.set-row--pick { cursor: pointer; transition: background .16s ease; border-radius: 10px; margin: 0 -8px; padding: 12px 8px; }
.set-row--pick:hover { background: var(--tint); }
.set-row--pick.is-on { background: var(--emerald-soft); }
.set-row--pick.is-on .set-row__t { color: var(--emerald); font-weight: 600; }
.set-sub {
  margin: 2px 0 10px; padding: 2px 12px;
  border: 1px solid var(--line-2); border-radius: 13px;
  background: var(--surface);
}
.set-sub .set-row:last-child { border-bottom: 0; }
.set-logout {
  margin: 18px 0 6px; padding: 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--danger);
  cursor: pointer;
}
.set-logout:active { background: rgba(180, 71, 47, .08); }

/* ── 登录页（整屏）：logo 居中 → 大号手机号 → 单枚主按钮 → 两枚描边胶囊 → 底部协议勾选 ── */
.sheet__panel--page {
  /* 老版 Android WebView 不认 dvh，改用 top:0 + height:100% 铺满，两代内核都一致 */
  height: 100%; max-height: 100%;
  border-radius: 0; border-top: 0; box-shadow: none;
  background: linear-gradient(180deg, var(--panel-1), var(--page-2));
}
.sheet__body--page {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  padding: 0 26px calc(6px + env(safe-area-inset-bottom));
}
.si-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 0; flex: none; }
.si-help { border: 0; background: none; font-size: 12px; color: var(--muted); padding: 6px 2px; }
.si-hero { text-align: center; padding: 26px 0 6px; flex: none; }
.si-hero .brand__mark { width: 62px; height: 62px; margin: 0 auto; display: block; }
.si-hero b { display: block; margin-top: 13px; font-size: 19px; font-weight: 650; letter-spacing: .16em; color: var(--ink); }
.si-hero span { display: block; margin-top: 7px; font-size: 10.5px; letter-spacing: .06em; color: var(--muted); }
.si-hero--acct { padding: 10px 0 20px; }
.si-ava {
  width: 56px; height: 56px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface-hi);
  color: var(--tech-blue); font-size: 22px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.si-hero--acct b { margin-top: 12px; font-size: 21px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.si-hero--acct span { margin-top: 5px; font-size: 10px; letter-spacing: 0; }
.si-form { flex: none; padding-top: 18px; }
.si-form.is-disabled { opacity: .5; }
/* 协议勾选排在两枚按钮的最下方：整屏弹层没有底部栏去撑它，用 22px 顶开就行 */
.si-form > .si-agree { margin-top: 22px; }
.si-num { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); padding: 6px 0 11px; }
.si-num__cc { flex: none; font-size: 19px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.si-num__in {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-family: inherit; font-size: 22px; font-weight: 650; letter-spacing: .06em;
  color: var(--ink); text-align: center; font-variant-numeric: tabular-nums;
}
.si-num__in::placeholder { color: var(--faint); font-weight: 500; letter-spacing: .02em; }
.si-clear {
  flex: none; width: 23px; height: 23px; margin-right: -3px; padding: 0;
  border: 0; border-radius: 999px; background: var(--tint);
  color: var(--muted); font-family: inherit; font-size: 15px; line-height: 23px; text-align: center;
}
/* 号码为空时不该有个常驻的 × ——placeholder 还露着就藏起来 */
.si-num__in:placeholder-shown + .si-clear { display: none; }
.si-sub { margin: 9px 0 0; font-size: 10px; line-height: 1.7; color: var(--faint); text-align: center; }
.si-code { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 2px 11px; margin-top: 16px; }
.si-code__in {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: .22em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.si-code__in::placeholder { color: var(--faint); font-weight: 500; letter-spacing: .02em; }
.si-get { flex: none; border: 0; background: none; padding: 4px 0; font-size: 11.5px; font-weight: 600; color: var(--tech-blue); white-space: nowrap; }
.si-get:disabled, .si-get.is-off { color: var(--faint); font-weight: 500; }
.si-cta {
  width: 100%; margin-top: 26px; padding: 14px 16px;
  border: 0; border-radius: 999px;
  background: linear-gradient(160deg, #4A90FF, var(--tech-blue));
  color: #fff; font-family: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: .04em;
  box-shadow: 0 16px 30px -18px rgba(47, 125, 255, .85);
}
.si-cta:active { transform: scale(.99); }
.si-cta:disabled { background: var(--tint); color: var(--faint); box-shadow: none; }
.si-cta--ghost {
  margin-top: 11px; padding: 13px 16px;
  background: none; border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13.5px; font-weight: 500; box-shadow: none;
}
.si-alt { display: flex; gap: 11px; margin-top: 13px; }
.si-pill {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: none;
  color: var(--ink-2); font-family: inherit; font-size: 12px; font-weight: 500;
}
.si-pill:active { background: var(--tint); }
.si-pill svg { color: var(--muted); flex: none; }
.si-boxed { display: flex; flex-direction: column; gap: 13px; }
.si-field { display: flex; flex-direction: column; gap: 6px; }
.si-field > span { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.si-field input {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
  padding: 12px 13px; font-family: inherit; font-size: 13px; color: var(--ink); width: 100%; outline: none;
}
.si-field input:focus { border-color: rgba(47, 125, 255, .4); background: var(--field); }
.si-field input::placeholder { color: var(--faint); }
.si-agree { padding: 0 2px; display: flex; align-items: flex-start; justify-content: center; gap: 9px; flex: none; }
.si-agree__box {
  flex: none; width: 15px; height: 15px; margin-top: 1px; border-radius: 50%;
  border: 1.5px solid var(--faint); color: transparent;
  display: grid; place-items: center; transition: all .16s ease;
}
.si-agree.is-on .si-agree__box { background: var(--tech-blue); border-color: var(--tech-blue); color: #fff; }
.si-agree__t { font-size: 10px; line-height: 1.65; color: var(--muted); }
.si-agree__t a { color: var(--tech-blue); text-decoration: none; }
/* 页面底部居中的红色文字链：对应 DeepSeek 的「注销账号」 */
.si-void {
  display: block; width: 100%; text-align: center;
  margin: 26px 0 8px; padding: 8px 0;
  font-size: 12.5px; color: var(--danger); cursor: pointer;
}
.si-void.is-armed { font-weight: 600; }

/* 抽屉：搜索、月份分组、账号栏 */
.dsearch {
  position: relative; display: flex; align-items: center;
  margin: 10px 0 14px;
}
.dsearch__ic {
  position: absolute; left: 11px; display: grid; place-items: center;
  color: var(--faint); pointer-events: none;
}
.dsearch input {
  width: 100%;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface);
  padding: 9px 34px 9px 34px;
  font-family: inherit; font-size: 11.5px; color: var(--ink);
  outline: none;
  -webkit-appearance: none; appearance: none;
}
.dsearch input::-webkit-search-cancel-button { display: none; }
.dsearch input::placeholder { color: var(--faint); }
.dsearch input:focus { border-color: rgba(12, 122, 100, .3); background: var(--field); }
.dsearch__x {
  position: absolute; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: var(--tint); color: var(--muted);
  display: grid; place-items: center;
}
.dsearch input:placeholder-shown + .dsearch__x { display: none; }
.dmonth {
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); font-weight: 600;
  padding: 10px 4px 5px;
}
.dmonth:first-child { padding-top: 2px; }
.drawer__acct {
  flex: none;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.drawer__who {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 9px;
  border: 0; background: none; text-align: left; padding: 2px;
  color: var(--faint);
}
.drawer__ava {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--tint); color: var(--muted);
  font-size: 12px; font-weight: 700;
}
.drawer__acct.is-on .drawer__ava { background: var(--emerald); color: #fff; }
.drawer__who-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.drawer__who-t b { font-size: 11.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.drawer__who-t span { font-size: 8.5px; color: var(--faint); overflow-wrap: anywhere; }
.drawer__more {
  width: 30px; height: 30px; border-radius: 10px; flex: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  display: grid; place-items: center;
}

/* 外观与字号预览 */
.ap-demos { display: flex; gap: 10px; margin: 4px 0 12px; }
.ap-demo {
  flex: 1; min-width: 0;
  border-radius: 15px; padding: 12px;
  border: 1px solid var(--line);
}
.ap-demo--light { background: linear-gradient(180deg, #FCFBF7, #F2EFE6); color: #141A20; }
.ap-demo--dark { background: linear-gradient(180deg, #1B2228, #0E1317); color: #ECEAE2; border-color: rgba(255, 255, 255, .12); }
.ap-demo__t {
  font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase;
  opacity: .55;
}
.ap-demo__a { margin-top: 8px; font-size: 19px; font-weight: 700; letter-spacing: .01em; }
.ap-demo--light .ap-demo__a { color: #0A5C4C; }
.ap-demo--dark .ap-demo__a { color: #56E0BA; }
.font-preview {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.fp-q { font-size: calc(13px * var(--scale)); color: var(--muted); line-height: 1.55; }
.fp-a { font-size: calc(30px * var(--scale)); font-weight: 700; line-height: 1.15; margin: 7px 0 8px; color: var(--ink); }
.fp-r { font-size: calc(11px * var(--scale)); line-height: 1.7; color: var(--muted); }
.basis__more { margin-top: 8px; font-size: 9px; line-height: 1.6; color: var(--faint); }

/* 帮助 */
.faq { border-bottom: 1px solid var(--line-2); }
.faq:last-child { border-bottom: 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 2px;
  list-style: none; cursor: pointer;
  font-size: 12px; font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--faint); transition: transform .2s ease; }
.faq[open] summary svg { transform: rotate(90deg); }
.faq p { margin: 0 0 12px; font-size: 10.5px; line-height: 1.75; color: var(--muted); }

/* 只读分享卡 */
.share-card {
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--card); padding: 15px;
  box-shadow: var(--shadow-sm);
}
.share-card__top { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.share-card__top b { font-size: 12px; font-weight: 650; letter-spacing: .1em; }
.share-card__top .tag { margin-left: auto; }
.share-card__q { font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.share-card__a {
  margin: 11px 0 0; font-size: 31px; font-weight: 700; line-height: 1.15;
  color: var(--emerald); letter-spacing: .012em;
}
.share-card__a--none { font-size: 24px; color: var(--gold-ink); }
.share-card__r { margin-top: 10px; font-size: 10.5px; line-height: 1.7; color: var(--ink-2); }
.share-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 13px; padding-top: 11px;
  border-top: 1px solid var(--line-2);
  font-size: 8.5px; color: var(--faint); line-height: 1.6; text-align: right;
}

/* ── 深色模式：只覆盖表面层 ─────────────────────── */
html[data-theme="dark"] {
  --paper: #161B20;
  --paper-2: #1B2228;
  --card: #1A2127;
  --ink: #ECEAE2;
  --ink-2: #C4CBC9;
  --muted: #949DA0;
  --faint: #6C757B;
  --line: rgba(255, 255, 255, .095);
  --line-2: rgba(255, 255, 255, .055);
  --emerald: #2FBF9C;
  --emerald-2: #5BE3BE;
  --emerald-soft: rgba(47, 191, 156, .15);
  --gold: #DDB463;
  --gold-2: #EFDAAB;
  --gold-soft: rgba(221, 180, 99, .14);
  --danger: #E0715A;
  --shadow-sm: 0 4px 16px -8px rgba(0, 0, 0, .6);
  --shadow-md: 0 18px 50px -26px rgba(0, 0, 0, .75);
  --glow-top: #1D262D;
  --page-1: #12171B;
  --page-2: #0B0F12;
  --topbar: rgba(14, 19, 23, .82);
  --dock-mid: rgba(22, 27, 32, .9);
  --dock-far: rgba(22, 27, 32, 0);
  --drawer-1: #171D22;
  --drawer-2: #10151A;
  --panel-1: #1C2328;
  --panel-2: #141A1F;
  --panel-foot: rgba(20, 26, 31, .94);
  --surface: rgba(255, 255, 255, .062);
  --surface-2: rgba(255, 255, 255, .085);
  --surface-hi: rgba(255, 255, 255, .13);
  --field: #131920;
  --tint: rgba(255, 255, 255, .06);
  --tint-glow-a: rgba(47, 191, 156, .1);
  --tint-glow-b: rgba(46, 123, 255, .12);
  --hairline: rgba(255, 255, 255, .1);
  --inner-hi: rgba(255, 255, 255, .07);
  --grab: rgba(255, 255, 255, .2);
  --bubble-1: #2A3A48;
  --bubble-2: #1A2730;
  --none-1: #1D2429;
  --none-2: #181E23;
  --gold-ink: #E3C184;
  --tool-idle: #8A9298;
  --dis: #666E74;
  --on-ink: #0E1317;
}
html[data-theme="dark"] .switch { background: #39434B; }
html[data-theme="dark"] .tag--ai { background: rgba(111, 180, 255, .17); color: #93C6FF; }
html[data-theme="dark"] .sheet__close { background: var(--surface); }
html[data-theme="dark"] .toast { background: rgba(236, 234, 226, .94); color: #12171B; }
html[data-theme="dark"] .acct-offline { color: #E3C68A; border-color: rgba(221, 180, 99, .3); }
html[data-theme="dark"] .set-row--link:active,
html[data-theme="dark"] .set-logout:active { background: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .drawer__acct.is-on .drawer__ava { color: #06251F; }
html[data-theme="dark"] .reportchip.is-on,
html[data-theme="dark"] .chip--gold.is-on { color: #FFF6EF; }

/* ── 字号缩放 ──────────────────────────────────── */
html { --scale: 1; }
html[data-font="sm"] { --scale: .92; }
html[data-font="lg"] { --scale: 1.14; }
html[data-font="xl"] { --scale: 1.3; }
html[data-font="lg"], html[data-font="xl"] { font-size: 16px; }
.ask-bubble p, .acard__reason, .basis__v, .fp-r { line-height: 1.7; }

/* ── 建档问卷（登录后生活档案）────────────────────── */
.sheet__foot--cta { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.sheet__foot--cta .si-cta { margin-top: 10px; }
.sheet__foot--row { font-size: 10px; }
.sheet__foot--row .linkbtn:disabled { color: var(--faint); pointer-events: none; }
.ob-hero { text-align: center; padding: 20px 4px 4px; }
.ob-hero .brand__mark { width: 58px; height: 58px; margin: 0 auto; display: block; }
.ob-hero b { display: block; margin-top: 13px; font-size: 18px; font-weight: 650; letter-spacing: .12em; color: var(--ink); }
.ob-hero span { display: block; margin: 9px auto 0; max-width: 300px; font-size: 11.5px; line-height: 1.75; color: var(--muted); }
.ob-dims { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; }
.ob-dimchip {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px;
  font-size: 10px; color: var(--ink-2); background: var(--panel-2);
}
.ob-bar { height: 4px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.ob-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--emerald), var(--tech-blue)); transition: width .25s ease; }
.ob-meta { display: flex; justify-content: space-between; margin-top: 7px; font-size: 9.5px; color: var(--faint); letter-spacing: .02em; }
.ob-lead { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 8px; }
.ob-lead span { font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--tech-blue); }
.ob-lead b { font-size: 9.5px; color: var(--faint); font-weight: 500; font-variant-numeric: tabular-nums; }
.ob-q { font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--ink); letter-spacing: .01em; }
.ob-opts { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.ob-opt {
  text-align: left; border: 1px solid var(--line); border-radius: 13px;
  padding: 13px 14px; background: var(--panel-2);
  font-family: inherit; font-size: 13.5px; line-height: 1.5; color: var(--ink);
  transition: border-color .16s ease, background .16s ease, transform .12s ease;
}
.ob-opt:hover { border-color: rgba(47, 125, 255, .4); }
.ob-opt:active { transform: scale(.99); }
.ob-opt.is-on {
  border-color: var(--tech-blue); background: rgba(47, 125, 255, .09);
  box-shadow: 0 8px 18px -14px rgba(47, 125, 255, .9);
}
.ob-recap { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 4px; }

/* ── 会员、深度推理与支付 ─────────────────────────
   深度推理是花钱买的那一档，视觉上必须和「要答案」区分开：冷蓝 + 更亮的描边。 */
.deepchip {
  flex: none; border: 1px solid rgba(47, 125, 255, .22);
  background: var(--surface, #fff); color: var(--tech-blue);
  border-radius: 999px; padding: 5px 10px; font-size: 10px; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.deepchip.is-on {
  background: rgba(47, 125, 255, .12); border-color: var(--tech-blue);
  box-shadow: 0 6px 16px -12px rgba(47, 125, 255, .95);
}
.tag--deep {
  background: rgba(47, 125, 255, .1); color: var(--tech-blue);
  border: 1px solid rgba(47, 125, 255, .22);
}
.actbtn--pro { color: var(--gold); border-color: rgba(196, 150, 60, .3); }
.hintbox--warn {
  border-left-color: var(--tech-blue);
  background: rgba(47, 125, 255, .05); color: var(--ink-2);
}

.mem-hero {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 4px 2px 14px;
}
.mem-hero b { font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.mem-hero span { font-size: 11px; color: var(--muted); }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 14px; }
.plan {
  position: relative; border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 14px; background: var(--panel-1);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.plan:hover { border-color: rgba(47, 125, 255, .34); }
.plan--on { border-color: var(--tech-blue); box-shadow: 0 12px 30px -22px rgba(47, 125, 255, .9); }
.plan--free { background: var(--panel-2); }
.plan__badge {
  position: absolute; top: -8px; right: 12px;
  background: var(--gold); color: #fff; border-radius: 999px;
  padding: 2px 8px; font-size: 9.5px; letter-spacing: .02em;
}
.plan__head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink); }
.plan__price { margin: 8px 0 2px; font-size: 24px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.plan__price i { font-style: normal; font-size: 13px; margin-right: 1px; color: var(--muted); }
.plan__price span { font-size: 10.5px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.plan__feat { margin: 8px 0 12px; padding: 0 0 0 15px; font-size: 11px; line-height: 1.86; color: var(--ink-2); }
.plan__cta {
  width: 100%; border: 1px solid var(--tech-blue); background: rgba(47, 125, 255, .08);
  color: var(--tech-blue); border-radius: 10px; padding: 8px 0;
  font-size: 11.5px; font-family: inherit; cursor: pointer;
  transition: background .16s ease;
}
.plan__cta:hover { background: rgba(47, 125, 255, .16); }

.pay-box {
  border: 1px solid rgba(196, 150, 60, .3); border-radius: 12px;
  background: var(--gold-soft); padding: 11px 13px; margin: 0 0 14px;
}
.pay-box--ok { border-color: rgba(12, 122, 100, .3); background: var(--emerald-soft); }
.pay-box--err { border-color: rgba(180, 71, 47, .3); background: rgba(180, 71, 47, .06); }
.pay-box__t { font-size: 12px; color: var(--ink); font-weight: 600; }
.pay-box__s { font-size: 10.5px; color: var(--muted); line-height: 1.7; margin-top: 3px; }
.pay-box__row { display: flex; gap: 12px; margin-top: 8px; }
