:root {
  color-scheme: light;
  --bg: #f4f6f3;
  --bg2: #eaf2ee;
  --card: #ffffff;
  --ink: #15181c;
  --ink2: #50555c;
  --muted: #8a8f95;
  --line: #e2e4df;
  --line2: #d2d6d0;
  --A: #2a78d6;
  --A-weak: #e6f0fb;
  --B: #eb6834;
  --B-weak: #fdece4;
  --accent: #129c6c;
  --accent-ink: #ffffff;
  --accent-weak: #e3f5ed;
  --just: #d8f1e5;
  --warn: #d03b3b;
  --shadow: 0 1px 2px rgba(15, 20, 25, .05), 0 6px 20px rgba(15, 20, 25, .06);
  --r: 18px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #101211; --bg2: #14201b; --card: #1b1d1c; --ink: #f0efec; --ink2: #c3c2b7; --muted: #8b8a84;
    --line: #2c2e2c; --line2: #3a3d3a; --A: #3987e5; --A-weak: #182a40; --B: #e2672f; --B-weak: #3a2116;
    --accent: #1fb07d; --accent-ink: #06140e; --accent-weak: #13291f; --just: #173527; --warn: #e66767;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101211; --bg2: #14201b; --card: #1b1d1c; --ink: #f0efec; --ink2: #c3c2b7; --muted: #8b8a84;
  --line: #2c2e2c; --line2: #3a3d3a; --A: #3987e5; --A-weak: #182a40; --B: #e2672f; --B-weak: #3a2116;
  --accent: #1fb07d; --accent-ink: #06140e; --accent-weak: #13291f; --just: #173527; --warn: #e66767;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
textarea, input { font: inherit; color: inherit; }
.app { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; position: relative; }

/* —— 顶栏与进度 —— */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  padding: 10px 16px 8px;
}
.topbar-row { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.back { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); flex: none; }
.back:active { background: var(--line); }
.back[hidden] { visibility: hidden; display: grid; }
.station-name { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eta { font-size: 12px; color: var(--muted); flex: none; }
.stations { display: flex; gap: 4px; margin-top: 8px; }
.stations i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.stations i b { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 3px; transition: width .4s ease; }
.stations i.skip { background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 7px); }

