/* ============================================================
   知练 · 题库练习
   轻量、本地优先的刷题界面
   ============================================================ */

:root {
  --brand: #2f6bff;
  --brand-deep: #1e4fe0;
  --brand-soft: #eef4ff;
  --mint: #00b8a9;
  --mint-soft: #e9fbf8;
  --ink: #16213b;
  --muted: #6b7690;
  --faint: #98a2b8;
  --bg: #f3f6fc;
  --card: #ffffff;
  --line: #e6ebf5;
  --soft: #f7f9fe;
  --ok: #12a150;
  --ok-soft: #eaf8f0;
  --bad: #e5484d;
  --bad-soft: #fdeeee;
  --amber: #f59e0b;
  --radius: 20px;
  --shadow: 0 12px 30px rgba(28, 52, 110, .07);
  --shadow-lg: 0 24px 60px rgba(28, 52, 110, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 10% -10%, #e3edff 0%, rgba(227, 237, 255, 0) 60%),
    radial-gradient(800px 500px at 100% 0%, #dffbf5 0%, rgba(223, 251, 245, 0) 55%),
    var(--bg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; }
svg { display: block; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }

.app-shell {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 118px;
  position: relative;
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 -20px;
  padding: 0 20px;
  background: rgba(243, 246, 252, .78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  text-align: left;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  background: linear-gradient(135deg, #2f6bff, #00b8a9);
  box-shadow: 0 8px 18px rgba(47, 107, 255, .26);
  letter-spacing: 0;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 17px; letter-spacing: .5px; }
.brand-copy small { font-size: 10px; color: var(--faint); letter-spacing: 1.5px; margin-top: 3px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background .18s, color .18s;
}
.icon-btn:hover { background: rgba(47, 107, 255, .08); color: var(--brand); }
.back-btn { margin-left: -8px; }

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: background .18s, color .18s;
}
.text-btn .icon { width: 17px; height: 17px; }
.text-btn:hover { background: rgba(47, 107, 255, .08); color: var(--brand); }

.member-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
  color: var(--muted); font-size: 11px; font-weight: 600;
  transition: border-color .18s, color .18s, background .18s;
}
.member-btn .icon { width: 15px; height: 15px; }
.member-btn:hover { border-color: #cbd8f2; color: var(--brand); }
.member-btn.logged-in { color: var(--brand); border-color: #d6e4ff; background: var(--brand-soft); }
.member-btn span { max-width: 72px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- 视图 ---------------- */
.view { display: none; animation: viewIn .32s cubic-bezier(.2, .8, .3, 1); }
.view.active { display: block; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- 首页 ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  border-radius: 28px;
  padding: 26px 26px 22px;
  color: #fff;
  background: linear-gradient(128deg, #2455ee 0%, #3b7bff 48%, #00b3a4 110%);
  box-shadow: 0 24px 50px rgba(37, 84, 220, .24);
}
.hero-glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.hero-glow-a {
  width: 230px; height: 230px; right: -80px; top: -100px;
  background: radial-gradient(circle, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 68%);
}
.hero-glow-b {
  width: 200px; height: 200px; right: 40px; bottom: -130px;
  background: radial-gradient(circle, rgba(0, 255, 214, .32), rgba(0, 255, 214, 0) 70%);
}
.hero-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-date { font-size: 12.5px; color: rgba(255, 255, 255, .78); letter-spacing: .4px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; color: rgba(255, 255, 255, .86);
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .16);
  white-space: nowrap;
}
.hero-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #8fffea; box-shadow: 0 0 0 3px rgba(143, 255, 234, .18); }
.hero-switch { cursor: pointer; transition: background .18s; }
.hero-switch:hover { background: rgba(255, 255, 255, .22); }
.hero-switch .icon { width: 13px; height: 13px; }
.hero h1 {
  position: relative;
  margin-top: 22px;
  font-size: 30px;
  line-height: 1.38;
  letter-spacing: -.6px;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  color: #b9fff1;
  position: relative;
}
.hero-bank {
  position: relative;
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-metrics div { display: flex; flex-direction: column; gap: 2px; }
.hero-metrics strong { font-size: 21px; font-weight: 750; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.hero-metrics span { font-size: 10.5px; color: rgba(255, 255, 255, .64); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 26px 2px 12px;
}
.section-head h2 { font-size: 17px; letter-spacing: -.2px; }
.section-note { font-size: 11.5px; color: var(--faint); }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.entry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }

.entry-context {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 13px; margin-bottom: 10px;
  border: 1px solid #dbe8ff; border-radius: 11px;
  background: linear-gradient(100deg, #f3f8ff, #f8fffd);
}
.entry-context-label { font-size: 9.5px; color: var(--faint); flex: none; }
.entry-context strong { font-size: 11.5px; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-context-switch { margin-left: auto; flex: none; height: 27px; padding: 0 9px; border-radius: 7px; background: #fff; border: 1px solid #d5e2f6; color: var(--brand); font-size: 9.5px; font-weight: 600; }

.guest-home-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin-bottom: 4px;
  border: 1px solid #dbe8ff; border-radius: 15px;
  background: linear-gradient(110deg, #f3f8ff, #f7fffd);
}
.guest-home-card > div:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.guest-home-card strong { font-size: 12.5px; color: var(--ink); }
.guest-home-card span { font-size: 10px; color: var(--muted); line-height: 1.5; }
.guest-home-card .primary-btn, .guest-home-card .secondary-btn { height: 38px; flex: none; font-size: 11px; }
.guest-home-actions { display: flex; align-items: center; gap: 7px; flex: none; }
.guest-home-actions .secondary-btn { display: inline-flex; align-items: center; text-decoration: none; }

.home-service {
  width: 100%; display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; margin-bottom: 14px;
  border: 1px solid #dbe8ff; border-radius: 13px;
  background: linear-gradient(100deg, #f5f9ff, #fff);
  text-align: left;
}
.home-service-icon { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; color: var(--brand); background: #eaf2ff; }
.home-service-icon .icon { width: 19px; height: 19px; }
.home-service-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.home-service-copy strong { font-size: 11.5px; color: var(--ink); }
.home-service-copy small { font-size: 9.5px; color: var(--muted); }
.home-service-action { flex: none; height: 28px; padding: 0 9px; border-radius: 7px; display: inline-flex; align-items: center; background: var(--brand); color: #fff; font-size: 9.5px; font-weight: 600; }.entry-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
  min-height: 116px; padding: 14px 14px 13px;
  border: 1px solid #e2ebf7; border-radius: 15px; background: #fff;
  text-align: left; overflow: hidden;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.entry-card::after {
  content: ''; position: absolute; right: -24px; bottom: -34px;
  width: 92px; height: 92px; border-radius: 50%; opacity: .55;
  background: radial-gradient(circle, rgba(47,107,255,.12), rgba(47,107,255,0));
}
.entry-card:hover { border-color: #b9ceff; box-shadow: 0 8px 22px rgba(47,107,255,.08); transform: translateY(-2px); }
.entry-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.entry-icon .icon { width: 19px; height: 19px; }
.entry-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-right: 12px; }
.entry-copy strong { font-size: 12.5px; color: var(--ink); }
.entry-copy small { font-size: 9.5px; color: var(--muted); line-height: 1.45; }
.entry-arrow { position: absolute; right: 12px; top: 14px; color: #c4d0e2; }
.entry-arrow .icon { width: 15px; height: 15px; }
.entry-practice .entry-icon { background: #eaf3ff; color: #2f6bff; }
.entry-exam .entry-icon { background: #f3edff; color: #7655d9; }
.entry-search .entry-icon { background: #e8fbf5; color: #0b9b78; }
.entry-wrong .entry-icon { background: #fff0ef; color: #d4544b; }
.entry-referral .entry-icon { background: #fff4e3; color: #d98a00; }
.entry-stats .entry-icon { background: #eef6ff; color: #2f6bff; }
.entry-stats::after { background: radial-gradient(circle, rgba(47,107,255,.12), rgba(47,107,255,0)); }
.entry-exam::after { background: radial-gradient(circle, rgba(118,85,217,.12), rgba(118,85,217,0)); }
.entry-search::after { background: radial-gradient(circle, rgba(11,155,120,.12), rgba(11,155,120,0)); }
.entry-referral::after { background: radial-gradient(circle, rgba(217,138,0,.13), rgba(217,138,0,0)); }

.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 14px; }
.tool-card {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 14px; border-radius: 14px;
  border: 1px solid #e3ebf8; background: #fff;
  text-align: left; min-width: 0;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.tool-card:hover { border-color: #c2d5f6; box-shadow: 0 6px 18px rgba(47, 107, 255, .07); transform: translateY(-1px); }
.tool-icon {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.tool-icon.referral { background: #fff4e3; color: #d98a00; }
.tool-icon .icon { width: 18px; height: 18px; }
.tool-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tool-copy strong { font-size: 12px; color: var(--ink); }
.tool-copy small { font-size: 9.5px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-card .card-arrow { flex: none; }
.feature-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 4px 14px rgba(28, 52, 110, .04);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  overflow: hidden;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d6e1f7; }
.feature-card:active { transform: translateY(0); }
.practice-card {
  grid-column: span 2;
  align-items: center;
  background:
    radial-gradient(360px 180px at 100% 0%, #e2fbf6 0%, rgba(226, 251, 246, 0) 70%),
    linear-gradient(120deg, #f4f8ff, #f8fffd);
  border-color: #dce8ff;
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; flex: none;
}
.practice-card .feature-icon { background: linear-gradient(135deg, #2f6bff, #00b8a9); color: #fff; box-shadow: 0 8px 18px rgba(47, 107, 255, .22); }
.exam-card .feature-icon { background: #eef4ff; color: var(--brand); }
.wrong-feature .feature-icon { background: #fff0ef; color: var(--bad); }
.feature-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.feature-copy strong { font-size: 15.5px; letter-spacing: -.2px; }
.feature-copy small { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.practice-card .feature-copy { flex: 1; }
.feature-go {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 650; color: var(--brand); white-space: nowrap;
}
.feature-go .icon { width: 15px; height: 15px; }
.card-arrow { margin-left: auto; color: #b3bed4; }
.card-arrow .icon { width: 17px; height: 17px; }
.exam-card .card-arrow, .wrong-feature .card-arrow {
  position: absolute; right: 16px; top: 16px; margin: 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(28, 52, 110, .035);
}
.panel + .panel { margin-top: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head h3 { font-size: 14.5px; letter-spacing: -.1px; }
.panel-head.sub { margin-top: 20px; }
.panel-hint { font-size: 11px; color: var(--faint); }

.today-panel { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 17px 18px; }
.today-ring {
  width: 54px; height: 54px; border-radius: 50%;
  flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--brand) 0%, #e8eef9 0);
  position: relative;
}
.today-ring::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff;
}
.today-ring span { position: relative; z-index: 1; font-size: 10.5px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.today-copy { flex: 1; min-width: 0; }
.today-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.today-head strong { font-size: 13.5px; }
.today-head span { font-size: 11px; color: var(--muted); }
.today-copy p { margin-top: 7px; font-size: 10.5px; color: var(--faint); }
.progress { height: 6px; border-radius: 99px; background: #edf1f9; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--mint)); transition: width .5s cubic-bezier(.2, .8, .3, 1); }
.progress.slim { height: 5px; }
.small-primary {
  flex: none; padding: 8px 14px; border-radius: 10px;
  color: var(--brand); background: var(--brand-soft);
  font-size: 12px; font-weight: 650;
  transition: background .18s;
}
.small-primary:hover { background: #e2ecff; }

.bank-strip {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px; padding: 14px 16px;
  border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .66);
}
.bank-strip-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #f0f4fc; color: var(--muted); flex: none; }
.bank-strip-icon .icon { width: 18px; height: 18px; }
.bank-strip-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.bank-strip-copy strong { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bank-strip-copy span { font-size: 10.5px; color: var(--faint); }
.bank-strip .text-btn { margin-left: auto; white-space: nowrap; }
.bank-managed {
  margin-left: auto; flex: none;
  padding: 5px 8px; border-radius: 6px;
  background: #f1f5fc; color: var(--faint);
  font-size: 9.5px; font-weight: 600;
  white-space: nowrap;
}
.local-note { margin: 18px 0 4px; text-align: center; font-size: 10.5px; color: #a8b2c6; }

/* ---------------- 课程库 ---------------- */
.library-head { padding: 20px 2px 18px; }
.library-head h1 { margin-top: 7px; font-size: 30px; letter-spacing: -.9px; line-height: 1.2; }
.library-head p { margin-top: 7px; font-size: 12.5px; color: var(--muted); }

.search-box {
  display: flex; align-items: center; gap: 9px;
  height: 50px; padding: 0 14px;
  border-radius: 15px; border: 1.5px solid var(--line);
  background: #fff;
  box-shadow: 0 4px 14px rgba(28, 52, 110, .035);
  transition: border-color .18s, box-shadow .18s;
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47, 107, 255, .09); }
.search-box > .icon { color: var(--faint); width: 19px; height: 19px; }
.search-box input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: none; background: transparent;
  font-size: 13.5px;
}
.search-box input::placeholder { color: #a9b3c6; }
.search-box .icon-btn { width: 30px; height: 30px; }
.library-filters { margin-top: 12px; }

.recent-block { margin-top: 18px; }
.recent-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 9px; }
.recent-title h3 { font-size: 13px; }
.recent-title span { font-size: 10.5px; color: var(--faint); }
.recent-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.recent-card {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; text-align: left;
  border-radius: 13px; border: 1px solid var(--line);
  background: #fff;
  transition: border-color .18s, background .18s;
}
.recent-card:hover { border-color: #cbd8f2; background: var(--soft); }
.recent-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; box-shadow: 0 0 0 4px var(--mint-soft); }
.recent-copy { display: flex; flex-direction: column; min-width: 0; }
.recent-copy strong { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-copy span { font-size: 9.5px; color: var(--faint); }

.course-list-head { margin-top: 24px; }
.course-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.course-card {
  position: relative;
  display: flex; flex-direction: column; gap: 5px;
  padding: 15px 16px; text-align: left;
  border-radius: 16px; border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 4px 14px rgba(28, 52, 110, .03);
  transition: border-color .18s, box-shadow .18s, transform .18s;
  overflow: hidden;
}
.course-card:hover { border-color: #c9d8f6; box-shadow: var(--shadow); transform: translateY(-1px); }
.course-card.current { border-color: #b9ceff; background: linear-gradient(135deg, #f5f9ff, #fff); }
.course-card.selected { border-color: #a9c5ff; background: linear-gradient(135deg, #f3f8ff, #f8fffd); }
.course-card.selected .course-count { color: var(--brand); font-weight: 650; }
.course-card.loading { pointer-events: none; opacity: .65; }
.course-card-top { display: flex; align-items: center; gap: 7px; }
.course-cat { font-size: 9px; font-weight: 700; letter-spacing: .2px; padding: 3px 7px; border-radius: 5px; background: #f0f4fb; color: var(--muted); }
.course-cat.本科 { background: #eef4ff; color: var(--brand); }
.course-cat.专科 { background: #eefaf6; color: #0c8a6e; }
.course-cat.本专科 { background: #fff5e8; color: #b47300; }
.course-cat.我的题库 { background: #f3f0ff; color: #6e50cf; }
.course-count { margin-left: auto; font-size: 10px; color: var(--faint); font-variant-numeric: tabular-nums; }
.course-card > strong { font-size: 14px; line-height: 1.5; font-weight: 650; letter-spacing: -.1px; padding-right: 40px; }
.course-types { font-size: 10px; color: var(--faint); }
.course-progress { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 10px; color: var(--muted); }
.course-progress .mini-bar { flex: 1; height: 4px; border-radius: 99px; background: #edf1f9; overflow: hidden; max-width: 90px; }
.course-progress .mini-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--mint)); }
.course-current-badge {
  position: absolute; right: 12px; top: 12px;
  font-size: 9px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); padding: 3px 7px; border-radius: 6px;
}
.course-loading-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #dbe4f7; border-top-color: var(--brand); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.member-prompt {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px; margin-top: 16px;
  border-radius: 16px; border: 1px solid #d7e5ff;
  background: linear-gradient(120deg, #f2f7ff, #f2fffc);
}
.member-prompt > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.member-prompt strong { font-size: 13px; }
.member-prompt span { font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.member-prompt .small-primary { margin-left: auto; flex: none; }
.member-prompt-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.member-prompt-actions .small-primary { margin-left: 0; }
.small-ghost {
  display: inline-flex; align-items: center; height: 30px; padding: 0 10px;
  border-radius: 8px; border: 1px solid #d9e4f7; background: #fff;
  color: var(--brand); font-size: 10.5px; font-weight: 600; text-decoration: none;
}

.trial-banner {
  max-width: 1120px; margin: 12px auto 0; padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  border-radius: 12px; border: 1px solid #f0dfb2;
  background: linear-gradient(100deg, #fffaf0, #fffdf7);
  color: #8f6200;
}
.trial-banner .trial-dot { width: 8px; height: 8px; border-radius: 50%; background: #f0a500; flex: none; box-shadow: 0 0 0 3px rgba(240,165,0,.13); }
.trial-banner > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.trial-banner strong { font-size: 11px; }
.trial-banner span { font-size: 9.5px; opacity: .8; }
.trial-banner .trial-cta { margin-left: auto; flex: none; font-size: 10px; font-weight: 700; color: #8f6200; text-decoration: none; background: rgba(240,165,0,.12); padding: 6px 9px; border-radius: 7px; }

.my-courses {
  margin-top: 16px; padding: 15px 16px 16px;
  border: 1px solid #dbe8ff; border-radius: 17px;
  background:
    radial-gradient(280px 150px at 100% 0%, #e6fbf6 0%, rgba(230, 251, 246, 0) 70%),
    linear-gradient(120deg, #f7faff, #fbfffe);
}
.my-courses-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.my-courses-head > div { display: flex; align-items: baseline; gap: 8px; }
.my-courses-head h2 { font-size: 14.5px; }
.my-courses-head span { font-size: 10px; color: var(--muted); }
.my-course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.my-course-grid.empty { display: block; }
.my-course {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 11px 12px; border-radius: 11px;
  border: 1px solid #e0e9f8; background: #fff;
  text-align: left; min-width: 0;
  transition: border-color .18s, box-shadow .18s;
}
.my-course:hover { border-color: #bdd2f5; box-shadow: 0 4px 12px rgba(47, 107, 255, .07); }
.my-course-cat { font-size: 8.5px; color: var(--brand); font-weight: 700; }
.my-course strong { font-size: 11.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.my-course > span:last-child { font-size: 9px; color: var(--faint); }
.my-course-empty { padding: 16px 12px; font-size: 11px; color: var(--muted); text-align: center; border: 1px dashed #ccdcf5; border-radius: 10px; background: rgba(255, 255, 255, .6); }

/* 找题 */
.search-hero { padding: 22px 2px 16px; }
.search-hero h1 { margin-top: 6px; font-size: 28px; letter-spacing: -.8px; }
.search-hero p { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.question-search-box {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px 7px 15px;
  border: 1.5px solid #dfe8f6; border-radius: 14px;
  background: #fff; box-shadow: 0 8px 24px rgba(36, 76, 140, .05);
}
.question-search-box .icon { width: 19px; height: 19px; color: var(--faint); flex: none; }
.question-search-box input { flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--ink); }
.question-search-box .primary-btn { height: 38px; padding: 0 20px; flex: none; border-radius: 9px; font-size: 11.5px; }
.question-search-meta { padding: 9px 3px 12px; font-size: 10px; color: var(--faint); }
.question-search-results { padding-bottom: 28px; }
.question-search-loading { padding: 38px; text-align: center; color: var(--muted); font-size: 11px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.question-search-empty {
  min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; border: 1px dashed #d9e4f5; border-radius: 16px; background: rgba(255,255,255,.55);
  color: var(--faint); text-align: center;
}
.question-search-empty > span { font-size: 30px; color: #b6c6de; line-height: 1; }
.question-search-empty p { font-size: 11px; max-width: 320px; line-height: 1.6; }
.question-search-empty .primary-btn, .question-search-empty .secondary-btn { margin-top: 6px; height: 38px; font-size: 11px; }
.q-result-card { padding: 16px 17px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.q-result-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.q-type { font-size: 8.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 3px 6px; border-radius: 4px; }
.q-course { font-size: 9px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-result-stem { font-size: 12.5px; line-height: 1.75; color: var(--ink); font-weight: 550; }
.q-result-options { margin-top: 9px; display: flex; flex-direction: column; gap: 5px; }
.q-result-option { display: flex; gap: 6px; padding: 7px 9px; border-radius: 7px; background: #fafbfe; font-size: 10.5px; line-height: 1.55; color: var(--muted); }
.q-result-option b { flex: none; color: var(--faint); }
.q-result-option.correct { background: #effaf4; color: #166b4a; }
.q-result-option.correct b { color: var(--ok); }
.q-result-answer { margin-top: 9px; font-size: 10.5px; color: var(--muted); }
.q-result-answer b { color: var(--ok); }
.q-result-explain { margin-top: 9px; padding: 9px 10px; border-radius: 8px; background: #f7f9fd; font-size: 10px; line-height: 1.65; color: var(--muted); }
.q-result-explain b { color: var(--ink); margin-right: 5px; }

@media (min-width: 620px) {
  .course-grid { grid-template-columns: 1fr 1fr; }
  .recent-list { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------- 页面标题 ---------------- */
.page-head { padding: 18px 2px 20px; }
.eyebrow { font-size: 9.5px; font-weight: 750; letter-spacing: 2.4px; color: var(--brand); }
.page-head h1 { margin-top: 7px; font-size: 27px; letter-spacing: -.7px; line-height: 1.25; }
.page-head p { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* ---------------- 选项 chips / 分段 ---------------- */
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  color: var(--muted); font-size: 12px; font-weight: 550;
  transition: all .18s;
}
.chip:hover { border-color: #cbd8f2; color: var(--ink); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 5px 12px rgba(47, 107, 255, .22); }
.chip .count { font-size: 10px; opacity: .72; }
.chip.active .count { opacity: .85; }

.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 4px; padding: 4px; border-radius: 13px; background: #f0f4fb;
}
.seg button {
  padding: 9px 8px; border-radius: 10px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  transition: all .18s;
}
.seg button:hover { color: var(--ink); }
.seg button.active { background: #fff; color: var(--brand); box-shadow: 0 3px 10px rgba(28, 52, 110, .09); }

.start-bar {
  position: sticky; bottom: 86px; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  margin-top: 16px; padding: 12px 14px 12px 18px;
  border-radius: 18px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(28, 52, 110, .1);
}
.start-summary { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.start-summary strong { font-size: 20px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.start-summary span { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.start-bar .primary-btn { margin-left: auto; min-width: 128px; }

/* ---------------- 通用按钮 ---------------- */
.primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 14px;
  color: #fff; font-size: 14px; font-weight: 650; letter-spacing: .2px;
  background: linear-gradient(135deg, var(--brand), #4f86ff);
  box-shadow: 0 10px 24px rgba(47, 107, 255, .25);
  transition: transform .16s, box-shadow .16s, opacity .16s;
}
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(47, 107, 255, .3); }
.primary-btn:active { transform: translateY(0); }
.primary-btn:disabled { opacity: .45; box-shadow: none; transform: none; }
.primary-btn.full { width: 100%; }
.secondary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-size: 13px; font-weight: 600;
  transition: border-color .18s, background .18s;
}
.secondary-btn:hover { border-color: #cbd8f2; background: var(--soft); }
.secondary-btn .icon { width: 16px; height: 16px; color: var(--muted); }
.ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 16px; border-radius: 12px;
  color: var(--muted); font-size: 12.5px; font-weight: 600;
  transition: background .18s, color .18s;
}
.ghost-btn:hover { background: rgba(47, 107, 255, .06); color: var(--brand); }
.ghost-btn .icon { width: 16px; height: 16px; }
.ghost-btn.wide { width: 100%; }
.danger-btn {
  padding: 9px 15px; border-radius: 10px;
  background: var(--bad-soft); color: var(--bad);
  font-size: 12px; font-weight: 650; white-space: nowrap;
}
.danger-btn:hover { background: #fbdcdd; }

/* ---------------- 答题 ---------------- */
.session-head { padding: 16px 2px 14px; }
.session-top { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.type-badge {
  display: inline-flex; align-items: center;
  padding: 4px 9px; border-radius: 7px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 10px; font-weight: 700; letter-spacing: .3px;
  white-space: nowrap;
}
.type-badge.multiple { background: #fff5e6; color: #c77a00; }
.type-badge.judge { background: #eef8f3; color: #0f8a55; }
.type-badge.fill { background: #f3f0ff; color: #7b5bd6; }
.session-chapter { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-score { margin-left: auto; font-size: 11px; font-weight: 650; color: var(--ok); white-space: nowrap; }
.session-meta { display: flex; justify-content: space-between; margin-top: 7px; font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }

.question-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
  overflow: visible;
}
.q-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.q-chapter { font-size: 10.5px; color: var(--faint); }
.q-number { margin-left: auto; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.q-stem { font-size: 18px; line-height: 1.7; font-weight: 650; letter-spacing: -.15px; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }

.options { margin-top: 20px; }
.option {
  width: 100%;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 15px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  transition: border-color .16s, background .16s, transform .16s;
}
.option + .option { margin-top: 9px; }
.option:hover:not(:disabled) { border-color: #b9cdf5; background: #fbfdff; }
.option:active:not(:disabled) { transform: scale(.995); }
.option-key {
  width: 28px; height: 28px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #f2f5fb; color: var(--muted);
  font-size: 12px; font-weight: 700;
  border: 1px solid #e9eef8;
  transition: all .16s;
}
.option-text { font-size: 14px; line-height: 1.65; padding-top: 2px; word-break: break-word; overflow-wrap: anywhere; white-space: pre-wrap; min-width: 0; flex: 1; }
.option.selected { border-color: var(--brand); background: #f4f8ff; }
.option.selected .option-key { background: var(--brand); border-color: var(--brand); color: #fff; }
.option.correct { border-color: #75d3a4; background: var(--ok-soft); }
.option.correct .option-key { background: var(--ok); border-color: var(--ok); color: #fff; }
.option.wrong { border-color: #f2a9ac; background: var(--bad-soft); }
.option.wrong .option-key { background: var(--bad); border-color: var(--bad); color: #fff; }
.option.dim { opacity: .58; }
.option:disabled { cursor: default; }
.options.multi .option-key { border-radius: 8px; }

.fill-box { margin-top: 20px; }
.fill-box input {
  width: 100%; height: 50px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 13px;
  background: #fbfcff; outline: none;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.fill-box input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .1); }

.feedback {
  margin-top: 14px; padding: 18px;
  border-radius: 18px; border: 1px solid var(--line);
  background: #fff;
  animation: feedbackIn .3s cubic-bezier(.2, .8, .3, 1);
}
@keyframes feedbackIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.feedback.ok { background: linear-gradient(180deg, #f4fdf8, #fff 70%); border-color: #d4f0e1; }
.feedback.bad { background: linear-gradient(180deg, #fff7f7, #fff 70%); border-color: #f7dcdd; }
.feedback-head { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; }
.feedback.ok .feedback-head { color: var(--ok); }
.feedback.bad .feedback-head { color: var(--bad); }
.feedback-head .icon { width: 19px; height: 19px; stroke-width: 2.2; }
.feedback-answer { margin-top: 9px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.feedback-answer b { color: var(--ink); font-weight: 650; }
.feedback-explanation { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e5ebf5; font-size: 12.5px; color: #59647d; line-height: 1.8; white-space: pre-wrap; }
.feedback-explanation strong { color: var(--ink); }

.session-actions { margin-top: 16px; display: flex; align-items: center; gap: 14px; }
.action-hint { flex: 1; font-size: 11px; color: var(--faint); }
.session-actions .primary-btn { min-width: 132px; }
.kbd-hint { display: inline-flex; gap: 4px; align-items: center; }
kbd { padding: 1px 5px; border-radius: 4px; border: 1px solid #dde3ef; background: #fff; font-size: 9.5px; font-family: inherit; color: var(--muted); }

/* ---------------- 结果 ---------------- */
.result-hero { text-align: center; padding: 26px 0 18px; }
.score-ring {
  width: 148px; height: 148px; margin: 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--brand) 0%, #e9eefa 0);
  position: relative;
  box-shadow: 0 16px 40px rgba(47, 107, 255, .13);
}
.score-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.score-ring > div { position: relative; z-index: 1; display: flex; align-items: baseline; }
.score-ring strong { font-size: 46px; line-height: 1; letter-spacing: -2px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.score-ring span { font-size: 15px; color: var(--muted); margin-left: 2px; font-weight: 600; }
.score-ring.pass { background: conic-gradient(var(--ok) 0%, #e9eefa 0); }
.score-ring.fail { background: conic-gradient(var(--bad) 0%, #e9eefa 0); }
.result-hero h1 { margin-top: 18px; font-size: 22px; letter-spacing: -.4px; }
.result-hero p { margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.result-pills { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 11px; color: var(--muted); background: #fff; border: 1px solid var(--line); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.pill.ok i { background: var(--ok); }
.pill.bad i { background: var(--bad); }
.pill b { color: var(--ink); }

.review-block { margin-top: 8px; }
.review-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 10px; }
.review-title h2 { font-size: 14.5px; }
.review-title span { font-size: 11px; color: var(--faint); }
.review-item {
  border: 1px solid var(--line); border-radius: 16px;
  background: #fff; padding: 15px 16px;
}
.review-item + .review-item { margin-top: 9px; }
.review-item-head { display: flex; align-items: center; gap: 8px; }
.review-item-head .status { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 650; }
.review-item-head .status.ok { color: var(--ok); }
.review-item-head .status.bad { color: var(--bad); }
.review-item-head .status .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.review-stem { margin-top: 7px; font-size: 13px; line-height: 1.65; font-weight: 550; }
.review-answer { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--muted); }
.review-answer b { color: var(--ink); font-weight: 600; }
.review-answer .miss { color: var(--bad); }
.review-explanation { margin-top: 7px; padding-top: 7px; border-top: 1px dashed #e9edf6; font-size: 11.5px; color: #667089; line-height: 1.75; }
.empty-review { padding: 26px; text-align: center; border: 1px dashed #cfe7db; border-radius: 16px; background: #f7fdfa; color: var(--ok); font-size: 13px; }

.review-item summary { list-style: none; cursor: pointer; }
.review-item summary::-webkit-details-marker { display: none; }
.review-summary { display: flex; align-items: center; gap: 9px; }
.review-index {
  width: 22px; height: 22px; flex: none;
  display: grid; place-items: center;
  border-radius: 7px; background: #f2f5fb; color: var(--muted);
  font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.review-snippet {
  flex: 1; min-width: 0;
  font-size: 12px; font-weight: 550; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.review-item[open] .review-snippet { display: none; }
.review-summary .status { margin-left: auto; flex: none; font-size: 10px; font-weight: 650; }
.review-summary .status.ok { color: var(--ok); }
.review-summary .status.bad { color: var(--bad); }
.review-body { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e9edf6; }
.review-body .review-stem { margin-top: 0; }

.filter-links { display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: #f0f4fb; }
.filter-links button { padding: 4px 9px; border-radius: 7px; font-size: 10px; font-weight: 600; color: var(--muted); }
.filter-links button.active { background: #fff; color: var(--brand); box-shadow: 0 2px 6px rgba(28, 52, 110, .08); }

.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.result-grid div { display: flex; flex-direction: column; gap: 2px; }
.result-grid span { font-size: 9.5px; color: var(--faint); }
.result-grid strong { font-size: 19px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }

.stack-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 20px; }
.stack-actions .primary-btn, .stack-actions .secondary-btn { width: 100%; }

/* ---------------- 考试 ---------------- */
.exam-banner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 15px; border-radius: 18px;
  background: linear-gradient(120deg, #eef4ff, #f2fffc);
  border: 1px solid #dfeaff;
}
.exam-banner > div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 4px 6px; }
.exam-banner .icon { width: 17px; height: 17px; color: var(--brand); margin-bottom: 5px; }
.exam-banner strong { font-size: 11.5px; }
.exam-banner span { font-size: 9.5px; color: var(--muted); line-height: 1.45; }
.exam-rubric { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 2px 0 12px; }
.exam-rubric > div {
  padding: 12px 8px; text-align: center;
  border-radius: 12px; border: 1px solid var(--line);
  background: #f7f9fe;
}
.exam-rubric strong { display: block; font-size: 24px; line-height: 1; letter-spacing: -.8px; font-weight: 800; font-variant-numeric: tabular-nums; }
.exam-rubric span { display: block; margin-top: 5px; font-size: 9.5px; color: var(--muted); }
.exam-rubric .total { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--brand), var(--mint)); box-shadow: 0 8px 18px rgba(47, 107, 255, .18); }
.exam-rubric .total span { color: rgba(255, 255, 255, .72); }
.exam-composition-hint {
  margin: 0 0 4px; padding: 9px 11px;
  border-radius: 9px; background: var(--soft);
  font-size: 10.5px; line-height: 1.65; color: var(--muted);
}
.exam-composition-hint.warn { background: #fff8e8; color: #956200; }
.exam-rules { margin-top: 14px; }
.exam-rules ol { padding-left: 19px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.exam-rules li::marker { color: var(--brand); font-weight: 700; }

.exam-top { display: flex; align-items: center; justify-content: space-between; padding: 15px 2px 12px; }
.exam-timer {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 21px; font-weight: 750; letter-spacing: .3px;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.exam-timer .icon { width: 18px; height: 18px; color: var(--muted); }
.exam-timer.warn { color: var(--bad); }
.exam-timer.warn .icon { color: var(--bad); }
.sheet-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff;
  font-size: 11.5px; color: var(--muted);
}
.sheet-btn b { color: var(--brand); font-size: 11px; font-variant-numeric: tabular-nums; }
.exam-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 10px; }
.exam-nav span { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.exam-nav .secondary-btn { min-width: 92px; }
.submit-exam { margin-top: 10px; color: var(--bad); }
.submit-exam:hover { background: var(--bad-soft); color: var(--bad); }

.resume-card {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; margin-bottom: 14px;
  border-radius: 16px; border: 1px solid #cfe0ff;
  background: linear-gradient(120deg, #f2f7ff, #f4fffc);
  box-shadow: 0 6px 18px rgba(47, 107, 255, .07);
}
.resume-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #fff; color: var(--brand); flex: none; box-shadow: 0 3px 10px rgba(47, 107, 255, .12); }
.resume-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.resume-copy strong { font-size: 12.5px; }
.resume-copy span { font-size: 10.5px; color: var(--muted); }
.resume-card .small-primary { margin-left: auto; }

/* ---------------- 答题卡 ---------------- */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(14, 24, 45, .46);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .2s ease;
}
.sheet {
  width: 100%; max-width: 780px;
  background: #fff; border-radius: 24px 24px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 82vh; overflow-y: auto;
  animation: sheetUp .3s cubic-bezier(.2, .9, .3, 1);
}
@keyframes sheetUp { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; }
.sheet-head > div { display: flex; flex-direction: column; }
.sheet-head strong { font-size: 17px; }
.sheet-head span { font-size: 11px; color: var(--faint); margin-top: 3px; }
.sheet-legend { display: flex; gap: 16px; margin: 16px 0 13px; font-size: 10.5px; color: var(--muted); }
.sheet-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sheet-legend i { width: 10px; height: 10px; border-radius: 4px; border: 1px solid #dbe3f1; background: #fff; }
.sheet-legend i.answered { background: var(--brand); border-color: var(--brand); }
.sheet-legend i.current { background: #fff; border: 2px solid var(--brand); }
.sheet-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-bottom: 18px; }
.sheet-grid button {
  height: 56px; border-radius: 10px;
  border: 1px solid #e2e8f4; background: #fff;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sheet-grid button.answered { background: var(--brand); border-color: var(--brand); color: #fff; }
.sheet-grid button.current { border: 2px solid var(--brand); color: var(--brand); background: #f4f8ff; }
.sheet-grid button.answered.current { color: #fff; background: var(--brand); }

/* ---------------- 错题本 ---------------- */
.wrong-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.wrong-big { font-size: 40px; font-weight: 800; letter-spacing: -2px; color: var(--bad); line-height: 1; font-variant-numeric: tabular-nums; }
.wrong-big small { font-size: 11px; font-weight: 600; color: var(--faint); margin-left: 3px; letter-spacing: 0; }
.wrong-filters { margin-bottom: 14px; }
.wrong-card {
  display: block; width: 100%; text-align: left;
  padding: 16px; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; box-shadow: 0 4px 14px rgba(28, 52, 110, .035);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.wrong-card + .wrong-card { margin-top: 10px; }
.wrong-card:hover { border-color: #d5e1f7; box-shadow: var(--shadow); transform: translateY(-1px); }
.wrong-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.wrong-card-top .wrong-times { margin-left: auto; font-size: 10px; color: var(--bad); background: var(--bad-soft); padding: 3px 7px; border-radius: 6px; font-weight: 600; }
.wrong-stem { font-size: 13.5px; line-height: 1.65; font-weight: 550; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wrong-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.wrong-meta { font-size: 10px; color: var(--faint); }
.wrong-do { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 650; color: var(--brand); }
.wrong-do .icon { width: 13px; height: 13px; }
.wrong-actions { display: flex; gap: 9px; margin-top: 16px; }
.wrong-actions .primary-btn { flex: 1; }
.wrong-actions .ghost-btn { border: 1px solid var(--line); }

.empty-state { text-align: center; padding: 54px 24px; border: 1px dashed #dbe3f1; border-radius: 20px; background: rgba(255, 255, 255, .65); }
.empty-icon { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint); }
.empty-icon .icon { width: 27px; height: 27px; }
.empty-state h3 { font-size: 15px; }
.empty-state p { margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.empty-state .secondary-btn { margin-top: 16px; }

/* ---------------- 统计 ---------------- */
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-card { padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.stat-card span { display: block; font-size: 10.5px; color: var(--faint); }
.stat-card strong { display: block; margin-top: 4px; font-size: 25px; font-weight: 780; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.stat-card small { font-size: 10px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.stat-card.accent { background: linear-gradient(135deg, #2f6bff, #4f86ff); border-color: transparent; color: #fff; box-shadow: 0 12px 26px rgba(47, 107, 255, .22); }
.stat-card.accent span, .stat-card.accent small { color: rgba(255, 255, 255, .7); }
.stat-card.mint { background: linear-gradient(135deg, #00b8a9, #10cbb9); border-color: transparent; color: #fff; box-shadow: 0 12px 26px rgba(0, 184, 169, .2); }
.stat-card.mint span, .stat-card.mint small { color: rgba(255, 255, 255, .74); }

.chart-card { margin-top: 14px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-top: 18px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #7fa6ff, var(--brand)); min-height: 3px; transition: height .5s cubic-bezier(.2, .8, .3, 1); }
.bar.today { background: linear-gradient(180deg, #2ee0c9, var(--mint)); }
.bar-col small { font-size: 9px; color: var(--faint); white-space: nowrap; }
.bar-count { font-size: 9px; color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }

.chapter-row + .chapter-row { margin-top: 14px; }
.chapter-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.chapter-line strong { font-size: 12px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-line span { font-size: 10px; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.chapter-bar { height: 6px; border-radius: 99px; background: #edf1f9; overflow: hidden; }
.chapter-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--mint)); }
.chapter-bar.low span { background: linear-gradient(90deg, #f59e0b, #f97316); }

.exam-history { display: flex; flex-direction: column; }
.history-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf1f8; }
.history-row:last-child { border-bottom: 0; }
.history-score { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 14px; font-weight: 750; flex: none; font-variant-numeric: tabular-nums; }
.history-score.pass { background: var(--ok-soft); color: var(--ok); }
.history-score.fail { background: var(--bad-soft); color: var(--bad); }
.history-copy { display: flex; flex-direction: column; min-width: 0; }
.history-copy strong { font-size: 12px; }
.history-copy span { font-size: 10px; color: var(--faint); }
.history-right { margin-left: auto; font-size: 10px; color: var(--muted); white-space: nowrap; }

/* ---------------- 题库管理 ---------------- */
.bank-summary { display: flex; align-items: center; gap: 14px; }
.bank-summary-icon { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, #2f6bff, #00b8a9); color: #fff; display: grid; place-items: center; flex: none; }
.bank-summary-icon .icon { width: 23px; height: 23px; }
.bank-summary-copy { min-width: 0; }
.bank-summary-copy strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bank-summary-copy span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.bank-type-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bank-type { font-size: 10px; padding: 3px 8px; border-radius: 6px; background: #f3f6fc; color: var(--muted); }
.bank-type b { color: var(--ink); font-weight: 700; }

.dropzone {
  border: 1.5px dashed #c9d6ee; border-radius: 16px;
  padding: 24px 16px; text-align: center;
  background: #fafcff; cursor: pointer;
  transition: border-color .18s, background .18s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: #f3f8ff; }
.dropzone .icon { width: 26px; height: 26px; margin: 0 auto 10px; color: var(--brand); }
.dropzone strong { display: block; font-size: 12.5px; }
.dropzone span { display: block; margin-top: 4px; font-size: 10.5px; color: var(--faint); }
.import-file { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 10px 12px; border-radius: 11px; background: var(--brand-soft); font-size: 11.5px; }
.import-file .icon { width: 16px; height: 16px; color: var(--brand); }
.import-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-file .icon-btn { width: 28px; height: 28px; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; color: var(--faint); font-size: 10px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: #edf1f8; }
#importText {
  width: 100%; min-height: 130px; resize: vertical;
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 13px;
  background: #fbfcff; font-size: 11.5px; line-height: 1.6;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  outline: none; transition: border-color .18s, box-shadow .18s;
}
#importText:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .09); }
#importBtn { margin-top: 12px; }
.import-note { margin-top: 9px; font-size: 10.5px; color: var(--faint); line-height: 1.6; text-align: center; }

.format-details { border-top: 1px solid #eef2f8; padding: 12px 0 2px; }
.format-details:first-of-type { border-top: 0; padding-top: 0; }
.format-details summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 7px; }
.format-details summary::-webkit-details-marker { display: none; }
.format-details summary::before { content: "+"; width: 16px; height: 16px; border-radius: 5px; background: #f0f4fb; color: var(--muted); display: grid; place-items: center; font-size: 12px; font-weight: 500; }
.format-details[open] summary::before { content: "−"; }
.format-details p { margin: 9px 0 7px; font-size: 11px; color: var(--muted); line-height: 1.7; }
.format-details pre {
  margin: 0; padding: 12px; border-radius: 10px;
  background: #f7f9fe; border: 1px solid #edf1f8;
  color: #4a5670; font-size: 10px; line-height: 1.65;
  overflow-x: auto; white-space: pre; font-family: "SFMono-Regular", Consolas, monospace;
}
.format-details .tip { font-size: 10.5px; }
.format-details code { padding: 1px 4px; background: #eef3fb; border-radius: 4px; font-size: 10px; }
.bank-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bank-tools .secondary-btn, .bank-tools .ghost-btn { height: 40px; font-size: 11.5px; }
.danger-panel { display: flex; align-items: center; gap: 12px; border-color: #f3dede; }
.danger-panel h3 { font-size: 13px; }
.danger-panel p { margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.danger-panel .danger-btn { margin-left: auto; }

/* ---------------- 底部导航 ---------------- */
.tabbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  z-index: 50;
  width: 100%; max-width: 780px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(225, 232, 245, .9);
  box-shadow: 0 -8px 30px rgba(28, 52, 110, .05);
  transition: transform .28s cubic-bezier(.3, .8, .3, 1);
}
body.focus-mode .tabbar { transform: translate(-50%, 120%); }
.tabbar button, .tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 0; border-radius: 12px;
  color: #98a3b9; font-size: 9.5px; font-weight: 600;
  transition: color .18s;
  text-decoration: none;
}
.tabbar button .icon, .tabbar a .icon { width: 21px; height: 21px; }
.tabbar button.active, .tabbar a.active { color: var(--brand); }
.tabbar button:hover, .tabbar a:hover { color: var(--brand); }
.tabbar.hidden { display: none; }
body.library-mode .app-shell { padding-bottom: 118px; }
body.member-page .pay-main, body.referral-page .pay-main { padding-bottom: 120px; }

/* ---------------- 弹窗 / Toast ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 22px; background: rgba(14, 24, 45, .45);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 420px;
  background: #fff; border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  animation: modalIn .26s cubic-bezier(.2, .9, .3, 1);
  max-height: 86vh; overflow-y: auto;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal h3 { font-size: 17px; letter-spacing: -.2px; }
.modal .modal-body { margin-top: 9px; font-size: 12.5px; color: var(--muted); line-height: 1.75; }
.modal .modal-body strong { color: var(--ink); }
.modal .modal-preview { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f7f9fe; border: 1px solid #edf1f8; }
.modal .modal-preview p { font-size: 11px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.modal .modal-preview p + p { margin-top: 7px; padding-top: 7px; border-top: 1px dashed #e6ecf6; }
.modal-actions { display: flex; gap: 9px; margin-top: 20px; }
.modal-actions button { flex: 1; height: 44px; border-radius: 12px; font-size: 13px; font-weight: 650; }
.modal-actions .cancel { background: #f2f5fb; color: var(--muted); }
.modal-actions .cancel:hover { background: #eaeff9; }
.modal-actions .confirm { background: var(--brand); color: #fff; }
.modal-actions .confirm:hover { background: var(--brand-deep); }
.modal-actions .confirm.danger { background: var(--bad); }
.modal-actions .confirm.danger:hover { background: #cf3b40; }

/* 会员登录 / 账号 */
.auth-modal { max-width: 400px; padding: 26px; }
.auth-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.auth-id { display: flex; align-items: center; gap: 10px; }
.auth-logo {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; flex: none;
  color: #fff; font-weight: 800; font-size: 19px;
  background: linear-gradient(135deg, #2f6bff, #00b8a9);
  box-shadow: 0 8px 18px rgba(47, 107, 255, .22);
}
.auth-head h3 { font-size: 17px; letter-spacing: -.2px; }
.auth-head p { margin-top: 3px; font-size: 10.5px; color: var(--faint); }
.auth-close { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--faint); font-size: 19px; }
.auth-close:hover { background: var(--soft); color: var(--ink); }
.auth-form { margin-top: 20px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.auth-field span { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.auth-field input {
  height: 44px; padding: 0 13px;
  border: 1.5px solid var(--line); border-radius: 11px;
  background: #fbfcff; outline: none; font-size: 13px;
  transition: border-color .18s, box-shadow .18s;
}
.auth-field input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .09); }
.auth-error { margin: 2px 0 10px; padding: 8px 10px; border-radius: 8px; background: var(--bad-soft); color: var(--bad); font-size: 10.5px; line-height: 1.5; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-note { margin-top: 12px; text-align: center; font-size: 9.5px; color: var(--faint); line-height: 1.6; }
.auth-account { margin-top: 18px; }
.auth-account-top { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #f2f7ff, #f2fffc); border: 1px solid #dbe9ff; }
.auth-avatar { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #2f6bff, #00b8a9); color: #fff; font-size: 18px; font-weight: 700; flex: none; }
.auth-account-top strong { display: block; font-size: 14px; }
.auth-account-top span { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); }
.auth-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.auth-stat { padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-align: center; }
.auth-stat strong { display: block; font-size: 17px; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.auth-stat span { font-size: 9px; color: var(--faint); }
.auth-actions { display: flex; gap: 8px; margin-top: 14px; }
.auth-actions .primary-btn { flex: 1; height: 42px; font-size: 12.5px; }
.auth-actions .secondary-btn { height: 42px; font-size: 12px; }
.auth-pay-link { display: block; margin-top: 10px; text-align: center; font-size: 10.5px; color: var(--brand); font-weight: 600; text-decoration: none; }
.auth-pay-link:hover { text-decoration: underline; }
.auth-note a { color: var(--brand); font-weight: 600; }
.auth-course-line {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--line); background: #fbfcff;
  font-size: 10.5px; color: var(--muted);
}
.auth-course-line b { color: var(--ink); }
.auth-course-line button { margin-left: auto; color: var(--brand); font-size: 10.5px; font-weight: 650; }

/* 选科弹窗 */
.course-picker {
  max-width: 620px; width: 100%; padding: 0;
  max-height: 88vh; display: flex; flex-direction: column;
  overflow: hidden;
}
.picker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 12px; }
.picker-head h3 { font-size: 18px; letter-spacing: -.3px; }
.picker-head p { margin-top: 4px; font-size: 10.5px; color: var(--muted); }
.picker-head p b { color: var(--brand); }
.picker-search { padding: 0 22px 10px; }
.picker-search input {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #fbfcff; outline: none; font-size: 12px;
}
.picker-search input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .08); }
.picker-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
  padding: 2px 22px 12px; overflow-y: auto; min-height: 180px;
}
.picker-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 11px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
  text-align: left; min-width: 0;
}
.picker-item:hover { border-color: #cbd8f2; background: #fbfcff; }
.picker-item.selected { border-color: #b5ccff; background: #f2f7ff; }
.picker-check {
  width: 19px; height: 19px; border-radius: 6px; flex: none;
  display: grid; place-items: center;
  border: 1.5px solid #d9e2f1; background: #fff;
  color: #fff; font-size: 11px; font-weight: 800;
}
.picker-item.selected .picker-check { background: var(--brand); border-color: var(--brand); }
.picker-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.picker-copy strong { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-copy em { font-size: 9px; font-style: normal; color: var(--faint); }
.picker-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 22px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid #eef2f8; background: #fff;
}
.picker-foot #pickerEmpty { flex: 1; font-size: 10px; color: var(--faint); }
.picker-foot .secondary-btn { margin-left: auto; }
.picker-foot .primary-btn { min-width: 130px; }

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 12px);
  z-index: 120;
  max-width: calc(100% - 40px);
  padding: 10px 18px; border-radius: 999px;
  background: rgba(22, 33, 59, .93); color: #fff;
  font-size: 12px; font-weight: 500; text-align: center;
  box-shadow: 0 12px 30px rgba(14, 24, 45, .24);
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.noscript { margin: 40px; padding: 20px; background: #fff; border-radius: 12px; text-align: center; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 560px) {
  .app-shell { padding: 0 15px 112px; }
  .topbar { margin: 0 -15px; padding: 0 15px; }
  .topbar-inner { height: 62px; }
  .brand-copy small { display: block; font-size: 8.5px; letter-spacing: .3px; margin-top: 2px; white-space: nowrap; }
  #bankBtn span { display: none; }
  #bankBtn { width: 40px; padding: 0; justify-content: center; }
  .member-btn { height: 40px; width: 40px; padding: 0; justify-content: center; }
  .member-btn span { display: none; }
  .library-head { padding-top: 14px; }
  .library-head h1 { font-size: 27px; }
  .course-card { padding: 14px 15px; }
  .guest-home-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .guest-home-actions { width: 100%; }
  .guest-home-actions .primary-btn, .guest-home-actions .secondary-btn { flex: 1; }
  .entry-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .entry-card { min-height: 108px; padding: 12px; }
  .entry-icon { width: 34px; height: 34px; }
  .entry-copy strong { font-size: 12px; }
  .entry-copy small { font-size: 9px; }
  .tool-grid { grid-template-columns: 1fr; }
  .recent-list { grid-template-columns: 1fr 1fr; }
  .my-course-grid { grid-template-columns: 1fr; }
  .trial-banner { margin: 8px 12px 0; padding: 9px 11px; flex-wrap: wrap; }
  .trial-banner .trial-cta { margin-left: 18px; }
  .question-search-box { padding-left: 11px; }
  .question-search-box input { font-size: 12px; }
  .question-search-box .primary-btn { padding: 0 14px; }
  .q-result-card { padding: 14px; }
  .picker-list { grid-template-columns: 1fr; padding: 2px 16px 10px; }
  .picker-head, .picker-search { padding-left: 16px; padding-right: 16px; }
  .picker-foot { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 22px 20px 18px; border-radius: 24px; }
  .hero h1 { font-size: 26px; margin-top: 18px; }
  .hero-metrics strong { font-size: 19px; }
  .hero-pill { font-size: 10px; padding: 4px 9px; }
  .page-head { padding-top: 12px; }
  .page-head h1 { font-size: 25px; }
  .question-card { padding: 20px 17px; border-radius: 19px; }
  .q-stem { font-size: 16.5px; }
  .option { padding: 13px 13px; }
  .option-text { font-size: 13.5px; }
  .panel { padding: 17px; }
  .feature-card { padding: 14px; gap: 10px; }
  .feature-copy small { font-size: 9.8px; letter-spacing: -.15px; line-height: 1.5; }
  .feature-go { display: none; }
  .feature-icon { width: 38px; height: 38px; border-radius: 11px; }
  .exam-banner { padding: 12px 9px; }
  .exam-banner strong { font-size: 10.8px; }
  .exam-banner span { font-size: 9px; }
  .exam-rubric > div { padding: 10px 4px; }
  .exam-rubric strong { font-size: 21px; }
  .sheet-grid { grid-template-columns: repeat(5, 1fr); }
  .start-bar { bottom: 80px; padding: 10px 11px 10px 15px; }
  .start-bar .primary-btn { min-width: 118px; height: 45px; padding: 0 18px; }
  .score-ring { width: 132px; height: 132px; }
  .score-ring strong { font-size: 41px; }
  .toast { bottom: 88px; }
  .stat-card strong { font-size: 22px; }
  .bank-tools .secondary-btn, .bank-tools .ghost-btn { flex: 1 1 auto; }
}

@media (min-width: 900px) {
  .app-shell { padding-top: 4px; }
  .topbar { border-bottom: 1px solid rgba(230, 235, 245, .7); }
  .hero { margin-top: 14px; padding: 32px 32px 24px; }
  .hero h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 键盘焦点可见 */
:focus-visible { outline: 3px solid rgba(47, 107, 255, .35); outline-offset: 2px; }
button:focus:not(:focus-visible) { outline: none; }
