/* ===========================================================
   高中复习 · 全站样式（无外部依赖，纯手写）
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --text: #151a21;
  --text-2: #5a6472;
  --text-3: #8e97a4;
  --line: #e6e9ee;
  --line-2: #eff1f5;
  --accent: #2563eb;
  --accent-soft: #eff5ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 14px 30px -18px rgba(16, 24, 40, .22);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 16px; }

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

.hero {
  padding: 34px 0 22px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 0;
}
.hero h1 { font-size: 26px; letter-spacing: -.02em; }
.hero .sub { margin-top: 7px; color: var(--text-2); font-size: 13.5px; }

.subjects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 4px 0 56px;
}

.subject-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  overflow: hidden;
}
.subject-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}
.subject-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.subject-card:active { transform: translateY(0); }

.sc-badge {
  flex: none;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
}

.sc-main { flex: 1 1 auto; min-width: 0; }
.sc-main h2 { font-size: 18px; }
.sc-main .sc-desc {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-3);
  overflow-wrap: break-word;
}

.sc-right { flex: none; text-align: right; }
.sc-count { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-bar {
  margin-top: 7px;
  width: 58px; height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.sc-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* 首页：真题精练车道（无精练页时整块不渲染） */
body.has-quiz .subjects { padding-bottom: 26px; }

#quizLane { margin: 0 0 56px; }
#quizLane:empty { display: none; }
.lane-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 11px; }
.lane-head h2 { font-size: 16px; }
.lane-sub { font-size: 12px; color: var(--text-3); }
.lane-list { display: flex; flex-wrap: wrap; gap: 8px; }
.lane-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.lane-item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.lane-badge {
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}
.lane-main { display: flex; align-items: baseline; gap: 8px; }
.lane-main b { font-weight: 600; font-size: 14px; }
.lane-main i { font-style: normal; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lane-go { flex: none; color: var(--text-3); font-size: 14px; }

/* ---------- 科目页头部 ---------- */

.subj-head {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--line);
}
.back {
  display: inline-block;
  font-size: 13.5px;
  color: var(--text-2);
  padding: 2px 0;
}
.back:hover { color: var(--accent); }

.sh-row { display: flex; align-items: center; gap: 13px; margin-top: 10px; }
.sh-info { min-width: 0; }
.sh-badge {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}
.sh-row h1 { font-size: 22px; }
.sh-row .sh-meta { font-size: 12.5px; color: var(--text-2); margin-top: 1px; }