/* —— 屏幕 —— */
.screen { flex: 1; padding: 14px 16px 132px; }
.screen.enter { animation: enter .38s cubic-bezier(.2, .8, .2, 1); }
.screen.enter-back { animation: enterBack .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes enter { from { opacity: 0; transform: translateX(28px); } }
@keyframes enterBack { from { opacity: 0; transform: translateX(-28px); } }
.qno { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-weak); border-radius: 999px; padding: 2px 10px; margin: 6px 0 10px; }
.qtitle { font-size: 20px; line-height: 1.45; font-weight: 700; margin: 0 0 6px; letter-spacing: .2px; }
.qtitle.sm { font-size: 17px; }
.qhint { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.block { margin-top: 18px; }
.note-box { background: var(--card); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--ink2); box-shadow: var(--shadow); margin: 8px 0 14px; }
.badge { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.badge.A { background: var(--A); } .badge.B { background: var(--B); }
.sub-title { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; font-size: 15px; margin: 4px 0; }

/* —— 底部操作 —— */
.actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  max-width: 520px; margin: 0 auto;
  display: flex; gap: 10px; align-items: center;
}
.actions[hidden] { display: none; }
.btn { height: 52px; border-radius: 16px; font-weight: 700; font-size: 16px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s, opacity .2s, background .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { flex: 1; background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:disabled { background: var(--line2); color: var(--muted); box-shadow: none; }
.btn-ghost { background: var(--card); color: var(--ink2); box-shadow: var(--shadow); }
.btn-link { color: var(--accent); font-weight: 600; font-size: 14px; padding: 8px 4px; }
.btn .timer { width: 18px; height: 18px; }

/* —— 选项卡片 —— */
.opts { display: grid; gap: 10px; }
.opts.grid2 { grid-template-columns: 1fr 1fr; }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  background: var(--card); border: 1.5px solid transparent; border-radius: 16px; padding: 13px 14px;
  box-shadow: var(--shadow); transition: border-color .15s, background .15s, transform .1s; min-height: 56px;
}
.opt:active { transform: scale(.985); }
.opt .ico { font-size: 24px; width: 34px; text-align: center; flex: none; line-height: 1; }
.opt .txt { flex: 1; font-size: 15.5px; line-height: 1.4; }
.opt .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line2); flex: none; display: grid; place-items: center; color: transparent; transition: all .15s; }
.opt.multi .tick { border-radius: 7px; }
.opt.on { border-color: var(--accent); background: var(--accent-weak); }
.opt.on .tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.opt.dim { opacity: .45; }
.grid2 .opt { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 12px; min-height: 96px; }
.grid2 .opt .ico { font-size: 28px; width: auto; }
.grid2 .opt .tick { position: absolute; top: 10px; right: 10px; }
.opts.cols3 { grid-template-columns: repeat(3, 1fr); }
.cols3 .opt { align-items: center; text-align: center; min-height: 118px; justify-content: center; }
.cols3 .opt .ico { font-size: 40px; }
.cols3 .opt .txt { font-size: 15px; font-weight: 600; flex: none; }
.grid2 .opt { position: relative; }
.other-input { margin-top: 10px; width: 100%; border: 1.5px solid var(--line2); background: var(--card); border-radius: 14px; padding: 12px 14px; outline: none; }
.other-input:focus { border-color: var(--accent); }
.counter { font-size: 13px; color: var(--muted); margin: -6px 0 12px; }
.counter b { color: var(--accent); }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* —— 欢迎页 —— */
.hero { position: relative; border-radius: 24px; padding: 22px 18px 18px; background: radial-gradient(120% 90% at 20% 0%, #fff7d6 0%, transparent 60%), radial-gradient(120% 90% at 100% 20%, #d6f3e8 0%, transparent 55%), var(--card); box-shadow: var(--shadow); overflow: hidden; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero { background: radial-gradient(120% 90% at 20% 0%, #3a3415 0%, transparent 60%), radial-gradient(120% 90% at 100% 20%, #12352a 0%, transparent 55%), var(--card); } }
.hero h1 { font-size: 23px; margin: 4px 0 8px; line-height: 1.35; }
.hero p { margin: 0; color: var(--ink2); font-size: 14.5px; }
.hero-bottles { display: flex; justify-content: center; gap: 26px; margin: 4px 0 12px; height: 128px; align-items: flex-end; }
.hero-bottles svg { height: 120px; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .12)); }
.hero-bottles svg:nth-child(2) { animation-delay: -1.6s; }
@keyframes bob { 50% { transform: translateY(-7px) rotate(2deg); } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--ink2); }
.bubbles span { position: absolute; bottom: -20px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, .2) 60%, rgba(18, 156, 108, .25)); border: 1px solid rgba(18, 156, 108, .25); animation: rise 7s linear infinite; opacity: .8; }
@keyframes rise { to { transform: translateY(-300px) translateX(14px); opacity: 0; } }
.resume { margin-top: 14px; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--accent-weak); font-size: 14px; }
.resume b { color: var(--accent); }

/* —— 名字 —— */
.chat { display: flex; gap: 10px; align-items: flex-end; margin: 8px 0 18px; }
.chat .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-weak); display: grid; place-items: center; font-size: 22px; flex: none; }
.chat .bubble { background: var(--card); border-radius: 18px 18px 18px 4px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 16px; font-weight: 600; line-height: 1.5; }
.chat .bubble small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.big-input { width: 100%; height: 58px; border-radius: 16px; border: 2px solid var(--line2); background: var(--card); padding: 0 16px; font-size: 18px; outline: none; transition: border-color .2s; }
.big-input:focus { border-color: var(--accent); }

