/* ========== 设计令牌：iOS 27 Liquid Glass 风格 ========== */
:root {
  color-scheme: light;
  --bg: #cfe6fb;
  --label: #0b1b2e;
  --label2: rgba(20, 40, 70, .66);
  --label3: rgba(20, 40, 70, .34);
  --sep: rgba(20, 40, 70, .14);
  --fill: rgba(120, 130, 150, .14);
  --fill2: rgba(120, 130, 150, .22);
  --glass-rgb: 255, 255, 255;
  --glass-a: .55;              /* 由“玻璃质感”滑块控制 */
  --glass-edge: rgba(10, 30, 60, .10);
  --glass-hi: rgba(255, 255, 255, .9);
  --shadow: 0 12px 34px rgba(20, 50, 100, .12), 0 2px 6px rgba(20, 50, 100, .06);
  --blue: #007aff; --green: #34c759; --orange: #ff9500; --red: #ff3b30;
  --pink: #ff2d55; --purple: #af52de; --indigo: #5856d6; --teal: #30b0c7; --yellow: #ffcc00;
  --r-card: 26px; --r-sm: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #070b1d; --label: #fff;
    --label2: rgba(230, 236, 255, .66); --label3: rgba(230, 236, 255, .32);
    --sep: rgba(160, 170, 210, .22); --fill: rgba(140, 150, 190, .2); --fill2: rgba(140, 150, 190, .3);
    --glass-rgb: 28, 32, 56; --glass-edge: rgba(0, 0, 0, .5); --glass-hi: rgba(255, 255, 255, .2);
    --shadow: 0 12px 34px rgba(0, 0, 0, .45);
    --blue: #0a84ff; --green: #30d158; --orange: #ff9f0a; --red: #ff453a;
    --pink: #ff375f; --purple: #bf5af2; --indigo: #5e5ce6; --teal: #40c8e0; --yellow: #ffd60a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b1d; --label: #fff;
  --label2: rgba(230, 236, 255, .66); --label3: rgba(230, 236, 255, .32);
  --sep: rgba(160, 170, 210, .22); --fill: rgba(140, 150, 190, .2); --fill2: rgba(140, 150, 190, .3);
  --glass-rgb: 28, 32, 56; --glass-edge: rgba(0, 0, 0, .5); --glass-hi: rgba(255, 255, 255, .2);
  --shadow: 0 12px 34px rgba(0, 0, 0, .45);
  --blue: #0a84ff; --green: #30d158; --orange: #ff9f0a; --red: #ff453a;
  --pink: #ff375f; --purple: #bf5af2; --indigo: #5e5ce6; --teal: #40c8e0; --yellow: #ffd60a;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--label);
  font: 17px/1.47 var(--font); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
a { color: var(--blue); text-decoration: none; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
svg.i { display: block; flex: none; }

/* ========== 天空 ========== */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.sky-dawn { background: linear-gradient(180deg, #7d9be0 0%, #aab9ea 28%, #f0c3d4 62%, #ffe3c6 100%); }
.sky-day { background: linear-gradient(180deg, #3a88db 0%, #63a9ec 32%, #a1cff5 68%, #d9eefc 100%); }
.sky-sunset { background: linear-gradient(180deg, #6276c9 0%, #9a82d0 30%, #ef9fb0 63%, #ffd29c 100%); }
.sky-night { background: radial-gradient(120% 70% at 75% 0%, #1d2a63 0%, transparent 60%), linear-gradient(180deg, #050817 0%, #0a1232 45%, #18224f 80%, #273163 100%); }
.sky[data-phase="dawn"] .sky-dawn, .sky[data-phase="day"] .sky-day,
.sky[data-phase="sunset"] .sky-sunset, .sky[data-phase="night"] .sky-night { opacity: 1; }

.sun { position: absolute; border-radius: 50%; transition: all 1.6s ease; opacity: 0; }
.sky[data-phase="day"] .sun { opacity: 1; width: 160px; height: 160px; right: 8vw; top: 7vh; background: radial-gradient(circle, #fffef5 0 28%, rgba(255, 250, 215, .7) 36%, rgba(255, 250, 220, 0) 70%); box-shadow: 0 0 120px 60px rgba(255, 255, 230, .35); }
.sky[data-phase="dawn"] .sun { opacity: 1; width: 200px; height: 200px; left: 6vw; top: 62vh; background: radial-gradient(circle, #fff3e0 0 22%, rgba(255, 200, 170, .65) 38%, rgba(255, 190, 170, 0) 70%); box-shadow: 0 0 160px 80px rgba(255, 200, 180, .35); }
.sky[data-phase="sunset"] .sun { opacity: 1; width: 240px; height: 240px; right: 4vw; top: 70vh; background: radial-gradient(circle, #fff1d0 0 20%, rgba(255, 170, 110, .7) 38%, rgba(255, 140, 120, 0) 70%); box-shadow: 0 0 200px 100px rgba(255, 160, 120, .35); }

.moon { position: absolute; right: 7vw; top: calc(var(--safe-t) + 10px); width: 52px; height: 52px; border-radius: 50%; opacity: 0; transition: opacity 1.6s;
  background: radial-gradient(circle at 38% 36%, #fffdf2, #e9e4cf 60%, #cfc8ad);
  box-shadow: 0 0 40px 10px rgba(255, 250, 220, .25), 0 0 140px 50px rgba(160, 180, 255, .15); }
.moon::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; left: 30px; top: 13px; background: rgba(180, 170, 140, .35); box-shadow: -16px 15px 0 -3px rgba(180, 170, 140, .3), -8px 34px 0 -5px rgba(180, 170, 140, .25); }
.sky[data-phase="night"] .moon { opacity: 1; }

.stars { position: absolute; left: 0; top: 0; width: 1.5px; height: 1.5px; border-radius: 50%; opacity: 0; transition: opacity 1.6s; }
.stars.s2 { width: 2px; height: 2px; }
.stars.s3 { width: 2.6px; height: 2.6px; }
.sky[data-phase="night"] .stars { opacity: 1; animation: twinkle 4s ease-in-out infinite alternate; }
.sky[data-phase="night"] .stars.s2 { animation-duration: 6s; animation-delay: -2s; }
.sky[data-phase="night"] .stars.s3 { animation-duration: 3s; animation-delay: -1s; }
@keyframes twinkle { 0% { opacity: 1; } 100% { opacity: .35; } }

.shooting { position: absolute; width: 140px; height: 2px; border-radius: 2px; opacity: 0; transform: rotate(-28deg); background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); }
.shooting.go { animation: shoot 1.1s ease-out; }
@keyframes shoot {
  0% { opacity: 0; transform: rotate(-28deg) translateX(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: rotate(-28deg) translateX(-360px); }
}

.cloud {
  position: absolute; left: 0; width: var(--w); height: calc(var(--w) * .3); opacity: var(--o);
  border-radius: 999px; background: rgba(255, 255, 255, .92);
  filter: blur(3px); will-change: transform;
  animation: drift linear infinite;
  box-shadow: 0 10px 40px rgba(255, 255, 255, .5);
}
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 46%; height: 150%; left: 14%; bottom: 30%; }
.cloud::after { width: 34%; height: 115%; right: 16%; bottom: 35%; }
.cloud.far { filter: blur(6px); }
@keyframes drift { from { transform: translateX(-60vw); } to { transform: translateX(130vw); } }
.sky[data-phase="sunset"] .cloud { background: rgba(255, 226, 226, .85); box-shadow: 0 10px 40px rgba(255, 190, 170, .45); }
.sky[data-phase="dawn"] .cloud { background: rgba(255, 240, 245, .9); }
.sky[data-phase="night"] .cloud { background: rgba(150, 165, 220, .1); box-shadow: none; filter: blur(10px); }

/* ========== 玻璃材质 ========== */
.glass {
  background: rgba(var(--glass-rgb), var(--glass-a));
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 0 0 0 .5px rgba(255, 255, 255, .3),
    0 0 0 .5px var(--glass-edge),
    var(--shadow);
}

/* ========== 玻璃分层应用图标（iOS 27） ========== */
.app-icon {
  --s: 46px; width: var(--s); height: var(--s); flex: none; position: relative; isolation: isolate;
  display: grid; place-items: center; color: #fff; border-radius: calc(var(--s) * .3);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tint) 62%, #fff) 0%, var(--tint) 52%, color-mix(in srgb, var(--tint) 78%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .12), 0 6px 14px color-mix(in srgb, var(--tint) 30%, transparent);
}
.app-icon::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%); }
.app-icon svg { width: 54%; height: 54%; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .22)); }
.app-icon.sm { --s: 30px; }
.app-icon.sm svg { width: 58%; height: 58%; }
.app-icon.lg { --s: 64px; }
.app-icon.xl { --s: 104px; }
.app-icon.xl svg { width: 50%; height: 50%; }
.app-icon.round { border-radius: 50%; }
.app-icon.off { --tint: #9aa3b5 !important; filter: saturate(0); opacity: .45; }

.mood-face { display: block; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .15)); }

/* ========== 顶部导航 ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  padding: calc(var(--safe-t) + 8px) 12px 8px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 56px;
  transition: background .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: rgba(var(--glass-rgb), calc(var(--glass-a) + .25));
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 .5px 0 var(--sep);
}
.navbar .nav-title { font-weight: 600; font-size: 17px; opacity: 0; transform: translateY(4px); transition: .25s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
.navbar.scrolled .nav-title { opacity: 1; transform: none; }
.nav-btn {
  height: 40px; min-width: 40px; padding: 0 12px 0 8px; border-radius: 20px; display: inline-flex; align-items: center; gap: 2px;
  font-weight: 500; justify-self: start; color: var(--label);
}
.nav-btn svg { width: 20px; height: 20px; }
.nav-btn.icon-only { padding: 0; justify-content: center; }
.nav-right { justify-self: end; display: flex; gap: 8px; }
.nav-btn:empty, .nav-right:empty { visibility: hidden; }

/* ========== 主体 ========== */
#view { max-width: 760px; margin: 0 auto; padding: calc(var(--safe-t) + 64px) 16px calc(var(--safe-b) + 120px); outline: none; }
.immersive #view { padding-bottom: calc(var(--safe-b) + 40px); }
.large-title { font-size: 34px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; margin: 4px 4px 2px; }
.large-sub { color: var(--label2); font-size: 15px; margin: 0 4px 18px; }
.section-h { display: flex; align-items: center; justify-content: space-between; margin: 28px 6px 12px; }
.section-h h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.section-h h2 svg { width: 20px; height: 20px; opacity: .7; }
.section-h a { font-size: 15px; font-weight: 500; }
.muted { color: var(--label2); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 16px; }

.card { border-radius: var(--r-card); padding: 18px; position: relative; overflow: hidden; }
.card + .card { margin-top: 12px; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 620px) { .grid2.wide3 { grid-template-columns: repeat(3, 1fr); } }

.pressable { transition: transform .35s var(--spring), filter .2s; }
.pressable:active { transform: scale(.965); filter: brightness(.97); }

/* ========== 测评卡片 ========== */
.test-card { display: flex; flex-direction: column; gap: 12px; min-height: 152px; color: var(--label); }
.test-card h3 { font-size: 16px; font-weight: 650; line-height: 1.3; }
.test-card .meta { font-size: 12.5px; color: var(--label2); margin-top: auto; display: flex; gap: 6px; align-items: center; }
.test-card .done { color: color-mix(in srgb, var(--tint) 80%, var(--label)); font-weight: 650; display: inline-flex; align-items: center; gap: 3px; }
.test-card .done svg { width: 14px; height: 14px; }
.test-card::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%;
  background: var(--tint); opacity: .16; filter: blur(18px); pointer-events: none;
}

.hero { padding: 22px; min-height: 200px; display: flex; flex-direction: column; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .35); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 10% 0%, rgba(255, 255, 255, .28), transparent 60%); pointer-events: none; }
.hero .kicker { font-size: 13px; font-weight: 600; opacity: .88; letter-spacing: .04em; position: relative; }
.hero h2 { font-size: 26px; font-weight: 750; margin-top: 6px; line-height: 1.25; position: relative; }
.hero p { font-size: 15px; opacity: .92; margin-top: 6px; max-width: calc(100% - 110px); position: relative; }
.hero .btn { margin-top: auto; align-self: flex-start; position: relative; }
.hero .hero-icon { position: absolute; right: 18px; bottom: 18px; transform: rotate(-8deg); animation: floaty 5s ease-in-out infinite; }
.hero .hero-icon .app-icon { --tint: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(255, 255, 255, .3), 0 12px 30px rgba(0, 0, 0, .18); }
@keyframes floaty { 50% { transform: rotate(-4deg) translateY(-8px); } }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 50px; padding: 0 24px; border-radius: 25px; font-weight: 600; font-size: 17px;
  background: var(--blue); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px color-mix(in srgb, var(--blue) 30%, transparent);
  transition: transform .35s var(--spring), opacity .2s;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 19px; height: 19px; }
.btn.block { width: 100%; }
.btn.tinted { background: color-mix(in srgb, var(--blue) 15%, rgba(var(--glass-rgb), .5)); color: var(--blue); box-shadow: none; }
.btn.glass { background: rgba(var(--glass-rgb), var(--glass-a)); color: var(--label); }
.btn.white { background: rgba(255, 255, 255, .95); color: #0b1b2e; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); height: 42px; padding: 0 18px; font-size: 15px; }
.btn.danger { background: var(--red); box-shadow: none; }
.btn.small { height: 36px; padding: 0 14px; font-size: 15px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.row-btns > .btn { flex: 1; }

/* ========== 列表 ========== */
.list { border-radius: var(--r-card); overflow: hidden; padding: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 56px; width: 100%; text-align: left; position: relative; color: var(--label); transition: background .15s; }
a.list-item:active, button.list-item:active { background: var(--fill); }
.list-item + .list-item::before { content: ""; position: absolute; top: 0; right: 0; left: 58px; border-top: .5px solid var(--sep); }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .li-sub { font-size: 13px; color: var(--label2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .chev { color: var(--label3); width: 16px; height: 16px; }
.list-item .li-right { color: var(--label2); font-size: 15px; }
.list-h { font-size: 13px; color: var(--label2); margin: 26px 16px 8px; letter-spacing: .02em; font-weight: 500; }
.list-f { font-size: 13px; color: var(--label2); margin: 8px 16px 0; }

/* ========== 分段控件 / 胶囊 ========== */
.segmented { display: flex; padding: 3px; border-radius: 12px; background: var(--fill); }
.segmented button { flex: 1; height: 34px; border-radius: 9px; font-size: 14px; font-weight: 500; transition: background .25s, box-shadow .25s; }
.segmented button.on { background: rgba(255, 255, 255, .95); color: #0b1b2e; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 600; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; padding: 0 14px; border-radius: 17px; font-size: 14px; font-weight: 500; color: var(--label);
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(var(--glass-rgb), var(--glass-a)); box-shadow: 0 0 0 .5px var(--glass-edge), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: .25s var(--ease);
}
.chip svg { width: 15px; height: 15px; }
.chip.on { background: var(--label); color: var(--bg); }
.tag-chips { flex-wrap: wrap; overflow: visible; }
.chip.static { height: 28px; font-size: 13px; padding: 0 12px; background: var(--fill); box-shadow: none; backdrop-filter: none; }

/* ========== Tab Bar ========== */
.tabbar {
  position: fixed; z-index: 40; left: 50%; bottom: calc(var(--safe-b) + 14px); transform: translateX(-50%);
  width: min(460px, calc(100% - 24px)); height: 64px; border-radius: 32px; padding: 5px;
  display: grid; grid-template-columns: repeat(5, 1fr); transition: transform .45s var(--ease), opacity .3s;
}
.immersive .tabbar { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 27px; color: var(--label); font-size: 10.5px; font-weight: 600; position: relative; z-index: 1; transition: color .25s; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--blue); }
.tab-lens { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 5); border-radius: 27px; background: var(--fill); box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 .5px rgba(255, 255, 255, .2); transition: transform .5s var(--spring); }

/* ========== 答题页 ========== */
.quiz-top { display: flex; align-items: center; gap: 12px; margin: 4px 2px 18px; }
.progress { flex: 1; height: 6px; border-radius: 3px; background: var(--fill2); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 3px; background: var(--tint, var(--blue)); transition: width .45s var(--ease); }
.quiz-count { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--label2); font-weight: 600; min-width: 48px; text-align: right; }
.q-card { padding: 26px 22px 22px; min-height: 180px; display: flex; flex-direction: column; justify-content: center; }
.q-prompt { font-size: 14px; color: var(--label2); font-weight: 500; margin-bottom: 10px; }
.q-text { font-size: 23px; font-weight: 650; line-height: 1.4; letter-spacing: -.01em; }
.q-anim { animation: qin .45s var(--ease); }
.q-anim.back { animation-name: qback; }
@keyframes qin { from { opacity: 0; transform: translateX(28px) scale(.98); } }
@keyframes qback { from { opacity: 0; transform: translateX(-28px) scale(.98); } }
.opts { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.opt {
  min-height: 56px; padding: 14px 18px; border-radius: 18px; text-align: left; font-size: 16.5px; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
  background: rgba(var(--glass-rgb), var(--glass-a)); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 .5px var(--glass-edge);
  transition: transform .35s var(--spring), background .2s, box-shadow .2s;
}
.opt:active { transform: scale(.975); }
.opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--label3); flex: none; display: grid; place-items: center; transition: .2s; }
.opt.sel { background: color-mix(in srgb, var(--tint, var(--blue)) 18%, rgba(var(--glass-rgb), var(--glass-a))); box-shadow: inset 0 0 0 2px var(--tint, var(--blue)); }
.opt.sel .radio { border-color: var(--tint, var(--blue)); background: var(--tint, var(--blue)); }
.opt.sel .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.agree { margin-top: 26px; padding: 22px 12px 16px; border-radius: var(--r-card); }
.agree-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.dot { --s: 44px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; border: 2.5px solid var(--c); display: grid; place-items: center; transition: transform .35s var(--spring), background .2s; }
.dot:hover { background: color-mix(in srgb, var(--c) 18%, transparent); }
.dot:active { transform: scale(.88); }
.dot.sel { background: var(--c); }
.dot.sel::after { content: ""; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.dot[data-i="0"], .dot[data-i="4"] { --s: 56px; }
.dot[data-i="1"], .dot[data-i="3"] { --s: 46px; }
.dot[data-i="2"] { --s: 36px; }
.agree-labels { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; font-weight: 600; }
.agree-sel { text-align: center; font-size: 14px; color: var(--label2); margin-top: 6px; min-height: 20px; }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }

/* ========== 结果页 ========== */
.result-hero { text-align: center; padding: 32px 20px 26px; }
.result-hero .app-icon { margin: 0 auto; animation: pop .8s var(--spring); }
.result-hero .headline { font-size: 44px; font-weight: 800; letter-spacing: .02em; margin-top: 16px; line-height: 1.15;
  background: linear-gradient(135deg, var(--tint), color-mix(in srgb, var(--tint) 45%, var(--purple))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result-hero .rtitle { font-size: 20px; font-weight: 650; margin-top: 4px; }
.result-hero .rsum { color: var(--label2); margin-top: 10px; font-size: 15.5px; }
@keyframes pop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }

.alert { border-radius: 20px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; }
.alert + .alert, .alert + .card, .card + .alert { margin-top: 12px; }
.alert.danger { background: color-mix(in srgb, var(--red) 16%, rgba(var(--glass-rgb), .72)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 40%, transparent); }
.alert.info { background: color-mix(in srgb, var(--blue) 12%, rgba(var(--glass-rgb), .72)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 30%, transparent); }
.alert > svg { width: 24px; height: 24px; margin-top: 1px; }
.alert.danger > svg { color: var(--red); }
.alert.info > svg { color: var(--blue); }
.alert b { display: block; margin-bottom: 2px; }
.alert p { font-size: 15px; }

.sec h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.sec p { opacity: .88; font-size: 15.5px; }
.sec ul { margin: 0; padding-left: 0; list-style: none; }
.sec li { position: relative; padding-left: 18px; font-size: 15.5px; opacity: .9; }
.sec li + li { margin-top: 6px; }
.sec li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--tint, var(--blue)); }
.sec .chips { margin-top: 10px; flex-wrap: wrap; }

/* 图表 */
.viz { padding: 20px 18px; }
.viz-h { font-size: 15px; font-weight: 650; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.bp + .bp { margin-top: 18px; }
.bp-labels { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.bp-labels .on { color: color-mix(in srgb, var(--tint) 85%, var(--label)); }
.bp-track { height: 12px; border-radius: 6px; background: var(--fill2); position: relative; }
.bp-fill { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--tint) 60%, white), var(--tint)); }
.bp-mid { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: rgba(var(--glass-rgb), .9); }
.bp-pin { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.bp-pin.me { background: var(--tint); }
.bp-pin.them { background: var(--orange); }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--label2); font-weight: 500; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

.bar + .bar { margin-top: 14px; }
.bar-top { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 6px; }
.bar-top b { font-variant-numeric: tabular-nums; }
.bar-track { height: 10px; border-radius: 5px; background: var(--fill2); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 5px; background: var(--tint); transform-origin: left; animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }

.radar { display: block; margin: 0 auto; width: 100%; max-width: 340px; height: auto; overflow: visible; }
.radar .grid { fill: none; stroke: var(--sep); }
.radar .shape { fill: color-mix(in srgb, var(--tint) 28%, transparent); stroke: var(--tint); stroke-width: 2.5; stroke-linejoin: round; animation: radarIn 1s var(--spring) both; transform-origin: center; transform-box: fill-box; }
.radar .shape.them { fill: color-mix(in srgb, var(--orange) 20%, transparent); stroke: var(--orange); stroke-dasharray: 5 4; }
.radar text { fill: var(--label2); font-size: 12px; font-weight: 600; }
.radar circle { fill: var(--tint); }
@keyframes radarIn { from { transform: scale(0); opacity: 0; } }
.gauge { display: block; margin: 0 auto; width: 100%; max-width: 280px; }
.gauge .g-val { font-size: 42px; font-weight: 800; fill: var(--label); }
.gauge .g-lbl { font-size: 14px; font-weight: 600; fill: var(--label2); }
.gauge .g-arc { transition: stroke-dashoffset 1.2s var(--ease); }
.quad { display: block; margin: 0 auto; width: 100%; max-width: 320px; }
.quad text { font-size: 12px; font-weight: 600; fill: var(--label2); }
.quad .q-dot { fill: var(--tint); stroke: #fff; stroke-width: 3; animation: pop .8s var(--spring) both; transform-box: fill-box; transform-origin: center; }
.battery { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 6px 0 14px; }
.battery-body { width: 200px; height: 84px; border-radius: 22px; padding: 6px; border: 3px solid var(--label3); position: relative; }
.battery-body i { display: block; height: 100%; border-radius: 15px; background: linear-gradient(90deg, var(--green), #8ce99a); animation: grow 1.4s var(--ease) both; }
.battery-body span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 800; text-shadow: 0 1px 6px rgba(var(--glass-rgb), .9); }
.battery-cap { width: 8px; height: 30px; border-radius: 0 6px 6px 0; background: var(--label3); }
.ref { font-size: 12.5px; color: var(--label2); padding: 0 6px; margin-top: 16px; display: flex; gap: 6px; }
.ref svg { width: 14px; height: 14px; margin-top: 2px; }

.compare-head { display: flex; align-items: center; justify-content: space-around; text-align: center; gap: 8px; }
.compare-head > div { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.compare-head b { display: block; font-size: 22px; font-weight: 800; }
.compare-head span { font-size: 12.5px; color: var(--label2); }
.compare-head .vs { font-size: 13px; color: var(--label2); font-weight: 700; }
.compare-score { text-align: center; margin: 16px 0 2px; }
.compare-score b { font-size: 44px; font-weight: 800; line-height: 1.1; background: linear-gradient(135deg, var(--tint), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.compare-score p { font-size: 15px; font-weight: 600; margin-top: 2px; }

/* ========== 工具 ========== */
.tool-card { display: flex; align-items: center; gap: 14px; color: var(--label); }
.tool-card h3 { font-size: 16.5px; font-weight: 650; }
.tool-card p { font-size: 13px; color: var(--label2); }

.breath-stage { height: 340px; display: grid; place-items: center; position: relative; }
.breath-orb {
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .95), transparent 45%), radial-gradient(circle, #7ee0f0, #2f8ff0);
  box-shadow: 0 0 60px rgba(120, 220, 255, .6), inset 0 -10px 30px rgba(0, 0, 0, .15);
  transform: scale(1); transition-property: transform; transition-timing-function: ease-in-out;
}
.breath-ring { position: absolute; width: 270px; height: 270px; border-radius: 50%; border: 1.5px dashed var(--label3); }
.breath-text { position: absolute; text-align: center; pointer-events: none; }
.breath-text b { display: block; font-size: 26px; font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.breath-text span { font-size: 15px; color: #fff; opacity: .9; font-variant-numeric: tabular-nums; }

.mood-pick { display: flex; justify-content: space-between; gap: 4px; }
.mood-pick button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 8px; border-radius: 18px; font-size: 12px; color: var(--label2); transition: background .2s; }
.mood-pick button .mood-face { transition: transform .4s var(--spring); }
.mood-pick button.on { background: color-mix(in srgb, var(--c) 26%, transparent); color: var(--label); font-weight: 600; }
.mood-pick button.on .mood-face { transform: scale(1.18) translateY(-2px); }
.mood-pick button:active .mood-face { transform: scale(.85); }
textarea.field { width: 100%; min-height: 96px; resize: vertical; border: 0; border-radius: 16px; padding: 12px 14px; background: var(--fill); outline: none; font-size: 16px; }
textarea.field:focus { box-shadow: 0 0 0 2px var(--blue); }

.wheel { display: block; width: 100%; max-width: 320px; margin: 6px auto 0; }
.wheel path { cursor: pointer; stroke: rgba(var(--glass-rgb), .9); stroke-width: 1.5; transition: opacity .2s, filter .2s; }
.wheel path:hover { filter: brightness(1.08); }
.wheel path.on { stroke: var(--label); stroke-width: 3; }
.wheel text { font-size: 11px; font-weight: 650; fill: #1a1a2e; pointer-events: none; }
.wheel-sel { text-align: center; font-size: 15px; min-height: 22px; margin-top: 6px; }
.disclose { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 6px 0; font-size: 15px; color: var(--blue); font-weight: 500; }
.disclose svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.disclose.open svg { transform: rotate(90deg); }

.chart-mood { width: 100%; height: auto; display: block; }
.chart-mood .ln { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-mood .area { fill: url(#moodGrad); }
.chart-mood text { font-size: 10px; fill: var(--label2); }
.chart-mood .gl { stroke: var(--sep); stroke-dasharray: 3 4; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stat { text-align: center; padding: 12px 6px; border-radius: 18px; background: var(--fill); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 72px; }
.stat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.stat span { font-size: 12px; color: var(--label2); }

.ground-step { text-align: center; padding: 30px 20px; }
.ground-step .num { font-size: 90px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--tint), var(--indigo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ground-step .app-icon { margin: 0 auto 6px; }
.ground-step h2 { font-size: 22px; margin-top: 10px; }
.ground-step p { color: var(--label2); margin-top: 8px; }
.ground-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.ground-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--fill2); transition: .3s var(--ease); }
.ground-dots i.on { width: 22px; background: var(--tint); }

/* 泡泡纸 */
.bubble-sheet { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 18px; }
.bubble { aspect-ratio: 1; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 12%, rgba(255, 255, 255, .25) 30%, rgba(255, 255, 255, .08) 60%), color-mix(in srgb, var(--teal) 30%, rgba(var(--glass-rgb), .4));
  box-shadow: inset 0 -4px 8px rgba(0, 60, 120, .18), inset 0 2px 2px rgba(255, 255, 255, .7), 0 3px 8px rgba(0, 40, 80, .12);
  transition: transform .18s var(--spring), opacity .3s; }
.bubble:active { transform: scale(.9); }
.bubble.popped { transform: scale(.82); opacity: .35; background: color-mix(in srgb, var(--teal) 14%, rgba(var(--glass-rgb), .3)); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .15); pointer-events: none; }
.bubble.popped::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); transform: rotate(20deg) scaleX(.6); }

/* 认知实验 */
.lab-stage { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px 18px; }
.lab-stage .big { font-size: 64px; font-weight: 800; letter-spacing: .04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lab-stage .hint { color: var(--label2); margin-top: 10px; font-size: 15px; }
.lab-stage .app-icon { margin-bottom: 14px; }
.stroop-btns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.stroop-btns .btn { background: rgba(var(--glass-rgb), var(--glass-a)); color: var(--label); box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 .5px var(--glass-edge); height: 58px; font-size: 19px; }
.react-pad { min-height: 360px; border-radius: var(--r-card); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; user-select: none; -webkit-user-select: none; touch-action: manipulation; cursor: pointer; transition: background .15s; padding: 20px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .35); }
.react-pad b { font-size: 34px; font-weight: 800; }
.react-pad p { opacity: .9; margin-top: 6px; }
.react-pad svg { width: 44px; height: 44px; margin-bottom: 10px; }
.react-pad.idle { background: linear-gradient(135deg, #5e8bff, #7a5cff); }
.react-pad.wait { background: linear-gradient(135deg, #ff6b6b, #f0446a); }
.react-pad.go { background: linear-gradient(135deg, #34c759, #1fae6e); }
.react-pad.early { background: linear-gradient(135deg, #ff9f0a, #ff7a00); }
.react-pad.done { background: linear-gradient(135deg, #30b0c7, #3a88db); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.keypad button { height: 58px; border-radius: 18px; font-size: 24px; font-weight: 600; background: rgba(var(--glass-rgb), var(--glass-a)); box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 .5px var(--glass-edge); display: grid; place-items: center; transition: transform .2s var(--spring); }
.keypad button:active { transform: scale(.92); }
.keypad svg { width: 22px; height: 22px; }
.span-input { font-size: 34px; font-weight: 700; letter-spacing: .25em; min-height: 46px; font-variant-numeric: tabular-nums; }

/* 成就 */
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 8px; padding: 20px 10px; }
@media (min-width: 560px) { .badge-grid { grid-template-columns: repeat(5, 1fr); } }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.badge b { font-size: 13px; font-weight: 650; }
.badge span { font-size: 11px; color: var(--label2); line-height: 1.35; margin-top: -4px; }
.medal::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--tint) 45%, transparent); }
.app-icon.off.medal::after { border-color: var(--sep); }

/* 文章 */
.article .app-icon { margin: 4px auto 14px; }
.article h2 { font-size: 20px; font-weight: 700; margin: 22px 0 8px; }
.article p { font-size: 16.5px; line-height: 1.72; opacity: .9; }
.article p + p { margin-top: 10px; }
.article ul { padding-left: 1.2em; margin: 8px 0; }
.article li { line-height: 1.65; margin: 4px 0; opacity: .9; }
.article .tip { margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--tint) 14%, transparent); font-size: 15px; display: flex; gap: 10px; }
.article .tip svg { width: 18px; height: 18px; color: var(--tint); margin-top: 2px; }

/* 首页 */
.greet { margin: 6px 4px 18px; }
.greet .date { font-size: 13px; font-weight: 600; color: var(--label2); letter-spacing: .03em; display: flex; align-items: center; gap: 6px; }
.greet .date svg { width: 15px; height: 15px; }
.tip-card { display: flex; gap: 14px; align-items: center; }
.tip-card p { font-size: 16px; font-weight: 500; }

/* Sheet 与 Toast */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 10, 30, .28); opacity: 0; transition: opacity .3s; }
.sheet-wrap.show { opacity: 1; }
.sheet { width: min(560px, 100%); max-height: 90dvh; overflow: auto; border-radius: 32px 32px 0 0; padding: 10px 18px calc(var(--safe-b) + 22px); transform: translateY(100%); transition: transform .45s var(--ease); }
.sheet-wrap.show .sheet { transform: none; }
@media (min-width: 600px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 32px; } }
.sheet .grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--label3); margin: 0 auto 14px; }
.sheet h3 { font-size: 19px; text-align: center; margin-bottom: 14px; }
.sheet img { width: 100%; border-radius: 20px; display: block; box-shadow: var(--shadow); }
.toast { position: fixed; left: 50%; top: calc(var(--safe-t) + 14px); z-index: 70; transform: translate(-50%, -150%); padding: 10px 18px; border-radius: 22px; font-size: 15px; font-weight: 600; transition: transform .5s var(--spring); white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.toast.show { transform: translate(-50%, 0); }
.toast .app-icon { --s: 28px; margin-left: -6px; }

.range { width: 100%; accent-color: var(--blue); }
.switch { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 16px; background: var(--fill2); position: relative; transition: background .25s; cursor: pointer; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15); transition: transform .3s var(--spring); }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }
.setting-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; gap: 10px; }
.setting-gap { height: 18px; }

.empty { text-align: center; padding: 36px 20px; color: var(--label2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg.i { width: 40px; height: 40px; opacity: .5; }

.fade-in { animation: fadeUp .5s var(--ease) both; }
.stagger > * { animation: fadeUp .55s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .04s; } .stagger > *:nth-child(3) { animation-delay: .08s; }
.stagger > *:nth-child(4) { animation-delay: .12s; } .stagger > *:nth-child(5) { animation-delay: .16s; }
.stagger > *:nth-child(6) { animation-delay: .2s; } .stagger > *:nth-child(n+7) { animation-delay: .24s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

::view-transition-old(root) { animation: vtOut .16s ease-in both; }
::view-transition-new(root) { animation: vtIn .32s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
.tabbar { view-transition-name: tabbar; }
.navbar { view-transition-name: navbar; }

.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
.reduce-motion .cloud { animation: none !important; transform: translateX(calc(var(--w) * .8)); }
@media (prefers-reduced-motion: reduce) { .cloud, .stars { animation: none !important; } }

@media (max-width: 380px) {
  .large-title { font-size: 30px; }
  .q-text { font-size: 20px; }
  .dot[data-i="0"], .dot[data-i="4"] { --s: 48px; }
  .dot[data-i="1"], .dot[data-i="3"] { --s: 40px; }
  .dot[data-i="2"] { --s: 32px; }
  .bubble-sheet { gap: 8px; padding: 14px; }
}
@media (min-width: 900px) { .large-title { font-size: 40px; } }

/* ========== 心理学堂 ========== */
.avatar {
  --s: 56px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; position: relative; isolation: isolate;
  display: grid; place-items: center; color: #fff; font-size: calc(var(--s) * .44); font-weight: 700;
  font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  background: linear-gradient(150deg, color-mix(in srgb, var(--tint) 55%, #fff), var(--tint) 55%, color-mix(in srgb, var(--tint) 70%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 .5px rgba(0, 0, 0, .1), 0 8px 18px color-mix(in srgb, var(--tint) 30%, transparent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.avatar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1; background: radial-gradient(100% 60% at 30% 0%, rgba(255, 255, 255, .55), transparent 60%); }
.avatar::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--tint) 40%, transparent); }
.avatar.sm { --s: 26px; }
.avatar.sm::after { display: none; }
.avatar.xl { --s: 104px; margin: 0 auto; }

.psy-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 12px; overflow-x: auto; padding: 4px 4px 14px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.psy-scroll::-webkit-scrollbar { display: none; }
.psy-card { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 10px 14px; color: var(--label); }
.psy-card .avatar { margin-bottom: 8px; }
.psy-card b { font-size: 14.5px; line-height: 1.3; }
.psy-card > span:not(.avatar) { font-size: 12.5px; color: var(--label2); }
.read-dot { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; }
.mini-tl { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; position: relative; }
.mini-tl::before { content: ""; position: absolute; left: 4%; right: 4%; top: 9px; height: 2px; background: linear-gradient(90deg, var(--indigo), var(--teal), var(--orange)); border-radius: 1px; opacity: .6; }
.mini-tl > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; position: relative; }
.mini-tl > div::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: rgba(var(--glass-rgb), 1); border: 3px solid var(--indigo); margin-top: 2px; }
.mini-tl b { font-size: 13px; font-variant-numeric: tabular-nums; }
.mini-tl span { font-size: 11px; color: var(--label2); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.psy-hero { padding: 30px 20px 24px; }
.psy-tag { text-align: center; font-size: 16.5px; font-weight: 600; margin-top: 14px; line-height: 1.5; }
.sec-ic { display: flex; align-items: center; gap: 8px; }
.sec-ic svg { width: 19px; height: 19px; color: var(--tint, var(--blue)); }
.ideas { display: flex; flex-direction: column; gap: 14px; }
.idea { display: flex; gap: 12px; align-items: flex-start; }
.idea-n { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--tint); margin-top: 1px; }
.idea b { font-size: 15.5px; }
.idea p { margin-top: 2px; }
.quote { margin: 0; padding: 22px 22px 18px; position: relative; }
.quote svg { width: 28px; height: 28px; color: var(--tint); opacity: .6; }
.quote p { font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif; font-size: 19px; line-height: 1.6; font-weight: 600; margin-top: 6px; }
.quote cite { display: block; text-align: right; font-style: normal; color: var(--label2); font-size: 14px; margin-top: 8px; }

.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: linear-gradient(180deg, var(--indigo), var(--teal), var(--orange)); opacity: .55; }
.tl-item { position: relative; }
.tl-item + .tl-item { margin-top: 12px; }
.tl-dot { position: absolute; left: -34px; top: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--indigo); box-shadow: 0 0 0 4px rgba(var(--glass-rgb), .8); }
.tl-card { display: block; color: var(--label); padding: 14px 16px; }
.tl-year { font-size: 13px; font-weight: 700; color: var(--indigo); font-variant-numeric: tabular-nums; }
.tl-card h3 { font-size: 16.5px; font-weight: 650; margin-top: 2px; }
.tl-card p { font-size: 14.5px; color: var(--label2); margin-top: 4px; }
.tl-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--blue); }

.opt.right { background: color-mix(in srgb, var(--green) 22%, rgba(var(--glass-rgb), var(--glass-a))); box-shadow: inset 0 0 0 2px var(--green); }
.opt.right .radio { border-color: var(--green); background: var(--green); }
.opt.wrong { background: color-mix(in srgb, var(--red) 18%, rgba(var(--glass-rgb), var(--glass-a))); box-shadow: inset 0 0 0 2px var(--red); animation: shake .4s; }
.opt.wrong .radio { border-color: var(--red); background: var(--red); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.why { margin-top: 14px; animation: fadeUp .4s var(--ease); }
.why.ok { --tint: var(--green); }
.why.no { --tint: var(--red); }
@media (max-width: 380px) { .tabbar a { font-size: 10px; } .mini-tl span { display: none; } }