.sh-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
}
.sh-bar {
  flex: 1 1 auto;
  height: 5px;
  border-radius: 5px;
  background: #e4e8ee;
  overflow: hidden;
}
.sh-bar i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--accent);
  transition: width .35s ease;
}
.sh-pct {
  flex: none;
  font-size: 11.5px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.search-wrap { position: relative; margin-top: 13px; }
.search-wrap input {
  width: 100%;
  padding: 11px 14px 11px 36px;
  font: inherit;
  font-size: 16px;   /* 低于 16px 时 iOS 会在聚焦时自动放大页面 */
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-wrap input::placeholder { color: var(--text-3); }
.search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-wrap .icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 14px;
  pointer-events: none;
}

/* ---------- 特别知识点 ---------- */

.extras {
  margin: 18px 0 6px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.extras h2 {
  font-size: 14px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.extras h2 .n {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 7px;
  border-radius: 20px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.chip {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: .15s;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover, .chip:active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip.is-done { color: var(--text-3); text-decoration: line-through; }

/* ---------- 册 / 章 / 节 ---------- */

.book {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.book > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  user-select: none;
}
.book > summary::-webkit-details-marker { display: none; }
.book > summary:hover { background: var(--surface-2); }
.bk-title { font-size: 15.5px; font-weight: 600; flex: 1 1 auto; }
.bk-count { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.bk-arrow {
  flex: none;
  width: 18px; text-align: center;
  color: var(--text-3);
  transition: transform .18s ease;
}
.book[open] > summary .bk-arrow { transform: rotate(90deg); }
.book[open] > summary { border-bottom: 1px solid var(--line); }

.book-body { padding: 4px 0 8px; }

.chapter { padding: 6px 0 2px; }
.chapter + .chapter { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 10px; }
.ch-head {
  padding: 8px 16px 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ch-head .ch-n { color: var(--text-3); font-weight: 500; font-size: 12px; }

.item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 15px;
  line-height: 1.5;
  border-left: 2px solid transparent;
  transition: background .13s ease, border-color .13s ease;
  -webkit-tap-highlight-color: transparent;
}
.it-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 16px;
  color: inherit;
}
.item:hover, .item:active { background: var(--accent-soft); border-left-color: var(--accent); }
.item .it-label {
  flex: none;
  min-width: 42px;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.item .it-title { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.item .it-go { flex: none; color: var(--text-3); font-size: 15px; opacity: 0; transition: opacity .13s; }
.item:hover .it-go { opacity: 1; }
/* 触屏设备没有 hover，箭头常显 */
@media (hover: none) {
  .item .it-go { opacity: .5; }
}

.item--research .it-label {
  color: #b45309;
  background: #fff8eb;
  border-radius: 5px;
  text-align: center;
  padding: 1px 6px;
  min-width: 0;
}
.item--research .it-title { color: var(--text-2); font-size: 14px; }

.item.is-done .it-title { color: var(--text-3); }
.item.is-done .it-title::after {
  content: " ✓";
  color: #16a34a;
  font-size: 12px;
}

/* ---------- 真题精练：条目上的入口 + 车道切换 ---------- */

.it-quiz {
  flex: none;
  margin-right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  transition: background .14s ease, color .14s ease;
}
.it-quiz:hover { background: var(--accent); color: #fff; }
.it-quiz b { font-weight: 700; font-variant-numeric: tabular-nums; }

.seg {
  display: none;
  gap: 4px;
  max-width: 420px;
  margin-top: 13px;
  padding: 3px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.seg-btn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  transition: background .14s ease, color .14s ease;
}
.seg-btn:hover { color: var(--accent); }
.seg-btn.on {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(16, 24, 40, .18);
}
.seg-n {
  min-width: 17px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.seg-btn.on .seg-n { background: rgba(255, 255, 255, .24); color: #fff; }

/* 精练车道：只留有真题的册 / 章 / 节，条目整行指向精练页。
   这条规则要压过 body.is-searching 的显示规则，所以放在文件末尾。 */
body.mode-quiz .it-quiz { display: none; }

.search-empty {
  display: none;
  padding: 40px 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}
body.is-searching .search-empty { display: block; }
body.is-searching .book { display: none; }
body.is-searching .book.has-hit { display: block; }
body.is-searching .chapter { display: none; }
body.is-searching .chapter.has-hit { display: block; }

.site-foot {
  padding: 28px 0 calc(40px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}

/* ---------- 内容页 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  gap: 12px;
}
.topbar .back { font-size: 15px; color: var(--text-2); padding: 8px 4px 8px 0; }
.topbar .back:hover { color: var(--accent); }

.done-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px 9px 11px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  transition: .15s;
  -webkit-tap-highlight-color: transparent;
}
.done-btn:hover { border-color: var(--accent); color: var(--accent); }
.done-box {
  width: 14px; height: 14px;
  border: 1.5px solid var(--text-3);
  border-radius: 4px;
  display: grid; place-items: center;
  font-size: 10px;
  line-height: 1;
  color: transparent;
}
.done-btn.is-on { color: #16a34a; border-color: #86efac; background: #f0fdf4; }
.done-btn.is-on .done-box {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.done-btn.is-on .done-box::after { content: "✓"; }
.done-btn.is-on .done-txt::after { content: ""; }

.page-wrap { padding-top: 18px; padding-bottom: 60px; }

.crumbs {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.9;
}
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 5px; color: var(--line); }
.crumbs .cur { color: var(--text-2); }

.page-title {
  margin-top: 10px;
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -.01em;
  overflow-wrap: break-word;
}
.page-meta { margin-top: 6px; font-size: 12px; color: var(--text-3); line-height: 1.6; }

.content {
  margin-top: 18px;
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-height: 160px;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: break-word;
}
.content > *:first-child { margin-top: 0; }
.content > *:last-child { margin-bottom: 0; }

.content h2 {
  margin: 26px 0 10px;
  padding-left: 11px;
  font-size: 17.5px;
  border-left: 3px solid var(--accent);
  line-height: 1.45;
}
.content h3 { margin: 20px 0 8px; font-size: 16.5px; }
.content h4 { margin: 16px 0 7px; font-size: 15.5px; color: var(--text-2); }
.content p { margin: 11px 0; }
.content ul, .content ol { margin: 11px 0; padding-left: 22px; }
.content li { margin: 5px 0; }
.content li::marker { color: var(--text-3); }
.content strong { font-weight: 600; }
.content em { font-style: normal; color: var(--accent); }
.content hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.content blockquote {
  margin: 14px 0;
  padding: 10px 14px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14.5px;
}
.content blockquote p { margin: 4px 0; }
.content code {
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: .9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.content pre {
  margin: 14px 0;
  padding: 14px;
  overflow-x: auto;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.6;
}
.content pre code { padding: 0; background: none; border: 0; }
.content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.content table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 14px;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}
.content th, .content td {
  padding: 8px 12px;
  border: 1px solid var(--line);
  text-align: left;
}
.content th { background: var(--surface-2); font-weight: 600; }

.empty {
  text-align: center;
  padding: 34px 10px 26px;
  color: var(--text-3);
}
.empty .em-icon { font-size: 26px; opacity: .55; }
.empty .em-title { margin-top: 10px; font-size: 14.5px; color: var(--text-2); }
.empty .em-tip {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-3);
}
.empty code {
  padding: 1px 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
}

.pager {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
}
.pager-link {
  display: block;
  padding: 12px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: .15s;
  min-width: 0;
}
.pager-link:hover { border-color: var(--accent); background: var(--accent-soft); }
.pager-link small { display: block; font-size: 11.5px; color: var(--text-3); }
.pager-link b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  overflow: hidden;
}
.pager-link.next { text-align: right; }
.pager-link.is-empty { visibility: hidden; }

/* ---------- 内容页：去刷题入口 ---------- */

.quiz-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 2px;
  padding: 13px 15px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.quiz-cta:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.qc-tag {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.qc-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.qc-main b { font-size: 15px; font-weight: 600; line-height: 1.4; }
.qc-main i { font-style: normal; font-size: 12px; color: var(--text-2); line-height: 1.5; }
.qc-go { flex: none; font-size: 13.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }

@media screen and (max-width: 374px) {
  .qc-main i { display: none; }
}
@media print {
  .quiz-cta { display: none; }
}

/* ---------- 桌面端 ---------- */

@media (min-width: 700px) {
  .wrap { padding: 0 24px; }
  .hero { padding: 60px 0 34px; }
  .hero h1 { font-size: 36px; }
  .hero .sub { font-size: 14.5px; margin-top: 8px; }
  .subjects { grid-template-columns: 1fr 1fr; gap: 14px; }
  .subject-card { padding: 20px 20px 20px 22px; }
  .sc-badge { width: 52px; height: 52px; font-size: 24px; }
  .sc-bar { width: 90px; }
  .search-wrap input { font-size: 14px; padding: 10px 14px 10px 36px; }
  .item { font-size: 14.5px; }
  .it-main { padding: 9px 16px; }
  .chip { padding: 6px 12px; font-size: 13.5px; }
  .page-title { font-size: 30px; }
  .page-meta { font-size: 12.5px; }
  .content { padding: 30px 34px; font-size: 15.5px; line-height: 1.85; }
  .content h2 { font-size: 19px; margin: 30px 0 12px; }
  .content h3 { font-size: 16.5px; margin: 22px 0 9px; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager-link.is-empty:first-child { display: none; }
  .pager-link b {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

/* ---------- 超窄屏（iPhone SE 一类） ---------- */

@media screen and (max-width: 374px) {
  .wrap { padding: 0 12px; }
  .hero h1 { font-size: 23px; }
  .sc-badge { width: 40px; height: 40px; font-size: 18px; border-radius: 11px; }
  .sc-bar { width: 56px; }
  .page-title { font-size: 19px; }
  .content { padding: 18px 14px; }
  .item { font-size: 14.5px; }
  .it-main { padding: 11px 12px; }
  .it-quiz { margin-right: 8px; font-size: 11px; padding: 4px 7px; }
  .item .it-label { min-width: 0; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- 讲义页：桌面端图放大 ----------
   旧版 geo 页把放大样式写在页内，且只在手机显示「点击放大」；这里用更高
   优先级覆盖，让桌面也能看到入口并把放大浮层铺到大屏宽度。 */
@media (min-width: 761px) {
  .gx .gx-zoomchip { display: inline-block; }
  .gx .gx-zoom { padding: 64px 24px 40px; }
  .gx .gx-zoom svg { width: 92vw; max-width: 1440px; }
  .gx .gx-zoom-tip { top: 24px; left: 24px; }
}

/* ---------- 旧版地理页：自动演示徽标 ----------
   旧 geo 页没有加载 gx.css，这里补一份同样式的徽标。 */
.gx .gx-ap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f4f7f9;
  color: #3a424e;
  letter-spacing: .02em;
  white-space: nowrap;
}
.gx .gx-ap i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
  display: block;
  flex: none;
}
.gx .gx-ap.is-auto {
  background: var(--blue-soft);
  border-color: var(--blue-line);
  color: #0b6580;
}
.gx .gx-ap.is-auto i {
  background: var(--blue);
  animation: gxApPulseLegacy 1.7s ease-in-out infinite;
}
.gx .gx-ap.is-manual {
  background: var(--amber-soft);
  border-color: var(--amber-line);
  color: #8a5c14;
}
.gx .gx-ap.is-manual i { background: var(--amber); }
@keyframes gxApPulseLegacy {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .gx .gx-ap.is-auto i { animation: none; }
}

/* ---------- 真题精练车道：隐藏没有真题的条目 ----------
   放在最后，用来压过上面 body.is-searching 的 .has-hit 显示规则。 */
body.mode-quiz .book:not(.has-quiz),
body.mode-quiz .chapter:not(.has-quiz),
body.mode-quiz .item:not(.has-quiz),
body.mode-quiz .chip:not(.has-quiz),
body.mode-quiz .extras:not(.has-quiz) { display: none; }
