/* =========================================================
   词老大 · 英语知识点精讲与练习
   设计：纸本讲义 —— 暖纸底 / 书脊色 / 细线分栏 / 英文衬线
   ========================================================= */

:root {
  --paper: #f7f4ed;
  --paper-2: #efe9dd;
  --card: #fffefb;
  --ink: #1e1c19;
  --ink-2: #443f37;
  --ink-3: #776f63;
  --ink-4: #a49b8c;
  --line: #e5ddcd;
  --line-2: #d5cab6;
  --brand: #14514c;
  --brand-2: #1d6a63;
  --brand-soft: #e6efec;
  --ok: #2c7251;
  --ok-soft: #e7f1ea;
  --bad: #b0402b;
  --bad-soft: #fbeae5;
  --warn: #a86f18;
  --warn-soft: #f7eedd;
  --radius: 13px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(38, 32, 22, .05), 0 8px 24px -16px rgba(38, 32, 22, .25);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "SimSun", serif;
  --en: Georgia, "Times New Roman", "Songti SC", serif;
  --mix: Georgia, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --maxw: 780px;

  /* ---- 尺寸标度：全部为固定 px，按屏幕分档整体换值，不用 clamp ----
     ≥1000 为基准档，其后每一档都在「尺寸标度」区用 max-width 逐级下调 */
  --bar-h: 54px;
  --pad-x: 18px;      /* 页面左右留白 */
  --pad-card: 16px;   /* 卡片内边距 */
  --gap-card: 12px;   /* 卡片间距 / 栅格间距 */
  --fs-hero: 31px;    /* 首页大标题 */
  --fs-lead: 14.8px;  /* 首页导语 */
  --fs-h1: 25.5px;    /* 内页标题 */
  --fs-h2: 15.2px;    /* 小节标题 */
  --fs-title: 17.5px; /* 卡片/条目标题 */
  --fs-body: 16.2px;  /* 讲解正文 */
  --fs-sent: 21.5px;  /* 课文原句 */
  --fs-stem: 16.8px;  /* 题干 */
  --fs-opt: 15.8px;   /* 选项 */
  --fs-btn: 14.8px;   /* 按钮 */
  --fs-sm2: 13.8px;   /* 次级说明 */
  --fs-sm: 13px;      /* 元信息 */
  --fs-xs: 11.8px;    /* 角标/注脚 */
  --no-w: 62px;       /* 单元编号列宽：固定，永不被内容撑变 */
  --fs-no: 22px;      /* UNIT 数字 */
  --fs-no-t: 12px;    /* UNIT 字样 */
  --fs-no-w: 11px;    /* WELCOME 单词（单行，永不折行） */
  --ring: 132px;      /* 成绩环直径 */
  --fs-ring: 36px;    /* 环内分数 */
  --fs-ring-u: 13px;  /* 环内「分」字 */
  --fs-res: 19px;     /* 结果标题 */
  --res-gap: 20px;    /* 结果页按钮组上间距 */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.66;
  text-wrap: pretty;
  overflow-wrap: break-word;
  padding-bottom: env(safe-area-inset-bottom);
}

/* 纸纹：极淡的斜纹，避免大面积纯色的塑料感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(135deg, rgba(120, 100, 70, .028) 0 1px, transparent 1px 7px);
}

#app { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input { font: inherit; color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.wrap--wide { max-width: var(--maxw); }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 244, 237, .93);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--bar-h);
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tb-back {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--card);
  transition: background .15s;
}
.tb-back:active { background: var(--paper-2); }
.tb-back svg { width: 16px; height: 16px; }
.tb-crumb {
  min-width: 0; flex: 1;
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-sm); color: var(--ink-3);
  white-space: nowrap; overflow: hidden;
}
.tb-crumb b { color: var(--ink); font-weight: 600; font-size: var(--fs-body); }
.tb-crumb .sep { color: var(--ink-4); }
.tb-crumb .cur { overflow: hidden; text-overflow: ellipsis; }
.tb-brand {
  font-family: var(--serif);
  font-size: 15px; letter-spacing: .04em; color: var(--brand);
  font-weight: 700;
  display: flex; align-items: center; gap: 7px;
}
.tb-brand .seal {
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 11px; font-weight: 700;
  letter-spacing: 0;
}

/* 阅读进度细条（知识点页） */
.readbar { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--brand); transition: width .3s ease; }

/* ---------------- 首页 ---------------- */
/* 首页没有顶栏，自己兜住刘海安全区 */
.hero { padding: 32px 0 20px; padding-top: calc(38px + env(safe-area-inset-top, 0px)); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .16em; color: var(--brand);
  padding: 3px 0; margin-bottom: 14px;
  font-weight: 600;
}
.hero-kicker::before { content: ""; width: 22px; height: 1px; background: var(--brand); opacity: .5; }
.hero h1 {
  font-size: var(--fs-hero); line-height: 1.28; margin: 0 0 9px;
  text-wrap: wrap;
  font-weight: 700; letter-spacing: -.01em;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { margin: 0; color: var(--ink-3); font-size: var(--fs-lead); line-height: 1.7; max-width: 40em; }

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  margin: 18px 0 22px; padding: 11px 0;
}
.stat-row > div { text-align: center; border-left: 1px solid var(--line); }
.stat-row > div:first-child { border-left: 0; }
.stat-row b {
  display: block; font-family: var(--en); font-size: 25px; line-height: 1.2;
  font-weight: 600; letter-spacing: -.02em; color: var(--ink);
}
.stat-row span { font-size: 11.5px; color: var(--ink-3); letter-spacing: .08em; }

