:root {
  --bg: #f4f1e9;
  --panel: #fffdf8;
  --ink: #1f2b27;
  --ink-2: #46554f;
  --muted: #7f8c86;
  --line: #e5ded0;
  --line-2: #efe9dd;
  --jade: #2f5544;
  --jade-2: #3f6f5a;
  --gold: #c9a15e;
  --gold-2: #e3c68e;
  --red: #b23a2e;
  --amber: #c98a3c;
  --shadow: 0 18px 40px rgba(34, 48, 43, 0.08);
  --serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(880px 420px at 88% -8%, rgba(201, 161, 94, 0.1), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--jade-2);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* 侧栏                                                                */
/* ------------------------------------------------------------------ */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 232px;
  padding: 26px 16px;
  background: linear-gradient(180deg, #223b32, #1b2f28);
  color: #e9f0ea;
  display: flex;
  flex-direction: column;
  gap: 26px;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px;
}

.brand-seal {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--gold-2);
  color: #223b32;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  flex: none;
}

.brand-seal.sm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 16px;
}

.brand-text b {
  display: block;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.brand-text small {
  display: block;
  font-size: 10.5px;
  color: rgba(233, 240, 234, 0.52);
  margin-top: 2px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: rgba(233, 240, 234, 0.7);
  transition: background 0.16s, color 0.16s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-item.active {
  background: rgba(201, 161, 94, 0.16);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--gold-2);
}

.nav-ico {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #d8e4dc;
  flex: none;
}

.nav-item.active .nav-ico {
  background: var(--gold-2);
  color: #223b32;
  font-weight: 700;
}

.nav-badge {
  margin-left: auto;
  font-style: normal;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  display: grid;
  place-items: center;
}

.side-note {
  margin-top: auto;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 10.5px;
  line-height: 1.7;
  color: rgba(233, 240, 234, 0.5);
}

.side-note-title {
  color: rgba(233, 240, 234, 0.82);
  font-weight: 600;
  margin: 0 0 4px;
}

.side-note p {
  margin: 0;
}

.side-version {
  margin-top: 8px !important;
  font-size: 10px;
  color: rgba(233, 240, 234, 0.34);
}

/* ------------------------------------------------------------------ */
/* 主区域                                                              */
/* ------------------------------------------------------------------ */

.main {
  margin-left: 232px;
  padding: 30px 38px 70px;
  max-width: 1360px;
}

.mobile-head,
.mobile-nav {
  display: none;
}

.mobile-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-back {
  font-size: 10px;
  color: var(--jade);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--panel);
}

/* ------------------------------------------------------------------ */
/* 按钮                                                                */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, transform 0.16s, color 0.16s;
  white-space: nowrap;
  background: transparent;
  color: inherit;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.btn-gold {
  background: var(--gold-2);
  color: #243c33;
}

.btn-gold:hover {
  background: #efd6a5;
}

.btn-primary {
  background: var(--jade);
  color: #fff;
}

.btn-primary:hover {
  background: var(--jade-2);
}

.btn-line {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-line:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  background: var(--panel);
  border-color: #ded6c6;
  color: var(--jade);
}

.btn-ghost:hover {
  border-color: #b9c8be;
  background: #f6f9f6;
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 12px;
}

.full {
  width: 100%;
}

/* ------------------------------------------------------------------ */
/* 首页                                                                */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 40px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2f5544, #3f6f5a 58%, #4a7d66);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -130px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 161, 94, 0.32), transparent 66%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--gold-2);
  margin: 0 0 10px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.16;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

.accent {
  color: var(--gold-2);
}

.hero-sub {
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-link:hover {
  color: #fff;
}

.hero-link em {
  font-style: normal;
  color: var(--gold-2);
}

.hero-year {
  position: relative;
  z-index: 1;
  align-self: center;
  text-align: right;
  padding-right: 8px;
  flex: none;
}

.hero-year span {
  display: block;
  font-family: Georgia, serif;
  font-size: 76px;
  line-height: 0.92;
  color: rgba(255, 255, 255, 0.16);
  letter-spacing: -0.03em;
}

.hero-year small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: rgba(227, 198, 142, 0.82);
  margin-top: 8px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 22px;
}

.stat-card {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.stat-card span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.stat-card b {
  display: block;
  font-size: 30px;
  line-height: 1.2;
  margin-top: 6px;
  font-family: Georgia, var(--serif);
  color: var(--ink);
}

.stat-card small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 3px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(34, 48, 43, 0.04);
}

.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-kicker {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin: 0 0 4px;
}

.panel-head h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0;
  line-height: 1.2;
}

