/* ===== 基础 ===== */
* { box-sizing: border-box; }
:root {
  --fs: 15px;
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #111315;
  --ink2: #4a4f55;
  --ink3: #868d94;
  --line: #e3e5e8;
  --accent: #1c5fbf;
  --accent-soft: #eaf1fb;
  --good: #1e6b45;
  --good-soft: #e8f4ed;
  --bad: #b4341f;
  --bad-soft: #fdecea;
  --shadow: 0 1px 2px rgba(0,0,0,.04);
}
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 -apple-system, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }

/* ===== 顶栏 ===== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 0 28px; height: 56px;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .02em; cursor: pointer; }
.brand .logo { color: var(--ink); font-size: 15px; }
.brand .name { font-size: 15px; }
.tabs { display: flex; gap: 2px; }
.tab {
  border: 0; background: transparent; color: var(--ink2);
  padding: 6px 14px; border-radius: 8px; font-size: 14px;
}
.tab:hover { background: rgba(0,0,0,.04); color: var(--ink); }
.tab.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.topright { margin-left: auto; }
.mini { font-size: 12.5px; color: var(--ink3); }

/* ===== 视图容器 ===== */
.view { max-width: 1180px; margin: 0 auto; padding: 0 28px 90px; }

/* ===== 首页 ===== */
.hero { padding: 54px 0 10px; }
.hero h1 {
  font-family: inherit;
  font-size: 40px; font-weight: 500; letter-spacing: -.02em; margin: 0 0 6px;
}
.hero .sub { color: var(--ink3); font-size: 14px; margin: 0; }

/* ===== 筛选 ===== */
.filters { margin: 28px 0 8px; display: flex; flex-direction: column; gap: 10px; }
.frow { display: flex; align-items: center; gap: 14px; }
.flabel { white-space: nowrap; min-width: 48px; font-size: 12.5px; color: var(--ink3); flex: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink2); padding: 5px 13px; border-radius: 20px; font-size: 13px;
  transition: .14s;
}
.chip:hover { border-color: #cfc5b6; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.searchrow { margin-top: 6px; }
#search {
  flex: 1; border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; padding: 10px 14px; font-size: 14px; outline: none;
}
#search:focus { border-color: var(--accent); }

