/* =========================================================
   数学星球 · 视觉系统
   ========================================================= */
:root {
  --bg: #f7f2e7;
  --bg-deep: #f0e8d8;
  --paper: #fffdf8;
  --paper-warm: #fbf7ee;
  --ink: #20312b;
  --ink-2: #46564f;
  --muted: #78847e;
  --line: rgba(32, 49, 43, 0.1);
  --line-strong: rgba(32, 49, 43, 0.16);
  --green: #1f5e51;
  --green-2: #2a7a68;
  --green-soft: #e7f1ec;
  --coral: #f47a5b;
  --gold: #f2bc50;
  --blue: #4b84e8;
  --violet: #8874e8;
  --rose: #d96991;
  --shadow: 0 22px 55px -28px rgba(31, 59, 48, 0.4);
  --shadow-soft: 0 10px 28px -18px rgba(31, 59, 48, 0.28);
  --shadow-lift: 0 28px 60px -30px rgba(31, 59, 48, 0.45);
  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 13px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-num: "Avenir Next", "DIN Alternate", "Arial Rounded MT Bold", "Trebuchet MS", var(--font);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1100px 700px at 92% -8%, rgba(242, 188, 80, 0.19), transparent 62%),
    radial-gradient(900px 600px at -8% 18%, rgba(42, 122, 104, 0.12), transparent 60%),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 52%, #f5efe3 100%);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.33;
  background-image: radial-gradient(rgba(31, 94, 81, 0.18) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 75%);
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
a { color: inherit; }
::selection { background: rgba(242, 188, 80, 0.45); }
:focus-visible { outline: 3px solid rgba(31, 94, 81, 0.4); outline-offset: 3px; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--fill { fill: currentColor; stroke: none; }

#app { position: relative; z-index: 1; min-height: 100vh; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.page { width: min(1200px, calc(100% - 48px)); margin: 0 auto; flex: 1; }

.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient-blob { position: absolute; border-radius: 50%; filter: blur(1px); opacity: 0.5; }
.ambient-blob.b1 { width: 420px; height: 420px; right: -160px; top: 120px; background: radial-gradient(circle at 35% 35%, rgba(244,122,91,.18), transparent 68%); }
.ambient-blob.b2 { width: 520px; height: 520px; left: -230px; bottom: -160px; background: radial-gradient(circle at 55% 45%, rgba(42,122,104,.12), transparent 68%); }
.ambient-symbol { position: absolute; color: rgba(31,94,81,.13); font-family: var(--font-num); font-weight: 800; user-select: none; }
.ambient-symbol.s1 { top: 28%; left: 3.5%; font-size: 58px; transform: rotate(-16deg); }
.ambient-symbol.s2 { top: 62%; right: 4.5%; font-size: 46px; transform: rotate(12deg); }
.ambient-symbol.s3 { top: 84%; left: 8%; font-size: 34px; transform: rotate(8deg); }
.ambient-symbol.s4 { top: 17%; right: 8%; font-size: 28px; transform: rotate(-7deg); }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 0;
  background: rgba(251, 247, 239, 0.82);
  border-bottom: 1px solid rgba(32, 49, 43, 0.07);
  backdrop-filter: blur(18px) saturate(1.25);
}
.topbar-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; background: none; border: 0; padding: 0; text-align: left; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center;
  background: var(--green); color: #fff8e8; box-shadow: 0 8px 20px -9px rgba(31,94,81,.7);
  transition: transform .4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-7deg) scale(1.04); }
