/* ============================================
   雅思听力 9 分计划 — 全站样式
   ============================================ */
:root {
  --accent: #c8102e;          /* IELTS 红 */
  --accent-dark: #9e0c24;
  --accent-light: #fdeef0;
  --ink: #1f2430;
  --ink-soft: #55607a;
  --ink-faint: #8a93a8;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --line: #e6e9f0;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(31, 36, 48, .06), 0 8px 24px rgba(31, 36, 48, .06);
  --shadow-hover: 0 4px 12px rgba(31, 36, 48, .10), 0 16px 40px rgba(31, 36, 48, .10);
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  /* 12 个模块 + 首页 + 登录按钮共 14 项，比正文容器略宽一点才放得下 */
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.logo-badge {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #e8556d);
  color: #fff; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; letter-spacing: .5px;
}
.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; overflow-x: auto; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  padding: 7px 7px; border-radius: 8px; font-size: 13px; color: var(--ink-soft);
  white-space: nowrap; transition: all .15s ease;
}
.nav-links a:hover { color: var(--accent); background: var(--accent-light); }
.nav-links a.active { color: var(--accent); background: var(--accent-light); font-weight: 600; }

.menu-toggle { display: none; }

/* ---------- Hero（首页） ---------- */
.hero {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(200, 16, 46, .08), transparent 60%),
    radial-gradient(700px 300px at 10% 110%, rgba(59, 91, 219, .07), transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-light); color: var(--accent);
  font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { font-size: 40px; line-height: 1.25; letter-spacing: -.5px; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 17px; color: var(--ink-soft); max-width: 620px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  transition: all .15s ease; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap;
}
.stat-num { font-size: 26px; font-weight: 800; color: var(--ink); }
.stat-num span { color: var(--accent); }
.stat-label { font-size: 13px; color: var(--ink-faint); }

/* ---------- 模块卡片 ---------- */
.section { padding: 64px 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: 26px; letter-spacing: -.3px; }
.section-head p { color: var(--ink-soft); margin-top: 6px; }

.module-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.module-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  transition: all .2s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #f3c2cb; }
.module-card .num {
  position: absolute; top: 20px; right: 22px;
  font-size: 34px; font-weight: 800; color: #eef0f5; line-height: 1;
  font-family: Georgia, serif;
}
.module-card .icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; font-size: 21px;
  background: var(--accent-light);
}
.module-card h3 { font-size: 16.5px; letter-spacing: -.2px; padding-right: 40px; }
.module-card p { font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.module-card .card-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--ink-faint); padding-top: 6px; border-top: 1px dashed var(--line);
}
.module-card .card-foot .go { color: var(--accent); font-weight: 600; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
}
.tag-free { background: #e8f6ee; color: #1e8e4e; }
.tag-core { background: var(--accent-light); color: var(--accent); }

/* ---------- 模块内页布局 ---------- */
.page-hero {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 44px 0 36px;
}
.breadcrumb { font-size: 13px; color: var(--ink-faint); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; }
.page-hero h1 { font-size: 30px; letter-spacing: -.4px; display: flex; align-items: center; gap: 12px; }
.page-hero h1 .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-light);
  display: grid; place-items: center; font-size: 23px; flex-shrink: 0;
}
.page-hero .desc { color: var(--ink-soft); margin-top: 10px; max-width: 640px; }

.page-body { padding: 40px 0 72px; }
/* 侧栏加宽，保证「一、日常生活与社交活动」这类长标题单行完整显示 */
.page-grid { display: grid; grid-template-columns: 268px 1fr; gap: 32px; align-items: stretch; }
/* grid 子项默认 min-width:auto 会被内容最小宽度撑破容器（移动端横向溢出），必须置 0 */
.page-grid > * { min-width: 0; }

/* 侧边目录（滚动时固定在左侧） */
.toc {
  position: sticky; top: 88px;
  max-height: calc(100vh - 112px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px;
}
.toc h4 { font-size: 13px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; }
.toc li a {
  display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-soft);
}
.toc li a:hover { background: var(--accent-light); color: var(--accent); }

/* 内容占位 */
.content-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.content-block h2 {
  font-size: 20px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px;
}
.content-block h2::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--accent); display: inline-block;
}
.content-block .sub { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 16px; }

/* 正文层级列表（还原文档的多级列表排版） */
.content-block ul,
.content-block ol { padding-left: 22px; margin: 6px 0; }
.content-block ul ul,
.content-block ol ol,
.content-block ul ol,
.content-block ol ul { margin: 4px 0; }
.content-block li { margin: 3px 0; line-height: 1.75; }
.content-block li > p { margin: 2px 0; }
.content-block .minor-head {
  font-size: 15px; font-weight: 600; margin: 14px 0 6px; color: var(--ink);
}
.placeholder {
  border: 1.5px dashed #d9deea; border-radius: 10px;
  padding: 28px 20px; text-align: center; color: var(--ink-faint); font-size: 14px;
  background: repeating-linear-gradient(45deg, #fafbfd, #fafbfd 12px, #f6f8fc 12px, #f6f8fc 24px);
}
.placeholder strong { color: var(--ink-soft); }

/* 内容表格（还原文档表格） */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.content-table {
  width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface);
  min-width: 560px;
}
.content-table th {
  background: #fbeef0; color: var(--ink); font-weight: 600; text-align: left;
  padding: 11px 14px; border: 1px solid #f0dde0; white-space: nowrap;
}
.content-table td {
  padding: 11px 14px; border: 1px solid var(--line); vertical-align: top; line-height: 1.65;
}
.content-table tbody tr:nth-child(even) { background: #fafbfd; }
.content-table td ul { padding-left: 18px; list-style: disc; }
.content-table td ul li + li { margin-top: 4px; }
.content-table .center { text-align: center; vertical-align: middle; }
.content-table .band { font-weight: 700; color: var(--accent); text-align: center; }
.content-table .keyword { font-weight: 600; white-space: nowrap; }
/* 文档中合并的单元格为垂直居中，避免跨行单元格出现大片留白 */
.content-table td[rowspan] { vertical-align: middle; }

/* ---------- 文档内嵌媒体（图片 / 音频） ---------- */
.doc-figure { margin: 10px 0; }
.doc-img {
  display: block; width: 100%; max-width: 560px; height: auto;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.doc-audio {
  background: #f6f7fb; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 10px 12px; margin: 10px 0;
}
.doc-audio .cap { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 6px; }
.doc-audio audio { display: block; width: 100%; max-width: 460px; height: 34px; }
/* 文档原题排版（题号/选项的对齐空格原样保留） */
.qline { white-space: pre-wrap; }
.cell-hr { border: none; border-top: 1px dashed var(--line); margin: 10px 0; }

/* ============================================
   模块 3 · 专项训练 140 组
   ============================================ */
/* 左侧索引树 */
.toc-tree li a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink-soft);
}
/* 标题单行完整显示，不折行（配合 268px 侧栏宽度） */
.toc-tree .toc-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc-tree li a:hover { background: var(--accent-light); color: var(--accent); }
.toc-tree li a.cur { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.toc-tree ul { padding-left: 14px; }
.toc-tree .toc-h1 > a { font-weight: 600; color: var(--ink); }
.toc-n {
  font-size: 11px; font-weight: 600; color: var(--ink-faint);
  background: #f1f3f8; border-radius: 999px; padding: 1px 7px; flex-shrink: 0;
}
.toc-tree li a:hover .toc-n, .toc-tree li a.cur .toc-n { background: #fff; color: var(--accent); }

/* 工具条 */
.m3-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.m3-toolbar button {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 8px; cursor: pointer;
  transition: all .15s ease;
}
.m3-toolbar button:hover { border-color: var(--accent); color: var(--accent); }
.m3-tip { font-size: 12.5px; color: var(--ink-faint); }

/* 文档 callout（练习方法建议） */
.doc-callout {
  display: flex; gap: 12px; align-items: flex-start;
  background: #eef8f0; border: 1px solid #bfe3c9; border-left: 4px solid #35a35c;
  border-radius: 10px; padding: 14px 16px;
}
.doc-callout .callout-icon { font-size: 18px; line-height: 1.6; flex-shrink: 0; }
.doc-callout .callout-body { font-size: 14px; line-height: 1.8; color: #23492f; }
.doc-callout .callout-body p { margin: 2px 0; }

/* 大节 / 小节标题 */
.m3-sec > h2 { margin-bottom: 4px; }
.m3-sub {
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin: 26px 0 12px; padding-left: 12px;
  border-left: 4px solid var(--accent);
  scroll-margin-top: 84px;
}
.m3-sec > h2 { scroll-margin-top: 84px; }

/* 训练组卡片（可折叠，还原文档小三角交互） */
.tr-list { display: flex; flex-direction: column; gap: 8px; }
.tr-group {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; transition: border-color .15s ease;
}
.tr-group[open] { border-color: #f0c9d0; box-shadow: var(--shadow); }
.tr-group > summary {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; cursor: pointer; list-style: none;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  background: #fafbfd; user-select: none;
}
.tr-group > summary::-webkit-details-marker { display: none; }
.tr-group > summary:hover { background: var(--accent-light); color: var(--accent); }
.tr-group .tri {
  font-size: 10px; color: var(--ink-faint); flex-shrink: 0;
  transition: transform .18s ease;
}
.tr-group[open] .tri { transform: rotate(90deg); color: var(--accent); }
.tr-group .tname { flex-shrink: 0; }
.tr-group .qtype {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-light); color: var(--accent); flex-shrink: 0;
}
.tr-group .expand-hint {
  margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--ink-faint);
  flex-shrink: 0;
}

/* 组内两栏：音频题目 | 答案 */
.tr-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--line);
}
.tr-col { padding: 14px 16px; min-width: 0; }
.tr-audio { border-right: 1px solid var(--line); }
.col-cap {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  text-transform: none; letter-spacing: .3px; margin-bottom: 10px;
}
.ans-toggle {
  margin-left: auto; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-faint); font-size: 11.5px; padding: 2px 9px; border-radius: 6px;
  cursor: pointer; transition: all .15s ease;
}
.ans-toggle:hover { border-color: var(--accent); color: var(--accent); }
.audio-box { margin-bottom: 10px; }
.audio-box audio { display: block; width: 100%; max-width: 420px; height: 34px; }
.tr-q, .tr-a { font-size: 14px; line-height: 1.75; }
.tr-q p, .tr-a p { margin: 3px 0; }
.tr-q ul, .tr-a ul, .tr-q ol, .tr-a ol { padding-left: 20px; margin: 5px 0; }
.tr-q ul, .tr-a ul { list-style: disc; }
.tr-q ol, .tr-a ol { list-style: decimal; }
.tr-q li, .tr-a li { margin: 2px 0; }
.tr-q .minor-head, .tr-a .minor-head { font-size: 13.5px; font-weight: 600; margin: 10px 0 4px; }
.tr-q .table-wrap, .tr-a .table-wrap { margin: 8px 0; }
.tr-q .content-table, .tr-a .content-table { min-width: 0; font-size: 13px; }
.tr-q .content-table th, .tr-a .content-table th,
.tr-q .content-table td, .tr-a .content-table td { padding: 7px 10px; }
.tr-q .doc-img, .tr-a .doc-img { max-width: 100%; }
.tr-answer.ans-hidden .tr-a { display: none; }