/* —— 点亮瓶子 —— */
.bottle-pick { display: flex; justify-content: center; gap: 22px; margin: 18px 0 8px; }
.bottle-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 16px 12px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); border: 2px solid transparent; transition: all .2s; width: 46%; }
.bottle-btn svg { height: 130px; transition: transform .25s, filter .25s, opacity .25s; filter: grayscale(1); opacity: .35; }
.bottle-btn.on svg { filter: none; opacity: 1; transform: translateY(-4px) scale(1.04); }
.bottle-btn.on.A { border-color: var(--A); } .bottle-btn.on.B { border-color: var(--B); }
.bottle-btn .lbl { font-weight: 700; font-size: 15px; }
.bottle-btn .st { font-size: 12.5px; color: var(--muted); }
.bottle-btn.on .st { color: var(--accent); font-weight: 600; }
.derived { text-align: center; margin: 14px 0 6px; min-height: 30px; }
.derived span { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--accent-weak); color: var(--accent); font-weight: 700; }
.center { text-align: center; }

/* —— 样品确认 —— */
.pair-show { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 10px 0 18px; }
.pair-show div { display: flex; flex-direction: column; align-items: center; gap: 4px; animation: bob 3.2s ease-in-out infinite; }
.pair-show div:last-child { animation-delay: -1.6s; }
.pair-show svg { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .12)); }
.pair-show span { font-weight: 800; color: var(--muted); font-size: 13px; }
.pair-show b { font-size: 28px; color: var(--muted); }

