/* =========================================================
   科目一 · 精简题库
   A quiet, editorial study interface.
   ========================================================= */

:root {
  --bg: #f2f1ea;
  --bg-deep: #ebe9df;
  --surface: #fffdf8;
  --surface-2: #f8f7f1;
  --surface-3: #f1efe6;
  --ink: #18211d;
  --ink-soft: #33413b;
  --muted: #6d7771;
  --muted-2: #949d97;
  --line: #e3e0d5;
  --line-strong: #d5d1c4;
  --brand: #0d6b51;
  --brand-deep: #0a4f3d;
  --brand-soft: #e9f3ee;
  --brand-wash: #f1f8f4;
  --amber: #d88a42;
  --amber-soft: #fbf1e6;
  --danger: #c45249;
  --danger-soft: #fbedeb;
  --success: #2f7c5a;
  --success-soft: #eaf5ee;
  --shadow-sm: 0 8px 22px rgba(27, 42, 34, .06);
  --shadow: 0 22px 60px rgba(27, 42, 34, .09);
  --shadow-lg: 0 34px 90px rgba(21, 40, 31, .15);
  --radius: 24px;
  --radius-lg: 30px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Consolas", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(1000px 620px at 88% -10%, rgba(13, 107, 81, .07), transparent 62%),
    radial-gradient(780px 560px at -12% 34%, rgba(216, 138, 66, .065), transparent 62%),
    var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .35;
  background-image: radial-gradient(rgba(24, 33, 29, .15) .55px, transparent .55px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.4), transparent 34%);
}

::selection { color: var(--brand-deep); background: #d9ebe3; }

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
p, h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; }
svg { display: block; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid rgba(13, 107, 81, .35);
  outline-offset: 3px;
}

/* ---------- layout ---------- */

.app { min-height: calc(100vh - 220px); }
.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}
.section { margin-top: 74px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow--dot::before { display: none; }
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(13, 107, 81, .1);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.section-head p { color: var(--muted); font-size: 14px; max-width: 460px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 650;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 26px rgba(13, 107, 81, .22);
}
.btn--primary:hover { background: var(--brand-deep); box-shadow: 0 14px 32px rgba(13, 107, 81, .28); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 253, 248, .55);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn--soft { background: var(--brand-soft); color: var(--brand-deep); }
.btn--soft:hover { background: #dceee5; }
.btn--danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn--small { min-height: 36px; padding: 0 15px; font-size: 13px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 15px; }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: .2s ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.is-active { color: var(--amber); border-color: #ead3b6; background: var(--amber-soft); }
.icon-btn.is-active svg { fill: currentColor; }

/* ---------- top navigation ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(213, 209, 196, .55);
  background: rgba(242, 241, 234, .82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.topbar-inner {
  width: min(1160px, calc(100% - 48px));
  height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  display: inline-block;
  width: 42px;
  height: 42px;
  color: var(--brand);
  flex: 0 0 auto;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 19px; letter-spacing: .03em; }
.brand-text small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: .28em; }
.main-nav { display: flex; align-items: center; gap: 5px; margin-inline: auto; }
.main-nav a {
  position: relative;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 14px;
  border-radius: 999px;
  transition: .2s ease;
}
.main-nav a:hover { color: var(--ink); background: rgba(255, 253, 248, .7); }
.main-nav a.is-active { color: var(--brand-deep); font-weight: 650; }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateX(-50%);
}
.top-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.mini-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 86px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
}
.mini-progress i {
  display: block;
  width: 86px; height: 3px;
  border-radius: 999px;
  background: #dedbd0;
  overflow: hidden;
}
.mini-progress b {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--brand);
  transition: width .5s cubic-bezier(.2,.7,.2,1);
}
.top-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  transition: .2s ease;
}
.top-cta:hover { background: var(--brand); }
body.is-study .topbar, body.is-study .site-footer { display: none; }

/* ---------- footer ---------- */

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, .35);
}
.footer-inner {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
  padding: 34px 0 40px;
  display: grid;
  grid-template-columns: 1.2fr 1.1fr auto;
  align-items: center;
  gap: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark--small { width: 34px; height: 34px; }
.footer-brand div { display: flex; flex-direction: column; gap: 2px; }
.footer-brand strong { font-family: var(--serif); font-size: 14px; }
.footer-brand span { color: var(--muted); font-size: 11px; }
.footer-note { color: var(--muted-2); font-size: 11px; line-height: 1.7; }
.footer-kbd { color: var(--muted); font-size: 11px; white-space: nowrap; }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px; height: 22px;
  margin: 0 2px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
}

/* ---------- home hero ---------- */

.home { padding-top: 58px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
  gap: 64px;
  align-items: center;
  min-height: 470px;
}
.hero-copy { padding-top: 4px; }
.hero h1 {
  margin-top: 20px;
  font-size: clamp(58px, 7.4vw, 100px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.065em;
}
.hero h1 .line { display: block; }
.hero h1 .accent {
  display: inline-block;
  color: var(--brand);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -.045em;
  position: relative;
  padding-right: 8px;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 4px;
  height: 12px;
  background: rgba(216, 138, 66, .3);
  border-radius: 50%;
  z-index: -1;
  transform: rotate(-1.5deg);
}
.hero-lead {
  max-width: 500px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 32px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 38px;
  color: var(--muted);
  font-size: 12px;
}
.hero-meta span { display: inline-flex; align-items: baseline; gap: 5px; padding: 0 17px; border-left: 1px solid var(--line-strong); }
.hero-meta span:first-child { padding-left: 0; border-left: 0; }
.hero-meta strong { color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 700; }

.hero-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px dashed rgba(13, 107, 81, .2);
  animation: orbit 40s linear infinite;
}
.hero-visual::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 107, 81, .08), transparent 68%);
  filter: blur(4px);
}
@keyframes orbit { to { transform: rotate(360deg); } }
.hero-card {
  position: relative;
  z-index: 2;
  width: min(360px, 90%);
  padding: 25px 27px 22px;
  border-radius: 30px;
  color: #f8fbf8;
  background:
    radial-gradient(460px 300px at 110% -20%, rgba(255,255,255,.16), transparent 55%),
    linear-gradient(152deg, #116a52 0%, #0b4c3b 58%, #08382c 100%);
  box-shadow: 0 40px 80px rgba(9, 58, 45, .28), 0 2px 0 rgba(255,255,255,.14) inset;
  transform: rotate(2.4deg);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 23px;
  pointer-events: none;
}
.hero-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; letter-spacing: .16em; opacity: .78; }
.pass-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #f3d5b3;
  font-size: 9px;
  letter-spacing: .15em;
}
.pass-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #e1a464; box-shadow: 0 0 0 3px rgba(225,164,100,.15); }
.score-orbit {
  --score: 92;
  position: relative;
  width: 176px;
  height: 176px;
  margin: 26px auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#d9a366 calc(var(--score) * 1%), rgba(255,255,255,.13) 0);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset;
}
.score-orbit::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #0a4838;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset;
}
.score-orbit > div { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 4px; }
.score-orbit strong { font-family: var(--serif); font-size: 68px; line-height: 1; font-weight: 700; letter-spacing: -.06em; }
.score-orbit span { font-size: 11px; opacity: .55; }
.hero-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.11);
  color: rgba(248,251,248,.6);
  font-size: 10px;
  letter-spacing: .05em;
}
.hero-card-meta b { color: #f8fbf8; font-weight: 500; }
.barcode {
  margin-top: 18px;
  height: 20px;
  opacity: .34;
  background: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 4px, #fff 4px 5px, transparent 5px 7px, #fff 7px 10px, transparent 10px 13px);
  clip-path: polygon(0 20%, 4% 20%, 4% 0, 7% 0, 7% 80%, 10% 80%, 10% 0, 13% 0, 13% 100%, 17% 100%, 17% 20%, 20% 20%, 20% 60%, 23% 60%, 23% 0, 27% 0, 27% 100%, 30% 100%, 30% 45%, 33% 45%, 33% 0, 37% 0, 37% 90%, 40% 90%, 40% 10%, 44% 10%, 44% 100%, 49% 100%, 49% 0, 53% 0, 53% 70%, 56% 70%, 56% 0, 60% 0, 60% 100%, 64% 100%, 64% 30%, 68% 30%, 68% 0, 72% 0, 72% 100%, 76% 100%, 76% 20%, 80% 20%, 80% 0, 84% 0, 84% 80%, 88% 80%, 88% 0, 92% 0, 92% 100%, 97% 100%, 97% 0, 100% 0);
}
.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 12px;
  background: rgba(255,253,248,.92);
  box-shadow: 0 14px 32px rgba(31,45,38,.12);
  color: var(--ink-soft);
  font-size: 11px;
  backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}
.float-chip b { color: var(--brand); font-family: var(--serif); font-size: 18px; }
.float-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.chip-a { left: -4px; top: 72px; transform: rotate(-4deg); animation-delay: -1s; }
.chip-b { right: -2px; top: 138px; transform: rotate(3deg); animation-delay: -3s; }
.chip-c { left: 18px; bottom: 56px; transform: rotate(2deg); animation-delay: -5s; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }

/* ---------- home stats ---------- */