@media (max-width: 760px) {
  .tr-body { grid-template-columns: 1fr; }
  .tr-audio { border-right: none; border-bottom: 1px solid var(--line); }
}

/* 计划列表 */
.plan-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.plan-list li:last-child { border-bottom: none; }
.plan-list .dot {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: var(--accent-light); color: var(--accent);
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.plan-list .muted { color: var(--ink-faint); font-size: 13px; }

/* 上下篇 */
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; }
.pager a {
  flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; transition: all .15s ease; min-width: 0;
}
.pager a:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.pager .dir { font-size: 12px; color: var(--ink-faint); margin-bottom: 4px; }
.pager .title { font-size: 14.5px; font-weight: 600; }
.pager a.next { text-align: right; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 36px 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-faint);
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .page-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 1240px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 7px; font-size: 13px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .module-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 48px; }
  .nav-links a { padding: 7px 9px; font-size: 13px; }
}

/* ---------- 模块4 高频场景词 ---------- */
.m4-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 20px; box-shadow: var(--shadow);
  position: sticky; top: 64px; z-index: 5;
}
.m4-search { flex: 1; min-width: 160px; display: flex; align-items: center; gap: 10px; }
.m4-search input {
  flex: 1; width: 100%; max-width: 420px; padding: 9px 14px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px; outline: none; background: #fff;
}
.m4-search input:focus { border-color: var(--accent); }
.m4-search #m4-count { font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; }
.m4-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.m4-actions button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.m4-actions button:hover { border-color: var(--accent); color: var(--accent); }
.m4-actions button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.m4-tip { font-size: 12.5px; color: var(--ink-faint); }

/* 桌面端不能用 overflow-x:auto —— 那会让表格成为滚动容器，
   导致 thead 的 position:sticky 相对容器而非视口定位（冻结失效）。
   窄屏才启用横向滚动，同时该断点下表头改为 static。 */
.m4-table-wrap { overflow-x: visible; border-radius: 10px; }
.m4-table { min-width: 520px; font-size: 13.5px; }
.m4-table th, .m4-table td { padding: 7px 12px; }
/* 词表表头冻结首行：偏移量由 JS 按工具条实际高度写入 --m4-thead-top */
.m4-table thead th {
  position: sticky; top: var(--m4-thead-top, 128px); z-index: 4;
  box-shadow: inset 0 -1px 0 #f0dde0;
}
/* 目录锚点跳转：偏移量由 JS 按吸顶栏+工具条实际高度写入 --m4-anchor-top，
   保证点击场景后能看到 h2 标题、表头和前几行（与模块3 的 84px 修复同思路） */
.m4-sec { scroll-margin-top: var(--m4-anchor-top, 152px); }
#m4-top { scroll-margin-top: 76px; }
/* 目录「全部」入口 */
.toc-tree li.toc-all { border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 6px; }

/* ---------- 模块5 高频同义替换词 ----------
   页面结构复用模块4 的 .m4-* 类（工具条/词表/弹窗/星标/圆点），
   此处只补本模块特有的列与强调样式。 */
#m5-top { scroll-margin-top: 76px; }
.m4-table.m5-tbl { width: 100%; table-layout: fixed; min-width: 640px; }
.m4-table th.m5-src, .m4-table td.m5-src { white-space: nowrap; color: var(--ink-faint); font-size: 12.5px; }
.m4-table .m5-p1 { font-weight: 600; color: var(--ink); }
.m4-table .m5-p2 { font-weight: 600; color: var(--accent); }
.m4-table td.m5-cn { color: var(--ink-soft); }
.m4-table td.m5-ex, .m4-table td.m5-excn { font-size: 13px; line-height: 1.65; }
.m4-table .m5-ex .hl, .m4-table .m5-excn .hl { color: var(--accent); font-weight: 700; }
.m4-table tr.done .m5-p1, .m4-table tr.done .m5-p2, .m4-table tr.done .m5-cn,
.m4-table tr.done .m5-p3, .m4-table tr.done .m5-src { color: #9aa3af; text-decoration: line-through; }
.m4-table th.idx, .m4-table td.idx { width: 46px; text-align: right; color: var(--ink-faint); font-size: 12.5px; }
.m4-table th.mk, .m4-table td.mk { width: 34px; text-align: center; }
.m4-table th.pos, .m4-table td.pos { width: 72px; white-space: nowrap; color: var(--ink-soft); }
.m4-table th.ph, .m4-table td.ph { width: 168px; color: var(--ink-faint); font-family: Georgia, serif; white-space: nowrap; }
.m4-table td.en-cell { white-space: nowrap; }
.m4-table .none { color: #c3c9d4; }

/* 单词 + 小喇叭（点击整块即发音） */
.m4-table .say {
  display: inline-flex; align-items: center; gap: 5px;
  border: none; background: none; padding: 2px 4px 2px 0; cursor: pointer;
  font-weight: 600; color: var(--ink); font-size: 13.5px; text-align: left;
  border-radius: 6px;
}
.m4-table .say:hover { color: var(--accent); background: var(--accent-light); }
.m4-table .say .spk { font-size: 12.5px; line-height: 1; filter: grayscale(1) opacity(.6); transition: filter .15s, transform .15s; }
.m4-table .say:hover .spk { filter: none; }
.m4-table .say.playing { color: var(--accent); background: var(--accent-light); }
.m4-table .say.playing .spk { filter: none; animation: m4-pulse .7s ease-in-out infinite; }
@keyframes m4-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.28); } }
/* 无音频的词 */
.m4-table .en { font-weight: 600; color: var(--ink); font-size: 13.5px; padding: 2px 4px 2px 0; }