/* —— 次数 / 单行药丸 —— */
.prow { background: var(--card); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); margin-bottom: 12px; }
.prow-h { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 10px; font-size: 15px; }
.pills { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.pill { border-radius: 14px; border: 1.5px solid var(--line); padding: 10px 4px; text-align: center; font-size: 14px; line-height: 1.35; background: var(--bg); transition: all .15s; }
.pill .drops { display: block; font-size: 13px; letter-spacing: -2px; margin-bottom: 2px; }
.pill.on.A { border-color: var(--A); background: var(--A-weak); font-weight: 700; }
.pill.on.B { border-color: var(--B); background: var(--B-weak); font-weight: 700; }
.pill.on { border-color: var(--accent); background: var(--accent-weak); font-weight: 700; }

/* —— A↔B 拔河刻度 —— */
.ab { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 14px 14px; margin-top: 8px; user-select: none; -webkit-user-select: none; }
.ab-top { display: flex; justify-content: space-between; align-items: flex-end; height: 150px; padding: 0 6px; position: relative; }
.ab-side { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 80px; position: relative; }
.ab-side svg { height: 92px; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), filter .3s, opacity .3s; transform-origin: bottom center; }
.ab-side.lose svg { opacity: .45; filter: grayscale(.6); transform: scale(.9); }
.ab-fx { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); font-size: 18px; white-space: nowrap; pointer-events: none; }
.ab-fx span { display: inline-block; animation: pop .35s cubic-bezier(.3, 1.8, .5, 1) both; }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
.ab-readout { position: absolute; left: 80px; right: 80px; top: 52px; text-align: center; font-weight: 800; font-size: 17px; line-height: 1.35; }
.ab-readout.empty { color: var(--muted); font-weight: 500; font-size: 14px; }
.ab-readout .A { color: var(--A); } .ab-readout .B { color: var(--B); }
.ab-track { position: relative; height: 64px; margin: 10px 4px 0; touch-action: none; cursor: pointer; }
.ab-rail { position: absolute; left: 6%; right: 6%; top: 26px; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--A) 0%, var(--A-weak) 46%, var(--line) 50%, var(--B-weak) 54%, var(--B) 100%); opacity: .85; }
.ab-stop { position: absolute; top: 31px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--card); border: 2px solid var(--line2); transition: all .15s; }
.ab-thumb { position: absolute; top: 31px; width: 40px; height: 40px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--card); border: 4px solid var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); transition: left .18s cubic-bezier(.3, 1.4, .5, 1), border-color .2s; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.ab-thumb.dragging { transition: border-color .2s; }
.ab-thumb[hidden] { display: none; }
.ab-ticks { display: grid; grid-template-columns: repeat(6, 1fr); font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.25; margin: 0 2px; }
.ab-ticks span.on { color: var(--ink); font-weight: 700; }
.ab-mid { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.ab-extra { margin-top: 12px; }

/* —— 刺鼻时间线 / 故障清单（两列开关）—— */
.grid-ab { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 6px 10px 10px; }
.grid-ab-h { display: grid; grid-template-columns: 1fr 58px 58px; align-items: center; padding: 8px 4px; font-size: 13px; color: var(--muted); position: sticky; top: 64px; background: var(--card); z-index: 2; border-radius: 12px; }
.grid-ab-h .c { text-align: center; }
.grid-ab-row { display: grid; grid-template-columns: 1fr 58px 58px; align-items: center; padding: 6px 4px; border-top: 1px solid var(--line); position: relative; }
.grid-ab.one .grid-ab-h, .grid-ab.one .grid-ab-row { grid-template-columns: 1fr 70px; }
.grid-ab-row .lab { display: flex; gap: 10px; align-items: center; font-size: 14.5px; line-height: 1.4; padding-right: 6px; }
.grid-ab-row .lab .ico { font-size: 22px; width: 30px; text-align: center; flex: none; }
.grid-ab-row.timeline .lab .ico { position: relative; }
.tg { justify-self: center; width: 46px; height: 46px; border-radius: 14px; border: 1.5px dashed var(--line2); display: grid; place-items: center; font-size: 20px; color: var(--muted); transition: all .15s; }
.tg.on.A { border: 2px solid var(--A); background: var(--A-weak); }
.tg.on.B { border: 2px solid var(--B); background: var(--B-weak); }
.tg.on { animation: pop .3s cubic-bezier(.3, 1.8, .5, 1); }
.grid-ab-row.none { border-top: 1.5px solid var(--line2); }
.colstate { font-size: 12px; text-align: center; color: var(--muted); }
.colstate.ok { color: var(--accent); }

/* —— 阶梯（两列单选）—— */
.ladder { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 6px 10px 8px; }
.ladder-row { display: grid; grid-template-columns: 1fr 54px 54px; align-items: center; padding: 6px 4px; border-top: 1px solid var(--line); }
.ladder-row:first-of-type { border-top: 0; }
.ladder-h { display: grid; grid-template-columns: 1fr 54px 54px; padding: 8px 4px 4px; font-size: 13px; color: var(--muted); }
.ladder-h .c { text-align: center; display: flex; justify-content: center; }
.ladder-row .lab { display: flex; gap: 10px; align-items: center; font-size: 14.5px; line-height: 1.4; }
.ladder-row .lab .ico { font-size: 22px; width: 30px; text-align: center; flex: none; }
.rd { justify-self: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; transition: all .15s; font-weight: 800; color: #fff; font-size: 14px; }
.rd.on.A { background: var(--A); border-color: var(--A); }
.rd.on.B { background: var(--B); border-color: var(--B); }
.rd.on { animation: pop .3s cubic-bezier(.3, 1.8, .5, 1); }

/* —— 旋钮 —— */
.dials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dials.one { grid-template-columns: 1fr; }
.dial { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 12px 8px 12px; text-align: center; position: relative; user-select: none; -webkit-user-select: none; }
.dial-cap { font-size: 13px; font-weight: 600; line-height: 1.35; min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 4px; }
.dial svg { width: 100%; max-width: 180px; touch-action: none; cursor: grab; display: block; margin: 0 auto; }
.dial svg:active { cursor: grabbing; }
.dial .seg { transition: opacity .2s; }
.dial-read { font-weight: 800; font-size: 15px; min-height: 22px; margin-top: 2px; }
.dial-read.empty { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.dial-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding: 0 6px; margin-top: -4px; }
.dial.off svg { opacity: .25; pointer-events: none; }
.na-btn { margin-top: 8px; font-size: 12.5px; padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--line2); color: var(--ink2); }
.na-btn.on { border-color: var(--accent); background: var(--accent-weak); color: var(--accent); font-weight: 700; }
.dial .needle { transition: transform .22s cubic-bezier(.3, 1.5, .5, 1); transform-origin: 100px 100px; }
.dial.dragging .needle { transition: none; }

/* —— 滑卡 —— */
.swipe-wrap { position: relative; height: 300px; margin-top: 6px; }
.swipe-card { position: absolute; inset: 0 10px 20px; border-radius: 26px; background: var(--card); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; touch-action: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s; will-change: transform; }
.swipe-card.back1 { transform: translateY(12px) scale(.95); opacity: .7; }
.swipe-card.back2 { transform: translateY(24px) scale(.9); opacity: .4; }
.swipe-card .emoji { font-size: 64px; line-height: 1; margin-bottom: 14px; }
.swipe-card .name { font-size: 21px; font-weight: 800; line-height: 1.4; }
.swipe-card .idx { position: absolute; top: 14px; right: 18px; font-size: 13px; color: var(--muted); }
.swipe-card .stamp { position: absolute; top: 22px; padding: 4px 12px; border-radius: 10px; border: 3px solid; font-weight: 900; font-size: 18px; opacity: 0; transform: rotate(-12deg); }
.swipe-card .stamp.sa { left: 18px; color: var(--A); border-color: var(--A); }
.swipe-card .stamp.sb { right: 18px; color: var(--B); border-color: var(--B); transform: rotate(12deg); }
.swipe-card .stamp.ss { left: 50%; top: auto; bottom: 22px; color: var(--ink2); border-color: var(--ink2); transform: translateX(-50%); }
.swipe-hint { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.swipe-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 4px; }
.swipe-btns .btn { height: 50px; font-size: 14.5px; padding: 0 6px; }
.sb-A { background: var(--A); color: #fff; } .sb-B { background: var(--B); color: #fff; } .sb-S { background: var(--card); box-shadow: var(--shadow); }
.swipe-done { display: grid; gap: 8px; }
.sum-row { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); text-align: left; width: 100%; }
.sum-row .emoji { font-size: 24px; }
.sum-row .name { flex: 1; font-size: 14.5px; }
.sum-row .res { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg); }
.res.r1 { background: var(--A-weak); color: var(--A); } .res.r3 { background: var(--B-weak); color: var(--B); }
.dots { display: flex; justify-content: center; gap: 6px; margin: 4px 0 10px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line2); }
.dots i.on { background: var(--accent); width: 18px; border-radius: 4px; }