.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 0 0 10px;
}
.sec-head h2 {
  margin: 0; font-size: var(--fs-h2); font-weight: 700; letter-spacing: .02em;
  display: flex; align-items: center; gap: 9px;
}
.sec-head h2::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); flex: none;
}
.sec-head .more { font-size: 12.5px; color: var(--ink-3); }

/* 分册卡片：纯文本卡，不用任何边条或色块，靠排版层级 */
.book-list { display: grid; gap: var(--gap-card); }
@media (min-width: 760px) { .book-list { grid-template-columns: 1fr 1fr; } }

.book-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  padding: var(--pad-card);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.book-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: 0 2px 3px rgba(38, 32, 22, .06), 0 16px 30px -20px rgba(38, 32, 22, .38);
}
.book-card:active { transform: scale(.995); }

.book-name { font-size: var(--fs-title); font-weight: 700; letter-spacing: .01em; margin-bottom: 2px; }
.book-meta { font-size: var(--fs-sm); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.book-meta i { font-style: normal; color: var(--ink-4); }
.book-meta .bm-state { color: var(--ink-4); }

.progress-mini { display: flex; align-items: center; gap: 9px; margin-top: 7px; }
.progress-mini .bar { flex: 1; height: 4px; border-radius: 3px; background: rgba(0, 0, 0, .07); overflow: hidden; max-width: 150px; }
.progress-mini .bar > i { display: block; height: 100%; background: var(--shade, var(--brand)); border-radius: 3px; transition: width .4s ease; }
.progress-mini .pct { font-size: var(--fs-xs); color: var(--ink-4); font-family: var(--en); letter-spacing: .02em; }

.chev { color: var(--ink-4); display: grid; place-items: center; }
.chev svg { width: 15px; height: 15px; }

/* 搜索 */
.search {
  position: relative; margin: 0 0 20px;
}
.search input {
  width: 100%; height: 46px; padding: 0 14px 0 42px;
  border: 1px solid var(--line-2); border-radius: 11px;
  background: var(--card); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.search .s-ic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--ink-4); pointer-events: none;
}
.search .s-ic svg { width: 16px; height: 16px; display: block; }
.search-res {
  margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); overflow: hidden;
}
.search-res .sr-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-top: 1px solid var(--line); cursor: pointer;
}
.search-res .sr-item:first-child { border-top: 0; }
.search-res .sr-item:hover { background: var(--paper-2); }
.search-res .sr-t { font-size: var(--fs-title); font-weight: 600; }
.search-res .sr-p { font-size: var(--fs-xs); color: var(--ink-4); font-family: var(--en); }
.search-res .sr-d { font-size: var(--fs-sm); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.sr-empty { padding: 14px; font-size: var(--fs-sm2); color: var(--ink-4); }

/* ---------------- 全部目录 ---------------- */
.toc-book {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); margin-bottom: 8px; overflow: hidden;
  box-shadow: var(--shadow);
}
.toc-book summary {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px var(--pad-card); cursor: pointer; list-style: none;
  position: relative;
}
.toc-book summary::-webkit-details-marker { display: none; }

.toc-book summary::after {
  content: "＋"; margin-left: auto; color: var(--ink-4); font-size: 12px;
}
.toc-book[open] summary::after { content: "－"; }
.toc-bn { font-size: var(--fs-title); font-weight: 700; }
.toc-bm { font-size: var(--fs-sm); color: var(--ink-3); }
.toc-body { padding: 2px var(--pad-card) 10px; border-top: 1px solid var(--line); }
.toc-unit { padding: 10px 0 2px; border-top: 1px dashed var(--line); }
.toc-unit:first-child { border-top: 0; }
.toc-uh {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px;
}
.toc-uh a {
  font-family: var(--en); font-size: var(--fs-title); color: var(--ink); font-weight: 500;
  flex: 1; min-width: 0;
}
.toc-uh a b { font-family: var(--font); font-size: var(--fs-xs); color: var(--shade); letter-spacing: .08em; font-weight: 700; margin-right: 4px; }
.toc-uh a:hover { color: var(--brand); }
.toc-uh span { font-size: var(--fs-xs); color: var(--ink-4); font-family: var(--en); }
.toc-kps { display: flex; flex-wrap: wrap; gap: 5px; }
.toc-kps a {
  font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2);
  padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--paper);
}
.toc-kps a:hover { border-color: var(--brand-2); color: var(--brand); background: var(--brand-soft); }