/* ===== 按钮 ===== */
.btn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 9px 16px; border-radius: 9px; font-size: 13.5px; transition: .14s;
}
.btn:hover { border-color: #cfc5b6; background: #fff; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { opacity: .85; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 11px; font-size: 12.5px; }
.btn.full { width: 100%; margin-top: 8px; }

/* ===== 列表 ===== */
.sect { margin-top: 26px; }
.bandhead {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink3); margin: 26px 0 12px; padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 10px;
}
.bandhead .cnt { letter-spacing: 0; text-transform: none; font-size: 12px; color: var(--ink3); opacity: .8; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  padding: 13px 15px; text-align: left; transition: .15s; position: relative;
  display: flex; flex-direction: column; gap: 6px;
}
.card:hover { border-color: #d3c8b7; box-shadow: var(--shadow); transform: translateY(-1px); }
.card .no {
  font-size: 11px; color: var(--ink3); font-variant-numeric: tabular-nums;
}
.card .ttl { font-size: 13.5px; line-height: 1.45; font-weight: 500; }
.card .tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.tag {
  font-size: 10.5px; padding: 1px 7px; border-radius: 5px;
  background: #f0ece5; color: var(--ink2);
}
.tag.vip { background: #f6e6d6; color: #8a4f1e; }
.tag.done { background: var(--good-soft); color: var(--good); }
.tag.risk { background: var(--bad-soft); color: var(--bad); }
.card.done { border-color:#e2b4ca !important; background:#fdf6f9 !important; }
.card.done::after { content:"已做"; position:absolute; top:10px; right:12px;
  font-size:10.5px; color:#c94b8a; background:#f7e4ee; border-radius:20px;
  padding:1px 8px; font-weight:600; }
body[data-theme="dark"] .card.done { background:#2a1d25 !important; border-color:#7a3d57 !important; }
.card.riskcard { border-color: #ecd6cf; }

/* ===== 答题页 ===== */
.quizhead { display: flex; align-items: flex-start; gap: 16px; padding: 26px 0 16px; }
.quizhead .back { margin-top: 4px; flex: none; }
.qtitle h2 {
  font-family: inherit;
  font-size: 22px; font-weight: 500; margin: 0 0 3px; letter-spacing: -.01em;
}
.qmeta { font-size: 12.5px; color: var(--ink3); }
.qscore { margin-left: auto; text-align: right; font-size: 13px; color: var(--ink2); flex: none; }
.qscore .num { font-size: 22px; font-weight: 600; color: var(--ink); }

/* 音频条 */
.audiobar {
  position: sticky; top: 56px; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.playbtn {
  width: 34px; height: 34px; border-radius: 50%; border: 0; flex: none;
  background: var(--ink); color: var(--bg); font-size: 13px; line-height: 1;
  display: grid; place-items: center;
}
.playbtn:hover { opacity: .85; }
.progress {
  flex: 1; height: 6px; background: #e9e3d9; border-radius: 3px;
  position: relative; cursor: pointer;
}
.pfill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); border-radius: 3px; }
.time { font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; flex: none; }
.sel {
  border: 1px solid var(--line); border-radius: 7px; background: var(--card);
  padding: 4px 6px; font-size: 12.5px; color: var(--ink2); outline: none;
}

.quizbody { display: grid; grid-template-columns: 1fr 250px; gap: 22px; align-items: start; }
.paper {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 34px 40px; box-shadow: var(--shadow);
}
.sidebar { position: sticky; top: 132px; display: flex; flex-direction: column; gap: 14px; }
.side-block {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px;
}
.side-title { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-bottom: 10px; }
.qgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.qcell {
  aspect-ratio: 1; border: 1px solid var(--line); border-radius: 6px; background: #faf8f4;
  font-size: 12px; color: var(--ink2); display: grid; place-items: center; padding: 0;
}
.qcell.ans { background:#f7e4ee !important; border-color:#e2b4ca !important;
  color:#c94b8a !important; font-weight:700 !important; }
.qcell.ans:hover { background:#f2d6e5 !important; }
body[data-theme="dark"] .qcell.ans { background:#43202f !important; border-color:#7a3d57 !important; color:#f0a8c8 !important; }
.qcell.ok { background: var(--good-soft); border-color: #b9d6c6; color: var(--good); font-weight: 600; }
.qcell.no { background: var(--bad-soft); border-color: #e8c6bd; color: var(--bad); font-weight: 600; }
.timerblock { text-align: center; }
.bigtime { font-size: 26px; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: .03em; color: var(--ink); }

/* ===== 题目渲染 ===== */
.group { margin-bottom: 34px; }
.gtitle {
  font-weight: 600; font-size: 14.5px; margin: 0 0 6px;
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.ginstr { font-size: 13.5px; color: var(--ink2); margin: 0 0 16px; line-height: 1.6; }
.bl { font-size: 14px; margin: 3px 0; line-height: 1.9; }
.bl.l1 { padding-left: 18px; }
.bl.l2 { padding-left: 36px; }
.bl.l3 { padding-left: 54px; }
.bl.bullet::before { content: "•"; margin-right: 8px; color: var(--ink3); }

/* 填空 */
input.blank {
  border: 0; border-bottom: 2px solid #1f2229; background: transparent;
  font: inherit; font-size: 14px; color: var(--accent); font-weight: 600;
  padding: 0 4px; min-width: 92px; text-align: center; outline: none;
  transition: .15s;
}
input.blank:focus { border-bottom-color: var(--accent); background: #fdfaf6; }
input.blank.ok { border-bottom-color: var(--good); color: var(--good); background: var(--good-soft); }
input.blank.no { border-bottom-color: var(--bad); color: var(--bad); background: var(--bad-soft); }
.blankwrap { display: inline-flex; align-items: baseline; gap: 4px; }
.reveal {
  font-size: 12px; color: var(--good); background: var(--good-soft);
  padding: 1px 6px; border-radius: 4px; margin-left: 3px; white-space: nowrap;
}

/* 选项 */
.qitem { margin: 16px 0; }
.qstem { font-size: 14px; margin-bottom: 7px; display: flex; gap: 8px; }
.qstem .qno { color: var(--accent); font-weight: 600; flex: none; min-width: 22px; }
.opts { display: flex; flex-direction: column; gap: 4px; padding-left: 30px; }
.opt {
  display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px;
  padding: 5px 9px; border-radius: 7px; cursor: pointer; border: 1px solid transparent;
  line-height: 1.5;
}
.opt:hover { background: #f7f4ef; }
.opt input { margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.opt .lt { font-weight: 600; color: var(--ink2); flex: none; width: 15px; }
.opt.ok { background: var(--good-soft); border-color: #c9e0d2; }
.opt.no { background: var(--bad-soft); border-color: #eccac0; }
.opt.correct { box-shadow: inset 0 0 0 1px #b9d6c6; }

/* 匹配 / 地图 */
.matchrow { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; }
.matchrow .mno { color: var(--accent); font-weight: 600; width: 22px; flex: none; }
.matchrow .mtext { flex: 1; }
select.msel {
  border: 1px solid #c9bfae; border-radius: 7px; background: var(--card);
  padding: 4px 8px; font-size: 13.5px; color: var(--ink); outline: none; min-width: 62px;
}
select.msel.ok { border-color: var(--good); background: var(--good-soft); color: var(--good); }
select.msel.no { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.optlist {
  background: #faf8f4; border: 1px solid var(--line); border-radius: 9px;
  padding: 12px 15px; margin: 1px 0 14px; font-size: 13.5px;
}
.optlist .orow { display: flex; gap: 9px; padding: 2px 0; }
.optlist .orow b { color: var(--ink2); flex: none; width: 16px; }
.mapimg { max-width: 100%; border-radius: 9px; border: 1px solid var(--line); margin: 10px 0 16px; display: block; }

/* ===== 原文 ===== */
.transcript {
  margin-top: 26px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 30px; box-shadow: var(--shadow);
}
.transcript h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin: 0 0 16px; font-weight: 500; }
.tline { display: flex; gap: 14px; padding: 4px 0; font-size: 13.5px; line-height: 1.75; border-radius: 6px; }
.tline:hover { background: #faf8f4; }
.tline .tt { color: var(--ink3); font-size: 10.5px; font-variant-numeric: tabular-nums; flex: none; width: 92px; padding-top: 4px; cursor: pointer; white-space: nowrap; overflow: hidden; letter-spacing: -.02em; }
.tline .tc { flex: 1; }
.tline .cn { display: block; color: var(--ink3); font-size: 12.5px; margin-top: 1px; }
.tline mark { background: #fbeec9; color: var(--ink); padding: 0 2px; border-radius: 3px; }

/* ===== 统计/错题 ===== */
.pagetitle {
  font-family: inherit;
  font-size: 28px; font-weight: 500; margin: 44px 0 26px;
}
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 12px; margin-bottom: 30px; }
.statcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.statcard .k { font-size: 12px; color: var(--ink3); margin-bottom: 6px; }
.statcard .v { font-size: 28px; font-weight: 300; letter-spacing: -.02em; }
.statcard .v small { font-size: 13px; color: var(--ink3); margin-left: 3px; }
.barrow { margin: 9px 0; }
.barrow .bl2 { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink2); margin-bottom: 4px; }
.bartrack { height: 7px; background: #ece7de; border-radius: 4px; overflow: hidden; }
.barfill { height: 100%; background: var(--accent); border-radius: 4px; transition: .4s; }
.empty { color: var(--ink3); font-size: 14px; padding: 40px 0; text-align: center; }
.wrongitem {
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  padding: 14px 17px; margin-bottom: 9px; display: flex; gap: 14px; align-items: center;
}
.wrongitem .wi-main { flex: 1; }
.wrongitem .wi-t { font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.wrongitem .wi-d { font-size: 12.5px; color: var(--ink3); }
.wrongitem .wi-da { color: var(--bad); }
.wrongitem .wi-ca { color: var(--good); }

@media (max-width: 900px) {
  .quizbody { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .view { padding: 0 16px 70px; }
  .topbar { padding: 0 16px; gap: 12px; }
  .paper { padding: 20px 18px 30px; }
  .hero h1 { font-size: 30px; }
}

/* ===== 表格题 ===== */
.qtable {
  width: 100%; border-collapse: collapse; margin: 14px 0 18px;
  font-size: 13.5px; line-height: 1.7;
}
.qtable td {
  border: 1px solid #ded6c9; padding: 8px 11px; vertical-align: top;
}
.qtable tr:first-child td { background: #faf8f4; font-weight: 600; }
.qtable td > div { margin: 1px 0; }
input.blank { min-width: 78px; }

/* ================= 机考模式：主题 / 字号 ================= */
body[data-theme="dark"] {
  --bg: #131313; --card: #1c1c1c; --ink: #e9e7e2; --ink2: #a7a39b;
  --ink3: #75716a; --line: #2d2d2d; --accent: #c99a6a; --accent-soft: #2a2521;
  --good: #5fbf8a; --good-soft: #172a20; --bad: #e07a60; --bad-soft: #2c1b16;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}
body[data-theme="dark"] .topbar { background: rgba(19,19,19,.92); }
body[data-theme="dark"] .qtable td { border-color: #333; }
body[data-theme="dark"] .qtable tr:first-child td { background: #232323; }
body[data-theme="dark"] input.blank { border-bottom-color: #4a4a4a; }
body[data-theme="dark"] .optlist,
body[data-theme="dark"] .qcell { background: #232323; }
body[data-theme="dark"] .progress { background: #333; }

body[data-theme="amber"] {
  --bg: #0f0e0a; --card: #17150f; --ink: #f2cf5b; --ink2: #c4a94e;
  --ink3: #8a7638; --line: #2b2619; --accent: #f2cf5b; --accent-soft: #241f12;
  --good: #8fd08a; --good-soft: #17240f; --bad: #e08a60; --bad-soft: #2a1c11;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.4);
}
body[data-theme="amber"] .topbar { background: rgba(15,14,10,.92); }
body[data-theme="amber"] .qtable td { border-color: #2b2619; }
body[data-theme="amber"] .qtable tr:first-child td { background: #1e1b12; }
body[data-theme="amber"] input.blank { border-bottom-color: #4a4230; color: var(--ink); }
body[data-theme="amber"] .optlist,
body[data-theme="amber"] .qcell { background: #1e1b12; }

.topctl { display: flex; align-items: center; gap: 6px; margin-left: 14px; }
.icobtn {
  border: 1px solid var(--line); background: transparent; color: var(--ink2);
  width: 30px; height: 30px; border-radius: 7px; font-size: 13px;
  display: grid; place-items: center; padding: 0;
}
.icobtn:hover { background: var(--accent-soft); color: var(--ink); }
.icobtn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* 字号档 */
body.fs-s .paper, body.fs-s .transcript { font-size: 13px; }
body.fs-s .bl, body.fs-s .qstem, body.fs-s .opt { font-size: 12.8px; }
body.fs-l .paper, body.fs-l .transcript { font-size: 16.5px; }
body.fs-l .bl, body.fs-l .qstem, body.fs-l .opt { font-size: 15.5px; }
body.fs-xl .paper, body.fs-xl .transcript { font-size: 18.5px; }
body.fs-xl .bl, body.fs-xl .qstem, body.fs-xl .opt { font-size: 17px; }

/* ================= 倒计时 / 考试态 ================= */
.exambar {
  position: sticky; top: 0; z-index: 60; height: 0; overflow: visible;
}
.clock {
  display: flex; align-items: center; gap: 8px;
  font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600;
  color: var(--ink);
}
.clock.warn { color: #fff; background: #c0392b; padding: 3px 12px; border-radius: 7px; }
.clock.warn::before { content: "⏱"; font-size: 13px; }
body.exam-alert::after {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 4px;
  background: #c0392b; z-index: 200; animation: pulse 1s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* 顶栏计时位置 */
.quizhead { align-items: center; }
.headtimer {
  font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 7px; color: var(--ink2);
}
.headtimer.warn { color: #fff; background: #c0392b; padding: 3px 10px; border-radius: 7px; }

/* ================= 待复查标记 ================= */
.flagbtn {
  border: 0; background: transparent; color: var(--ink3); font-size: 13px;
  padding: 2px 5px; border-radius: 5px; flex: none;
}
.flagbtn:hover { background: var(--accent-soft); }
.flagbtn.on { color: #d08a2c; }
.qcell.flag { box-shadow: inset 0 -2px 0 #d08a2c; }
.qcell.flag::after { content: "▲"; position: absolute; font-size: 7px; color: #d08a2c; }
.qstem { position: relative; }

/* ================= 选中即弹 ================= */
#selbar {
  position: fixed; z-index: 300; display: none; gap: 2px;
  background: var(--card); border: 1px solid var(--line); border-radius: 9px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18); padding: 4px;
}
#selbar button {
  border: 0; background: transparent; color: var(--ink); font-size: 12.5px;
  padding: 5px 11px; border-radius: 6px; white-space: nowrap;
}
#selbar button:hover { background: var(--accent-soft); }

.hl { background: #fbeec9; color: inherit; border-radius: 2px; padding: 0 1px; }
body[data-theme="dark"] .hl { background: #4a3d1a; color: #f0e6c8; }
body[data-theme="amber"] .hl { background: #3d3315; color: #f7dd8a; }

/* ================= 笔记面板 ================= */
.notepanel {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 15px; max-height: 46vh; overflow-y: auto;
}
.notepanel .nt { font-size: 12px; color: var(--ink3); margin-bottom: 8px; letter-spacing: .08em; text-transform: uppercase; }
.noteitem { font-size: 12.5px; line-height: 1.6; padding: 7px 9px; border-radius: 7px; background: var(--accent-soft); margin-bottom: 6px; position: relative; }
.noteitem .nx { position: absolute; right: 6px; top: 4px; cursor: pointer; color: var(--ink3); font-size: 11px; }
.noteitem .ntime { color: var(--ink3); font-size: 11px; display: block; margin-top: 3px; }

/* ================= 分屏 ================= */
.splitwrap { display: flex; gap: 0; align-items: stretch; }
.splitwrap .paper { flex: 1 1 auto; min-width: 320px; }
.splitbar {
  width: 14px; cursor: col-resize; flex: none; display: flex; align-items: center; justify-content: center;
  position: relative; border-radius: 7px; transition: background .15s;
}
.splitbar::after { content: ""; width: 4px; height: 92px; border-radius: 2px;
  background: #c9c2dc; transition: background .15s, width .15s; }
.splitbar::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 18px; height: 40px; border-radius: 6px; background-color: #fff; border: 1.5px solid #c2b8d8;
  box-shadow: 0 2px 6px rgba(90,70,130,.16);
  background-image: radial-gradient(circle, #a99cc4 1.1px, transparent 1.3px);
  background-size: 7px 8px; background-position: 50% 50%; background-repeat: repeat;
  z-index: 2; transition: border-color .15s, box-shadow .15s; }
.splitbar:hover { background: #f0ecf8; }
.splitbar:hover::after { background: #c94b8a; width: 5px; }
.splitbar:hover::before { border-color: #c94b8a; box-shadow: 0 3px 10px rgba(201,75,138,.25); }
.splitwrap .transcript { flex: 0 0 46%; margin-top: 0; overflow-y: auto; max-height: 78vh; }

/* ============================================================
   阅读模块（reading.html）
   ============================================================ */
main { max-width: 1320px; margin: 0 auto; padding: 0 28px 80px; }
.logo { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
nav.tabs a.tab { text-decoration: none; }
.tab.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.topright { display: flex; align-items: center; gap: 8px; }
.iconbtn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink2);
  height: 28px; min-width: 30px; padding: 0 8px; border-radius: 7px; font-size: 12.5px;
}
.iconbtn:hover { border-color: var(--ink3); color: var(--ink); }

/* 列表 */
.hero h1 { font-size: 38px; }
.filters { display: flex; flex-direction: column; gap: 8px; margin: 22px 0 14px; }
.frow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flabel { white-space: nowrap; min-width: 48px; font-size: 12px; color: var(--ink3); }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink2);
  padding: 4px 13px; border-radius: 999px; font-size: 13px;
}
.chip:hover { border-color: var(--ink3); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 500; }
.searchrow { display: flex; gap: 10px; margin-bottom: 26px; }
.search {
  flex: 1; height: 38px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 14px;
}
.search:focus { outline: none; border-color: var(--accent); }
.groupsec { margin-bottom: 26px; }
.grouphead {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; letter-spacing: .06em; color: var(--ink3);
  padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid var(--line);
}
.gcount { font-size: 11.5px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; }
.itemcard {
  text-align: left; background: var(--card); border: 1px solid var(--line);
  border-radius: 11px; padding: 14px 15px 13px; transition: .15s; box-shadow: var(--shadow);
}
.itemcard:hover { border-color: var(--accent); transform: translateY(-1px); }
.itemcard.done { background: linear-gradient(180deg, var(--good-soft), var(--card) 60%); }
.itop { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink3); margin-bottom: 6px; }
.ino { font-weight: 600; letter-spacing: .04em; }
.ititle { font-size: 14.5px; font-weight: 500; line-height: 1.42; margin-bottom: 9px; color: var(--ink); }
.itags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--bg); color: var(--ink3); border: 1px solid var(--line); }
.tag.hot { color: var(--accent); border-color: #dcc9b4; background: var(--accent-soft); }
.tag.ok { color: var(--good); border-color: #b9d6c6; background: var(--good-soft); }

/* 答题头 */
.quizhead { display: flex; align-items: center; gap: 16px; padding: 22px 0 14px; }
.qtitle h2 { font-family: inherit; font-size: 17px; font-weight: 650; margin: 0; letter-spacing: -.01em; }
.qmeta { font-size: 12px; color: var(--ink3); margin-top: 2px; }
.headright { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.timer {
  font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600;
  padding: 4px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--ink);
}
.timer.warn { background: #c0392b; border-color: #c0392b; color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .62; } }

/* 分屏 */
.splitwrap { display: flex; gap: 0; align-items: stretch; }
.pane { display: flex; flex-direction: column; min-width: 260px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.pane#rpassage { flex: 0 0 50%; }
.pane#rquestions { flex: 1 1 auto; }
.panehead {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 15px; border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3);
  background: var(--bg);
}
.panehint { text-transform: none; letter-spacing: 0; font-size: 11px; opacity: .8; }
.panebody { padding: 18px 20px 26px; overflow-y: auto; max-height: 76vh; }
.splitbar {
  flex: 0 0 16px; cursor: col-resize; display: flex; align-items: center; justify-content: center;
  position: relative; border-radius: 8px; transition: background .15s;
}
.splitbar::after { content: ""; width: 4px; height: 96px; border-radius: 2px;
  background: #c9c2dc; transition: background .15s, width .15s; }
.splitbar::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 20px; height: 44px; border-radius: 7px; background-color: #fff; border: 1.5px solid #c2b8d8;
  box-shadow: 0 2px 6px rgba(90,70,130,.16);
  background-image: radial-gradient(circle, #a99cc4 1.1px, transparent 1.3px);
  background-size: 7px 8px; background-position: 50% 50%; background-repeat: repeat;
  z-index: 2; transition: border-color .15s, box-shadow .15s; }
.splitbar:hover { background: #f0ecf8; }
.splitbar:hover::after { background: #c94b8a; width: 5px; }
.splitbar:hover::before { border-color: #c94b8a; box-shadow: 0 3px 10px rgba(201,75,138,.25); }

/* 文章排版 */
#passageBody h2, #passageBody h3 { font-family: inherit; font-weight: 500; }
#passageBody h2 { font-size: 19px; margin: 0 0 10px; }
#passageBody h3 { font-size: 17px; margin: 16px 0 10px; }
#passageBody p { margin: 0 0 12px; line-height: 1.75; }
#passageBody .paragraph-wrapper { margin-bottom: 14px; }
#passageBody .paragraph-dropzone { position: relative; padding-left: 26px; border-left: 2px solid transparent; }
#passageBody .paragraph-dropzone.over { border-left-color: var(--accent); background: var(--accent-soft); }
#passageBody .paragraph-label { display: none; }
.para-letter {
  position: absolute; left: -2px; top: 2px; font-weight: 700; font-size: 12px;
  color: var(--accent); background: var(--accent-soft); width: 19px; height: 19px;
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
}
#passageBody .dropzone { min-height: 26px; }
#passageBody .dropped-items:empty { min-height: 24px; }
#passageBody .dropped-items:empty::before {
  content: "↳ 拖标题到这里（Q" attr(data-q) "）";
  font-size: 11.5px; color: var(--ink3); opacity: .55;
  display: inline-block; padding: 2px 10px; border: 1px dashed var(--line);
  border-radius: 6px; margin-top: 2px;
}
#passageBody .dropzone.over .dropped-items::before { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* 题目区 */
#questionsBody h4 { font-size: 14px; letter-spacing: .02em; margin: 18px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
#questionsBody h4:first-child { margin-top: 0; }
#questionsBody p { margin: 0 0 10px; line-height: 1.65; }
#questionsBody ul { margin: 0 0 12px; padding-left: 20px; }
#questionsBody li { margin-bottom: 4px; }
#questionsBody .question-item { margin-bottom: 16px; }
#questionsBody .radio-options { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 0 18px; }
#questionsBody .radio-options label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
#questionsBody .radio-options label:hover { background: var(--bg); }
#questionsBody label.right { background: var(--good-soft); }
#questionsBody label.wrong { background: var(--bad-soft); }
#questionsBody input.blank {
  border: 0; border-bottom: 2px solid #1f2229; background: transparent;
  color: var(--ink); font: inherit; font-size: 14px; min-width: 110px;
  padding: 1px 5px; margin: 0 3px; border-radius: 0; transition: .15s;
}
#questionsBody input.blank:hover { border-bottom-color: var(--accent); background: rgba(201,75,138,.04); }
#questionsBody input.blank::placeholder { color: var(--ink3); }
#questionsBody input.blank:focus { outline: none; border-bottom-color: var(--accent); border-bottom-width: 2.5px; background: rgba(201,75,138,.07); }
#questionsBody input.blank.right { border-bottom-color: var(--good); color: var(--good); background: var(--good-soft); }
#questionsBody input.blank.wrong { border-bottom-color: var(--bad); color: var(--bad); background: var(--bad-soft); }
#questionsBody table { border-collapse: collapse; width: 100%; margin: 10px 0 16px; font-size: 13.5px; }
#questionsBody th, #questionsBody td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
#questionsBody th { background: var(--bg); font-weight: 500; font-size: 12.5px; }
#questionsBody input[type="radio"] { accent-color: var(--accent); }
#questionsBody select {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 6px; padding: 3px 7px; font-size: 13px;
}

/* 拖拽 */
/* 通用落点（所有带 data-question 的空容器） */
#questionsBody .drop-target-summary,
#passageBody .drop-target-summary {
  display: inline-block; min-width: 100px; height: 21px; vertical-align: middle;
  border-bottom: 1.5px solid var(--accent); background: var(--accent-soft);
  border-radius: 3px 3px 0 0; margin: 0 3px; padding: 0 4px;
}
#questionsBody .drop-target-completion { min-height: 24px; margin: 3px 0; }
#questionsBody [data-question]:empty,
#passageBody [data-question]:empty { border-radius: 6px; }
#questionsBody [data-question].over,
#passageBody [data-question].over { background: var(--accent-soft); outline: 1px dashed var(--accent); }

#questionsBody .match-dropzone {
  min-height: 30px; margin-bottom: 5px; border-radius: 6px;
  display: flex; flex-wrap: wrap; gap: 4px;
}
#questionsBody .match-dropzone.over { background: var(--accent-soft); border: 1px dashed var(--accent); }
#questionsBody .match-dropzone:empty::before {
  content: "↳ 把国家拖到这里";
  font-size: 11.5px; color: var(--ink3); opacity: .55;
  padding: 3px 10px; border: 1px dashed var(--line); border-radius: 6px; align-self: center;
}
#questionsBody .options-pool, #questionsBody .headings-pool { margin: 10px 0 4px; }
#questionsBody .pool-items { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
#questionsBody .pool-items .drag-item { margin-bottom: 0; flex: 0 0 auto; }
.drag-item {
  border: 1px solid var(--line); background: var(--bg); border-radius: 7px;
  padding: 5px 10px; margin-bottom: 5px; font-size: 13.5px; cursor: grab;
}
.drag-item:hover { border-color: var(--accent); }
.drag-item.dragging { opacity: .4; }
.drop-chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft);
  border: 1px solid #dcc9b4; color: var(--accent); border-radius: 6px;
  padding: 1px 8px; font-size: 13px; margin: 2px 0;
}
.drop-chip .rm { cursor: pointer; font-style: normal; opacity: .6; }
.drop-chip .rm:hover { opacity: 1; }

/* 侧栏 */
.side { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.side .card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.cardhead { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink3); margin-bottom: 11px; display: flex; justify-content: space-between; align-items: center; }
.mini-x { border: 0; background: none; color: var(--ink3); font-size: 16px; line-height: 1; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; }
.qcell {
  position: relative; height: 32px; border: 1px solid var(--line); background: var(--bg);
  border-radius: 7px; font-size: 12.5px; color: var(--ink2);
}
.qcell:hover { border-color: var(--accent); }
.qcell.ans { background:#f7e4ee !important; border-color:#e2b4ca !important;
  color:#c94b8a !important; font-weight:700 !important; }
.qcell.done { background:#f7e4ee !important; border-color:#e2b4ca !important;
  color:#c94b8a !important; font-weight:700 !important; }
.qcell.ok { background: var(--good-soft); border-color: #b9d6c6; color: var(--good); font-weight: 600; }
.qcell.bad { background: var(--bad-soft); border-color: #e8c6bd; color: var(--bad); font-weight: 600; }
.qcell.no { background: var(--bad-soft); border-color: #e8c6bd; color: var(--bad); font-weight: 600; }
.qcell.flag { box-shadow: inset 0 -2px 0 #d08a2c; }
#submitBtn, #clearBtn, #noteBtn { width: 100%; margin-bottom: 7px; }
#noteBtn { margin-bottom: 0; }

/* 选中即弹 */
.selbar {
  position: absolute; transform: translateX(-50%); z-index: 90;
  background: var(--ink); border-radius: 8px; padding: 4px; display: flex; gap: 2px;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
}
.selbar button { border: 0; background: none; color: var(--bg); font-size: 12.5px; padding: 4px 11px; border-radius: 6px; }
.selbar button:hover { background: rgba(255,255,255,.16); }

/* 笔记 */
.notelist { display: flex; flex-direction: column; gap: 7px; max-height: 260px; overflow-y: auto; }
.noteitem { display: flex; gap: 8px; justify-content: space-between; font-size: 13px; background: var(--bg); padding: 7px 10px; border-radius: 7px; }
.noteitem .del { border: 0; background: none; color: var(--ink3); font-size: 15px; line-height: 1; }
.hlmark { background: rgba(214,178,80,.32); color: inherit; padding: 0 1px; border-radius: 2px; }
.empty.small { font-size: 12.5px; color: var(--ink3); }

/* 成绩 */
.result { position: fixed; inset: 0; background: rgba(20,18,15,.42); display: flex; align-items: center; justify-content: center; z-index: 120; }
.rwrap {
  background: var(--card); border-radius: 16px; padding: 30px 34px; min-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28); text-align: center;
}
.rscore { font-family: inherit; font-size: 40px; line-height: 1; color: var(--accent); }
.rscore span { font-size: 20px; color: var(--ink3); margin-left: 4px; }
.rmeta { margin: 12px 0 20px; }
.rpct { font-size: 14px; color: var(--ink2); }
.rhint { font-size: 12.5px; color: var(--ink3); margin-top: 5px; }
.rwrap .btn { width: 100%; margin-bottom: 8px; }

/* 主题适配 */
body[data-theme="dark"] .itemcard.done,
body[data-theme="amber"] .itemcard.done { background: var(--card); }
body[data-theme="dark"] .timer.warn,
body[data-theme="amber"] .timer.warn { color: #fff; }
body[data-theme="dark"] .selbar button,
body[data-theme="amber"] .selbar button { color: var(--bg); }
body.exam-alert::after {
  content: ""; position: fixed; left: 0; right: 0; top: 0; height: 3px;
  background: #c0392b; z-index: 200; animation: pulse 1s infinite;
}

/* ==================== 写作模块 ==================== */
.w-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; max-width: 1180px; margin: 0 auto; padding: 0 26px 70px; }
.w-left { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.w-right { display: flex; flex-direction: column; gap: 18px; }

.prompt {
  font-family: inherit;
  font-size: 17px; line-height: 1.75; color: var(--ink);
  padding: 18px 20px; background: var(--accent-soft, rgba(196,160,80,.07));
  border-left: 3px solid var(--accent, #c4a050); border-radius: 0 8px 8px 0;
  user-select: text;
}
.prompt-cn {
  margin-top: 12px; padding: 0 20px; font-size: 13.5px; line-height: 1.8; color: var(--ink2, #6b6560);
}
.panel-h .hint.ok { color: #2e8b57; font-weight: 600; }

#essay {
  width: 100%; min-height: 46vh; resize: vertical; box-sizing: border-box;
  border: 1px solid var(--line, #e6e1d8); border-radius: 8px; padding: 16px 18px;
  font-family: var(--serif, Georgia, serif); font-size: 15px; line-height: 1.9;
  color: var(--ink); background: var(--bg, #fbf9f4);
  outline: none; transition: border-color .15s;
}
#essay:focus { border-color: var(--accent, #c4a050); }
#essay::placeholder { color: var(--ink3, #a8a29a); }

.wbar { height: 4px; background: var(--line, #e6e1d8); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.wbar-fill { height: 100%; width: 0; background: var(--accent, #c4a050); transition: width .25s; }

.wops { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.wops .btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.autosave { font-size: 11px; color: var(--ink3); white-space: nowrap; flex: none; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative; padding: 7px 0 7px 24px; font-size: 13px; line-height: 1.6;
  color: var(--ink2, #6b6560); border-bottom: 1px dashed var(--line, #eee9df); cursor: pointer;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ''; position: absolute; left: 2px; top: 11px; width: 12px; height: 12px;
  border: 1.5px solid var(--line2, #d8d2c6); border-radius: 3px;
}
.checklist li.done { color: var(--ink3, #a8a29a); text-decoration: line-through; }
.checklist li.done::before { background: var(--accent, #c4a050); border-color: var(--accent, #c4a050); }

.clock { font-size: 34px; font-variant-numeric: tabular-nums; text-align: center; padding: 14px 0 6px; letter-spacing: .02em; }
.clock.warn { color: #c0392b; }
.mini-note { font-size: 11.5px; line-height: 1.6; color: var(--ink3, #a8a29a); text-align: center; padding: 0 8px 8px; }

@media (max-width: 1024px) {
  .w-layout { grid-template-columns: 1fr; }
  .w-right { order: -1; }
}

/* ---- 写作面板与头部修正 ---- */
.panel { background: var(--card, #fff); border: 1px solid var(--line, #e6e1d8); border-radius: 12px; padding: 16px 18px; }
.panel-h {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px;
  font-size: 13px; font-weight: 600; color: var(--ink2, #6b6560); letter-spacing: .01em;
}
.panel-h .hint { margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--ink3, #a8a29a); }
.qhead-main { flex: 1; min-width: 0; }
.qhead-main h2 { font-family: inherit; font-size: 21px; font-weight: 500; margin: 0 0 3px; letter-spacing: -.01em; }
.w-layout { padding-left: 0; padding-right: 0; }
.wops .btn { flex: none; white-space: nowrap; }
.headtimer { margin-left: auto; }

/* 写作 Task 1 图表 */
.chartwrap { margin-bottom: 14px; text-align: center; background: #fff; border: 1px solid var(--line, #e6e1d8); border-radius: 10px; padding: 12px; }
.chartwrap img { max-width: 100%; max-height: 520px; height: auto; border-radius: 4px; }
.chartwrap .chart-svg { display: block; width: 100%; height: auto; }
.chart-svg text { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; }
body[data-theme="dark"] .chartwrap, body[data-theme="amber"] .chartwrap { background: #fff; }

/* 二级导航（听力页内部视图） */
.subnav { display: flex; gap: 8px; margin: 0 0 18px; }
.subnav .chip { font-size: 12.5px; padding: 5px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink2); cursor: pointer; }
.subnav .chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
/* 未上线模块 */
.tab.soon { opacity: .45; cursor: default; }

/* ---------- 成绩页 ---------- */
.sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 22px; }
.scard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.scard-l { font-size: 12.5px; color: var(--ink3); letter-spacing: .04em; }
.scard-v { font: 600 30px/1.15 var(--serif, Georgia, serif); color: var(--ink); margin: 8px 0 4px; }
.scard-v small { font-size: 13px; font-weight: 400; color: var(--ink3); }
.scard-s { font-size: 12.5px; color: var(--ink2); }
.adv { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; margin: 14px 0; }
.adv-h { font-size: 14px; color: var(--ink); font-weight: 600; }
.adv-h span { color: var(--accent); font-weight: 400; font-size: 13px; margin-left: 6px; }
.adv-b { font-size: 13px; color: var(--ink2); line-height: 1.75; margin-top: 4px; }
.foot { font-size: 12px; color: var(--ink3); margin: 34px 0 60px; }
#kindChart .chart-svg { display: block; width: 100%; height: auto; }

/* ---------- 口语 ---------- */
.spk-layout { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .spk-layout { grid-template-columns: 1fr; } }
.p1qs { margin: 0; padding-left: 22px; }
.p1qs li { font-size: 14.5px; line-height: 2; color: var(--ink); }
.cuecard { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; background: var(--card); }
.cue-main { font: 500 17px/1.6 var(--serif, Georgia, serif); color: var(--ink); margin-bottom: 12px; }
.cue-say { font-size: 13px; color: var(--ink3); margin-bottom: 6px; }
.cue-points { margin: 0 0 12px; padding-left: 20px; }
.cue-points li { font-size: 14px; line-height: 1.9; color: var(--ink); }
.cue-explain { font-size: 14px; color: var(--ink); padding-top: 10px; border-top: 1px dashed var(--line); }
.p3block { margin-top: 20px; }
.p3h { font-size: 12.5px; color: var(--ink3); letter-spacing: .04em; margin-bottom: 8px; }

.rec-stage { text-align: center; padding: 10px 0 4px; }
.rec-state { font-size: 12.5px; color: var(--ink3); }
.rec-timer { font: 600 40px/1.2 var(--serif, Georgia, serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.rec-bar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 10px 0 4px; }
.rec-bar-fill { height: 100%; width: 0; background: var(--accent); transition: width .9s linear; }
.rec-btnrow { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rec-btnrow .btn { flex: 1 1 auto; }
#playback audio { width: 100%; margin-top: 14px; }
.rec-hint { font-size: 12px; color: var(--ink3); line-height: 1.7; margin: 12px 0 0; }

.ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.idea { font-size: 12.5px; color: var(--ink2); background: var(--accent-soft, #f1ece2);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 12px; }
/* 口语练习页头部 */
.whead { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.whead .whead-main { flex: 1 1 auto; min-width: 0; }
.whead .btn { flex: none; }

/* 口语转写面板 */
#sttBox { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
#sttBox.hidden { display: none; }
.stt-h { display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--ink3); margin-bottom: 8px; }
.stt-meta { font-variant-numeric: tabular-nums; }
.stt-body { font-size: 13.5px; line-height: 1.85; color: var(--ink);
  white-space: pre-wrap; max-height: 240px; overflow-y: auto; }
.stt-body.placeholder { color: var(--ink3); font-style: normal; }
.stt-warn { color: #b06a4a; font-size: 12px; margin-top: 6px; }

/* ===== 机考风格覆盖 ===== */
body { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
  "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14.5px; line-height: 1.6; }

/* 标题一律无衬线，去装饰 */
h1, .h1, main > h1, .page-title {
  font-family: inherit !important;
  font-size: 21px !important;
  font-weight: 650 !important;
  letter-spacing: -.01em !important;
  margin: 0 0 6px !important;
  color: var(--ink);
}

/* 卡片：细边、小圆角、无阴影 */
.card, .qcard, .panel, .box, .item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
}
.card:hover, .qcard:hover { border-color: #c9cdd2; box-shadow: none; }

/* 按钮：机考那种方一点、素一点 */
.btn, .chip {
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  padding: 6px 13px;
  font-weight: 500;
  transition: background .12s, border-color .12s;
}
.btn:hover, .chip:hover { background: #f6f7f8; border-color: #c9cdd2; }
.btn.primary, .chip.on {
  background: #17191c; border-color: #17191c; color: #fff;
}
.btn.primary:hover, .chip.on:hover { background: #000; }

/* 顶栏更薄、更素 */
.topbar { height: 52px; padding: 0 22px; gap: 20px; border-bottom: 1px solid var(--line); }
.brand .name { font-weight: 650; font-size: 14.5px; letter-spacing: 0; }
.tabs .tab { font-size: 13.5px; padding: 5px 11px; border-radius: 5px; }
.tabs .tab.active { background: #f1f2f4; color: var(--ink); font-weight: 600; }

/* 输入框 */
input[type=text], input:not([type]), textarea, select {
  border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink);
  font-family: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: #9fb4d4; box-shadow: 0 0 0 3px rgba(28,95,191,.1);
}

/* 深色主题：冷灰，不是暖棕 */
body[data-theme="dark"] {
  --bg: #101214; --card: #17191c; --ink: #e6e8ea; --ink2: #a8aeb5; --ink3: #727980;
  --line: #2a2e33; --accent: #6aa7ff; --accent-soft: #16202c;
  --good: #57b98a; --good-soft: #16241c; --bad: #e0776a; --bad-soft: #2a1a18;
}
body[data-theme="dark"] .topbar { background: rgba(16,18,20,.94); }
body[data-theme="dark"] .btn, body[data-theme="dark"] .chip { background: #1b1e22; border-color: #2a2e33; }
body[data-theme="dark"] .btn:hover, body[data-theme="dark"] .chip:hover { background: #22262b; }
body[data-theme="dark"] .btn.primary, body[data-theme="dark"] .chip.on {
  background: #e6e8ea; border-color: #e6e8ea; color: #101214;
}
body[data-theme="dark"] .tabs .tab.active { background: #22262b; }
body[data-theme="dark"] input, body[data-theme="dark"] textarea, body[data-theme="dark"] select {
  background: #14161a; border-color: #2a2e33; color: var(--ink);
}

/* 琥珀主题：黑底黄字，机考夜间模式那种 */
body[data-theme="amber"] {
  --bg: #000; --card: #0a0a0a; --ink: #f0d264; --ink2: #c4ab55; --ink3: #8a7a3d;
  --line: #2b2716; --accent: #f0d264; --accent-soft: #1a1710;
  --good: #9ed08a; --good-soft: #12180f; --bad: #e08a6a; --bad-soft: #1e1310;
}
body[data-theme="amber"] .topbar { background: rgba(0,0,0,.94); }
body[data-theme="amber"] .btn, body[data-theme="amber"] .chip { background: #12110c; border-color: #2b2716; color: var(--ink); }
body[data-theme="amber"] .btn.primary, body[data-theme="amber"] .chip.on {
  background: var(--ink); border-color: var(--ink); color: #000;
}
body[data-theme="amber"] input, body[data-theme="amber"] textarea, body[data-theme="amber"] select {
  background: #0a0a0a; border-color: #2b2716; color: var(--ink);
}

/* 图表卡片保持纸白，深色下也不反色（像试卷） */
.chartwrap, .chart-svg { background: #fff; }

/* 深色/琥珀 topbar 强制覆盖 */
body[data-theme="dark"] .topbar { background: #101214 !important; }
body[data-theme="amber"] .topbar { background: #000 !important; }
body[data-theme="dark"] .brand .name, body[data-theme="dark"] .tabs .tab { color: var(--ink); }
body[data-theme="amber"] .brand .name, body[data-theme="amber"] .tabs .tab { color: var(--ink); }
/* 深色下输入框与表格线协调 */
body[data-theme="dark"] table, body[data-theme="dark"] th, body[data-theme="dark"] td { border-color: #2a2e33; }
body[data-theme="amber"] table, body[data-theme="amber"] th, body[data-theme="amber"] td { border-color: #2b2716; }

/* 顶栏当前页：下划线式，不用色块 */
.tabs .tab, .tabs a.tab {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 14px 12px 12px !important;
  color: var(--ink2) !important;
  font-weight: 500 !important;
  box-shadow: inset 0 -2px 0 transparent;
}
.tabs .tab:hover, .tabs a.tab:hover { background: transparent !important; color: var(--ink) !important; }
.tabs .tab.active, .tabs a.tab.active {
  background: transparent !important;
  color: var(--ink) !important;
  font-weight: 650 !important;
  box-shadow: inset 0 -2px 0 var(--ink);
}
.tabs .tab.soon { opacity: .38; }

/* ============ 视觉重做：浅灰底 + 白卡 + 蓝主色 ============ */
:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #1b2330;
  --ink2: #55607a;
  --ink3: #8b95ab;
  --line: #e4e8f0;
  --accent: #2f7fe8;
  --accent-soft: #e8f1fe;
  --good: #17936b;
  --good-soft: #e4f5ee;
  --bad: #e0533d;
  --bad-soft: #fdeceb;
  --warn: #f0862d;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20,32,64,.04), 0 4px 14px rgba(20,32,64,.05);
}

body { background: var(--bg); color: var(--ink); font-size: 14.5px; }

/* 顶栏：白底、轻投影、品牌蓝 */
.topbar {
  background: #fff !important;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(20,32,64,.03);
  height: 58px !important;
}
.brand .logo { color: var(--accent) !important; font-size: 16px !important; }
.brand .name { font-size: 15px !important; font-weight: 700 !important; letter-spacing: 0 !important; }
.tabs .tab, .tabs a.tab {
  padding: 17px 13px 15px !important;
  font-size: 14px !important;
  color: var(--ink2) !important;
  box-shadow: inset 0 -2px 0 transparent !important;
}
.tabs .tab.active, .tabs a.tab.active {
  color: var(--accent) !important;
  box-shadow: inset 0 -2px 0 var(--accent) !important;
}

/* 卡片：大圆角 + 柔和阴影 */
.card, .qcard, .panel, .box, .item, .wcard, .scard {
  background: var(--card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card:hover, .qcard:hover {
  box-shadow: 0 2px 6px rgba(20,32,64,.07), 0 10px 26px rgba(20,32,64,.08);
  border-color: transparent;
  transform: translateY(-1px);
  transition: box-shadow .16s, transform .16s;
}

/* 按钮：主色填充 / 描边蓝 */
.btn, .chip {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink2);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
}
.btn:hover, .chip:hover { border-color: #c9d4e6; color: var(--ink); background: #fbfcfe; }
.btn.primary, .chip.on {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(47,127,232,.24);
}
.btn.primary:hover, .chip.on:hover { background: #1f6ed6; border-color: #1f6ed6; }

/* 标签 chip（比如 普通/VIP/新题） */
.tag, .badge {
  border-radius: 6px; font-size: 11.5px; padding: 2px 8px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}

/* 输入框 */
input[type=text], input:not([type]), textarea, select {
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 9px 13px; font-size: 14px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,127,232,.12);
}

/* 大标题：粗一点、蓝黑 */
main > h1, h1 {
  font-size: 22px !important; font-weight: 750 !important;
  letter-spacing: -.015em !important; color: var(--ink);
}
.qtitle h2 { font-size: 17px; font-weight: 700; }

/* 深色主题跟随 */
body[data-theme="dark"] {
  --bg: #0f1218; --card: #171b23; --ink: #e9edf5; --ink2: #a2acc0; --ink3: #6f7a90;
  --line: #262c38; --accent: #4d92ff; --accent-soft: #16233a;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
}
body[data-theme="dark"] .topbar { background: #11151c !important; }
body[data-theme="dark"] .btn, body[data-theme="dark"] .chip { background: #1c222c; border-color: #2a3242; }
body[data-theme="dark"] .btn.primary, body[data-theme="dark"] .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

body[data-theme="amber"] {
  --bg: #0a0906; --card: #131109; --ink: #f2d775; --ink2: #c0ab5c; --ink3: #877a45;
  --line: #2c2614; --accent: #f2d775; --accent-soft: #221d0f;
}
body[data-theme="amber"] .topbar { background: #0c0b07 !important; }
body[data-theme="amber"] .btn.primary, body[data-theme="amber"] .chip.on { background: var(--ink); border-color: var(--ink); color: #0a0906; }

/* 修：子导航 chip 统一蓝色（覆盖早先的黑色） */
.subnav .chip.on, .subnav .chip.on:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}
.subnav .chip { background: #fff; }
/* 卡片阴影再明显一点 */
.card, .qcard, .item { box-shadow: 0 1px 3px rgba(20,32,64,.06), 0 6px 18px rgba(20,32,64,.055) !important; }
/* 内容左右留白收紧 */
main, .wrap, .container { padding-left: 40px !important; padding-right: 40px !important; }

/* 修：填空框保持细下划线，不被全局 input 规则撑大 */
input.blank, input[class*="blank"], #paper input, #questionsBody input:not([type=radio]):not([type=checkbox]) {
  padding: 1px 6px !important;
  border: 0 !important;
  border-bottom: 2px solid #1f2229 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px !important;
  min-width: 108px;
  height: 22px !important;
  vertical-align: baseline;
  transition: border-color .15s, background .15s;
}
input.blank:focus, #questionsBody input:not([type=radio]):not([type=checkbox]):focus {
  border-bottom-color: var(--accent) !important;
  background: rgba(201,75,138,.07) !important;
}
/* 表格内的输入不要撑开单元格 */
#paper table input, #questionsBody table input { width: auto; }
input.blank, #paper input, #questionsBody input:not([type=radio]):not([type=checkbox]) {
  width: 132px !important; min-width: 0 !important; max-width: 100%;
}

/* ============ 视觉：macOS 玻璃拟态 ============ */
:root {
  --bg: #eef1f7;
  --card: rgba(255,255,255,.60);
  --ink: #1d2433;
  --ink2: #566078;
  --ink3: #8b94a8;
  --line: rgba(255,255,255,.75);
  --accent: #3a6ff0;
  --accent-soft: rgba(58,111,240,.10);
  --good: #14906a; --good-soft: rgba(20,144,106,.12);
  --bad: #dc4f3a;  --bad-soft: rgba(220,79,58,.12);
  --glass: rgba(255,255,255,.58);
  --glass-b: rgba(255,255,255,.72);
  --radius: 20px;
  --shadow: 0 10px 34px rgba(31,38,60,.10), 0 2px 6px rgba(31,38,60,.05);
}

body {
  background:
    radial-gradient(ellipse 55% 45% at 12% 6%,  #f7d6e3 0%, transparent 62%),
    radial-gradient(ellipse 48% 42% at 52% 0%,  #ddd0f5 0%, transparent 60%),
    radial-gradient(ellipse 55% 48% at 90% 10%, #bcd6f4 0%, transparent 62%),
    radial-gradient(ellipse 60% 50% at 78% 78%, #cfe4f0 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 25% 88%, #e8d9ef 0%, transparent 62%),
    linear-gradient(165deg, #f0f3f9 0%, #f5eef5 55%, #eaf0f7 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--ink);
}

/* 顶栏：整条玻璃胶囊 */
.topbar {
  background: rgba(255,255,255,.50) !important;
  backdrop-filter: blur(26px) saturate(1.8);
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  border-bottom: 1px solid rgba(255,255,255,.55) !important;
  box-shadow: 0 1px 0 rgba(31,38,60,.03) !important;
  height: 62px !important;
}
.tabs, nav.tabs {
  background: rgba(255,255,255,.42);
  border-radius: 999px;
  padding: 5px !important;
  gap: 2px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
.tabs .tab, .tabs a.tab {
  border-radius: 999px !important;
  padding: 8px 15px !important;
  font-size: 13.5px !important;
  box-shadow: none !important;
  color: var(--ink2) !important;
}
.tabs .tab.active, .tabs a.tab.active {
  background: #fff !important;
  color: var(--ink) !important;
  font-weight: 650 !important;
  box-shadow: 0 2px 10px rgba(31,38,60,.10) !important;
}

/* 玻璃面板 / 卡片 */
.card, .qcard, .panel, .box, .item, .wcard {
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(1.7);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  border: 1px solid var(--glass-b);
  border-radius: var(--radius);
  box-shadow: var(--shadow),
              inset 0 1px 0 rgba(255,255,255,.85);
}
.card:hover, .qcard:hover {
  background: rgba(255,255,255,.74);
  box-shadow: 0 14px 40px rgba(31,38,60,.14), inset 0 1px 0 rgba(255,255,255,.9);
  transform: translateY(-2px);
  transition: box-shadow .18s, transform .18s, background .18s;
}

/* 按钮：白色玻璃胶囊 */
.btn, .chip {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(14px);
  color: var(--ink2);
  font-size: 13px;
  font-weight: 550;
  padding: 7px 16px;
  box-shadow: 0 2px 8px rgba(31,38,60,.05), inset 0 1px 0 rgba(255,255,255,.9);
}
.btn:hover, .chip:hover { background: rgba(255,255,255,.85); color: var(--ink); }
.btn.primary, .chip.on {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 4px 14px rgba(31,38,60,.13), inset 0 1px 0 #fff;
}

/* 标签 */
.tag, .badge {
  border-radius: 999px; font-size: 11.5px; padding: 3px 10px;
  background: rgba(255,255,255,.62); color: var(--ink2);
  border: 1px solid rgba(255,255,255,.7); font-weight: 550;
}

/* 输入框：玻璃内凹 */
input[type=text], input:not([type]), textarea, select {
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(14px);
  padding: 10px 18px;
  font-size: 14px;
  box-shadow: inset 0 1px 3px rgba(31,38,60,.05);
}
textarea { border-radius: 16px; }
input:focus, textarea:focus, select:focus {
  background: rgba(255,255,255,.88);
  border-color: rgba(58,111,240,.5);
  box-shadow: 0 0 0 4px rgba(58,111,240,.10);
  outline: none;
}

/* 标题 */
main > h1, h1 { font-size: 24px !important; font-weight: 750 !important; letter-spacing: -.02em !important; }
.qtitle h2 { font-size: 17.5px; font-weight: 700; }

/* 填空框保持小巧 */
input.blank, #paper input, #questionsBody input:not([type=radio]):not([type=checkbox]) {
  width: 132px !important; padding: 1px 7px !important;
  border: 0 !important; border-bottom: 2px solid #1f2229 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important; height: 23px !important;
}

/* 深色玻璃 */
body[data-theme="dark"] {
  --ink: #e9edf6; --ink2: #a6b0c4; --ink3: #6f7a90;
  --glass: rgba(28,34,46,.62); --glass-b: rgba(255,255,255,.10);
  --accent: #6f9dff; --accent-soft: rgba(111,157,255,.14);
  --shadow: 0 10px 34px rgba(0,0,0,.42);
  background:
    radial-gradient(ellipse 55% 45% at 12% 6%,  #3a2145 0%, transparent 62%),
    radial-gradient(ellipse 48% 42% at 55% 2%,  #1e2a52 0%, transparent 60%),
    radial-gradient(ellipse 55% 48% at 90% 12%, #12314a 0%, transparent 62%),
    radial-gradient(ellipse 60% 50% at 70% 82%, #101c30 0%, transparent 65%),
    linear-gradient(165deg, #0e1118 0%, #141a26 100%);
}
body[data-theme="dark"] .topbar { background: rgba(18,22,30,.60) !important; }
body[data-theme="dark"] .tabs { background: rgba(255,255,255,.07); }
body[data-theme="dark"] .tabs .tab.active { background: rgba(255,255,255,.14) !important; color: #fff !important; }
body[data-theme="dark"] .btn, body[data-theme="dark"] .chip {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: var(--ink);
}
body[data-theme="dark"] .btn.primary, body[data-theme="dark"] .chip.on {
  background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.2); color: #fff;
}
body[data-theme="dark"] input, body[data-theme="dark"] textarea, body[data-theme="dark"] select {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: var(--ink);
}

/* 琥珀（夜间）玻璃 */
body[data-theme="amber"] {
  --ink: #f3d97a; --ink2: #c7b268; --ink3: #8b7c4c;
  --glass: rgba(30,26,12,.62); --glass-b: rgba(243,217,122,.14);
  --accent: #f3d97a; --accent-soft: rgba(243,217,122,.12);
  background:
    radial-gradient(ellipse 55% 45% at 12% 6%, #2a2210 0%, transparent 62%),
    radial-gradient(ellipse 50% 45% at 60% 4%, #1e1a0c 0%, transparent 62%),
    linear-gradient(165deg, #0a0906 0%, #12100a 100%);
}
body[data-theme="amber"] .topbar { background: rgba(12,11,7,.65) !important; }
body[data-theme="amber"] .btn.primary, body[data-theme="amber"] .chip.on {
  background: rgba(243,217,122,.16); border-color: rgba(243,217,122,.3); color: var(--ink);
}

/* 大玻璃容器：整个题库区包在一块板里 */
main.view {
  background: rgba(255,255,255,.46);
  backdrop-filter: blur(30px) saturate(1.7);
  -webkit-backdrop-filter: blur(30px) saturate(1.7);
  border: 1px solid rgba(255,255,255,.70);
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(31,38,60,.10), inset 0 1px 0 rgba(255,255,255,.9);
  padding: 30px 34px 34px !important;
  margin: 22px auto !important;
  max-width: 1240px;
}
/* 卡片改实心白，像参照图那样 */
.card, .qcard, .item {
  background: rgba(255,255,255,.94) !important;
  border: 1px solid rgba(255,255,255,.9) !important;
  backdrop-filter: none !important;
  box-shadow: 0 2px 10px rgba(31,38,60,.06) !important;
}
.card:hover, .qcard:hover {
  background: #fff !important;
  box-shadow: 0 8px 26px rgba(31,38,60,.13) !important;
}
body[data-theme="dark"] main.view {
  background: rgba(22,28,40,.52);
  border-color: rgba(255,255,255,.09);
}
body[data-theme="dark"] .card, body[data-theme="dark"] .qcard, body[data-theme="dark"] .item {
  background: rgba(36,44,60,.78) !important;
  border-color: rgba(255,255,255,.09) !important;
}
body[data-theme="amber"] main.view { background: rgba(24,21,10,.55); border-color: rgba(243,217,122,.12); }
body[data-theme="amber"] .card, body[data-theme="amber"] .qcard { background: rgba(32,28,14,.8) !important; border-color: rgba(243,217,122,.12) !important; }
input.blank, #paper input, #questionsBody input:not([type=radio]):not([type=checkbox]) {
  width: 112px !important; min-width: 0 !important; max-width: 100%;
}

/* ============ 内容面板纯白，只有外层背景透明 ============ */
main.view {
  background: rgba(255,255,255,.30) !important;   /* 外层容器：能透出背景 */
  backdrop-filter: blur(22px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.6) !important;
  border: 1px solid rgba(255,255,255,.60) !important;
  box-shadow: 0 16px 50px rgba(31,38,60,.10), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
/* 里面的卡片、面板、答题区：纯白，不透 */
.card, .qcard, .panel, .box, .item, .wcard, .scard,
#paper, #questionsBody, .transcript, .qgrid, .sect .card {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: #fff !important;
  box-shadow: 0 2px 10px rgba(31,38,60,.07) !important;
}
/* 音频条、答题卡这类小块也纯白 */
.qgrid, .recwrap, #playback, #sttBox { background: #fff !important; }

/* 彩色点缀：标题里的分类、标签、题号、选中态用粉/紫/蓝 */
.tag, .badge {
  border-radius: 999px;
  background: #fde7f0 !important;
  color: #c2437e !important;
  border: 1px solid #fbd3e3 !important;
  font-weight: 600;
}
.tag:nth-child(2n), .badge:nth-child(2n) {
  background: #efe6fd !important; color: #7b4fd0 !important; border-color: #e2d5fb !important;
}
.qno, .qitem .qno, .card .no {
  color: #c2437e !important;
  font-weight: 650;
}
/* 答题卡小格子：已答粉色、对绿、错红 */
.qcell {
  background: #fff; border: 1px solid #e8e2ee;
  border-radius: 10px;
}
.qcell.answered { background: #fde7f0; border-color: #f7c6dd; color: #b93a72; }
.qcell.ok { background: #e3f6ec; border-color: #b7e5cd; color: #14795a; }
.qcell.bad { background: #fde8e5; border-color: #f8c3bc; color: #b8361f; }
.qcell.cur { background: #3a6ff0; border-color: #3a6ff0; color: #fff; }
/* 章节小标题（P1·高频 那种）用紫 */
.sect-h, .sec-title, h3.sect, .group-h {
  color: #7b4fd0 !important;
}
/* 主按钮保持白，悬停带粉 */
.btn:hover { background: #fff !important; color: #b93a72 !important; border-color: #f7c6dd !important; }

/* 深色下内容仍要分开：卡片比容器亮 */
body[data-theme="dark"] main.view { background: rgba(20,26,38,.42) !important; }
body[data-theme="dark"] .card, body[data-theme="dark"] .panel, body[data-theme="dark"] #paper,
body[data-theme="dark"] #questionsBody, body[data-theme="dark"] .qgrid {
  background: #1b2230 !important; border-color: #1b2230 !important;
}

/* 子导航改白胶囊（不再是蓝块） */
.subnav .chip.on, .subnav .chip.on:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: #b93a72 !important;
  box-shadow: 0 2px 10px rgba(31,38,60,.10) !important;
}
/* 答题卡小格子：必须纯白，压住所有透明背景 */
.qgrid .qcell, .qcell {
  background: #ffffff !important;
  border: 1px solid #ece7f2 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(31,38,60,.05) !important;
  color: #3a3550 !important;
}
.qgrid .qcell.answered, .qcell.answered { background: #fde7f0 !important; border-color: #f7c6dd !important; color: #b93a72 !important; }
.qgrid .qcell.ok, .qcell.ok { background: #e3f6ec !important; border-color: #b7e5cd !important; color: #14795a !important; }
.qgrid .qcell.bad, .qcell.bad { background: #fde8e5 !important; border-color: #f8c3bc !important; color: #b8361f !important; }
.qgrid .qcell.cur, .qcell.cur { background: #3a6ff0 !important; border-color: #3a6ff0 !important; color: #fff !important; }
/* 面板标题、章节标题上色 */
.panel-h, .card-h { color: #7b4fd0 !important; font-weight: 650 !important; }
.sect-h { color: #b93a72 !important; }
/* 卡片标题悬停粉 */
.card:hover .ct, .qcard:hover h3 { color: #b93a72; }
/* 章节标题上色（P1 · 高频 那种） */
.sect-h, .sect .sect-h, #listSect .sect-h { color: #b93a72 !important; font-weight: 650 !important; letter-spacing: 0 !important; }
/* 卡片里的标题字重加强，分类标签保持粉/紫 */
.card h3, .card .ct, .qcard .ct { color: #241d33 !important; font-weight: 650 !important; }
.card:hover h3, .card:hover .ct { color: #b93a72 !important; }
/* 顶部计数小字 */
.hero .sub, .sub { color: #7a7291 !important; }
/* 真正的分组标题类名是 .bandhead */
.bandhead {
  color: #b93a72 !important;
  font-weight: 650 !important;
  font-size: 12.5px !important;
  letter-spacing: .02em;
  opacity: 1 !important;
}
.bandhead .cnt { color: #9c94b0 !important; font-weight: 500; }
main.view, main.wrap { padding-left: 34px !important; padding-right: 34px !important; }

/* 错题本行 */
.wrow {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 4px; border-bottom: 1px solid #eff0f4;
}
.wrow:last-child { border-bottom: 0; }
.wmod { flex: none; width: 42px; text-align: center; font-size: 11.5px; font-weight: 650;
  padding: 3px 0; border-radius: 999px; }
.wmod.l { background: #efe6fd; color: #7b4fd0; }
.wmod.r { background: #fde7f0; color: #c2437e; }
.wtitle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; color: #241d33; }
.wtag { flex: none; font-size: 12px; color: #8b95ab; }
.wn { flex: none; font-size: 12.5px; color: #b8361f; font-weight: 600; width: 52px; text-align: right; }
.wrow .btn { flex: none; padding: 4px 14px; font-size: 12.5px; }

/* 拖拽选项：用后即焚（机考不能重复选） */
.drag-item.used, .drag-item[data-used="1"] {
  opacity: .42 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  filter: grayscale(.5);
  transition: opacity .14s, filter .14s;
}
.drop-chip { cursor: default; }

/* 最后 5 分钟橙、最后 1 分钟红 */
#timer.warn, .timer.warn {
  color: #e08a1e !important;
  font-weight: 800 !important;
  animation: tpulse 2s ease-in-out infinite;
}
#timer.danger, .timer.danger {
  color: #d93a2b !important;
  font-weight: 800 !important;
  animation: tpulse 1s ease-in-out infinite;
}
@keyframes tpulse { 0%,100% { opacity: 1 } 50% { opacity: .55 } }

/* 图表容器 */
.chartbox { padding: 6px 0 0; }
.svgchart { width: 100%; height: auto; display: block; }
.chartnote { font-size: 11.5px; color: var(--ink3); margin-top: 6px; }
.radarwrap { max-width: 420px; margin: 0 auto; }
.radarwrap { max-width: 460px !important; margin: 0 auto; }
#radarChart { padding: 0 !important; }
#radarChart svg { max-height: 380px; }
#trendChart svg { max-height: 260px; }

/* ===== AI 批改结果 ===== */
.ghead { display: flex; align-items: center; gap: 20px; padding: 4px 0 16px; }
.gscore { display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 104px; height: 104px; border-radius: 20px; flex: none; }
.gscore b { font-size: 38px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.gscore span { font-size: 11px; margin-top: 6px; opacity: .8; }
.gscore.good { background: #e3f6ec; color: #14795a; }
.gscore.mid  { background: #eaf1fb; color: #1c5fbf; }
.gscore.low  { background: #fde8e5; color: #b8361f; }
.gverdict { font-size: 15px; font-weight: 600; color: #241d33; line-height: 1.5; }
.ghint { font-size: 12px; color: #8d86a0; margin-top: 6px; }

.gbars { display: flex; flex-direction: column; gap: 9px; padding: 4px 0 16px; border-bottom: 1px solid #f0edf5; }
.gbrow { display: flex; align-items: center; gap: 12px; }
.gbk { width: 96px; flex: none; font-size: 12.5px; color: #5d5670; font-weight: 600; }
.gbk i { font-style: normal; font-weight: 400; color: #9c94b0; margin-left: 5px; font-size: 11.5px; }
.gbbar { flex: 1; height: 8px; background: #f2eff7; border-radius: 99px; overflow: hidden; }
.gbbar i { display: block; height: 100%; border-radius: 99px; }
.gbbar i.good { background: #35a97c; }
.gbbar i.mid  { background: #4a86e8; }
.gbbar i.low  { background: #e0674e; }
.gbv { width: 34px; text-align: right; font-size: 13px; font-weight: 700; flex: none; }
.gbv.good { color: #14795a; } .gbv.mid { color: #1c5fbf; } .gbv.low { color: #b8361f; }

.gsec { padding: 16px 0; border-bottom: 1px solid #f0edf5; }
.gsec:last-of-type { border-bottom: 0; }
.gsec h4 { font-size: 13px; color: #7b4fd0; margin: 0 0 10px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.gcount { background: #efe6fd; color: #7b4fd0; border-radius: 99px; padding: 1px 8px; font-size: 11px; }
.glist { margin: 0; padding-left: 18px; font-size: 13px; color: #3a3550; line-height: 1.9; }

.gissue { padding: 11px 13px; border-radius: 10px; background: #faf9fc; margin-bottom: 8px; }
.gissue:last-child { margin-bottom: 0; }
.gq { font-size: 13px; color: #241d33; font-style: italic; line-height: 1.6; }
.gp { font-size: 12.5px; color: #6b6480; margin-top: 6px; display: flex; align-items: baseline; gap: 7px; }
.gtag { font-size: 11px; padding: 1px 7px; border-radius: 5px; flex: none; background: #efeaf7; color: #6f5aa8; }
.gtag.grammar { background: #fde8e5; color: #b8361f; }
.gtag.vocab   { background: #fde7f0; color: #b93a72; }
.gtag.logic   { background: #e8f0fe; color: #1c5fbf; }
.gtag.task    { background: #e3f6ec; color: #14795a; }
.gf { font-size: 13px; color: #14795a; margin-top: 6px; line-height: 1.6; }

.gtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.gtable th { text-align: left; font-weight: 600; color: #8d86a0; padding: 6px 8px; border-bottom: 1px solid #f0edf5; font-size: 11.5px; }
.gtable td { padding: 7px 8px; border-bottom: 1px solid #f7f5fa; color: #3a3550; vertical-align: top; line-height: 1.55; }
.gtable .gupto { color: #14795a; font-weight: 600; }
.gtable .gupsy { color: #8d86a0; font-size: 11.5px; }

.gnext { margin-top: 16px; padding: 13px 15px; border-radius: 10px; background: #fff8ea; border: 1px solid #f6e3bd;
  font-size: 13px; color: #7a5a12; line-height: 1.6; }
.gnext b { color: #b8860b; margin-right: 10px; }

body[data-theme="dark"] .gissue { background: #1e232c; }
body[data-theme="dark"] .gsec { border-color: #242a34; }
body[data-theme="dark"] .gbars { border-color: #242a34; }
body[data-theme="dark"] .gverdict { color: #e8eaee; }
body[data-theme="dark"] .gtable td { border-color: #242a34; color: #d4d8e0; }
body[data-theme="dark"] .gnext { background: #2a2416; border-color: #4a3f22; color: #e0c67a; }
.gbbar.na { background: repeating-linear-gradient(45deg,#f5f2fa,#f5f2fa 4px,#eee9f6 4px,#eee9f6 8px); }
.gbv.na { color: #b8b2c4; font-weight: 500; }
.gpn { margin: 14px 0 0; padding: 11px 14px; border-radius: 9px; background: #f2f6fd;
  font-size: 12.5px; color: #4a5570; line-height: 1.65; }
body[data-theme="dark"] .gpn { background: #1c2533; color: #a8b4c8; }

/* ===== AI 评分记录 ===== */
.aihhead { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #f0edf5; }
.aihstat { background: #faf9fc; border-radius: 12px; padding: 14px 16px; }
.aihstat b { display: block; font-size: 24px; font-weight: 700; color: #241d33; letter-spacing: -.02em; }
.aihstat b.na { color: #c9c3d6; }
.aihstat span { font-size: 11.5px; color: #8d86a0; margin-top: 4px; display: block; }

.aihcharts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid #f0edf5; }
.aihchart { background: #faf9fc; border-radius: 12px; padding: 12px 14px 6px; }
.aihlabel { font-size: 12px; color: #5d5670; font-weight: 600; margin-bottom: 4px; }
.aihlabel i { font-style: normal; font-weight: 400; color: #b0a8c0; margin-left: 8px; font-size: 11px; }
.empty.sm { padding: 26px 0; font-size: 12px; }

.aihlist { padding-top: 6px; }
.aihrow { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid #f7f5fa; font-size: 13px; }
.aihrow:last-child { border-bottom: 0; }
.ahm { font-size: 11px; padding: 2px 8px; border-radius: 5px; flex: none; }
.ahm.w { background: #fde7f0; color: #b93a72; }
.ahm.s { background: #e3f6ec; color: #14795a; }
.aht { flex: 1; color: #241d33; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ahs { color: #9c94b0; font-size: 11.5px; flex: none; }
.ahd { color: #b0a8c0; font-size: 11.5px; flex: none; width: 92px; text-align: right; }
.ahv { font-weight: 700; flex: none; width: 38px; text-align: right; }
.ahv.good { color: #14795a; } .ahv.mid { color: #1c5fbf; } .ahv.low { color: #b8361f; }

body[data-theme="dark"] .aihstat, body[data-theme="dark"] .aihchart { background: #1c212a; }
body[data-theme="dark"] .aihstat b { color: #e8eaee; }
body[data-theme="dark"] .aht { color: #dfe3ea; }
body[data-theme="dark"] .aihrow, body[data-theme="dark"] .aihhead, body[data-theme="dark"] .aihcharts { border-color: #242a34; }
.ahs:empty { display: none; }

/* 修：列表卡片标题不该是链接蓝 */
.card a, .card h3, .card .ct, .wcard a, .wcard h3, .wcard .ct, .qcard a, .qcard h3 {
  color: #241d33 !important;
  text-decoration: none !important;
}
.card:hover a, .card:hover h3, .wcard:hover a, .wcard:hover h3, .qcard:hover a, .qcard:hover h3 {
  color: #b93a72 !important;
}
/* 各页容器宽度对齐（写作页之前偏窄） */
main.view { max-width: 1240px !important; }

/* 修：写作/口语列表容器撑满，卡片标题不上色为链接蓝 */
.card-title { color: #241d33 !important; font-weight: 600; }
.card:hover .card-title { color: #b93a72 !important; }
.card-num { color: #7b4fd0 !important; font-weight: 600; }
main.view, main#viewList, main#viewQuiz {
  width: 100% !important;
  max-width: 1240px !important;
  box-sizing: border-box;
}

/* ===== 逐句节奏 ===== */
.rh { display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: #5d5670; font-weight: 600; padding: 14px 0 8px;
  border-top: 1px solid #f0edf5; margin-top: 12px; }
.rh-base { font-weight: 400; color: #a49cba; font-size: 11px; }

.rrow { display: flex; align-items: center; gap: 10px; padding: 6px 8px;
  border-radius: 8px; cursor: pointer; transition: background .12s; }
.rrow:hover { background: #faf9fc; }
.rts { font-size: 11px; color: #b0a8c0; font-variant-numeric: tabular-nums; flex: none; width: 38px; }
.rtx { flex: 1; font-size: 12.5px; color: #3a3550; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbar { flex: none; width: 132px; height: 7px; background: #f2eff7; border-radius: 99px; overflow: hidden; }
.rbar i { display: block; height: 100%; border-radius: 99px; transition: width .25s; }
.rbar i.fast { background: #35a97c; }
.rbar i.ok   { background: #4a86e8; }
.rbar i.slow { background: #e0674e; }
.rv { flex: none; width: 62px; text-align: right; font-size: 12px; font-weight: 700; }
.rv em { display: block; font-style: normal; font-size: 10px; font-weight: 400; opacity: .7; margin-top: 1px; }
.rv.fast { color: #14795a; } .rv.ok { color: #1c5fbf; } .rv.slow { color: #b8361f; }

.pause { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #b8860b;
  padding: 3px 8px 3px 46px; }
.pause i { flex: none; width: 22px; height: 1px; background: repeating-linear-gradient(90deg,#f0d08a,#f0d08a 4px,transparent 4px,transparent 8px); }

body[data-theme="dark"] .rh { border-color: #242a34; color: #9aa3b2; }
body[data-theme="dark"] .rrow:hover { background: #1c212a; }
body[data-theme="dark"] .rtx { color: #dfe3ea; }
body[data-theme="dark"] .rbar { background: #242a34; }

/* ===== 原文标注 ===== */
.gsec-h { font-size: 12.5px; font-weight: 650; color: #3a3550; margin: 20px 0 10px;
  display: flex; align-items: baseline; gap: 10px; }
.gsec-h .hint { font-weight: 400; color: #a49cba; font-size: 11.5px; }
.amtext { background: #fbfafd; border: 1px solid #f0edf5; border-radius: 10px;
  padding: 14px 16px; font-size: 13.5px; line-height: 2.05; color: #3a3550;
  white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow-y: auto; }
.mark { background: #fdf3d9; border-bottom: 1.5px solid #e6b84c; border-radius: 3px;
  padding: 1px 2px; position: relative; cursor: pointer; transition: background .12s; }
.mark:hover { background: #fbe9b8; }
.mark b { display: inline-block; min-width: 14px; height: 14px; line-height: 14px;
  text-align: center; background: #e6b84c; color: #fff; border-radius: 99px;
  font-size: 9.5px; font-weight: 700; font-style: normal; margin-left: 3px;
  vertical-align: 3px; padding: 0 3px; }

.gissue { position: relative; padding-left: 26px; }
.gno { position: absolute; left: 0; top: 1px; width: 18px; height: 18px;
  border-radius: 99px; background: #fdf3d9; color: #a87b1e;
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.gissue.flash { background: #fffaea; border-radius: 8px; animation: gflash 1.2s ease; }
@keyframes gflash { 0%,60% { background: #fff6dc; } 100% { background: transparent; } }

body[data-theme="dark"] .amtext { background: #1a1f27; border-color: #242a34; color: #dfe3ea; }
body[data-theme="dark"] .mark { background: #3a3117; border-color: #a8871e; }
body[data-theme="dark"] .mark b { background: #a8871e; }
body[data-theme="dark"] .gno { background: #3a3117; color: #d9b95c; }

/* ===== 今日计划 ===== */
.hplan { background: #fff; border-radius: 18px; padding: 18px 22px 20px;
  box-shadow: 0 2px 12px rgba(31,38,60,.07); margin-bottom: 18px; }
.hp-row { display: flex; align-items: center; gap: 34px; margin-top: 12px; }
.hp-left { flex: 1; min-width: 0; }
.hp-num { display: flex; align-items: baseline; gap: 6px; }
.hp-num b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: #241d33; cursor: pointer; }
.hp-num b:hover { color: #b93a72; }
.hp-num span { font-size: 13px; color: #9a93ad; }
.hp-bar { height: 8px; background: #f2eff7; border-radius: 99px; overflow: hidden; margin: 9px 0 7px; }
.hp-bar i { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #f19bc0, #c2437e); transition: width .3s; }
.hp-sub { font-size: 12px; color: #9a93ad; }
.hp-streak { text-align: center; padding: 0 20px; border-left: 1px solid #f2eff7; border-right: 1px solid #f2eff7; }
.hps-n { display: flex; align-items: baseline; gap: 3px; justify-content: center; }
.hps-n b { font-size: 26px; font-weight: 800; color: #c2437e; }
.hps-n span { font-size: 12px; color: #9a93ad; }
.hps-l { font-size: 11.5px; color: #9a93ad; margin-top: 2px; }
.hp-week { display: flex; gap: 10px; align-items: flex-end; }
.hpw { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.hpw-bar { width: 16px; height: 44px; display: flex; align-items: flex-end;
  background: #f7f5fb; border-radius: 5px; overflow: hidden; }
.hpw-bar i { display: block; width: 100%; background: linear-gradient(180deg, #b9a4e8, #8b6fd6); border-radius: 5px; }
.hpw-l { font-size: 10.5px; color: #b0a8c0; }

body[data-theme="dark"] .hplan { background: #1a1f27; }
body[data-theme="dark"] .hp-num b { color: #e8eaf0; }
body[data-theme="dark"] .hp-bar, body[data-theme="dark"] .hpw-bar { background: #242a34; }
body[data-theme="dark"] .hp-streak { border-color: #242a34; }

/* 精听：当前句高亮 + 循环句 */
#transcript .tline { cursor: pointer; transition: background .15s; border-radius: 6px; padding: 2px 6px; }
#transcript .tline:hover { background: rgba(122,79,208,.06); }
#transcript .tline.cur { background: rgba(58,111,240,.10) !important; box-shadow: inset 3px 0 0 #3a6ff0; }
#transcript .tline.loop { background: rgba(194,67,126,.12) !important; box-shadow: inset 3px 0 0 #c2437e; }
#transcript .tline .tt { cursor: pointer; }
#transcript .tline .tt:hover { color: #3a6ff0; }

/* 原文顶部操作条 */
.tbar { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; font-size: 12.5px; color: var(--ink2); }
.tbar .tip { color: #8b8499; }
#transcript .tline .tc.blind { color: transparent; text-shadow: none; }
#transcript .tline .tc.blind .cn { color: #8b8499 !important; }
#ttFollow.on { background: #eaf1fb !important; color: #1c5fbf !important; border-color: #c9dcfa !important; }

/* 口语参考答案 */
.p1qs li.hasans { position: relative; }
.ansbtn { margin-left: 8px; font-size: 11.5px; padding: 1px 8px; border-radius: 999px;
  border: 1px solid #e8e2f2; background: #faf8ff; color: #7b4fd0; cursor: pointer; }
.ansbtn:hover { background: #efe6fd; }
.ansbox { margin: 8px 0 4px 0; padding: 12px 14px; background: #fbfaff; border-left: 3px solid #c9a9f5; border-radius: 8px; }
.ans-en { font-size: 14px; line-height: 1.75; color: #2f2a3d; margin: 0 0 8px; }
.ans-cn { font-size: 13px; line-height: 1.7; color: #7a7291; margin: 0; }

/* 范文库 */
.csub { font-size: 12.5px; color: #8b8499; line-height: 1.55; margin: 4px 0 8px; }
.modal-mask { position: fixed; inset: 0; background: rgba(20,18,32,.42); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 900; padding: 28px; }
.modal { background: #fff; border-radius: 20px; width: min(820px, 100%); max-height: 86vh; overflow: auto;
  padding: 28px 32px 32px; box-shadow: 0 24px 80px rgba(20,18,32,.28); }
.modal .mhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.modal .mno { font-size: 12px; color: #9c94b0; margin-bottom: 6px; }
.modal h2 { font-size: 21px; margin: 0; color: #241d33; }
.modal .mq { background: #f7f5fb; border-left: 3px solid #c9a9f5; border-radius: 8px;
  padding: 12px 16px; font-size: 14px; line-height: 1.7; color: #4b4260; margin-bottom: 18px; }
.modal .mbody p { font-size: 15px; line-height: 1.85; color: #2f2a3d; margin: 0 0 14px; }
.modal .ideas-body h4 { font-size: 14px; color: #7b4fd0; margin: 20px 0 8px; }
.modal .ideas-body p { font-size: 14px; line-height: 1.7; color: #4b4260; margin: 0 0 6px; padding-left: 14px; position: relative; }
.modal .ideas-body p::before { content: '·'; position: absolute; left: 4px; color: #c9a9f5; }
body[data-theme="dark"] .modal { background: #1b2130; }
body[data-theme="dark"] .modal h2, body[data-theme="dark"] .modal .mbody p { color: #e8e6ef; }
.fcard .fno { font-size: 11px; color: #b93a72; font-weight: 650; letter-spacing: .04em; }
.fcard .fpro { color: #14795a; }
.fcard .fcon { color: #b8361f; }
.fcard .fcc { color: #7b4fd0; font-weight: 600; }
.fcard p { font-size: 12.5px; line-height: 1.6; margin: 6px 0 0; }
#transBtn { background: #fff !important; }
.trow { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #efeaf6; font-size: 13.5px; line-height: 1.75; }
.trow:last-child { border-bottom: 0; }
.tlab { flex: 0 0 22px; font-weight: 700; color: #b93a72; }
.tcn { flex: 1; color: #3a3550; }
.extext { font-size: 13px; line-height: 1.9; color: #3a3550; white-space: pre-wrap; }
.pill.hot { background: #fde7f0 !important; color: #b93a72 !important; font-weight: 650; }
#sampleBody .smeta { font-size:12.5px; color:#8b8499; margin-bottom:10px }
#sampleBody .spara { margin:0 0 14px; font-size:15px; line-height:1.85; color:#2b2438 }
#repeatBox { margin-top:20px; padding-top:16px; border-top:1px solid #f0ecf6 }
#repeatBox .rhint { font-size:12.5px; color:#8b8499; margin:6px 0 12px }
.rrow2 { display:flex; align-items:flex-start; gap:10px; padding:7px 0; font-size:13.5px; flex-wrap:wrap }
.rword { font-weight:650; color:#b93a72; min-width:110px }
.rword i { font-style:normal; color:#c9b8d6; font-weight:500; margin-left:2px }
.rarrow { color:#c9b8d6 }
.ralts { display:flex; gap:6px; flex-wrap:wrap; flex:1 }
.ralt { background:#f2ecfb; color:#6b4fa8; padding:1px 8px; border-radius:5px; font-size:12.5px }
#repeatBox .gsec { display:flex; align-items:center; gap:8px }
#repeatBox .gsec-n { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:#f2ecfb; color:#6b4fa8; font-size:12px }
/* ---- 同义替换表 ---- */
.synwrap { margin-top:14px; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--panel); }
.syntable { width:100%; border-collapse:collapse; font-size:15px; }
.syntable thead th { text-align:left; padding:12px 16px; font-weight:600; font-size:12.5px; color:var(--ink-2); background:var(--tint); border-bottom:1px solid var(--line); }
.syntable tbody td { padding:11px 16px; border-bottom:1px solid var(--line-2); vertical-align:middle; }
.syntable tbody tr:last-child td { border-bottom:0; }
.syntable tbody tr:hover { background:var(--hover); }
.sword { font-weight:650; color:var(--ink); font-size:15.5px; }
.salt { color:#2f7d5f; font-weight:600; font-size:15px; }
.pos { display:inline-block; padding:1px 7px; border-radius:7px; background:var(--tint-2); color:var(--ink-2); font-size:11.5px; }
.scn { color:var(--ink-2); font-size:14.5px; }
.freq { display:inline-block; min-width:26px; padding:1px 6px; border-radius:8px; background:#fdeee6; color:#b8541f; font-size:11.5px; font-weight:600; text-align:center; }
.freq.none { background:transparent; color:var(--ink-3); }
.syntable .empty { text-align:center; padding:34px; color:var(--ink-3); }
/* 替换词页工具栏（独立命名，避免与听力页 .filters 冲突） */
.syntool { margin:22px 0 6px; display:flex; flex-direction:column; gap:12px; }
.synsearch { width:100%; padding:12px 16px; border:1px solid var(--line); border-radius:12px; background:var(--panel); color:var(--ink); font-size:15px; }
.synsearch:focus { outline:none; border-color:var(--accent); }
.synchips { display:flex; gap:8px; flex-wrap:wrap; }
.synchip { padding:6px 15px; border-radius:999px; border:1px solid var(--line); background:var(--panel); color:var(--ink-2); font-size:13.5px; cursor:pointer; transition:.15s; }
.synchip:hover { border-color:var(--accent); }
.synchip.active { background:var(--accent); border-color:var(--accent); color:#fff; }
.syncheck { display:flex; align-items:center; gap:7px; font-size:13.5px; color:var(--ink-2); cursor:pointer; }

/* ===== 听力场景词 ===== */
.vscene { margin: 30px 0 8px; }
.vscene-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.vscene-n { padding: 3px 10px; border-radius: 999px; background: #f0e8ff; color: #6b4fa8; font-size: 12px; font-weight: 600; }
.vscene-h h3 { margin: 0; font-size: 17px; color: var(--ink); font-weight: 600; }
.vscene-h em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ink-3, #8b95ab); }
.vcat { margin-bottom: 18px; }
.vcat h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #6b4fa8; }
.vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 7px 16px; }
.vitem { display: flex; gap: 9px; align-items: baseline; padding: 6px 11px; background: #fff; border: 1px solid var(--line, #ece8f2); border-radius: 9px; font-size: 13.5px; }
.vitem b { color: var(--ink); font-weight: 600; flex-shrink: 0; }
.vitem span { color: var(--ink-3, #6b6480); font-size: 12.5px; }
.empty { text-align: center; color: var(--ink-3, #8b95ab); padding: 50px 0; font-size: 14px; }

/* ===== AWL 学术词表 ===== */
.awltable { background: #fff; border: 1px solid var(--line, #ece8f2); border-radius: 12px; overflow: hidden; }
.awltable table { width: 100%; border-collapse: collapse; }
.awltable tr + tr td { border-top: 1px solid #f4f1f8; }
.awltable td { padding: 9px 14px; font-size: 13.5px; vertical-align: top; }
.awltable .aww { width: 168px; font-weight: 600; color: var(--ink); }
.awltable .awp { width: 58px; color: #a99ad6; font-size: 12.5px; }
.awltable .awd { color: var(--ink-3, #6b6480); line-height: 1.55; }
/* 写作句型库 */
.phwrap { display: flex; flex-direction: column; gap: 18px; }
.phgrp h4 { margin: 0 0 8px; font-size: calc(var(--fs) - 1px); color: var(--ink-2); font-weight: 600; }
.phgrp h4 em { font-style: normal; font-weight: 400; color: var(--ink-3, #9aa3b2); margin-left: 7px; font-size: calc(var(--fs) - 2px); }
.phlist { display: flex; flex-wrap: wrap; gap: 6px; }
.phitem { padding: 5px 11px; border-radius: 8px; background: #f6f3fb; border: 1px solid #ece6f6; font-size: calc(var(--fs) - 1px); color: var(--ink); cursor: pointer; transition: .12s; }
.phitem:hover { background: #efe8fb; border-color: #ddd0f0; }
.phsub { font-size: calc(var(--fs) - 2px); color: var(--ink-3, #9aa3b2); margin: 18px 0 10px; padding-top: 14px; border-top: 1px dashed #eee8f5; }
/* 考试技巧 */
.hintwrap { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.hintcard { padding: 20px 22px; border-radius: 12px; background: #fbfaff; border: 1px solid #eee9f7; }
.hintsec { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #f2ecfb; color: #6b4fa8; font-size: 11px; margin-bottom: 9px; }
.hintcard h3 { margin: 0 0 8px; font-size: calc(var(--fs) + 1px); font-weight: 600; color: var(--ink); }
.hintcard p { margin: 0; font-size: calc(var(--fs) - 1px); line-height: 1.72; color: var(--ink-2); }

/* ============ 模考（独立深色主题，不受站点主题影响） ============ */
body.mockpage { background:#e9e8e4 !important; margin:0; font-family:"Segoe UI",Arial,"PingFang SC",sans-serif; }
.mockpage { height:100vh; height:100dvh; overflow:hidden; }
.mockpage .mk-app { height:100vh; height:100dvh; max-height:100vh; max-height:100dvh;
  overflow:hidden; display:flex; flex-direction:column; }
/* 兜底：底栏永不被挤出 */
.mockpage .mk-foot { position:sticky; bottom:0; z-index:5; }

/* 顶栏 */
.mk-top { height:52px; background:#1f2229; color:#fff; display:flex; align-items:center;
  padding:0 20px; gap:16px; flex:0 0 auto; }
.mk-left { display:flex; align-items:center; gap:10px; }
.mk-logo { font-weight:700; letter-spacing:1px; font-size:14px; color:#fff; }
.mk-mod { font-size:12px; color:#8d95a5; border-left:1px solid #3a3f4a; padding-left:10px; }
.mk-stage { flex:1; text-align:center; font-size:13px; color:#c8cdd8; letter-spacing:.5px; }
.mk-right { min-width:120px; text-align:right; }
.mk-clock { font-family:ui-monospace,"SF Mono",Consolas,monospace; font-size:19px; font-weight:600;
  color:#fff; letter-spacing:1px; }
.mk-clock.warn { color:#ff6b6b; animation:mkpulse 1s infinite; }
@keyframes mkpulse { 50% { opacity:.45 } }

/* 主体 */
.mk-body { flex:1; background:#fff; padding:0; overflow:hidden; display:flex; min-height:0; }
/* 单栏阶段（听力/写作/结果）自己滚，阅读阶段左右分栏各滚 */
.mk-body.flow { display:block; overflow-y:scroll; overflow-x:hidden; }
.mk-body.split { display:flex; overflow:hidden; }

/* 底栏 */
.mk-foot { height:74px; background:#f4f3f0; border-top:1px solid #d8d6d0;
  display:flex; align-items:center; padding:0 20px; gap:16px; flex:0 0 auto; }
.mk-qnav { flex:1 1 auto; min-width:0; display:flex; gap:4px; flex-wrap:wrap; max-height:56px; overflow-y:auto; align-content:flex-start; }
.mk-qbtn { width:26px; height:26px; border:1px solid #c5c2ba; background:#fff; border-radius:3px;
  font-size:11px; color:#5a564d; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.mk-qbtn.seg { background:#f3effa; border-color:#d8cfe8; color:#6b5f85; }
.mk-qbtn.done { background:#1f2229; border-color:#1f2229; color:#fff; }
.mk-qbtn.seg.done { background:#1f2229; border-color:#1f2229; color:#fff; }
.mk-qbtn.cur { outline:2px solid #c94b8a; outline-offset:1px; }
.mk-actions { display:flex; gap:10px; flex:0 0 auto; }
.mk-btn { padding:9px 22px; border-radius:4px; border:1px solid #c5c2ba; background:#fff;
  color:#3a3630; font-size:13px; cursor:pointer; }
.mk-btn:hover { background:#efeee9; }
.mk-btn.primary { background:#1f2229; border-color:#1f2229; color:#fff; }
.mk-btn.primary:hover { background:#33373f; }
.mk-btn.danger { background:#c94b3a; border-color:#c94b3a; color:#fff; }

/* 说明页 */
.mk-intro { max-width:760px; margin:0 auto; padding:44px 24px 60px; }
.mk-intro h1 { font-size:26px; margin:0 0 10px; color:#1f2229; }
.mk-lead { color:#6b6a66; font-size:14px; margin:0 0 26px; }
.mk-tb { width:100%; border-collapse:collapse; margin:0 0 22px; font-size:14px; }
.mk-tb th { text-align:left; padding:9px 12px; background:#f4f3f0; color:#5a564d; font-weight:600; font-size:12px; }
.mk-tb td { padding:11px 12px; border-bottom:1px solid #ecebe7; color:#2e2b26; }
.mk-tb td:first-child { color:#a9a49a; width:34px; }
.mk-tip { background:#faf9f6; border:1px solid #eae8e2; border-radius:6px; padding:16px 18px; font-size:13px; color:#5a564d; margin-bottom:26px; }
.mk-tip > b { display:block; color:#2e2b26; margin:10px 0 6px; font-size:13px; }
.mk-tip > b:first-child { margin-top:0; }
.mk-tip li b { display:inline; color:#c94b8a; margin:0; }
.mk-tip ul { margin:0; padding-left:18px; line-height:1.85; }
.mk-pick { display:flex; align-items:center; gap:12px; }
.mk-pick label { font-size:13px; color:#6b6a66; }
.mk-pick select { padding:8px 12px; border:1px solid #c5c2ba; border-radius:4px; font-size:14px; background:#fff; }

/* 听力 */
.mk-listening { max-width:820px; margin:0 auto; padding:32px 24px 80px; }
.mk-lhead { display:flex; align-items:baseline; gap:12px; margin-bottom:6px; }
.mk-lhead h2 { font-size:20px; margin:0; color:#1f2229; }
.mk-ltitle { font-size:13px; color:#8a8780; }
.mk-instr { font-size:13px; color:#4a473f; background:#faf9f6; border-left:3px solid #c94b8a; padding:10px 14px; margin:16px 0; }
.mk-lbody p { font-size:14px; color:#3a3630; line-height:1.75; margin:6px 0; }
.mk-lbody p.li { padding-left:16px; }
.mk-qs { margin-top:22px; }
.mk-q { font-size:14.5px; color:#2e2b26; line-height:2.1; padding:9px 0; border-bottom:1px dashed #ecebe7; }
.mk-num { color:#c94b8a; font-weight:700; margin-right:5px; }
input.mk-in { border:none; border-bottom:2px solid #1f2229; border-radius:0; background:transparent;
  width:150px; padding:2px 6px; font-size:14px; color:#1f2229; outline:none; margin:0 4px; transition:.15s; }
input.mk-in:hover { border-bottom-color:#c94b8a; background:rgba(201,75,138,.04); }
input.mk-in:focus { border-bottom-color:#c94b8a; border-bottom-width:2.5px; background:rgba(201,75,138,.07); }

/* 阅读：左右分栏 */
.mk-reading { display:flex; width:100%; height:100%; min-height:0; overflow:hidden; }
.mk-rleft { flex:1; min-width:0; padding:22px 20px 32px 28px; overflow-y:scroll; overflow-x:hidden; border-right:1px solid #e4e2dc; }
.mk-rright { flex:1; min-width:0; padding:26px 20px 60px 28px; overflow-y:scroll; overflow-x:hidden; background:#fbfaf8; }
.mk-rleft h2 { font-size:17px; margin:0 0 12px; color:#1f2229; line-height:1.35; }
.mk-rleft h3 { font-size:15px; margin:16px 0 8px; color:#1f2229; line-height:1.4; }
.mk-rleft p { margin:0 0 11px; line-height:1.78; }
.mk-rleft p:last-child { margin-bottom:0; }
.mk-rleft strong { font-weight:700; }
.mk-rleft br + br { display:none; }
.mk-qinfo { flex:0 0 auto; display:flex; align-items:baseline; gap:3px; font-size:11.5px;
  color:#8a8780; white-space:nowrap; }
.mk-qinfo b { font-size:13px; color:#3a3630; font-weight:700; }
.mk-passage { font-size:14.5px; line-height:1.95; color:#2e2b26; white-space:pre-wrap; }
.mk-rgroup { margin-bottom:20px; font-size:14px; line-height:1.9; color:#2e2b26; }
.mk-rright .blank { display:inline-block; min-width:74px; border-bottom:1.5px solid #9a968c;
  background:#fff; margin:0 3px; padding:0 6px; min-height:19px; outline:none; vertical-align:bottom; }
.mk-rright .blank:focus { border-bottom-color:#c94b8a; }

/* 题型渲染 */
.mk-groups { margin-top:8px; }
.mk-group { margin-bottom:26px; }
.mk-gtitle { font-size:13px; font-weight:700; color:#1f2229; margin:16px 0 6px; }
.mk-otitle { font-size:12px; color:#8a8780; margin:10px 0 6px; }
.mk-opts { display:flex; flex-wrap:wrap; gap:8px 18px; margin:8px 0 14px; }
.mk-opt { font-size:13.5px; color:#3a3630; }
.mk-opt b { color:#c94b8a; margin-right:5px; }
.mk-qrow { display:flex; align-items:center; gap:8px; }
.mk-qlabel { flex:1; color:#2e2b26; }
input.mk-in.sm { width:110px; }
.mk-qt { font-size:14.5px; color:#1f2229; font-weight:500; margin-bottom:8px; }
.mk-choices { display:flex; flex-direction:column; gap:7px; margin-bottom:16px; }
.mk-choice { display:flex; align-items:flex-start; gap:8px; font-size:14px; color:#3a3630; cursor:pointer; line-height:1.6; }
.mk-choice input { margin-top:4px; accent-color:#c94b8a; }
.mk-choice b { color:#c94b8a; flex:0 0 16px; }
.mk-chhint { font-size:12px; color:#c94b8a; margin-bottom:8px; }

/* 写作 */
.mk-writing { display:flex; height:100%; min-height:0; }
.mk-wleft { flex:0 0 42%; padding:30px 28px 60px; border-right:1px solid #e4e2dc; overflow:auto; }
.mk-wright { flex:1; display:flex; flex-direction:column; padding:20px 24px 16px; }
.mk-wtask { font-size:12px; letter-spacing:1px; color:#c94b8a; font-weight:700; margin-bottom:14px; }
.mk-wen { font-size:15px; line-height:1.85; color:#1f2229; }
.mk-wcn { font-size:13px; line-height:1.8; color:#6b6a66; margin-top:14px; padding-top:14px; border-top:1px solid #ecebe7; }
.mk-winstr { font-size:12px; color:#8a8780; margin-top:18px; }
.mk-wta { flex:1; width:100%; border:1px solid #dcd9d2; border-radius:4px; padding:16px 18px;
  font-size:15px; line-height:1.9; color:#1f2229; resize:none; outline:none; font-family:inherit; background:#fff; }
.mk-wta:focus { border-color:#c94b8a; }
.mk-wcount { text-align:right; font-size:12px; color:#8a8780; padding-top:8px; }
.mk-wcount.ok { color:#3a8a5a; }

/* 出分 */
.mk-result { max-width:780px; margin:0 auto; padding:44px 24px 70px; }
.mk-result h1 { font-size:24px; margin:0 0 26px; color:#1f2229; }
.mk-result h2 { font-size:15px; margin:34px 0 12px; color:#1f2229; }
.mk-scores { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:10px; }
.mk-sc { background:#faf9f6; border:1px solid #eae8e2; border-radius:6px; padding:16px 8px; text-align:center; }
.mk-sc span { display:block; font-size:11px; color:#8a8780; letter-spacing:.5px; margin-bottom:8px; }
.mk-sc b { display:block; font-size:30px; color:#1f2229; font-weight:700; line-height:1.2; }
.mk-sc em { display:block; font-size:11px; color:#a9a49a; font-style:normal; margin-top:6px; }
.mk-sc small { display:block; font-size:10px; color:#b8956a; margin-top:5px; line-height:1.35; letter-spacing:-.2px; white-space:nowrap; }
.mk-sc small.pending { color:#8c7bb5; }
.mk-sc small.pending::after { content:''; display:inline-block; width:5px; height:5px;
  margin-left:4px; border-radius:50%; background:#8c7bb5; vertical-align:middle;
  animation:mkWaitPulse 1.2s ease-in-out infinite; }
.mk-sc small.done { color:#5f9e6e; }
@keyframes mkWaitPulse { 0%,100% { opacity:.25; transform:scale(.8); }
  50% { opacity:1; transform:scale(1.15); } }
.mk-sc.total { background:#1f2229; border-color:#1f2229; }
.mk-sc.total span, .mk-sc.total em { color:#8d95a5; }
.mk-sc.total b { color:#fff; }

/* 明细表列宽修正 */
.mk-result .mk-tb th:first-child, .mk-result .mk-tb td:first-child { width:88px; white-space:nowrap; }
.mk-result .mk-tb th:last-child, .mk-result .mk-tb td:last-child { width:88px; text-align:right; }

/* ===== 首页「模拟真实机考」大区块 ===== */
.mockbox { margin:26px 0 30px; border-radius:20px; overflow:hidden;
  background:linear-gradient(135deg,#fdfcff 0%,#f7f2fd 48%,#eef4fd 100%);
  border:1px solid rgba(160,150,200,.18);
  box-shadow:0 8px 30px rgba(120,110,160,.10); position:relative; }
.mockbox::before { content:''; position:absolute; inset:0;
  background:radial-gradient(circle at 82% 8%, rgba(201,75,138,.09), transparent 58%);
  pointer-events:none; }
.mkinner { position:relative; padding:44px 46px 40px; }
.mktag { display:inline-block; padding:11px 26px; border-radius:999px;
  background:linear-gradient(135deg,#fdeef6,#fbe4ef); color:#c94b8a; font-size:21px; font-weight:800;
  letter-spacing:3px; border:1px solid rgba(201,75,138,.26);
  box-shadow:0 2px 14px rgba(201,75,138,.13); }
.mockbox h2 { margin:16px 0 14px; font-size:29px; color:#2b2733; font-weight:700; letter-spacing:.3px; }
.mkp { margin:0 0 28px; font-size:14.5px; line-height:1.95; color:#6f6a7d; }
.mksteps { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:32px; }
.mkstep { display:flex; gap:13px; align-items:flex-start; padding:18px 20px;
  background:#fff; border:1px solid rgba(160,150,200,.16); border-radius:12px;
  box-shadow:0 2px 10px rgba(120,110,160,.055); }
.mkstep b { flex:0 0 26px; height:26px; border-radius:50%; background:#c94b8a; color:#fff;
  font-size:13px; display:flex; align-items:center; justify-content:center; }
.mkstep strong { display:block; color:#2b2733; font-size:14px; margin-bottom:5px; }
.mkstep span { color:#8a8497; font-size:12.5px; line-height:1.6; }
.mkfoot { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.mkgo { display:inline-flex; align-items:center; padding:14px 34px; border-radius:999px;
  background:linear-gradient(135deg,#e0568f,#c94b8a); color:#fff; font-size:15px; font-weight:600;
  text-decoration:none; box-shadow:0 10px 26px rgba(201,75,138,.42); transition:.18s; }
.mkgo:hover { transform:translateY(-2px); box-shadow:0 14px 32px rgba(201,75,138,.5); }
.mknote { font-size:12.5px; color:#8a8497; }

.mk-picknote { font-size:12.5px; color:#8a8780; }
.mk-btn:disabled { opacity:.55; cursor:default; }
/* 写作模板 · 逻辑链 */
.twrap { padding:2px 0 8px; }
.tsub { font-size:14px; color:#5b5470; margin:18px 0 10px; font-weight:700; }
.tsub:first-child { margin-top:4px; }
.thint { font-weight:400; font-size:12.5px; color:#9a94ab; margin-left:8px; }
.tpltabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.tpltab { padding:7px 16px; border-radius:999px; border:1px solid var(--line); background:#fff; color:var(--ink-2); font-size:13px; cursor:pointer; transition:.15s; }
.tpltab:hover { border-color:var(--accent); }
.tpltab.on { background:var(--accent); border-color:var(--accent); color:#fff; }
.tplnote { font-size:13px; color:#7a7288; margin-bottom:12px; padding-left:10px; border-left:3px solid #e8e2f4; }
.tplblk { margin-bottom:12px; padding:12px 14px; background:#faf8fd; border-radius:10px; }
.tplpart { font-size:12px; font-weight:700; color:#8b6fc4; margin-bottom:6px; }
.tplen { font-size:14px; color:#2e2b36; line-height:1.7; margin-bottom:4px; }
.tplcn { font-size:12.5px; color:#8b8496; line-height:1.6; }
.chains { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:12px; }
.chain { padding:13px 15px; background:#faf8fd; border-radius:10px; }
.chain-h { font-size:13px; font-weight:700; color:#5b46a8; margin-bottom:8px; display:flex; align-items:center; gap:6px; }
.chain-h em { font-style:normal; font-size:11px; background:#ede7f8; color:#7b5cc4; padding:1px 6px; border-radius:8px; }
.chainrow { margin-bottom:8px; }
.chaincn { font-size:12.5px; color:#2e2b36; line-height:1.65; }
.chainen { font-size:11.5px; color:#8b8496; line-height:1.55; margin-top:2px; }

/* 小作文词库 */
.t1sec { margin-bottom:30px; }
.t1sec-h { display:flex; align-items:baseline; gap:10px; margin-bottom:4px; }
.t1sec-h h4 { font-size:16px; font-weight:800; color:var(--ink); margin:0; }
.t1sec-h em { font-style:normal; font-size:12px; color:var(--ink-3); }
.t1note { font-size:13px; color:var(--ink-2); margin:0 0 14px; }
.t1grp { margin-bottom:18px; }
.t1grp-h { font-size:12.5px; font-weight:700; color:var(--accent); margin-bottom:8px; letter-spacing:.3px; }
.t1row { display:grid; grid-template-columns:120px 1fr; gap:10px; padding:7px 0; border-bottom:1px dashed rgba(120,110,160,.13); font-size:13.5px; }
.t1cn { color:var(--ink-2); }
.t1en { color:var(--ink); font-weight:600; }
.t1en i { font-style:normal; font-weight:400; color:var(--ink-3); font-size:12.5px; display:block; margin-top:3px; }

/* 口语万能理由 */
#reasonsPanel { margin:18px 0 8px; }
.rsec-h { font-size:13px; font-weight:800; color:var(--accent); margin:16px 0 10px; letter-spacing:.3px; }
.rsec-h:first-child { margin-top:0; }
.rgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:10px; }
.rcard { background:#fbfaff; border:1px solid rgba(120,110,160,.13); border-radius:12px; padding:12px 14px; }
.rcard-h { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.rcard-h b { font-size:14px; color:var(--ink); }
.rcard-h em { font-style:normal; font-size:11.5px; color:#a89ec4; }
.rcard-t { font-size:13px; line-height:1.72; color:var(--ink-2); }
.rcard-t u { text-decoration:none; color:var(--accent); border-bottom:1px dashed var(--accent); }

/* 阅读考点词 538 */
.c538sec { margin-bottom:22px; }
.c538h { font-size:13px; font-weight:700; color:#6b4ba8; margin:0 0 8px; display:flex; align-items:center; gap:8px; }
.c538h span { font-weight:400; font-size:12px; color:#a8a49c; }
.c538syn { display:inline-block; padding:1px 8px; margin:2px 5px 2px 0; border-radius:7px; background:#f4f1fa; color:#5f5a52; font-size:12.5px; }
.c538syn.red { background:#fde8f1; color:#c2437e; font-weight:600; }
.c538red { color:#c2437e; }

/* 写作话题词汇 */
.wvsec { margin-bottom:26px; }
.wvsec-h { font-size:13px; font-weight:700; color:#2f7fe8; margin:0 0 10px; display:flex; align-items:center; gap:8px; }
.wvsec-h span { font-weight:400; font-size:12px; color:#a8a49c; }
.wvgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:2px 20px; }
.wvrow { display:flex; align-items:baseline; gap:8px; padding:4px 0; border-bottom:1px solid #f4f2ee; font-size:13px; }
.wvrow b { color:#2e2b26; font-weight:600; min-width:0; }
.wvrow i { color:#8a8780; font-style:normal; font-size:12.5px; }

/* Part 2 结构 */
.p2intro { font-size:13.5px; line-height:1.85; color:#5f5a52; margin:0 0 18px; }
.p2prep { background:#faf8fd; border:1px solid #eee7f7; border-radius:14px; padding:16px 20px; margin-bottom:20px; }
.p2prep-h { font-size:14px; font-weight:700; color:#6b4ba8; margin-bottom:10px; }
.p2steps { margin:0; padding-left:20px; }
.p2steps li { font-size:13px; line-height:1.8; color:#5f5a52; margin-bottom:6px; }
.p2steps li b { display:block; color:#2e2b26; font-weight:700; margin-bottom:1px; }
.p2tabs { display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.p2tab { padding:7px 18px; border-radius:20px; border:1px solid #e8e4f2; background:#fff; color:#6b6560; font-size:13px; cursor:pointer; }
.p2tab.on { background:#f0e9fb; border-color:#d9cbf2; color:#6b4ba8; font-weight:600; }
.p2card-h { font-size:15px; font-weight:700; color:#2e2b26; margin-bottom:4px; }
.p2card-sub { font-size:12.5px; color:#a8a49c; margin-bottom:16px; }
.p2blk { border-left:3px solid #e8dff8; padding:0 0 0 14px; margin-bottom:16px; }
.p2p { font-size:12.5px; font-weight:700; color:#6b4ba8; margin-bottom:5px; }
.p2en { font-size:13.5px; line-height:1.75; color:#2e2b26; margin-bottom:4px; }
.p2cn { font-size:12.5px; line-height:1.7; color:#8a8780; }
.p2tips { background:#fdf6f9; border-radius:14px; padding:16px 20px; margin-top:20px; }
.p2tips > b { display:block; font-size:13px; color:#c2437e; margin-bottom:8px; }
.p2tips ul { margin:0; padding-left:18px; }
.p2tips li { font-size:12.5px; line-height:1.8; color:#6b6560; }

/* 口语高分短语 */
.phrsec { margin-bottom:26px; }
.phrsec-h { font-size:13px; font-weight:700; color:#17936b; margin:0 0 12px; display:flex; align-items:center; gap:8px; }
.phrsec-h span { font-weight:400; font-size:12px; color:#a8a49c; }
.phrrow { padding:12px 0; border-bottom:1px solid #f4f2ee; }
.phrh { display:flex; align-items:baseline; gap:10px; margin-bottom:5px; }
.phrh b { font-size:14px; color:#2e2b26; font-weight:700; }
.phrh i { font-style:normal; font-size:12.5px; color:#8a8780; }
.phren { font-size:13px; line-height:1.75; color:#5f5a52; margin-bottom:3px; }
.phrcn { font-size:12.5px; line-height:1.7; color:#a8a49c; }

/* ===== 跟读 ===== */
.shwrap { display:grid; grid-template-columns:230px 1fr; gap:18px; align-items:start; }
.shside { display:flex; flex-direction:column; gap:6px; max-height:640px; overflow-y:auto; padding-right:4px; }
.shitem { padding:9px 11px; border-radius:10px; cursor:pointer; border:1px solid transparent; transition:.15s; }
.shitem:hover { background:#f7f4ff; }
.shitem.on { background:#f3edff; border-color:#d9c9ff; }
.shitem-t { font-size:13px; font-weight:650; color:#2e2b26; line-height:1.35; }
.shitem-m { font-size:11.5px; color:#8a8780; margin-top:2px; }
.shitem-m em { font-style:normal; color:#b07cd8; }
.shmain { min-height:200px; }
.shempty { color:#a8a49c; font-size:13px; padding:40px 0; text-align:center; }
.shhead h3 { margin:0 0 4px; font-size:19px; font-weight:780; color:#2e2b26; }
.shcn { font-size:13px; color:#8a8780; margin-bottom:14px; }
.shbar { display:flex; align-items:center; gap:10px; margin-bottom:18px; flex-wrap:wrap; }
.shrate { font-size:12.5px; color:#6b6862; display:flex; align-items:center; gap:6px; }
.shrate select { font-size:12.5px; padding:4px 6px; border-radius:7px; border:1px solid #e0ddd6; background:#fff; }
.shcnt { font-size:12px; color:#a8a49c; margin-left:auto; }
.shbody { display:flex; flex-direction:column; gap:2px; }
.shsent { margin:0; padding:8px 12px; border-radius:9px; font-size:15px; line-height:1.75; color:#3a3730;
  cursor:pointer; transition:.18s; border-left:3px solid transparent; }
.shsent:hover { background:#faf8ff; }
.shsent.on { background:#f3edff; border-left-color:#b79cf5; color:#1f1c17; font-weight:600; }
.shgl { margin-top:22px; padding-top:16px; border-top:1px solid #eee9e2; }
.shgl-h { font-size:12px; font-weight:700; color:#b07cd8; letter-spacing:.06em; margin-bottom:10px; }
.shglrow { display:flex; gap:12px; padding:5px 0; font-size:13.5px; }
.shglrow b { color:#2e2b26; min-width:110px; }
.shglrow span { color:#6b6862; }
@media (max-width:820px) { .shwrap { grid-template-columns:1fr; } .shside { max-height:200px; } }

/* ===== 首页四科卡片 v2 ===== */
.hcard { display:flex; flex-direction:column; gap:0; }
.hcard .hhead { display:flex; gap:14px; align-items:center; margin-bottom:14px; }
.hcard .htxt { min-width:0; }
.hcard h3 { margin:0 0 3px; font-size:20px; font-weight:800; letter-spacing:-.02em; }
.hcard .hdesc { font-size:12.5px; color:#7b8598; font-weight:500; line-height:1.45; }
.hcard .hchips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:auto; padding-bottom:16px; }
.hcard .hchips span {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 9px; border-radius:7px; font-size:11.5px; font-weight:600;
  background:rgba(120,110,160,.07); color:#5d6478;
}
.hcard .hchips b { font-size:11px; font-weight:800; opacity:.62; }
.hcard.l .hchips span { background:rgba(123,79,208,.075); color:#6b46b0; }
.hcard.r .hchips span { background:rgba(194,67,126,.075); color:#b03d6e; }
.hcard.w .hchips span { background:rgba(47,127,232,.075); color:#2a6bc4; }
.hcard.s .hchips span { background:rgba(23,147,107,.075); color:#158363; }

/* ===== 地道英式短语 ===== */
.natwrap { display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:16px; }
.nattopic { background:#fff; border:1px solid rgba(120,110,160,.1); border-radius:14px; padding:18px 20px; }
.nattopic h4 { margin:0 0 4px; font-size:15px; font-weight:800; color:#2b3145; }
.nattopic .natcn { font-size:12px; color:#8a8fa3; margin-bottom:14px; }
.natitem { padding:12px 0; border-top:1px dashed rgba(120,110,160,.13); }
.natitem:first-of-type { border-top:0; padding-top:0; }
.natw { font-size:14.5px; font-weight:750; color:#2b3145; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.natw .st { font-size:10.5px; color:#e0a63c; letter-spacing:1px; }
.naten { font-size:12.5px; color:#7b8598; margin:4px 0 0; line-height:1.55; }
.natcn2 { font-size:13px; color:#c94b8a; font-weight:600; margin:3px 0 0; }
.natex { font-size:13px; color:#414a5e; margin:7px 0 0; line-height:1.6; }
.natex i { display:block; font-style:normal; font-size:12.5px; color:#8a8fa3; margin-top:2px; }
.natrel { margin:8px 0 0; padding:8px 0 0; border-top:1px dotted rgba(120,110,160,.16); }
.natrel div { font-size:12.5px; color:#5d6478; line-height:1.6; }
.natrel b { color:#7b4fd0; font-weight:700; }

/* 模考填空：bodyLines 行内输入框对齐 */
.mk-bl { margin:6px 0; line-height:2.6; font-size:14.5px; color:#2e2b26; }
.mk-bl.li { padding-left:16px; }
.mk-bl input.mk-in { vertical-align:middle; }

/* 模考写作：Task 1 图表 */
.mk-wchart { margin:14px 0; padding:12px; background:#fff; border:1px solid #e8e4f0; border-radius:10px; }
.mk-wchart img { width:100%; height:auto; display:block; border-radius:6px; }
.mk-wchart svg { width:100%; height:auto; display:block; }

/* 模考阅读：可拖动分隔条 */
.mk-resizer { flex:0 0 16px; cursor:col-resize; background:#f7f5fb; position:sticky;
  top:0; align-self:flex-start; height:100vh; max-height:100%;
  border-left:1px solid #e4e2dc; border-right:1px solid #e4e2dc; transition:background .15s; }
.mk-resizer::after { content:''; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:3px; height:96px; border-radius:2px; background:#cfc7e0; z-index:1; display:block; }
.mk-resizer::before { content:''; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:22px; height:46px; border-radius:7px; background-color:#fff; border:1.5px solid #b3a8c9;
  box-shadow:0 2px 6px rgba(90,70,130,.18);
  background-image:radial-gradient(circle, #a99cc4 1.1px, transparent 1.3px);
  background-size:7px 8px; background-position:50% 50%; background-repeat:repeat;
  z-index:2; display:block; transition:border-color .15s, box-shadow .15s; }
.mk-resizer:hover, .mk-resizer.on { background:#efe9f9; }
.mk-resizer:hover::after, .mk-resizer.on::after { background:#c94b8a; }
.mk-resizer:hover::before, .mk-resizer.on::before { border-color:#c94b8a;
  box-shadow:0 2px 8px rgba(201,75,138,.22), inset 0 0 0 3px #fff; }

/* 左右栏滚动条：加宽醒目 */
.mk-body.flow::-webkit-scrollbar { width:14px; }
.mk-body.flow::-webkit-scrollbar-track { background:#f6f5f2; }
.mk-body.flow::-webkit-scrollbar-thumb { background:#c9c4b8; border-radius:7px;
  border:3px solid #f6f5f2; min-height:64px; }
.mk-body.flow::-webkit-scrollbar-thumb:hover { background:#a9a396; }
.mk-rleft::-webkit-scrollbar, .mk-rright::-webkit-scrollbar {
  width:14px; height:14px; }
.mk-rleft::-webkit-scrollbar-track, .mk-rright::-webkit-scrollbar-track {
  background:#f4f2fa; border-radius:7px; margin:4px 0; }
.mk-rleft::-webkit-scrollbar-thumb, .mk-rright::-webkit-scrollbar-thumb {
  background:#b8b0cc; border-radius:7px; border:3px solid #f4f2fa;
  min-height:64px; }
.mk-rleft::-webkit-scrollbar-thumb:hover, .mk-rright::-webkit-scrollbar-thumb:hover {
  background:#9689b5; border-color:#ebe7f5; }
.mk-rleft::-webkit-scrollbar-button, .mk-rright::-webkit-scrollbar-button { display:none; }
.mk-rleft::-webkit-scrollbar-corner, .mk-rright::-webkit-scrollbar-corner { background:transparent; }

/* 模考阅读正文：收紧默认标签间距 */
.mk-passage { font-size:14.5px; line-height:1.95; color:#33302a; }
.mk-passage h2 { font-size:16px; font-weight:700; margin:0 0 10px; color:#1f2229; }
.mk-passage h3 { font-size:15px; font-weight:700; margin:16px 0 8px; color:#1f2229; }
.mk-passage h4 { font-size:14px; font-weight:700; margin:14px 0 6px; color:#3a362f; }
.mk-passage p { margin:0 0 12px; }
.mk-passage p:empty { margin:0; height:6px; }
.mk-passage br + br { display:none; }

/* 判断题：TRUE/FALSE/NOT GIVEN 横排 */
#questionsBody .radio-options,
.mk-rright .radio-options { display:flex; flex-direction:row; flex-wrap:wrap; gap:2px 20px; margin:6px 0 16px; }
#questionsBody .radio-options label,
.mk-rright .radio-options label { display:inline-flex; align-items:center; gap:6px; font-size:13.5px;
  color:#3a362f; cursor:pointer; padding:3px 8px; border-radius:6px; transition:.12s; }
#questionsBody .radio-options label:hover,
.mk-rright .radio-options label:hover { background:#f0ecf8; }
.mk-rright .radio-options input[type=radio] { accent-color:#c94b8a; width:15px; height:15px; margin:0; cursor:pointer; }
.mk-rright .group > p { margin:6px 0; }
.mk-rright h4 { font-size:14px; font-weight:700; margin:18px 0 8px; color:#1f2229; }
/* raw HTML 题（图表标签、匹配等）里的段落与输入框 */
.mk-rright p { margin:0 0 10px; line-height:1.7; }
.mk-rright .group > h4:first-child { margin-top:0; }
.mk-rright img { max-width:100%; height:auto; }
.mk-rright .diagram-container { margin:14px 0 18px; padding:10px; background:#fff;
  border:1px solid #e8e5de; border-radius:6px; }
.mk-rright .diagram-inputs { display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.mk-rright .diagram-input-row { display:flex; align-items:center; gap:12px; }
.mk-rright .diagram-input-row label { flex:0 0 26px; color:#c94b8a; font-weight:700; font-size:14px; }
.mk-rright .diagram-input-row input[type=text],
.mk-rright .diagram-input-row input:not([type]) {
  flex:1; max-width:280px; border:none; border-bottom:2px solid #1f2229; border-radius:0;
  background:transparent; padding:4px 6px; font-size:14px; color:#1f2229; outline:none; }
.mk-rright .diagram-input-row input:focus { border-bottom-color:#c94b8a;
  border-bottom-width:2.5px; background:rgba(201,75,138,.07); }
.mk-rright .diagram-input-row input:hover { border-bottom-color:#c94b8a;
  background:rgba(201,75,138,.04); }
/* raw HTML 题里所有文本输入框（图表标签、摘要填空、句子完成）统一成下划线 */
.mk-rright input[type=text],
.mk-rright input:not([type]) {
  border:none; border-bottom:2px solid #1f2229; border-radius:0; background:transparent;
  width:150px; padding:2px 6px; font-size:14px; color:#1f2229; outline:none;
  margin:0 4px; transition:.15s; vertical-align:baseline; }
.mk-rright input[type=text]:hover, .mk-rright input:not([type]):hover {
  border-bottom-color:#c94b8a; background:rgba(201,75,138,.04); }
.mk-rright input[type=text]:focus, .mk-rright input:not([type]):focus {
  border-bottom-color:#c94b8a; border-bottom-width:2.5px; background:rgba(201,75,138,.07); }
.mk-rright .summary-completion p { margin:0 0 12px; line-height:2.2; }
.mk-rright .question-item { padding:10px 0; border-bottom:1px dashed #ecebe7; }
.mk-rright .mcq-options label { display:block; padding:3px 0; font-size:14px; cursor:pointer; }
.mk-rright .mcq-options input[type=radio] { margin-right:8px; accent-color:#c94b8a; }
.mk-rright .qno,
#questionsBody .qno { display:inline-block; min-width:16px; color:#c94b8a; font-weight:700; margin-right:6px; }

/* ===== 交卷后 AI 写作批改 ===== */
#mkAI { margin-top: 28px; }
#mkAI h2 { font-size:17px; margin:0 0 14px; }
.mk-ai { border:1px solid #e3ded5; border-radius:12px; background:#fff; padding:16px 18px; margin-bottom:14px; }
.mk-ai-head { display:flex; align-items:baseline; gap:10px; margin-bottom:10px; }
.mk-ai-head b { font-size:15px; color:#1f2229; }
.mk-ai-head span { font-size:12.5px; color:#8b8579; }
.mk-ai-load { color:#8b8579; font-size:13px; }
.mk-ai-err { color:#c0392b; font-size:13px; }
.mk-ai-score { display:flex; align-items:center; gap:22px; padding:10px 0 12px; border-bottom:1px dashed #ebe6dd; margin-bottom:12px; }
.mk-ai-big { display:flex; align-items:baseline; gap:6px; }
.mk-ai-big b { font-size:34px; font-weight:800; color:#1f2229; line-height:1; }
.mk-ai-big span { font-size:12px; color:#8b8579; }
.mk-ai-four { display:flex; gap:16px; flex-wrap:wrap; }
.mk-ai-four em { font-style:normal; font-size:12.5px; color:#6b6559; }
.mk-ai-four b { color:#c94b8a; font-size:14px; margin-left:4px; }
.mk-ai-verdict { font-size:14px; color:#2e2b26; margin:0 0 14px; font-weight:600; }
.mk-ai-sec { margin:14px 0; }
.mk-ai-sec > b { display:block; font-size:13px; color:#1f2229; margin-bottom:8px; }
.mk-ai-sec ul { margin:0; padding-left:18px; }
.mk-ai-sec li { font-size:13.5px; color:#3a362f; margin-bottom:10px; line-height:1.65; }
.mk-ai-sec.good li { color:#2e7d32; }
.mk-ai-sec code { background:#f5f1ea; padding:1px 5px; border-radius:3px; font-size:12.5px; color:#8a4b6b; }
.mk-ai-tag { display:inline-block; font-size:11px; background:#f0ecf8; color:#7a6699; padding:1px 6px; border-radius:8px; margin-left:6px; }
.mk-ai-prob { color:#8b3a3a; font-size:12.5px; margin-top:3px; }
.mk-ai-fix { color:#2e7d32; font-size:12.5px; margin-top:2px; }
.mk-ai-why { color:#8b8579; font-size:12px; }
.mk-ai-next { margin-top:16px; padding:10px 14px; background:#fdf6ee; border-left:3px solid #d9a441; border-radius:0 8px 8px 0; font-size:13.5px; color:#5a4a2a; }
.mk-ai-next b { margin-right:8px; }

/* 写作页字数计数 */
.mk-wcount { font-size:12.5px; color:#8b8579; text-align:right; padding:6px 2px 0; transition:.15s; }
.mk-wcount.ok { color:#2e7d32; font-weight:600; }
.mk-wcount.short { color:#c0392b; font-weight:600; }
.mk-wcount #mkWC { font-weight:700; }

/* 批改区字数警告 */
.mk-ai-warn { background:#fdf3f0; border-left:3px solid #d9534f; border-radius:0 8px 8px 0;
  padding:9px 12px; margin:0 0 12px; font-size:13px; color:#8b3a3a; line-height:1.6; }
.mk-ai-shortw { color:#c0392b !important; font-weight:700; }

/* 填空框最终覆盖：type=text 的 blank 也要黑下划线（压过 input[type=text] 全局规则） */
input[type="text"].blank,
input.blank,
input[class*="blank"],
#questionsBody input:not([type=radio]):not([type=checkbox]),
#paper input {
  border: 0 !important;
  border-bottom: 2px solid #1f2229 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  height: 23px !important;
  padding: 1px 7px !important;
  transition: border-color .15s, background .15s !important;
}
input[type="text"].blank:hover,
input.blank:hover,
#questionsBody input:not([type=radio]):not([type=checkbox]):hover {
  border-bottom-color: #c94b8a !important;
  background: rgba(201,75,138,.04) !important;
}
input[type="text"].blank:focus,
input.blank:focus,
#questionsBody input:not([type=radio]):not([type=checkbox]):focus {
  border-bottom-color: #c94b8a !important;
  border-bottom-width: 2.5px !important;
  background: rgba(201,75,138,.07) !important;
}

/* 单选/匹配题 A-H 选项横排 */
#questionsBody .radio-options,
.mk-rright .radio-options {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 4px 18px !important;
  margin: 8px 0 14px !important;
}
#questionsBody .radio-options label,
.mk-rright .radio-options label {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  padding: 2px 6px;
  border-radius: 5px;
  cursor: pointer;
  flex: 0 0 auto;
}

/* 段落匹配题 A-H：横排紧凑 */
.heading-options { display:flex !important; flex-direction:row !important; flex-wrap:wrap !important;
  gap:6px 16px !important; margin:8px 0 14px !important; }
.heading-option { display:inline-flex !important; align-items:center; gap:5px;
  font-size:13.5px; color:#3a362f; cursor:pointer; padding:2px 6px; border-radius:5px; transition:.12s; }
.heading-option:hover { background:#f0ecf8; }
.heading-option input[type=radio] { accent-color:#c94b8a; width:15px; height:15px; margin:0; cursor:pointer; }

/* 成绩弹窗：实底，不再半透明 */
.result { background: rgba(24,20,16,.58) !important; backdrop-filter: blur(3px) saturate(1.05); }
.result .rwrap {
  background: #ffffff !important;
  border: 1px solid #ece8f2;
  box-shadow: 0 24px 70px rgba(40,30,70,.30), 0 0 0 1px rgba(255,255,255,.6) inset;
}
body[data-theme="dark"] .result .rwrap,
body[data-theme="amber"] .result .rwrap {
  background: #1c1c1c !important;
  border-color: #2e2e2e;
  box-shadow: 0 24px 70px rgba(0,0,0,.62);
}

/* 逐题解析折叠 */
.expfold { background:#fff; border:1px solid #ece8f2; border-radius:11px; overflow:hidden; }
.expfold > summary {
  display:flex; align-items:center; gap:9px; padding:13px 16px; cursor:pointer;
  font-size:14px; font-weight:600; color:#2e2b26; list-style:none; user-select:none;
  transition:background .14s;
}
.expfold > summary::-webkit-details-marker { display:none; }
.expfold > summary::before {
  content:''; width:0; height:0; flex:0 0 auto;
  border-left:5.5px solid #8c7bb5; border-top:4.5px solid transparent; border-bottom:4.5px solid transparent;
  transition:transform .18s;
}
.expfold[open] > summary::before { transform:rotate(90deg); }
.expfold > summary:hover { background:#f7f5fb; }
.expfold-t { color:#c94b8a; }
.expfold-h { font-size:12px; font-weight:400; color:#8c8a84; }
.expfold-n { margin-left:auto; font-size:12px; font-weight:400; color:#a9a5bd; }
.expfold[open] > summary { border-bottom:1px solid #f0ecf8; }
#explainBody { padding:6px 18px 16px; }
#explainBody .extext { font-size:13.5px; line-height:1.9; color:#3a362f; }
body[data-theme="dark"] .expfold,
body[data-theme="amber"] .expfold { background:#1c1c1c; border-color:#2e2e2e; }
body[data-theme="dark"] .expfold > summary,
body[data-theme="amber"] .expfold > summary { color:#e9e7e2; }
body[data-theme="dark"] .expfold > summary:hover,
body[data-theme="amber"] .expfold > summary:hover { background:#242424; }
body[data-theme="dark"] #explainBody .extext,
body[data-theme="amber"] #explainBody .extext { color:#c9c6c0; }

/* 段落标记 {A} → A */
.para { display:inline-block; min-width:20px; color:#c94b8a; font-weight:700;
  font-size:13px; margin-right:6px; }

/* ===== 答题卡已答高亮（放末尾 + #qgrid 提高优先级） ===== */
#qgrid .qcell.ans,
#qgrid .qcell.done {
  background: #f7e4ee !important;
  border-color: #e2b4ca !important;
  color: #c94b8a !important;
  font-weight: 700 !important;
}
body[data-theme="dark"] #qgrid .qcell.ans,
body[data-theme="dark"] #qgrid .qcell.done {
  background: #43202f !important;
  border-color: #7a3d57 !important;
  color: #f0a8c8 !important;
}

/* ===== 右上角登录按钮 ===== */
.navlogin {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; margin-right: 8px;
  border-radius: 20px;
  background: linear-gradient(135deg, #c94b8a, #a63d75);
  color: #fff !important; text-decoration: none;
  font-size: 12.5px; font-weight: 600; letter-spacing: .2px;
  box-shadow: 0 3px 12px rgba(201,75,138,.35);
  transition: transform .15s, box-shadow .15s, filter .15s;
  white-space: nowrap;
}
.navlogin:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201,75,138,.45);
  filter: brightness(1.06);
}
.navlogin.on {
  background: linear-gradient(135deg, #6b5f85, #4e4463);
  box-shadow: 0 3px 12px rgba(107,95,133,.32);
}
body[data-theme="dark"] .navlogin { background: linear-gradient(135deg, #c94b8a, #8e3462); }
body[data-theme="amber"] .navlogin { background: linear-gradient(135deg, #b8860b, #8a6508); color: #1a1608 !important; }

/* ===== 未激活：只读锁 ===== */
#lockBar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 9000;
  height: 46px; display: flex; align-items: center; gap: 10px;
  padding: 0 20px;
  background: linear-gradient(90deg, #2b2733, #463a52);
  color: #fff; font-size: 13px;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
#lockBar .lockico { font-size: 14px; }
#lockBar .lockwhy { flex: 1; opacity: .92; }
#lockBar .lockgo {
  padding: 6px 16px; border-radius: 16px; text-decoration: none;
  background: linear-gradient(135deg, #c94b8a, #a63d75); color: #fff;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(201,75,138,.4);
}
#lockBar .lockgo:hover { filter: brightness(1.08); }

/* 禁用作答：输入控件与提交类按钮不可点，但正文照样能看能滚 */
body[data-lock="1"] input,
body[data-lock="1"] textarea,
body[data-lock="1"] select,
body[data-lock="1"] .blank,
body[data-lock="1"] .mk-in,
body[data-lock="1"] .mk-wta,
body[data-lock="1"] .code-in {
  pointer-events: none !important;
  background: #f4f2f7 !important;
  border-color: #e0dbe8 !important;
  color: #b6b1bf !important;
  cursor: not-allowed !important;
}
body[data-lock="1"] input[type="radio"],
body[data-lock="1"] input[type="checkbox"] {
  opacity: .38 !important;
}
/* 只禁「提交/判分/保存」这类按钮，卡片和导航照常能点 */
body[data-lock="1"] button[id*="submit"],
body[data-lock="1"] button[id*="grade"],
body[data-lock="1"] button[id*="check"],
body[data-lock="1"] button[id*="save"],
body[data-lock="1"] .mk-btn.primary,
body[data-lock="1"] #submitBtn,
body[data-lock="1"] #gradeBtn {
  pointer-events: none !important;
  opacity: .45 !important;
  cursor: not-allowed !important;
}
/* 导航、滚动、选词高亮保持可用 */
body[data-lock="1"] .tabs a,
body[data-lock="1"] .navlogin,
body[data-lock="1"] #themeBtn,
body[data-lock="1"] .card,
body[data-lock="1"] .qstem,
body[data-lock="1"] #passageBody,
body[data-lock="1"] #questionsBody {
  pointer-events: auto !important;
}
body[data-theme="dark"] #lockBar { background: linear-gradient(90deg, #14121a, #241d2e); }

/* 未激活时输入框灰化（提高优先级） */
body[data-lock="1"] #questionsBody input,
body[data-lock="1"] #questionsBody textarea,
body[data-lock="1"] .mk-rright input,
body[data-lock="1"] .mk-rright textarea,
body[data-lock="1"] .mk-wta {
  background: #f0eef4 !important;
  border-bottom-color: #cfc9da !important;
  color: #b6b1bf !important;
  box-shadow: inset 0 0 0 1px #e6e2ee !important;
  pointer-events: none !important;
}
body[data-theme="dark"] body[data-lock="1"] #questionsBody input,
body[data-theme="dark"][data-lock="1"] #questionsBody input,
body[data-theme="dark"][data-lock="1"] .mk-rright input {
  background: #2a2530 !important;
  border-bottom-color: #4a4454 !important;
  color: #6a6474 !important;
}

/* ===== 激活弹窗 ===== */
#payMask {
  position: fixed; inset: 0; z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  background: rgba(24, 20, 32, .48);
  backdrop-filter: blur(3px);
  animation: payIn .18s ease;
}
@keyframes payIn { from { opacity: 0 } to { opacity: 1 } }
.paybox {
  width: 340px; padding: 26px 24px 20px;
  background: #fff; border-radius: 18px; text-align: center;
  box-shadow: 0 24px 70px rgba(40, 30, 70, .32);
  animation: payUp .2s cubic-bezier(.2,.8,.3,1);
}
@keyframes payUp { from { transform: translateY(10px) scale(.97); opacity: 0 } to { transform: none; opacity: 1 } }
.payttl { font-size: 17px; font-weight: 700; color: #1f2229; margin-bottom: 10px; }
.paytxt { font-size: 13px; line-height: 1.75; color: #6b6675; margin: 0 0 20px; text-align: left; }
.paybtn {
  display: block; padding: 12px 0; border-radius: 10px; text-decoration: none;
  background: linear-gradient(135deg, #c94b8a, #a63d75); color: #fff;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(201,75,138,.32);
}
.paybtn:hover { filter: brightness(1.06); }
.payclose {
  margin-top: 10px; width: 100%; padding: 10px 0; border: 0; background: none;
  color: #9a968c; font-size: 13px; cursor: pointer; font-family: inherit;
}
.payclose:hover { color: #6b6675; }
body[data-theme="dark"] .paybox { background: #1c1c1c; }
body[data-theme="dark"] .payttl { color: #e9e7e2; }
body[data-theme="dark"] .paytxt { color: #a7a39b; }
