/* 考研英语真题 · 逐题练习页 */
:root {
  --paper: #f5f4ee;
  --surface: #fffdf8;
  --surface-2: #efece2;
  --ink: #1b211d;
  --muted: #6d746c;
  --line: #e0dfd4;
  --line-soft: #eceae1;
  --accent: #2f5d8a;
  --accent-soft: #e6edf4;
  --gold: #b5842f;
  --red: #a33a2c;
  --green: #2f6b46;
  --green-soft: #e3efe6;
  --red-soft: #f6e5e1;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --en: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --max: 1280px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161916;
    --surface: #1d211d;
    --surface-2: #232823;
    --ink: #e9e8e1;
    --muted: #9aa197;
    --line: #2e332e;
    --line-soft: #262b26;
    --accent: #8fb4d6;
    --accent-soft: #22303b;
    --gold: #d2a453;
    --red: #d98a7c;
    --green: #8fc4a3;
    --green-soft: #1f2e25;
    --red-soft: #33241f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ---------- 首页 ---------- */
.ex-wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px 80px; }
.ex-mast {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 44px 0 28px;
}
.ex-seal {
  flex: none; width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent); color: #fff;
  font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1;
}
@media (prefers-color-scheme: dark) { .ex-seal { color: #0e1411; } }
.ex-mast-main { flex: 1 1 auto; min-width: 0; }
.ex-mast h1 {
  margin: 0; font-family: var(--serif);
  font-size: clamp(25px, 3.4vw, 33px); letter-spacing: .04em; line-height: 1.2;
}
.ex-sub {
  margin: 9px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 12.5px; color: var(--muted);
}
.ex-sub .live { color: var(--green); }
.ex-actions { flex: none; display: flex; gap: 8px; }
.kicker {
  margin: 0 0 6px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .16em; color: var(--muted); text-transform: uppercase;
}

/* 试卷分组（英语一 / 英语二 直接并排，不再有 tab 中间层） */
.ex-sets { display: block; }
.ex-set { margin-bottom: 22px; }
.ex-set-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-bottom: 8px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.ex-set-head h2 {
  margin: 0; font-family: var(--serif);
  font-size: 17px; font-weight: 700; letter-spacing: .04em;
}
.ex-set-head > span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.ex-set-head .ex-yhint { margin-left: auto; font-family: var(--sans); }

/* 年份 chips · 点击直达该年试卷 */
.ex-years { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 6px; }
.ex-years[hidden] { display: none; }
.yr {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 64px; padding: 10px 12px; border-radius: 5px;
  font-family: var(--mono); font-size: 13px; line-height: 1;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.yr:hover {
  color: var(--accent); border-color: var(--accent);
  background: var(--paper); transform: translateY(-1px);
}
.yr.off { opacity: .32; pointer-events: none; }
.yr.has::after {
  content: ""; position: absolute; top: 4px; right: 4px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.ex-yhint { margin-left: auto; font-size: 11.5px; color: var(--muted); }

/* 首页三栏引导 */
.ex-flow {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin: 26px 0 0;
}
.ex-flow .item {
  padding: 15px 16px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 5px;
}
.ex-flow .item span {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--gold);
}
.ex-flow .item b {
  display: block; margin: 7px 0 6px;
  font-family: var(--serif); font-size: 15px; letter-spacing: .02em;
}
.ex-flow .item p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.72; }

.note-box {
  margin: 34px 0 0; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: 4px;
  font-size: 13px; color: var(--muted); line-height: 1.75;
}
.note-box b { color: var(--ink); font-weight: 600; }

/* ---------- 试卷页 ---------- */
.paper-head {
  max-width: var(--max); margin: 0 auto; padding: 26px 22px 0;
}
.ph-line {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.ph-title { margin: 0; font-family: var(--serif); font-size: 26px; letter-spacing: .04em; }
.ph-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  background: var(--accent-soft); border-radius: 3px; padding: 3px 8px;
}
.chip.gold { color: var(--gold); background: transparent; border: 1px solid var(--line); }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  appearance: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 4px; padding: 6px 11px; font-size: 12.5px;
  color: var(--muted); transition: color .15s, border-color .15s, background .15s;
}
.btn:hover { color: var(--ink); border-color: var(--accent); }
.btn.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.btn.solid {
  color: #fff; background: var(--accent); border-color: var(--accent);
}
@media (prefers-color-scheme: dark) { .btn.solid { color: #0e1411; } }
.btn.solid:hover { filter: brightness(1.06); color: #fff; }

/* 试卷切换器 */
.ps-wrap { position: relative; display: inline-flex; gap: 8px; }
.ps-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  width: min(430px, 84vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 20px 44px -26px rgba(20, 30, 25, .5);
  padding: 12px 13px 13px;
}
.ps-menu[hidden] { display: none; }
.ps-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 11px; }
.ps-tab {
  appearance: none; background: none; border: 0; cursor: pointer;
  padding: 5px 9px 8px; margin-right: 4px;
  border-bottom: 2px solid transparent;
  font-size: 13px; color: var(--muted);
}
.ps-tab:hover { color: var(--ink); }
.ps-tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.ps-years { display: flex; flex-wrap: wrap; gap: 5px; }
.ps-years[hidden] { display: none; }
.ps-yr {
  font-family: var(--mono); font-size: 12px;
  padding: 4px 8px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--paper); color: var(--muted);
  transition: color .14s, border-color .14s, background .14s;
}
.ps-yr:hover { color: var(--ink); border-color: var(--accent); }
.ps-yr.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ph-sep { width: 1px; height: 20px; background: var(--line); margin: 0 2px; align-self: center; }

.paper-note {
  margin: 12px 0 0; padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 2px solid var(--gold); border-radius: 0 3px 3px 0;
  font-size: 12.5px; line-height: 1.75; color: var(--muted);
}

/* 小节导航 */
.sec-nav {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--sb-h, 48px)); z-index: 30;
  max-width: var(--max); margin: 0 auto;
  padding: 8px 22px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line-soft);
  display: flex; gap: 6px; overflow-x: auto;
  scrollbar-width: none;
}
.sec-nav::-webkit-scrollbar { display: none; }
.sec-nav a {
  flex: none; font-size: 12.5px; color: var(--muted);
  padding: 4px 10px; border-radius: 999px; border: 1px solid transparent;
  white-space: nowrap;
}
.sec-nav a:hover { color: var(--ink); background: var(--surface); }
.sec-nav a.on {
  color: var(--accent); border-color: var(--accent); background: var(--accent-soft);
  font-weight: 500;
}