.brand-mark svg { width: 30px; height: 30px; }
.brand-type { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand-type strong { font-size: 17px; letter-spacing: 0.06em; font-weight: 800; }
.brand-type small { font-family: var(--font-num); font-size: 8px; letter-spacing: 0.24em; color: var(--muted); font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; padding: 5px; border: 1px solid var(--line); background: rgba(255,253,248,.7); border-radius: 999px; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 7px;
  border: 0; background: transparent; border-radius: 999px; padding: 9px 15px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 600; transition: all .25s var(--ease);
}
.nav-link .icon { width: 17px; height: 17px; opacity: .8; }
.nav-link:hover { background: rgba(31, 94, 81, 0.07); color: var(--green); }
.nav-link.is-active { background: var(--ink); color: #fff9ed; box-shadow: 0 3px 10px rgba(32,49,43,.16); }
.nav-link.is-active .icon { opacity: 1; }
.nav-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--coral); color: white; font-family: var(--font-num);
  font-size: 10px; font-weight: 800; display: inline-grid; place-items: center;
}
.nav-link.is-active .nav-badge { background: var(--gold); color: var(--ink); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.icon-btn {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(255,253,248,.8); display: grid; place-items: center; color: var(--ink-2);
  transition: all .25s var(--ease);
}
.icon-btn:hover { background: #fff; color: var(--green); transform: translateY(-1px); }
.icon-btn .icon { width: 17px; height: 17px; }
.streak-pill {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  background: #fff4e0; border: 1px solid rgba(242,188,80,.28); color: #8a5d12;
  font-size: 12px; font-weight: 700;
}
.streak-pill .icon { width: 15px; height: 15px; color: var(--coral); fill: rgba(244,122,91,.18); }
.streak-pill strong { font-family: var(--font-num); font-size: 14px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 999px; padding: 12px 20px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.01em; text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s, color .22s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .icon { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn-primary { background: var(--green); color: #fffaf0; box-shadow: 0 10px 22px -12px rgba(31,94,81,.7); }
.btn-primary:hover { background: #184d42; transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(31,94,81,.7); }
.btn-coral { background: var(--coral); color: white; box-shadow: 0 10px 24px -13px rgba(244,122,91,.8); }
.btn-coral:hover { background: #e86b4d; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,253,248,.7); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-light { background: #fffaf0; color: var(--ink); }
.btn-light:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(0,0,0,.35); }
.btn-dark-ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.26); color: #fffaf0; }
.btn-dark-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn-lg { padding: 15px 25px; font-size: 15px; }
.btn-sm { padding: 9px 15px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.text-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.text-btn:hover:not(:disabled) { color: var(--green); }
.text-btn:disabled { opacity: .32; cursor: not-allowed; }
.text-btn .icon { width: 16px; height: 16px; }

/* ---------- 恢复考试 ---------- */
.resume-strip {
  display: flex; align-items: center; gap: 13px; margin: 20px 0 -24px; padding: 13px 16px;
  border: 1px solid rgba(242,188,80,.3); border-radius: 18px;
  background: linear-gradient(135deg, #fff9ec, #fffdf8); box-shadow: var(--shadow-soft);
}
.resume-icon { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fff0d1; color: #a46e0a; }
.resume-icon .icon { width: 18px; height: 18px; }
.resume-copy { min-width: 0; flex: 1; }
.resume-copy strong { display: block; font-size: 12.5px; }
.resume-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
@media (max-width: 600px) {
  .resume-strip { margin: 12px 0 0; flex-wrap: wrap; gap: 9px; }
  .resume-strip .btn { width: 100%; }
}

/* ---------- 首屏 ---------- */
.hero {
  display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 34px;
  padding: 62px 0 46px; min-height: 560px;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px;
  border-radius: 999px; border: 1px solid rgba(31,94,81,.14); background: rgba(255,253,248,.6);
  color: var(--green); font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(244,122,91,.13); animation: pulseDot 2.4s infinite; }
.hero h1 {
  margin: 23px 0 18px; font-size: clamp(42px, 5.1vw, 70px); line-height: 1.1;
  letter-spacing: -.055em; font-weight: 850;
}
.hero h1 em { position: relative; display: inline-block; font-style: normal; color: var(--green); white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -.04em; right: -.08em; bottom: .055em; height: .32em;
  background: linear-gradient(90deg, rgba(244,122,91,.46), rgba(242,188,80,.62));
  border-radius: 999px; z-index: -1; transform: rotate(-1.2deg);
}
.hero-lead { max-width: 520px; margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; align-items: center; gap: 26px; margin-top: 38px; }
.hero-meta > div { display: flex; flex-direction: column; gap: 3px; }
.hero-meta strong { font-family: var(--font-num); font-size: 25px; line-height: 1; letter-spacing: -.03em; }
.hero-meta span { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.hero-meta .divider { width: 1px; height: 24px; background: var(--line-strong); }

.hero-art { position: relative; height: 470px; display: grid; place-items: center; }
.orbit-stage { position: relative; width: 100%; max-width: 500px; height: 440px; }
.stage-glow { position: absolute; inset: 8% 4% 2%; border-radius: 50%; background: radial-gradient(circle, rgba(242,188,80,.24), rgba(244,122,91,.08) 48%, transparent 70%); filter: blur(12px); }
.orbit-ring { position: absolute; left: 50%; top: 50%; border: 1px dashed rgba(31,94,81,.22); border-radius: 50%; transform: translate(-50%, -50%) rotate(-18deg); }
.orbit-ring.r1 { width: 390px; height: 250px; }
.orbit-ring.r2 { width: 330px; height: 330px; border-style: solid; border-color: rgba(31,94,81,.08); transform: translate(-50%, -50%); }
.hero-planet {
  position: absolute; left: 50%; top: 47%; width: 216px; height: 216px; border-radius: 50%;
  translate: -50% -50%; transform: none; background:
    radial-gradient(circle at 32% 26%, #ffd68d 0 8%, transparent 9%),
    radial-gradient(circle at 65% 18%, rgba(255,255,255,.36) 0 5%, transparent 6%),
    radial-gradient(circle at 35% 35%, #f7b767 0, #f08b66 42%, #e56c55 78%);
  box-shadow: inset -20px -24px 40px rgba(130,45,32,.24), 0 30px 70px -22px rgba(213,92,65,.55);
  animation: planetFloat 7s ease-in-out infinite;
}
.hero-planet::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 300px; height: 70px;
  border: 2px solid rgba(255,250,235,.64); border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-16deg);
  box-shadow: 0 0 0 5px rgba(255,250,235,.09);
}
.hero-planet::after {
  content: ""; position: absolute; width: 62px; height: 15px; border-radius: 50%;
  left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-16deg) translateX(146px);
  background: #fff4d3; box-shadow: 0 0 18px rgba(255,236,181,.8);
}
.planet-face { position: absolute; inset: 0; z-index: 2; }
.planet-eye { position: absolute; top: 82px; width: 13px; height: 17px; border-radius: 50%; background: #5e2b25; }
.planet-eye.left { left: 72px; }
.planet-eye.right { right: 72px; }
.planet-smile { position: absolute; left: 50%; top: 108px; width: 48px; height: 25px; transform: translateX(-50%); border-bottom: 4px solid #5e2b25; border-radius: 0 0 40px 40px; }
.planet-blush { position: absolute; top: 113px; width: 25px; height: 12px; border-radius: 50%; background: rgba(221,70,69,.35); filter: blur(1px); }
.planet-blush.left { left: 45px; }
.planet-blush.right { right: 45px; }
.planet-star { position: absolute; color: #fff7dc; font-size: 15px; }
.planet-star.s1 { top: 48px; left: 42px; transform: rotate(15deg); }
.planet-star.s2 { top: 38px; right: 52px; font-size: 10px; }
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px;
  background: rgba(255,253,248,.94); border: 1px solid rgba(32,49,43,.09); border-radius: 16px;
  padding: 10px 14px; box-shadow: 0 16px 30px -18px rgba(31,59,48,.36); font-size: 12px; font-weight: 700;
  backdrop-filter: blur(8px); animation: chipFloat 6s ease-in-out infinite;
}
.float-chip .chip-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-num); font-weight: 800; }
.chip-a { left: 2%; top: 18%; rotate: -4deg; }
.chip-a .chip-icon { background: #fff0e8; color: var(--coral); }
.chip-b { right: 0; top: 29%; rotate: 4deg; animation-delay: -2.4s; }
.chip-b .chip-icon { background: #e9f5f0; color: var(--green); font-size: 10px; }
.chip-c { left: 8%; bottom: 15%; rotate: 3deg; animation-delay: -4s; }
.chip-c .chip-icon { background: #fff6df; color: #a46e0a; }
.hero-note {
  position: absolute; right: 4%; bottom: 7%; z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 14px 17px; background: var(--ink); color: #fff9ed; border-radius: 19px;
  box-shadow: 0 18px 36px -20px rgba(31,59,48,.55); transform: rotate(1.5deg);
}
.hero-note .note-planet { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(242,188,80,.14); }
.hero-note span { display: block; color: rgba(255,249,237,.6); font-size: 9px; letter-spacing: .13em; }
.hero-note strong { font-family: var(--font-num); font-size: 18px; }
.hero-note strong small { font-size: 10px; font-weight: 500; opacity: .6; margin-left: 2px; }
.sparkle { position: absolute; color: var(--gold); z-index: 3; animation: twinkle 3.6s ease-in-out infinite; }
.sparkle.s1 { left: 18%; top: 9%; font-size: 19px; }
.sparkle.s2 { right: 16%; bottom: 18%; font-size: 13px; animation-delay: -1.4s; }

/* ---------- 年级与分组 ---------- */
.grade-section { padding: 30px 0 20px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 20px; }
.section-kicker { display: block; margin-bottom: 7px; font-family: var(--font-num); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.section-head h2 { margin: 0; font-size: clamp(25px, 2.7vw, 34px); line-height: 1.2; letter-spacing: -.035em; font-weight: 800; }
.grade-switch {
  display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,253,248,.72); box-shadow: 0 6px 18px -16px rgba(31,59,48,.4);
}
.grade-pill {
  display: flex; align-items: center; gap: 6px; border: 0; background: transparent;
  padding: 8px 11px; border-radius: 999px; color: var(--ink-2); transition: all .25s var(--ease);
}
.grade-pill-num { font-family: var(--font-num); font-size: 14px; font-weight: 800; }
.grade-pill-name { font-size: 11px; font-weight: 600; opacity: .72; }
.grade-pill:hover { background: rgba(31,94,81,.07); color: var(--green); }
.grade-pill.is-active { background: var(--ink); color: #fff9ed; box-shadow: 0 8px 18px -9px rgba(32,49,43,.42); }
.grade-pill.is-active .grade-pill-name { opacity: .8; }

.grade-banner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.35fr .65fr; gap: 26px;
  border-radius: var(--r-xl); background: #1e4f45; color: #fff9ed; padding: 34px 38px;
  box-shadow: var(--shadow);
}
.grade-banner::before {
  content: ""; position: absolute; right: -80px; top: -150px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent, var(--gold)) 58%, transparent), transparent 68%);
  opacity: .8;
}
.grade-banner::after {
  content: attr(data-grade); position: absolute; right: 26px; bottom: -46px; font-family: var(--font-num);
  font-size: 180px; line-height: 1; font-weight: 900; color: rgba(255,255,255,.045); letter-spacing: -.08em;
}
.grade-banner-copy { position: relative; z-index: 2; }
.grade-eyebrow { display: block; color: rgba(255,249,237,.58); font-family: var(--font-num); font-size: 9.5px; letter-spacing: .2em; font-weight: 700; }
.grade-banner h2 { display: flex; align-items: center; gap: 10px; margin: 10px 0 7px; font-size: clamp(29px, 3.2vw, 40px); letter-spacing: -.04em; font-weight: 850; }
.theme-tag { display: inline-block; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent, var(--gold)) 25%, transparent); color: #fff7e2; border: 1px solid rgba(255,255,255,.14); font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.grade-banner p { max-width: 580px; margin: 0; color: rgba(255,249,237,.7); font-size: 13.5px; line-height: 1.85; }
.grade-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.grade-banner-stats { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.mini-progress-card { padding: 17px 18px; border-radius: 20px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.mini-progress-card .mpc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mini-progress-card span { display: block; color: rgba(255,249,237,.55); font-size: 10px; letter-spacing: .1em; }
.mini-progress-card strong { display: block; margin-top: 4px; font-family: var(--font-num); font-size: 26px; line-height: 1; }
.mini-progress-card strong small { font-size: 11px; opacity: .5; }
.mpc-ring { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent, var(--gold)) calc(var(--p) * 1%), rgba(255,255,255,.13) 0); font-family: var(--font-num); font-size: 10px; font-weight: 800; color: #fff9ed; }
.mpc-ring::before { content: ""; position: absolute; }
.mpc-track { height: 5px; border-radius: 99px; background: rgba(255,255,255,.14); margin-top: 11px; overflow: hidden; }
.mpc-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent, var(--gold)); transition: width .8s var(--ease); }
.grade-banner .daily-line { display: flex; justify-content: space-between; margin-top: 7px; color: rgba(255,249,237,.52); font-size: 10px; }

.group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 16px; }
.group-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 258px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: rgba(255,253,248,.86); box-shadow: 0 2px 0 rgba(255,255,255,.8) inset;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  animation: cardIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms);
}
.group-card::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: -46px; top: -48px; background: var(--accent, var(--green)); opacity: .07; transition: transform .45s var(--ease), opacity .35s; }
.group-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent, var(--green)) 34%, transparent); box-shadow: var(--shadow); }
.group-card:hover::after { transform: scale(1.3); opacity: .11; }
.group-top { display: flex; align-items: flex-start; justify-content: space-between; }
.group-icon {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent, var(--green)) 12%, #fffdf8);
  color: var(--accent, var(--green)); border: 1px solid color-mix(in srgb, var(--accent, var(--green)) 16%, transparent);
}
.group-icon .icon { width: 24px; height: 24px; stroke-width: 1.7; }
.group-index { font-family: var(--font-num); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; opacity: .6; }
.group-card h3 { margin: 17px 0 7px; font-size: 18.5px; letter-spacing: -.025em; font-weight: 800; }
.group-card p { margin: 0; color: var(--ink-2); font-size: 12px; line-height: 1.75; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.type-block { margin-top: 10px; }
.type-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 8.5px; letter-spacing: .1em; }
.type-head b { color: var(--ink-2); font-family: var(--font-num); font-size: 10px; letter-spacing: 0; }
.type-row { margin-top: 5px; gap: 4px; }
.type-row .tag { font-size: 9px; padding: 3px 6px; }
.tag-count { background: transparent !important; border: 1px dashed var(--line-strong); color: var(--muted) !important; }
.type-more { cursor: pointer; font-family: var(--font); transition: all .2s; }
.type-more:hover { border-color: var(--accent, var(--green)); color: var(--accent, var(--green)) !important; background: color-mix(in srgb, var(--accent, var(--green)) 7%, transparent) !important; }
.type-toggle { display: inline-flex; align-items: center; gap: 3px; margin-top: 7px; padding: 2px 0; border: 0; background: transparent; color: color-mix(in srgb, var(--accent, var(--green)) 72%, var(--ink)); font-family: var(--font); font-size: 10px; font-weight: 800; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.type-toggle:hover { color: var(--accent, var(--green)); }
.type-toggle .icon { width: 11px; height: 11px; transition: transform .25s var(--ease); }
.type-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.type-block.is-expanded .type-row { animation: feedbackIn .25s var(--ease) both; }
.calc-count { padding: 2px 6px; border-radius: 999px; background: rgba(32,49,43,.06); color: var(--muted); font-family: var(--font-num); font-size: 8px; font-weight: 700; letter-spacing: 0; }
.tag {
  padding: 4px 8px; border-radius: 6px; background: color-mix(in srgb, var(--accent, var(--green)) 7%, transparent);
  color: color-mix(in srgb, var(--accent, var(--green)) 72%, var(--ink)); font-size: 9.5px; font-weight: 600;
}
.card-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.mastery { display: flex; align-items: center; gap: 8px; color: #68766f; font-size: 10px; }
.mastery-bar { flex: 1; height: 4px; border-radius: 99px; background: rgba(32,49,43,.08); overflow: hidden; }
.mastery-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent, var(--green)); transition: width .9s var(--ease); }
.mastery b { font-family: var(--font-num); color: var(--ink-2); font-size: 10.5px; min-width: 26px; text-align: right; }
.group-actions { display: flex; gap: 6px; margin-top: 12px; }
.mini-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--green)) 14%, transparent); border-radius: 10px; padding: 8px 9px; font-size: 11px; font-weight: 800;
  background: color-mix(in srgb, var(--accent, var(--green)) 10%, #fffdf8); color: var(--ink);
  transition: all .22s var(--ease);
}
.mini-btn .icon { width: 13px; height: 13px; }
.mini-btn:hover { background: var(--accent, var(--green)); color: white; transform: translateY(-1px); }
.mini-btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink-2); }
.mini-btn-outline:hover { background: var(--ink); border-color: var(--ink); color: white; }
.special-card { background: var(--ink); color: #fff9ed; border-color: transparent; }
.special-card::after { width: 190px; height: 190px; background: var(--gold); opacity: .12; right: -70px; top: -70px; }
.special-card .group-icon { background: rgba(255,255,255,.08); color: var(--gold); border-color: rgba(255,255,255,.15); }
.special-card p { color: rgba(255,249,237,.62); }
.special-card .card-footer { border-color: rgba(255,255,255,.1); }
.special-card .mastery { color: rgba(255,249,237,.5); }
.special-card .mastery b { color: #fff9ed; }
.special-card .tag { color: rgba(255,249,237,.86); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.08); }
.special-card .mini-btn { background: rgba(255,255,255,.12); color: #fff9ed; border-color: rgba(255,255,255,.16); }
.special-card .mini-btn:hover { background: var(--gold); color: var(--ink); }
.special-card .mini-btn-outline { background: transparent; border-color: rgba(255,255,255,.22); color: rgba(255,249,237,.8); }
.special-orbit { position: absolute; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; right: -20px; bottom: -36px; }
.special-orbit::before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); left: 18px; top: 15px; box-shadow: 0 0 0 6px rgba(242,188,80,.1); }