.panel-note {
  font-size: 11.5px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.panel-foot {
  font-size: 11px;
  color: #a9b2ac;
  margin: 16px 0 0;
}

.sec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 172px;
  padding: 20px;
  border-radius: 16px;
  color: #fff;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}

.sec-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.sec-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(34, 48, 43, 0.16);
}

.theme-tcm {
  background: linear-gradient(140deg, #5c9b7b, #2f5544);
}

.theme-western {
  background: linear-gradient(140deg, #d98a63, #a84a32);
}

.theme-mentor {
  background: linear-gradient(140deg, #d9a55a, #a97024);
}

.theme-nurse {
  background: linear-gradient(140deg, #7f9bc9, #4f6c9e);
}

.theme-village {
  background: linear-gradient(140deg, #6fae9a, #2f6f63);
}

.theme-pharmacist {
  background: linear-gradient(140deg, #a98ac7, #6b4f9e);
}

.theme-herb {
  background: linear-gradient(140deg, #95bf7a, #4f7a3e);
}

.sec-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.sec-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 18px;
}

.sec-count {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.12);
  padding: 4px 8px;
  border-radius: 999px;
}

.sec-card h3 {
  font-size: 17px;
  margin: 0 0 5px;
  font-weight: 600;
}

.sec-card p {
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  flex: 1;
}

.sec-foot {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 14px;
}

.sec-bar {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  margin-top: 8px;
  overflow: hidden;
}

.sec-bar i {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 99px;
}

.law-panel {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf8, #fbf7ee);
}

.law-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.law-mini {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
}

.law-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 7px;
  flex: none;
}

.law-mini b {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.law-mini small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}

.law-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 16px 0 0;
}

.text-link {
  font-size: 12px;
  color: var(--jade);
  font-weight: 600;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--jade-2);
}

.page-foot {
  padding: 30px 0 0;
  text-align: center;
  font-size: 10.5px;
  color: #a9b2ac;
}

/* ------------------------------------------------------------------ */
/* 练习页                                                              */
/* ------------------------------------------------------------------ */

.practice-main {
  padding-top: 22px;
}

.back-link {
  font-size: 12px;
  color: var(--muted);
}

.back-link:hover {
  color: var(--jade);
}

.practice-head {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.practice-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 220px;
}

.practice-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
  flex: none;
}

.practice-title h1 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0;
  line-height: 1.2;
}

.practice-title p {
  font-size: 11.5px;
  color: var(--muted);
  margin: 3px 0 0;
}

.practice-quota {
  margin: 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: #f3efe3;
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

.practice-quota b {
  color: var(--jade);
  font-size: 14px;
}

.practice-quota a {
  color: var(--jade-2);
  text-decoration: underline;
}

.quota-empty p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 12.5px;
}

.quota-empty .btn {
  margin: 0 6px;
}

.mode-switch {
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: #eae5d9;
  gap: 2px;
}

.mode-switch button {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #6a7a72;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}

.mode-switch button.active {
  background: var(--panel);
  color: var(--jade);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(34, 48, 43, 0.08);
}

.mode-switch a {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #6a7a72;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s, color 0.16s;
}

.mode-switch a.active {
  background: var(--panel);
  color: var(--jade);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(34, 48, 43, 0.08);
}

.practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.q-col {
  min-width: 0;
}

.side-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 22px;
}

.chapter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 4px;
  scrollbar-width: none;
}

.chapter-row::-webkit-scrollbar {
  display: none;
}

.chapter-row button {
  flex: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: #5b6a63;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  cursor: pointer;
  display: flex;
  gap: 5px;
  align-items: center;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}

.chapter-row button em {
  font-style: normal;
  font-size: 10px;
  color: #a9b2ac;
}

.chapter-row button:hover {
  border-color: #b9c8be;
}

.chapter-row button.active {
  background: var(--jade);
  border-color: var(--jade);
  color: #fff;
}

.chapter-row button.active em {
  color: rgba(255, 255, 255, 0.6);
}

.q-card {
  padding: 26px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(34, 48, 43, 0.04);
}

.q-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.q-index {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.q-chapter {
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f3eee2;
  color: #6a7a72;
}

.q-tag {
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f6e3df;
  color: #8f2c23;
  font-weight: 600;
}

.q-stem {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.7;
  margin: 0 0 20px;
  font-weight: 600;
  color: var(--ink);
}

.case-box {
  background: #f7f3e8;
  border: 1px solid #e6ddc9;
  border-left: 3px solid var(--jade-2);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 14px;
}

.case-kicker {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #8a7a55;
  margin-bottom: 4px;
}

.case-box p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: #5c5548;
}