/* ---------------- 分册页 ---------------- */
.page { padding: 20px 0 24px; }
.page-head { margin-bottom: 12px; }
.page-head .eyebrow {
  font-size: 12px; letter-spacing: .14em; color: var(--ink-4); margin-bottom: 8px;
  font-family: var(--en); text-transform: uppercase;
}
.page-head h1 { margin: 0 0 6px; font-size: var(--fs-h1); line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.page-head h1 .en { font-family: var(--en); font-weight: 400; font-style: italic; }
.page-head p { margin: 0; color: var(--ink-3); font-size: var(--fs-sm2); }

.unit-list { display: grid; gap: 9px; }
.unit-row {
  display: grid; grid-template-columns: var(--no-w) 1fr auto; align-items: center; gap: 12px;
  padding: 12px var(--pad-card);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .16s ease, border-color .16s;
}
.unit-row:hover { border-color: var(--line-2); transform: translateX(2px); }
.unit-no {
  font-family: var(--en); font-size: var(--fs-no-t); letter-spacing: .1em;
  color: var(--shade, var(--ink-4));
  text-align: center; line-height: 1.25; font-weight: 600;
  white-space: nowrap;   /* 编号永不折行：列宽固定，字号按档位缩 */
  overflow: visible;
}
.unit-no b { display: block; font-size: var(--fs-no); letter-spacing: 0; }
/* WELCOME 是整词，绝不能断成 WEL / COM / E：无衬线更紧凑，字号单列一档 */
.unit-no.welcome b {
  font-family: var(--font);
  font-size: var(--fs-no-w); letter-spacing: .02em;
  font-weight: 700; line-height: 1.15;
}
.unit-title { font-size: var(--fs-title); font-weight: 650; font-family: var(--en); line-height: 1.4; }
.unit-sub { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 2px; }
.unit-sub em { font-style: normal; color: var(--ink-4); }

/* ---------------- 单元页 ---------------- */
.kp-list { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.kp-row {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  align-items: start;
  cursor: pointer;
  transition: background .15s;
}
.kp-row:hover { background: rgba(255, 254, 251, .9); }
.kp-row:hover .kp-title { color: var(--brand); }
.kp-idx {
  font-family: var(--en); font-size: 12px; color: var(--ink-4);
  padding-top: 3px; letter-spacing: .02em;
}
.kp-title { font-size: var(--fs-title); font-weight: 600; line-height: 1.5; transition: color .15s; }
.kp-desc {
  font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.6; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kp-side { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.kp-qn { font-size: 11.5px; color: var(--ink-4); font-family: var(--en); white-space: nowrap; }
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--line-2);
  flex: 0 0 7px;
}
.dot.ok { background: var(--ok); }
.dot.mid { background: var(--warn); }
.dot.doing { background: var(--brand-2); }

/* ---------------- 知识点页 ---------------- */
.kp-page { padding: 14px 0 12px; }
.kp-head { margin-bottom: 15px; }
.kp-head h1 { margin: 0 0 6px; font-size: var(--fs-h1); line-height: 1.4; font-weight: 700; letter-spacing: -.01em; }
.kp-head .ref {
  font-family: var(--en); font-size: 12.5px; color: var(--ink-3);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.kp-head .ref .tag-unit {
  font-family: var(--font); font-size: 11px; letter-spacing: .06em;
  color: var(--brand); background: var(--brand-soft); border-radius: 4px; padding: 1px 7px;
  font-weight: 600;
}

/* 章节标题 */
.sec { margin: 0 0 16px; }
.sec-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 9px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--ink-3);
}
.sec-title .n {
  font-family: var(--en); font-size: 12px; color: var(--brand);
  border: 1px solid var(--line-2); background: var(--card);
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; letter-spacing: 0; flex: 0 0 26px;
}
.sec-title .lb { font-size: 14.5px; color: var(--ink); letter-spacing: .04em; }
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); order: 2; min-width: 12px; }
.sec-title .hint {
  order: 3; margin-left: 0; font-weight: 400; letter-spacing: 0;
  font-size: 11.5px; color: var(--ink-4); white-space: nowrap;
}

/* 课文原句 */
.sent {
  display: grid; grid-template-columns: 1fr; gap: 3px 0;
  padding: var(--pad-card);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 7px;
}
.sent-en {
  font-family: var(--en); font-size: var(--fs-sent); line-height: 1.45; color: var(--ink);
  letter-spacing: .005em;
  /* 一行读到底太长时，两行长度拉匀；不允许「a / sun umbrella」这种冠词掉行尾 */
  text-wrap: balance;
}
.sent-en .nw { white-space: nowrap; }
.sent-en q { quotes: none; }
.sent-zh { font-size: var(--fs-sm); color: var(--ink-3); grid-column: 1; }
.sent-tip { grid-column: 1 / -1; font-size: var(--fs-sm2); color: var(--ink-2); line-height: 1.6; margin-top: 1px; }
.sent-tip p { margin: 0 0 5px; }
.sent-tip p:last-child { margin-bottom: 0; }
/* 一句话概括 */
.lead {
  font-size: var(--fs-body); line-height: 1.62; color: var(--ink-2);
  padding: 0 0 0 15px; border-left: 2px solid var(--line-2);
  margin: 0 0 11px;
}

/* 要点 */
.notes { list-style: none; margin: 0 0 13px; padding: 0; counter-reset: n; }
.notes li {
  position: relative; padding: 0 0 0 30px; margin-bottom: 4px;
  font-size: var(--fs-body); line-height: 1.64; color: var(--ink-2);
  counter-increment: n;
}
.notes li::before {
  content: counter(n);
  position: absolute; left: 0; top: 3px;
  font-family: var(--en); font-size: 11px; color: var(--brand);
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--brand-soft);
  display: grid; place-items: center; font-weight: 600;
}

/* 详解段落 */
.tip { font-size: var(--fs-body); line-height: 1.66; color: var(--ink-2); }
.tip-p { margin: 0 0 5px; }
.tip-p:last-child { margin-bottom: 0; }
.tip .r { display: inline-block; font-family: var(--en); font-size: .96em; color: var(--ink); }
.tip .kw {
  font-family: var(--en); font-weight: 700; color: var(--brand);
  background: linear-gradient(transparent 62%, rgba(29, 106, 99, .16) 62% 92%, transparent 92%);
  padding: 0 1px;
}
.tip .chip {
  display: inline-block; font-size: 11.5px; line-height: 1.7;
  color: var(--brand); background: var(--brand-soft);
  border-radius: 4px; padding: 0 6px; margin-right: 6px;
  font-weight: 700; letter-spacing: .02em; vertical-align: 1px;
  max-width: 100%; box-sizing: border-box;
}
/* 长标签独占一行，避免把正文挤成碎行 */
.tip .chip--long {
  display: block; width: fit-content;
  margin: 0 0 4px; letter-spacing: 0;
}
.tip .ok-mark, .tip .no-mark {
  font-family: var(--en); font-weight: 700; font-size: .95em;
}
.tip .ok-mark { color: var(--ok); }
.tip .no-mark { color: var(--bad); }
.tip-p.is-warn {
  background: var(--bad-soft); border-radius: 7px;
  padding: 8px 12px; color: #6f2a1c;
}
.tip-p.is-warn .chip { background: rgba(176, 64, 43, .12); color: var(--bad); }
.tip-p.is-dlg { font-family: var(--en); color: var(--ink); }
.tip-p.is-dlg .zh { font-family: var(--font); color: var(--ink-3); }
/* 纯英文例句行：缩进 + 细竖线，与结构说明区分 */
.tip-p.ex-line {
  margin: 3px 0 11px; padding: 4px 11px;
  border-radius: 8px;
  background: rgba(20, 81, 76, .05);
  font-family: var(--en); font-size: 15px; color: var(--ink);
}
.tip-p.ex-line + .tip-p.ex-line { margin-top: -4px; }