.stat-ribbon {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .72);
  box-shadow: var(--shadow-sm);
}
.stat {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 14px 18px;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat-icon {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  flex: 0 0 auto;
}
.stat:nth-child(2) .stat-icon { color: #a66a2d; background: var(--amber-soft); }
.stat:nth-child(3) .stat-icon { color: var(--danger); background: var(--danger-soft); }
.stat:nth-child(4) .stat-icon { color: #59707e; background: #edf0f1; }
.stat-icon svg { width: 17px; height: 17px; }
.stat-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.stat-value { font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: -.03em; }
.stat-value small { font-family: var(--font); font-size: 10px; color: var(--muted-2); font-weight: 400; margin-left: 2px; }
.stat-label { margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- mode cards ---------- */

.mode-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 15px; }
.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 216px;
  padding: 24px 26px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 0 rgba(27, 42, 34, .02);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease, border-color .28s ease;
}
.mode-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.mode-card::after {
  content: "";
  position: absolute;
  width: 190px; height: 190px;
  right: -90px; top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,107,81,.07), transparent 68%);
  transition: transform .4s ease;
}
.mode-card:hover::after { transform: scale(1.3); }
.mode-card--exam { grid-column: span 7; justify-content: space-between; min-height: 250px; background: linear-gradient(148deg, #0d604a, #093d30); border-color: transparent; color: #f6faf7; box-shadow: 0 18px 40px rgba(9, 61, 48, .2); }
.mode-card--exam:hover { box-shadow: 0 26px 60px rgba(9, 61, 48, .3); border-color: transparent; }
.mode-card--exam::before {
  content: "90";
  position: absolute;
  right: 20px; top: -35px;
  font-family: var(--serif);
  font-size: 190px;
  line-height: 1;
  font-weight: 700;
  color: rgba(255,255,255,.055);
  pointer-events: none;
}
.mode-card--seq { grid-column: span 5; }
.mode-card--random, .mode-card--wrong, .mode-card--fav { grid-column: span 4; }
.mode-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.mode-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
}
.mode-icon svg { width: 21px; height: 21px; }
.mode-card--exam .mode-icon { background: rgba(255,255,255,.1); color: #f0c28e; }
.mode-card--wrong .mode-icon { background: var(--danger-soft); color: var(--danger); }
.mode-card--random .mode-icon { background: var(--amber-soft); color: var(--amber); }
.mode-card--fav .mode-icon { background: #f3ede1; color: #a27a42; }
.mode-kicker { color: var(--muted-2); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; padding-top: 6px; }
.mode-card--exam .mode-kicker { color: rgba(255,255,255,.45); }
.mode-title { position: relative; z-index: 1; margin-top: 24px; font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.mode-desc { position: relative; z-index: 1; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.mode-card--exam .mode-title { margin-top: 28px; color: #fff; font-size: 36px; }
.mode-card--exam .mode-desc { color: rgba(255,255,255,.62); max-width: 360px; font-size: 12px; }
.mode-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; }
.mode-meta { color: var(--muted-2); font-size: 10px; letter-spacing: .04em; }
.mode-card--exam .mode-meta { color: rgba(255,255,255,.44); }
.mode-arrow {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: .25s ease;
}
.mode-arrow svg { width: 15px; height: 15px; }
.mode-card:hover .mode-arrow { background: var(--brand); border-color: var(--brand); color: #fff; transform: rotate(-35deg); }
.mode-card--exam .mode-arrow { border-color: rgba(255,255,255,.2); color: #fff; }
.mode-card--exam:hover .mode-arrow { background: #f0c28e; border-color: #f0c28e; color: #0a4436; }
.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.mode-card--exam .mode-badge { background: rgba(255,255,255,.1); color: #f0c28e; }
.mode-progress { display: flex; align-items: center; gap: 9px; min-width: 110px; }
.mode-progress i { display: block; width: 100%; height: 4px; border-radius: 999px; background: #e7e3d7; overflow: hidden; }
.mode-progress b { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.mode-progress span { color: var(--muted-2); font-size: 9px; white-space: nowrap; }
.mode-card--exam .mode-badge svg { width: 12px; height: 12px; }

.home-note {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 16px;
  margin-top: 15px;
}
.note-card, .last-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .62);
  padding: 24px 26px;
}
.note-card { display: flex; align-items: center; gap: 22px; }
.note-mark { font-family: var(--serif); font-size: 60px; line-height: .8; color: var(--amber); opacity: .7; }
.note-card p { font-family: var(--serif); font-size: 18px; line-height: 1.65; letter-spacing: -.01em; }
.note-card span { display: block; margin-top: 5px; color: var(--muted); font-family: var(--font); font-size: 11px; letter-spacing: .03em; }
.last-card { display: flex; flex-direction: column; justify-content: center; }
.last-card .eyebrow { font-size: 9px; }
.last-score-row { display: flex; align-items: flex-end; gap: 9px; margin-top: 10px; }
.last-score-row strong { font-family: var(--serif); font-size: 43px; line-height: .9; letter-spacing: -.05em; }
.last-score-row span { color: var(--muted); font-size: 10px; padding-bottom: 4px; }
.last-card small { color: var(--muted-2); font-size: 10px; margin-top: 8px; }

/* ---------- generic page ---------- */

.page-shell { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-title { margin-top: 11px; font-family: var(--serif); font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.05em; }
.page-sub { margin-top: 10px; max-width: 620px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.head-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- study shell / question card ---------- */

.study-shell { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 76px; }
.study-top { display: flex; align-items: center; gap: 14px; }
.study-back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; transition: color .2s; }
.study-back:hover { color: var(--ink); }
.study-back svg { width: 15px; height: 15px; }
.study-mode { font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.study-counter { color: var(--muted-2); font-family: var(--mono); font-size: 11px; }
.study-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.study-progress { height: 3px; margin: 18px 0 0; border-radius: 999px; background: #e2dfd4; overflow: hidden; }
.study-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #3b9577); transition: width .45s cubic-bezier(.2,.7,.2,1); }

.question-card {
  margin-top: 22px;
  padding: 30px 34px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.question-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.q-index { color: var(--muted-2); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; }
.q-index b { color: var(--ink-soft); font-weight: 600; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .05em;
  white-space: nowrap;
}
.chip--type { background: var(--brand-soft); color: var(--brand); }
.chip--new { background: #f1eafa; color: #7553a3; }
.chip--score { background: var(--amber-soft); color: #a4682c; }
.question-head .spacer { flex: 1; }
.q-page { color: var(--muted-2); font-family: var(--mono); font-size: 9px; }
.question-media {
  margin: 22px 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.question-media img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.media-hint { display: none; align-items: center; gap: 5px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--muted-2); font-size: 9px; }
.media-hint svg { width: 12px; height: 12px; }
.options { display: grid; gap: 11px; }
.option {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbfaf6;
  color: var(--ink-soft);
  text-align: left;
  font-size: 15px;
  line-height: 1.65;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.option:hover:not(:disabled) { background: #fff; border-color: #b9c9c1; transform: translateX(3px); box-shadow: 0 7px 20px rgba(27, 42, 34, .05); }
.option:disabled { cursor: default; }
.option-letter {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  transition: .18s ease;
}
.option-text { flex: 1; min-width: 0; }
.option-mark {
  width: 24px; height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  opacity: 0;
  transform: scale(.6);
  transition: .2s ease;
}
.option-mark svg { width: 14px; height: 14px; }
.option.is-selected { border-color: #a9c8bc; background: #f3f9f6; }
.option.is-selected .option-letter { border-color: var(--brand); background: var(--brand); color: #fff; }
.option.is-correct { border-color: #9ac9b1; background: var(--success-soft); color: #235a43; }
.option.is-correct .option-letter { border-color: var(--success); background: var(--success); color: #fff; }
.option.is-correct .option-mark { opacity: 1; transform: scale(1); color: var(--success); background: #d7ecdf; }
.option.is-wrong { border-color: #e0ada7; background: var(--danger-soft); color: #813c36; }
.option.is-wrong .option-letter { border-color: var(--danger); background: var(--danger); color: #fff; }
.option.is-wrong .option-mark { opacity: 1; transform: scale(1); color: var(--danger); background: #f6d9d5; }
.option.is-muted { opacity: .54; }
.option.is-static { cursor: default; }
.option.is-static:hover { transform: none; box-shadow: none; }

.feedback { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 15px 17px; border-radius: 15px; animation: rise .3s ease both; }
.feedback--good { background: var(--success-soft); border: 1px solid #d4e9dc; color: #245d45; }
.feedback--bad { background: var(--danger-soft); border: 1px solid #f1d2cd; color: #793a34; }
.feedback-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.72); }
.feedback-icon svg { width: 15px; height: 15px; }
.feedback strong { display: block; font-size: 13px; }
.feedback span { display: block; margin-top: 2px; font-size: 11px; opacity: .75; }
.feedback .answer-hint { margin-left: auto; color: inherit; font-family: var(--mono); font-size: 10px; opacity: .65; white-space: nowrap; padding-top: 4px; }

.explain-panel { margin-top: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); animation: rise .35s .05s ease both; }
.explain-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.explain-head strong { color: var(--ink-soft); font-family: var(--serif); font-size: 14px; letter-spacing: 0; }
.explain-head .spacer { flex: 1; }
.correct-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 9px; font-weight: 650; letter-spacing: .04em; }
.explain-panel img { display: block; width: 100%; border-radius: 12px; background: #fff; cursor: zoom-in; }
.explain-note { margin-top: 8px; color: var(--muted-2); font-size: 9px; }

.study-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.study-hint { color: var(--muted-2); font-size: 9px; letter-spacing: .02em; text-align: center; flex: 1; }
.study-hint kbd { min-width: 18px; height: 18px; font-size: 8px; }
.nav-buttons { display: flex; gap: 8px; }

.completion { text-align: center; padding: 46px 28px 40px; }
.completion-icon { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.completion-icon svg { width: 32px; height: 32px; }
.completion h2 { font-family: var(--serif); font-size: 34px; letter-spacing: -.03em; }
.completion p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.completion-stats { display: flex; justify-content: center; gap: 34px; margin: 26px 0 28px; }
.completion-stats div { display: flex; flex-direction: column; gap: 2px; }
.completion-stats b { font-family: var(--serif); font-size: 30px; line-height: 1; }
.completion-stats span { color: var(--muted-2); font-size: 10px; }
.completion .btn { margin: 0 4px; }

/* ---------- exam intro ---------- */

.exam-intro-shell { width: min(1060px, calc(100% - 48px)); margin: 0 auto; padding: 50px 0 70px; }
.exam-intro-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.exam-intro-main { padding: 42px 44px; }
.exam-intro-main h1 { margin-top: 16px; font-family: var(--serif); font-size: clamp(38px, 5vw, 60px); line-height: 1.06; letter-spacing: -.055em; }
.exam-intro-main h1 span { color: var(--brand); }
.exam-intro-main .lead { max-width: 520px; margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.exam-rules { list-style: none; display: grid; gap: 13px; margin-top: 28px; }
.exam-rules li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-soft); font-size: 12px; }
.exam-rules .num { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font-family: var(--mono); font-size: 9px; }
.exam-rules b { font-weight: 650; }
.exam-intro-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 32px;
  color: #f6faf7;
  background:
    radial-gradient(380px 280px at 80% 0%, rgba(255,255,255,.12), transparent 58%),
    linear-gradient(155deg, #0d604a, #093f31);
}
.exam-intro-side::before { content: ""; position: absolute; inset: 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; }
.exam-clock { position: relative; z-index: 1; text-align: center; }
.exam-clock strong { display: block; font-family: var(--serif); font-size: 62px; line-height: 1; letter-spacing: -.045em; }
.exam-clock span { display: block; margin-top: 7px; color: rgba(255,255,255,.47); font-size: 9px; letter-spacing: .18em; }
.exam-side-rule { position: relative; z-index: 1; width: 100%; margin: 26px 0 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.exam-side-rule div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; color: rgba(255,255,255,.6); font-size: 10px; }
.exam-side-rule b { color: #fff; font-weight: 500; }
.exam-intro-side .btn { position: relative; z-index: 1; width: 100%; background: #f2c18a; color: #173d31; box-shadow: 0 12px 26px rgba(0,0,0,.13); }
.exam-intro-side .btn:hover { background: #f7cfa0; }
.exam-intro-side small { position: relative; z-index: 1; margin-top: 12px; color: rgba(255,255,255,.32); font-size: 9px; text-align: center; line-height: 1.6; }
.exam-intro-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 0 5px; color: var(--muted-2); font-size: 10px; }
.resume-banner {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px; padding: 16px 20px;
  border: 1px solid #ecd4ba; border-radius: 18px;
  background: var(--amber-soft);
  color: #805022; font-size: 12px;
}
.resume-banner strong { font-family: var(--serif); font-size: 15px; }
.resume-banner .btn { margin-left: auto; }

/* ---------- exam active ---------- */

.exam-shell { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 76px; }
.exam-top { display: flex; align-items: center; gap: 12px; }
.exam-title { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.exam-sub { color: var(--muted-2); font-family: var(--mono); font-size: 10px; }
.exam-timer {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: auto; padding: 8px 13px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-soft);
  font-family: var(--mono); font-size: 13px;
  letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.exam-timer svg { width: 14px; height: 14px; color: var(--amber); }
.exam-timer.is-warning { color: var(--danger); border-color: #edc6c1; background: var(--danger-soft); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .62; } }
.exam-top .btn { min-height: 38px; }
.exam-progress { display: flex; align-items: center; gap: 13px; margin-top: 16px; }
.exam-progress .study-progress { flex: 1; margin: 0; }
.exam-progress span { color: var(--muted-2); font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.option.is-chosen { border-color: #9fc6b6; background: #f2f9f5; }
.option.is-chosen .option-letter { border-color: var(--brand); background: var(--brand); color: #fff; }
.option.is-chosen .option-mark { opacity: 1; transform: scale(1); background: var(--brand); color: #fff; }
.exam-submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }
.exam-submit-bar small { color: var(--muted-2); font-size: 9px; }
.exam-submit-bar .btn { min-width: 108px; }

/* ---------- result ---------- */

.result-shell { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 80px; }
.result-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.result-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 38px;
  align-items: center;
  padding: 36px 40px;
  border-radius: 30px;
  color: #f8fbf9;
  background:
    radial-gradient(500px 360px at 82% -10%, rgba(255,255,255,.13), transparent 55%),
    linear-gradient(150deg, #0d5c47, #083c2e);
  box-shadow: 0 28px 70px rgba(9, 60, 46, .22);
}
.result-hero.is-fail { background: radial-gradient(500px 360px at 82% -10%, rgba(255,255,255,.12), transparent 55%), linear-gradient(150deg, #6d4a34, #463021); }
.result-hero::after { content: ""; position: absolute; width: 330px; height: 330px; right: -90px; bottom: -160px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.score-disc { position: relative; width: 186px; height: 186px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#e4ac6b calc(var(--score) * 1%), rgba(255,255,255,.13) 0); }
.score-disc::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #0a4737; }
.result-hero.is-fail .score-disc::before { background: #4b3425; }
.score-disc-inner { position: relative; z-index: 1; text-align: center; }
.score-disc strong { display: block; font-family: var(--serif); font-size: 73px; line-height: .9; letter-spacing: -.06em; }
.score-disc span { display: block; margin-top: 8px; color: rgba(255,255,255,.5); font-size: 9px; letter-spacing: .14em; }
.result-copy .eyebrow { color: rgba(255,255,255,.55); }
.result-copy h1 { margin-top: 12px; font-family: var(--serif); font-size: clamp(32px, 4.5vw, 49px); line-height: 1.1; letter-spacing: -.04em; }
.result-copy p { margin-top: 9px; color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.75; }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.result-actions .btn--primary { background: #f0c28e; color: #173e32; box-shadow: none; }
.result-actions .btn--primary:hover { background: #f6d0a2; }
.result-actions .btn--ghost { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; }
.result-actions .btn--ghost:hover { background: rgba(255,255,255,.12); }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 15px; }
.result-stat { padding: 19px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.result-stat b { display: block; font-family: var(--serif); font-size: 29px; line-height: 1; letter-spacing: -.04em; }
.result-stat span { display: block; margin-top: 7px; color: var(--muted-2); font-size: 9px; letter-spacing: .03em; }
.review-section { margin-top: 46px; }
.review-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.review-head h2 { font-family: var(--serif); font-size: 34px; letter-spacing: -.03em; }
.review-head p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.segmented { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.segmented button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; transition: .2s; }
.segmented button.is-active { background: var(--ink); color: #fff; }
.review-list { display: grid; gap: 14px; }
.review-card { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); padding: 22px; }
.review-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.review-card-head .spacer { flex: 1; }
.review-card-head .result-tag { display: inline-flex; align-items: center; gap: 4px; height: 23px; padding: 0 9px; border-radius: 7px; font-size: 9px; font-weight: 650; }
.result-tag--right { color: var(--success); background: var(--success-soft); }
.result-tag--wrong { color: var(--danger); background: var(--danger-soft); }
.review-question { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.review-question img { display: block; width: 100%; cursor: zoom-in; }
.review-options { display: grid; gap: 7px; margin-top: 13px; }
.review-opt { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfaf6; color: var(--muted); font-size: 12px; line-height: 1.5; }
.review-opt .letter { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-family: var(--serif); font-size: 11px; font-weight: 700; }
.review-opt.is-correct { border-color: #b7d7c5; background: var(--success-soft); color: #2d5f47; }
.review-opt.is-correct .letter { border-color: var(--success); background: var(--success); color: #fff; }
.review-opt.is-picked-wrong { border-color: #e2b9b3; background: var(--danger-soft); color: #7e423c; }
.review-opt.is-picked-wrong .letter { border-color: var(--danger); background: var(--danger); color: #fff; }
.review-opt .opt-state { margin-left: auto; font-size: 9px; opacity: .75; }
.review-explain { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.review-explain img { display: block; width: 100%; cursor: zoom-in; }
.review-empty { padding: 46px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 20px; font-size: 13px; }

/* ---------- list pages ---------- */

.list-shell { width: min(1000px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 70px; }
.list-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.list-toolbar .spacer { flex: 1; }
.q-list { display: grid; gap: 10px; }
.q-row {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) auto;
  gap: 17px;
  align-items: center;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: .2s ease;
}
.q-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.q-thumb { width: 136px; height: 78px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.q-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; cursor: zoom-in; }
.q-row-main { min-width: 0; }
.q-row-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.q-row-title { margin-top: 6px; color: var(--ink-soft); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-row-sub { margin-top: 3px; color: var(--muted-2); font-size: 9px; }
.q-row-actions { display: flex; align-items: center; gap: 6px; }
.empty-state { padding: 64px 26px; border: 1px dashed var(--line-strong); border-radius: 24px; text-align: center; background: rgba(255,253,248,.45); }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.empty-icon svg { width: 25px; height: 25px; }
.empty-state h3 { font-family: var(--serif); font-size: 24px; letter-spacing: -.02em; }
.empty-state p { max-width: 340px; margin: 7px auto 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.history-list { display: grid; gap: 9px; }
.history-row { display: flex; align-items: center; gap: 17px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.history-score { width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-family: var(--serif); font-size: 20px; font-weight: 700; }
.history-row.is-fail .history-score { background: var(--amber-soft); color: #a3682d; }
.history-main { min-width: 0; }
.history-main strong { display: block; font-size: 13px; }
.history-main span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 10px; }
.history-pill { margin-left: auto; padding: 4px 9px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 9px; font-weight: 650; }
.history-row.is-fail .history-pill { background: var(--danger-soft); color: var(--danger); }
.history-actions { display: flex; gap: 5px; margin-left: 12px; }

/* ---------- sheet / modal ---------- */

body.modal-open { overflow: hidden; }
.sheet-layer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(16, 25, 21, .5); backdrop-filter: blur(7px); animation: fade .2s ease both; }
.sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 40px 100px rgba(10, 20, 15, .3);
  animation: sheetIn .26s cubic-bezier(.2,.7,.2,1) both;
}
.sheet-head { display: flex; align-items: flex-start; gap: 16px; padding: 22px 26px 14px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { font-family: var(--serif); font-size: 23px; letter-spacing: -.025em; }
.sheet-head p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.sheet-close { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.sheet-close:hover { color: var(--ink); background: var(--surface-2); }
.sheet-body { overflow: auto; padding: 20px 26px 26px; overscroll-behavior: contain; }
.sheet-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 26px; border-top: 1px solid var(--line); background: var(--surface); }
.answer-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; }
.answer-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
  transition: .15s ease;
}
.answer-cell:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.answer-cell.is-current { border-color: var(--ink); background: var(--ink); color: #fff; }
.answer-cell.is-correct { border-color: #b7d7c5; background: var(--success-soft); color: var(--success); }
.answer-cell.is-wrong { border-color: #e2b9b3; background: var(--danger-soft); color: var(--danger); }
.answer-cell.is-answered { border-color: #b7d7c5; background: var(--brand-soft); color: var(--brand); }
.answer-cell.is-unanswered { color: var(--muted-2); }
.answer-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; color: var(--muted-2); font-size: 9px; }
.answer-legend span { display: inline-flex; align-items: center; gap: 5px; }
.answer-legend i { width: 9px; height: 9px; border-radius: 3px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.answer-legend .g { background: var(--success-soft); border-color: #b7d7c5; }
.answer-legend .r { background: var(--danger-soft); border-color: #e2b9b3; }
.answer-legend .c { background: var(--ink); border-color: var(--ink); }
.confirm-copy { color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.confirm-copy b { color: var(--danger); }
.confirm-stats { display: flex; gap: 22px; margin-top: 16px; padding: 15px 17px; border-radius: 13px; background: var(--surface-2); }
.confirm-stats div { display: flex; flex-direction: column; gap: 1px; }
.confirm-stats b { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.confirm-stats span { color: var(--muted-2); font-size: 9px; }

/* ---------- lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 15, 12, .92); color: #fff; display: flex; flex-direction: column; animation: fade .2s ease both; }
.lightbox[hidden] { display: none; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; font-size: 11px; color: rgba(255,255,255,.58); }
.lightbox-actions { display: flex; gap: 8px; }
.lightbox-btn { min-height: 34px; padding: 0 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; font-size: 11px; cursor: pointer; }
.lightbox-btn:hover { background: rgba(255,255,255,.14); }
.lightbox-close { width: 34px; padding: 0; }
.lightbox-stage { flex: 1; overflow: auto; display: grid; place-items: center; padding: 8px 20px; overscroll-behavior: contain; }
.lightbox-stage img { display: block; width: min(1000px, 92vw); max-height: 78vh; object-fit: contain; border-radius: 10px; background: #fff; transition: width .2s ease; }
.lightbox.is-zoomed .lightbox-stage { display: block; text-align: center; }
.lightbox.is-zoomed .lightbox-stage img { width: 1600px; max-width: none; max-height: none; margin: 10px auto; }
.lightbox-hint { padding: 8px 20px 18px; text-align: center; color: rgba(255,255,255,.32); font-size: 9px; }

/* ---------- toast ---------- */

.toast-root { position: fixed; left: 50%; bottom: 26px; z-index: 120; 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 15px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(24, 33, 29, .93); color: #fff; font-size: 11px; box-shadow: 0 12px 34px rgba(0,0,0,.18); animation: toastIn .25s ease both; }
.toast.is-leaving { animation: toastOut .22s ease both; }
.toast svg { width: 13px; height: 13px; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) 390px; gap: 30px; }
  .hero-visual { transform: scale(.94); }
  .main-nav { gap: 0; }
  .main-nav a { padding-inline: 10px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-kbd { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .topbar-inner { gap: 18px; }
  .main-nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 8px; min-height: 0; padding-top: 6px; }
  .hero-copy { padding-top: 0; }
  .hero-visual { min-height: 350px; margin-top: 10px; }
  .hero-visual::before { width: 320px; height: 320px; }
  .stat-ribbon { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .mode-card--exam, .mode-card--seq { grid-column: span 12; }
  .mode-card--random, .mode-card--wrong, .mode-card--fav { grid-column: span 6; }
  .mode-card--fav { grid-column: span 12; }
  .exam-intro-card { grid-template-columns: 1fr; }
  .exam-intro-side { padding: 30px; min-height: 260px; }
  .exam-intro-foot { flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; }
  .footer-kbd { grid-column: auto; }
  .review-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .container, .topbar-inner, .page-shell, .list-shell, .exam-intro-shell, .footer-inner { width: calc(100% - 32px); }
  .topbar-inner { height: 66px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-text strong { font-size: 17px; }
  .brand-text small { font-size: 8px; }
  .mini-progress { display: none; }
  .top-cta { height: 34px; padding: 0 13px; font-size: 11px; }
  .home { padding-top: 34px; }
  .hero h1 { font-size: clamp(49px, 15vw, 74px); }
  .hero-lead { margin-top: 18px; font-size: 14px; line-height: 1.8; }
  .hero-actions { margin-top: 25px; }
  .hero-actions .btn { flex: 1; min-height: 48px; }
  .hero-meta { margin-top: 27px; gap: 9px 0; }
  .hero-meta span { padding: 0 11px; font-size: 10px; }
  .hero-meta strong { font-size: 18px; }
  .hero-visual { min-height: 300px; margin-top: 16px; transform: scale(.9); }
  .hero-card { width: 300px; padding: 21px 22px 18px; }
  .score-orbit { width: 145px; height: 145px; margin: 21px auto 18px; }
  .score-orbit strong { font-size: 55px; }
  .float-chip { font-size: 10px; padding: 8px 10px; }
  .chip-a { left: 0; top: 40px; }
  .chip-b { right: 0; top: 112px; }
  .chip-c { left: 10px; bottom: 30px; }
  .stat-ribbon { margin-top: 18px; }
  .stat { padding: 12px 10px; gap: 9px; }
  .stat-icon { width: 31px; height: 31px; border-radius: 10px; }
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 9px; }
  .section { margin-top: 48px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 16px; }
  .section-head h2 { font-size: 31px; }
  .mode-grid { grid-template-columns: 1fr; gap: 11px; }
  .mode-card, .mode-card--exam, .mode-card--seq, .mode-card--random, .mode-card--wrong, .mode-card--fav { grid-column: auto; min-height: 168px; padding: 20px; }
  .mode-card--exam { min-height: 220px; }
  .mode-title { margin-top: 18px; font-size: 23px; }
  .mode-card--exam .mode-title { margin-top: 22px; font-size: 31px; }
  .mode-desc { font-size: 11px; }
  .mode-foot { padding-top: 16px; }
  .home-note { grid-template-columns: 1fr; }
  .note-card { padding: 20px; }
  .note-card p { font-size: 16px; }
  .note-mark { font-size: 46px; }
  .page-shell, .list-shell { padding-top: 30px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 20px; }
  .page-title { font-size: 38px; }
  .head-actions { width: 100%; justify-content: flex-start; }
  .study-shell, .exam-shell, .result-shell { width: calc(100% - 24px); padding-top: 16px; }
  .study-top { gap: 9px; }
  .study-mode { font-size: 15px; }
  .study-tools { gap: 5px; }
  .study-tools .icon-btn { width: 36px; height: 36px; }
  .study-tools .icon-btn svg { width: 16px; height: 16px; }
  .question-card { margin-top: 16px; padding: 18px 16px 18px; border-radius: 22px; }
  .question-media { margin: 16px 0 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .question-media img { width: 680px; max-width: none; }
  .media-hint { display: flex; position: sticky; left: 0; }
  .option { padding: 13px 13px; gap: 11px; border-radius: 14px; font-size: 14px; }
  .option-letter { width: 31px; height: 31px; flex-basis: 31px; font-size: 14px; }
  .option-mark { width: 20px; height: 20px; flex-basis: 20px; }
  .feedback { padding: 13px; }
  .feedback .answer-hint { display: none; }
  .explain-panel { padding: 13px; }
  .study-footer { gap: 8px; margin-top: 18px; padding-top: 16px; }
  .study-footer .btn { min-height: 40px; padding: 0 14px; font-size: 12px; }
  .study-hint { display: none; }
  .nav-buttons { width: 100%; justify-content: space-between; }
  .nav-buttons .btn { flex: 1; }
  .exam-top { flex-wrap: wrap; }
  .exam-title { font-size: 16px; }
  .exam-timer { order: 3; margin-left: 0; }
  .exam-top .btn { margin-left: auto; }
  .exam-intro-shell { padding-top: 28px; }
  .exam-intro-main { padding: 27px 22px 30px; }
  .exam-intro-main h1 { font-size: 41px; }
  .exam-intro-main .lead { font-size: 12px; }
  .exam-intro-side { padding: 26px 22px; min-height: 230px; }
  .exam-clock strong { font-size: 54px; }
  .result-hero { grid-template-columns: 1fr; gap: 24px; padding: 26px 22px; border-radius: 24px; text-align: center; }
  .score-disc { width: 154px; height: 154px; margin: 0 auto; }
  .score-disc strong { font-size: 60px; }
  .result-actions { justify-content: center; }
  .result-actions .btn { flex: 1; }
  .result-copy p { font-size: 11px; }
  .result-stats { grid-template-columns: 1fr 1fr; }
  .result-stat { padding: 14px 16px; }
  .review-head h2 { font-size: 29px; }
  .review-card { padding: 15px; }
  .review-opt { padding: 8px 10px; font-size: 11px; }
  .review-opt .letter { width: 21px; height: 21px; flex-basis: 21px; }
  .review-section { margin-top: 32px; }
  .q-row { grid-template-columns: 82px minmax(0, 1fr); gap: 11px; padding: 10px; }
  .q-thumb { width: 82px; height: 58px; }
  .q-row-actions { grid-column: 1 / -1; justify-content: flex-end; margin-top: -3px; }
  .q-row-title { font-size: 11px; }
  .history-row { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .history-pill { margin-left: 0; }
  .history-actions { margin-left: auto; }
  .sheet-layer { padding: 0; place-items: end center; }
  .sheet { width: 100%; max-height: 88vh; border-radius: 24px 24px 0 0; }
  .sheet-head { padding: 18px 18px 12px; }
  .sheet-body { padding: 16px 18px 20px; }
  .sheet-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .answer-grid { grid-template-columns: repeat(8, 1fr); gap: 5px; }
  .answer-cell { font-size: 9px; }
  .lightbox-stage { padding: 5px 10px; }
  .lightbox-stage img { width: 96vw; max-height: 72vh; }
  .lightbox.is-zoomed .lightbox-stage img { width: 1400px; }
  .toast-root { bottom: 16px; }
  .site-footer { margin-top: 54px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 48px; }
  .hero-meta span { padding-inline: 8px; }
  .option { font-size: 13px; }
  .answer-grid { grid-template-columns: repeat(6, 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; }
}

/* icon sizing inside small pills and dialogs */
.correct-pill { flex-shrink: 0; white-space: nowrap; }
.correct-pill svg { width: 10px; height: 10px; flex: 0 0 10px; }
.result-tag { white-space: nowrap; }
.result-tag svg { width: 11px; height: 11px; flex: 0 0 11px; }
.sheet-close svg { width: 14px; height: 14px; }
.resume-banner > span:first-child { display: grid; place-items: center; flex: 0 0 18px; }
.resume-banner svg { width: 18px; height: 18px; }


@media (max-width: 720px) {
  .question-media { overflow: hidden; }
  .question-media img { width: 100%; max-width: 100%; }
  .media-hint { display: flex; position: static; }
}


/* mobile bottom navigation */
.mobile-tabs { display: none; }
@media (max-width: 900px) {
  body:not(.is-study) { padding-bottom: 72px; }
  .mobile-tabs {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: flex;
    align-items: stretch;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(213, 209, 196, .8);
    background: rgba(247, 246, 240, .92);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 -12px 34px rgba(31, 45, 38, .05);
  }
  body.is-study .mobile-tabs { display: none; }
  .mobile-tabs a {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 56px;
    border-radius: 12px;
    color: var(--muted-2);
    font-size: 9px;
    letter-spacing: .04em;
    transition: color .2s ease, background .2s ease;
  }
  .mobile-tabs a svg { width: 20px; height: 20px; }
  .mobile-tabs a.is-active { color: var(--brand); background: var(--brand-soft); }
  .mobile-tabs a.is-active::before {
    content: "";
    position: absolute;
    top: 1px; left: 50%;
    width: 16px; height: 2px;
    border-radius: 99px;
    background: var(--brand);
    transform: translateX(-50%);
  }
}


@media (max-width: 720px) {
  .result-stat b { font-size: 23px; white-space: nowrap; }
}


.q-thumb { padding: 3px; background: #fbfaf6; }
.q-thumb img { object-fit: contain; object-position: center; }


.noscript { margin: 20px; padding: 18px 22px; border: 1px solid #e6c9a8; border-radius: 14px; background: #fbf1e6; color: #7b4a20; font-size: 14px; }

/* =========================================================
   UI refresh — clearer hierarchy, sticky controls, live plan
   ========================================================= */

:root {
  --muted: #626e67;
  --muted-2: #818b85;
}

/* home: live daily plan card */
.hero-card--plan { transform: rotate(1.6deg); }
.plan-orbit { width: 156px; height: 156px; margin: 22px auto 18px; }
.plan-orbit strong { font-size: 58px; }
.plan-orbit span { font-size: 9px; letter-spacing: .04em; }
.plan-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 14px 0 12px;
  border-top: 1px solid rgba(255,255,255,.11);
}
.plan-meta > div { min-width: 0; }
.plan-meta > div + div {
  padding-left: 13px;
  border-left: 1px solid rgba(255,255,255,.1);
}
.plan-meta span {
  display: block;
  color: rgba(255,255,255,.46);
  font-size: 9px;
  letter-spacing: .05em;
}
.plan-meta b {
  display: block;
  margin-top: 3px;
  color: #f9fcfa;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-meta b small {
  color: rgba(255,255,255,.42);
  font-family: var(--font);
  font-size: 8px;
  font-weight: 400;
}
.hero-card--plan .hero-card-meta { border-top: 0; padding-top: 0; }
.hero-card--plan .hero-card-meta b { color: #f0c28e; font-weight: 500; }
.plan-meter {
  height: 4px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
}
.plan-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d79b5e, #f1c493);
  transition: width .5s cubic-bezier(.2,.7,.2,1);
}

/* typography refinements */
.mode-desc { font-size: 13px; }
.mode-kicker { font-size: 10px; }
.mode-meta { font-size: 11px; }
.stat-label { font-size: 11px; }
.study-back { font-size: 13px; }
.study-counter { font-size: 12px; }
.q-index { font-size: 11px; }
.q-index em {
  color: var(--muted-2);
  font-family: var(--font);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}
.q-page { font-size: 10px; }
.chip { height: 24px; padding-inline: 10px; font-size: 10px; }
.option { font-size: 16px; }
.option-letter { width: 38px; height: 38px; flex-basis: 38px; font-size: 16px; }
.study-hint { font-size: 10px; }
.explain-head { font-size: 11px; }
.exam-sub { font-size: 11px; }
.review-opt { font-size: 13px; }
.top-cta { font-size: 13px; }

/* practice: sticky header + desktop rail */
.practice-shell {
  width: min(1120px, calc(100% - 48px));
  padding-top: 12px;
}
.study-header {
  position: sticky;
  top: 0;
  z-index: 35;
  margin-bottom: 22px;
  padding: 13px 0 12px;
  border-bottom: 1px solid rgba(224, 221, 210, .82);
  background: rgba(242, 241, 234, .9);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.study-header .study-progress { margin-top: 12px; }
.practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px;
  gap: 24px;
  align-items: start;
}
.practice-layout .question-card { margin-top: 0; }
.study-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}
.side-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, .78);
  box-shadow: 0 8px 25px rgba(27, 42, 34, .035);
}
.side-eyebrow {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .12em;
}
.side-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 12px;
}
.side-count strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 45px;
  line-height: .9;
  letter-spacing: -.05em;
}
.side-count span { color: var(--muted-2); font-family: var(--mono); font-size: 10px; }
.side-mini-bar {
  height: 4px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e3d8;
}
.side-mini-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width .35s ease;
}
.side-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.side-kpis div { display: flex; flex-direction: column; gap: 2px; }
.side-kpis b { font-family: var(--serif); font-size: 20px; line-height: 1; }
.side-kpis span { color: var(--muted-2); font-size: 9px; }
.side-tools { padding-bottom: 10px; }
.side-action {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 5px;
  padding: 9px 7px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.side-action:hover { background: var(--surface-2); }
.side-action-icon {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
}
.side-action-icon svg { width: 17px; height: 17px; }
.side-action-text { font-size: 12px; font-weight: 600; }
.side-action small { color: var(--muted-2); font-size: 9px; }
.side-action.is-active { background: var(--amber-soft); color: #81531f; }
.side-action.is-active .side-action-icon { background: #f3dfc8; color: var(--amber); }
.side-note p { margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 2; }
.side-note p kbd { min-width: 19px; height: 19px; font-size: 8px; }
.side-note > span { display: block; margin-top: 7px; color: var(--muted-2); font-size: 9px; line-height: 1.6; }

/* exam: keep timer and progress in view */
.exam-shell { padding-top: 12px; }
.exam-header {
  position: sticky;
  top: 0;
  z-index: 35;
  margin-bottom: 18px;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(224, 221, 210, .82);
  background: rgba(242, 241, 234, .9);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.exam-header .exam-progress { margin-top: 10px; }
.exam-question-card { margin-top: 0; }

/* compact exam briefing header */
.exam-intro-shell { padding-top: 30px; }
.exam-intro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 0 2px;
}

/* result: performance distribution */
.result-distribution-block {
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, .78);
}
.result-distribution {
  display: flex;
  gap: 2px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eae7dc;
}
.result-distribution span { display: block; height: 100%; transition: width .5s ease; }
.dist-correct { background: var(--success); }
.dist-wrong { background: var(--danger); }
.dist-unanswered { background: #dbd6c8; }
.result-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 10px;
}
.result-legend span { display: inline-flex; align-items: center; gap: 5px; }
.result-legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.lg-correct { background: var(--success); }
.lg-wrong { background: var(--danger); }
.lg-unanswered { background: #d3cec1; }

@media (min-width: 1081px) {
  .practice-shell .study-tools { display: none; }
}

@media (max-width: 1080px) {
  .practice-shell { width: min(900px, calc(100% - 40px)); }
  .practice-layout { display: block; }
  .study-side { display: none; }
  .practice-shell .study-tools { display: flex; }
}

@media (max-width: 720px) {
  .practice-shell { width: calc(100% - 24px); padding-top: 8px; }
  .study-header { padding: 8px 0 10px; margin-bottom: 16px; }
  .study-header .study-progress { margin-top: 9px; }
  .exam-header { padding: 8px 0 10px; margin-bottom: 14px; }
  .exam-intro-shell { padding-top: 20px; }
  .exam-intro-top { margin-bottom: 14px; }
  .plan-orbit { width: 145px; height: 145px; }
  .plan-orbit strong { font-size: 52px; }
  .plan-meta { padding-top: 12px; }
  .plan-meta b { font-size: 13px; }
  .hero-card--plan .hero-card-meta { font-size: 9px; }
  .result-distribution-block { padding: 13px 14px; }
  .result-legend { gap: 12px; font-size: 9px; }
  .option { font-size: 15px; }
  .option-letter { width: 34px; height: 34px; flex-basis: 34px; font-size: 15px; }
  .study-footer { position: static; }
}

/* =========================================================
   Theme v3 — 清爽现代 · 蓝紫渐变 (modern light app)
   ========================================================= */

:root {
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --serif: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --bg: #f4f7fb;
  --bg-deep: #edf1f8;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --surface-3: #eef2f8;
  --ink: #101b33;
  --ink-soft: #2e3d57;
  --muted: #5f6d82;
  --muted-2: #8a96a8;
  --line: #e5eaf2;
  --line-strong: #cbd5e4;
  --brand: #3b6cf6;
  --brand-deep: #2f5be0;
  --brand-soft: #eaf0ff;
  --brand-wash: #f2f6ff;
  --amber: #f59e0b;
  --amber-soft: #fdf3e3;
  --danger: #e5484d;
  --danger-soft: #fdeeef;
  --success: #16a34a;
  --success-soft: #e8f7ee;
  --shadow-sm: 0 8px 24px rgba(18, 32, 58, .06);
  --shadow: 0 18px 48px rgba(18, 32, 58, .09);
  --shadow-lg: 0 30px 70px rgba(18, 32, 58, .14);
}

html { color-scheme: light; }

body {
  color: var(--ink);
  background:
    radial-gradient(1000px 620px at 88% -10%, rgba(59, 108, 246, .07), transparent 62%),
    radial-gradient(820px 580px at -12% 34%, rgba(124, 58, 237, .055), transparent 62%),
    var(--bg);
}
body::before {
  opacity: .3;
  background-image: radial-gradient(rgba(16, 27, 51, .08) .55px, transparent .55px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 36%);
}
::selection { color: #fff; background: #3b6cf6; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(139, 150, 168, .4);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

a { color: inherit; }
kbd { background: #eef2f8; border-color: var(--line-strong); color: #2e3d57; }

/* ---------- top bar / footer / mobile tabs ---------- */
.topbar {
  border-bottom: 1px solid rgba(203, 213, 228, .6);
  background: rgba(255, 255, 255, .82);
}
.main-nav a { color: var(--muted); }
.main-nav a:hover { color: var(--ink); background: rgba(59, 108, 246, .06); }
.main-nav a.is-active { color: var(--brand); }
.mini-progress { color: var(--muted); }
.mini-progress i { background: #e3e9f2; }
.mini-progress b { background: linear-gradient(90deg, #4f7cff, #3b6cf6); }
.top-cta { background: #101b33; color: #fff; }
.top-cta:hover { background: var(--brand); }

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .55);
}
.footer-note, .footer-brand span, .footer-kbd { color: var(--muted); }

.mobile-tabs {
  border-top: 1px solid rgba(203, 213, 228, .8);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 -12px 34px rgba(18, 32, 58, .06);
}
.mobile-tabs a { color: var(--muted-2); }
.mobile-tabs a.is-active { color: var(--brand); background: var(--brand-soft); }

/* ---------- buttons ---------- */
.btn--primary {
  background: linear-gradient(135deg, #4f7cff, #3b6cf6);
  color: #fff;
  box-shadow: 0 10px 26px rgba(59, 108, 246, .28);
}
.btn--primary:hover { background: linear-gradient(135deg, #4f7cff, #3b6cf6); filter: brightness(1.05); box-shadow: 0 14px 32px rgba(59, 108, 246, .34); }
.btn--dark { background: #101b33; color: #fff; }
.btn--ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .7); }
.btn--ghost:hover { border-color: #8fa3c4; background: #fff; }
.btn--soft { background: var(--brand-soft); color: var(--brand-deep); }
.btn--soft:hover { background: #dfe9ff; }
.btn--danger-soft { background: var(--danger-soft); color: var(--danger); }
.icon-btn { background: #fff; border-color: var(--line); color: var(--muted); }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-btn.is-active { color: var(--amber); border-color: #f3d9b0; background: var(--amber-soft); }

/* ---------- home hero ---------- */
.eyebrow {
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: .06em;
}
.eyebrow::before { display: none; }
.eyebrow-dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(59, 108, 246, .14); }
.hero { min-height: 430px; }
.hero h1 {
  font-size: clamp(44px, 5.4vw, 76px);
  letter-spacing: -.045em;
  color: var(--ink);
}
.hero h1 .accent { color: var(--brand); font-family: var(--serif); font-weight: 700; }
.hero h1 .accent::after { background: rgba(59, 108, 246, .16); }
.hero-lead { color: var(--muted); }
.hero-meta span { border-left-color: var(--line-strong); color: var(--muted); }
.hero-meta strong { color: var(--ink); }

.hero-visual::before { border-color: rgba(59, 108, 246, .18); }
.hero-visual::after { background: radial-gradient(circle, rgba(59, 108, 246, .08), transparent 68%); }
.hero-card, .hero-card--plan {
  transform: none;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(203, 213, 228, .5) inset;
}
.hero-card::before { border-color: rgba(203, 213, 228, .5); }
.hero-card-top { color: var(--muted); opacity: 1; }
.pass-pill { color: var(--brand); border-color: #d6e2ff; background: var(--brand-soft); }
.pass-pill::before { background: var(--brand); box-shadow: 0 0 0 3px rgba(59, 108, 246, .15); }
.score-orbit { background: conic-gradient(#3b6cf6 calc(var(--score) * 1%), #e9eef8 0); box-shadow: 0 0 0 1px rgba(203, 213, 228, .6) inset; }
.score-orbit::before { background: #ffffff; box-shadow: 0 0 0 1px rgba(203, 213, 228, .5) inset; }
.score-orbit strong { color: var(--ink); }
.score-orbit span { color: var(--muted-2); }
.hero-card-meta { border-top-color: var(--line); color: var(--muted); }
.hero-card-meta b { color: var(--ink); }
.plan-meta { border-top-color: var(--line); }
.plan-meta > div + div { border-left-color: var(--line); }
.plan-meta span { color: var(--muted-2); }
.plan-meta b { color: var(--ink); }
.plan-meta b small { color: var(--muted-2); }
.hero-card--plan .hero-card-meta b { color: var(--brand); }
.plan-meter { background: #e9eef8; }
.plan-meter span { background: linear-gradient(90deg, #4f7cff, #3b6cf6); }
.float-chip {
  background: rgba(255, 255, 255, .95);
  border-color: rgba(203, 213, 228, .8);
  color: var(--ink-soft);
  box-shadow: 0 14px 32px rgba(18, 32, 58, .1);
}
.float-chip b { color: var(--brand); }
.float-chip::before { background: var(--brand); }
.barcode { opacity: .16; filter: invert(0); }

/* ---------- stats / mode cards / notes ---------- */
.stat-ribbon { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.stat + .stat { border-left-color: var(--line); }
.stat:nth-child(2) .stat-icon { color: #b7791f; background: var(--amber-soft); }
.stat:nth-child(3) .stat-icon { color: var(--danger); background: var(--danger-soft); }
.stat:nth-child(4) .stat-icon { color: var(--brand); background: var(--brand-soft); }
.stat-value { color: var(--ink); }
.stat-value small { color: var(--muted-2); }
.stat-label { color: var(--muted); }

.mode-card { background: #fff; border-color: var(--line); }
.mode-card:hover { border-color: #d3dceb; box-shadow: var(--shadow); }
.mode-card::after { background: radial-gradient(circle, rgba(59, 108, 246, .08), transparent 68%); }
.mode-card--exam {
  background: linear-gradient(148deg, #3b6cf6, #7c3aed);
  color: #f8faff;
  box-shadow: 0 18px 40px rgba(59, 108, 246, .28);
}
.mode-card--exam:hover { box-shadow: 0 26px 60px rgba(59, 108, 246, .36); }
.mode-card--exam .mode-icon { background: rgba(255, 255, 255, .14); color: #dbe4ff; }
.mode-card--exam .mode-badge { background: rgba(255, 255, 255, .14); color: #e6ecff; }
.mode-card--exam .mode-desc { color: rgba(255, 255, 255, .72); }
.mode-card--exam .mode-meta { color: rgba(255, 255, 255, .55); }
.mode-card--exam .mode-arrow { border-color: rgba(255, 255, 255, .25); color: #fff; }
.mode-card--exam:hover .mode-arrow { background: #fff; border-color: #fff; color: #3b6cf6; }
.mode-icon { background: var(--brand-soft); color: var(--brand); }
.mode-card--wrong .mode-icon { background: var(--danger-soft); color: var(--danger); }
.mode-card--random .mode-icon { background: var(--amber-soft); color: #d98324; }
.mode-card--fav .mode-icon { background: #f6f1e6; color: #b7832f; }
.mode-title { color: var(--ink); }
.mode-desc { color: var(--muted); }
.mode-foot { color: var(--muted-2); }
.mode-progress i { background: #e9eef8; }
.mode-progress b { background: linear-gradient(90deg, #4f7cff, #3b6cf6); }
.mode-badge { background: var(--brand-soft); color: var(--brand-deep); }
.mode-card:hover .mode-arrow { background: var(--brand); color: #fff; }

.note-card, .last-card { background: #fff; border-color: var(--line); }
.note-mark { color: var(--amber); }
.note-card p { color: var(--ink-soft); }
.last-card .last-score-row strong { color: var(--ink); }
.last-card small { color: var(--muted-2); }

/* ---------- page shells ---------- */
.page-title { color: var(--ink); }
.page-sub { color: var(--muted); }

/* ---------- practice / study ---------- */
.study-header, .exam-header {
  border-bottom: 1px solid rgba(203, 213, 228, .7);
  background: rgba(244, 247, 251, .88);
}
.study-back { color: var(--muted); }
.study-back:hover { color: var(--ink); }
.study-mode { color: var(--ink); }
.study-counter { color: var(--muted-2); }
.study-progress { background: #e3e9f2; }
.study-progress span { background: linear-gradient(90deg, #4f7cff, #3b6cf6); }
.side-mini-bar { background: #e3e9f2; }
.side-mini-bar span { background: linear-gradient(90deg, #4f7cff, #3b6cf6); }

.question-card {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.q-index { color: var(--muted-2); }
.q-index b { color: var(--ink-soft); }
.q-index em { color: var(--muted-2); }
.chip { background: var(--surface-2); color: var(--muted); }
.chip--type { background: var(--brand-soft); color: var(--brand-deep); }
.chip--new { background: #f2ecfd; color: #7c3aed; }
.chip--score { background: var(--amber-soft); color: #b7791f; }
.q-page { color: var(--muted-2); }

.question-media { background: #ffffff; border-color: var(--line); box-shadow: 0 8px 24px rgba(18, 32, 58, .05); }
.media-hint { border-top: 1px solid var(--line); background: #f6f8fc; color: var(--muted-2); }

.options { color: var(--ink-soft); }
.option { background: #fbfcfe; border-color: var(--line); color: var(--ink-soft); }
.option:hover:not(:disabled) { background: #fff; border-color: #a9bce8; box-shadow: 0 7px 20px rgba(18, 32, 58, .06); }
.option-letter { border-color: #cfd8e6; color: var(--muted); }
.option.is-selected { border-color: var(--brand); background: var(--brand-wash); }
.option.is-selected .option-letter { border-color: var(--brand); background: var(--brand); color: #fff; }
.option.is-chosen { border-color: var(--brand); background: var(--brand-wash); }
.option.is-chosen .option-letter { border-color: var(--brand); background: var(--brand); color: #fff; }
.option.is-chosen .option-mark { background: var(--brand); color: #fff; }
.option.is-correct { border-color: #9fd7b3; background: var(--success-soft); color: #166534; }
.option.is-correct .option-letter { border-color: var(--success); background: var(--success); color: #fff; }
.option.is-correct .option-mark { color: var(--success); background: #d6f0e0; }
.option.is-wrong { border-color: #f0b4b7; background: var(--danger-soft); color: #a1262b; }
.option.is-wrong .option-letter { border-color: var(--danger); background: var(--danger); color: #fff; }
.option.is-wrong .option-mark { color: var(--danger); background: #f8d8da; }
.option.is-muted { opacity: .55; }

.feedback--good { background: var(--success-soft); border-color: #cdebd9; color: #166534; }
.feedback--bad { background: var(--danger-soft); border-color: #f3cdd0; color: #a1262b; }
.feedback-icon { background: #fff; }

.explain-panel { background: var(--surface-2); border-color: var(--line); }
.explain-head { color: var(--muted); }
.explain-head strong { color: var(--ink-soft); }
.correct-pill { background: var(--success); color: #fff; }
.explain-panel img { background: #fff; }
.explain-note { color: var(--muted-2); }

.study-footer { border-top-color: var(--line); }
.study-hint { color: var(--muted-2); }
.study-hint kbd { background: #eef2f8; }

.side-card { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.side-eyebrow { color: var(--muted-2); }
.side-count strong { color: var(--ink); }
.side-count span { color: var(--muted-2); }
.side-kpis { border-top-color: var(--line); }
.side-kpis b { color: var(--ink); }
.side-kpis span { color: var(--muted-2); }
.side-action { color: var(--ink-soft); }
.side-action:hover { background: var(--surface-2); }
.side-action-icon { background: var(--surface-3); color: var(--muted); }
.side-action small { color: var(--muted-2); }
.side-action.is-active { background: var(--amber-soft); color: #a06819; }
.side-action.is-active .side-action-icon { background: #f7e8cf; color: #d98324; }
.side-note p { color: var(--muted); }
.side-note > span { color: var(--muted-2); }
.side-note p kbd { background: #eef2f8; }

.completion-icon, .empty-icon { background: var(--brand-soft); color: var(--brand); }
.completion h2 { color: var(--ink); }
.completion p { color: var(--muted); }
.completion-stats b { color: var(--ink); }

/* ---------- exam ---------- */
.exam-title { color: var(--ink); }
.exam-sub { color: var(--muted-2); }
.exam-timer { background: #fff; border-color: var(--line); color: var(--ink-soft); }
.exam-timer svg { color: var(--amber); }
.exam-timer.is-warning { color: var(--danger); border-color: #f0b4b7; background: var(--danger-soft); }
.exam-progress span { color: var(--muted-2); }
.exam-submit-bar small { color: var(--muted-2); }

.exam-intro-card { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.exam-intro-main h1 { color: var(--ink); }
.exam-intro-main h1 span { color: var(--brand); }
.exam-intro-main .lead { color: var(--muted); }
.exam-rules li { color: var(--ink-soft); }
.exam-rules .num { border-color: var(--line-strong); color: var(--muted); }
.exam-intro-side {
  background:
    radial-gradient(380px 280px at 80% 0%, rgba(255, 255, 255, .14), transparent 58%),
    linear-gradient(155deg, #3b6cf6, #7c3aed);
}
.exam-intro-side::before { border-color: rgba(255, 255, 255, .16); }
.exam-clock strong { color: #f8faff; }
.exam-clock span { color: rgba(255, 255, 255, .55); }
.exam-side-rule { border-top-color: rgba(255, 255, 255, .16); }
.exam-side-rule div { color: rgba(255, 255, 255, .62); }
.exam-side-rule b { color: #fff; }
.exam-intro-side .btn { background: #fff; color: #1d2b53; box-shadow: 0 12px 26px rgba(18, 32, 58, .22); }
.exam-intro-side .btn:hover { background: #eef2ff; }
.exam-intro-side small { color: rgba(255, 255, 255, .5); }
.exam-intro-foot { color: var(--muted-2); }
.resume-banner { background: var(--amber-soft); border-color: #f3d9b0; color: #a06819; }
.resume-banner strong { color: #7c4a12; }

/* ---------- result ---------- */
.result-hero {
  background:
    radial-gradient(500px 360px at 82% -10%, rgba(255, 255, 255, .14), transparent 55%),
    linear-gradient(150deg, #3b6cf6, #7c3aed);
  box-shadow: 0 28px 70px rgba(59, 108, 246, .24);
}
.result-hero.is-fail {
  background:
    radial-gradient(500px 360px at 82% -10%, rgba(255, 255, 255, .12), transparent 55%),
    linear-gradient(150deg, #d4695a, #7b3d52);
}
.result-hero::after { border-color: rgba(255, 255, 255, .16); }
.score-disc { background: conic-gradient(#a5d8ff calc(var(--score) * 1%), rgba(255, 255, 255, .16) 0); }
.score-disc::before { background: rgba(16, 27, 51, .35); }
.result-hero.is-fail .score-disc::before { background: rgba(64, 20, 32, .45); }
.score-disc strong { color: #f8faff; }
.result-copy h1 { color: #f8faff; }
.result-copy p { color: rgba(255, 255, 255, .66); }
.result-actions .btn--primary { background: #fff; color: #1d2b53; box-shadow: none; }
.result-actions .btn--primary:hover { background: #eef2ff; filter: none; }
.result-actions .btn--ghost { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; }
.result-actions .btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.result-stat { background: #fff; border-color: var(--line); }
.result-stat b { color: var(--ink); }
.result-stat span { color: var(--muted-2); }
.result-distribution-block { background: #fff; border-color: var(--line); }
.result-distribution { background: #e9eef8; }
.dist-correct { background: var(--success); }
.dist-wrong { background: var(--danger); }
.dist-unanswered { background: #c7d2e2; }
.result-legend { color: var(--muted-2); }
.lg-correct { background: var(--success); }
.lg-wrong { background: var(--danger); }
.lg-unanswered { background: #c7d2e2; }

.review-card { background: #fff; border-color: var(--line); }
.review-question { background: #fff; border-color: var(--line); }
.review-opt { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
.review-opt .letter { border-color: #cfd8e6; color: var(--muted); }
.review-opt.is-correct { border-color: #9fd7b3; background: var(--success-soft); color: #166534; }
.review-opt.is-correct .letter { border-color: var(--success); background: var(--success); color: #fff; }
.review-opt.is-picked-wrong { border-color: #f0b4b7; background: var(--danger-soft); color: #a1262b; }
.review-opt.is-picked-wrong .letter { border-color: var(--danger); background: var(--danger); color: #fff; }
.review-explain { background: var(--surface-2); border-color: var(--line); }
.review-explain img { background: #fff; }
.review-empty { color: var(--muted); border-color: var(--line-strong); }
.segmented { background: #fff; border-color: var(--line); }
.segmented button { color: var(--muted); }
.segmented button.is-active { background: #101b33; color: #fff; }
.result-tag--right { color: var(--success); background: var(--success-soft); }
.result-tag--wrong { color: var(--danger); background: var(--danger-soft); }

/* ---------- lists ---------- */
.q-row { background: #fff; border-color: var(--line); }
.q-row:hover { border-color: #d3dceb; box-shadow: var(--shadow-sm); }
.q-thumb { background: #fff; border-color: var(--line); }
.q-row-title { color: var(--ink-soft); }
.q-row-sub { color: var(--muted-2); }
.empty-state { background: rgba(255, 255, 255, .7); border-color: var(--line-strong); }
.empty-state h3 { color: var(--ink); }
.empty-state p { color: var(--muted); }

.history-row { background: #fff; border-color: var(--line); }
.history-score { background: var(--brand-soft); color: var(--brand); }
.history-row.is-fail .history-score { background: var(--amber-soft); color: #d98324; }
.history-main strong { color: var(--ink-soft); }
.history-main span { color: var(--muted-2); }
.history-pill { background: var(--success-soft); color: var(--success); }
.history-row.is-fail .history-pill { background: var(--danger-soft); color: var(--danger); }

/* ---------- sheet / modal / lightbox / toast ---------- */
.sheet-backdrop { background: rgba(16, 27, 51, .45); }
.sheet { background: #fff; border-color: var(--line); box-shadow: 0 40px 100px rgba(16, 27, 51, .25); }
.sheet-head { border-bottom-color: var(--line); }
.sheet-head h3 { color: var(--ink); }
.sheet-head p { color: var(--muted-2); }
.sheet-close { border-color: var(--line); color: var(--muted); }
.sheet-close:hover { background: var(--surface-2); color: var(--ink); }
.sheet-foot { border-top-color: var(--line); background: #fff; }
.answer-cell { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
.answer-cell:hover { border-color: var(--brand); color: var(--brand); }
.answer-cell.is-current { border-color: #101b33; background: #101b33; color: #fff; }
.answer-cell.is-correct { border-color: #9fd7b3; background: var(--success-soft); color: var(--success); }
.answer-cell.is-wrong { border-color: #f0b4b7; background: var(--danger-soft); color: var(--danger); }
.answer-cell.is-answered { border-color: #a9bce8; background: var(--brand-soft); color: var(--brand); }
.answer-legend { color: var(--muted-2); }
.answer-legend i { background: var(--surface-2); border-color: var(--line-strong); }
.confirm-copy { color: var(--ink-soft); }
.confirm-stats { background: var(--surface-2); }
.confirm-stats span { color: var(--muted-2); }

.lightbox { background: rgba(8, 12, 22, .94); }
.lightbox-stage img { background: #fff; }
.lightbox-bar, .lightbox-hint { color: rgba(255, 255, 255, .55); }
.lightbox-btn { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; }
.lightbox-btn:hover { background: rgba(255, 255, 255, .14); }

.toast { background: rgba(16, 27, 51, .94); border-color: rgba(255, 255, 255, .16); box-shadow: 0 12px 34px rgba(16, 27, 51, .3); }
.noscript { background: var(--amber-soft); border-color: #f3d9b0; color: #a06819; }

/* v3.1 cleanup — calmer hero, Chinese-first labels */
.hero-visual::before { display: none; }
.hero { min-height: 380px; gap: 44px; }
.home { padding-top: 44px; }
.eyebrow { letter-spacing: .04em; text-transform: none; }
.mode-kicker { letter-spacing: .08em; }
.side-eyebrow { letter-spacing: .06em; }

/* =========================================================
   v4 — 极简清晰版：首页大按钮 + 无侧栏练习页
   ========================================================= */

.home-simple {
  width: min(640px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 64px;
}
.home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.home-head h1 { font-size: 30px; letter-spacing: -.02em; line-height: 1.2; }
.home-head p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.home-new {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.today-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.today-bar span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.today-bar i { flex: 1; height: 6px; border-radius: 999px; background: #e9eef8; overflow: hidden; }
.today-bar b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4f7cff, #3b6cf6); }
.today-bar em { font-style: normal; font-size: 12px; font-weight: 650; color: var(--ink-soft); white-space: nowrap; }

.home-actions { display: grid; gap: 12px; margin-bottom: 16px; }
.home-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.home-btn-icon {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
}
.home-btn-icon svg { width: 20px; height: 20px; }
.home-btn-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.home-btn-main strong { font-size: 17px; color: var(--ink); }
.home-btn-main small { font-size: 12px; color: var(--muted); }
.home-btn-arrow { color: var(--muted-2); }
.home-btn-arrow svg { width: 16px; height: 16px; }
.home-btn--primary { background: linear-gradient(135deg, #4f7cff, #3b6cf6); border-color: transparent; }
.home-btn--primary:hover { box-shadow: 0 12px 28px rgba(59, 108, 246, .28); }
.home-btn--primary .home-btn-icon { background: rgba(255, 255, 255, .2); color: #fff; }
.home-btn--primary .home-btn-main strong { color: #fff; }
.home-btn--primary .home-btn-main small { color: rgba(255, 255, 255, .78); }
.home-btn--primary .home-btn-arrow { color: rgba(255, 255, 255, .85); }

.home-list { display: grid; gap: 8px; margin-bottom: 16px; }
.home-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: background .15s ease;
}
.home-list a:hover { background: var(--surface-2); }
.home-list a span { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.home-list a small { margin-left: auto; font-size: 12px; color: var(--muted-2); }
.home-list a svg { width: 14px; height: 14px; color: var(--muted-2); }

.home-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.home-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.home-stats b { font-size: 22px; color: var(--ink); }
.home-stats span { font-size: 11px; color: var(--muted-2); }

/* practice: single centered card, tools always visible */
.practice-shell { width: min(900px, calc(100% - 40px)); }
.practice-shell .study-tools { display: flex !important; }
.practice-layout { display: block; }
.study-side { display: none; }
.study-mode { font-size: 15px; }

/* exam intro: simpler, centered */
.exam-intro-shell { width: min(860px, calc(100% - 48px)); }
.exam-intro-card { min-height: 0; }
.exam-intro-main h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; }
.exam-intro-main .btn { margin-top: 22px; }
.exam-last { margin-top: 12px; color: var(--muted-2); font-size: 12px; }

@media (max-width: 720px) {
  .home-simple { width: calc(100% - 24px); padding-top: 24px; }
  .home-head h1 { font-size: 26px; }
  .home-btn { padding: 15px; }
  .home-btn-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .home-btn-main strong { font-size: 16px; }
  .exam-intro-shell { width: calc(100% - 24px); }
}