.shared-note {
  font-size: 11px;
  color: #8a7a55;
  margin: 0 0 8px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}

.option:hover {
  border-color: #b9c8be;
  background: #fbfdfa;
}

.option:disabled {
  cursor: default;
}

.opt-letter {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f1eee5;
  color: #5b6a63;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12.5px;
  flex: none;
}

.opt-text {
  flex: 1;
}

.opt-mark {
  flex: none;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.opt-mark.ok {
  background: #e3f1e6;
  color: #2f7a4a;
}

.opt-mark.bad {
  background: #f8e1dc;
  color: var(--red);
}

.option.selected {
  border-color: var(--jade);
  box-shadow: 0 0 0 2px rgba(47, 85, 68, 0.12);
}

.option.correct {
  border-color: #4c9a6b;
  background: #f1f9f3;
}

.option.correct .opt-letter {
  background: #4c9a6b;
  color: #fff;
}

.option.wrong {
  border-color: var(--red);
  background: #fdf2ef;
}

.option.wrong .opt-letter {
  background: var(--red);
  color: #fff;
}

.explain {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #d7e5da;
  background: #f1f8f2;
  font-size: 12.5px;
  line-height: 1.85;
  color: #3f554b;
}

.explain.bad {
  border-color: #efd3cd;
  background: #fdf2ef;
  color: #7a342b;
}

.explain-head {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 12.5px;
}

.explain p {
  margin: 0;
}

.source-line {
  font-size: 10.5px !important;
  color: var(--muted);
  margin-top: 8px !important;
}

.q-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.kbd-tip {
  font-size: 10.5px;
  color: #a9b2ac;
}

.side-card {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.side-card h3 {
  font-size: 13px;
  margin: 0 0 10px;
  font-weight: 600;
}

.side-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.side-card-head h3 {
  margin: 0;
}

.side-card-head span {
  font-size: 11px;
  color: var(--muted);
}

.bar {
  height: 6px;
  border-radius: 99px;
  background: #ece6d8;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--jade-2);
  border-radius: 99px;
  transition: width 0.25s;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  text-align: center;
}

.mini-stats b {
  display: block;
  font-size: 17px;
  font-family: Georgia, var(--serif);
  color: var(--jade);
}

.mini-stats span {
  font-size: 10px;
  color: var(--muted);
}

.side-card p {
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

/* 大纲 */
.outline-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.outline-head {
  padding: 24px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(34, 48, 43, 0.04);
}

.outline-head h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 6px;
}

.outline-head p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 16px;
}

.outline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.outline-basis {
  font-size: 11px;
  color: #a9b2ac;
  line-height: 1.6;
}

.outline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.outline-row {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.outline-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.outline-row-head b {
  font-size: 14px;
  color: var(--ink);
}

.outline-row-head span {
  font-family: Georgia, var(--serif);
  font-size: 20px;
  color: var(--jade);
}

.outline-bar {
  height: 6px;
  margin: 10px 0 8px;
  border-radius: 999px;
  background: #ece6d8;
  overflow: hidden;
}

.outline-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--jade-2);
}

.outline-topics {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px;
}

.outline-years {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.outline-years span {
  font-size: 10.5px;
  color: #7b8a82;
  background: #f2ede0;
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.6;
}

.outline-row-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.outline-count {
  font-size: 10.5px;
  color: #a9b2ac;
}

.outline-foot {
  font-size: 11px;
  color: #a9b2ac;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 560px) {
  .outline-head {
    padding: 18px;
  }

  .outline-row {
    padding: 14px;
  }

  .outline-row-head span {
    font-size: 18px;
  }
}

/* ------------------------------------------------------------------ */
/* 模拟机考                                                            */
/* ------------------------------------------------------------------ */

.exam-intro {
  max-width: 640px;
  margin: 8px auto 0;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.exam-badge {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: #a86f28;
  background: #fdf0dd;
  border: 1px solid #f0dcbd;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.exam-intro h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 6px;
}

.exam-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
}

.rule-list {
  margin: 0 0 24px;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 2;
  color: #5b6a63;
}

.exam-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.exam-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.exam-progress {
  font-size: 12px;
  color: var(--muted);
}

.exam-progress b {
  color: var(--ink);
  font-size: 15px;
}

.exam-timer {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--jade);
  letter-spacing: 0.04em;
  background: #eef4f0;
  padding: 6px 14px;
  border-radius: 10px;
}

.exam-timer.warn {
  color: var(--red);
  background: #fdf2ef;
}