/* ---------- 计算专项 ---------- */
.calc-strip {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px; align-items: center; margin-top: 16px; padding: 19px 22px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--green)) 20%, var(--line));
  border-radius: 23px; background:
    radial-gradient(420px 140px at 8% 0%, color-mix(in srgb, var(--accent, var(--green)) 10%, transparent), transparent 70%),
    linear-gradient(135deg, rgba(255,253,248,.96), rgba(255,250,240,.9));
  box-shadow: var(--shadow-soft);
}
.calc-strip::after { content: ""; position: absolute; right: -34px; top: -58px; width: 170px; height: 170px; border: 1px dashed color-mix(in srgb, var(--accent, var(--green)) 20%, transparent); border-radius: 50%; pointer-events: none; }
.calc-strip-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent, var(--green)) 12%, #fffdf8); color: var(--accent, var(--green)); border: 1px solid color-mix(in srgb, var(--accent, var(--green)) 18%, transparent); }
.calc-strip-icon .icon { width: 26px; height: 26px; }
.calc-strip-copy { min-width: 0; }
.calc-eyebrow { display: block; margin-bottom: 4px; color: var(--muted); font-family: var(--font-num); font-size: 8.5px; font-weight: 800; letter-spacing: .17em; }
.calc-strip h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 3px; font-size: 17px; letter-spacing: -.02em; }
.calc-new { padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent, var(--green)) 11%, transparent); color: color-mix(in srgb, var(--accent, var(--green)) 72%, var(--ink)); font-size: 8px; font-weight: 800; letter-spacing: .04em; }
.calc-strip p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.65; }
.calc-strip .tag-row { margin-top: 7px; }
.calc-strip-side { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-left: 16px; border-left: 1px solid var(--line); }
.calc-mastery { display: flex; align-items: baseline; gap: 7px; color: var(--muted); font-size: 9px; }
.calc-mastery strong { color: var(--ink); font-family: var(--font-num); font-size: 18px; line-height: 1; }
.calc-actions { display: flex; gap: 6px; }
.calc-actions .btn { padding: 8px 12px; font-size: 10.5px; }
.calc-actions .btn .icon { width: 14px; height: 14px; }