/* 讲解折叠 */
.fold { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 12px; }
.fold-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 15px; font-size: 13px; color: var(--ink-3); cursor: pointer;
}
.fold-h .ar { transition: transform .2s; }
.fold[open] .fold-h .ar { transform: rotate(180deg); }
.fold-b { padding: 0 15px 14px; font-size: 14px; }

/* ---------------- 练习 ---------------- */
.qcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad-card) var(--pad-card) 12px;
  box-shadow: var(--shadow);
}
.q-top { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.q-num {
  font-size: var(--fs-xs); letter-spacing: .04em;
  color: #fff; background: var(--brand);
  border-radius: 4px; padding: 2px 8px; font-weight: 600;
  white-space: nowrap;
}
.q-aim { font-size: 11.5px; color: var(--ink-4); letter-spacing: .02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-type {
  flex: none; margin-left: auto; font-size: var(--fs-xs); color: var(--ink-4);
  border: 1px solid var(--line); border-radius: 99px; padding: 0 8px; line-height: 18px;
  white-space: nowrap;   /* 「填空 / 选择」绝不竖排折行 */
}
/* 顶栏标题、面包屑末级也禁止被挤成竖排 */
.tb-crumb, .tb-crumb b { white-space: nowrap; }
.tb-crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.stem {
  font-size: var(--fs-stem); line-height: 1.6; color: var(--ink);
  margin: 0 0 12px; white-space: normal;
  /* 多行时均衡断行：不再出现「第一行写满、末行只剩一个词」的孤行 */
  text-wrap: balance;
  max-width: 44em;
  padding-right: 4px;    /* 右端只留一线，句子更容易整行放下 */
}
.stem .stem-p { display: block; }
.stem .stem-p + .stem-p { margin-top: 2px; }
.stem .blank {
  display: inline-block; min-width: 60px; height: 1.05em;
  border-bottom: 1.5px solid var(--ink-4); margin: 0 3px;
  vertical-align: baseline;
}
.stem .given { color: var(--ink-3); font-size: .92em; }
/* 题干里的括号提示：淡一档、整体不断开 */
.stem .stem-hint { color: var(--ink-4); font-size: .85em; white-space: nowrap; margin-left: 1px; }
/* 冠词 + 名词整块不断行 */
.stem .nw { white-space: nowrap; }

.opts { display: grid; gap: 6px; }
.opt {
  display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start;
  padding: 9px 12px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--card);
  text-align: left; line-height: 1.5;
  transition: border-color .14s, background .14s, transform .1s;
  min-height: 42px;
}
.opt:hover:not(.disabled) { border-color: var(--brand-2); background: #fbfdfc; }
.opt:active:not(.disabled) { transform: scale(.995); }
.opt-key {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--ink-3);
  font-family: var(--en); font-size: 12px; font-weight: 600;
  display: grid; place-items: center; margin-top: 1px;
}
.opt-t { font-size: var(--fs-opt); font-family: var(--en); }
.opt-t.zh { font-family: var(--font); font-size: var(--fs-opt); }
.opt.disabled { cursor: default; }
.opt.correct { border-color: var(--ok); background: var(--ok-soft); }
.opt.correct .opt-key { background: var(--ok); border-color: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.wrong .opt-key { background: var(--bad); border-color: var(--bad); color: #fff; }
.opt.muted { opacity: .55; }

/* 详解块 */
.detail { margin-top: 14px; }
.detail-h {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; letter-spacing: .14em; color: var(--ink-3);
  margin-bottom: 10px;
}
.detail-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tip-sec + .tip-sec { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.tip-h {
  font-family: var(--en); font-size: 13px; color: var(--ink-3);
  margin: 0 0 8px; letter-spacing: .01em;
}
.tip-h::before { content: "· "; color: var(--ink-4); }

/* 要点回顾（默认收起） */
.recap {
  margin: 0 0 16px; padding: 0; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line-2); border-radius: var(--radius);
}
.recap > summary .ct {
  font-family: var(--en); font-size: 11px; font-weight: 600;
  color: var(--brand); background: var(--brand-soft);
  border-radius: 999px; padding: 1px 7px; margin-left: 2px;
}
.recap > summary {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; cursor: pointer; list-style: none;
  font-size: 13px; color: var(--ink-2); font-weight: 600; letter-spacing: .02em;
}
.recap > summary::-webkit-details-marker { display: none; }
.recap > summary::before {
  content: "＋"; font-size: 11px; color: var(--ink-4); font-weight: 400;
}
.recap[open] > summary::before { content: "－"; }
.recap[open] > summary { border-bottom: 1px solid var(--line); }
.recap .notes { margin: 11px 14px 12px; }
.recap .notes li { font-size: 14.2px; margin-bottom: 8px; }
.recap .notes li:last-child { margin-bottom: 0; }

/* 要点自测：合上讲义背一遍，讲不出来的点一下显形 */
.recap .rc-quiz {
  margin-left: auto; flex: none;
  font-family: var(--font); font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--brand); background: var(--brand-soft);
  border: 0; padding: 4px 11px; border-radius: 999px; cursor: pointer;
}
.recap .rc-quiz:active { transform: scale(.97); }
.recap .rc-quiz[aria-pressed="true"] { color: #fff; background: var(--brand); }
.recap .rc-hint { display: none; margin: 0 16px 15px; font-size: 12px; line-height: 1.75; color: var(--ink-4); }
.recap.is-quiz .rc-hint { display: block; }
.recap > summary .ct.ct--done { color: #fff; background: var(--ok); }
.recap.is-quiz .notes li {
  cursor: pointer; color: transparent;
  text-shadow: 0 0 7px rgba(30, 28, 25, .40);
  transition: color .16s ease;
}
.recap.is-quiz .notes li::before { text-shadow: none; }
.recap.is-quiz .notes li.on { color: var(--ink-2); text-shadow: none; }
.recap.is-quiz .notes li.on::before { color: #fff; background: var(--brand); }
@media (hover: hover) { .recap.is-quiz .notes li:hover { text-shadow: 0 0 9px rgba(30, 28, 25, .55); } }

/* 讲解区分组小标题（课文原句 / 详解） */
.grp { margin: 0 0 6px; }
.grp-h,
.detail-h {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
  color: var(--ink-3); margin: 0 0 9px;
}
.grp-h::after,
.detail-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 折叠：其他选项解析 */
.fb-more {
  margin-top: 8px; border-top: 1px dashed rgba(0, 0, 0, .12); padding-top: 6px;
}
.fb-more summary {
  font-size: 12.5px; color: var(--ink-3); cursor: pointer; list-style: none;
  padding: 3px 0; display: flex; align-items: center; gap: 5px;
}
.fb-more summary::-webkit-details-marker { display: none; }
.fb-more summary::before { content: "＋"; font-size: 11px; color: var(--ink-4); }
.fb-more[open] summary::before { content: "－"; }
.fb-more .fb-why { border-top: 0; }

/* 填空 */
.fill-row {
  display: flex; gap: 9px; align-items: center; margin-bottom: 11px; flex-wrap: wrap;
}
/* 自动批改的说明文字：与提交按钮同排，小屏自动换行不挤压 */
.fill-hintk { font-size: var(--fs-xs); color: var(--ink-4); line-height: 1.5; }
.fill-in {
  flex: 1; min-width: 120px; height: 42px; padding: 0 13px;
  border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--card); outline: none;
  font-family: var(--en); font-size: var(--fs-opt);
  transition: border-color .15s, box-shadow .15s;
}
.fill-in:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.fill-in.correct { border-color: var(--ok); background: var(--ok-soft); }
.fill-in.wrong { border-color: var(--bad); background: var(--bad-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 16px; border-radius: 10px;
  font-size: var(--fs-btn); font-weight: 600;
  border: 1px solid transparent;
  transition: transform .1s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-primary:disabled { background: var(--line-2); color: #fff; cursor: not-allowed; }
.btn-ghost { border-color: var(--line-2); background: var(--card); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink-4); }
.btn-sm { height: 36px; padding: 0 13px; font-size: 13px; border-radius: 9px; }

/* 反馈 */
.fb {
  margin-top: 12px; padding: 11px 12px 10px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--paper-2);
  font-size: var(--fs-sm2); line-height: 1.7;
  animation: fbin .22s ease;
}
@keyframes fbin { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.fb-ok { background: var(--ok-soft); border-color: rgba(44, 114, 81, .30); }
.fb-bad { background: var(--bad-soft); border-color: rgba(176, 64, 43, .30); }
.fb-h {
  display: flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 14px; margin-bottom: 5px;
}
.fb-ok .fb-h { color: var(--ok); }
.fb-bad .fb-h { color: var(--bad); }
.fb-h .ic { display: grid; place-items: center; }
.fb-h .ic svg { width: 15px; height: 15px; }
.fb .ans { color: var(--ink); }
.fb .ans b { font-family: var(--en); color: var(--ok); }
.fb .ex { color: var(--ink-2); }
.fb .ex em { font-family: var(--en); font-style: normal; font-weight: 600; color: var(--brand); }
.fb-why { margin: 6px 0 0; padding: 0; list-style: none; border-top: 1px dashed rgba(0, 0, 0, .12); }
.fb-why li {
  display: grid; grid-template-columns: 16px 1fr; gap: 8px;
  padding: 5px 0 0; font-size: 13px; line-height: 1.62; color: var(--ink-3);
}
.fb-why li .m { font-family: var(--en); font-weight: 700; }
.fb-why li.y .m { color: var(--ok); }
.fb-why li.n .m { color: var(--bad); }
.fb-why li b { font-family: var(--en); color: var(--ink-2); font-weight: 600; }

.q-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.q-foot .spacer { flex: 1; }
.q-foot .tipk { font-size: 11.5px; color: var(--ink-4); }
/* 判分后的操作条：窄屏（平板/手机）吸在视口底部，解析再长也不用往下拉才找得到「下一题」；
   宽屏高度富余，保持原位不动，避免白条把卡片切断 */
@media (max-width: 900px) {
  .q-foot.on { position: sticky; bottom: env(safe-area-inset-bottom, 0px); z-index: 6; }
  .q-foot.on::before {
    content: ''; position: absolute; z-index: -1; pointer-events: none;
    left: calc(-1 * var(--pad-card) - 1px);
    right: calc(-1 * var(--pad-card) - 1px);
    /* 12px 渐隐过渡：文字滚到底栏后面时是淡出，不会被硬切成半行 */
    top: -12px; bottom: -13px;
    background: linear-gradient(to bottom, rgba(255, 254, 251, 0) 0, var(--card) 12px);
    border-radius: 0 0 var(--radius) var(--radius);
  }
}

/* 练习进度 */
.pbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pbar .track { flex: 1; height: 5px; background: rgba(0, 0, 0, .07); border-radius: 3px; overflow: hidden; }
.pbar .track > i { display: block; height: 100%; background: var(--brand); border-radius: 3px; transition: width .3s ease; }
.pbar .cnt { font-family: var(--en); font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }

/* 结果页：所有尺寸走变量，小屏整块等比收，不再一屏只有一只环 */
.result { text-align: center; padding: 8px 0 0; }
.ring-wrap { position: relative; width: var(--ring); height: var(--ring); margin: 2px auto 4px; }
.ring { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .bg { stroke: rgba(0, 0, 0, .07); }
.ring .fg { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset .7s ease, stroke .3s; }
/* 环内分数：数字与「分」同一行、按基线对齐并整体居中（曾用 grid 两行，数字被顶上、分被压底，很怪） */
.ring-num {
  position: absolute; inset: 0;
  display: grid; grid-auto-flow: column;
  justify-content: center; align-content: center; align-items: baseline;
  column-gap: 2px;
  font-family: var(--en); font-size: var(--fs-ring); font-weight: 600; letter-spacing: -.02em;
  line-height: 1;
}
.ring-num span { font-size: var(--fs-ring-u); color: var(--ink-4); font-weight: 500; letter-spacing: 0; }
.res-title { font-size: var(--fs-res); font-weight: 700; margin: 9px 0 3px; line-height: 1.4; }
.res-sub { font-size: var(--fs-sm); color: var(--ink-3); }
.res-stat {
  display: flex; justify-content: center; gap: 18px; margin: 9px 0 0;
  font-size: var(--fs-sm); color: var(--ink-3);
}
.res-stat b { font-family: var(--en); color: var(--ink); font-size: 15px; }
.res-wrong { margin: 13px 0 0; text-align: left; }
.res-wrong h3 {
  font-size: 12.5px; letter-spacing: .1em; color: var(--ink-3);
  margin: 0 0 8px; font-weight: 700;
}
.wrong-item {
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  padding: 9px 11px; margin-bottom: 5px; font-size: var(--fs-sm2); line-height: 1.6;
}
.wrong-item .wi-stem { color: var(--ink-2); }
.wrong-item .wi-line { margin-top: 4px; font-size: var(--fs-sm); color: var(--ink-3); }
.wrong-item .wi-line b { font-family: var(--en); }
.wrong-item .wi-line .y { color: var(--ok); font-weight: 700; }
.wrong-item .wi-line .n { color: var(--bad); text-decoration: line-through; }
.res-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: var(--res-gap); }
.res-actions .btn:first-child:nth-last-child(3) { grid-column: 1 / -1; }
.res-actions .btn { width: 100%; }

/* 底部翻页 */
.kp-nav {
  display: flex; gap: 10px; margin-top: 10px;
  border-top: 1px solid var(--line); padding-top: 12px;
}
.kp-nav a {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
  padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); font-size: 13px; min-width: 0;
}
.kp-nav a:hover { border-color: var(--line-2); }
.kp-nav .dir { font-size: 11px; color: var(--ink-4); letter-spacing: .06em; }
.kp-nav .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-nav a.next { text-align: right; }

/* 页脚：与正文之间只留一条线，不再空出一大段 */
.foot {
  border-top: 1px solid var(--line); margin-top: 14px; padding: 12px 0 20px;
  font-size: 12px; color: var(--ink-4); line-height: 1.7;
}
.foot .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }
.foot a { color: var(--ink-3); }
.foot a:hover { color: var(--brand); }

/* 加载 */
.loading { padding: 40px 0; text-align: center; color: var(--ink-4); font-size: var(--fs-sm2); }
.skel { height: 14px; border-radius: 5px; background: linear-gradient(90deg, #ece5d8, #f3ede2, #ece5d8); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 空态 */
.empty { padding: 50px 20px; text-align: center; color: var(--ink-4); font-size: var(--fs-sm2); line-height: 2; }

/* =========================================================
   尺寸标度：9 档断点，每档给固定 px，逐档严格递减
   —— 不用 clamp()。屏幕越小，字与留白同步变小，永不横向溢出。
   ========================================================= */
@media (max-width: 1000px) {
  :root {
    --pad-x: 18px; --pad-card: 18px; --gap-card: 12px; --bar-h: 54px;
    --fs-hero: 30.5px; --fs-lead: 14.6px; --fs-h1: 25px; --fs-h2: 15px;
    --fs-title: 17.2px; --fs-body: 16px; --fs-sent: 21px; --fs-stem: 16.6px;
    --fs-opt: 15.6px; --fs-btn: 14.6px; --fs-sm2: 13.7px; --fs-sm: 12.9px; --fs-xs: 11.7px;
    --ring: 128px; --fs-ring: 35px; --fs-ring-u: 12.8px; --fs-res: 18.6px; --res-gap: 19px;
  }
}
@media (max-width: 820px) {
  :root {
    --pad-x: 17px; --pad-card: 17px; --gap-card: 11px; --bar-h: 53px;
    --fs-hero: 29px; --fs-lead: 14.4px; --fs-h1: 24px; --fs-h2: 14.9px;
    --fs-title: 17px; --fs-body: 15.8px; --fs-sent: 20.5px; --fs-stem: 16.5px;
    --fs-opt: 15.5px; --fs-btn: 14.5px; --fs-sm2: 13.6px; --fs-sm: 12.8px; --fs-xs: 11.6px;
    --ring: 122px; --fs-ring: 33.5px; --fs-ring-u: 12.6px; --fs-res: 18.2px; --res-gap: 18px;
  }
}
@media (max-width: 640px) {
  :root {
    --pad-x: 16px; --pad-card: 15px; --gap-card: 10px; --bar-h: 52px;
    --fs-hero: 27px; --fs-lead: 14px; --fs-h1: 23px; --fs-h2: 14.7px;
    --fs-title: 16.6px; --fs-body: 15.5px; --fs-sent: 20px; --fs-stem: 16.3px;
    --fs-opt: 15.4px; --fs-btn: 14.4px; --fs-sm2: 13.5px; --fs-sm: 12.6px; --fs-xs: 11.5px;
    --no-w: 58px; --fs-no: 21px; --fs-no-t: 11.6px; --fs-no-w: 10.4px;
    --ring: 112px; --fs-ring: 30.5px; --fs-ring-u: 12px; --fs-res: 17.2px; --res-gap: 16px;
  }
  .hero { padding: 26px 0 18px; padding-top: calc(24px + env(safe-area-inset-top, 0px)); }
  .stat-row { margin: 16px 0 20px; padding: 10px 0; }
  .stat-row b { font-size: 22px; }
  .page { padding: 18px 0 20px; }
  .unit-row { padding: 11px var(--pad-card); }
  .qcard { padding: var(--pad-card) var(--pad-card) 11px; }
}
@media (max-width: 520px) {
  :root {
    --pad-x: 15px; --pad-card: 14px; --gap-card: 9px; --bar-h: 48px;
    --fs-hero: 25.5px; --fs-lead: 13.8px; --fs-h1: 22px; --fs-h2: 14.5px;
    --fs-title: 16.3px; --fs-body: 15.2px; --fs-sent: 19.5px; --fs-stem: 16px;
    --fs-opt: 15.2px; --fs-btn: 14.2px; --fs-sm2: 13.4px; --fs-sm: 12.4px; --fs-xs: 11.4px;
    --no-w: 54px; --fs-no: 20px; --fs-no-t: 11.4px; --fs-no-w: 9.6px;
    --ring: 100px; --fs-ring: 27px; --fs-ring-u: 11.4px; --fs-res: 16.4px; --res-gap: 14px;
  }
  /* 顶部减法：kicker 与顶栏品牌重复，小屏直接不显示 */
  .hero-kicker { display: none; }
  .hero { padding: 22px 0 16px; padding-top: calc(22px + env(safe-area-inset-top, 0px)); }
  .topbar-in { padding: 0 13px; }
  .tb-brand { font-size: 14px; gap: 6px; }
  .tb-brand .seal { width: 18px; height: 18px; border-radius: 4px; font-size: 10px; }
  .hero h1 { letter-spacing: 0; }
  .unit-row { gap: 11px; }
  .kp-row { grid-template-columns: 30px 1fr auto; gap: 10px; }
  .kp-head h1 { font-size: var(--fs-h1); }
  .res-actions .btn { padding: 0 10px; }
  .res-stat { gap: 13px; }
  .res-stat b { font-size: 14.5px; }
  .sec-head h2::before { width: 3px; height: 14px; }
}
@media (max-width: 430px) {
  :root {
    --pad-x: 14px; --pad-card: 13px; --gap-card: 8px; --bar-h: 50px;
    --fs-hero: 24.5px; --fs-lead: 13.6px; --fs-h1: 21.5px; --fs-h2: 14.3px;
    --fs-title: 16px; --fs-body: 15px; --fs-sent: 19px; --fs-stem: 15.8px;
    --fs-opt: 15px; --fs-btn: 14px; --fs-sm2: 13.2px; --fs-sm: 12.2px; --fs-xs: 11.3px;
    --no-w: 50px; --fs-no: 19px; --fs-no-t: 11.2px; --fs-no-w: 8.9px;
    --ring: 92px; --fs-ring: 25px; --fs-ring-u: 11px; --fs-res: 15.8px; --res-gap: 13px;
  }
  .book-card { gap: 8px 10px; }
  .stat-row {
    border: 0; margin: 10px 0 14px; padding: 0;
    grid-template-columns: repeat(4, 1fr); gap: 0;
  }
  .stat-row > div { border-left: 0; padding: 0 2px; }
  .stat-row b { font-size: 19px; line-height: 1.15; }
  .stat-row span { font-size: 10.5px; letter-spacing: .02em; }
  .kp-row { grid-template-columns: 27px 1fr auto; gap: 8px; }
  .kp-desc { -webkit-line-clamp: 2; }
  .q-foot .tipk { display: none; }
  .res-actions .btn { height: 40px; }
  .res-stat { gap: 12px; }
  .res-stat b { font-size: 14px; }
}
@media (max-width: 390px) {
  :root {
    --pad-x: 13px; --pad-card: 12px; --gap-card: 8px; --bar-h: 49px;
    --fs-hero: 23.5px; --fs-lead: 13.5px; --fs-h1: 21px; --fs-h2: 14.1px;
    --fs-title: 15.8px; --fs-body: 14.8px; --fs-sent: 18.5px; --fs-stem: 15.5px;
    --fs-opt: 14.8px; --fs-btn: 13.8px; --fs-sm2: 13px; --fs-sm: 12.1px; --fs-xs: 11.2px;
    --ring: 86px; --fs-ring: 23.5px; --fs-ring-u: 10.6px; --fs-res: 15.2px; --res-gap: 12px;
  }
  .stat-row b { font-size: 20px; }
  .stat-row span { font-size: 10px; }
  .sec-head .more { font-size: var(--fs-xs); }
  .res-actions .btn { height: 38px; }
  .res-stat { gap: 10px; }
  .res-stat b { font-size: 13.5px; }
}
@media (max-width: 360px) {
  :root {
    --pad-x: 12px; --pad-card: 11px; --gap-card: 7px; --bar-h: 48px;
    --fs-hero: 22.5px; --fs-lead: 13.4px; --fs-h1: 20.5px; --fs-h2: 13.9px;
    --fs-title: 15.5px; --fs-body: 14.6px; --fs-sent: 17.2px; --fs-stem: 14.6px;
    --fs-opt: 14.6px; --fs-btn: 13.6px; --fs-sm2: 12.8px; --fs-sm: 12px; --fs-xs: 11.1px;
    --no-w: 48px; --fs-no: 18px; --fs-no-t: 10.8px; --fs-no-w: 8.6px;
    --ring: 82px; --fs-ring: 22.5px; --fs-ring-u: 10.4px; --fs-res: 14.8px; --res-gap: 11px;
  }
  .book-meta { gap: 2px 6px; }
  .stat-row b { font-size: 19px; }
  .unit-row { gap: 9px; }
  .kp-row { grid-template-columns: 24px 1fr auto; gap: 7px; }
}
@media (max-width: 330px) {
  :root {
    --pad-x: 11px; --pad-card: 10px; --gap-card: 7px; --bar-h: 46px;
    --fs-hero: 20.5px; --fs-lead: 13.2px; --fs-h1: 19.5px; --fs-h2: 13.5px;
    --fs-title: 15px; --fs-body: 14.2px; --fs-sent: 15.8px; --fs-stem: 14.2px;
    --fs-opt: 14.2px; --fs-btn: 13.2px; --fs-sm2: 12.4px; --fs-sm: 11.6px; --fs-xs: 10.8px;
    --no-w: 46px; --fs-no: 17px; --fs-no-t: 10.4px; --fs-no-w: 8.2px;
    --ring: 76px; --fs-ring: 21px; --fs-ring-u: 10px; --fs-res: 14.2px; --res-gap: 10px;
  }
  .hero p { line-height: 1.66; }
}

/* 选项两列：短选项（<=14 字符且不含中文）一行两个 */
.opts.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 356px) { .opts.two { grid-template-columns: 1fr; } }

/* =========================================================
   全站水印：词老大英语
   固定层 + 45° 斜排，滚动时不动；pointer-events:none 不拦交互
   ========================================================= */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .17;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='184'%3E%3Cg fill='%2314514c' fill-opacity='.5' font-family='PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif' font-size='15' font-weight='600'%3E%3Ctext x='76' y='64' text-anchor='middle' transform='rotate(-30 76 64)'%3E词老大英语%3C/text%3E%3Ctext x='196' y='146' text-anchor='middle' transform='rotate(-30 196 146)'%3E词老大英语%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 260px 184px;
}
@media (max-width: 640px) {
  body::after { opacity: .15; background-size: 216px 152px; }
}
@media (max-width: 390px) {
  body::after { opacity: .14; background-size: 188px 132px; }
}

/* 讲解正文：英文走 Georgia，中文回落无衬线 */
.tip, .sent-tip, .notes li, .lead, .fb .ex, .wrong-item .wi-stem { font-family: var(--mix); }

/* 填空题行内输入 */
.fill-in-inline {
  display: inline-block;
  /* 宽度严格跟着答案走：4 个字母就是 4 个字母的宽，不预留多余空档 */
  width: calc(var(--fill-ch, 4) * 0.52em + 18px);
  min-width: 46px; max-width: 100%;
  height: 1.5em; padding: 0 6px; margin: 0 1px;
  /* 静态时只是一条答题线，不铺底色：句子读起来是连贯的一句话 */
  border: 0; border-bottom: 1.5px solid var(--ink-3);
  border-radius: 0;
  background: transparent;
  text-align: center;
  /* 字号/字体继承题干，基线才与句子严丝合缝（input 默认不继承） */
  font-family: inherit; font-size: inherit; color: var(--ink);
  line-height: 1.5em; vertical-align: baseline;
  transition: background .15s, border-color .15s, width .15s;
}
.fill-in-inline:focus { outline: none; border-bottom-color: var(--brand); background: rgba(20, 81, 76, .07); border-radius: 4px 4px 0 0; }
.fill-in-inline.correct { border-bottom-color: var(--ok); background: var(--ok-soft); border-radius: 4px 4px 0 0; color: var(--ok); font-weight: 700; }
.fill-in-inline.wrong { border-bottom-color: var(--bad); background: var(--bad-soft); border-radius: 4px 4px 0 0; color: var(--bad); }

/* 选项文字：中英混排 */
.opt-t { font-family: var(--mix); }

/* 题干预览（讲解区） */
.sent-tip .tip-p { font-size: var(--fs-sm2); }

/* 空态/错误 */
.empty a { color: var(--brand); text-decoration: underline; }

/* 小屏：空位收窄，短题干才更可能一行放下 */
@media (max-width: 430px) { .stem .blank { min-width: 46px; } }
@media (max-width: 360px) { .stem .blank { min-width: 40px; } }
@media (max-width: 330px) { .stem .blank { min-width: 36px; } }

/* 小屏：只收紧最小宽度，宽度仍由答案字数决定 */
@media (max-width: 640px) { .fill-in-inline { min-width: 40px; } }
@media (max-width: 360px) { .fill-in-inline { min-width: 38px; } }
@media (max-width: 330px) { .fill-in-inline { min-width: 36px; } }

/* 动画克制 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


