/* ─────────────────────────────────────────────
   Attraction IIQE 模考系统
   视觉方向：答题卡。米色纸 + 墨黑 + 朱红细线。
   克制、精确，像一份真的试卷，而不是一个 App。
   2026-11 按 huashu-design 方向二改版，原版备份在 design-demos/before/。
   ───────────────────────────────────────────── */

:root {
  --paper: #F3EDE1;
  --card: #FBF8F1;
  --ink: #111111;
  --ink-2: #3C3C3C;
  --muted: #6A5A47;
  --line: #DDD0B9;
  --line-2: #C9B99C;
  --rule: #9C2F0B;
  --navy: #111111;
  --navy-2: #2B2B2B;
  --seal: #B93A0E;
  --seal-soft: #F8E3D8;
  --jade: #0E7A4B;
  --jade-soft: #E3F0E7;
  --amber: #8A5A12;
  --radius: 0;
  --shadow: none;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 650; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* ── 骨架 ───────────────────────────────── */
.app {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "main";
}

.main {
  grid-area: main;
  padding: 0 18px calc(84px + env(safe-area-inset-bottom));
  max-width: 100%;
  min-width: 0;
}

.rail { display: none; }
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px;
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--muted);
  border-radius: 3px;
}
.tabbar a svg { width: 21px; height: 21px; stroke-width: 1.6; }
.tabbar a.on { color: var(--navy); }
.tabbar a.on svg { stroke: var(--seal); }

.loading {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60vh; color: var(--muted); font-size: 14px;
}
.spinner {
  width: 15px; height: 15px; border: 1.5px solid var(--line-2);
  border-top-color: var(--seal); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 通用组件 ───────────────────────────── */
.label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: var(--card);
  font-size: 15px;
  font-weight: 550;
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .12s var(--ease);
}
.btn:hover { background: #FAFBF9; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #F7F6F2;
}
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(22, 40, 58, .05); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.hair { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── 首页 ───────────────────────────────── */
.page { padding-top: 26px; }

.hero {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(to bottom, transparent 0 33px, rgba(22, 40, 58, .045) 33px 34px),
    linear-gradient(180deg, #FDFDFC, #F7F7F4);
  padding: 26px 22px 24px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(22, 40, 58, .09);
  border-radius: 2px;
  pointer-events: none;
}
.hero-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hero h1 {
  font-size: clamp(24px, 6.4vw, 34px);
  line-height: 1.24;
  letter-spacing: -.015em;
  font-weight: 680;
  margin-top: 12px;
}
.hero .sub { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; max-width: 40em; }
.hero-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px;
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-2);
}
.hero-meta div { display: flex; align-items: baseline; gap: 6px; }
.hero-meta b { font-family: var(--mono); font-size: 19px; letter-spacing: -.02em; }
.hero-meta span { font-size: 12px; color: var(--muted); }

.entries { display: grid; gap: 12px; margin-top: 14px; }
.entry {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), transform .16s var(--ease);
}
.entry:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.entry-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.entry h3 { font-size: 17px; font-weight: 640; letter-spacing: -.01em; }
.entry p { color: var(--ink-2); font-size: 13.5px; margin-top: 6px; }
.entry-go { color: var(--seal); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; }

.sect { margin-top: 30px; }
.sect-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sect-head h2 { font-size: 15px; font-weight: 640; letter-spacing: .01em; }
.sect-head span { font-size: 12px; color: var(--muted); }

.chlist { border-top: 1px solid var(--line); }
.chrow {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .14s var(--ease);
}
.chrow:hover { background: rgba(255, 255, 255, .7); }
.chrow .cno {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--muted);
}
.chrow .ctitle { font-size: 15px; font-weight: 550; }
.chrow .cmeta { display: flex; align-items: center; gap: 10px; }
.chrow .cbar { width: 54px; height: 3px; background: var(--line); position: relative; }
.chrow .cbar i { position: absolute; inset: 0 auto 0 0; background: var(--navy); }
.chrow .cnum { font-size: 11.5px; color: var(--muted); font-family: var(--mono); min-width: 54px; text-align: right; }