/* 生词本：星标 */
.m4-table .star {
  border: none; background: none; cursor: pointer; padding: 0 2px;
  font-size: 14px; line-height: 1; color: #ccd2de; vertical-align: 1px;
  transition: color .15s, transform .15s;
}
.m4-table .star:hover { color: #f0b429; transform: scale(1.18); }
.m4-table .star.on { color: #f0b429; }
.m4-table tr.starred td { background: #fffaf0; }
.m4-table tr.starred:nth-child(even) td { background: #fdf6e8; }
.m4-table tr.starred .star { color: #f0b429; }

.m4-table .dot {
  width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #cfd5df;
  background: #fff; cursor: pointer; padding: 0; vertical-align: middle;
}
.m4-table .dot:hover { border-color: var(--accent); }
.m4-table tr.done .dot { background: var(--accent); border-color: var(--accent); }
.m4-table tr.done .say, .m4-table tr.done .en { color: #9aa3af; text-decoration: line-through; }
.m4-table tr.done .mk-cell { color: #9aa3af; }

/* ---------- 生词本弹窗 ---------- */
.m4-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 24, 34, .42); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 32px 20px;
}
.m4-modal[hidden] { display: none; }
.m4-modal-box {
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-hover);
  width: min(760px, 100%); max-height: 82vh; display: flex; flex-direction: column; overflow: hidden;
}
.m4-modal-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.m4-modal-head b { font-size: 16px; }
.m4-modal-n { font-size: 12.5px; color: var(--ink-faint); flex: 1; }
.m4-modal-head button {
  border: none; background: none; cursor: pointer; font-size: 17px; color: var(--ink-faint);
  width: 30px; height: 30px; border-radius: 8px; line-height: 1;
}
.m4-modal-head button:hover { background: var(--bg); color: var(--ink); }
.m4-modal-body { overflow-y: auto; padding: 8px 20px 16px; flex: 1; }
.m4-empty { text-align: center; color: var(--ink-faint); font-size: 13.5px; padding: 34px 0; }
.m4-star-sec { margin-top: 14px; }
.m4-star-h {
  font-size: 13px; font-weight: 700; color: var(--accent);
  padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px;
  display: flex; align-items: center; justify-content: space-between;
}
.m4-star-h span { font-size: 11px; font-weight: 600; color: var(--ink-faint); background: #f1f3f8; border-radius: 999px; padding: 1px 7px; }
.m4-star-sec li {
  display: grid; grid-template-columns: 22px 130px 56px 150px 1fr;
  align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #eef0f5;
  font-size: 13px;
}
.m4-star-sec li b { font-size: 13.5px; }
.m4-star-sec .say.mini { padding: 2px; }
.m4-star-sec .say.mini .spk { font-size: 13px; }
.m4-star-sec .spk.dim { filter: grayscale(1) opacity(.25); font-size: 12.5px; }
.m4-star-pos { color: var(--ink-soft); font-size: 12.5px; }
.m4-star-ph { color: var(--ink-faint); font-family: Georgia, serif; font-size: 12.5px; }
.m4-star-cn { color: var(--ink); }
/* 模块5 生词本条目：中文词汇 + 同义替换词一行、示例句第二行（覆盖模块4 的五列网格布局） */
.m4-star-sec li.m5-star-item { display: block; padding: 8px 0; }
.m5-star-item .w { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.m5-star-item .s { display: inline; margin-left: 8px; color: var(--accent); font-size: 12.5px; line-height: 1.6; }
.m5-star-item .ex { display: block; margin-top: 2px; color: var(--ink-faint); font-size: 12.5px; line-height: 1.55; }
.m4-modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 12px 20px; border-top: 1px solid var(--line); background: #fbfcfe;
}
.m4-modal-foot button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  padding: 8px 16px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.m4-modal-foot button:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 640px) {
  .m4-toolbar { position: static; }
  .m4-tip { display: none; }
  /* 窄屏表格需横向滚动（会破坏 sticky），表头改为普通表头 */
  .m4-table-wrap { overflow-x: auto; }
  .m4-table thead th { position: static; }
  /* 生词本列表：2 行紧凑排布（喇叭 | 单词+词性 / 音标 + 释义） */
  .m4-star-sec li {
    grid-template-columns: 22px auto 1fr; column-gap: 8px; row-gap: 1px;
    padding: 7px 0;
  }
  .m4-star-sec li > .spk, .m4-star-sec li > .say { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .m4-star-sec li b { grid-column: 2; grid-row: 1; }
  .m4-star-sec .m4-star-pos { grid-column: 3; grid-row: 1; justify-self: start; }
  .m4-star-sec .m4-star-ph { grid-column: 2; grid-row: 2; }
  .m4-star-sec .m4-star-cn { grid-column: 3; grid-row: 2; }
}
/* 641~960px：侧栏已折叠为单列，表格空间变窄，同样需要横向滚动 */
@media (min-width: 641px) and (max-width: 960px) {
  .m4-table-wrap { overflow-x: auto; }
}

/* ============================================
   模块 6 · 剑桥雅思真题（剑雅 4–21）
   ============================================ */
/* 题型 + 场景 双筛选（吸顶） */
.m6-filter-bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(20,30,60,.05);
}
.m6-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.m6-filter-row + .m6-filter-row { margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line); }
.m6-filter-row .flabel { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-right: 4px; min-width: 34px; }
.m6-chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  padding: 5px 13px; border-radius: 999px; cursor: pointer; font-size: 12.5px; font-weight: 600;
  transition: all .15s ease; line-height: 1.5;
}
.m6-chip:hover { border-color: var(--accent); color: var(--accent); }
.m6-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.m6-hint { margin-left: auto; font-size: 12px; color: var(--ink-faint); }
.m6-result { font-size: 12.5px; font-weight: 700; color: #4e6b51; }
.m6-result.empty { color: var(--accent); }

/* 书行：左侧书本海报 + 右侧 4 张 Test 卡片 */
.m6-book { margin-bottom: 30px; scroll-margin-top: 120px; }
#m6-top { scroll-margin-top: 76px; }
.m6-book.hide { display: none; }
.m6-book-row { display: flex; gap: 14px; align-items: stretch; }

.m6-poster {
  flex: 0 0 178px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, #27346e 0%, #1b2554 100%);
  color: #fff; border-radius: 14px; padding: 20px 18px 14px; min-height: 232px;
  box-shadow: 0 6px 18px rgba(27,37,84,.25);
}
.m6-poster-label { font-size: 19px; font-weight: 800; letter-spacing: 2.5px; }
.m6-poster-sub { font-size: 10.5px; letter-spacing: 2px; color: rgba(255,255,255,.65); margin-top: 7px; }
.m6-poster-num { font-size: 64px; font-weight: 800; line-height: 1; font-family: Georgia, 'Times New Roman', serif; }

.m6-test-grid {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}

/* Test 卡片（整卡可点击） */
.m6-test {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; min-width: 0;
  background: #f7f7f2; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.m6-test:hover { border-color: #4e6b51; box-shadow: var(--shadow); transform: translateY(-2px); }
.m6-test.hide { display: none; }
.m6-test-head {
  background: #4e6b51; color: #fff; font-size: 14.5px; font-weight: 700;
  padding: 9px 14px; letter-spacing: .3px;
  display: block; text-decoration: none; color: #fff;
  transition: background .15s;
}
.m6-test-head:hover { background: #456046; }
.m6-parts { display: flex; flex-direction: column; padding: 4px 13px 8px; flex: 1; }
/* Part 现在是独立链接（a）：去掉下划线、继承文字色、整行可点 */
.m6-part {
  display: flex; gap: 9px; padding: 8px 0 7px;
  text-decoration: none; color: inherit;
  border-radius: 8px; transition: background .15s;
}
.m6-part:hover { background: rgba(78,107,81,.07); }
.m6-part:hover .m6-arrow { color: #4e6b51; }
.m6-part + .m6-part { border-top: 1px solid #e6e6df; }
/* 筛选：不符合条件的 Part 直接隐藏，只保留命中的题目 */
.m6-part.hide { display: none; }

.m6-pplay {
  flex: 0 0 17px; width: 17px; height: 17px; margin-top: 2px;
  border: 1.5px solid #93a894; border-radius: 50%; position: relative;
}
.m6-pplay::after {
  content: ''; position: absolute; left: 6px; top: 4px;
  border-left: 5px solid #93a894; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
}
.m6-part-main { flex: 1; min-width: 0; }
.m6-part-line { display: flex; align-items: baseline; gap: 7px; }
.m6-pn { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.m6-types { font-size: 12px; font-weight: 700; color: #4a7c59; line-height: 1.5; min-width: 0; }
.m6-arrow { margin-left: auto; font-size: 12px; color: #a9b2ab; flex-shrink: 0; }
.m6-test:hover .m6-arrow { color: #4e6b51; }
.m6-scene-txt { font-size: 11.5px; color: #8f9490; margin-top: 3px; }

@media (max-width: 1100px) {
  .m6-test-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .m6-book-row { flex-direction: column; }
  .m6-poster { flex: none; flex-direction: row; align-items: center; min-height: 0; padding: 14px 18px; gap: 12px; }
  .m6-poster-num { margin-left: auto; font-size: 40px; }
  .m6-test-grid { grid-template-columns: 1fr; }
}

/* ============================================
   模块 7 · 常见问题及解决方案
   ============================================ */
/* 文档页面属性条 */
.m7-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 24px;
}
.m7-meta .m7-count {
  font-size: 12.5px; font-weight: 700; color: #fff; background: var(--accent);
  padding: 4px 12px; border-radius: 999px;
}
.m7-prop {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-soft); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}
.m7-prop i { font-style: normal; color: var(--ink-faint); }

.m7-sec { margin-bottom: 34px; scroll-margin-top: 88px; }
.m7-sec h2 {
  font-size: 21px; font-weight: 700; color: var(--ink); margin-bottom: 8px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
}
.m7-note {
  font-size: 12.5px; font-weight: 600; color: #a05a12;
  background: #fff5e6; border: 1px solid #f3dcb8; border-radius: 999px; padding: 3px 11px;
}
.m7-sec .sub { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 16px; }

/* 问答表 */
.m7-table { font-size: 15px; }
.m7-table th { font-size: 14px; letter-spacing: .5px; }
.m7-table td { padding: 16px 18px; line-height: 1.8; vertical-align: top; }
.m7-table .m7-q { font-weight: 700; color: var(--ink); }
.m7-table .m7-q .m7-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 21px; height: 21px; margin-right: 9px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  vertical-align: 1px;
}
.m7-table .m7-a { color: var(--ink-soft); }

/* 站内导航卡 */
.m7-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 14px; }
.m7-links a {
  display: flex; flex-direction: column; gap: 5px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  padding: 15px 17px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.m7-links a:hover { border-color: #f0c9d0; box-shadow: var(--shadow); transform: translateY(-2px); }
.m7-links .m7-li { font-size: 19px; line-height: 1; }
.m7-links b { font-size: 14.5px; color: var(--ink); }
.m7-links em { font-style: normal; font-size: 12.5px; color: var(--ink-faint); line-height: 1.6; }

@media (max-width: 640px) {
  .m7-table { font-size: 14px; }
  .m7-table td { padding: 13px 14px; }
  .m7-links { grid-template-columns: 1fr; }
}

/* ============================================
   模块 9 · 雅思听力机经（P1 / P4 答案句）
   ============================================ */
.m9-p23 {
  display: inline-block; margin-top: 10px; font-size: 13px; color: #a05a12;
  background: #fff5e6; border: 1px solid #f3dcb8; border-radius: 999px; padding: 4px 14px;
}
.m9-tip { font-size: 12.5px; color: var(--ink-faint); }
.m9-fav-filter.on { background: #f5b73c; border-color: #f5b73c; color: #fff; }
.m9-fav-empty {
  margin: 4px 0 20px; padding: 14px 18px; font-size: 14px; color: var(--ink-faint);
  background: var(--bg); border: 1px dashed var(--line); border-radius: 10px;
}

/* 目录 Part 折叠（P1 / P4 答案句，默认收起） */
.toc-tree li.toc-part > a .toc-caret {
  display: inline-block; margin-right: 5px; font-size: 10px; color: var(--ink-faint);
  transition: transform .15s;
}
.toc-tree li.toc-part.open > a .toc-caret { transform: rotate(90deg); }
.toc-tree li.toc-part > ul.toc-groups { padding-left: 14px; margin: 2px 0; }
.toc-tree li.toc-part > ul.toc-groups a { font-size: 12.5px; padding: 3px 8px; }
.toc-tree li.toc-part > ul.toc-groups .toc-n { font-size: 10.5px; min-width: 16px; }

/* 组 */
.m9-group { margin: 10px 0 26px; }
.m9-group.hide { display: none; }
.m4-sec.hide { display: none; }
.m9-ghead {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; color: var(--ink);
  margin: 22px 0 12px; scroll-margin-top: 100px;
}
.m9-ghead::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--accent); }
.m9-empty { font-size: 13px; color: var(--ink-faint); background: var(--bg); border-radius: 8px; padding: 10px 14px; }

/* 条目卡 */
.m9-item {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  margin-bottom: 14px; overflow: hidden; transition: box-shadow .15s;
}
.m9-item:hover { box-shadow: var(--shadow); }
.m9-item.hide { display: none; }
.m9-item-head {
  display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none;
  padding: 11px 16px; list-style: none; font-size: 15.5px; font-weight: 700; color: var(--ink);
}
.m9-item-head::-webkit-details-marker { display: none; }
.m9-item-no {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: var(--accent-light); color: var(--accent); font-size: 12.5px; font-weight: 700;
}
.m9-head-actions { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.m9-fav {
  width: 30px; height: 30px; flex-shrink: 0; cursor: pointer;
  border: 1px solid #e2e6ee; border-radius: 999px; background: #fff;
  font-size: 15px; line-height: 1; color: #b9c0cc; transition: .15s;
}
.m9-fav:hover { border-color: #f5b73c; color: #f5b73c; }
.m9-fav.on { color: #f5b73c; border-color: #f5b73c; background: #fff7e6; }
.m9-ans-toggle {
  flex-shrink: 0; cursor: pointer;
  border: 1px solid #f0c9d0; background: #fff; color: #d6364f;
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
  transition: background .15s, color .15s;
}
.m9-ans-toggle:hover { background: #fde7eb; }
.m9-ans-toggle.on { background: #d6364f; color: #fff; border-color: #d6364f; }
.m9-item-arrow { margin-left: 10px; font-size: 12px; color: var(--ink-faint); transition: transform .15s; }
.m9-item[open] .m9-item-arrow { transform: rotate(180deg); }
.m9-item-body { padding: 2px 16px 16px; border-top: 1px solid var(--line); }

/* 音频 */
.m9-audio { margin: 14px 0 12px; }
.m9-audio audio { width: 100%; height: 44px; outline: none; }
.m9-noaudio { font-size: 13px; color: var(--ink-faint); background: var(--bg); border-radius: 8px; padding: 9px 12px; }

/* 问题（绿色 callout） */
.m9-ques {
  background: #f2f8f0; border: 1px solid #dbe9d5; border-radius: 10px;
  padding: 14px 18px 14px 30px;
}
.m9-ques ol { margin: 0; padding-left: 6px; list-style: none; counter-reset: m9q; }
.m9-ques ol > li { counter-increment: m9q; }
.m9-ques ol > li.m9-opt { counter-increment: none; font-weight: 400; color: var(--ink-soft); font-size: 13px; margin: 2px 0 2px 22px; }
.m9-ques ol > li.m9-opt::before { content: none; }
.m9-ans-inline { color: #d6364f; font-weight: 700; font-size: 12.5px; }
.m9-ques ol > li::before { content: counter(m9q); font-weight: 700; color: var(--accent); margin-right: 7px; }
.m9-ques li { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.85; margin: 4px 0; }
.m9-blank {
  display: inline-block; min-width: 2.4em; min-height: 1em; padding: 0 .25em; margin: 0 .12em;
  border: none; border-bottom: 1.5px solid var(--accent);
  color: var(--accent); font-weight: 700; text-align: center; outline: none;
  cursor: text; border-radius: 2px; font-size: 13.5px; line-height: 1.4; letter-spacing: normal;
  background: transparent; -webkit-user-modify: read-write-plaintext-only; user-modify: read-write-plaintext-only;
}
.m9-blank:focus { background: rgba(200,16,46,.08); }
.m9-blank.correct { color: #1a9e5a; border-bottom-color: #1a9e5a; }
.m9-blank.wrong { color: #d6364f; border-bottom-color: #d6364f; text-decoration: line-through; }
.m9-ans-after {
  display: inline-block; margin-left: .45em; font-size: 12px; font-weight: 700;
  color: var(--ink-faint); white-space: nowrap;
}
.m9-ans-after.ok { color: #1a9e5a; }
.m9-ans-after.bad { color: #d6364f; }

/* 折叠按钮（原文及翻译 / 答案） */
.m9-fold {
  display: flex; align-items: center; gap: 8px; width: 100%;
  margin-top: 10px; padding: 9px 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 9px; background: var(--bg);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  transition: background .15s, border-color .15s; text-align: left;
}
.m9-fold:hover { border-color: #f0c9d0; background: #fff; }
.m9-fold.open { background: #fff; border-color: #f0c9d0; }
.m9-fold-ico { font-size: 14px; }
.m9-fold-arrow { margin-left: auto; font-size: 11px; transition: transform .15s; }
.m9-fold.open .m9-fold-arrow { transform: rotate(90deg); }
.m9-fold-body { padding: 12px 4px 4px; counter-reset: m9seq; }
.m9-tr-pair { position: relative; padding: 7px 12px 7px 36px; border-radius: 8px; counter-increment: m9seq; }
.m9-tr-pair::before {
  content: counter(m9seq); position: absolute; left: 13px; top: 9px;
  font-weight: 700; font-size: 12.5px; color: var(--accent);
}
.m9-tr-pair:nth-child(odd) { background: var(--bg); }
.m9-tr-en { font-size: 13.5px; color: var(--ink); line-height: 1.7; }
.m9-tr-cn { font-size: 12.5px; color: var(--ink-faint); line-height: 1.7; margin-top: 2px; }

@media (max-width: 640px) {
  .m9-ques { padding: 11px 13px 11px 24px; }
  .m9-ques li { font-size: 13.5px; }
  .m9-item-body { padding: 2px 12px 12px; }
}


/* ============================================
   模块 06 · 机考实战与答案规范
   ============================================ */
.m6x-tip {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--accent-light); border: 1px solid #f4c9d0;
  border-radius: var(--radius); padding: 14px 16px; margin: 0 0 18px;
  font-size: 13.5px; line-height: 1.75; color: var(--ink-soft);
}
.m6x-tip b { color: var(--accent); }
.m6x-quiz { display: grid; gap: 12px; }
.m6x-q {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px;
}
.m6x-q .q-stem { font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.m6x-q .q-stem code {
  background: #f1f3f8; border-radius: 4px; padding: 1px 5px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px;
}
.m6x-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.m6x-opt {
  border: 1px solid var(--line); background: #fff; border-radius: 9px;
  padding: 7px 13px; font-size: 13px; color: var(--ink-soft); cursor: pointer;
  transition: all .15s ease; font-family: inherit;
}
.m6x-opt:hover { border-color: #d8a3ad; color: var(--accent); }
.m6x-opt.sel { border-color: var(--accent); background: var(--accent-light); color: var(--accent); font-weight: 600; }
.m6x-opt.right { border-color: #1a9e5a; background: #e8f7ef; color: #14713f; font-weight: 600; }
.m6x-opt.wrong { border-color: #d6364f; background: #fdecee; color: #a3243a; text-decoration: line-through; }
.m6x-fb { margin-top: 9px; font-size: 12.5px; color: var(--ink-soft); min-height: 18px; }
.m6x-fb b { color: var(--accent); }
.m6x-score {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 14px; font-size: 14px;
}
.m6x-score b { color: var(--accent); font-size: 20px; }
.m6x-checklist { display: grid; gap: 8px; }
.m6x-checklist li {
  position: relative; padding-left: 26px; font-size: 13.5px; line-height: 1.8; color: var(--ink-soft);
}
.m6x-checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; line-height: 18px; text-align: center;
  background: #e8f7ef; color: #14713f; border-radius: 50%; font-size: 11px; font-weight: 700;
}
.m6x-checklist li.bad::before { content: "✕"; background: #fdecee; color: #a3243a; }
.m6x-table .ok { color: #14713f; font-weight: 600; }
.m6x-table .no { color: #a3243a; font-weight: 600; }

/* ============================================
   模块 07 · 听写拼写训练
   ============================================ */
.dx-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 16px; position: sticky; top: 64px; z-index: 20;
  box-shadow: var(--shadow);
}
.dx-bar label { font-size: 12.5px; color: var(--ink-soft); }
.dx-bar select, .dx-bar input[type="number"] {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px;
  font-size: 13px; font-family: inherit; color: var(--ink); background: #fff;
}
.dx-bar select:focus-visible { border-color: var(--accent); outline: none; }
.dx-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 6px 13px; font-size: 13px; color: var(--ink-soft); cursor: pointer;
  font-family: inherit; transition: all .15s ease;
}
.dx-btn:hover { border-color: var(--accent); color: var(--accent); }
.dx-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.dx-btn.primary:hover { background: var(--accent-dark); color: #fff; }
.dx-btn:disabled { opacity: .45; cursor: not-allowed; }
.dx-stats { margin-left: auto; display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-faint); }
.dx-stats b { color: var(--ink); font-size: 15px; }
.dx-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); text-align: center;
}
.dx-scene { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 14px; }
.dx-play {
  width: 76px; height: 76px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 27px; line-height: 1;
  box-shadow: 0 6px 18px rgba(200, 16, 46, .28); transition: transform .12s ease;
}
.dx-play:hover { transform: scale(1.05); }
.dx-play.playing { animation: dx-pulse 1s infinite; }
@keyframes dx-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(200,16,46,.35); } 50% { box-shadow: 0 0 0 14px rgba(200,16,46,0); } }
.dx-hint { font-size: 13px; color: var(--ink-soft); margin: 12px 0 4px; }
.dx-input {
  width: 100%; max-width: 420px; border: none; border-bottom: 2px solid var(--accent);
  background: transparent; font-size: 26px; text-align: center; padding: 8px 6px;
  font-family: inherit; color: var(--ink); outline: none; letter-spacing: 1px;
}
.dx-input::placeholder { color: #c3c9d6; letter-spacing: normal; font-size: 17px; }
.dx-fb { min-height: 24px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.dx-fb.ok { color: #14713f; }
.dx-fb.bad { color: #a3243a; }
.dx-fb .ans { color: var(--ink-soft); font-weight: 400; font-size: 12.5px; }
.dx-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.dx-list { display: grid; gap: 8px; }
.dx-list li {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; background: var(--surface);
  font-size: 13.5px;
}
.dx-list .w { font-weight: 600; }
.dx-list .m { color: var(--ink-faint); font-size: 12.5px; }
.dx-empty { text-align: center; color: var(--ink-faint); font-size: 13px; padding: 22px 0; }

/* ============================================
   模块 10 · 模考与错题中心
   ============================================ */
.mx-top {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.mx-timer { font-size: 30px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.mx-timer small { font-size: 12px; color: var(--ink-faint); font-weight: 400; margin-left: 4px; }
.mx-parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mx-part { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mx-part h4 { font-size: 13px; color: var(--ink-soft); margin-bottom: 9px; display: flex; justify-content: space-between; }
.mx-part h4 b { color: var(--accent); font-size: 12px; }
.mx-cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mx-cell {
  aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 13px; font-family: inherit; color: var(--ink-soft); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.mx-cell:hover { border-color: var(--accent); color: var(--accent); }
.mx-cell.done { background: var(--accent-light); border-color: #f0c3cb; color: var(--accent); font-weight: 600; }
.mx-cell.right { background: #e8f7ef; border-color: #9ed9bb; color: #14713f; font-weight: 700; }
.mx-cell.wrong { background: #fdecee; border-color: #f0b3bf; color: #a3243a; font-weight: 700; }
.mx-result {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin-top: 14px; display: none;
}
.mx-result.show { display: block; }
.mx-band { font-size: 38px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.mx-band small { font-size: 13px; color: var(--ink-faint); font-weight: 400; display: block; margin-top: 2px; }
.mx-report { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.mx-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.mx-stat .n { font-size: 25px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.mx-stat .l { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
@media (max-width: 760px) {
  .mx-parts { grid-template-columns: repeat(2, 1fr); }
  .dx-bar { position: static; }
  .dx-stats { margin-left: 0; width: 100%; }
}

/* ---------- 模块 11 备考策略（分类导航 + 搜索） ---------- */
.m7-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 18px; }
.m7-catchip {
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface);
  transition: all .15s ease;
}
.m7-catchip:hover { border-color: #f0c9d0; box-shadow: var(--shadow); transform: translateY(-2px); }
.m7-catchip > span { font-size: 19px; line-height: 1; }
.m7-catchip { font-size: 14px; font-weight: 600; color: var(--ink); }
.m7-catchip em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--ink-faint); }
.m7-search { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.m7-search input {
  flex: 1; max-width: 460px; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 13px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
.m7-search input:focus-visible { border-color: var(--accent); outline: none; }
.m7-search-n { font-size: 12.5px; color: var(--ink-faint); }

.m4-more-row td { padding: 10px; text-align: center; }
.m4-more-btn { border: 1px dashed var(--line); background: var(--bg); color: var(--ink-soft); border-radius: 10px; padding: 8px 16px; cursor: pointer; font-size: 13px; font-family: inherit; }
.m4-more-btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) {
  .m4-more-btn { width: 100%; }
}

/* ============================================
   模块 13 · 虾滑机经题库（官方机考风格）
   ============================================ */
.xh-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px 40px; }

/* ---- 统计条 ---- */
.xh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 20px 0 16px; }
.xh-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.xh-stat .n { font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1.2; font-family: Georgia, serif; }
.xh-stat .l { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.xh-stat.ok .n { color: #0f9d58; }

/* ---- 筛选栏 ---- */
.xh-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.xh-tools label { font-size: 13px; color: var(--ink-faint); }
.xh-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.xh-chip { border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft); border-radius: 999px; padding: 4px 13px; font-size: 13px; cursor: pointer; font-family: inherit; transition: .15s; }
.xh-chip:hover { border-color: var(--accent); color: var(--accent); }
.xh-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.xh-sel, .xh-inp, .xh-select { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 6px 10px; font-size: 13.5px; font-family: inherit; color: var(--ink); }
.xh-sel:focus, .xh-inp:focus { outline: 2px solid rgba(200,16,46,.25); border-color: var(--accent); }
.xh-search { min-width: 200px; flex: 1 1 200px; }
.xh-spacer { flex: 1; }
.xh-count { font-size: 13px; color: var(--ink-faint); }

/* ---- 按钮 ---- */
.xh-btn { border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 9px; padding: 8px 16px; font-size: 14px; cursor: pointer; font-family: inherit; font-weight: 600; transition: .15s; }
.xh-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.xh-btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.xh-btn-ghost:hover { background: var(--bg); color: var(--accent); border-color: var(--accent); }
.xh-btn-sm { padding: 4px 11px; font-size: 12.5px; border-radius: 8px; }
.xh-btn.on { background: #fff; color: var(--accent); }

/* ---- 题库表格 ---- */
.xh-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.xh-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.xh-table th { background: var(--bg); text-align: left; font-weight: 600; color: var(--ink-soft); padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; white-space: nowrap; }
.xh-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.xh-table tbody tr:hover { background: #fcfcfd; }
.xh-t-num { color: var(--ink-faint); font-family: Georgia, serif; font-weight: 700; }
.xh-t-title a { font-weight: 600; color: var(--ink); }
.xh-t-title a:hover { color: var(--accent); }
.xh-t-tags { margin-top: 3px; display: flex; gap: 4px; flex-wrap: wrap; }
.xh-t-tags span { font-size: 11px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-faint); border-radius: 5px; padding: 0 6px; }
.xh-t-q, .xh-t-acc { color: var(--ink-soft); white-space: nowrap; }
.xh-t-acc.ok { color: #0f9d58; font-weight: 700; }
.xh-t-acc.fav { color: #d98324; }
.xh-t-act { white-space: nowrap; }
.xh-t-act .xh-btn-ghost { margin-left: 5px; padding: 4px 9px; }
.xh-badge { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 1px 7px; color: #fff; }
.xh-p-p1 { background: #2f80ed; } .xh-p-p2 { background: #0f9d58; } .xh-p-p3 { background: #d98324; } .xh-p-p4 { background: #7b5cd6; }
.xh-freq { display: inline-block; font-size: 11.5px; border-radius: 6px; padding: 1px 7px; border: 1px solid; }
.xh-f-高频 { color: #c8102e; border-color: #f3c2ca; background: #fdf0f2; }
.xh-f-次高频 { color: #b3701a; border-color: #f0dcb4; background: #fdf7ec; }
.xh-f-非高频 { color: #55607a; border-color: var(--line); background: var(--bg); }
.xh-empty { padding: 40px 20px; text-align: center; color: var(--ink-faint); font-size: 14px; }

/* ============================================
   官方机考风格 · 做题页
   ============================================ */
body.xh-in-practice .site-header,
body.xh-in-practice .site-footer,
body.xh-in-practice .page-hero { display: none; }
body.xh-in-practice .page-body { padding: 0 0 24px; }
body.xh-in-practice .xh-wrap { max-width: 1360px; padding: 0; }
/* 底部「题号导航 + 操作栏」均为 fixed，需预留等高空间，避免遮挡最后一段内容 */
body.xh-in-practice #xh-practice { padding-bottom: 120px; }

/* ---- 顶部考试栏 ---- */
.xh-cbt-top {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 18px;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 10px 20px; box-shadow: 0 1px 3px rgba(31,36,48,.05);
}
.xh-cbt-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.xh-cbt-logo {
  width: 34px; height: 34px; border-radius: 8px; background: var(--accent);
  color: #fff; display: grid; place-items: center; font-family: Georgia, serif;
  font-weight: 700; font-size: 18px;
}
.xh-cbt-id { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.xh-cbt-id b { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .5px; color: var(--ink); }
.xh-cbt-left { color: #b3701a; font-weight: 600; }

.xh-cbt-player { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.xh-cbt-pb {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); cursor: pointer; font-size: 12px;
  display: grid; place-items: center; flex-shrink: 0; transition: .15s;
}
.xh-cbt-pb:hover { border-color: var(--accent); color: var(--accent); }
.xh-cbt-play { background: var(--accent); border-color: var(--accent); color: #fff; font-size: 13px; }
.xh-cbt-play:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.xh-cbt-track {
  flex: 1; min-width: 80px; height: 6px; border-radius: 3px; background: var(--line);
  cursor: pointer; position: relative; overflow: hidden;
}
.xh-cbt-track i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .2s; }
.xh-cbt-ptime { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.xh-cbt-speed { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 8px; font-size: 12.5px; font-family: inherit; color: var(--ink); cursor: pointer; }

.xh-cbt-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.xh-cbt-saved { font-size: 12.5px; color: #0f9d58; opacity: 0; transition: opacity .2s; }
.xh-cbt-saved.saving { opacity: 1; color: var(--ink-faint); }
.xh-cbt-ic {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); cursor: pointer; font-size: 15px;
  display: grid; place-items: center; transition: .15s;
}
.xh-cbt-ic:hover { border-color: var(--accent); color: var(--accent); }
.xh-cbt-ic.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- Part 横幅 ---- */
.xh-cbt-part {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(90deg, #fdf3f0, #fbf7f4);
  border-bottom: 1px solid var(--line); padding: 12px 24px;
}
.xh-cbt-part-l { display: flex; align-items: baseline; gap: 14px; }
.xh-cbt-part-l b { font-size: 16px; font-weight: 800; color: var(--accent); }
.xh-cbt-part-l span { font-size: 14px; color: var(--ink-soft); }
.xh-cbt-part-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); }

/* ---- 主体 ---- */
.xh-cbt-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
.xh-cbt-main.xh-reviewed { grid-template-columns: minmax(0, 1fr) 400px; }
@media (max-width: 1100px) { .xh-cbt-main.xh-reviewed { grid-template-columns: 1fr; } }

.xh-cbt-paper { padding: 22px 28px 8px; min-width: 0; }
.xh-cbt-side {
  background: var(--surface); border-left: 1px solid var(--line);
  position: sticky; top: 56px;
  max-height: calc(100vh - 56px - var(--xh-foot-h, 55px) - var(--xh-nav-h, 42px) - 8px);
  display: flex; flex-direction: column;
}
/* 作者样式的 display 会覆盖 [hidden] 的 UA 默认值，必须显式恢复，
   否则交卷前就会暴露原文与精讲（等于直接给答案） */
.xh-cbt-side[hidden] { display: none; }
@media (max-width: 1100px) { .xh-cbt-side { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--line); } }
.xh-cbt-side-head {
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.xh-cbt-side-head h4 { font-size: 14.5px; margin-right: auto; }
.xh-cbt-side-tools { display: flex; gap: 5px; }

/* ---- 题组 ---- */
.xh-group { margin-bottom: 26px; }
.xh-g-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 2px; }
.xh-g-title { font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.xh-g-type { font-size: 11.5px; background: var(--accent-light); color: var(--accent); border-radius: 6px; padding: 1px 8px; font-weight: 600; }
.xh-g-inst { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; line-height: 1.75; }
.xh-g-inst::before { content: "✎ "; color: var(--accent); font-weight: 700; }
.xh-g-body { font-size: 15px; }

/* 官方提示条（字数要求等） */
.xh-g-inst { position: relative; }

/* ---- 笔记体（notes）---- */
.xh-p { margin: 5px 0; line-height: 2.1; }
.xh-li { margin: 3px 0; line-height: 2.1; position: relative; }
.xh-li::before { content: "•"; color: var(--ink-faint); position: absolute; left: -16px; }
.xh-doc-title {
  font-weight: 700; margin: 14px 0 6px; font-size: 14.5px;
  color: var(--ink); border-left: 3px solid var(--accent); padding-left: 9px;
}
.xh-missing { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }

/* ---- 表格（官方表格样式）---- */
.xh-tablewrap { overflow-x: auto; margin: 10px 0; }
.xh-tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.xh-tbl th, .xh-tbl td {
  border: 1px solid #b9c0cf; padding: 8px 12px; vertical-align: top; line-height: 1.95;
}
.xh-tbl th { background: #f0f3f8; font-weight: 700; text-align: left; }
.xh-td-line { min-height: 1.9em; }
.xh-flow td { vertical-align: middle; }

/* ---- 空格（官方样式：题号在框左上角）---- */
.xh-blank { display: inline-flex; align-items: flex-start; gap: 4px; white-space: nowrap; position: relative; }
.xh-qn { color: var(--accent); font-weight: 700; font-size: 12.5px; line-height: 1.6; }
.xh-lead { font-style: normal; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.xh-inp {
  width: 132px; border: 1px solid #b9c0cf; border-radius: 3px; padding: 4px 8px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.xh-inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(200,16,46,.14); }
.xh-inp.xh-ok { border-color: #0f9d58; background: rgba(15,157,88,.07); }
.xh-inp.xh-bad { border-color: var(--accent); background: rgba(200,16,46,.06); }
.xh-blank-sel .xh-sel { min-width: 92px; }
.xh-sel { border: 1px solid #b9c0cf; border-radius: 3px; padding: 4px 8px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink); }
.xh-sel:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(200,16,46,.14); }

/* ---- 选择题 ---- */
.xh-q { margin: 14px 0; padding: 4px 6px; border-radius: 8px; }
.xh-qt { font-weight: 600; margin-bottom: 8px; line-height: 1.85; }
.xh-qt b { color: var(--accent); margin-right: 4px; }
.xh-opts { display: flex; flex-direction: column; gap: 4px; }
.xh-opt { display: flex; gap: 10px; align-items: flex-start; padding: 5px 9px; border-radius: 7px; cursor: pointer; font-size: 14px; line-height: 1.75; }
.xh-opt:hover { background: var(--bg); }
.xh-opt input { margin-top: 6px; accent-color: var(--accent); }
.xh-ot { font-weight: 700; min-width: 16px; color: var(--ink-soft); }
.xh-oc { color: var(--ink); }
.xh-opt-ok { background: rgba(15,157,88,.10); }
.xh-opt-ok .xh-ot { color: #0f9d58; }
.xh-opt-bad { background: rgba(200,16,46,.08); }
.xh-opt-bad .xh-ot { color: var(--accent); }
.xh-q.xh-ok { background: rgba(15,157,88,.05); }
.xh-q.xh-bad { background: rgba(200,16,46,.05); }
.xh-blank.xh-ok { background: rgba(15,157,88,.08); border-radius: 5px; }
.xh-blank.xh-bad { background: rgba(200,16,46,.08); border-radius: 5px; }

/* ---- 多选题：选项全文 + 字母池 ---- */
.xh-optlist { margin: 8px 0 12px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.xh-optrow { display: flex; gap: 10px; padding: 7px 12px; border-bottom: 1px solid #f1f3f7; font-size: 14px; line-height: 1.7; }
.xh-optrow:last-child { border-bottom: 0; }
.xh-optrow b { min-width: 18px; color: var(--accent); font-weight: 700; }
.xh-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.xh-chip2 {
  border: 1px solid #b9c0cf; background: #fff; border-radius: 6px; min-width: 36px; padding: 5px 10px;
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; color: var(--ink);
}
.xh-chip2:hover { border-color: var(--accent); color: var(--accent); }
.xh-slots { display: flex; gap: 16px; flex-wrap: wrap; }
.xh-slot { display: flex; align-items: center; gap: 6px; }
.xh-hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; }

/* ---- 匹配题：题目 + 右侧选项框 ---- */
.xh-matchwrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
@media (max-width: 800px) { .xh-matchwrap { grid-template-columns: 1fr; } }
.xh-optbox { border: 1px solid #b9c0cf; border-radius: 8px; overflow: hidden; background: #fff; }
.xh-optbox-h { background: #f0f3f8; padding: 8px 12px; font-weight: 700; font-size: 13.5px; border-bottom: 1px solid #b9c0cf; }
.xh-matchlist { min-width: 0; }

/* ---- 地图题 ---- */
.xh-mapwrap { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 18px; align-items: start; }
@media (max-width: 700px) { .xh-mapwrap { grid-template-columns: 1fr; } }
.xh-mapimg { border: 1px solid #b9c0cf; border-radius: 8px; background: #fff; }
.xh-maplist { font-size: 14px; }
.xh-mapq { display: flex; align-items: center; gap: 10px; margin: 7px 0; }

/* ---- 原文面板 ---- */
.xh-tr { padding: 7px 14px; border-bottom: 1px solid #f1f3f7; font-size: 13.5px; line-height: 1.8; }
.xh-tr:hover { background: #fcfcfd; }
.xh-tr-t { border: 0; background: var(--bg); color: var(--ink-faint); font-size: 11px; font-family: ui-monospace, Menlo, Consolas, monospace; border-radius: 5px; padding: 0 5px; cursor: pointer; margin-right: 6px; vertical-align: 1px; }
.xh-tr-t:hover { background: var(--accent-light); color: var(--accent); }
.xh-tr-en { display: inline; }
.xh-tr-cn { color: var(--ink-soft); font-size: 13px; margin-top: 3px; }
.xh-tr-an { color: #b3701a; font-size: 12.5px; margin-top: 3px; background: #fdf7ec; border-radius: 6px; padding: 3px 8px; }
.xh-mk { background: #fecaca; border-radius: 3px; padding: 0 2px; cursor: pointer; }
.xh-mk:hover { background: #fca5a5; }
/* 源站原文自带的答案词高亮（由内联 <mark style="background-color:..."> 转换而来）
   红=答案词，绿=干扰项；与 .xh-mk（定位到题目的原文句）区分 */
.xh-src-ok { background: #fecaca; border-radius: 3px; padding: 0 2px; font-weight: 700; color: #9f1239; }
.xh-src-no { background: #bbf7d0; border-radius: 3px; padding: 0 2px; color: #166534; }
.xh-tr-scroll { overflow-y: auto; padding: 4px 0; flex: 1; }

/* ---- 底部题号导航（吸附在视口底部，不随页面滚动）----
   与吸底操作栏叠放：nav 坐在 foot 之上，两者高度由 xiahua.js 量出并写入 CSS 变量 */
.xh-cbt-nav {
  position: fixed; left: 0; right: 0; bottom: var(--xh-foot-h, 55px); z-index: 50;
  display: flex; flex-wrap: wrap; gap: 4px 26px; align-items: center;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 8px 20px; box-shadow: 0 -1px 4px rgba(31,36,48,.05);
}
.xh-navgroup { display: flex; align-items: center; gap: 8px; }
.xh-navgroup.on .xh-navg-l { color: var(--accent); font-weight: 800; }
.xh-navg-l { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }
.xh-navg-n { display: flex; gap: 4px; flex-wrap: wrap; }
.xh-navq {
  min-width: 24px; height: 24px; padding: 0 5px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); border-radius: 4px; cursor: pointer;
  font-size: 12px; font-family: inherit; font-weight: 600; transition: .12s;
}
.xh-navq:hover { border-color: var(--accent); color: var(--accent); }
.xh-navq.done { background: var(--accent); border-color: var(--accent); color: #fff; }
.xh-navq.wrong { background: #fff; border-color: var(--accent); color: var(--accent); }
.xh-navq-x { font-size: 11.5px; color: var(--ink-faint); }

/* ---- 底部操作栏（固定在视口底部）---- */
.xh-cbt-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px 20px; box-shadow: 0 -1px 6px rgba(31,36,48,.07);
}
.xh-cbt-foot-l { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-faint); min-width: 0; }
.xh-cbt-foot-title { color: var(--ink-soft); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.xh-cbt-foot-sep { width: 1px; height: 14px; background: var(--line); }
.xh-cbt-foot-r { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.xh-cbt-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px;
  padding: 8px 15px; font-size: 13.5px; cursor: pointer; font-family: inherit; font-weight: 600; transition: .15s;
}
.xh-cbt-btn:hover { border-color: var(--accent); color: var(--accent); }
.xh-cbt-btn-ghost { color: var(--ink-soft); }
/* 重做按钮只在交卷后出现 */
.xh-cbt-btn[hidden] { display: none; }
#xh-redo { border-color: #f0dcb4; color: #b3701a; background: #fdf7ec; }
#xh-redo:hover { border-color: #b3701a; color: #8f5a12; }
.xh-score { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.xh-score b { font-size: 20px; font-family: Georgia, serif; }
.xh-score span { font-weight: 700; }
.xh-score em { font-size: 12.5px; color: var(--ink-faint); font-style: normal; }
.xh-score.good b, .xh-score.good span { color: #0f9d58; }
.xh-score.mid b, .xh-score.mid span { color: #b3701a; }
.xh-score.poor b, .xh-score.poor span { color: var(--accent); }

.xh-flash { animation: xhflash 1.5s ease; }
@keyframes xhflash { 0%, 100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); } 25%, 60% { box-shadow: 0 0 0 4px rgba(200,16,46,.20); } }
.xh-src { font-size: 12px; color: var(--ink-faint); margin-top: 18px; line-height: 1.7; }

/* ============================================
   用户系统 · 登录/注册弹窗
   ============================================ */
.auth-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
}
.auth-modal[hidden] { display: none; }
.auth-panel {
  background: #fff; border-radius: 16px; padding: 32px 28px 28px;
  width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.2);
  position: relative; animation: authSlideIn .2s ease;
}
@keyframes authSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 20px; cursor: pointer;
  color: var(--ink-faint); width: 32px; height: 32px;
  border-radius: 50%; display: grid; place-items: center;
}
.auth-close:hover { background: var(--bg); color: var(--ink); }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-header h2 { font-size: 22px; margin: 0 0 6px; }
.auth-sub { font-size: 14px; color: var(--ink-faint); margin: 0; }
.auth-error {
  background: #fef2f2; color: #dc2626; border: 1px solid #fecaca;
  border-radius: 8px; padding: 10px 14px; font-size: 13.5px;
  margin-bottom: 16px; min-height: 20px;
}
.auth-form .form-group { margin-bottom: 16px; }
.auth-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.auth-form input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 15px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.auth-form input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,16,46,.12);
}
.btn-full { width: 100%; margin-top: 4px; }
.auth-footer-text { text-align: center; margin: 16px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.auth-footer-text a { color: var(--accent); text-decoration: none; }
.auth-footer-text a:hover { text-decoration: underline; }

/* 导航用户按钮 */
.nav-auth { margin-left: 10px; position: relative; flex-shrink: 0; }
.user-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; color: var(--ink); cursor: pointer;
  font-family: inherit; transition: .15s; white-space: nowrap;
}
.user-btn:hover { border-color: var(--accent); color: var(--accent); }
.user-btn .arrow { font-size: 9px; color: var(--ink-faint); }
.login-btn {
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: .15s; white-space: nowrap;
}
.login-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.user-dropdown {
  position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12); min-width: 180px;
  padding: 8px; z-index: 150;
}
.dropdown-header {
  padding: 8px 10px; border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.dropdown-header strong { display: block; font-size: 13.5px; }
.dropdown-header .role-badge {
  font-size: 11px; background: var(--accent-light); color: var(--accent);
  padding: 2px 8px; border-radius: 10px; margin-top: 4px; display: inline-block;
}
.dropdown-item {
  display: block; padding: 8px 10px; border-radius: 6px;
  color: var(--ink); font-size: 14px; text-decoration: none;
}
.dropdown-item:hover { background: var(--bg); color: var(--accent); }

/* ============================================
   用户系统 · 付费墙（未登录锁定正文）
   ============================================ */
body.auth-locked .page-hero,
body.auth-locked .page-body,
body.auth-locked .xh-wrap { display: none !important; }
.auth-gate {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; background: var(--bg);
}
.gate-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 40px 36px; max-width: 460px; text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.06);
}
.gate-icon { font-size: 44px; margin-bottom: 12px; }
.gate-card h2 { margin: 0 0 12px; font-size: 22px; }
.gate-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; margin: 0 0 20px; }
.gate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gate-tip { font-size: 13px; color: var(--ink-faint); margin: 16px 0 0 !important; }