/* —— 0–10 满意度 —— */
.scale { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 18px 14px 16px; text-align: center; user-select: none; -webkit-user-select: none; }
.scale-face { height: 120px; display: flex; justify-content: center; align-items: center; gap: 14px; }
.scale-num { font-size: 54px; font-weight: 900; line-height: 1; min-width: 70px; font-variant-numeric: tabular-nums; }
.scale-num.empty { color: var(--line2); }
.scale-track { position: relative; height: 56px; margin: 12px 8px 0; touch-action: none; cursor: pointer; }
.scale-rail { position: absolute; left: 0; right: 0; top: 22px; height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; }
.scale-rail b { position: absolute; inset: 0 auto 0 0; border-radius: 6px; transition: width .15s; }
.scale-thumb { position: absolute; top: 28px; width: 36px; height: 36px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--card); border: 4px solid; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.scale-thumb[hidden] { display: none; }
.scale-nums { display: grid; grid-template-columns: repeat(11, 1fr); font-size: 12px; color: var(--muted); margin: 0 -4px; }
.scale-nums button { padding: 6px 0; border-radius: 8px; font-variant-numeric: tabular-nums; }
.scale-nums button.on { color: var(--ink); font-weight: 800; }
.scale-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* —— 天数尺 —— */
.ruler { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 12px 14px; user-select: none; -webkit-user-select: none; }
.ruler-scene { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 0 4px 6px; }
.ruler-bar { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr 1.6fr 1.8fr; gap: 4px; touch-action: none; }
.ruler-bar button { height: 76px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 6px 2px; font-size: 12.5px; line-height: 1.25; position: relative; transition: background .2s; border: 1.5px solid transparent; }
.ruler-bar button.fill { background: var(--accent-weak); }
.ruler-bar button.on { border-color: var(--accent); font-weight: 800; color: var(--accent); }
.ruler-bar button .flag { position: absolute; top: 8px; font-size: 22px; opacity: 0; transform: translateY(6px); transition: all .2s; }
.ruler-bar button.on .flag { opacity: 1; transform: none; }
.mirror { display: block; margin: 0 auto 10px; }

