/* ============================================================
   题小海 · 设计系统 v3「克制的高级感」
   北京维度元拓科技有限公司 · 原生 CSS，零依赖
   ------------------------------------------------------------
   设计原则：留白优先 / 细线分割 / 单一强调色 / 动效克制
   ============================================================ */

:root {
  /* 中性色阶 */
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f5f5f4;
  --ink: #0e1015;
  --ink-2: #3b414d;
  --muted: #737a87;
  --faint: #a3a9b4;
  --line: #e9e9e6;
  --line-strong: #d9d9d5;

  /* 强调色（用在链接、激活态、少量强调，不做大面积背景） */
  --accent: #2f45e0;
  --accent-ink: #1c2ba6;
  --accent-soft: #eef0fe;
  --accent-line: #c9cffb;

  /* 语义色 */
  --green: #0d7a52;
  --green-soft: #eaf6f1;
  --red: #c62f43;
  --red-soft: #fdeef0;
  --amber: #a86a08;
  --amber-soft: #fdf5e7;

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-xs: 0 1px 2px rgba(14, 16, 21, .04);
  --shadow-sm: 0 1px 3px rgba(14, 16, 21, .05), 0 4px 12px rgba(14, 16, 21, .04);
  --shadow: 0 2px 6px rgba(14, 16, 21, .06), 0 12px 28px rgba(14, 16, 21, .07);

  --ease: cubic-bezier(.2, .8, .3, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);

  --maxw: 1140px;
  --gutter: max(24px, calc((100% - var(--maxw)) / 2));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0 0 1em; }
ul { margin: 0; }

.container { width: min(var(--maxw), 100% - 48px); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 650; }
.skip-link { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0; z-index: 300; }
.skip-link:focus { left: 0; }

/* ---------------- 顶栏 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  height: 64px;
  background: rgba(250, 250, 249, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(250, 250, 249, .95); }

.brand { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; transition: transform .35s var(--spring); }
.brand:hover .brand-logo { transform: scale(1.06) rotate(-4deg); }
.brand-sub { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-strong); padding: 2px 8px; border-radius: 999px; letter-spacing: 0; }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  padding: 8px 13px; border-radius: var(--radius-xs); font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }

/* 语言切换 */
.lang-switch { display: inline-flex; align-items: center; padding: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a {
  font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; color: var(--muted);
  transition: background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }

.header-right { display: flex; align-items: center; gap: 14px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 108px) var(--gutter) clamp(40px, 5vw, 64px);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -32%; left: 50%; transform: translateX(-50%);
  width: min(1000px, 120%); height: 620px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(47, 69, 224, .10), rgba(47, 69, 224, .04) 42%, transparent 68%);
  filter: blur(8px);
}
.hero-inner { position: relative; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 6px 13px; border-radius: 999px; margin: 0 0 22px;
}
.hero .eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(34px, 6vw, 62px); font-weight: 800; letter-spacing: -.035em; line-height: 1.06;
  max-width: 16em; margin: 0 0 20px; color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: clamp(15.5px, 1.7vw, 18.5px); color: var(--ink-2); max-width: 36em; line-height: 1.7; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; margin-bottom: 44px; }