.sheet {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin: 6px 0 16px;
}

.sheet button {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  font-size: 11.5px;
  color: #5b6a63;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
}

.sheet button:hover {
  border-color: #b9c8be;
}

.sheet button.answered {
  background: #e8f0ea;
  border-color: #c9d9ce;
  color: var(--jade);
}

.sheet button.current {
  border-color: var(--jade);
  box-shadow: 0 0 0 2px rgba(47, 85, 68, 0.14);
  font-weight: 700;
}

.sheet-tip {
  font-size: 10.5px;
  color: #a9b2ac;
  line-height: 1.6;
  margin: 10px 0 0;
}

/* ------------------------------------------------------------------ */
/* 结果                                                                */
/* ------------------------------------------------------------------ */

.result-card {
  padding: 34px 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.ring {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: conic-gradient(var(--jade-2) calc(var(--p) * 1%), #ebe5d7 0);
  padding: 10px;
}

.ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--panel);
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 38px;
}

.ring-inner b {
  font-family: Georgia, var(--serif);
  font-size: 44px;
  color: var(--jade);
  line-height: 1;
}

.ring-inner span {
  font-size: 11px;
  color: var(--muted);
  margin-left: 3px;
}

.result-card h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 6px;
}

.result-card > p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 22px;
}

.result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.review {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.review h3 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 8px 0;
}

.review-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}

.review-item summary {
  padding: 14px 16px;
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.65;
  display: flex;
  gap: 8px;
  list-style: none;
}

.review-item summary::-webkit-details-marker {
  display: none;
}

.review-item summary span {
  flex: none;
  font-size: 10.5px;
  color: var(--red);
  margin-top: 2px;
}

.review-body {
  padding: 0 16px 16px;
  font-size: 12px;
  line-height: 1.85;
  color: #5b6a63;
  border-top: 1px dashed var(--line-2);
}

.review-body p {
  margin: 8px 0 0;
}

.review-body .right {
  color: var(--jade);
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* 错题本                                                              */
/* ------------------------------------------------------------------ */

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0 20px;
}

.page-head h1 {
  font-family: var(--serif);
  font-size: 30px;
  margin: 0;
  line-height: 1.25;
}

.page-head p {
  font-size: 11.5px;
  color: var(--muted);
  margin: 5px 0 0;
  max-width: 760px;
  line-height: 1.75;
}

.wrong-group {
  margin-bottom: 24px;
}

.wrong-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wrong-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--serif);
  font-size: 14px;
}

.wrong-group-title h2 {
  font-size: 16px;
  margin: 0;
}

.wrong-group-title .count {
  font-size: 11px;
  color: var(--muted);
}

.wrong-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  margin-bottom: 8px;
  overflow: hidden;
}

.wrong-item summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.65;
  list-style: none;
}

.wrong-item summary::-webkit-details-marker {
  display: none;
}

.wrong-chapter {
  flex: none;
  font-size: 10px;
  background: #f3eee2;
  color: #6a7a72;
  padding: 2px 8px;
  border-radius: 5px;
  margin-top: 2px;
}

.wrong-stem {
  flex: 1;
}

.wrong-arrow {
  flex: none;
  font-size: 10px;
  color: #a9b2ac;
}

.wrong-body {
  padding: 0 16px 16px;
  border-top: 1px dashed var(--line-2);
  font-size: 12.5px;
  line-height: 1.85;
  color: #5b6a63;
}

.answer-line {
  margin: 12px 0 6px;
  color: var(--jade);
}

.answer-line b {
  font-weight: 600;
}

.explain-text {
  margin: 0 0 10px;
}

.wrong-body .source-line {
  margin: 0 0 12px !important;
}

/* ------------------------------------------------------------------ */
/* 练习记录                                                            */
/* ------------------------------------------------------------------ */

.history-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.history-row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.7fr 0.6fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
}

.history-row:last-child {
  border-bottom: none;
}

.history-row.head {
  background: #faf7ef;
  font-size: 11px;
  color: var(--muted);
}

.history-sec {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.score-pill {
  justify-self: start;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #e8f0ea;
  color: var(--jade);
}

.history-time {
  text-align: right;
  font-size: 11px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* 法规页                                                              */
/* ------------------------------------------------------------------ */

.law-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 14px;
}

.law-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.law-card h2 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 4px;
}

.law-card .meta {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.scope-chip {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f3eee2;
  color: #6a7a72;
}

.law-points {
  margin: 14px 0 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 2;
  color: #5b6a63;
}

.law-update {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f1f6f2;
  border-left: 3px solid var(--jade-2);
}

.law-update h3 {
  font-family: var(--serif);
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--jade);
}