/* —— 概念卡 —— */
.concept { border-radius: 26px; overflow: hidden; background: var(--card); box-shadow: 0 10px 30px rgba(0, 0, 0, .1); }
.concept-hero { position: relative; height: 170px; background: linear-gradient(160deg, #cfeee2 0%, #e9f6ff 55%, #fff6d9 100%); overflow: hidden; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .concept-hero { background: linear-gradient(160deg, #123327 0%, #142636 55%, #2f2a14 100%); } }
.concept-hero .glass { position: absolute; left: 50%; top: 18px; width: 150px; height: 140px; transform: translateX(-50%); border-radius: 12px; background: linear-gradient(120deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .25)); border: 2px solid rgba(255, 255, 255, .9); box-shadow: inset 0 0 20px rgba(255, 255, 255, .6); overflow: hidden; }
.concept-hero .glass::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .7) 45%, transparent 60%); animation: shine 3.5s ease-in-out infinite; }
@keyframes shine { from { transform: translateX(-120%); } 60%, to { transform: translateX(120%); } }
.drop { position: absolute; width: 12px; height: 15px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 35% 30%, #fff, rgba(110, 180, 230, .55)); animation: slide 2.6s cubic-bezier(.5, 0, .7, 1) infinite; }
@keyframes slide { 0% { transform: translateY(-20px); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(160px); opacity: .9; } }
.shield { position: absolute; right: 18px; bottom: 14px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #12775a; }
.concept-body { padding: 16px 16px 6px; }
.concept-body h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.4; }
.concept-body p { margin: 0 0 10px; color: var(--ink2); font-size: 14.5px; }
.concept-body p strong { color: var(--ink); }
.tiers { display: grid; gap: 8px; padding: 6px 16px 16px; }
.tier { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; background: var(--bg); border-radius: 16px; padding: 10px 12px; border: 1.5px solid transparent; text-align: left; width: 100%; }
.tier .t { font-size: 12px; color: var(--muted); font-weight: 600; }
.tier .x { font-size: 22px; font-weight: 900; line-height: 1.1; color: var(--accent); }
.tier .eg { font-size: 13px; color: var(--ink2); margin-bottom: 5px; }
.tier .bar { height: 8px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.tier .bar b { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--line2) 0 var(--base), var(--accent) var(--base)); border-radius: 4px; }
.tier.on { border-color: var(--accent); background: var(--accent-weak); }
.tier.pick { cursor: pointer; }
.tier .sub { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--ink); margin-bottom: 4px; }

.btn .ring { width: 20px; height: 20px; }

/* —— 少字化：要点行、关键句、折叠原文、引导动效 —— */
.pts { display: grid; gap: 8px; margin: 10px 0 4px; }
.pts div { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pts span { width: 34px; height: 34px; border-radius: 11px; background: var(--bg); display: grid; place-items: center; font-size: 18px; flex: none; }
.more { margin-top: 10px; font-size: 13px; color: var(--muted); }
.more summary { cursor: pointer; list-style: none; color: var(--accent); font-weight: 600; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ' ›'; }
.more[open] summary::after { content: ' ⌄'; }
.more p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink2); }
.key { background: var(--accent-weak); color: var(--ink); font-weight: 800; border-radius: 14px; padding: 10px 12px; font-size: 15px; line-height: 1.45; margin: 4px 0 10px; animation: glow 2.4s ease-in-out 2; }
.key.big { font-size: 17px; text-align: center; margin-top: 14px; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); } }
.facts { display: grid; gap: 6px; text-align: left; }
.fact { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink2); background: var(--bg); border-radius: 12px; padding: 8px 10px; animation: slidein .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }
.fact span { font-size: 18px; flex: none; }
@keyframes slidein { from { opacity: 0; transform: translateY(8px); } }
.tiers-h { margin: 12px 0 0 !important; font-size: 14px; }
.tiers-h small { color: var(--muted); font-size: 11.5px; }
.ab-ghost { position: absolute; left: 50%; top: 31px; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--card); font-weight: 900; font-size: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); animation: nudge 1.6s ease-in-out infinite; pointer-events: none; }
.ab-ghost[hidden] { display: none; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-34px); } 75% { transform: translateX(34px); } }