.hero-note { font-size: 13.5px; color: var(--muted); margin: 0; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(26px, 6vw, 72px);
  padding-top: 30px; border-top: 1px solid var(--line);
}
.hero-stat b { display: block; font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.hero-stat span { font-size: 13px; color: var(--muted); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 14.5px; font-weight: 620; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--spring), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #23262e; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(47, 69, 224, .28); }
.btn-ghost, .btn-light { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover, .btn-light:hover { background: var(--surface-2); color: var(--ink); border-color: var(--faint); transform: translateY(-1px); }
.btn-link { padding: 0; background: none; border: none; color: var(--accent); font-weight: 620; }
.btn-link:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- 区块与标题 ---------------- */
section { margin: 0; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 22px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 720; letter-spacing: -.02em; }
.count { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.group-section { margin: 44px 0; }
.more-link { margin: 18px 0 0; }
.more-link a, .catalog-link a { font-size: 14px; font-weight: 620; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.more-link a:hover, .catalog-link a:hover { color: var(--accent-ink); gap: 9px; }
.catalog-link { margin: 4px 0 28px; }

/* ---------------- 搜索 ---------------- */
.search-box { margin: 0 0 24px; }
.search-box label { display: block; font-size: 13px; font-weight: 650; color: var(--muted); margin-bottom: 9px; letter-spacing: .01em; }
.search-box input {
  width: 100%; padding: 15px 18px 15px 46px; font-size: 16px; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23737a87' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center;
  outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.search-box input::placeholder { color: var(--faint); }
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
#search-status { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* ---------------- 领域导航 ---------------- */
.domain-nav { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 34px; }
.domain-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--spring);
}
.domain-chip span { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.domain-chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.domain-chip:hover span { color: var(--muted); }

/* ---------------- 卡片栅格 ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.subject-card {
  display: flex; flex-direction: column; position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.subject-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.tag { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.live { font-size: 11.5px; font-weight: 620; color: var(--green); display: inline-flex; align-items: center; gap: 5px; }
.live::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.soon { font-size: 11.5px; font-weight: 600; color: var(--faint); }
.subject-card h3 { margin: 0 0 3px; font-size: 16.5px; font-weight: 680; letter-spacing: -.015em; }
.card-en { font-size: 12px; color: var(--faint); margin: 0 0 8px; letter-spacing: .01em; }
.subject-card .desc {
  font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 6px 0 auto;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.q-count { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; font-variant-numeric: tabular-nums; }
.card-link { font-size: 13.5px; font-weight: 620; color: var(--accent); margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; transition: gap .2s var(--ease); }
.subject-card:hover .card-link { gap: 8px; }
.card-coming { opacity: .72; }
.card-levels { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; }
.card-levels span { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: var(--surface-2); color: var(--muted); }

/* ---------------- 面包屑 ---------------- */
.breadcrumb { font-size: 13px; color: var(--muted); margin: 28px 0 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }

/* ---------------- 证书详情 ---------------- */
.cert-intro { margin-bottom: 28px; max-width: 52em; }
.cert-intro h1 { font-size: clamp(28px, 4.2vw, 42px); letter-spacing: -.03em; margin: 12px 0 10px; }
.cert-en { font-size: 15px; color: var(--muted); margin: -4px 0 12px; letter-spacing: .01em; }
.cert-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.cert-meta .dot { color: var(--line-strong); }
.lead { font-size: 16.5px; color: var(--ink-2); line-height: 1.8; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.cta-box { margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.cta-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* 级别选择 */
.level-picker { margin-bottom: 22px; }
.level-picker-title { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 0 0 11px; }
.level-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.level-chip {
  display: flex; flex-direction: column; gap: 3px; min-width: 104px;
  padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color .18s var(--ease), transform .18s var(--spring), box-shadow .18s var(--ease);
}
.level-chip strong { font-size: 14.5px; font-weight: 680; }
.level-chip span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.level-chip:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.level-chip.is-active { background: var(--ink); border-color: var(--ink); }
.level-chip.is-active strong, .level-chip.is-active span { color: #fff; }
.level-chip.is-active span { color: rgba(255, 255, 255, .7); }

/* 样题 */
.sample { margin-bottom: 30px; }
.sample-eyebrow { font-size: 12.5px; font-weight: 650; color: var(--muted); margin: 0 0 12px; }
.sample .stem { font-size: 16.5px; font-weight: 650; margin: 0 0 16px; line-height: 1.6; }
.options { list-style: none; padding: 0; margin: 0 0 16px; }
.options li { padding: 11px 15px; border: 1px solid var(--line); border-radius: var(--radius-xs); margin-bottom: 8px; font-size: 15px; color: var(--ink-2); }
.options li.correct { border-color: #b9e2cf; background: var(--green-soft); color: var(--ink); font-weight: 600; }
.explain { background: var(--surface-2); border-radius: var(--radius-xs); padding: 14px 16px; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.explain-title { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* 事实 / 指南 */
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.facts li:last-child { border-bottom: none; }
.facts li strong { flex: none; width: 7em; color: var(--muted); font-weight: 600; }
.guide { padding: 4px 0; }
.guide-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.guide-row:last-child { border-bottom: none; }
.guide-row h3 { margin: 0 0 8px; font-size: 15px; font-weight: 680; }
.guide-row p { margin: 0; color: var(--ink-2); line-height: 1.85; font-size: 15px; }

/* ---------------- 目录页 ---------------- */
.catalog-group { margin-bottom: 36px; }
.catalog-group h2 { font-size: 16px; font-weight: 680; margin: 0 0 13px; display: flex; align-items: center; gap: 9px; letter-spacing: -.01em; }
.catalog-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.catalog-list li { background: var(--surface); }
.catalog-list li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; transition: background .16s var(--ease); }
.catalog-list li a:hover { background: var(--surface-2); }
.catalog-list .cat-name { flex: 1 1 auto; min-width: 0; }
.catalog-list strong { display: block; font-weight: 550; font-size: 14px; letter-spacing: -.01em; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catalog-list em { display: block; font-style: normal; font-size: 11.5px; color: var(--faint); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catalog-list .cat-meta { flex: none; font-size: 12px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.catalog-list .cat-meta::after { content: ' 题'; font-size: 11px; }

/* ---------------- 刷题 ---------------- */
.q-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.q-type { font-size: 12.5px; font-weight: 620; color: var(--muted); margin-bottom: 12px; letter-spacing: .02em; }
.q-stem { font-size: clamp(17px, 2vw, 20px); font-weight: 650; line-height: 1.65; margin: 0 0 22px; letter-spacing: -.015em; }
.quiz-head, .quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.quiz-meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.progress, .progress-track { height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 0 0 26px; }
.progress i, .progress-bar { display: block; height: 100%; border-radius: 999px; background: var(--ink); transition: width .4s var(--ease); }

.choice {
  display: flex; align-items: flex-start; gap: 13px; width: 100%; text-align: left;
  padding: 15px 17px; margin-bottom: 9px; font-size: 15.5px; color: var(--ink); line-height: 1.6;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease), transform .16s var(--ease);
}
.choice:hover { border-color: var(--faint); background: var(--surface-2); }
.choice .key {
  flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted); font-weight: 680; font-size: 13px;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.choice-text { flex: 1; }
.choice-state { flex: none; font-size: 13px; font-weight: 620; color: var(--muted); }
.choice.selected { border-color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.choice.selected .key { background: var(--ink); color: #fff; }
.choice.correct { border-color: var(--green); background: var(--green-soft); }
.choice.correct .key { background: var(--green); color: #fff; }
.choice.correct .choice-state { color: var(--green); }
.choice.wrong { border-color: var(--red); background: var(--red-soft); }
.choice.wrong .key { background: var(--red); color: #fff; }
.choice.wrong .choice-state { color: var(--red); }
.choice[disabled] { cursor: default; }

.feedback { border-radius: var(--radius-sm); padding: 18px 20px; margin-top: 16px; animation: rise .28s var(--ease); }
.feedback.ok { background: var(--green-soft); border: 1px solid #c6e8d9; }
.feedback.no { background: var(--red-soft); border: 1px solid #f2ccd3; }
.feedback h3, .feedback h4 { margin: 0 0 10px; font-size: 15.5px; font-weight: 680; }
.feedback .explain { background: rgba(255, 255, 255, .7); margin-top: 14px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.quiz-actions .muted { font-size: 13px; }

.exam-clock { font-variant-numeric: tabular-nums; font-weight: 680; font-size: 14.5px; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; }
.exam-clock.is-urgent { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.exam-dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.exam-dot { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .16s var(--ease); }
.exam-dot:hover { border-color: var(--faint); }
.exam-dot.done { background: var(--surface-2); color: var(--ink-2); }
.exam-dot.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.exam-review { list-style: none; padding: 0; margin: 0; }
.exam-review li { margin-bottom: 10px; }
.paywall, .exam-report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); text-align: center; }
.paywall .score, .score { font-size: clamp(38px, 6vw, 60px); font-weight: 800; letter-spacing: -.04em; margin: 10px 0; font-variant-numeric: tabular-nums; }

/* ---------------- 错题本 ---------------- */
.wrong-list { list-style: none; margin: 0; padding: 0; }
.wrong-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 18px; margin-bottom: 8px; }
.wrong-list .stem { margin: 0 0 8px; font-size: 15px; font-weight: 550; line-height: 1.65; }
.wrong-list summary { cursor: pointer; color: var(--accent); font-size: 13.5px; font-weight: 620; list-style: none; }
.wrong-list summary::-webkit-details-marker { display: none; }
.wrong-list details p { margin: 10px 0 0; line-height: 1.8; color: var(--ink-2); }

.report-btn {
  display: inline-block; margin-top: 12px; padding: 6px 13px; font-size: 12.5px;
  color: var(--muted); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.report-btn:hover { color: var(--ink); border-color: var(--faint); }
.report-btn:disabled { color: var(--green); border-color: #c6e8d9; background: var(--green-soft); cursor: default; }

/* ---------------- 特性 / FAQ ---------------- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 52px 0; }
.trust-grid > div { background: var(--surface); padding: 24px 22px; }
.trust-grid strong { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; font-weight: 700; }
.trust-grid p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }

.faq { margin: 44px 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 620; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 18px; color: var(--faint); font-weight: 400; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.85; }

.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.prose h2 { font-size: 16.5px; margin: 28px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { line-height: 1.85; color: var(--ink-2); font-size: 15px; }
.prose ul { padding-left: 20px; }

/* ---------------- 页脚 ---------------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--surface); padding: 44px 0 52px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo { width: 28px; height: 28px; border-radius: 8px; }
.footer-brand strong { font-size: 16px; font-weight: 720; }
.footer-products { display: flex; flex-wrap: wrap; gap: 7px; max-width: 32em; }
.footer-products a { font-size: 12.5px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); transition: color .16s var(--ease), border-color .16s var(--ease); }
.footer-products a:hover { color: var(--ink); border-color: var(--faint); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { font-size: 13.5px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.site-footer p { font-size: 12.5px; color: var(--faint); margin: 0 0 7px; line-height: 1.8; }

/* ---------------- 动效 ---------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .04s; }
.reveal-d2 { transition-delay: .08s; }
.reveal-d3 { transition-delay: .12s; }

.loading { color: var(--muted); }
.read-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200; background: var(--ink); transition: width .1s linear; }
.to-top {
  position: fixed; right: 24px; bottom: 28px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; cursor: pointer; font-size: 15px; color: var(--ink);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--spring); z-index: 90;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { box-shadow: var(--shadow); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .hero-stats { gap: 30px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .container { width: calc(100% - 32px); }
  /* 顶栏改网格：上排「品牌 | 语言 | 主题」，下排导航通栏 */
  .site-header {
    display: grid; height: auto; padding: 10px 16px 8px; gap: 4px 10px;
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "brand lang theme" "nav nav nav";
  }
  .brand { grid-area: brand; font-size: 16px; min-width: 0; }
  .brand > span:first-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-sub { display: none; }
  .header-right { display: contents; }
  .site-nav {
    grid-area: nav; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 4px 0 2px; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .lang-switch { grid-area: lang; }
  .lang-switch a { padding: 4px 9px; font-size: 12px; }
  .theme-toggle { grid-area: theme; width: 30px; height: 30px; font-size: 13px; }
  .site-nav a { padding: 7px 11px; font-size: 14px; white-space: nowrap; }
  .hero { padding: 40px 18px 32px; }
  .hero h1 { font-size: clamp(30px, 9vw, 40px); }
  .hero-actions .btn { flex: 1 1 auto; }
  .grid { grid-template-columns: 1fr; gap: 11px; }
  .catalog-list { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .level-chip { flex: 1 1 auto; min-width: 88px; }
  .facts li { flex-direction: column; gap: 3px; }
  .facts li strong { width: auto; }
  .to-top { right: 14px; bottom: 16px; }
  .footer-grid { flex-direction: column; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   深色模式（跟随系统 + 手动切换）
   ============================================================ */
[data-theme="dark"] {
  --bg: #0b0c0f;
  --surface: #14161b;
  --surface-2: #1c1f26;
  --ink: #f2f3f5;
  --ink-2: #b9bec8;
  --muted: #868d9a;
  --faint: #666d7a;
  --line: #23262d;
  --line-strong: #32363f;
  --accent: #7c8cff;
  --accent-ink: #a5b0ff;
  --accent-soft: #1b1f38;
  --accent-line: #2f3557;
  --green: #3ddc97;
  --green-soft: #10231c;
  --red: #ff6b81;
  --red-soft: #2a161b;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .35);
  --shadow: 0 2px 6px rgba(0, 0, 0, .5), 0 12px 28px rgba(0, 0, 0, .45);
}
[data-theme="dark"] .site-header { background: rgba(11, 12, 15, .86); }
[data-theme="dark"] .site-header.is-scrolled { background: rgba(11, 12, 15, .95); }
[data-theme="dark"] .hero::before { background: radial-gradient(ellipse at center, rgba(124, 140, 255, .16), rgba(124, 140, 255, .05) 42%, transparent 68%); }
[data-theme="dark"] .btn-primary { background: #f2f3f5; color: #0b0c0f; }
[data-theme="dark"] .btn-primary:hover { background: #fff; color: #0b0c0f; }
[data-theme="dark"] .level-chip.is-active { background: #f2f3f5; border-color: #f2f3f5; }
[data-theme="dark"] .level-chip.is-active strong { color: #0b0c0f; }
[data-theme="dark"] .level-chip.is-active span { color: #4a4f58; }
[data-theme="dark"] .choice.selected { box-shadow: inset 0 0 0 1px var(--ink); }
[data-theme="dark"] .exam-dot.current { background: #f2f3f5; color: #0b0c0f; border-color: #f2f3f5; }
[data-theme="dark"] .progress i, [data-theme="dark"] .progress-bar { background: #f2f3f5; }
[data-theme="dark"] .read-progress { background: #f2f3f5; }
[data-theme="dark"] img.brand-logo, [data-theme="dark"] .footer-logo { filter: brightness(1.08); }

/* 主题切换按钮 */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); cursor: pointer; display: grid; place-items: center;
  font-size: 15px; line-height: 1; padding: 0;
  transition: border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--spring);
}
.theme-toggle:hover { border-color: var(--faint); color: var(--ink); transform: rotate(-12deg); }

/* 学习进度 */
.progress-card { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin: 0 0 30px; }
.progress-card .pc-item b { display: block; font-size: 22px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.progress-card .pc-item span { font-size: 12.5px; color: var(--muted); }
.resume-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 26px; }
.resume-bar .rb-text { font-size: 14.5px; }
.pc-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 8px; min-width: 180px; flex: 1; }
.pc-bar i { display: block; height: 100%; background: var(--ink); border-radius: 999px; transition: width .5s var(--ease); }

/* 知识点大纲 */
.syllabus { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.syllabus-item { display: flex; gap: 11px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.syllabus-item .num { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.syllabus-item strong { display: block; font-size: 14.5px; font-weight: 650; margin-bottom: 3px; }
.syllabus-item p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* 收藏按钮 */
.fav-btn { margin-left: 8px; }
.fav-btn.is-on { color: var(--amber); border-color: var(--amber); background: var(--amber-soft); }

/* ============================================================
   打印练习卷
   ============================================================ */
.paper { max-width: 900px; }
.paper-head { margin: 30px 0 26px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.paper-head h1 { font-size: 26px; margin: 0 0 10px; letter-spacing: -.02em; }
.paper-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.paper-tools .btn { padding: 8px 15px; font-size: 13.5px; }
.paper-tools .btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.paper-body { counter-reset: pq; }
.paper-q { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); break-inside: avoid; }
.paper-stem { font-size: 15.5px; font-weight: 600; line-height: 1.7; margin: 0 0 10px; display: flex; gap: 8px; }
.paper-no { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--surface-2); font-size: 12.5px; font-weight: 700; }
.paper-type { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.paper-options { list-style: none; padding: 0 0 0 32px; margin: 0; }
.paper-options li { padding: 4px 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.paper-answers { margin-top: 40px; padding-top: 22px; border-top: 2px solid var(--ink); break-before: page; }
.paper-answers h2 { font-size: 19px; margin-bottom: 14px; }
.paper-key { padding-left: 22px; margin: 0; }
.paper-key li { padding: 6px 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.paper-key strong { color: var(--ink); }

@media print {
  .site-header, .site-footer, .to-top, .read-progress, .no-print, .skip-link { display: none !important; }
  body { background: #fff; }
  .container { width: 100%; max-width: none; margin: 0; }
  .paper { max-width: none; }
  .paper-head { margin-top: 0; }
  .paper-q { border-bottom-color: #ddd; }
  a { color: inherit; }
  @page { margin: 16mm 14mm; }
}

/* ============================================================
   首页 v4 · 工具型布局
   ============================================================ */

/* ── Hero：搜索优先 ── */
.hero-v4 {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 86px) var(--gutter) clamp(40px, 5vw, 64px);
  background:
    radial-gradient(ellipse 90% 120% at 15% -10%, rgba(47, 69, 224, .13), transparent 55%),
    radial-gradient(ellipse 70% 100% at 88% 0%, rgba(122, 92, 255, .12), transparent 58%),
    linear-gradient(180deg, #f4f6ff 0%, var(--bg) 78%);
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .hero-v4 {
  background:
    radial-gradient(ellipse 90% 120% at 15% -10%, rgba(124, 140, 255, .16), transparent 55%),
    radial-gradient(ellipse 70% 100% at 88% 0%, rgba(160, 130, 255, .12), transparent 58%),
    linear-gradient(180deg, #12141c 0%, var(--bg) 78%);
}
.hero-v4::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(47, 69, 224, .10) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.hero-v4 .hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-v4 h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 14px; }
.hero-v4 .hero-sub { font-size: clamp(15px, 1.5vw, 17.5px); color: var(--ink-2); margin: 0 0 26px; max-width: 32em; }

/* 大搜索框 */
.hero-search { position: relative; margin: 0 0 16px; }
.hero-search input {
  width: 100%; padding: 19px 130px 19px 54px; font-size: 16.5px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 4px 16px rgba(14, 16, 21, .06), 0 1px 2px rgba(14, 16, 21, .04);
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.hero-search input::placeholder { color: var(--faint); }
.hero-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 26px rgba(47, 69, 224, .14); }
.hero-search .hs-icon {
  position: absolute; left: 19px; top: 50%; transform: translateY(-50%); font-size: 17px; opacity: .5; pointer-events: none;
}
.hero-search .hs-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  padding: 11px 22px; border: none; border-radius: 11px; background: var(--ink); color: #fff;
  font-size: 14.5px; font-weight: 620; cursor: pointer; transition: background .18s var(--ease);
}
.hero-search .hs-btn:hover { background: #23262e; }
[data-theme="dark"] .hero-search .hs-btn { background: #f2f3f5; color: #0b0c0f; }

.hot-kw { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.hot-kw a {
  padding: 4px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13px; transition: border-color .16s var(--ease), color .16s var(--ease);
}
.hot-kw a:hover { border-color: var(--accent); color: var(--accent); }

.hero-mini-stats { display: flex; flex-wrap: wrap; gap: 22px 34px; font-size: 13.5px; color: var(--muted); }
.hero-mini-stats b { color: var(--ink); font-weight: 720; font-variant-numeric: tabular-nums; font-size: 15px; }

/* ── 快捷入口 ── */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 40px 0 8px; }
.quick-card {
  display: flex; flex-direction: column; gap: 10px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.quick-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 21px;
  background: var(--surface-2);
}
.quick-card:nth-child(1) .quick-icon { background: #eef2ff; }
.quick-card:nth-child(2) .quick-icon { background: #fef2f2; }
.quick-card:nth-child(3) .quick-icon { background: #f0fdf4; }
.quick-card:nth-child(4) .quick-icon { background: #fffbeb; }
.quick-card:nth-child(5) .quick-icon { background: #f5f3ff; }
.quick-card:nth-child(6) .quick-icon { background: #ecfeff; }
[data-theme="dark"] .quick-card:nth-child(1) .quick-icon { background: #1b1f38; }
[data-theme="dark"] .quick-card:nth-child(2) .quick-icon { background: #2a161b; }
[data-theme="dark"] .quick-card:nth-child(3) .quick-icon { background: #10231c; }
[data-theme="dark"] .quick-card:nth-child(4) .quick-icon { background: #2a2312; }
[data-theme="dark"] .quick-card:nth-child(5) .quick-icon { background: #1e1a33; }
[data-theme="dark"] .quick-card:nth-child(6) .quick-icon { background: #0f2a2e; }
.quick-card strong { font-size: 15px; font-weight: 680; }
.quick-card span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ── 领域图标格 ── */
.domain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; margin-bottom: 40px; }
.domain-tile {
  display: flex; align-items: center; gap: 11px; padding: 13px 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: transform .18s var(--spring), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.domain-tile:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.domain-tile .dt-icon { font-size: 20px; line-height: 1; }
.domain-tile .dt-body { min-width: 0; }
.domain-tile strong { display: block; font-size: 13.5px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.domain-tile span { font-size: 11.5px; color: var(--muted); }

/* ── 科目卡（带图标） ── */
.subject-card .sc-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.subject-card .sc-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: var(--surface-2); flex: none; }
.subject-card .sc-title { min-width: 0; }
.subject-card .sc-title h3 { font-size: 15.5px; margin: 0; }
.subject-card .sc-title p { font-size: 11.5px; color: var(--faint); margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
  .hero-search input { padding: 16px 54px 16px 44px; font-size: 16px; }
  .hero-search .hs-btn { right: 6px; padding: 10px 15px; font-size: 14px; }
  .hero-search .hs-icon { left: 15px; font-size: 16px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .quick-card { padding: 14px; }
  .quick-icon { width: 36px; height: 36px; font-size: 18px; }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-v4 { padding: 34px 18px 30px; }
}

/* 报名教程 */
.enroll-lead { padding: 14px 16px; background: var(--surface-2); border-radius: var(--radius-xs); }
.enroll-h { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin: 0 0 9px; }
.steps { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: st; }
.steps li { display: flex; gap: 13px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.steps li:last-child { border-bottom: none; }
.step-no { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; }
.enroll-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 22px; }
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-left: 22px; font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.tick-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.enroll-tips { margin-top: 22px; padding: 15px 18px; background: var(--amber-soft); border-radius: var(--radius-xs); }
.enroll-tips ul { margin: 0; padding-left: 20px; }
.enroll-tips li { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }

/* ============================================================
   学习日历
   ============================================================ */
.date-input, .text-input {
  padding: 10px 14px; font-size: 14.5px; font-family: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); outline: none;
}
.text-input { min-width: 200px; flex: 1; }
.date-input:focus, .text-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cal-head strong { font-size: 16px; font-weight: 700; min-width: 7em; text-align: center; }
.cal-head .btn { padding: 6px 14px; font-size: 15px; line-height: 1; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 8px; }
.cal-week span { text-align: center; font-size: 12px; color: var(--faint); font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day {
  aspect-ratio: 1; border-radius: var(--radius-xs); border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 13px; color: var(--ink-2); position: relative; transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.cal-day:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.cal-day.is-empty { border: none; background: none; }
.cal-day.is-today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 700; }
.cal-day .cd-count { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-day.lv1 { background: #e8ecff; border-color: #d3daff; }
.cal-day.lv2 { background: #ccd5ff; border-color: #b3c0ff; }
.cal-day.lv3 { background: #aab8ff; border-color: #8f9fff; color: #10142e; }
.cal-day.lv4 { background: var(--accent); border-color: var(--accent); color: #fff; }
.cal-day.lv4 .cd-count { color: rgba(255,255,255,.85); }
[data-theme="dark"] .cal-day.lv1 { background: #1b1f38; border-color: #262c4d; }
[data-theme="dark"] .cal-day.lv2 { background: #252c52; border-color: #333c6b; }
[data-theme="dark"] .cal-day.lv3 { background: #37417a; border-color: #465293; }
[data-theme="dark"] .cal-day.lv4 { background: var(--accent); border-color: var(--accent); color: #0b0c0f; }
.cal-day.is-exam::after { content: ''; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.cal-legend > span { display: inline-block; width: 13px; height: 13px; border-radius: 4px; border: 1px solid var(--line); }
.cal-legend .lg-some { background: #ccd5ff; border-color: #b3c0ff; }
.cal-legend .lg-many { background: var(--accent); border-color: var(--accent); }
.cal-legend .lg-exam { background: var(--red); border-color: var(--red); border-radius: 50%; }
.exam-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-xs); margin-bottom: 8px; background: var(--surface); }
.exam-row .er-days { font-weight: 750; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 3.5em; }
.exam-row .er-days.soon { color: var(--red); }
.exam-row .er-note { flex: 1; font-size: 14px; }
.exam-row .er-date { font-size: 12.5px; color: var(--muted); }
.exam-row .er-del { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 15px; padding: 2px 6px; }
.exam-row .er-del:hover { color: var(--red); }

@media (max-width: 640px) {
  .cal-grid { gap: 4px; }
  .cal-day { font-size: 11.5px; border-radius: 7px; }
  .cal-day .cd-count { font-size: 9px; }
  .text-input { min-width: 0; }
}

/* 页脚链接说明 */
.footer-links2 { margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; }
.footer-links2 > div { min-width: 0; }
.footer-links2 dt { font-size: 11.5px; color: var(--faint); margin-bottom: 3px; }
.footer-links2 dd { margin: 0; font-size: 13px; }
.footer-links2 dd a { color: var(--ink-2); }
.footer-links2 dd a:hover { color: var(--accent); }

/* ============================================================
   AI 助教对话窗口
   ============================================================ */
.chat-fab {
  position: fixed; right: 24px; bottom: 82px; z-index: 95;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #6b5cff); color: #fff;
  font-size: 14.5px; font-weight: 650; font-family: inherit;
  box-shadow: 0 6px 22px rgba(47, 69, 224, .35);
  transition: transform .22s var(--spring), box-shadow .22s var(--ease), opacity .2s var(--ease);
}
.chat-fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 30px rgba(47, 69, 224, .45); }
.chat-fab.is-hidden { opacity: 0; pointer-events: none; transform: scale(.9); }
.chat-fab .cf-icon { font-size: 17px; }

.chat-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 96;
  width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(14, 16, 21, .22);
  opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--spring);
}
.chat-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }

.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; font-size: 15px; font-weight: 700; }
.chat-head .small { display: block; margin-top: 2px; }
.chat-close { background: none; border: none; color: var(--faint); font-size: 16px; cursor: pointer; padding: 2px 6px; }
.chat-close:hover { color: var(--ink); }

.chat-body { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 88%; font-size: 14.5px; line-height: 1.65; padding: 11px 14px; border-radius: 14px; word-break: break-word; }
.chat-msg p { margin: 0 0 .6em; }
.chat-msg p:last-child { margin-bottom: 0; }
.chat-msg ul { margin: .4em 0; padding-left: 18px; }
.chat-msg li { margin: 2px 0; }
.chat-msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.assistant { align-self: flex-start; background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-empty { margin: auto 0; text-align: center; padding: 20px 0; }
.chat-hello { font-size: 15.5px; font-weight: 650; margin: 0 0 6px; }
.chat-msg.typing { display: flex; gap: 4px; padding: 14px; }
.chat-msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: chatDot 1.2s infinite; }
.chat-msg.typing span:nth-child(2) { animation-delay: .18s; }
.chat-msg.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes chatDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.chat-sugs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 10px; }
.chat-sug { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; font-family: inherit; transition: border-color .16s var(--ease), color .16s var(--ease); }
.chat-sug:hover { border-color: var(--accent); color: var(--accent); }

.chat-foot { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-foot textarea {
  flex: 1; resize: none; padding: 11px 14px; font-size: 14.5px; font-family: inherit; line-height: 1.5; color: var(--ink);
  background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; outline: none; max-height: 110px;
}
.chat-foot textarea:focus { border-color: var(--accent); background: var(--surface); }
.chat-foot button {
  flex: none; width: 38px; height: 38px; border-radius: 11px; border: none; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 17px; font-weight: 700; line-height: 1;
  transition: background .16s var(--ease), transform .16s var(--spring);
}
.chat-foot button:hover { background: var(--accent-ink); transform: scale(1.05); }
.chat-foot button:disabled { opacity: .5; cursor: default; transform: none; }

@media (max-width: 640px) {
  .chat-fab { right: 14px; bottom: 70px; padding: 11px 16px; font-size: 13.5px; }
  .chat-fab .cf-text { display: none; }
  .chat-fab .cf-icon { font-size: 20px; }
  .chat-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 82vh; border-radius: 20px 20px 0 0; }
  .chat-msg { max-width: 94%; }
}

/* ============================================================
   报考指南卡片（v2 紧凑可扫读）
   ============================================================ */
.gcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gcard-note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 20px; background: var(--amber-soft);
  font-size: 13px; color: var(--ink-2); line-height: 1.65;
}
.gcard-note .gn-icon { flex: none; font-size: 14px; }
.grow { padding: 18px 20px; border-top: 1px solid var(--line); }
.grow:first-of-type { border-top: none; }
.grow-h {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 9px;
}
.grow-icon { font-size: 15px; }
.grow p { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.gcard-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 15px 20px; border-top: 1px solid var(--line); background: var(--surface-2);
}
.gcard-foot .btn { padding: 8px 15px; font-size: 13.5px; }
.gcard-foot .report-btn { margin-top: 0; }

@media (max-width: 640px) {
  .grow { padding: 15px 16px; }
  .gcard-note, .gcard-foot { padding: 12px 16px; }
  .grow p { font-size: 14px; line-height: 1.8; }
}

/* ============================================================
   今日一题（首页互动）
   ============================================================ */
.qot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); }
.qot-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.qot-badge { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); }
.qot-stem { font-size: clamp(16px, 1.9vw, 19px); font-weight: 650; line-height: 1.65; margin: 0 0 18px; }
.qot-opts { display: flex; flex-direction: column; gap: 8px; }
.qot-opt {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  padding: 13px 16px; font-size: 15px; font-family: inherit; line-height: 1.6; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease), transform .16s var(--ease);
}
.qot-opt:hover { border-color: var(--faint); background: var(--surface-2); transform: translateX(3px); }
.qot-key { flex: none; width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.qot-opt.is-correct { border-color: var(--green); background: var(--green-soft); }
.qot-opt.is-correct .qot-key { background: var(--green); color: #fff; }
.qot-opt.is-wrong { border-color: var(--red); background: var(--red-soft); }
.qot-opt.is-wrong .qot-key { background: var(--red); color: #fff; }
.qot-opt:disabled { cursor: default; transform: none; }
.qot-fb { margin-top: 14px; font-size: 15px; font-weight: 650; }
.qot-fb.ok { color: var(--green); }
.qot-fb.no { color: var(--red); }
.qot-explain { margin-top: 14px; background: var(--surface-2); border-radius: var(--radius-xs); padding: 14px 16px; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); animation: rise .3s var(--ease); }
.qot-more { margin: 16px 0 0; font-size: 14px; }
.qot-more a { color: var(--accent); font-weight: 620; }

/* 领域分布条形图 */
.dist { display: flex; flex-direction: column; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); }
.dist-row { display: grid; grid-template-columns: minmax(96px, 8em) 1fr 3.2em; align-items: center; gap: 12px; font-size: 13.5px; }
.dist-row:hover .dist-name { color: var(--accent); }
.dist-name { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .16s var(--ease); }
.dist-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.dist-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #7a5cff); transition: width .6s var(--ease); }
.dist-val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }

@media (max-width: 640px) {
  .qot { padding: 18px 16px; }
  .qot-opt { padding: 12px 14px; font-size: 14.5px; }
  .dist-row { grid-template-columns: 6.5em 1fr 2.6em; gap: 9px; font-size: 12.5px; }
}

/* 日历考试月/报名月横幅 */
.cal-band { grid-column: 1 / -1; font-size: 12px; font-weight: 650; padding: 6px 12px; border-radius: var(--radius-xs); margin-bottom: 6px; }
.cal-band.exam { background: var(--red-soft); color: var(--red); }
.cal-band.reg { background: var(--accent-soft); color: var(--accent-ink); }

/* 网站地图 */
.sm-group { margin-bottom: 20px; }
.sm-group h3 { font-size: 14.5px; font-weight: 680; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.sm-links { margin: 0; line-height: 2.1; }
.sm-links a { font-size: 13.5px; color: var(--ink-2); padding: 3px 9px; border-radius: 6px; display: inline-block; transition: background .16s var(--ease), color .16s var(--ease); }
.sm-links a:hover { background: var(--accent-soft); color: var(--accent-ink); }

.chat-quota { padding: 0 18px 8px; font-size: 11.5px; color: var(--faint); }

/* ============================================================
   证书推荐器 /finder
   ============================================================ */
.finder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.4vw, 34px); }
.finder-q { font-size: clamp(16px, 2vw, 19px); font-weight: 680; margin: 0 0 18px; letter-spacing: -.01em; }
.finder-opts { display: flex; flex-wrap: wrap; gap: 9px; }
.finder-opt {
  padding: 11px 17px; font-size: 14.5px; font-family: inherit; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--spring), color .18s var(--ease);
}
.finder-opt:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); transform: translateY(-2px); }
.finder-step { animation: rise .3s var(--ease); }
.finder-crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.finder-crumb b { color: var(--ink); font-weight: 620; }
.finder-result h2 { font-size: 20px; margin: 0 0 6px; }
.finder-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 20px; }
.finder-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.finder-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.finder-card .fc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.finder-card .fc-match { font-size: 11.5px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 3px 9px; border-radius: 6px; }
.finder-card h3 { font-size: 15.5px; margin: 0 0 3px; }
.finder-card .fc-en { font-size: 11.5px; color: var(--faint); margin: 0 0 8px; }
.finder-card .fc-meta { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.finder-reset { margin-top: 22px; }

/* 备考流程时间轴 */
.flow { display: flex; flex-wrap: wrap; gap: 0; margin: 8px 0 0; }
.flow-step { flex: 1 1 150px; position: relative; padding: 0 14px 0 0; }
.flow-step .fs-no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; margin-bottom: 9px; }
.flow-step strong { display: block; font-size: 14px; margin-bottom: 4px; }
.flow-step span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.flow-step::after { content: ''; position: absolute; left: 30px; right: 6px; top: 13px; height: 1px; background: var(--line); }
.flow-step:last-child::after { display: none; }
@media (max-width: 640px) {
  .finder { padding: 18px 16px; }
  .finder-opt { padding: 10px 14px; font-size: 14px; }
  .flow-step { flex: 1 1 100%; padding-bottom: 14px; }
  .flow-step::after { display: none; }
  .flow-step .fs-no { margin-bottom: 6px; }
}

/* 题目笔记 */
.note-btn { margin-left: 8px; }
.note-btn.is-on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.note-box {
  margin-top: 12px; padding: 12px 15px; border-radius: var(--radius-xs);
  background: #fffbe8; border: 1px solid #f2e2b0; font-size: 14px; line-height: 1.75; color: var(--ink-2);
  animation: rise .25s var(--ease);
}
[data-theme="dark"] .note-box { background: #2a2312; border-color: #4a3d1c; }
.note-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--amber); margin-bottom: 5px; letter-spacing: .02em; }
.note-text { display: block; white-space: pre-wrap; }

/* 每日目标卡 */
.goal-card { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-bottom: 16px; }
.goal-card .pc-bar { margin-top: 0; }

/* 首页领域区块：紧凑目录式 */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-head .section-title { margin: 0; }
.sec-icon { font-size: 21px; margin-right: 2px; }
.sec-more { font-size: 13.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.sec-more:hover { color: var(--accent-ink); }
.subj-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.subj-rows li { background: var(--surface); }
.subj-rows a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; transition: background .16s var(--ease); }
.subj-rows a:hover { background: var(--surface-2); }
.sr-body { min-width: 0; }
.sr-body strong { display: block; font-size: 14px; font-weight: 560; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-body em { display: block; font-style: normal; font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-meta { flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .subj-rows { grid-template-columns: 1fr; }
  .sr-body strong { font-size: 14.5px; }
}

/* 新证书筹备中 */
.coming-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.coming-chips a {
  font-size: 13px; padding: 6px 13px; border-radius: 999px;
  background: var(--surface); border: 1px dashed var(--line-strong); color: var(--ink-2);
  transition: border-color .16s var(--ease), color .16s var(--ease), transform .16s var(--spring);
}
.coming-chips a:hover { border-color: var(--accent); border-style: solid; color: var(--accent-ink); transform: translateY(-1px); }
.coming-more { font-size: 12.5px; color: var(--faint); padding: 6px 4px; }

/* 证书页页内导航 */
.page-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.page-nav a {
  font-size: 13.5px; font-weight: 550; padding: 6px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}
.page-nav a:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
section { scroll-margin-top: 84px; }

/* 英文版品牌：QuizSea + 中文小字 */
.brand-cn { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }

/* 难度筛选行 */
.tier-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.tier-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.tier-chip { display: inline-flex; flex-direction: column; gap: 2px; padding: 9px 15px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); transition: border-color .16s var(--ease), transform .16s var(--spring); }
.tier-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.tier-chip b { font-size: 13.5px; font-weight: 650; }
.tier-chip span { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 导航「更多」下拉 */
.nav-more { position: relative; }
.nav-more-btn { background: none; border: none; font-family: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 8px 13px; border-radius: var(--radius-xs); cursor: pointer; transition: background .16s var(--ease), color .16s var(--ease); }
.nav-more-btn:hover { background: var(--surface-2); color: var(--ink); }
.nav-more-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 120; min-width: 190px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 6px; display: none;
}
.nav-more.is-open .nav-more-menu { display: block; animation: rise .16s var(--ease); }
.nav-more-menu a { display: block; padding: 9px 12px; border-radius: var(--radius-xs); font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.nav-more-menu a:hover { background: var(--surface-2); color: var(--ink); }
@media (max-width: 720px) {
  .nav-more-menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; min-width: 0; }
}

/* 混合刷题选择 */
.mix-picks { display: flex; flex-wrap: wrap; gap: 7px; max-height: 260px; overflow-y: auto; padding: 4px; }
.mix-pick { font-size: 13.5px; font-family: inherit; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: all .16s var(--ease); }
.mix-pick:hover { border-color: var(--accent); color: var(--accent-ink); }
.mix-pick.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 成就徽章 */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.badge-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.badge-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.badge-card .b-icon { font-size: 40px; line-height: 1; margin-bottom: 12px; display: block; }
.badge-card.is-locked { opacity: .45; }
.badge-card.is-locked .b-icon { filter: grayscale(1); }
.badge-card strong { display: block; font-size: 15px; margin-bottom: 6px; }
.badge-card p { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; line-height: 1.6; }
.badge-bar { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.badge-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .5s var(--ease); }
.badge-stat { font-size: 11.5px; color: var(--faint); margin-top: 7px; }

/* 签到条 */
.sign-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.sign-streak b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sign-dots { display: flex; gap: 5px; }
.sign-dots span { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.sign-dots span.on { background: var(--accent); color: #fff; }