.paper-body { max-width: var(--max); margin: 0 auto; padding: 0 22px 90px; }

/* 章节头 */
.sec { padding-top: 34px; }
.sec-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.sec-head h2 {
  margin: 0; font-family: var(--serif); font-size: 21px; letter-spacing: .04em;
}
.sec-head .lbl {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em;
  color: var(--gold); text-transform: uppercase;
}
.sec-head .pts { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-left: auto; }
.direction {
  font-size: 12.5px; color: var(--muted); line-height: 1.7;
  padding: 9px 12px; margin-bottom: 18px;
  border-left: 2px solid var(--line); background: var(--surface);
}
.direction b { color: var(--ink); font-weight: 600; }

/* 两栏：文章 + 题目 */
.duo {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 30px; align-items: start;
}
.duo.solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

/* 文章 */
.passage {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 22px 24px 24px;
  font-family: var(--en); font-size: 16.5px; line-height: 1.78;
}
.passage .src {
  font-family: var(--sans); font-size: 11.5px; color: var(--muted);
  margin: 0 0 12px; letter-spacing: .02em;
}
.passage p { margin: 0 0 13px; text-indent: 1.6em; }
.passage p:last-child { margin-bottom: 0; }
/* 段落对照译文：点「全文译文」后，每段中文紧贴在该段英文下面 */
.passage .zh {
  display: none;
  margin: -6px 0 15px;
  padding: 8px 12px 9px;
  font-family: var(--sans); font-size: 13.5px; line-height: 1.92;
  color: var(--ink); opacity: .9; text-indent: 0;
  background: var(--surface-2);
  border-left: 2px solid var(--gold);
  border-radius: 0 4px 4px 0;
}
body.show-zh .passage .zh,
.sec.show-tr .passage .zh { display: block; }
@media (max-width: 720px) {
  .passage .zh { font-size: 13px; margin: -4px 0 13px; padding: 7px 10px 8px; }
}
.passage .blank {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4em; height: 1.55em; padding: 0 .35em; margin: 0 .12em;
  font-family: var(--mono); font-size: .78em; line-height: 1;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 3px; vertical-align: .1em; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, color .15s;
}
.passage .blank:hover { border-color: var(--accent); }
.passage .blank.done { color: #fff; background: var(--accent); }
@media (prefers-color-scheme: dark) { .passage .blank.done { color: #0e1411; } }
.passage .blank.mark { background: var(--red-soft); color: var(--red); border-color: var(--red); }

/* 题目列 */
.qcol { display: flex; flex-direction: column; gap: 14px; }
.qcol.sticky { position: sticky; top: calc(var(--sb-h, 48px) + 54px); max-height: calc(100vh - var(--sb-h, 48px) - 66px); overflow-y: auto; padding-right: 4px; }
.qcol.sticky::-webkit-scrollbar { width: 6px; }
.qcol.sticky::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.q {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 14px 16px 12px; scroll-margin-top: calc(var(--sb-h, 48px) + 60px);
  transition: border-color .15s, box-shadow .15s;
}
.q.focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.q-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.q-num {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 3px; padding: 1px 7px;
}
.q-diff {
  font-size: 10.5px; font-family: var(--mono); letter-spacing: .04em;
  padding: 1px 6px; border-radius: 3px; border: 1px solid transparent;
}
.q-diff[data-d="易"] { color: var(--green); border-color: var(--green); }
.q-diff[data-d="中"] { color: var(--gold); border-color: var(--gold); }
.q-diff[data-d="难"] { color: var(--red); border-color: var(--red); }
.q-rate { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.q-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.q-sol {
  font-size: 11px; color: var(--muted);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.q-sol:hover { color: var(--accent); border-color: currentColor; }
.q-ans {
  appearance: none; cursor: pointer; flex: none;
  padding: 0 6px; line-height: 1.75;
  font-family: var(--sans); font-size: 10.5px;
  color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 3px;
  transition: color .14s, border-color .14s, background .14s;
}
.q-ans:hover { color: var(--accent); border-color: var(--accent); }
.q.revealed .q-ans { color: var(--green); border-color: var(--green); background: var(--green-soft); }
.q-ansval {
  display: none; flex: none;
  font-family: var(--mono); font-size: 10.5px; color: var(--green);
  border: 1px solid var(--green); border-radius: 3px; padding: 0 5px;
}
.q-ansval b { font-weight: 600; }
.q.revealed .q-ansval,
body.show-ans .q-ansval { display: inline-block; }
.q-stem { margin: 0 0 9px; font-family: var(--en); font-size: 15.5px; line-height: 1.62; }

.opts { display: flex; flex-direction: column; gap: 2px; }
.opts.letter-opts { flex-direction: row; flex-wrap: wrap; gap: 4px; }
.opts.letter-opts .opt { padding: 3px 8px; }
.opts.letter-opts .opt .k { margin-right: 0; }
.opt {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 4px 7px; border-radius: 3px; cursor: pointer;
  font-family: var(--en); font-size: 15px; line-height: 1.55;
  transition: background .14s;
}
.opt:hover { background: var(--surface-2); }
.opt .k {
  flex: none; font-family: var(--mono); font-size: 11.5px;
  color: var(--muted); border: 1px solid var(--line);
  width: 1.55em; height: 1.55em; display: grid; place-items: center;
  border-radius: 50%; margin-top: .12em;
}
.opt.pick { background: var(--accent-soft); }
.opt.pick .k { color: #fff; background: var(--accent); border-color: var(--accent); }
@media (prefers-color-scheme: dark) { .opt.pick .k { color: #0e1411; } }
.opt.right { background: var(--green-soft); }
.opt.right .k { color: #fff; background: var(--green); border-color: var(--green); }
@media (prefers-color-scheme: dark) { .opt.right .k { color: #0e1411; } }
.opt.wrong { background: var(--red-soft); }
.opt.wrong .k { color: #fff; background: var(--red); border-color: var(--red); }
@media (prefers-color-scheme: dark) { .opt.wrong .k { color: #0e1411; } }

.q-ref {
  display: none; margin-top: 9px; padding: 9px 11px;
  background: var(--surface-2); border-left: 2px solid var(--gold);
  font-size: 13px; line-height: 1.8; color: var(--ink);
  border-radius: 0 3px 3px 0;
}
.q-ref b { font-family: var(--mono); font-size: 11.5px; color: var(--gold); display: block; margin-bottom: 2px; }
body.show-ans .q-ref,
body.show-zh .q-ref,
.q.revealed .q-ref { display: block; }

/* 答案订正说明：只有带 note 字段的题才出现 */
.q-note {
  margin-top: 9px; padding: 7px 10px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  font-size: 12px; line-height: 1.7; color: var(--muted);
  border-radius: 0 3px 3px 0;
}
.q-note b { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .02em; }

/* ---------- 完形 / 新题型：固定一屏，左右各自内部滚动 ---------- */
.duo.cloze, .duo.newtype {
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  gap: 20px;
  height: clamp(360px, calc(100vh - 215px), 1040px);
  align-items: stretch;
}
.duo.cloze .passage, .duo.newtype .passage,
.duo.cloze .qcol, .duo.newtype .qcol {
  min-height: 0; height: 100%;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin;
}
.duo.cloze .passage, .duo.newtype .passage { padding: 20px 18px 22px 22px; }
.duo.cloze .qcol, .duo.newtype .qcol { padding-right: 6px; }
.duo.cloze .passage::-webkit-scrollbar,
.duo.newtype .passage::-webkit-scrollbar,
.duo.cloze .qcol::-webkit-scrollbar,
.duo.newtype .qcol::-webkit-scrollbar { width: 6px; }
.duo.cloze .passage::-webkit-scrollbar-thumb,
.duo.newtype .passage::-webkit-scrollbar-thumb,
.duo.cloze .qcol::-webkit-scrollbar-thumb,
.duo.newtype .qcol::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* 新题型：题卡与选项库收紧 */
.duo.newtype .qcol { gap: 8px; }
.duo.newtype .q { padding: 9px 11px 8px; }
.duo.newtype .q-top { margin-bottom: 4px; }
.duo.newtype .q-stem { margin-bottom: 7px; font-size: 14.5px; line-height: 1.55; }
.duo.newtype .opts.letter-opts { gap: 3px; }
.duo.newtype .opts.letter-opts .opt { padding: 1px 7px; font-size: 13px; }
.duo.newtype .items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.duo.newtype .item { padding: 10px 12px; font-size: 15px; line-height: 1.65; }
.duo.newtype .item .k { font-size: 12px; margin-right: 5px; }

/* 完形选项网格 */
.cloze-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(226px, 1fr));
  gap: 6px;
}
.cloze-grid .q { padding: 8px 10px 7px; }
.cloze-grid .q-top { margin-bottom: 3px; gap: 6px; flex-wrap: wrap; }
.cloze-grid .q-ans { font-size: 10px; padding: 0 5px; }
.cloze-grid .q-ansval { font-size: 10px; padding: 0 4px; }
.cloze-grid .q-tools { gap: 4px; }
.cloze-grid .q-num { padding: 0 6px; font-size: 11.5px; }
.cloze-grid .q-diff { padding: 0 5px; font-size: 10px; }
.cloze-grid .q-sol { font-size: 10px; }
.cloze-grid .q-stem { display: none; }
.cloze-grid .opts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 6px;
}
.cloze-grid .opt {
  padding: 2px 5px; gap: 6px;
  font-size: 14px; line-height: 1.45;
}
.cloze-grid .opt .k {
  width: 1.45em; height: 1.45em; font-size: 10.5px; margin-top: .08em;
}
.cloze-grid .q-ref { margin-top: 5px; font-size: 12px; padding: 6px 8px; grid-column: 1 / -1; }

/* Part B 选项 */
.items { display: flex; flex-direction: column; gap: 10px; }
.item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 10px 13px; font-family: var(--en); font-size: 15px; line-height: 1.62;
}
.item .k { font-family: var(--mono); font-size: 11.5px; color: var(--gold); margin-right: 6px; }
.item.used { opacity: .45; }

/* 写作 */
.wcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 18px 20px; margin-bottom: 14px;
}
.wcard h3 {
  margin: 0 0 8px; font-family: var(--serif); font-size: 16px; letter-spacing: .04em;
}
.wcard p { margin: 0 0 6px; font-size: 14px; line-height: 1.75; }
.wcard .en { font-family: var(--en); font-size: 15.5px; }
.wcard .pts { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* 答题卡 */
.scorebar {
  display: none; position: fixed; right: 20px; bottom: 20px; z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 12px 30px -18px rgba(20, 30, 25, .55);
  padding: 10px 14px; font-size: 12.5px; color: var(--muted);
  align-items: center; gap: 12px;
}
body.show-score .scorebar { display: flex; }
.scorebar b { font-family: var(--mono); font-size: 15px; color: var(--accent); }
.scorebar .sb-score { padding-left: 12px; border-left: 1px solid var(--line); }
.sb-pct.good { color: var(--green); }
.sb-pct.bad { color: var(--red); }
.sb-pct:empty { display: none; }

/* 小节主题 / 译文开关 */
.sec-topic {
  margin: -10px 0 18px; font-size: 13.5px; line-height: 1.7; color: var(--ink);
}
.sec-topic b, .w-topic b {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em;
  color: var(--gold); margin-right: 8px; vertical-align: .05em;
}
.sec-btn {
  appearance: none; cursor: pointer;
  font-family: var(--mono); font-size: 11.5px;
  padding: 3px 10px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  transition: color .15s, border-color .15s;
}
.sec-btn:hover { color: var(--accent); border-color: var(--accent); }
.sec-btn.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.sec-btn:disabled { cursor: default; opacity: .55; }
.sec-btn:disabled:hover { color: var(--muted); border-color: var(--line); }

/* 板块标题右侧的按钮组：桌面端与标题同排，窄屏时整组换到下一行 */
.sec-head .sec-acts { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 「提交本部分」：紧贴板块标题下方，与政治真题的提交按钮同款（小巧、醒目） */
.sec-submit {
  appearance: none; cursor: pointer; margin: -6px 0 14px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em;
  padding: 4px 13px; border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent); background: transparent;
  transition: background .14s, color .14s, border-color .14s;
}
.sec-submit:hover:not(:disabled) { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .sec-submit:hover:not(:disabled) { color: #0e1411; } }
.sec-submit:disabled { color: var(--muted); border-color: var(--line); cursor: default; }
.sec-submit.done { color: var(--green); border-color: var(--green); }

/* 提交后每题的对错标记 */
.q-verdict { font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; }
.q-verdict.ok { color: var(--green); }
.q-verdict.bad { color: var(--red); }
.q.submitted { border-color: color-mix(in srgb, var(--line) 70%, var(--muted)); }
.sec.show-tr .passage .zh { display: block; }

/* 作文配图 */
.wfig-wrap { margin: 14px 0 2px; }
.wfig {
  display: block; max-width: 100%; max-height: 470px;
  margin: 0 auto; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
}
.w-topic { font-size: 13.5px !important; margin: 0 0 10px !important; }

/* 参考范文 */
.w-model { margin: 16px 0 0; }
.w-model-btn {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 7px 13px; border-radius: 4px;
  border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-family: inherit;
  transition: filter .15s, color .15s, background .15s;
}
.w-model-btn span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.w-model-btn:hover { filter: brightness(.97); }
.w-model-btn.on { background: var(--accent); color: #fff; }
.w-model-btn.on span { color: rgba(255,255,255,.78); }
@media (prefers-color-scheme: dark) { .w-model-btn.on { color: #0e1411; } }
.w-model-body {
  margin-top: 12px; padding: 16px 18px 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 4px;
}
.w-model-body[hidden] { display: none; }
.w-model-body p {
  margin: 0 0 11px !important;
  font-family: var(--en); font-size: 15px; line-height: 1.78; color: var(--ink);
}
.w-model-body p:last-child { margin-bottom: 0 !important; }

/* 统计面板 */
.stat-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(18, 24, 20, .42);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.stat-mask[hidden] { display: none; }
.stat-panel {
  width: min(680px, 100%); max-height: 86vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 30px 70px -30px rgba(15, 22, 18, .5);
}
.stat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--surface);
}
.stat-head h3 { margin: 0; font-family: var(--serif); font-size: 16px; letter-spacing: .04em; }
.stat-close {
  appearance: none; cursor: pointer; border: 0; background: none;
  font-size: 22px; line-height: 1; color: var(--muted); padding: 0 4px;
}
.stat-close:hover { color: var(--ink); }
.stat-body { padding: 16px 20px 20px; }
.stat-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-kpi > div {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px;
  background: var(--paper);
}
.stat-kpi span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.stat-kpi b { font-family: var(--mono); font-size: 20px; color: var(--accent); }
.stat-kpi b i { font-style: normal; font-size: 12px; color: var(--muted); }
.stat-kpi b.good { color: var(--green); }
.stat-kpi b.bad { color: var(--red); }
.stat-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stat-table th, .stat-table td { padding: 8px 6px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.stat-table th {
  font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: .04em;
  border-bottom: 1px solid var(--line);
}
.stat-table .num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.stat-table tbody tr:last-child td { border-bottom: 0; }
.stat-tip { margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
@media (max-width: 640px) {
  .stat-kpi { grid-template-columns: 1fr; }
  .stat-table { font-size: 12px; }
}

/* 移动端 */
@media (max-width: 980px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo, .duo.cloze, .duo.newtype { grid-template-columns: minmax(0, 1fr); }
  .duo.cloze, .duo.newtype { height: auto; }
  .duo.cloze .passage, .duo.newtype .passage,
  .duo.cloze .qcol, .duo.newtype .qcol { height: auto; overflow: visible; padding-right: 0; }
  .qcol.sticky { position: static; max-height: none; overflow: visible; }
  .passage { font-size: 16px; }
}
@media (max-width: 640px) {
  .ex-wrap, .paper-head, .paper-body { padding-left: 15px; padding-right: 15px; }
  .ex-mast { padding: 32px 0 24px; gap: 14px; flex-wrap: wrap; }
  .ex-seal { width: 48px; height: 48px; font-size: 23px; }
  .ex-actions { width: 100%; }
  .ex-yhint { display: none; }
  .ex-flow { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; }
  .passage { padding: 16px 15px 18px; }
  .q { padding: 12px 13px 10px; }
  .year-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .scorebar { right: 12px; bottom: 12px; left: 12px; justify-content: center; }
  body.show-score { padding-bottom: 62px; }
}

/* 首页 · 我的练习记录 */
.my-stats {
  margin: 34px 0 8px; padding: 18px 20px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 5px;
}
.my-stats[hidden] { display: none; }
.ms-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.ms-head h2 { margin: 0; font-family: var(--serif); font-size: 18px; letter-spacing: .05em; }
.ms-sub { font-size: 12px; color: var(--muted); }
.ms-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.ms-kpi > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.ms-kpi span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.ms-kpi b { font-family: var(--mono); font-size: 19px; color: var(--accent); }
.ms-kpi b i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.ms-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ms-table th, .ms-table td { padding: 7px 6px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.ms-table th { font-weight: 500; font-size: 11.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.ms-table .num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.ms-table tbody tr:last-child td { border-bottom: 0; }
.ms-table a { color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.ms-table a:hover { color: var(--accent); border-color: currentColor; }
.ms-table .bar-cell { width: 90px; }
.mini-bar { display: block; height: 5px; border-radius: 3px; background: var(--accent); opacity: .75; min-width: 2px; }
@media (max-width: 640px) {
  .ms-kpi { grid-template-columns: 1fr; }
  .ms-table .bar-cell { display: none; }
}

/* ── 试卷页顶部条：板块切换 + 年份（进来就是试卷，不再有「年份列表」中转页） ── */
.ex-bar {
  position: sticky;
  top: var(--sb-h, 48px);
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.ex-bar-in {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
}
.eb-tabs { display: flex; gap: 4px; flex: 0 0 auto; }
.eb-tab {
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.eb-tab:hover { background: var(--surface-2); color: var(--ink); }
.eb-tab.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.eb-tabs:empty { display: none; }
.eb-years {
  display: flex;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.eb-years::-webkit-scrollbar { display: none; }
.eb-yr {
  position: relative;
  flex: 0 0 auto;
  height: 30px;
  min-width: 46px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 15px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  transition: background .15s, color .15s, border-color .15s;
}
.eb-yr:hover { background: var(--surface-2); color: var(--ink); }
.eb-yr.on {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.eb-yr.off { opacity: .35; }
.eb-yr.has::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.eb-side { flex: 0 0 auto; display: flex; gap: 12px; }
.eb-link {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.eb-link:hover { color: var(--accent); border-bottom-color: currentColor; }
@media (max-width: 720px) {
  .ex-bar-in { flex-wrap: wrap; gap: 6px 10px; padding: 8px 15px; }
  .eb-tabs { order: 1; }
  .eb-side { order: 2; margin-left: auto; }
  .eb-years { order: 3; flex-basis: 100%; }
  .eb-yr { min-width: 44px; }
}
.ms-empty { margin: 6px 0 2px; font-size: 13.5px; color: var(--muted); }

/* ---------- 新题型：左文右栏（文章 + 作答卡/选项库并排，右栏跟随滚动） ---------- */
.nt {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(318px, .6fr);
  gap: 24px; align-items: start;
}
.nt-main { min-width: 0; }
.nt .nt-passage {
  font-size: 16.5px; line-height: 1.92; padding: 24px 26px 22px;
}
.nt .nt-passage p { margin: 0 0 13px; text-indent: 1.6em; }
.nt .nt-passage p:last-child { margin-bottom: 0; }
/* 新题型答题框：按题型分别放大（排序最大，小标题次之，七选五/匹配适中），宽度不必相同 */
.nt .nt-passage .blank {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 3.3em; height: 1.95em; vertical-align: .22em;
  font-family: var(--mono); font-size: 13.5px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 5px; padding: 0 .35em; margin: 0 .18em;
}
.nt-order .nt-passage .blank {
  min-width: 5em; height: 2.55em; font-size: 18px;
  border-width: 2px; border-radius: 7px;
}
.nt .nt-passage p.slot-line {
  text-indent: 0; text-align: center; margin: 13px 0;
}
.nt .nt-passage p.slot-line .blank { min-width: 5.8em; height: 2.8em; font-size: 19px; }
.nt-head .nt-passage .blank { min-width: 4em; height: 2.15em; font-size: 15px; }
.nt-insert .nt-passage .blank,
.nt-match .nt-passage .blank { min-width: 3.5em; height: 2em; font-size: 14px; }
.nt-side {
  position: sticky; top: calc(var(--sb-h, 48px) + 58px);
  max-height: calc(100vh - var(--sb-h, 48px) - 74px); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 12px;
  padding: 0 3px 54px 0; scrollbar-width: thin;
}
.nt-side::-webkit-scrollbar { width: 6px; }
.nt-side::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.nt-side h3 {
  margin: 0 0 6px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .1em; color: var(--muted); text-transform: uppercase;
}
.nt-answers { display: flex; flex-direction: column; gap: 6px; order: 1; }
.nt-answers .q { padding: 8px 10px 7px; }
.nt-answers .q-top { margin-bottom: 5px; gap: 6px; }
/* 多项对应的人名 / 正误判断的陈述句要留在作答卡里，否则只剩题号，跟原文对不上 */
.nt-answers .q-stem {
  margin: 1px 0 8px;
  font-family: var(--en); font-size: 14px; font-weight: 500;
  line-height: 1.45; color: var(--ink);
}
/* 正误判断的陈述句较长，收小一点；True/False 横排，五张卡不至于太高 */
.nt-tf .nt-answers .q-stem { font-family: var(--sans); font-size: 12.5px; font-weight: 400; line-height: 1.5; }
.nt-tf .nt-answers .opts { flex-direction: row; gap: 8px; }
.nt-tf .nt-answers .opt { padding: 3px 10px 3px 7px; }
.nt-answers .opts.letter-opts { gap: 4px; }
.nt-answers .opts.letter-opts .opt { padding: 3px 9px; font-size: 13.5px; }
.nt-order .nt-answers .opts.letter-opts .opt { padding: 5px 13px; font-size: 15px; }
.nt-opts {
  order: 2;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 12px 13px 12px;
}
.nt-opts .item {
  font-size: 14px; line-height: 1.7; padding: 8px 0;
  background: none; border: 0; border-top: 1px dashed var(--line); border-radius: 0;
}
.nt-order .nt-opts .item { font-size: 15px; line-height: 1.78; padding: 11px 0; }
.nt-opts .item:first-of-type { border-top: 0; padding-top: 1px; }
.nt-opts .item .k {
  display: inline-block; width: 1.7em; font-family: var(--mono);
  font-size: 13px; color: var(--accent); font-weight: 600;
}

/* ---------- 新题型·排序：左栏通读全部段落，右栏只放试卷上的排列顺序 ---------- */
.nt-order { grid-template-columns: minmax(0, 1.5fr) minmax(330px, .62fr); }
/* 选项段落挪到主栏后可以放开写：字大一行、行距松一点，不再挤在 300px 的窄栏里 */
.nt-opts-wide { padding: 20px 24px 22px; }
.nt-opts-wide h3 { margin: 0 0 12px; }
.nt-opts-wide .item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 14px 0; border-top: 1px dashed var(--line);
  font-size: 16.5px; line-height: 1.85;
}
.nt-opts-wide .item:first-of-type { border-top: 0; padding-top: 2px; }
.nt-opts-wide .item .k {
  flex: none; width: 1.45em; padding-top: .22em; text-align: center;
  font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--accent);
}
.nt-opts-wide .item .item-txt { flex: 1; min-width: 0; }
.nt-opts-wide .item.is-given .k { color: var(--gold); }
.item-tag {
  flex: none; margin-top: .45em; padding: 0 6px; border-radius: 3px;
  font-family: var(--mono); font-size: 10.5px; line-height: 1.7;
  color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line));
  white-space: nowrap;
}

/* 右侧答题顺序条 */
.nt-sheet {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 14px 16px 14px;
}
.nt-sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.nt-sheet-head h3 { margin: 0; }
.nt-sheet-head .q-sol { margin-left: auto; }
.nt-seq { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.seq-slot { position: relative; }
.seq-row {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 2px 0; background: none; border: 0; cursor: pointer; text-align: left;
}
.seq-n {
  flex: none; padding: 1px 7px; border-radius: 3px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
}
.seq-row .blank {
  flex: 1; display: flex; align-items: center; justify-content: center;
  height: 2.45em; margin: 0;
  font-family: var(--mono); font-size: 17px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  border: 1.5px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 6px; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.seq-row:hover .blank { border-color: var(--accent); }
/* 未作答时只显示一个横杠，颜色压下去，别抢作答后的字母 */
.seq-row .blank { color: var(--muted); }
.seq-slot.open .seq-row .blank { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.seq-row .blank.done { color: #fff; background: var(--accent); border-color: var(--accent); }
@media (prefers-color-scheme: dark) { .seq-row .blank.done { color: #0e1411; } }
.seq-row .blank.mark { color: var(--red); background: var(--red-soft); border-color: var(--red); }
.seq-row .blank.ans { color: var(--green); background: var(--green-soft); border-color: var(--green); }
.seq-caret { flex: none; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.seq-slot.open .seq-caret { color: var(--accent); }
.seq-given { display: flex; align-items: center; gap: 8px; padding: 1px 0 1px 2px; }
.seq-k {
  flex: none; width: 2.1em; padding: 2px 0; text-align: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line));
  border-radius: 4px; background: color-mix(in srgb, var(--gold) 8%, transparent);
}
.seq-tag { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.seq-picks {
  display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  padding: 4px 0 8px 33px;
}
.seq-slot.open .seq-picks { display: grid; }
.seq-picks .opt { justify-content: center; padding: 5px 0; border-radius: 3px; }
.seq-picks .opt .k { width: 2em; height: 2em; margin-top: 0; font-size: 12.5px; }
.nt-sheet-tip {
  margin: 12px 0 0; padding-top: 9px; border-top: 1px dashed var(--line);
  font-size: 11.5px; line-height: 1.7; color: var(--muted);
}
@media (max-width: 980px) {
  .nt-order { grid-template-columns: minmax(0, 1fr); }
  .nt-opts-wide { padding: 16px 16px 16px; }
  .nt-opts-wide .item { font-size: 16px; padding: 12px 0; }
  .nt-order .nt-sheet { margin-top: 4px; }
}


/* ---------- 翻译：左原文（划线）+ 右作答卡 ---------- */
.tr {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, .68fr);
  gap: 24px; align-items: start;
}
.tr-main { min-width: 0; }
.tr .tr-passage { font-size: 16.5px; line-height: 2; padding: 24px 26px 22px; }
.tr .tr-passage p { margin: 0 0 12px; text-indent: 1.6em; }
.tr .tr-passage p:last-child { margin-bottom: 0; }
.tr-u {
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  cursor: pointer; transition: background .15s;
}
.tr-u:hover { background: color-mix(in srgb, var(--gold) 22%, transparent); }
.tr-u.on { background: color-mix(in srgb, var(--gold) 34%, transparent); }
.tr-u sup { font-family: var(--mono); font-size: 10px; color: var(--gold); margin-left: 2px; text-decoration: none; }
.tr-side {
  position: sticky; top: calc(var(--sb-h, 48px) + 58px);
  max-height: calc(100vh - var(--sb-h, 48px) - 74px); overflow-y: auto; overscroll-behavior: contain;
  padding: 0 3px 54px 0; scrollbar-width: thin;
}
.tr-side::-webkit-scrollbar { width: 6px; }
.tr-side::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.tr-qs { display: flex; flex-direction: column; gap: 8px; }
.q-tr { padding: 9px 11px 9px; }
.q-tr .q-top { margin-bottom: 0; }
.q-tr.revealed .q-top { margin-bottom: 7px; }
.q-tr .q-ref { font-size: 13.5px; line-height: 1.75; margin-top: 0; }
.q-tr.focus { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
.tr-hint { font-size: 10.5px; color: var(--muted); font-family: var(--mono); }

/* 整段翻译（英语二）：单栏，作答卡接在原文下方 */
.tr.tr-solo { grid-template-columns: minmax(0, 1fr); }
.tr.tr-solo .tr-side {
  position: static; max-height: none; overflow: visible;
  padding: 0; margin: 0 auto; max-width: 880px; width: 100%;
}
.tr.tr-solo .tr-passage { max-width: 880px; margin: 0 auto; }
.tr.tr-solo .tr-qs { margin: 14px auto 0; max-width: 880px; }
.tr.tr-solo .q-tr { display: flex; align-items: center; gap: 10px; }
.tr.tr-solo .q-tr .q-top { flex: 1; margin: 0; }
.tr.tr-solo .q-tr .q-ref { flex-basis: 100%; }

/* 窄屏：退回单栏，选项在前、作答卡在后（先看选项再填） */
@media (max-width: 980px) {
  .nt, .tr { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nt-side, .tr-side {
    position: static; max-height: none; overflow: visible; padding-right: 0;
  }
  .nt-answers { order: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
  .nt-opts { order: 1; }
  .nt .nt-passage, .tr .tr-passage { font-size: 16px; padding: 18px 16px 16px; line-height: 1.9; }
  .tr-qs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
}

/* ---------- 全文译文（点标题栏「全文译文」展开，默认收起） ---------- */
.tr-box {
  margin-top: 18px; padding: 20px 24px 22px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px;
  max-width: 880px;
}
.tr-box[hidden] { display: none; }
.tr-box-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding-bottom: 9px; margin-bottom: 14px; border-bottom: 1px dashed var(--line);
}
.tr-box-head b {
  font-family: var(--serif); font-size: 15px; color: var(--ink); letter-spacing: .04em;
}
.tr-box-head span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.tr-box p {
  margin: 0 0 11px; font-size: 14.5px; line-height: 1.95; color: var(--ink);
  text-indent: 2em; font-family: var(--sans);
}
.tr-box p:last-child { margin-bottom: 0; }
.tr-box .zh-i {
  display: inline-block; min-width: 1.7em; margin-right: .45em; text-indent: 0;
  font-family: var(--mono); font-size: 10.5px; color: var(--gold); vertical-align: .1em;
}
.tr-box .en-term { font-family: var(--en); }

@media (max-width: 720px) {
  .tr-box { padding: 16px 16px 18px; }
  .tr-box p { font-size: 14px; line-height: 1.9; }
}
.tr-box .zh-blank {
  display: inline-block; min-width: 2.1em; margin: 0 .18em; padding: 0 .3em;
  font-family: var(--mono); font-size: .78em; line-height: 1.5; text-align: center;
  color: var(--accent); background: var(--accent-soft); border-radius: 3px;
  text-indent: 0; vertical-align: .08em;
}

/* 移动端：底部浮动分数条不遮挡正文 */
@media (max-width: 720px) {
  body.show-score .sec:last-child { padding-bottom: 62px; }
  body.show-score .scorebar { right: 10px; bottom: 10px; padding: 8px 11px; font-size: 11.5px; }
}

@media (max-width: 720px) {
  /* 手机屏上标题（如「阅读 · Text 1 · 驴的驯化史」）几乎占满一行，
     按钮若跟着挤在标题右边会把一行撑成三行，这里让标题独占、按钮整组下移 */
  .sec-head h2 { flex: 1 0 100%; order: 2; }
  .sec-head .lbl { order: 1; }
  .sec-head .sec-acts { order: 3; }
  .sec-head .pts { order: 4; }
}