.law-update p {
  font-size: 11.5px;
  line-height: 1.85;
  color: #5b6a63;
  margin: 0;
}

code {
  background: #e9e4d6;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11.5px;
  color: var(--jade);
}

/* ------------------------------------------------------------------ */
/* 空状态 / 弹窗 / 提示                                                */
/* ------------------------------------------------------------------ */

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.empty b {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 6px;
}

.empty .btn {
  margin-top: 16px;
}

.empty.small {
  padding: 34px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 16px;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 27, 0.46);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
}

.modal {
  width: 100%;
  max-width: 360px;
  background: var(--panel);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(20, 32, 27, 0.24);
}

.modal h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 8px;
}

.modal p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.report-modal {
  max-width: 420px;
}

.report-stem {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: #f7f3e8;
  border-radius: 8px;
  padding: 10px 12px;
  color: #5c5548 !important;
  margin-bottom: 14px !important;
}

.report-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.report-reasons .btn {
  justify-content: center;
}

.report-tip {
  font-size: 10.5px !important;
  color: #a9b2ac !important;
  margin: 12px 0 0 !important;
  line-height: 1.6 !important;
}

.report-btn {
  margin-top: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(31, 43, 39, 0.94);
  color: #fff;
  font-size: 12.5px;
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 110;
  opacity: 0;
  animation: toast-in 0.22s ease forwards;
  white-space: nowrap;
  pointer-events: none;
}

.toast.out {
  animation: toast-out 0.25s ease forwards;
}

@keyframes toast-in {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
}

/* ------------------------------------------------------------------ */
/* 响应式                                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 1180px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .law-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .side-col {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .main {
    margin-left: 0;
    padding: 16px 16px 88px;
  }

  .mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
  }

  .year-chip {
    font-size: 10px;
    color: #a86f28;
    background: #fdf0dd;
    border: 1px solid #f0dcbd;
    padding: 3px 9px;
    border-radius: 999px;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 253, 248, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    z-index: 30;
  }

  .mobile-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 5px 0;
    font-size: 10px;
    color: #8a978f;
  }

  .mobile-nav a.active {
    color: var(--jade);
    font-weight: 600;
  }

  .m-ico {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #f1eee5;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: #5b6a63;
  }

  .mobile-nav a.active .m-ico {
    background: var(--jade);
    color: #fff;
  }

  body[data-view="practice"] .mobile-nav {
    display: none;
  }

  .hero {
    padding: 26px 22px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-year {
    display: none;
  }

  .hero-sub {
    font-size: 12.5px;
    margin-bottom: 20px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel {
    padding: 18px;
  }

  .panel-head {
    align-items: flex-start;
  }

  .panel-note {
    font-size: 10.5px;
    text-align: right;
  }

  .practice-head {
    gap: 12px;
  }

  .practice-title {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
  }

  .practice-title-text {
    flex: 1;
    min-width: 0;
  }

  .back-link {
    order: 1;
  }

  .mode-switch {
    order: 2;
    margin-left: auto;
  }

  .practice-title h1 {
    font-size: 22px;
  }

  .side-col {
    grid-template-columns: 1fr;
  }

  .q-card {
    padding: 20px;
  }

  .practice-main {
    padding-bottom: 40px;
  }

  .page-head {
    align-items: flex-start;
  }

  .page-head h1 {
    font-size: 26px;
  }
}

@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .law-grid {
    grid-template-columns: 1fr;
  }

  .sec-card {
    min-height: 148px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-actions {
    gap: 9px;
  }

  .hero-actions .btn {
    height: 40px;
    padding: 0 18px;
    font-size: 12px;
  }

  .q-stem {
    font-size: 18px;
    line-height: 1.75;
  }

  .option {
    font-size: 13px;
    padding: 13px 14px;
  }

  .q-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .q-actions .btn {
    width: 100%;
  }

  .kbd-tip {
    text-align: center;
  }

  .exam-intro {
    padding: 22px;
  }

  .history-row {
    grid-template-columns: 1fr auto;
    row-gap: 6px;
    padding: 12px 14px;
  }

  .history-row.head {
    display: none;
  }

  .history-time {
    grid-column: 1 / -1;
    text-align: left;
    font-size: 10.5px;
  }
}

/* ------------------------------------------------------------------ */
/* 首页简介 / SEO 页脚                                                  */
/* ------------------------------------------------------------------ */

.intro-panel {
  margin-top: 18px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.intro-block {
  background: #f7f3e8;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.intro-block h3 {
  font-family: var(--serif);
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--ink);
}