/* ---------- 趣味奥数 ---------- */
.fun-strip {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--gold) 42%, transparent);
  background:
    radial-gradient(440px 150px at 12% 0%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%),
    linear-gradient(135deg, rgba(255,253,248,.96), rgba(255,249,236,.92));
}
.fun-strip::after { border-style: dotted; border-color: color-mix(in srgb, var(--gold) 34%, transparent); }
.fun-strip .calc-strip-icon { background: color-mix(in srgb, var(--gold) 20%, #fffdf8); color: #96620d; border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.fun-strip .calc-new { background: color-mix(in srgb, var(--gold) 24%, transparent); color: #855808; }

/* ---------- 首页底部 ---------- */
.home-bottom { display: grid; grid-template-columns: 1.4fr .6fr; gap: 16px; padding: 18px 0 60px; }
.insight-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; padding: 24px 26px; background: rgba(255,253,248,.78); border: 1px solid var(--line); border-radius: var(--r-lg); }
.insight-copy h3 { margin: 0 0 7px; font-size: 17px; letter-spacing: -.02em; }
.insight-copy p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.insight-big { display: flex; align-items: baseline; gap: 5px; margin-top: 13px; }
.insight-big strong { font-family: var(--font-num); font-size: 34px; letter-spacing: -.04em; }
.insight-big span { color: var(--muted); font-size: 11px; }
.week-bars { display: flex; align-items: flex-end; gap: 8px; min-height: 110px; padding-top: 4px; }
.week-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.week-bar i { display: block; width: 100%; max-width: 28px; height: var(--h); min-height: 4px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--coral), rgba(244,122,91,.55)); transition: height .8s var(--ease); }
.week-bar:nth-child(7) i { background: linear-gradient(180deg, var(--gold), rgba(242,188,80,.5)); }
.week-bar.is-empty i { background: #e7dfd1; }
.week-bar span { color: var(--muted); font-size: 9px; }
.quote-card { position: relative; overflow: hidden; padding: 24px; border-radius: var(--r-lg); background: #eaf3ee; border: 1px solid rgba(31,94,81,.1); display: flex; flex-direction: column; justify-content: space-between; }
.quote-card .quote-mark { font-family: Georgia, serif; font-size: 54px; line-height: .7; color: rgba(31,94,81,.22); }
.quote-card p { margin: 8px 0 14px; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.quote-card small { color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.quote-card::after { content: "✦"; position: absolute; right: 16px; top: 12px; color: rgba(31,94,81,.18); font-size: 26px; }

.footer { border-top: 1px solid var(--line); padding: 22px 0 30px; }
.footer-inner { width: min(1200px, calc(100% - 48px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.footer-inner strong { color: var(--ink-2); }
.footer-seal { display: flex; align-items: center; gap: 7px; white-space: nowrap; }

/* ---------- 弹窗与设置 ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(24,38,33,.44); backdrop-filter: blur(7px); display: grid; place-items: center; padding: 24px; animation: fadeIn .25s ease both; }
.modal {
  position: relative; width: min(660px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--paper); border: 1px solid rgba(255,255,255,.6); border-radius: var(--r-xl);
  box-shadow: 0 40px 90px -30px rgba(10,30,23,.5); animation: modalIn .4s var(--ease) both;
}
.modal-close { position: absolute; right: 17px; top: 17px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,253,248,.8); display: grid; place-items: center; color: var(--muted); transition: all .2s; }
.modal-close:hover { background: var(--ink); color: white; transform: rotate(90deg); }
.modal-close .icon { width: 16px; height: 16px; }
.modal-kicker { display: block; margin-bottom: 7px; font-family: var(--font-num); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.setup-modal { display: flex; flex-direction: column; overflow: hidden; }
.setup-head { flex: none; display: flex; gap: 15px; padding: 28px 28px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(242,188,80,.08), transparent 60%); }
.setup-icon { flex: none; width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.setup-icon .icon { width: 28px; height: 28px; }
.setup-head h2 { margin: 0 0 5px; font-size: 24px; letter-spacing: -.03em; }
.setup-head p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.65; }
.setup-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 28px 6px; }
.field { margin-bottom: 20px; }
.field-label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--ink-2); }
.field-label > span:first-child { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--ink); color: white; font-family: var(--font-num); font-size: 11px; }
.field-label em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 10.5px; font-weight: 500; letter-spacing: 0; }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.scope-card { position: relative; text-align: left; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 15px; background: var(--paper-warm); transition: all .22s var(--ease); }
.scope-card:hover { border-color: rgba(31,94,81,.3); transform: translateY(-1px); }
.scope-card.is-active { border-color: var(--green); background: #edf6f1; box-shadow: 0 0 0 3px rgba(31,94,81,.07); }
.scope-card strong { display: block; padding-right: 18px; font-size: 13px; line-height: 1.35; }
.scope-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.scope-card em { display: block; margin-top: 4px; color: var(--muted); font-style: normal; font-size: 10px; line-height: 1.45; }
.scope-radio { position: absolute; right: 11px; top: 11px; width: 14px; height: 14px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: white; }
.scope-card.is-active .scope-radio { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px #edf6f1; }
.scope-all { grid-column: 1 / -1; }
.scope-hint { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-card { position: relative; text-align: left; padding: 15px; border: 1.5px solid var(--line); border-radius: 17px; background: var(--paper-warm); transition: all .25s var(--ease); }
.mode-card:hover { border-color: rgba(31,94,81,.3); transform: translateY(-2px); }
.mode-card.is-active { border-color: var(--green); background: #edf6f1; box-shadow: 0 0 0 3px rgba(31,94,81,.07); }
.mode-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: white; color: var(--green); margin-bottom: 10px; border: 1px solid var(--line); }
.mode-icon .icon { width: 17px; height: 17px; }
.mode-card strong { display: block; font-size: 13.5px; }
.mode-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.mode-radio { position: absolute; right: 13px; top: 13px; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: white; }
.mode-card.is-active .mode-radio { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3.5px #edf6f1; }
.count-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.count-card { text-align: left; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper-warm); transition: all .25s var(--ease); }
.count-card:hover { border-color: rgba(31,94,81,.3); transform: translateY(-2px); }
.count-card.is-active { border-color: var(--green); background: #edf6f1; box-shadow: 0 0 0 3px rgba(31,94,81,.07); }
.count-card strong { display: block; font-family: var(--font-num); font-size: 26px; line-height: 1; letter-spacing: -.04em; }
.count-card span { display: block; margin-top: 5px; font-size: 10px; font-weight: 700; }
.count-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.setup-note { display: flex; gap: 9px; padding: 12px 14px; border-radius: 13px; background: #fff7e6; border: 1px solid rgba(242,188,80,.2); color: #7c5b18; font-size: 10.5px; line-height: 1.65; }
.setup-note .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; color: #b68117; }
.calc-setup-note { margin-top: 8px; background: #eef7f1; border-color: rgba(31,94,81,.14); color: #356e5e; }
.calc-setup-note .icon { color: var(--green); }
.setup-types { margin-top: 9px; padding: 11px 12px; border: 1px dashed var(--line-strong); border-radius: 13px; background: var(--paper-warm); max-height: 138px; overflow: auto; }
.setup-types-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink-2); font-size: 9.5px; font-weight: 700; }
.setup-types-head b { color: var(--green); font-family: var(--font-num); font-size: 10px; }
.setup-types .tag-row { margin-top: 7px; }
.setup-types .tag { font-size: 9px; padding: 4px 7px; }
.setup-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px 24px; border-top: 1px solid var(--line); background: var(--paper); box-shadow: 0 -8px 18px -20px rgba(31,59,48,.3); }
.setup-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.setup-summary strong { color: var(--ink-2); font-size: 10.5px; }
.setup-summary .dot { color: var(--line-strong); }

/* ---------- 答题页 ---------- */
.quiz-page { width: 100%; max-width: none; min-height: 100vh; background: linear-gradient(180deg, #faf6ec 0%, #f4eee2 100%); }
.quiz-topbar { position: sticky; top: 0; z-index: 50; background: rgba(250,246,236,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.quiz-topbar-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; min-height: 68px; display: flex; align-items: center; gap: 14px; }
.back-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; color: var(--ink-2); transition: all .2s; }
.back-btn:hover { background: var(--ink); color: white; }
.back-btn .icon { width: 17px; height: 17px; }
.quiz-title { min-width: 0; display: flex; align-items: center; gap: 9px; }
.quiz-title h1 { margin: 0; font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quiz-title small { display: block; margin-top: 2px; color: var(--muted); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode-chip { flex: none; padding: 4px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.mode-chip.practice { color: var(--green); background: var(--green-soft); }
.mode-chip.exam { color: #8c5b11; background: #fff1d7; }
.quiz-top-right { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.timer-pill { display: flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font-family: var(--font-num); font-size: 12px; font-weight: 700; }
.timer-pill .icon { width: 14px; height: 14px; color: var(--muted); }
.mobile-sheet-btn { display: none; }
.quiz-progress { height: 3px; background: rgba(32,49,43,.07); }
.quiz-progress span { display: block; height: 100%; border-radius: 0 99px 99px 0; background: linear-gradient(90deg, var(--green), var(--green-2)); transition: width .5s var(--ease); }
.quiz-layout { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 24px; padding: 24px 0 64px; align-items: start; }
.question-panel { min-height: 620px; display: flex; flex-direction: column; padding: 30px 32px 24px; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); box-shadow: var(--shadow); }
.question-panel.enter { animation: questionIn .42s var(--ease) both; }
.question-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.question-index { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.question-index strong { color: var(--ink); font-family: var(--font-num); font-size: 19px; letter-spacing: -.02em; }
.question-tags { display: flex; align-items: center; gap: 7px; }
.difficulty { padding: 4px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.difficulty.l1 { background: #eaf4ef; color: #27715f; }
.difficulty.l2 { background: #fff4dd; color: #986813; }
.difficulty.l3 { background: #ffede9; color: #b34f38; }
.topic-pill { padding: 4px 9px; border-radius: 999px; background: rgba(32,49,43,.045); color: var(--muted); font-size: 9px; font-weight: 600; }
.question-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.question-prompt { margin: 2px 0 30px; font-size: clamp(24px, 2.7vw, 31px); line-height: 1.75; font-weight: 650; letter-spacing: -.02em; word-break: break-word; text-wrap: pretty; }
.question-prompt.long { font-size: clamp(19px, 2.05vw, 24px); line-height: 1.9; }
.question-prompt .frac { margin: 0 3px; vertical-align: middle; transform: translateY(-2px); }
.frac { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 1.4em; line-height: 1.05; vertical-align: middle; font-family: var(--font-num); font-size: .8em; font-weight: 700; transform: translateY(-.04em); }
.frac-n { padding: 0 .18em .07em; border-bottom: 1.5px solid currentColor; }
.frac-d { padding: .07em .18em 0; }
.mixed-num { display: inline-flex; align-items: center; gap: .12em; vertical-align: middle; }
.fraction-bar { display: inline-flex; width: min(320px, 100%); height: 34px; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; vertical-align: middle; margin: 6px 4px; background: white; }
.bar-cell { flex: 1; border-right: 1px solid rgba(32,49,43,.24); background: #fff; }
.bar-cell:last-child { border-right: 0; }
.bar-cell.is-shaded { background: var(--bar-color, var(--gold)); }
.shape-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 4px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-warm); vertical-align: middle; }
.shape-token { width: 32px; height: 32px; display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--ink-2); }
.mini-grid { display: inline-grid; grid-template-columns: repeat(5, 30px); gap: 3px; margin: 8px 4px; vertical-align: middle; }
.grid-cell { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 5px; display: grid; place-items: center; background: white; font-size: 14px; }
.grid-cell.is-target { background: #fff2d7; border-color: rgba(242,188,80,.6); }
.inline-shapes { display: inline-flex; gap: 4px; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.options-grid.single { grid-template-columns: 1fr; }
.options-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.option-card {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 70px;
  padding: 14px 15px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper-warm);
  text-align: left; transition: all .22s var(--ease); overflow: hidden;
}
.option-card:hover:not(:disabled) { border-color: rgba(31,94,81,.35); background: #fdf9f0; transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.option-card:disabled { cursor: default; }
.option-key { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: white; border: 1px solid var(--line); font-family: var(--font-num); font-size: 12px; font-weight: 800; color: var(--muted); transition: all .2s; }
.option-text { flex: 1; font-size: 14px; line-height: 1.55; font-weight: 600; }
.option-text .frac { font-size: .9em; }
.option-state { flex: none; width: 20px; height: 20px; display: grid; place-items: center; }
.option-state .icon { width: 16px; height: 16px; }
.option-card.is-selected { border-color: var(--ink); background: #f7f5ee; box-shadow: 0 0 0 2px rgba(32,49,43,.08); }
.option-card.is-selected .option-key { background: var(--ink); color: white; border-color: var(--ink); }
.option-card.is-correct { border-color: #2f8b6f; background: #eef8f2; box-shadow: 0 0 0 2px rgba(47,139,111,.08); }
.option-card.is-correct .option-key { background: #2f8b6f; color: white; border-color: #2f8b6f; }
.option-card.is-wrong { border-color: #db664e; background: #fff4f0; animation: shake .4s ease; }
.option-card.is-wrong .option-key { background: #db664e; color: white; border-color: #db664e; }
.option-card.is-reveal { border-style: dashed; border-color: #2f8b6f; }
.option-card.is-reveal .option-state { color: #2f8b6f; }

.answer-zone { display: flex; flex-direction: column; align-items: center; gap: 13px; padding: 12px 0 2px; }
.answer-field { display: flex; align-items: center; justify-content: center; gap: 6px; width: min(360px, 100%); min-height: 76px; padding: 8px 18px; border: 2px solid var(--line-strong); border-radius: 20px; background: white; transition: all .2s; }
.answer-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,94,81,.09); }
.answer-field.is-correct { border-color: #2f8b6f; background: #f4fbf7; }
.answer-field.is-wrong { border-color: #db664e; background: #fff7f4; }
.answer-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; text-align: center; color: var(--ink); font-family: var(--font-num); font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.answer-field input::placeholder { color: rgba(32,49,43,.2); font-family: var(--font); font-size: 16px; font-weight: 500; }
.answer-unit { color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.input-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.symbol-btn { min-width: 34px; height: 31px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-warm); color: var(--ink-2); font-family: var(--font-num); font-size: 13px; font-weight: 700; transition: all .18s; }
.symbol-btn:hover { background: white; border-color: var(--line-strong); transform: translateY(-1px); }
.symbol-btn.wide { font-family: var(--font); font-size: 10px; font-weight: 600; }
.answer-tip { color: var(--muted); font-size: 10px; }

.feedback { margin-top: 20px; padding: 17px 18px; border-radius: 18px; animation: feedbackIn .35s var(--ease) both; }
.feedback.is-correct { background: #eef8f2; border: 1px solid rgba(47,139,111,.2); }
.feedback.is-wrong { background: #fff4ee; border: 1px solid rgba(219,102,78,.18); }
.feedback-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.feedback-icon { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; color: white; flex: none; }
.feedback.is-correct .feedback-icon { background: #2f8b6f; }
.feedback.is-wrong .feedback-icon { background: #db664e; }
.feedback-icon .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.feedback-head strong { font-size: 13.5px; }
.feedback-answer { margin-left: auto; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.66); font-size: 10.5px; color: var(--ink-2); }
.feedback-answer b { font-family: var(--font-num); }
.feedback-explain { color: var(--ink-2); font-size: 12.5px; line-height: 1.85; }
.feedback-explain .frac { font-size: .9em; }
.auto-next-hint { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed rgba(47,139,111,.22); color: #24735d; font-size: 10px; font-weight: 600; }
.auto-next-hint i { width: 13px; height: 13px; border: 1.5px solid rgba(47,139,111,.25); border-top-color: #2f8b6f; border-radius: 50%; animation: spin .75s linear infinite; }
.question-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.foot-hint { color: var(--muted); font-size: 9.5px; letter-spacing: .02em; text-align: center; }
.foot-hint kbd { display: inline-block; padding: 1px 5px; border: 1px solid var(--line-strong); border-radius: 4px; background: white; font-family: var(--font-num); font-size: 9px; }

.quiz-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 12px; }
.side-card { padding: 19px; border: 1px solid var(--line); border-radius: 23px; background: rgba(255,253,248,.9); box-shadow: var(--shadow-soft); }
.side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.side-head span { display: block; color: var(--muted); font-size: 9.5px; letter-spacing: .1em; }
.side-head strong { display: block; margin-top: 4px; font-family: var(--font-num); font-size: 17px; }
.side-head strong small { color: var(--muted); font-size: 10px; font-weight: 500; }
.answer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 15px 0 11px; max-height: 356px; overflow: auto; padding-right: 2px; }
.answer-cell { aspect-ratio: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-warm); color: var(--muted); font-family: var(--font-num); font-size: 10px; font-weight: 700; display: grid; place-items: center; transition: all .18s; }
.answer-cell:hover { border-color: var(--green); color: var(--green); }
.answer-cell.is-current { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: white; }
.answer-cell.is-answered { background: var(--green-soft); border-color: rgba(31,94,81,.2); color: var(--green); }
.answer-cell.is-correct { background: #e5f5ed; border-color: rgba(47,139,111,.3); color: #23705a; }
.answer-cell.is-wrong { background: #ffede8; border-color: rgba(219,102,78,.3); color: #b74e37; }
.answer-cell.is-current.is-wrong { box-shadow: inset 0 0 0 1.5px #db664e; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8.5px; }
.legend span { display: flex; align-items: center; gap: 4px; }
.legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.legend .l-current { background: var(--ink); }
.legend .l-answered { background: var(--green-soft); border: 1px solid rgba(31,94,81,.2); }
.legend .l-correct { background: #e5f5ed; border: 1px solid rgba(47,139,111,.3); }
.legend .l-wrong { background: #ffede8; border: 1px solid rgba(219,102,78,.3); }
.side-submit { margin-top: 13px; }
.side-note { display: flex; gap: 7px; margin-top: 11px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.side-note .icon { width: 13px; height: 13px; flex: none; color: var(--green); }
.practice-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.practice-stat { padding: 10px; border-radius: 12px; background: var(--paper-warm); border: 1px solid var(--line); }
.practice-stat span { display: block; color: var(--muted); font-size: 8.5px; }
.practice-stat strong { display: block; margin-top: 3px; font-family: var(--font-num); font-size: 19px; }
.practice-stat strong small { font-size: 9px; color: var(--muted); font-weight: 500; }
.practice-tip { margin-top: 12px; padding: 11px; border-radius: 12px; background: #eef6f1; color: #356e5e; font-size: 9.5px; line-height: 1.65; }
.side-end { margin-top: 12px; }

.bottom-sheet { align-self: end; width: min(520px, 100%); max-height: 80vh; overflow: auto; border-radius: 28px 28px 0 0; background: var(--paper); padding: 22px; box-shadow: 0 -20px 60px -20px rgba(0,0,0,.4); animation: sheetIn .35s var(--ease) both; }
.bottom-sheet .side-head { margin-bottom: 3px; }

/* ---------- 结果页 ---------- */
.result-page { padding: 34px 0 70px; }
.result-hero { position: relative; overflow: hidden; padding: 38px 30px 30px; border-radius: 34px; background: var(--ink); color: #fff9ed; text-align: center; box-shadow: var(--shadow); }
.result-hero::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; left: 50%; top: -330px; transform: translateX(-50%); background: radial-gradient(circle, rgba(242,188,80,.2), transparent 65%); }
.result-hero::after { content: "✦"; position: absolute; right: 9%; top: 18%; color: rgba(242,188,80,.4); font-size: 20px; }
.result-kicker { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,249,237,.8); font-size: 9px; letter-spacing: .14em; }
.result-hero h1 { position: relative; z-index: 1; margin: 15px 0 7px; font-size: clamp(26px, 3.5vw, 40px); letter-spacing: -.04em; }
.result-hero > p { position: relative; z-index: 1; margin: 0 auto; max-width: 560px; color: rgba(255,249,237,.62); font-size: 12px; line-height: 1.8; }
.score-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin: 22px 0 8px; }
.score-ring { position: relative; width: 172px; height: 172px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .ring-bg { fill: none; stroke: rgba(255,255,255,.11); stroke-width: 10; }
.score-ring .ring-fg { fill: none; stroke: var(--gold); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 490; stroke-dashoffset: var(--dash); transition: stroke-dashoffset 1.2s var(--ease); }
.score-ring .score-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring strong { font-family: var(--font-num); font-size: 52px; line-height: 1; letter-spacing: -.06em; }
.score-ring span { margin-top: 4px; color: rgba(255,249,237,.55); font-size: 10px; letter-spacing: .16em; }
.score-caption { margin-top: 7px; color: rgba(255,249,237,.6); font-size: 10px; letter-spacing: .04em; }
.result-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 24px auto 0; max-width: 620px; border: 1px solid rgba(255,255,255,.11); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.11); }
.result-stat { padding: 14px 10px; background: rgba(28,57,49,.72); }
.result-stat span { display: block; color: rgba(255,249,237,.45); font-size: 8.5px; letter-spacing: .08em; }
.result-stat strong { display: block; margin-top: 4px; font-family: var(--font-num); font-size: 18px; }
.result-stat strong small { font-size: 9px; opacity: .55; font-weight: 500; }
.result-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 23px; }
.result-section { margin-top: 28px; }
.result-section .section-head { margin-bottom: 13px; }
.result-section .section-head h2 { font-size: 24px; }
.review-list { display: flex; flex-direction: column; gap: 10px; }
.review-card { padding: 21px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.review-head { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.review-num { font-family: var(--font-num); font-size: 10px; font-weight: 800; color: var(--muted); }
.review-card .question-prompt { margin: 0 0 12px; font-size: 16px; line-height: 1.75; font-weight: 600; }
.review-card .fraction-bar { height: 24px; }
.answer-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.answer-box { padding: 9px 11px; border-radius: 10px; font-size: 11px; }
.answer-box span { display: block; color: var(--muted); font-size: 8.5px; margin-bottom: 3px; }
.answer-box strong { font-family: var(--font-num); font-size: 13px; }
.answer-box.user { background: #fff3ef; }
.answer-box.user strong { color: #b74e37; }
.answer-box.right { background: #edf7f1; }
.answer-box.right strong { color: #23705a; }
.review-explain { padding-top: 10px; border-top: 1px dashed var(--line); color: var(--ink-2); font-size: 11.5px; line-height: 1.8; }
.review-explain b { color: var(--green); }
.empty-state { padding: 42px 24px; border: 1px dashed var(--line-strong); border-radius: 24px; text-align: center; background: rgba(255,253,248,.5); }
.empty-visual { width: 74px; height: 74px; margin: 0 auto 13px; border-radius: 24px; display: grid; place-items: center; background: #edf6f1; color: var(--green); }
.empty-visual .icon { width: 34px; height: 34px; }
.empty-state h3 { margin: 0 0 5px; font-size: 16px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.all-review-toggle { display: flex; justify-content: center; margin-top: 16px; }

/* ---------- 错题本 ---------- */
.inner-page { padding: 42px 0 70px; }
.inner-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: end; padding: 34px 36px; border-radius: 32px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.inner-hero::after { content: ""; position: absolute; right: -70px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(244,122,91,.13), transparent 65%); }
.inner-hero h1 { margin: 10px 0 10px; font-size: clamp(30px, 4vw, 46px); line-height: 1.18; letter-spacing: -.05em; }
.inner-hero p { max-width: 620px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.wrong-hero { background: linear-gradient(135deg, #fffaf0, #fff); }
.wrong-hero::after { background: radial-gradient(circle, rgba(242,188,80,.18), transparent 65%); }
.hero-stats-mini { display: flex; gap: 20px; margin-top: 22px; }
.hero-stats-mini > div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats-mini strong { font-family: var(--font-num); font-size: 24px; line-height: 1; }
.hero-stats-mini span { color: var(--muted); font-size: 9px; }
.inner-hero-actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.inner-hero-actions .btn { width: 100%; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 22px 0 13px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.filter-tab { border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; color: var(--muted); font-size: 11px; font-weight: 700; transition: all .2s; }
.filter-tab:hover { color: var(--green); }
.filter-tab.is-active { background: var(--ink); color: #fff9ed; }
.filter-tab small { opacity: .6; margin-left: 4px; font-family: var(--font-num); }
.grade-filter { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.grade-chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 10px; color: var(--muted); font-size: 9.5px; transition: all .2s; }
.grade-chip:hover { border-color: var(--green); color: var(--green); }
.grade-chip.is-active { background: var(--green); border-color: var(--green); color: white; }
.wrong-list { display: flex; flex-direction: column; gap: 10px; }
.wrong-card { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.wrong-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.wrong-card.is-mastered { opacity: .68; }
.wrong-card-main { width: 100%; text-align: left; border: 0; background: transparent; padding: 18px 20px 13px; }
.wrong-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 8px; }
.wrong-meta .tag { --accent: var(--coral); }
.wrong-meta small { color: var(--muted); font-size: 9px; }
.wrong-prompt { font-size: 14px; line-height: 1.65; font-weight: 600; }
.wrong-prompt .frac { font-size: .85em; }
.wrong-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 9.5px; }
.expand-link { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-weight: 700; }
.expand-link .icon { width: 13px; height: 13px; transition: transform .25s; }
.wrong-card.is-open .expand-link .icon { transform: rotate(180deg); }
.wrong-detail { padding: 0 20px 18px; animation: feedbackIn .3s var(--ease) both; }
.wrong-detail .answer-compare { margin-top: 4px; }
.wrong-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.wrong-actions .btn { padding: 7px 12px; font-size: 10px; }
.mastered-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: #edf7f1; color: #23705a; font-size: 9px; font-weight: 700; }
.mastered-chip .icon { width: 11px; height: 11px; }

/* ---------- 学习报告 ---------- */
.report-hero { background: linear-gradient(135deg, #eef6f1, #fffaf0); }
.report-hero::after { background: radial-gradient(circle, rgba(42,122,104,.14), transparent 65%); }
.report-grid { display: grid; grid-template-columns: 1.5fr .75fr .75fr; gap: 12px; margin-top: 18px; }
.report-card { padding: 22px; border: 1px solid var(--line); border-radius: 23px; background: var(--paper); box-shadow: var(--shadow-soft); }
.report-card h3 { margin: 0; font-size: 13px; letter-spacing: -.01em; }
.report-card .card-sub { margin: 4px 0 0; color: var(--muted); font-size: 9.5px; }
.report-chart { display: flex; align-items: flex-end; gap: 12px; height: 150px; margin-top: 22px; }
.report-chart .week-bar i { max-width: 34px; }
.report-chart .week-bar strong { font-family: var(--font-num); font-size: 9px; color: var(--ink-2); }
.accuracy-ring { position: relative; width: 108px; height: 108px; margin: 13px auto 8px; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--p) * 1%), #eee8db 0); display: grid; place-items: center; }
.accuracy-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--paper); }
.accuracy-ring strong { position: relative; z-index: 1; font-family: var(--font-num); font-size: 26px; }
.accuracy-ring span { position: relative; z-index: 1; margin-left: 1px; font-size: 9px; color: var(--muted); }
.report-card-center { text-align: center; }
.report-mini { display: flex; justify-content: space-between; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.report-mini div { text-align: left; }
.report-mini span { display: block; color: var(--muted); font-size: 8.5px; }
.report-mini strong { display: block; margin-top: 2px; font-family: var(--font-num); font-size: 16px; }
.report-grade-list { display: flex; flex-direction: column; gap: 10px; margin-top: 17px; }
.report-grade-row { display: grid; grid-template-columns: 54px 1fr 38px; align-items: center; gap: 9px; }
.report-grade-row span { font-size: 10px; font-weight: 600; }
.report-grade-row .bar { height: 5px; border-radius: 99px; background: #eee8db; overflow: hidden; }
.report-grade-row .bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent, var(--green)); }
.report-grade-row b { font-family: var(--font-num); font-size: 10px; text-align: right; }
.history-panel { margin-top: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 23px; background: var(--paper); }
.history-panel h3 { margin: 0 0 12px; font-size: 13px; }
.history-row { display: grid; grid-template-columns: 1.3fr .8fr .45fr .7fr; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 10.5px; }
.history-row:first-of-type { border-top: 0; }
.history-row .h-name { min-width: 0; }
.history-row .h-name strong { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-row .h-name span { color: var(--muted); font-size: 8.5px; }
.history-row .h-mode { color: var(--muted); font-size: 9px; }
.history-row .h-score { font-family: var(--font-num); font-weight: 800; }
.history-row .h-date { color: var(--muted); font-size: 9px; text-align: right; }
.data-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 15px 18px; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--muted); font-size: 9.5px; line-height: 1.6; }
.data-actions .btn { flex: none; }
.danger-text { color: #b74e37; }

/* ---------- 提示、确认、启动 ---------- */
.toast-root { position: fixed; left: 50%; bottom: 26px; z-index: 300; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff9ed; box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); font-size: 11px; font-weight: 600; animation: toastIn .3s var(--ease) both; }
.toast .icon { width: 14px; height: 14px; color: var(--gold); }
.toast.is-out { animation: toastOut .28s ease both; }
.confirm-overlay { z-index: 200; }
.confirm-modal { width: min(410px, 100%); padding: 25px; border-radius: 25px; background: var(--paper); box-shadow: 0 30px 70px -25px rgba(0,0,0,.5); animation: modalIn .3s var(--ease) both; }
.confirm-modal h3 { margin: 0 0 7px; font-size: 18px; letter-spacing: -.02em; }
.confirm-modal p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.75; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.btn-danger { background: #c05a43; color: white; }
.btn-danger:hover { background: #aa4c37; }
.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.boot-orbit { position: relative; width: 92px; height: 92px; margin-bottom: 16px; }
.boot-orbit::before { content: ""; position: absolute; inset: 9px; border: 1px dashed rgba(31,94,81,.25); border-radius: 50%; animation: spin 8s linear infinite; }
.boot-planet { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f7c66c, #e66f55); box-shadow: 0 10px 22px -10px rgba(213,92,65,.55); }
.boot-satellite { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--green); transform: rotate(0deg) translateX(40px); animation: orbitDot 2.8s linear infinite; }
.boot-title { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: .1em; }
.boot-sub { margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); color: var(--ink); font-size: 15px; }

/* ---------- 动效 ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes questionIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes feedbackIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes floatSoft { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-9px) rotate(1deg); } }
@keyframes planetFloat { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-9px) rotate(.6deg); } }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.85) rotate(0); } 50% { opacity: 1; transform: scale(1.08) rotate(12deg); } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 4px rgba(244,122,91,.13); } 50% { box-shadow: 0 0 0 7px rgba(244,122,91,.04); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbitDot { from { transform: rotate(0deg) translateX(40px) rotate(0); } to { transform: rotate(360deg) translateX(40px) rotate(-360deg); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page, .inner-page, .result-page { animation: pageIn .45s var(--ease) both; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr .9fr; gap: 12px; }
  .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-layout { grid-template-columns: minmax(0, 1fr) 266px; gap: 16px; }
  .question-panel { padding: 26px 24px 21px; }
  .report-grid { grid-template-columns: 1.3fr .75fr .75fr; }
}
@media (max-width: 860px) {
  .page { width: min(100% - 32px, 720px); }
  .topbar-inner { width: calc(100% - 32px); gap: 12px; }
  .brand-type small { display: none; }
  .brand-type strong { font-size: 15px; }
  .main-nav { margin-left: auto; }
  .nav-link { padding: 8px 10px; font-size: 13.5px; }
  .nav-link .icon { display: none; }
  .topbar-actions { margin-left: 0; }
  .streak-pill { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 38px; min-height: 0; }
  .hero-copy { text-align: left; }
  .hero h1 { font-size: clamp(40px, 9vw, 58px); }
  .hero-art { height: 380px; margin-top: 8px; }
  .orbit-stage { height: 370px; max-width: 430px; }
  .hero-planet { width: 184px; height: 184px; }
  .planet-eye { top: 69px; }
  .planet-eye.left { left: 60px; }
  .planet-eye.right { right: 60px; }
  .planet-smile { top: 91px; width: 42px; }
  .planet-blush { top: 95px; }
  .planet-blush.left { left: 37px; }
  .planet-blush.right { right: 37px; }
  .grade-banner { grid-template-columns: 1fr; padding: 28px; }
  .grade-banner-stats { flex-direction: row; }
  .grade-banner-stats .mini-progress-card { flex: 1; }
  .calc-strip { grid-template-columns: auto minmax(0, 1fr); }
  .calc-strip-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding: 11px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 13px; }
  .grade-switch { width: 100%; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .grade-switch::-webkit-scrollbar { display: none; }
  .grade-pill { flex: none; }
  .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-bottom { grid-template-columns: 1fr; }
  .quiz-layout { grid-template-columns: 1fr; width: calc(100% - 32px); padding-top: 16px; }
  .quiz-side { display: none; }
  .mobile-sheet-btn { display: inline-flex; }
  .question-panel { min-height: calc(100vh - 145px); border-radius: 24px; }
  .question-body { justify-content: flex-start; padding-top: 12px; }
  .question-foot { position: sticky; bottom: 0; background: var(--paper); margin: 20px -24px -21px; padding: 14px 24px; border-radius: 0 0 24px 24px; }
  .foot-hint { display: none; }
  .result-stats { grid-template-columns: repeat(2, 1fr); max-width: 460px; }
  .inner-hero { grid-template-columns: 1fr; align-items: start; padding: 27px; }
  .inner-hero-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .inner-hero-actions .btn { width: auto; }
  .report-grid { grid-template-columns: 1fr 1fr; }
  .report-grid .report-card:first-child { grid-column: span 2; }
  .history-row { grid-template-columns: 1.4fr .7fr .4fr; }
  .history-row .h-date { display: none; }
}
@media (max-width: 600px) {
  .page { width: calc(100% - 24px); }
  .grade-switch { gap: 1px; }
  .grade-pill { flex: 1; justify-content: center; gap: 3px; padding: 7px 2px; }
  .grade-pill-name { font-size: 10px; }
  .grade-pill-num { font-size: 12px; }
  .topbar { padding: 9px 0; }
  .topbar-inner { width: calc(100% - 24px); flex-wrap: wrap; gap: 8px; row-gap: 8px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
  .brand-mark svg { width: 25px; height: 25px; }
  .brand-type strong { font-size: 14px; }
  .main-nav { order: 3; width: 100%; justify-content: center; padding: 3px; }
  .nav-link { flex: 1; justify-content: center; padding: 8px 5px; font-size: 13px; }
  .nav-link .icon { display: block; width: 14px; height: 14px; }
  .topbar-actions { margin-left: auto; }
  .icon-btn { width: 34px; height: 34px; }
  .hero { padding: 28px 0 20px; gap: 0; }
  .hero h1 { margin: 18px 0 14px; font-size: clamp(36px, 11vw, 50px); }
  .hero-lead { font-size: 13.5px; line-height: 1.8; }
  .hero-actions { margin-top: 21px; gap: 8px; }
  .hero-actions .btn { flex: 1; min-width: 145px; padding: 13px 14px; font-size: 13px; }
  .hero-meta { gap: 16px; margin-top: 26px; }
  .hero-meta strong { font-size: 20px; }
  .hero-art { height: 300px; transform: scale(.88); transform-origin: center top; margin-bottom: -35px; }
  .orbit-stage { height: 320px; }
  .hero-planet { width: 150px; height: 150px; }
  .planet-eye { top: 55px; width: 10px; height: 14px; }
  .planet-eye.left { left: 48px; }
  .planet-eye.right { right: 48px; }
  .planet-smile { top: 75px; width: 36px; height: 20px; border-bottom-width: 3px; }
  .planet-blush { top: 79px; width: 20px; height: 9px; }
  .planet-blush.left { left: 29px; }
  .planet-blush.right { right: 29px; }
  .hero-planet::before { width: 220px; height: 53px; }
  .hero-planet::after { width: 46px; height: 11px; transform: translate(-50%, -50%) rotate(-16deg) translateX(106px); }
  .float-chip { scale: .82; }
  .chip-a { left: -1%; top: 9%; }
  .chip-b { right: -4%; top: 20%; }
  .chip-c { left: 2%; bottom: 10%; }
  .hero-note { right: 2%; bottom: 2%; transform: scale(.88) rotate(1.5deg); }
  .grade-section { padding-top: 16px; }
  .section-head h2 { font-size: 25px; }
  .grade-banner { padding: 23px 21px; border-radius: 25px; }
  .grade-banner h2 { font-size: 29px; }
  .grade-banner p { font-size: 12px; }
  .grade-banner-actions .btn { flex: 1; padding: 11px 12px; font-size: 12px; }
  .grade-banner-stats { flex-direction: column; }
  .calc-strip { padding: 16px; gap: 11px; border-radius: 19px; }
  .calc-strip-icon { width: 44px; height: 44px; border-radius: 13px; }
  .calc-strip-icon .icon { width: 22px; height: 22px; }
  .calc-strip h3 { font-size: 15.5px; }
  .setup-types { max-height: 118px; }
  .calc-strip-side { flex-direction: column; align-items: stretch; gap: 9px; }
  .calc-mastery { justify-content: space-between; }
  .calc-actions .btn { flex: 1; }
  .group-grid { grid-template-columns: 1fr; gap: 10px; }
  .group-card { min-height: 0; padding: 18px; border-radius: 21px; }
  .group-card h3 { margin-top: 13px; }
  .group-card p { font-size: 13.5px; }
  .home-bottom { padding-bottom: 34px; }
  .insight-card { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .week-bars { min-height: 85px; }
  .footer { padding-bottom: 22px; }
  .footer-inner { width: calc(100% - 24px); flex-direction: column; align-items: flex-start; gap: 7px; font-size: 9px; }
  .overlay { padding: 12px; align-items: end; }
  .modal { max-height: calc(100vh - 24px); border-radius: 27px 27px 18px 18px; }
  .scope-grid { grid-template-columns: 1fr; }
  .setup-head { padding: 22px 20px 17px; }
  .setup-head h2 { font-size: 21px; }
  .setup-head p { display: none; }
  .setup-body { padding: 18px 20px 2px; }
  .setup-foot { padding: 15px 20px 19px; flex-direction: column; align-items: stretch; }
  .setup-foot .btn { width: 100%; }
  .mode-card { padding: 13px; }
  .count-card { padding: 12px; }
  .count-card strong { font-size: 23px; }
  .count-card small { display: none; }
  .quiz-topbar-inner { width: calc(100% - 24px); min-height: 60px; gap: 9px; }
  .quiz-title h1 { font-size: 13px; }
  .quiz-title small { display: none; }
  .timer-pill { padding: 7px 9px; font-size: 11px; }
  .quiz-layout { width: calc(100% - 20px); padding: 10px 0 26px; }
  .question-panel { padding: 20px 17px 16px; border-radius: 22px; min-height: calc(100vh - 100px); }
  .question-head { margin-bottom: 17px; }
  .question-prompt { margin-bottom: 23px; font-size: clamp(21px, 6vw, 27px); line-height: 1.7; }
  .question-prompt.long { font-size: 17px; line-height: 1.85; }
  .options-grid, .options-grid.two { grid-template-columns: 1fr; gap: 8px; }
  .option-card { min-height: 58px; padding: 11px 12px; border-radius: 13px; }
  .option-text { font-size: 15px; }
  .option-key { width: 27px; height: 27px; }
  .answer-field { min-height: 68px; }
  .answer-field input { font-size: 30px; }
  .feedback { padding: 14px; }
  .feedback-answer { margin-left: 0; }
  .question-foot { margin: 16px -17px -16px; padding: 12px 17px; border-radius: 0 0 22px 22px; }
  .question-foot .btn { flex: 1; }
  .question-foot .text-btn { flex: none; }
  .result-page { padding: 14px 0 40px; }
  .result-hero { padding: 27px 18px 23px; border-radius: 26px; }
  .score-ring { width: 148px; height: 148px; }
  .score-ring strong { font-size: 44px; }
  .result-stats { gap: 1px; }
  .result-stat { padding: 11px 8px; }
  .result-stat strong { font-size: 15px; }
  .result-actions .btn { flex: 1; min-width: 128px; }
  .review-card { padding: 16px; }
  .answer-compare { grid-template-columns: 1fr; }
  .inner-page { padding: 22px 0 44px; }
  .inner-hero { padding: 22px 20px; border-radius: 25px; }
  .inner-hero h1 { font-size: 29px; }
  .hero-stats-mini { gap: 14px; }
  .inner-hero-actions { width: 100%; }
  .inner-hero-actions .btn { flex: 1; }
  .toolbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .filter-tabs { width: 100%; }
  .filter-tab { flex: 1; }
  .wrong-card-main { padding: 15px 15px 11px; }
  .wrong-detail { padding: 0 15px 15px; }
  .wrong-prompt { font-size: 12.5px; }
  .report-grid { grid-template-columns: 1fr; }
  .report-grid .report-card:first-child { grid-column: auto; }
  .report-card { padding: 18px; }
  .history-panel { padding: 16px; }
  .history-head { display: none !important; }
  .history-row { grid-template-columns: 1.4fr .6fr .4fr; gap: 6px; }
  .data-actions { flex-direction: column; align-items: flex-start; }
  .bottom-sheet { width: 100%; padding: 18px; }
  .toast-root { bottom: 18px; width: calc(100% - 28px); }
  .toast { max-width: 100%; font-size: 10.5px; }
}
@media (max-width: 380px) {
  .nav-link { font-size: 10.5px; gap: 4px; }
  .brand-type strong { font-size: 13px; }
  .hero-actions .btn { min-width: 0; }
  .question-prompt { font-size: 20px; }
  .mode-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   儿童字号层
   ---------------------------------------------------------
   面向小学 1–6 年级阅读：正文不小于 15px，说明文字不小于
   13.5px，辅助标签不小于 13px，按钮 / 选项不小于 14px，
   卡片标题 21px 起。本段位于全部媒体查询之后，统一覆盖
   全站字号；窄屏微调放在本段末尾，避免被前面的响应式
   规则改小。
   ========================================================= */

/* 顶部导航与通用按钮 */
.brand-type strong { font-size: 18px; }
.brand-type small { font-size: 12px; }
.nav-link { font-size: 15.5px; padding: 10px 16px; }
.nav-link .icon { width: 18px; height: 18px; }
.nav-badge { min-width: 20px; height: 20px; font-size: 12.5px; }
.icon-btn { width: 40px; height: 40px; }
.icon-btn .icon { width: 18px; height: 18px; }
.streak-pill { font-size: 13.5px; padding: 9px 13px; }
.streak-pill strong { font-size: 15px; }
.btn { font-size: 15.5px; padding: 13px 22px; }
.btn-lg { font-size: 17px; padding: 16px 28px; }
.btn-sm { font-size: 14px; padding: 10px 16px; }
.text-btn { font-size: 14.5px; }

/* 首页 */
.resume-copy strong { font-size: 15px; }
.resume-copy span { font-size: 13.5px; }
.eyebrow { font-size: 14px; padding: 8px 14px; }
.hero-lead { font-size: 18px; line-height: 1.85; }
.hero-meta strong { font-size: 27px; }
.hero-meta span { font-size: 13.5px; }
.float-chip { font-size: 13.5px; }
.float-chip .chip-icon { font-size: 13px; }
.hero-note span { font-size: 13px; }
.hero-note strong { font-size: 20px; }
.hero-note strong small { font-size: 13px; }
.section-kicker { font-size: 13.5px; }
.grade-pill-num { font-size: 15.5px; }
.grade-pill-name { font-size: 13.5px; }
.grade-eyebrow { font-size: 13px; }
.theme-tag { font-size: 13px; }
.grade-banner p { font-size: 16px; }
.mini-progress-card span { font-size: 13.5px; }
.mini-progress-card strong { font-size: 28px; }
.mini-progress-card strong small { font-size: 13px; }
.mpc-ring { font-size: 13px; }
.grade-banner .daily-line { font-size: 13px; }
.group-index { font-size: 12.5px; }
.group-card h3 { font-size: 21px; }
.group-card p { font-size: 15.5px; }
.tag { font-size: 13.5px; padding: 5px 9px; }
.type-head { font-size: 13px; }
.type-head b { font-size: 13px; }
.type-row .tag { font-size: 13.5px; padding: 4px 8px; }
.type-toggle { font-size: 13.5px; }
.type-toggle .icon { width: 13px; height: 13px; }
.calc-count { font-size: 13px; }
.mastery { font-size: 13.5px; }
.mastery b { font-size: 13.5px; }
.mini-btn { font-size: 14.5px; padding: 10px 9px; }
.mini-btn .icon { width: 15px; height: 15px; }
.calc-eyebrow { font-size: 13px; }
.calc-strip h3 { font-size: 19px; }
.calc-new { font-size: 13px; }
.calc-strip p { font-size: 14.5px; }
.calc-mastery { font-size: 13.5px; }
.calc-mastery strong { font-size: 20px; }
.calc-actions .btn { font-size: 14px; padding: 9px 14px; }
.insight-copy h3 { font-size: 19px; }
.insight-copy p { font-size: 14.5px; }
.insight-big span { font-size: 13.5px; }
.week-bar span { font-size: 13px; }
.quote-card p { font-size: 15.5px; }
.quote-card small { font-size: 13px; }
.footer-inner { font-size: 13px; }

/* 设置弹窗 */
.modal { width: min(700px, 100%); }
.modal-kicker { font-size: 13px; }
.setup-head h2 { font-size: 26px; }
.setup-head p { font-size: 15px; }
.field-label { font-size: 14.5px; }
.field-label > span:first-child { width: 24px; height: 24px; font-size: 13px; }
.field-label em { font-size: 13px; }
.scope-card strong { font-size: 15.5px; }
.scope-card small { font-size: 13.5px; }
.scope-card em { font-size: 13.5px; }
.scope-hint { font-size: 13.5px; }
.mode-card { padding: 17px; }
.mode-card strong { font-size: 16.5px; }
.mode-card small { font-size: 14px; line-height: 1.55; }
.count-card { padding: 16px; }
.count-card strong { font-size: 29px; }
.count-card span { font-size: 14.5px; }
.count-card small { font-size: 13.5px; }
.setup-note { font-size: 14px; line-height: 1.7; padding: 13px 15px; }
.setup-types { max-height: 168px; padding: 12px 13px; }
.setup-types-head { font-size: 13.5px; }
.setup-types-head b { font-size: 13.5px; }
.setup-types .tag { font-size: 13.5px; padding: 5px 8px; }
.setup-summary { font-size: 13.5px; }
.setup-summary strong { font-size: 14px; }

/* 答题页 */
.quiz-title h1 { font-size: 18px; }
.quiz-title small { font-size: 13px; }
.mode-chip { font-size: 13px; padding: 5px 10px; }
.timer-pill { font-size: 15px; padding: 9px 12px; }
.question-index { font-size: 14.5px; }
.question-index strong { font-size: 23px; }
.difficulty { font-size: 13.5px; padding: 5px 10px; }
.topic-pill { font-size: 13.5px; padding: 5px 10px; }
.question-prompt { font-size: clamp(26px, 2.8vw, 33px); }
.question-prompt.long { font-size: clamp(21px, 2.1vw, 26px); }
.option-card { min-height: 76px; padding: 15px 16px; }
.option-key { width: 34px; height: 34px; font-size: 15px; }
.option-text { font-size: 17.5px; }
.answer-field { min-height: 82px; }
.answer-field input { font-size: 38px; }
.answer-field input::placeholder { font-size: 17px; }
.answer-unit { font-size: 15px; }
.symbol-btn { min-width: 38px; height: 36px; font-size: 15px; }
.symbol-btn.wide { font-size: 13.5px; }
.answer-tip { font-size: 13.5px; }
.feedback-head strong { font-size: 16.5px; }
.feedback-answer { font-size: 13.5px; }
.feedback-explain { font-size: 15.5px; }
.auto-next-hint { font-size: 13px; }
.foot-hint { font-size: 13.5px; }
.foot-hint kbd { font-size: 12px; }
.side-head span { font-size: 13.5px; }
.side-head strong { font-size: 21px; }
.side-head strong small { font-size: 13px; }
.answer-grid { gap: 7px; }
.answer-cell { font-size: 13.5px; }
.legend { font-size: 13px; gap: 9px 12px; }
.practice-stat span { font-size: 13px; }
.practice-stat strong { font-size: 21px; }
.practice-stat strong small { font-size: 13px; }
.practice-tip { font-size: 13.5px; }
.side-note { font-size: 13.5px; }

/* 成绩页 */
.result-kicker { font-size: 13.5px; }
.result-hero > p { font-size: 15.5px; }
.score-ring span { font-size: 13px; }
.score-caption { font-size: 13.5px; }
.result-stat span { font-size: 13px; }
.result-stat strong { font-size: 21px; }
.result-stat strong small { font-size: 13px; }
.result-section .section-head h2 { font-size: 26px; }
.review-num { font-size: 13.5px; }
.review-card .question-prompt { font-size: 19px; }
.answer-box { font-size: 14.5px; }
.answer-box span { font-size: 13.5px; }
.answer-box strong { font-size: 17px; }
.review-explain { font-size: 15.5px; }
.empty-state h3 { font-size: 18px; }
.empty-state p { font-size: 14px; }

/* 错题本 / 学习报告 */
.inner-hero p { font-size: 15.5px; }
.hero-stats-mini span { font-size: 13px; }
.filter-tab { font-size: 14.5px; }
.filter-tab small { font-size: 13px; }
.grade-chip { font-size: 13.5px; padding: 8px 12px; }
.wrong-meta small { font-size: 13.5px; }
.wrong-prompt { font-size: 16.5px; }
.wrong-footer { font-size: 13px; }
.wrong-actions .btn { font-size: 13.5px; padding: 9px 14px; }
.mastered-chip { font-size: 13px; }
.report-card h3 { font-size: 15.5px; }
.report-card .card-sub { font-size: 13.5px; }
.report-chart .week-bar strong { font-size: 13px; }
.accuracy-ring span { font-size: 13px; }
.report-mini span { font-size: 13px; }
.report-mini strong { font-size: 19px; }
.report-grade-row { grid-template-columns: 66px 1fr 44px; }
.report-grade-row span, .report-grade-row b { font-size: 13.5px; }
.history-panel h3 { font-size: 15.5px; }
.history-head { display: grid; grid-template-columns: 1.3fr .8fr .45fr .7fr; gap: 10px; padding: 8px 0 6px; color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.history-row { font-size: 14px; padding: 12px 0; }
.history-row .h-name strong { font-size: 14.5px; }
.history-row .h-name span { font-size: 13.5px; }
.history-row .h-mode, .history-row .h-date { font-size: 13.5px; }
.history-row .h-score span { color: var(--muted); font-size: 13px; }
.report-empty { color: var(--muted); font-size: 14px; line-height: 1.7; padding: 14px 0; }
.data-actions { font-size: 13.5px; }

/* 提示 / 确认 / 启动 */
.toast { font-size: 14.5px; padding: 12px 18px; }
.confirm-modal h3 { font-size: 20px; }
.confirm-modal p { font-size: 14.5px; }
.boot-title { font-size: 19px; }
.boot-sub { font-size: 13px; }
.noscript { font-size: 16px; }

/* 窄屏：保持可读，同时避免挤压 */
@media (max-width: 600px) {
  .brand-type strong { font-size: 16px; }
  .nav-link { font-size: 15px; padding: 9px 6px; }
  .hero-lead { font-size: 16px; }
  .hero-meta { flex-wrap: wrap; gap: 14px 18px; }
  .hero-meta .divider { display: none; }
  .hero-meta span { font-size: 13px; }
  .orbit-ring.r1 { width: 92%; height: 180px; }
  .orbit-ring.r2 { width: 88%; height: 280px; }
  .eyebrow { font-size: 13.5px; padding: 7px 12px; }
  .grade-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; border-radius: 20px; overflow: visible; }
  .grade-pill { justify-content: center; padding: 9px 6px; }
  .grade-pill-num { font-size: 15px; }
  .grade-pill-name { font-size: 13.5px; }
  .grade-banner p { font-size: 15px; }
  .hero-actions .btn { font-size: 15px; }
  .grade-banner-actions .btn { font-size: 14.5px; }
  .hero-note span { font-size: 13px; }
  .grade-eyebrow { font-size: 13px; }
  .mpc-ring { font-size: 13px; }
  .calc-eyebrow, .calc-new, .calc-count { font-size: 13px; }
  .group-index { font-size: 12.5px; }
  .nav-badge { font-size: 12.5px; }
  .modal-kicker { font-size: 13px; }
  .group-card p { font-size: 15px; }
  .calc-strip h3 { font-size: 18px; }
  .setup-head h2 { font-size: 23px; }
  .quiz-title h1 { font-size: 17px; }
  .quiz-title small { display: block; font-size: 13px; }
  .quiz-title .mode-chip { display: none; }
  .timer-pill { font-size: 14px; padding: 7px 9px; gap: 5px; }
  .timer-pill .icon { width: 13px; height: 13px; }
  .mobile-sheet-btn { padding: 9px 10px; gap: 6px; font-size: 13.5px; }
  .mobile-sheet-btn .sheet-label { display: inline; }
  .count-card strong { font-size: 26px; }
  .question-prompt { font-size: clamp(23px, 6.2vw, 29px); }
  .question-prompt.long { font-size: 19.5px; }
  .option-text { font-size: 17px; }
  .answer-field input { font-size: 34px; }
  .result-stat span { font-size: 13px; }
  .result-stat strong { font-size: 18px; }
  .wrong-prompt { font-size: 16px; }
  .history-row { font-size: 13.5px; }
  .footer-inner { font-size: 13px; }
  .footer-seal { white-space: normal; flex-wrap: wrap; }
  .toast { font-size: 13.5px; }
}
@media (max-width: 359px) {
  .mobile-sheet-btn .sheet-label { display: none; }
}