/* ── 练习 ───────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0 10px;
  background: linear-gradient(var(--paper) 72%, rgba(242, 243, 241, 0));
}
.topbar .tb-title { font-size: 13px; color: var(--ink-2); font-weight: 550; }
.topbar .tb-spacer { flex: 1; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 3px; background: var(--card);
  color: var(--ink-2);
}
.icon-btn:hover { border-color: var(--line-2); background: #FAFBF9; }

.qwrap { padding-bottom: 96px; margin: 0 auto; }
body.focus .tabbar { display: none; }
body.focus .main { padding-bottom: 92px; }
.qhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 8px;
  border: 1px solid var(--line-2); border-radius: 2px;
  font-size: 11.5px; letter-spacing: .02em; color: var(--ink-2);
  background: #FCFCFA;
}
.chip-solid { background: var(--navy); color: #F7F6F2; border-color: var(--navy); font-family: var(--mono); }
.chip-seal { color: var(--seal); border-color: rgba(185, 59, 43, .35); background: var(--seal-soft); }

.qcard { padding: 20px 18px; }
.qstem { font-size: 17.5px; line-height: 1.62; font-weight: 500; letter-spacing: -.005em; }
.qstem-en { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); font-style: normal; }
.qopts { margin-top: 18px; display: grid; gap: 8px; }

.opt {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 12px 12px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #FDFDFB;
  transition: border-color .14s var(--ease), background .14s var(--ease);
}
.opt:hover { border-color: var(--line-2); background: #FFF; }
.opt .key {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 2px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
  background: var(--card);
}
.opt .txt { font-size: 15px; line-height: 1.55; padding-top: 1px; }
.opt .txt em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.opt.is-pick { border-color: var(--navy); background: #FBFCFD; }
.opt.is-pick .key { background: var(--navy); border-color: var(--navy); color: #fff; }

.opt.is-right { border-color: var(--jade); background: var(--jade-soft); }
.opt.is-right .key { background: var(--jade); border-color: var(--jade); color: #fff; }
.opt.is-wrong { border-color: var(--seal); background: var(--seal-soft); }
.opt.is-wrong .key { background: var(--seal); border-color: var(--seal); color: #fff; }
.opt.is-dim { opacity: .52; }
.opt.is-dim:hover { opacity: .8; }

.fb { margin-top: 16px; }
.fb-in {
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: 3px;
  background: #FCFCFA;
  padding: 16px;
  animation: rise .26s var(--ease);
}
.fb-in.ok { border-left-color: var(--jade); }
.fb-in.no { border-left-color: var(--seal); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.fb-head { display: flex; align-items: center; gap: 10px; }
.fb-verdict { font-size: 15px; font-weight: 640; letter-spacing: .01em; }
.fb-verdict.ok { color: var(--jade); }
.fb-verdict.no { color: var(--seal); }
.fb-ans { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

.fb-body { margin-top: 12px; }
.fb-body h4 {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 650; margin-bottom: 6px;
}
.fb-body p { font-size: 14.5px; line-height: 1.68; color: var(--ink-2); }

.book {
  margin-top: 14px;
  padding: 14px 14px 14px 16px;
  background: #F7F6F1;
  border: 1px solid #E8E5DA;
  border-radius: 3px;
  position: relative;
}
.book::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: repeating-linear-gradient(var(--amber) 0 6px, transparent 6px 10px);
  opacity: .55;
}
.book-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.book-head b { font-size: 12px; letter-spacing: .1em; color: #7A6437; font-weight: 650; white-space: nowrap; }
.book-head { flex-wrap: wrap; }
.book-src { font-size: 11.5px; color: #8C7C58; font-family: var(--mono); }
.book p { font-size: 14px; line-height: 1.72; color: #4A4335; }
.book-toggle { margin-top: 10px; font-size: 12.5px; color: #8C7C58; text-decoration: underline; text-underline-offset: 3px; }

.actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 10px; align-items: center;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.actions .grow { flex: 1; }

.pbar { height: 2px; background: var(--line); position: relative; }
.pbar i { position: absolute; inset: 0 auto 0 0; background: var(--seal); transition: width .3s var(--ease); }

/* ── 考试 ───────────────────────────────── */
.exambar {
  position: sticky; top: 0; z-index: 25;
  display: flex; align-items: center; gap: 12px;
  margin: 0 -18px; padding: 10px 18px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.timer { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.timer.warn { color: var(--seal); }
.exambar .spacer { flex: 1; }
.exambar .cnt { font-size: 12px; color: var(--muted); font-family: var(--mono); }

.sheet {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(18, 25, 31, .38);
  display: flex; align-items: flex-end;
  animation: fade .18s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-in {
  width: 100%; max-height: 82dvh; overflow: auto;
  background: var(--card);
  border-radius: 8px 8px 0 0;
  padding: 18px 18px calc(24px + env(safe-area-inset-bottom));
  animation: up .24s var(--ease);
}
@keyframes up { from { transform: translateY(18px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.grid-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 7px; }
.gn {
  height: 40px; border: 1px solid var(--line-2); border-radius: 2px;
  font-family: var(--mono); font-size: 13px;
  display: grid; place-items: center; position: relative;
  background: #FCFCFA; color: var(--ink-2);
}
.gn.done { background: var(--navy); border-color: var(--navy); color: #fff; }
.gn.flag::after {
  content: ""; position: absolute; top: 3px; right: 3px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--seal);
}
.gn.cur { outline: 2px solid var(--seal); outline-offset: 1px; }

.sheet-foot {
  position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom));
  display: flex; gap: 10px; margin-top: 16px;
  padding: 12px 0 calc(4px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(255,255,255,.6), var(--card) 40%);
}
@media (min-width: 640px) {
  .grid-nums { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; }
  .gn { height: 44px; font-size: 13.5px; }
}

/* 交卷 / 报告 */
.report-hero { padding: 26px 20px; position: relative; overflow: hidden; }
.score-row { display: flex; align-items: flex-end; gap: 10px; margin-top: 14px; }
.score-big { font-family: var(--mono); font-size: clamp(52px, 15vw, 76px); line-height: .9; letter-spacing: -.04em; font-weight: 600; }
.score-of { font-size: 14px; color: var(--muted); padding-bottom: 6px; }
.stamp {
  margin-left: auto;
  transform: rotate(-7deg);
  border: 2px solid currentColor;
  border-radius: 3px;
  padding: 6px 10px 5px;
  font-size: 15px; font-weight: 700; letter-spacing: .18em;
  color: var(--seal);
  position: relative;
  opacity: .92;
}
.stamp::after {
  content: ""; position: absolute; inset: 3px; border: 1px solid currentColor; border-radius: 2px; opacity: .5;
}
.stamp.ok { color: var(--jade); }

.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.bar-row .bl { font-size: 13.5px; color: var(--ink-2); }
.bar-row .bv { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.bar-track { grid-column: 1 / -1; height: 5px; background: var(--line); position: relative; }
.bar-track i { position: absolute; inset: 0 auto 0 0; background: var(--navy); }
.bar-track i.low { background: var(--seal); }
.bar-track u {
  position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--ink-2); opacity: .55;
}

.review-list { border-top: 1px solid var(--line); margin-top: 8px; }
.rev {
  border-bottom: 1px solid var(--line);
  padding: 14px 2px;
}
.rev-head { display: flex; align-items: flex-start; gap: 10px; }
.rev-no {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  min-width: 30px; padding-top: 3px;
}
.rev-stem { font-size: 14.5px; line-height: 1.6; }
.rev-tags { display: flex; gap: 6px; margin-left: auto; flex-shrink: 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--jade); }
.dot.no { background: var(--seal); }
.dot.skip { background: var(--line-2); }
.rev-detail { margin-top: 10px; padding-left: 40px; display: none; }
.rev.open .rev-detail { display: block; }
.rev-detail .line { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.rev-detail .line b { color: var(--ink); }
.rev-toggle { font-size: 12px; color: var(--seal); margin-top: 6px; padding-left: 40px; }

/* 空状态 */
.empty { padding: 48px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column;
  align-items: center; justify-content: center; min-height: 58vh; }
.empty h3 { font-size: 16px; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.empty p { font-size: 13.5px; }

/* 设置行 */
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 2px; border-bottom: 1px solid var(--line);
}
.row .rl { font-size: 14.5px; }
.row .rd { font-size: 12px; color: var(--muted); margin-top: 2px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; }
.seg button {
  padding: 7px 12px; font-size: 13px; color: var(--ink-2); background: var(--card);
  border-right: 1px solid var(--line-2); min-height: 34px;
}
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--navy); color: #fff; }

/* ── 桌面 ───────────────────────────────── */
@media (min-width: 1024px) {
  .app { grid-template-columns: 248px 1fr; grid-template-areas: "rail main"; }
  .tabbar { display: none; }
  .rail {
    grid-area: rail;
    display: flex; flex-direction: column;
    background: var(--navy);
    color: #E8E9E6;
    padding: 26px 18px 20px;
    position: sticky; top: 0; height: 100dvh;
    background-image:
      repeating-linear-gradient(to bottom, transparent 0 41px, rgba(255, 255, 255, .028) 41px 42px);
  }
  .brand { display: flex; align-items: center; gap: 11px; }
  .brand-mark {
    width: 34px; height: 34px; display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .42); border-radius: 2px;
    font-size: 17px; font-weight: 600; letter-spacing: .02em; color: #F2EFE6;
  }
  .brand-text b { display: block; font-size: 15px; letter-spacing: .02em; font-weight: 620; color: #F4F3EF; }
  .brand-text i { display: block; font-style: normal; font-size: 11.5px; color: #93A3B2; letter-spacing: .08em; margin-top: 1px; }
  .rail-nav { margin-top: 34px; display: flex; flex-direction: column; gap: 2px; }
  .rail-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 10px; border-radius: 3px;
    font-size: 14px; color: #B9C4CE;
    border-left: 2px solid transparent;
  }
  .rail-nav a svg { width: 17px; height: 17px; stroke-width: 1.6; flex-shrink: 0; }
  .rail-nav a:hover { background: rgba(255, 255, 255, .06); color: #EDEFEA; }
  .rail-nav a.on { background: rgba(255, 255, 255, .08); color: #FFF; border-left-color: var(--seal); }
  .rail-foot { margin-top: auto; }
  .paper-switch { display: flex; gap: 6px; margin-bottom: 14px; }
  .paper-switch a {
    flex: 1; text-align: center; padding: 7px 4px; font-size: 12px;
    border: 1px solid rgba(255, 255, 255, .18); border-radius: 2px; color: #B9C4CE;
  }
  .paper-switch a.on { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }
  .paper-switch a.off { opacity: .45; pointer-events: none; }
  .rail-note { font-size: 10.5px; line-height: 1.6; color: #76879A; letter-spacing: .02em; }

  .main { padding: 0 40px 40px; max-width: 1100px; }
  .page { padding-top: 34px; }
  .entries { grid-template-columns: 1fr 1fr; }
  .hero { padding: 34px 32px 28px; }
  .hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; }
  .qcard { padding: 30px 32px; }
  .qwrap { max-width: 780px; }
  body.focus .main { padding-bottom: 40px; }
  .actions { position: static; background: none; backdrop-filter: none; border: 0; padding: 18px 0 0; max-width: 780px; }
  .exambar { margin: 0; border-radius: 3px; border: 1px solid var(--line); }
  .sheet { align-items: center; justify-content: center; }
  .sheet-in { max-width: 560px; border-radius: 4px; }
  .report-hero { padding: 30px 32px; }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .main { padding: 0 28px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ═══ 改版层 · 答题卡方向（覆盖上方基础样式）═══ */
.label { text-transform: none; letter-spacing: .02em; font-size: 12px; }
.card, .entry, .opt, .fb-in, .book, .chip, .btn, .icon-btn, .seg, .gn, .stamp { border-radius: 0; }
.opt .key { border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); width: 32px; height: 32px; font-size: 14px; font-weight: 600; }
.opt { border-width: 0; border-top: 1px solid var(--line-2); background: transparent; padding: 12px 4px; min-height: 60px; grid-template-columns: 32px 1fr; gap: 14px; align-items: center; }
.opt:last-child { border-bottom: 1px solid var(--line-2); }
.opt:hover { background: rgba(255, 255, 255, .45); }
.opt .txt { font-size: 17px; }
.opt .txt em { font-size: 14px; }
.opt.is-pick .key { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt.is-right { background: var(--jade-soft); border-color: var(--line-2); }
.opt.is-wrong { background: var(--seal-soft); border-color: var(--line-2); }
.opt.is-right .key { background: var(--jade); border-color: var(--jade); color: #fff; }
.opt.is-wrong .key { background: var(--seal); border-color: var(--seal); color: #fff; }
.opt.is-dim { opacity: .62; }
.qopts { gap: 0; }
.qstem { font-size: 22px; font-weight: 700; line-height: 1.5; }
.qstem-en { font-size: 15px; }
.chip { background: transparent; font-size: 12.5px; }
.chip-solid { background: var(--ink); }
.btn { border-color: var(--ink); background: transparent; }
.btn:hover { background: rgba(255, 255, 255, .5); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { border-color: transparent; }
.card { border-color: var(--line-2); }
.fb-in { background: var(--card); border-color: var(--line-2); }
.book { background: #EFE7D4; border-color: var(--line-2); }
.book p { color: #3D3526; }
.book-head b, .book-src, .book-toggle { color: #6B5320; }
.sect-head h2 { font-size: 16px; font-weight: 700; }
.sect-head span { font-size: 13px; }
.chrow .cnum { font-size: 12.5px; }
.chrow .cbar { height: 6px; width: 64px; }
.chrow .cno { font-weight: 600; }
.hero-meta b small { font-size: 16px; color: var(--muted); font-weight: 400; }
.hero-meta b.hb { color: var(--seal); }
.chrow:has(.cells) { grid-template-columns: 52px minmax(0, 1fr) auto; row-gap: 8px; padding: 12px 0; }
.chrow .ctitle { font-size: 15px; font-weight: 600; }
.chrow .cells { grid-column: 1 / -1; order: 3; display: flex; flex-wrap: wrap; gap: 2px; }
.chrow .cells:empty { display: none; }
.chrow .cells i { width: 12px; height: 18px; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--card); }
.chrow .cells i.f { background: var(--ink); border-color: var(--ink); }
.chrow .cnum { text-align: right; min-width: 0; white-space: nowrap; color: var(--ink-2); }
@media (min-width: 640px) {
  .chrow:has(.cells) { grid-template-columns: 60px 170px minmax(0, 1fr) 150px; row-gap: 0; }
  .chrow .cells { grid-column: auto; order: 0; }
  .chrow .cells i { width: 12px; height: 18px; }
}
.pbar { height: 4px; }
.actions { background: rgba(243, 237, 225, .96); border-top-color: var(--rule); }
.exambar { background: rgba(243, 237, 225, .97); border-bottom-color: var(--rule); }
.topbar { background: linear-gradient(var(--paper) 72%, rgba(243, 237, 225, 0)); }
.sheet-in { background: var(--card); }

/* 首页主视觉 */
.hero { border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: none; padding: 30px 0 0; }
.hero::before { display: none; }
.hero-top { margin-bottom: 4px; }
.hero h1 { font-size: clamp(34px, 9vw, 52px); font-weight: 900; line-height: 1.12; letter-spacing: -.02em; margin-top: 4px; }
.hero .sub { font-size: 16px; color: var(--ink-2); }
.hero-meta { margin-top: 24px; padding-top: 0; border-top: 1px solid var(--rule); gap: 0; grid-template-columns: repeat(2, 1fr); }
.hero-meta div { flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.hero-meta div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
.hero-meta b { font-size: 28px; font-weight: 600; }
.hero-meta span { font-size: 13px; }
.entries { gap: 0; margin: 0 0 8px; border-bottom: 1px solid var(--rule); }
.entry { border: 0; background: transparent; padding: 18px 0; border-top: 1px solid var(--line); box-shadow: none; }
.entry:hover { transform: none; box-shadow: none; background: rgba(255, 255, 255, .4); }
.entry h3 { font-size: 20px; font-weight: 800; }
.entry p { font-size: 15px; color: var(--ink-2); }
.entry-go { font-size: 14px; }

/* 团队区块与页脚 */
.team { margin-top: 44px; display: grid; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.team .t-a { padding: 24px 0; }
.team .t-a p { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.team .t-a h2 { font-size: 28px; font-weight: 900; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
.team .t-a span { display: block; font-size: 16px; color: var(--ink-2); max-width: 640px; line-height: 1.7; }
.team .t-go { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 14px 18px; background: var(--seal); color: #fff; font-size: 18px; font-weight: 700; }
.team .t-go small { font-weight: 400; font-size: 13px; opacity: .9; }
.team .t-go:hover { background: #A03009; }
.site-foot { display: flex; flex-direction: column; gap: 2px; padding: 16px 0 8px; font-size: 14px; color: var(--muted); }
.site-foot a { display: inline-block; padding: 11px 0 9px; color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--seal); line-height: 1.2; }
body.focus .team, body.focus .site-foot { display: none; }
@media (max-width: 1023px) { .site-foot { padding-bottom: 92px; } }

@media (min-width: 1024px) {
  .rail { background: var(--paper); color: var(--ink); border-right: 1px solid var(--rule); background-image: none; padding: 0; }
  .brand { padding: 22px 22px 20px; border-bottom: 1px solid var(--rule); gap: 12px; }
  .brand-mark { border: 1.5px solid var(--ink); color: var(--ink); border-radius: 0; font-weight: 800; }
  .brand-text b { color: var(--ink); font-size: 17px; font-weight: 700; }
  .brand-text i { color: var(--muted); font-size: 13px; letter-spacing: 0; }
  .rail-nav { margin-top: 0; gap: 0; }
  .rail-nav a { padding: 14px 22px; border-radius: 0; border-left: 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
  .rail-nav a:hover { background: rgba(255, 255, 255, .45); color: var(--ink); }
  .rail-nav a.on { background: var(--ink); color: #fff; border-left-color: transparent; }
  .rail-nav a svg { stroke-width: 1.8; }
  .paper-switch { gap: 0; margin: 0; border-top: 1px solid var(--rule); }
  .paper-switch a { padding: 14px 4px; font-size: 14px; border: 0; border-radius: 0; color: var(--muted); }
  .paper-switch a + a { border-left: 1px solid var(--rule); }
  .paper-switch a.on { background: var(--ink); color: #fff; border-color: transparent; }
  .rail-note { padding: 12px 22px 18px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
  .main { max-width: 1180px; padding: 0 48px 40px; }
  .hero { display: grid; grid-template-columns: 5fr 7fr; column-gap: 40px; padding: 40px 0 0; }
  .hero-top, .hero h1, .hero .sub { grid-column: 1; }
  .hero-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); }
  .hero-meta div:nth-child(even) { padding-left: 0; border-left: 0; }
  .hero-meta div + div { padding-left: 18px; border-left: 1px solid var(--line); }
  .entries { grid-template-columns: 1fr 1fr; }
  .entry + .entry { border-left: 1px solid var(--line); padding-left: 28px; }
  .team { grid-template-columns: 1fr 340px; }
  .team .t-a { padding: 30px 0; }
  .team .t-go { padding: 0 28px; }
  .site-foot { flex-direction: row; justify-content: space-between; padding: 18px 0 0; }
}