.intro-block p {
  font-size: 12px;
  line-height: 1.95;
  color: var(--muted);
  margin: 0 0 8px;
}

.intro-block p:last-child {
  margin-bottom: 0;
}

.site-foot {
  margin-top: 22px;
  padding: 20px 4px 32px;
  border-top: 1px solid var(--line);
  color: #8a9690;
  font-size: 11px;
  line-height: 1.8;
}

.foot-main {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.foot-brand b {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}

.foot-brand p {
  margin: 6px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 11.5px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.foot-links a {
  color: var(--jade);
  text-decoration: none;
}

.foot-copy {
  color: #8a9690;
  margin: 6px 0;
}

.foot-copy a {
  color: inherit;
  text-decoration: none;
}

.foot-note {
  color: #a9b2ac;
  margin: 4px 0 0;
}

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ */
/* 简介字号加大 + 页脚官方蓝色模式                                      */
/* ------------------------------------------------------------------ */

.intro-block h3 {
  font-size: 18px;
}

.intro-block p {
  font-size: 14.5px;
  line-height: 2;
}

.site-foot {
  margin-top: 26px;
  padding: 0 0 30px;
  border-top: none;
  color: #fff;
  font-size: 12px;
}

.foot-blue {
  background: linear-gradient(180deg, #4b2a8f 0%, #2c6fd1 26%, #54a4ee 100%);
  border-radius: 18px;
  padding: 26px 18px 22px;
  text-align: center;
  color: #fff;
}

.foot-product {
  margin: 0 0 8px;
  font-size: 13px;
  color: #fff;
}

.foot-blue .foot-copy {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.94);
}

.foot-blue .foot-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

.foot-blue .foot-links a {
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  opacity: 0.94;
}

.foot-blue .foot-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.foot-icp,
.foot-ga {
  margin: 4px 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.92);
}

.foot-icp a {
  color: #fff;
  text-decoration: none;
}

.foot-blue .foot-note {
  margin: 10px 0 0;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.75);
}

.foot-legal {
  margin: 14px 8px 0;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.8;
  color: #8a9690;
}

.foot-legal .foot-icp,
.foot-legal .foot-note {
  margin: 4px 0 0;
  font-size: 10.5px;
  color: #8a9690;
}

.foot-legal .foot-icp a {
  color: var(--jade);
  text-decoration: none;
}

.foot-legal .foot-icp a:hover {
  text-decoration: underline;
}

.foot-legal .foot-note {
  color: #a9b2ac;
}

@media (max-width: 900px) {
  .intro-block h3 {
    font-size: 17px;
  }

  .intro-block p {
    font-size: 13.8px;
    line-height: 1.95;
  }
}

/* ------------------------------------------------------------------ */
/* 解析按钮与 AI 答疑弹窗                                              */
/* ------------------------------------------------------------------ */

.explain-btn {
  background: var(--jade);
  color: #fff;
  border: 1px solid var(--jade);
  margin-top: 8px;
  margin-right: 8px;
}

.explain-btn:hover {
  background: #2f5544;
}

.explain-modal {
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
}

.explain-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.explain-head h3 {
  margin: 0;
}

.explain-close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #9aa8a1;
  cursor: pointer;
}

.explain-answer {
  background: #eef6f1;
  border: 1px solid #cfe3d7;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #2f5544;
  margin: 10px 0;
  line-height: 1.8;
}

.explain-mine {
  display: block;
  font-size: 12px;
  color: #a84a32;
  margin-top: 4px;
}

.explain-built {
  background: #f7f3e8;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.explain-built p {
  margin: 0 0 6px;
  font-size: 12.5px;
  line-height: 1.9;
  color: #4e5f57;
}

.explain-built p:last-child {
  margin-bottom: 0;
}

.explain-ask-title {
  font-size: 12px;
  color: #7b8a82;
  margin: 0 0 8px;
}

.explain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.explain-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: #4e5f57;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11.5px;
  cursor: pointer;
}

.explain-chip:hover {
  border-color: var(--jade-2);
  color: var(--jade);
}

.explain-chat {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.chat-bubble {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--jade);
  color: #fff;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: #f2ede0;
  color: #3c4a43;
}

.chat-bubble.loading {
  color: #8a9690;
}

.chat-bubble.error {
  background: #fbece8;
  color: #a84a32;
}

.explain-input {
  display: flex;
  gap: 8px;
}

.explain-input input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--ink);
  outline: none;
}

.explain-input input:focus {
  border-color: var(--jade-2);
}