/* —— 价格签 —— */
.pricecard { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 14px; display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.pricecard .prod { position: relative; width: 92px; height: 92px; flex: none; display: flex; align-items: flex-end; justify-content: center; }
.pricecard .prod svg { height: 80px; }
.pricecard .tag { position: absolute; right: -8px; top: -2px; background: #ffd94a; color: #3a2c00; font-weight: 900; font-size: 13px; padding: 3px 8px 3px 12px; border-radius: 4px 8px 8px 4px; clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%); transform: rotate(8deg); transition: transform .3s; }
.pricecard .tag.bump { animation: bump .45s; }
@keyframes bump { 40% { transform: rotate(-6deg) scale(1.18); } }
.pricecard .info .x { font-size: 26px; font-weight: 900; color: var(--accent); line-height: 1.1; }
.pricecard .info .eg { font-size: 13.5px; color: var(--ink2); }
.anchor { font-size: 12.5px; color: var(--ink2); background: #fff6d0; border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .anchor { background: #332c10; } }
.anchor button { margin-left: auto; color: var(--accent); font-weight: 700; flex: none; }
.ptags { display: grid; gap: 8px; }
.ptag { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 11px 14px; box-shadow: var(--shadow); border: 1.5px solid transparent; text-align: left; width: 100%; }
.ptag .pv { font-weight: 900; font-size: 18px; min-width: 66px; font-variant-numeric: tabular-nums; }
.ptag .pt { flex: 1; font-size: 14px; color: var(--ink2); }
.ptag .delta { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-weak); padding: 2px 8px; border-radius: 999px; }
.ptag.no .pv { font-size: 20px; }
.ptag.on { border-color: var(--accent); background: var(--accent-weak); }
.ptag.on .pt { color: var(--ink); }

/* —— 小站过场 —— */
.station { text-align: center; padding-top: 7vh; }
.station .big { font-size: 74px; line-height: 1; animation: pop .5s cubic-bezier(.3, 1.8, .5, 1); }
.station .step { font-size: 13px; color: var(--muted); margin: 18px 0 4px; letter-spacing: 1px; }
.station h2 { font-size: 26px; margin: 0 0 14px; }
.station .note-box { text-align: left; font-size: 15.5px; color: var(--ink); line-height: 1.65; }
.station .done { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.station .done span { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--accent-weak); color: var(--accent); }

/* —— 填空收尾 —— */
.textarea { width: 100%; min-height: 160px; border-radius: 18px; border: 2px solid var(--line2); background: var(--card); padding: 14px; font-size: 16px; line-height: 1.6; outline: none; resize: vertical; }
.textarea:focus { border-color: var(--accent); }
.starter { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.starter button { padding: 6px 12px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 13.5px; }
.charcount { text-align: right; font-size: 12px; color: var(--muted); }

/* —— 结束页 —— */
.endpage { text-align: center; padding-top: 8vh; }
.endpage .big { font-size: 80px; line-height: 1; }
.endpage h2 { font-size: 24px; margin: 16px 0 8px; }
.endpage p { color: var(--ink2); margin: 0 0 8px; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall 2.6s cubic-bezier(.3, .6, .6, 1) forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .6; } }

/* —— 底部抽屉、提示 —— */
.sheet-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 60; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; max-height: 86vh; overflow: auto; z-index: 61; background: var(--bg); border-radius: 24px 24px 0 0; padding: 10px 12px calc(16px + env(safe-area-inset-bottom)); animation: up .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(100%); } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line2); margin: 2px auto 10px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: rgba(20, 22, 24, .92); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 70; animation: fade .2s; max-width: 86vw; text-align: center; }
.err { color: var(--warn); font-size: 14px; margin-top: 10px; text-align: center; }
.foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