.explain-note {
  font-size: 10.5px;
  color: #a9b2ac;
  line-height: 1.7;
  margin: 10px 0 0;
}

/* ================================================================== */
/* 客观题练习台 · 增量样式                                             */
/* ================================================================== */

/* 板块主题色：12 个考试板块 */
.theme-xingce {
  background: linear-gradient(140deg, #6f8f6a, #35543f);
}

.theme-zhice {
  background: linear-gradient(140deg, #6f8399, #3c5266);
}

.theme-cet {
  background: linear-gradient(140deg, #b0895f, #7a5530);
}

.theme-fakao {
  background: linear-gradient(140deg, #a87363, #6e3e34);
}

.theme-jingjishi {
  background: linear-gradient(140deg, #9a8f5c, #5f5630);
}

.theme-zhengquan {
  background: linear-gradient(140deg, #5f8fa8, #2f5f74);
}

.theme-jijin {
  background: linear-gradient(140deg, #7f7fa8, #4a4a74);
}

.theme-yinhang {
  background: linear-gradient(140deg, #6f8fa8, #35596e);
}

.theme-qihuo {
  background: linear-gradient(140deg, #a87f5f, #744f30);
}

.theme-ncre {
  background: linear-gradient(140deg, #6f9a8f, #355f54);
}

.theme-junwen {
  background: linear-gradient(140deg, #8f7a5f, #5f4a30);
}

.theme-pets {
  background: linear-gradient(140deg, #9a7f8f, #5f3f50);
}

/* 卡片上的排名与纯度标签 */
.sec-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-family: Georgia, var(--serif);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.purity-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  white-space: nowrap;
}

.purity-tag.pure {
  border-color: rgba(227, 198, 142, 0.46);
  background: rgba(227, 198, 142, 0.2);
  color: #f5e6c8;
}

.purity-tag.single {
  border-color: rgba(173, 205, 255, 0.4);
  background: rgba(173, 205, 255, 0.16);
  color: #dcebff;
}

.purity-tag.part {
  border-color: rgba(255, 209, 148, 0.42);
  background: rgba(255, 209, 148, 0.16);
  color: #ffe6c2;
}

.purity-tag.ref {
  border-color: rgba(220, 214, 202, 0.36);
  background: rgba(220, 214, 202, 0.14);
  color: #e9e4d9;
}

/* 浅色背景上的纯度标签 */
.purity-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #cfe0d5;
  background: #eef4f0;
  color: #2f5544;
  font-size: 11px;
  white-space: nowrap;
}

.purity-pill.single {
  border-color: #cfdcf0;
  background: #eef3fb;
  color: #3c5a7a;
}

.purity-pill.part {
  border-color: #ecd7b4;
  background: #fdf3e2;
  color: #96601f;
}

.purity-pill.ref {
  border-color: #ddd6c8;
  background: #f2f0ea;
  color: #6a7a72;
}

.exam-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 板块详情 */
.detail-note {
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
  margin: 0;
}

.note-box {
  margin-top: 14px;
  padding: 13px 15px;
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: #f7f3e8;
}

.note-box b {
  display: block;
  font-size: 11px;
  color: #8a7a55;
  margin-bottom: 4px;
}

.note-box p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: #5c5548;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.chapter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  text-align: left;
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
}

.chapter-btn:hover {
  border-color: #b9c8be;
  background: #fbfdfa;
  transform: translateY(-1px);
}

.chapter-btn span {
  font-size: 10.5px;
  color: var(--muted);
  flex: none;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* 全选择题口径表 */
.purity-table {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}

.purity-row {
  display: grid;
  grid-template-columns: 44px minmax(190px, 1.25fr) minmax(180px, 1fr) minmax(220px, 1.25fr);
  gap: 14px;
  align-items: start;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
  line-height: 1.75;
}

.purity-row:last-child {
  border-bottom: none;
}

.purity-row.head {
  background: #faf7ef;
  color: var(--muted);
  font-size: 11px;
}

.purity-row p {
  margin: 0;
  color: var(--muted);
}

.purity-row b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.purity-row .purity-pill {
  margin-top: 6px;
}

.purity-rank {
  font-family: Georgia, var(--serif);
  font-size: 12px;
  color: #a9b2ac;
  padding-top: 2px;
}

/* 结果页与答题卡补充 */
.review-item summary span.ok {
  color: #2f7a4a;
}

.review-item summary span.bad {
  color: var(--red);
}

body[data-view="mock"] .mobile-nav {
  display: none;
}

body[data-view="mock"] .mobile-head {
  display: none;
}

.sheet button.jump {
  font-weight: 700;
}

/* 首页 SEO 回退（无 JS 时可见） */
.seo-fallback {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 22px;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2b27;
  line-height: 1.9;
}

.seo-fallback h1 {
  font-size: 28px;
  margin: 0 0 12px;
}

.seo-fallback h2 {
  font-size: 18px;
  margin: 24px 0 8px;
}

.seo-fallback p {
  font-size: 14px;
  color: #4e5f57;
  margin: 0 0 10px;
}

.seo-fallback a {
  color: #2f6f63;
}

.seo-fallback .seo-links {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e6ddc9;
  font-size: 13px;
}

@media (max-width: 900px) {
  .purity-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .purity-row p {
    grid-column: 2;
  }

  .purity-row.head {
    display: none;
  }

  .purity-row .purity-pill {
    justify-self: start;
  }
}

/* ------------------------------------------------------------------ */
/* 考试规格                                                            */
/* ------------------------------------------------------------------ */

.sec-spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 2px;
  padding: 7px 9px;
  border: 1px solid rgba(47, 85, 68, 0.1);
  border-radius: 8px;
  background: rgba(47, 85, 68, 0.045);
}

.sec-spec span {
  font-size: 9.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.sec-spec em {
  flex: none;
  font-style: normal;
  font-size: 9px;
  line-height: 1.5;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fdf2ef;
  color: #8a4a3b;
  white-space: nowrap;
}

.sec-spec em.off {
  background: #eef4ef;
  color: #5d7568;
}

.spec-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.spec-scroll-hint {
  display: none;
  margin: 0 0 8px;
  font-size: 10px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .spec-scroll-hint {
    display: block;
  }
}

.spec-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 11px;
}

.spec-table th {
  padding: 9px 11px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  color: #6b776f;
  background: #f3efe4;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.spec-table td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  line-height: 1.6;
  vertical-align: top;
}

.spec-table tbody tr:last-child td {
  border-bottom: none;
}

.spec-table td b {
  display: block;
  font-size: 11.5px;
  color: var(--ink);
}

.spec-table td span {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--muted);
}

.spec-table.compact {
  min-width: 0;
  border: none;
}

.spec-table.compact th,
.spec-table.compact td {
  padding: 7px 9px;
  font-size: 10.5px;
}

.spec-detail .spec-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.spec-fact {
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #faf7ef;
}

.spec-fact span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
}

.spec-fact b {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--ink-2);
  word-break: break-word;
}

.spec-group {
  margin-top: 12px;
}

.spec-group-head {
  margin-bottom: 6px;
}

.spec-group-head b {
  font-size: 11px;
  color: var(--jade);
}

.spec-meta {
  margin: 11px 0 0;
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--muted);
}

.spec-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 13px;
  margin-top: 7px;
}

.spec-links a,
.spec-links span {
  font-size: 9.5px;
  line-height: 1.75;
  color: var(--jade);
}

.spec-links span {
  color: var(--muted);
}

.spec-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.spec-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
}

.spec-item summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.spec-item summary::-webkit-details-marker {
  display: none;
}

.spec-item[open] summary {
  background: #faf7ef;
  border-bottom: 1px solid var(--line);
}

.spec-num {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(47, 85, 68, 0.08);
  color: var(--jade);
  font-size: 10px;
}

.spec-title {
  min-width: 128px;
}

.spec-title b {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
}

.spec-title small {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  color: var(--muted);
}

.spec-q {
  flex: 1;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.spec-tag {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef4ef;
  color: #46624f;
  font-size: 9px;
  line-height: 1.5;
  white-space: nowrap;
}

.spec-tag.on {
  background: #fdf2ef;
  color: #8a4a3b;
}

.spec-tag.off {
  background: #eef4ef;
  color: #5d7568;
}

.spec-body {
  padding: 16px;
}

.spec-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}

.spec-cols h4 {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.spec-list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spec-list-plain li {
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 10px;
  line-height: 1.7;
}

.spec-list-plain li b {
  flex: none;
  min-width: 64px;
  font-weight: 600;
  color: var(--ink);
}

.spec-list-plain li span {
  color: var(--muted);
}

@media (max-width: 700px) {
  .spec-detail .spec-facts {
    grid-template-columns: 1fr;
  }

  .spec-cols {
    grid-template-columns: 1fr;
  }

  .spec-item summary {
    flex-wrap: wrap;
    gap: 8px;
  }

  .spec-title {
    flex: 1;
    min-width: 0;
  }

  .spec-q {
    flex-basis: 100%;
    order: 5;
  }

  .spec-tag {
    order: 4;
  }
}

