/* ============================================================
   辽宁高中物理 · 教师工作台
   设计系统 v2 — 深色侧栏 / 大字号 / 无边框卡片 / 数据可视化
   ============================================================ */

:root {
  /* ---------- 深色面：由纯黑改为中性深灰，降低视觉压迫 ---------- */
  --night: #171B21;
  --night-1: #1C2128;
  --night-2: #232830;
  --night-3: #2B313A;
  --night-line: rgba(255, 255, 255, .06);

  /* ---------- 浅色面 ---------- */
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-2: #F8F9FB;

  /* ---------- 文字：四级中性灰，对比度 15 / 8.6 / 4.8 / 3.6 ---------- */
  --ink: #1C2027;
  --ink-2: #454C58;
  --ink-3: #666D79;
  --muted: #6A7280;
  --on-dark: #FFFFFF;
  --on-dark-2: rgba(255, 255, 255, .68);
  --on-dark-3: rgba(255, 255, 255, .46);

  /* ---------- 分隔与阴影 ---------- */
  --line: #E7EAEE;
  --line-2: #EDF0F4;
  --shadow-1: 0 1px 2px rgba(28, 32, 39, .04);
  --shadow-2: 0 1px 2px rgba(28, 32, 39, .04), 0 6px 16px rgba(28, 32, 39, .04);
  --shadow-3: 0 2px 6px rgba(28, 32, 39, .06), 0 16px 32px rgba(28, 32, 39, .07);

  /* ---------- 强调色：金色降饱和作主色，其余作语义色 ---------- */
  --gold: #8A6A2A;
  --gold-l: #D9BC7E;
  --gold-soft: #FAF6EC;
  --blue: #2F6FE4;
  --blue-l: #6C9BF0;
  --blue-soft: #EEF3FD;
  --teal: #157A6A;
  --teal-soft: #E9F5F2;
  --green: #17795A;
  --red: #C0453A;
  --red-soft: #FCF0EE;
  --amber: #9C6A18;
  --amber-soft: #FAF3E4;

  /* ---------- 字号阶梯 · 6 档 ---------- */
  --fs-xs: 12px;
  --fs-s: 13px;
  --fs-m: 14px;
  --fs-l: 16px;
  --fs-xl: 20px;
  --fs-2xl: 28px;

  /* ---------- 圆角 · 4 档 ---------- */
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 20px;

  /* ---------- 间距 · 4 基栅格 ---------- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;

  /* ---------- 字体与动效 ---------- */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --side-w: 236px;
  --top-h: 58px;
  --ease: cubic-bezier(.32, .72, 0, 1);
}


* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 1;
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.28; letter-spacing: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
svg { display: block; }
pre { margin: 0; }

::selection { background: #CFE0FF; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 8px;
}
.side :focus-visible { outline-color: var(--gold-l); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #CBD3DE; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #AEB9C7; background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================ 骨架 ============================ */

.app { display: flex; min-height: 100vh; }

.side {
  flex: 0 0 var(--side-w);
  width: var(--side-w);
  background: var(--night);
  transition: width .2s var(--ease), flex-basis .2s var(--ease);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 60;
}
.side::-webkit-scrollbar { width: 0; }
/* 侧栏改为：品牌与底部固定，仅导航区滚动，保证折叠按钮常驻可见 */
.side { overflow: hidden; }
#nav { flex: 1 1 auto; overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
#nav::-webkit-scrollbar { width: 4px; }
#nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 4px; }
#nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.26); }

/* ---------- 侧栏底部折叠按钮 ---------- */
.side__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 14px;
  padding: 8px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
  transition: background .15s, color .15s;
  flex: 0 0 auto;
}
.side__toggle:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side__toggle svg { flex: 0 0 15px; }

/* ---------- 折叠态：仅桌面端 ---------- */
@media (min-width: 1081px) {
  body.side-mini .side {
    flex: 0 0 64px;
    width: 64px;
  }
  body.side-mini .brand {
    padding: 16px 0 14px;
    display: flex;
    justify-content: center;
  }
  body.side-mini .brand__row { gap: 0; }
  body.side-mini .brand__name,
  body.side-mini .brand__sub,
  body.side-mini .nav-group__title,
  body.side-mini .nav-item > span,
  body.side-mini .side__foot,
  body.side-mini .side__toggle > span {
    display: none;
  }
  body.side-mini .nav-group { padding: 6px 8px 0; }
  body.side-mini .nav-group:first-child { padding-top: 8px; }
  body.side-mini .nav-group + .nav-group { border-top: 1px solid var(--night-line); padding-top: 6px; margin-top: 4px; }
  body.side-mini .nav-item {
    justify-content: center;
    padding: 10px 0;
    gap: 0;
    margin-bottom: 2px;
  }
  body.side-mini .nav-item svg { margin: 0; }
  body.side-mini .side__toggle {
    margin: 0;
    padding: 14px 0;
    justify-content: center;
    border-top: 1px solid var(--night-line);
    border-radius: 0;
  }
  body.side-mini .side__toggle svg { transform: rotate(180deg); }
  /* 折叠后顶栏出现展开按钮 */
  body.side-mini .burger { display: flex; }
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--top-h);
  flex: 0 0 var(--top-h);
  background: rgba(244, 246, 248, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}

.view {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 32px 88px;
  animation: pageIn .34s var(--ease);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ============================ 侧栏 ============================ */

.brand {
  display: block;
  padding: 20px 20px 20px;
  border-bottom: 1px solid var(--night-line);
}
.brand__row { display: flex; align-items: center; gap: 12px; }
.brand__seal {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: linear-gradient(150deg, #C9A55C, #8A6A25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: #12100A;
  font-family: var(--serif);
  box-shadow: 0 2px 10px rgba(201, 165, 92, .3);
}
.brand__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark);
  letter-spacing: 0;
  line-height: 1.3;
}
.brand__sub {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--on-dark-3);
  text-transform: uppercase;
}

.nav-group { padding: 12px 12px 2px; }
.nav-group__title {
  font-size: 12px;
  letter-spacing: 0;
  color: #4B5666;
  padding: 0 12px 8px;
  font-weight: 500;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-group__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .05);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  color: #8C97A8;
  font-size: 13px;
  position: relative;
  transition: color .16s, background .16s;
  margin-bottom: 1px;
}
.nav-item:hover { color: #DDE4EE; background: rgba(255, 255, 255, .045); }
.nav-item.is-on {
  color: #fff;
  background: rgba(255, 255, 255, .085);
  font-weight: 500;
}
.nav-item.is-on::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--gold-l), var(--gold));
}
.nav-item__ico {
  width: 15px; height: 15px;
  flex: 0 0 15px;
  opacity: .75;
}
.nav-item.is-on .nav-item__ico { opacity: 1; color: var(--gold-l); }
.nav-item__n {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: #5C6779;
  background: rgba(255, 255, 255, .05);
  padding: 0 4px;
  border-radius: 6px;
  line-height: 16px;
  min-width: 18px;
  text-align: center;
}
.nav-item.is-on .nav-item__n { color: var(--gold-l); background: rgba(201, 165, 92, .12); }

.side__foot {
  margin-top: auto;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--night-line);
  font-size: 12px;
  color: #4E5A6B;
  line-height: 1.7;
}
.side__foot b { color: #8C97A8; font-weight: 500; }

/* ============================ 顶栏 ============================ */

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
  flex: 1;
}
.crumb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb b { color: var(--ink); font-weight: 500; }
.crumb i { font-style: normal; color: #CBD3DE; }

.searchbox { position: relative; flex: 0 0 320px; max-width: 320px; }
.searchbox input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0 56px 0 32px;
  color: var(--ink);
  outline: none;
  font-size: 13px;
  transition: border-color .16s, box-shadow .16s;
}
.searchbox input::placeholder { color: #A9B3C1; }
.searchbox input:focus { border-color: #B9C5D6; box-shadow: 0 0 0 3px rgba(47, 111, 228, .09); }
.searchbox__ico {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  color: var(--muted);
  pointer-events: none;
}
.searchbox__k {
  position: absolute;
  right: 9px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 4px;
  line-height: 15px;
  pointer-events: none;
  background: var(--surface-2);
}

.burger {
  display: none;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  flex: 0 0 34px;
}

/* ============================ 页面头 ============================ */

.page-head { margin-bottom: 24px; }
.page-head__k {
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 10px;
  font-family: var(--mono);
  text-transform: uppercase;
}
.page-head h1 {
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--ink);
  letter-spacing: 0;
  margin-bottom: 8px;
  font-weight: 500;
}
.page-head__d {
  font-size: 13px;
  color: var(--ink-3);
  max-width: 720px;
  line-height: 1.8;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 16px;
}
.sec-head h2 {
  font-size: 16px;
  letter-spacing: 0;
  color: var(--ink);
}
.sec-head .line { flex: 1; height: 1px; background: var(--line); }
.sec-head .more { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.sec-head .more:hover { color: var(--blue); }

/* ============================ Hero ============================ */

.hero {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 36px 40px 32px;
  color: var(--ink);
  overflow: hidden;
  margin-bottom: 20px;
}
.hero::before {
  content: "";
  position: absolute;
  right: -80px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169,133,60,.09) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(28,32,39,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,32,39,.026) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(110% 90% at 88% 0%, #000 10%, transparent 72%);
  pointer-events: none;
}
.hero__in { position: relative; z-index: 1; display: flex; gap: 32px; align-items: flex-end; }
.hero__main { flex: 1; min-width: 0; }
.hero__k {
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
  font-family: var(--mono);
}
.hero h1 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.4;
  letter-spacing: 0;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}
.hero__d {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 24px;
}
.hero__acts { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all .16s var(--ease);
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 1px 2px rgba(28, 32, 39, .08);
}
.btn--gold:hover { background: #97752F; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(169, 133, 60, .24); }
.btn--ghost {
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: #fff;
}
.btn--ghost:hover { background: var(--surface-2); border-color: #D5DBE3; color: var(--ink); }
.btn--dark { background: var(--night-2); color: #fff; }
.btn--dark:hover { background: var(--night-3); }
.btn--line { border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.btn--line:hover { border-color: #C4CEDC; }

/* Hero 右侧数据 */
.hero__stats {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 100px);
  gap: 2px;
  background: var(--line);
  border-radius: var(--r-s);
  overflow: hidden;
}
.hstat { background: #fff; padding: 16px 16px 16px; }
.hstat__n {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.hstat__n small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.hstat__l { font-size: 12px; color: var(--muted); margin-top: 6px; letter-spacing: 0; }

/* ============================ 工作台网格 ============================ */

.dash {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-2);
  padding: 20px 24px;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
a.card:hover, .card--link:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-2px);
}
.card--dark {
  background: linear-gradient(155deg, #121A24, #0B1119);
  color: #fff;
  box-shadow: 0 2px 6px rgba(11,16,23,.16), 0 18px 40px rgba(11,16,23,.16);
}
.card--dark .card__k { color: var(--gold); }
.card--dark .card__t { color: #fff; }
.card--dark .card__d { color: var(--on-dark-2); }

.card__k {
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--muted);
  font-weight: 500;
  font-family: var(--mono);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.card__t {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
  margin-bottom: 6px;
}
.card__d { font-size: 13px; color: var(--ink-3); line-height: 1.72; }

/* 三主线 */
.line-card { grid-column: span 4; display: flex; flex-direction: column; }
.line-card__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.line-card__no {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  padding-top: 3px;
  letter-spacing: .04em;
}
.line-card__t { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.line-card__s { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.line-card__list { margin-top: auto; border-top: 1px solid var(--line-2); padding-top: 12px; }
.line-card__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink-2);
  transition: color .14s;
}
.line-card__item:hover { color: var(--blue); }
.line-card__item .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #C9CFD9;
  flex: 0 0 4px;
}
.line-card__item .n {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* 课时进度 */
.progress-card { grid-column: span 8; }
.ring-row { display: flex; align-items: center; gap: 24px; margin-top: 6px; }
.ring { position: relative; width: 92px; height: 92px; flex: 0 0 92px; }
.ring svg { transform: rotate(-90deg); }
.ring__c { fill: none; stroke: var(--line); stroke-width: 7; }
.ring__v { fill: none; stroke: url(#goldGrad); stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray .8s var(--ease); }
.ring__t {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.ring__n { font-size: 20px; font-weight: 500; letter-spacing: 0; line-height: 1; }
.ring__l { font-size: 12px; color: var(--muted); margin-top: 3px; letter-spacing: .06em; }

.bars { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.bar-row__l { flex: 0 0 88px; color: var(--ink-3); }
.bar-row__t { flex: 1; height: 5px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.bar-row__t i { display: block; height: 100%; border-radius: 6px; background: var(--night-3); }
.bar-row__t i.gold { background: linear-gradient(90deg, #C0973F, #E3C27E); }
.bar-row__t i.blue { background: linear-gradient(90deg, #2F6FE4, #6C9BF0); }
.bar-row__t i.teal { background: linear-gradient(90deg, #0E7C6B, #4FBFAC); }
.bar-row__v { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 40px; text-align: right; }

/* 当前进度条 */
.now-card { grid-column: span 12; display: flex; align-items: center; gap: 24px; padding: 16px 24px; }
.now-card__badge {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 6px;
  padding: 4px 8px;
  font-weight: 500;
}
.now-card__t { font-size: 14px; font-weight: 500; }
.now-card__d { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.now-card .spacer { flex: 1; }

/* 快速入口 */
.quick-grid { grid-column: span 12; display: grid; grid-template-columns: repeat(var(--qn, 4), 1fr); gap: 16px; }
.quick {
  background: var(--surface);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-2);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all .2s var(--ease);
}
.quick:hover { box-shadow: var(--shadow-3); transform: translateY(-2px); }
.quick__ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 9px;
  background: var(--blue-soft);
  color: var(--blue);
}
.quick__ico.gold { background: var(--gold-soft); color: var(--gold); }
.quick__ico.teal { background: var(--teal-soft); color: var(--teal); }
.quick__ico.dark { background: #EEF1F5; color: var(--ink-2); }
.quick__t { font-size: 13px; font-weight: 500; }
.quick__d { font-size: 12px; color: var(--muted); }

/* ============================ 列表页通用 ============================ */

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar .spacer { flex: 1; }

.seg {
  display: inline-flex;
  background: #E9ECF1;
  border-radius: 8px;
  padding: 4px;
  gap: 2px;
}
.toolbar > .seg { min-width: 0; }
.seg--scroll {
  max-width: 100%;
  flex-wrap: wrap;
  row-gap: 2px;
}
.seg button {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  transition: all .15s;
  white-space: nowrap;
}
.seg button:hover { color: var(--ink); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); font-weight: 500; }
.seg button .n { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 4px; }

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 8px;
  line-height: 18px;
  transition: all .15s;
}
.chip:hover { border-color: #C4CEDC; }
.chip.on { background: var(--night-2); border-color: var(--night-2); color: #fff; }
.chip__n { font-family: var(--mono); font-size: 12px; opacity: .55; margin-left: 5px; }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  background: #F1F4F8;
  border-radius: 6px;
  padding: 2px 8px;
  line-height: 18px;
  white-space: nowrap;
  font-weight: 500;
}
.tag--blue { background: var(--blue-soft); color: var(--blue); }
.tag--gold { background: var(--gold-soft); color: #92701F; }
.tag--teal { background: var(--teal-soft); color: var(--teal); }
.tag--red { background: var(--red-soft); color: var(--red); }
.tag--dark { background: #EDF0F5; color: var(--ink-2); }

/* ============================ 课时列表 ============================ */

.ch-block { margin-bottom: 26px; }
.ch-block__h {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.ch-block__no { font-family: var(--mono); font-size: 12px; color: var(--gold); font-weight: 500; letter-spacing: .06em; flex: 0 0 auto; white-space: nowrap; }
.ch-block__t { font-size: 16px; font-weight: 500; letter-spacing: 0; flex: 0 0 auto; }
.ch-block__m { margin-left: auto; font-size: 12px; color: var(--muted); }

.lesson-list { display: flex; flex-direction: column; gap: 8px; }
.lesson-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--r-m);
  padding: 16px 20px;
  box-shadow: var(--shadow-1);
  transition: all .18s var(--ease);
}
.lesson-row:hover { box-shadow: var(--shadow-2); transform: translateX(2px); }
.lesson-row__no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.lesson-row__t { font-size: 14px; font-weight: 500; margin-bottom: 2px; display: flex; align-items: center; gap: 8px; }
.lesson-row__d { font-size: 12px; color: var(--ink-3); line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 640px; }
.lesson-row__r { display: flex; align-items: center; gap: 8px; }

.status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  vertical-align: 1px;
}
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status--full { background: var(--teal-soft); color: var(--teal); }
.status--draft { background: #F1F4F8; color: var(--muted); }

/* ============================ 课时详情 ============================ */

.lesson-head {
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 32px 36px 28px;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.lesson-head::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -120px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,165,92,.13), transparent 70%);
}
.lesson-head__k {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--gold);
  margin-bottom: 12px;
}
.lesson-head h1 {
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0;
  margin-bottom: 10px;
}
.lesson-head__pos { font-size: 14px; color: var(--ink-3); line-height: 1.8; max-width: 760px; }
.lesson-head__meta { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.lesson-head__meta .tag { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); }

.ls-wrap { display: grid; grid-template-columns: 178px 1fr; gap: 28px; align-items: start; }
.ls-nav { position: sticky; top: 76px; }
.ls-nav__t { font-size: 12px; letter-spacing: .18em; color: var(--muted); font-weight: 500; margin-bottom: 9px; }
.ls-nav a {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  padding: 4px 0 4px 12px;
  border-left: 2px solid var(--line);
  transition: all .14s;
  line-height: 1.5;
}
.ls-nav a:hover { color: var(--ink); border-left-color: #C4CEDC; }
.ls-nav a.on { color: var(--blue); border-left-color: var(--blue); font-weight: 500; }

.ls-body { min-width: 0; }
.ls-sec { margin-bottom: 30px; scroll-margin-top: 76px; }
.ls-sec__h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}
.ls-sec__no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: .08em;
}
.ls-sec__t { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.ls-sec__line { flex: 1; height: 1px; background: var(--line); }

.panel {
  background: var(--surface);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-2);
  padding: 20px 24px;
}
.panel + .panel { margin-top: 10px; }

/* 目标 */
.obj-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.obj-list li {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.72;
}
.obj-list li b {
  flex: 0 0 62px;
  font-size: 12px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 6px;
  padding: 2px 0;
  text-align: center;
  height: 22px;
  line-height: 18px;
  font-weight: 500;
}

/* 重难点 */
.hard-item { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.hard-item:first-child { padding-top: 2px; }
.hard-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.hard-item__t {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 9px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.hard-item__t span {
  flex: 0 0 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  margin-top: 1px;
}
.hard-item__b { display: grid; grid-template-columns: 62px 1fr; gap: 8px 12px; font-size: 13px; line-height: 1.78; }
.hard-item__b dt { color: var(--muted); font-size: 12px; padding-top: 2px; }
.hard-item__b dd { margin: 0; color: var(--ink-2); }
.hard-item__b dd.how { color: var(--ink); background: #FAFBFC; border-left: 2px solid var(--gold); padding: 8px 12px; border-radius: 0 5px 5px 0; }

/* 教学流程 */
.flow { width: 100%; border-collapse: collapse; font-size: 13px; }
.flow th {
  text-align: left;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 500;
  padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
/* 流程表列宽：把空间让给「教师活动」与「学生活动」两列 */
.flow th:nth-child(1), .flow td:nth-child(1) { width: 11%; }
.flow th:nth-child(2), .flow td:nth-child(2) { width: 7%; }
.flow th:nth-child(3), .flow td:nth-child(3) { width: 36%; }
.flow th:nth-child(4), .flow td:nth-child(4) { width: 30%; }
.flow th:nth-child(5), .flow td:nth-child(5) { width: 16%; }
.flow td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; line-height: 1.7; color: var(--ink-2); }
.flow tr:last-child td { border-bottom: 0; }
.flow td:first-child { font-weight: 500; color: var(--ink); white-space: nowrap; }
.flow .t { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.flow .intent { color: var(--ink-3); font-size: 12px; }

/* 板书 */
.board {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.95;
  white-space: pre-wrap;
  overflow-x: auto;
  position: relative;
}
.board::before {
  content: "板书";
  position: absolute;
  right: 16px; top: 12px;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
  font-family: var(--sans);
}

/* 演示实验 */
.demo-box {
  display: flex;
  gap: 16px;
  background: var(--gold-soft);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13px;
  color: #6B551F;
  line-height: 1.78;
}
.demo-box__i {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(192, 151, 63, .16);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 迷思概念表 */
.mis-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mis-table th {
  text-align: left;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 500;
  padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--line);
}
.mis-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; line-height: 1.7; }
.mis-table tr:last-child td { border-bottom: 0; }
.mis-table .w { color: var(--red); font-weight: 500; }
.mis-table .r { color: var(--ink); }
.mis-table .why { color: var(--ink-3); font-size: 12px; }

/* 资源与题目 */
.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.res-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-radius: 8px;
  font-size: 13px;
  transition: background .14s;
}
.res-item:hover { background: #F2F5F9; }
.res-item__t { font-size: 12px; color: var(--blue); background: var(--blue-soft); border-radius: 6px; padding: 2px 8px; flex: 0 0 auto; }
.res-item__n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }

/* 教师提醒 */
.note-box {
  background: #FFF; border-radius: 8px; padding: 16px 20px;
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-1);
  font-size: 13px; color: var(--ink-2); line-height: 1.8;
}
.note-box__k {
  font-size: 12px; letter-spacing: .16em; color: var(--gold);
  font-weight: 500; margin-bottom: 5px;
}

/* ============================ 教法 / 纵深 / 误区 ============================ */

.mt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mt-card {
  background: var(--surface);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-2);
  padding: 20px 24px 20px;
  display: flex;
  flex-direction: column;
  transition: all .2s var(--ease);
}
.mt-card:hover { box-shadow: var(--shadow-3); transform: translateY(-2px); }
.mt-card__k { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.mt-card__no { font-family: var(--mono); font-size: 12px; color: var(--gold); font-weight: 500; letter-spacing: .06em; }
.mt-card h3 { font-size: 16px; letter-spacing: 0; margin-bottom: 8px; }
.mt-card__pain { font-size: 13px; color: var(--ink-3); line-height: 1.72; margin-bottom: 12px; }

/* 教法详情 */
.method-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 32px 32px;
  color: var(--ink);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.method-hero::after {
  content: "";
  position: absolute; right: -50px; top: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(169,133,60,.10), transparent 70%);
}
.method-hero h1 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 8px; letter-spacing: 0; }
.method-hero p { font-size: 14px; color: var(--ink-3); line-height: 1.8; max-width: 700px; }
.method-hero .hero__k { color: var(--gold); }

.pain-quote {
  background: var(--red-soft);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13px;
  color: #7A2E24;
  line-height: 1.78;
  margin-bottom: 18px;
}
.pain-quote b { font-size: 12px; letter-spacing: .14em; display: block; margin-bottom: 5px; color: var(--red); }

.step-flow { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 16px;
  padding-bottom: 18px;
  position: relative;
}
.step-item:last-child { padding-bottom: 0; }
.step-item::before {
  content: "";
  position: absolute;
  left: 12.5px; top: 26px; bottom: 0;
  width: 1px;
  background: #DCE3EC;
}
.step-item:last-child::before { display: none; }
.step-item__n {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #C9D2DE;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  font-weight: 500;
}
.step-item__b { font-size: 13px; color: var(--ink-2); line-height: 1.8; padding-top: 3px; }

.script-box {
  background: var(--gold-soft);
  border-left: 2px solid var(--gold);
  border-radius: 8px;
  padding: 16px 20px;
  color: #5C4A22;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.9;
  position: relative;
}
.script-box::before {
  content: "课堂原话";
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 8px;
}

/* 纵深 */
.deep-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.deep-box {
  background: var(--surface);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-2);
  padding: 20px 24px;
}
.deep-box--high { background: #FBFCFD; box-shadow: none; border: 1px solid var(--line); }
.deep-box__k {
  font-size: 12px; letter-spacing: .18em; font-weight: 500;
  color: var(--muted); margin-bottom: 9px; font-family: var(--mono);
}
.deep-box--deep .deep-box__k { color: var(--gold); }
.deep-box__t { font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.deep-value {
  background: linear-gradient(150deg, #F7F9FC, #EDF2F9);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.8;
  border-left: 3px solid var(--blue);
}

/* 误区 */
.pf-item {
  background: var(--surface);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-2);
  padding: 20px 24px;
  margin-bottom: 10px;
}
.pf-item__h { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.pf-item__no { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; flex: 0 0 auto; }
.pf-item__w { font-size: 14px; font-weight: 500; color: var(--red); line-height: 1.6; letter-spacing: 0; }
.pf-item__m { display: grid; grid-template-columns: 58px 1fr; gap: 4px 12px; font-size: 13px; line-height: 1.78; }
.pf-item__m dt { font-size: 12px; color: var(--muted); padding-top: 2px; }
.pf-item__m dd { margin: 0; color: var(--ink-2); }
.pf-item__m dd.fix { color: var(--ink); }

/* ============================ 题库 ============================ */

.q-list { display: flex; flex-direction: column; gap: 8px; }
.q-item {
  background: var(--surface);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: box-shadow .18s;
}
.q-item:hover { box-shadow: var(--shadow-2); }
.q-item.open { box-shadow: var(--shadow-2); }

.q-head { display: flex; gap: 16px; padding: 16px 20px; cursor: pointer; }
.q-no { font-family: var(--mono); font-size: 12px; color: var(--muted); flex: 0 0 44px; padding-top: 3px; letter-spacing: .02em; }
.q-main { flex: 1; min-width: 0; }
.q-stem { font-size: 14px; line-height: 1.82; color: var(--ink); }
.q-stem i, .ana i, .q-opt i, .sl-tx i, .deep-box__t i {
  font-family: "Times New Roman", "Cambria Math", Georgia, serif;
  font-style: italic;
}
.q-stem sub, .ana sub { font-size: .72em; }
.q-figs { margin: 12px 0 4px; }
.q-figs svg { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line-2); }
.q-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.q-type {
  font-size: 12px;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 2px 8px;
  border-radius: 6px;
  line-height: 18px;
  font-weight: 500;
}
.diff { display: inline-flex; gap: 4px; align-items: center; flex: 0 0 auto; white-space: nowrap; }
.diff i { width: 6px; height: 6px; border-radius: 6px; background: #DDE3EB; display: block; }
.diff i.on { background: var(--night-3); }
.diff.hard i.on { background: var(--red); }
.diff__t { font-size: 12px; color: var(--muted); margin-left: 3px; }
.diff-wrap { display: inline-flex; align-items: center; flex: 0 0 auto; white-space: nowrap; }

.q-toggle {
  flex: 0 0 auto;
  align-self: flex-start;
  font-size: 12px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 12px;
  background: #fff;
  transition: all .15s;
}
.q-item:hover .q-toggle { border-color: #C4CEDC; color: var(--ink); }

.q-body { display: none; padding: 16px 20px 20px 78px; border-top: 1px solid var(--line-2); }
.q-item.open .q-body { display: block; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin-bottom: 15px; }
.q-opt { font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.q-opt b { font-family: var(--mono); font-weight: 500; color: var(--muted); margin-right: 7px; font-size: 12px; }

.ans-box { background: #F7F9FC; border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; }
.ans-box__k { font-size: 12px; letter-spacing: .16em; color: var(--blue); font-weight: 500; margin-bottom: 5px; }
.ans-box__v { font-size: 14px; color: var(--ink); font-weight: 500; }

.ana { font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.ana__k { font-size: 12px; letter-spacing: .16em; color: var(--gold); font-weight: 500; margin-bottom: 6px; }
.ana ol { margin: 0; padding-left: 17px; }
.ana li { margin: 4px 0; }

.q-link {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.q-link a { color: var(--blue); }
.q-link a:hover { text-decoration: underline; text-underline-offset: 2px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 22px; }
.pager button {
  min-width: 30px; height: 30px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.pager button:hover:not(:disabled) { border-color: #C4CEDC; }
.pager button.on { background: var(--night-2); border-color: var(--night-2); color: #fff; }
.pager button:disabled { opacity: .35; cursor: default; }

/* ============================ 命题研究 ============================ */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  margin-bottom: 18px;
}
.stat-band > div { background: #fff; padding: 20px 20px; }
.stat-band__n { font-size: 28px; font-weight: 500; letter-spacing: 0; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-band__n small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.stat-band__l { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: .04em; }

.struct-bar { display: flex; height: 50px; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.struct-bar__seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  position: relative;
  transition: filter .15s;
}
.struct-bar__seg:hover { filter: brightness(1.12); }
.struct-bar__seg small { font-size: 12px; font-weight: 400; opacity: .8; letter-spacing: .04em; }
/* 名称与分数放在同一行；拆成两个 flex 子项会被 44px 高度压扁 */
.struct-bar__seg .line { display: flex; align-items: baseline; gap: 4px; max-width: 100%; flex: 0 0 auto; }
.struct-bar__seg .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.struct-bar__seg .sc { white-space: nowrap; flex: 0 0 auto; }
.struct-bar__seg.s-blue { background: #2F6FE4; }
.struct-bar__seg.s-indigo { background: #3B4FA8; }
.struct-bar__seg.s-teal { background: #0E7C6B; }
.struct-bar__seg.s-gold { background: linear-gradient(90deg, #A8802C, #C9A55C); }
.struct-bar__seg.s-dark { background: linear-gradient(90deg, #2B3546, #46536A); }


/* 图例：两列网格，每条批注独立成块，避免长句把整行挤乱 */
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; font-size: 12px; color: var(--ink-3); margin-top: 12px; }
.legend span { display: flex; align-items: flex-start; gap: 8px; line-height: 1.7; }
.legend i { flex: 0 0 auto; margin-top: 6px; }
/* 条目为奇数时，最后一条独占整行，避免右下角空出一块 */
.legend span:nth-child(odd):last-child { grid-column: 1 / -1; }
.legend i { width: 9px; height: 9px; border-radius: 6px; display: block; }

.matrix-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 13px; }
@media (max-width: 760px) {
  /* 560px 会让 420px 宽的机型必须横向滚动，且右侧列被裁成一条；降到 420 后三列都能读到 */
  .matrix { min-width: 0; }
  .matrix td { padding: 12px 8px; word-break: break-word; }
  /* 位置标签在窄列里会顶到右侧列，允许换行并缩小内边距 */
  .matrix .heat { white-space: normal; word-break: break-word; font-size: 11px; padding: 2px 6px; }
  /* 图例在窄屏改为单列，两列时每条只剩一行半，读起来更费力 */
  .legend { grid-template-columns: 1fr; gap: 6px; }
  /* 窄屏色带：隐藏段内名称，只留分数与题数，避免文字被压成竖排 */
  .struct-bar__seg .nm { display: none; }
  .struct-bar__seg { font-size: 11px; line-height: 1.3; }
  .struct-bar__seg small { font-size: 10.5px; }
}
.matrix th {
  text-align: left;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 500;
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.matrix td { padding: 14px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; line-height: 1.65; color: var(--ink-2); }
.matrix tr:last-child td { border-bottom: 0; }
.matrix td.ch { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
/* 命题说明独立成段，与上面的命题形式拉开层次 */
.mx-note { font-size: 12px; color: var(--ink-3); margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line-2); line-height: 1.7; }
/* 真题分布列：数字 + 题型拆分，颜色深浅表示题量密度 */
.matrix td.rv { font-family: var(--mono); font-size: 13px; font-weight: 600; white-space: nowrap; }
.matrix td.rv small { display: block; font-family: inherit; font-size: 10.5px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-top: 2px; }
.matrix td.rv.rv0 { color: var(--ink-3); font-weight: 400; }
.matrix td.rv.rv1 { color: #7a6231; }
.matrix td.rv.rv2 { color: #8A6A22; }
.matrix td.rv.rv3 { color: #16324f; }
.matrix td.w {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.heat {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}
/* 频次越高越醒目：h3 最高频（金实底） / h2 中频（浅蓝） / h1 低频（灰） */
.heat.h3 { background: var(--gold); color: #fff; }
.heat.h2 { background: #FBF6E9; color: #8A6A22; border: 1px solid #EADFC2; }
.heat.h1 { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); }

/* 命题研究 · 分册承载分值 */
.bkbar { display: flex; flex-direction: column; gap: 8px; }
.bkbar__row { display: grid; grid-template-columns: 96px 1fr 62px; align-items: center; gap: 12px; }
.bkbar__n { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.bkbar__t { height: 20px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.bkbar__f { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #D9C48D, #E8DBB6); }
.bkbar__f.hot { background: linear-gradient(90deg, #A8802C, #C9A55C); }
.bkbar__v { font-family: var(--mono); font-size: 12px; color: var(--ink); text-align: right; font-weight: 500; }
.bkbar__hint { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.7; }
.bkbar__hint span { display: block; }

/* 命题矩阵 · 分册分隔行 */
.matrix tr.matrix__book td {
  background: var(--surface-2);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-3);
  font-weight: 500;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

/* 答题规范清单 */
.rule-list { counter-reset: rl; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.rule-list li {
  counter-increment: rl;
  list-style: none;
  position: relative;
  padding-left: 26px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.75;
}
.rule-list li::before {
  content: counter(rl, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
}
@media (max-width: 860px) {
  .rule-list { grid-template-columns: 1fr; }
  .bkbar__row { grid-template-columns: 74px 1fr 52px; }
}

.trend-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.trend-item:last-child { border-bottom: 0; }
.trend-item__n { font-family: var(--mono); font-size: 12px; color: var(--gold); font-weight: 500; padding-top: 2px; flex: 0 0 20px; }
.trend-item__t { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.trend-item__d { font-size: 13px; color: var(--ink-3); line-height: 1.78; margin-bottom: 6px; }
.trend-item__a { font-size: 13px; color: var(--ink-2); background: #FBF6E9; border-left: 3px solid #E0CE9E; border-radius: 4px; padding: 8px 12px; line-height: 1.65; }

/* ============================ 真题与精讲 ============================ */

.real-note {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 14px 18px;
  margin-bottom: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.85;
}
.real-note b {
  flex: 0 0 68px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 12.5px;
}

.tag--real {
  background: var(--gold-soft);
  color: #6E5620;
  border: 1px solid #E3D2A8;
  font-weight: 500;
}

.q-no--real {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0;
  line-height: 1.35;
  white-space: nowrap;
}
.q-no--real em {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: #7E6320;
}

/* 精讲块 */
.lec {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--gold-soft);
  border-left: 2px solid var(--gold);
  border-radius: 0 8px 8px 0;
}
.lec__k {
  font-size: 12px;
  font-weight: 500;
  color: #6E5620;
  margin-bottom: 12px;
}
.lec__row { display: flex; gap: 12px; margin-bottom: 12px; }
.lec__row:last-child { margin-bottom: 0; }
.lec__t {
  flex: 0 0 66px;
  font-size: 12px;
  color: #6F5A22;
  padding-top: 1px;
}
.lec__d {
  flex: 1;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.85;
}
.lec__ol { margin: 0; padding-left: 16px; }
.lec__ol li { margin: 4px 0; }

@media (max-width: 640px) {
  .lec__row { flex-direction: column; gap: 4px; }
  .lec__t { flex: none; }
}

/* ============================ 组卷器 ============================ */

.paper-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.paper-side { position: sticky; top: 76px; }
.paper-sheet {
  background: #fff;
  border-radius: var(--r-l);
  box-shadow: var(--shadow-2);
  padding: 32px 36px;
  min-height: 400px;
}
.paper-sheet__h { border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 18px; }
.paper-sheet__t { font-size: 20px; font-weight: 500; letter-spacing: 0; text-align: center; }
.paper-sheet__s { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 4px; }
.paper-q { margin-bottom: 16px; font-size: 13px; line-height: 1.85; }
.paper-q__n { font-weight: 500; margin-right: 4px; }
.paper-empty { text-align: center; padding: 72px 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* ============================ 搜索 ============================ */

.sr-grp { margin-bottom: 24px; }
.sr-grp__h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .1em;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.sr-grp__h b { color: var(--ink); font-size: 13px; letter-spacing: 0; }
.sr-grp__h .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sr-it { display: block; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.sr-it:last-child { border-bottom: 0; }
.sr-it__t { font-size: 13px; color: var(--ink); margin-bottom: 2px; }
.sr-it:hover .sr-it__t { color: var(--blue); }
.sr-it__d { font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.sr-it__src { font-size: 12px; color: var(--muted); font-family: var(--mono); margin-top: 3px; }
mark { background: #FCEFC7; color: #6B5011; padding: 0 2px; border-radius: 6px; }

/* ============================ 教材索引 ============================ */

.tb-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
.tb-tree {
  background: var(--surface);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-2);
  padding: 16px 0 16px;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}
.tb-book { padding: 8px 20px 8px; font-size: 12px; letter-spacing: .16em; color: var(--muted); font-weight: 500; }
.tb-ch__h {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  cursor: pointer; line-height: 1.45;
  transition: color .14s;
}
.tb-ch__h:hover { color: var(--blue); }
.tb-ch__h .ar { width: 10px; height: 10px; flex: 0 0 10px; color: var(--muted); transition: transform .16s; }
.tb-ch.open .tb-ch__h .ar { transform: rotate(90deg); }
.tb-ch__body { display: none; }
.tb-ch.open .tb-ch__body { display: block; }
.tb-sec {
  display: block;
  padding: 4px 16px 4px 33px;
  font-size: 13px; color: var(--ink-3); line-height: 1.55;
  border-left: 2px solid transparent;
}
.tb-sec:hover { background: #F5F7FA; color: var(--ink); }
.tb-sec.on { background: var(--blue-soft); color: var(--blue); font-weight: 500; border-left-color: var(--blue); }
.tb-sec__n { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-right: 5px; }

/* ============================ 阅读 ============================ */

.reader { display: flex; flex-direction: column; height: calc(100vh - var(--top-h)); margin: -24px -32px -88px; }
.reader__bar {
  height: 46px; flex: 0 0 46px;
  background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
}
.reader__back { font-size: 13px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.reader__back:hover { color: var(--ink); }
.reader__t { font-size: 13px; font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader__act button { border: 1px solid var(--line); background: #fff; color: var(--ink-3); font-size: 12px; padding: 4px 12px; border-radius: 6px; }
.reader__act button:hover { border-color: #C4CEDC; color: var(--ink); }
.reader__frame { flex: 1; width: 100%; border: 0; background: #EEF1F5; }

/* ============================ 课标 ============================ */

.sl-grp { margin-bottom: 26px; }
.sl-grp__h {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 2px;
}
.sl-grp__h t { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.sl-grp__h small { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.sl-item { display: grid; grid-template-columns: 66px 1fr 92px; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.sl-item:last-child { border-bottom: 0; }
.sl-no { font-family: var(--mono); font-size: 12px; color: var(--gold); font-weight: 500; padding-top: 3px; }
.sl-tx { font-size: 13px; color: var(--ink); line-height: 1.9; font-family: var(--serif); }
.sl-tx em { font-style: normal; background: #FBF3E3; padding: 0 2px; }
.sl-ex { margin-top: 8px; font-size: 13px; color: var(--ink-3); line-height: 1.8; font-family: var(--sans); }
.sl-lv { text-align: right; }
.sl-lv .lv {
  display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px;
  background: #F1F4F8; color: var(--ink-3); line-height: 18px; white-space: nowrap; font-weight: 500;
}
.sl-lv .lv.lv2 { background: var(--blue-soft); color: var(--blue); }
.sl-lv__map { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.sl-lv__map:hover { color: var(--blue); }

.sl-note {
  background: var(--gold-soft);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13px;
  color: #6B551F;
  line-height: 1.8;
  margin-bottom: 22px;
}
.sl-note b { color: #4C3C14; }

/* ============================ 杂项 ============================ */

.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty__t { font-size: 14px; color: var(--ink-2); font-weight: 500; margin-bottom: 5px; }
.empty__d { font-size: 13px; line-height: 1.8; }

.note-inline { font-size: 12px; color: var(--muted); line-height: 1.7; }

.foot {
  border-top: 1px solid var(--line);
  padding: 20px 32px 24px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.foot .spacer { flex: 1; }

.scrim { display: none; position: fixed; inset: 0; background: rgba(8,12,18,.5); z-index: 55; backdrop-filter: blur(2px); }
.scrim.on { display: block; }

code {
  font-family: var(--mono);
  font-size: .88em;
  background: #F1F4F8;
  padding: 2px 4px;
  border-radius: 6px;
  color: var(--ink-2);
}

/* 底部导航 */
.bottomtab { display: none; }


/* ============================ 资源：每节一行三份 ============================ */

.res-list { display: flex; flex-direction: column; gap: 8px; }
.res-row {
  display: grid;
  grid-template-columns: 1fr 372px;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow-1);
  padding: 12px 16px;
  transition: box-shadow .16s var(--ease);
}
.res-row:hover { box-shadow: var(--shadow-2); }
.res-row__l { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.res-row__no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  flex: 0 0 18px;
}
.res-row__t {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.res-row__docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.doc {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}
.doc:active { transform: scale(.98); }
/* 三份讲义：默认中性底，只用文字色区分，hover 才提亮 */
.doc--k { background: var(--surface-2); color: #2456B8; border: 1px solid var(--line); }
.doc--k:hover { background: #fff; border-color: #C9D8F5; }
.doc--s { background: var(--surface-2); color: #7E6320; border: 1px solid var(--line); }
.doc--s:hover { background: #fff; border-color: #E3D2A8; }
.doc--a { background: var(--surface-2); color: #12695C; border: 1px solid var(--line); }
.doc--a:hover { background: #fff; border-color: #BFDCD5; }
.doc--off { background: #F1F4F8; color: var(--muted); cursor: default; }

@media (max-width: 900px) {
  .res-row { grid-template-columns: 1fr; gap: 8px; padding: 12px 16px; }
}
@media (max-width: 760px) {
  .res-row { padding: 12px 12px; gap: 8px; }
  .res-row__t { font-size: 13px; }
  .doc { height: 30px; font-size: 12px; }
  .res-row__docs { gap: 8px; }
}

@media print {
  .res-row { box-shadow: none; border: 1px solid #E4E8EF; }
}

/* ============================ 响应式 ============================ */

@media (max-width: 1180px) {
  .view { padding: 24px 24px 80px; }
  .dash { gap: 12px; }
  .line-card { grid-column: span 6; }
  .progress-card { grid-column: span 12; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 32px 32px; }
  .hero__stats { grid-template-columns: repeat(2, 88px); }
  .mt-grid { grid-template-columns: 1fr; }
  .deep-row { grid-template-columns: 1fr; }
  .paper-wrap { grid-template-columns: 260px 1fr; }
}

@media (max-width: 1080px) {
  .side {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform .26s var(--ease);
    box-shadow: 8px 0 40px rgba(8,12,18,.28);
    height: 100vh;
  }
  .side.open { transform: none; }
  .burger { display: flex; }
  .topbar { padding: 0 16px; }
  .searchbox { flex: 0 0 210px; max-width: 210px; }
  .searchbox__k { display: none; }
  .tb-wrap { grid-template-columns: 210px 1fr; gap: 16px; }
  .ls-wrap { grid-template-columns: 150px 1fr; gap: 20px; }
  .paper-wrap { grid-template-columns: 1fr; }
  .paper-side { position: static; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero__in { flex-direction: column; align-items: stretch; gap: 24px; }
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
  .line-card { grid-column: span 12; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .ls-wrap { grid-template-columns: 1fr; }
  .ls-nav { display: none; }
  .tb-wrap { grid-template-columns: 1fr; }
  .tb-tree { position: static; max-height: 260px; }
  .sl-item { grid-template-columns: 54px 1fr; gap: 12px; }
  .sl-lv { grid-column: 2; text-align: left; display: flex; gap: 12px; align-items: center; }
  .sl-lv__map { margin-top: 0; }
  .q-opts { grid-template-columns: 1fr; }
  .q-body { padding-left: 20px; }
  .flow th:nth-child(2), .flow td:nth-child(2) { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 14px; }
  .view { padding: 16px 16px 88px; }
  .topbar { padding: 0 12px; gap: 12px; }
  .crumb { display: none; }
  .searchbox { flex: 1 1 auto; max-width: none; }
  .hero { padding: 24px 20px 24px; border-radius: var(--r-l); }
  .hero h1 { font-size: 20px; }
  .hero__d { font-size: 13px; margin-bottom: 18px; }
  .hero__acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero__acts .btn { padding: 0 8px; font-size: 12px; justify-content: center; gap: 4px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hstat { padding: 12px 12px; }
  .hstat__n { font-size: 20px; }
  .page-head h1 { font-size: 20px; }
  .page-head__d { font-size: 13px; }
  .card { padding: 16px 16px; }
  .quick-grid { grid-template-columns: 1fr; }
  .ring-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .ring { align-self: center; }
  .now-card { flex-wrap: wrap; gap: 12px; }
  .lesson-row { grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 16px; }
  .lesson-row__r { grid-column: 2; justify-content: flex-start; }
  .lesson-row__d { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .lesson-head { padding: 24px 20px 20px; border-radius: var(--r-l); }
  .ls-sec__t { font-size: 14px; }
  .panel { padding: 16px 16px; }
  .hard-item__b { grid-template-columns: 1fr; gap: 2px; }
  .hard-item__b dt { margin-top: 6px; }
  .obj-list li { align-items: flex-start; gap: 8px; }
  .obj-list li b { flex: 0 0 auto; padding: 2px 8px; height: auto; line-height: 17px; }
  .flow th:nth-child(3), .flow td:nth-child(3) { display: none; }
  .board { font-size: 12px; padding: 16px 16px; }
  .res-grid { grid-template-columns: 1fr; }
  .mt-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .stat-band > div { padding: 16px 16px; }
  .stat-band__n { font-size: 20px; }
  .q-head { padding: 12px 16px; gap: 8px; }
  .q-no { flex: 0 0 30px; font-size: 12px; }
  .q-body { padding: 16px 16px 16px; }
  .q-meta { gap: 8px; }
  .q-meta .tag { font-size: 12px; padding: 2px 4px; }
  .q-meta .tag:not(.tag--blue) { display: none; }
  .q-toggle { font-size: 12px; padding: 2px 8px; }
  .reader { margin: -16px -16px -88px; }
  .reader__bar { padding: 0 12px; gap: 8px; }
  .deep-row { gap: 8px; }
  .foot { padding: 16px 16px 74px; }
  .pf-item { padding: 16px 16px; }
  .pf-item__m { grid-template-columns: 1fr; gap: 2px; }
  .pf-item__m dt { margin-top: 6px; }
  .trend-item { gap: 12px; }
  .paper-sheet { padding: 24px 20px; }
  .matrix th:nth-child(3), .matrix td:nth-child(3) { display: none; }
  /* 窄屏隐藏分值列后，剩余三列重新分配宽度（fixed 布局下否则会留一块空白） */
  .matrix th:nth-child(1), .matrix td:nth-child(1) { width: 33% !important; }
  .matrix th:nth-child(2), .matrix td:nth-child(2) { width: 25% !important; }
  .matrix th:nth-child(4), .matrix td:nth-child(4) { width: 42% !important; }

  .bottomtab {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 56px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .bottomtab a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .02em;
  }
  .bottomtab a svg { width: 18px; height: 18px; }
  .bottomtab a.is-on { color: var(--ink); font-weight: 500; }
}


@media (max-width: 760px) {
  .toolbar { flex-wrap: wrap; }
  .toolbar .seg {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .toolbar .seg::-webkit-scrollbar { display: none; }
  .toolbar .seg button { flex: 0 0 auto; }
  .rev-nodes { grid-template-columns: 1fr !important; }
}

@media (max-width: 420px) {
  .tb-wrap { gap: 12px; }
  .quick-grid { grid-template-columns: 1fr; }
}

@media print {
  .side, .topbar, .foot, .bottomtab, .toolbar, .pager, .paper-side, .ls-nav { display: none !important; }
  .view { padding: 0; max-width: none; animation: none; }
  body { background: #fff; }
  .card, .panel, .q-item, .mt-card { box-shadow: none; border: 1px solid #E0E4EA; }
  .paper-sheet { box-shadow: none; padding: 0; }
  .paper-wrap { grid-template-columns: 1fr; }
}

/* ============================ 册分组 ============================ */

.book-band {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  margin: 24px 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
}
.book-band__l { display: flex; align-items: baseline; gap: 12px; flex: 0 0 auto; }
.book-band__n { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.book-band__s { font-size: 12px; color: var(--muted); white-space: nowrap; }
.book-band__d { flex: 1; font-size: 13px; color: var(--ink-3); line-height: 1.6; min-width: 0; }
.book-band__r { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
.book-band__r .tag { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); }

@media (max-width: 860px) {
  .book-band { flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; }
  .book-band__d { flex: 1 1 100%; order: 3; }
  .book-band__r { flex: 1 1 100%; order: 4; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   细节优化层（对比度 / 说明区版式 / 键盘焦点 / 动效降级 / 打印）
   ============================================================ */

/* 真题说明：左右两栏，右栏给足行宽，不再被压成窄条 */
.real-note__bd { flex: 1; min-width: 0; }
.real-note__bd > span { display: block; line-height: 1.85; }
.real-note__bd > span + span { margin-top: 6px; }

.real-note__cov {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.real-note__covh {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12px; color: var(--ink-3);
}
.real-note__covh b {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--gold); flex: none;
}
.real-note__bar {
  height: 4px; border-radius: 2px; background: var(--line);
  overflow: hidden; margin: 7px 0 8px;
}
.real-note__bar i { display: block; height: 100%; background: var(--gold); border-radius: 2px; }
.real-note__cvd { font-size: 12px; color: var(--ink-3); line-height: 1.8; }

/* 教学目标：标签列固定宽，正文左缘对齐 */
.obj-list li { display: grid; grid-template-columns: 66px 1fr; gap: 12px; align-items: start; }
.obj-list li b { flex: none; width: 100%; }

/* 题卡头部可键盘聚焦 */
.q-head { border-radius: var(--r-m); }
.q-head:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.q-head[aria-expanded="true"] .q-toggle { color: var(--ink); }

/* 精讲正文里的加粗（原来 ** ** 会原样显示） */
.lec__d b, .ana b, .q-stem b { font-weight: 600; color: var(--ink); }

/* 动效降级：系统开启「减少动态效果」时去掉所有过渡与入场动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* 打印：卡片不跨页、表头重复、链接不外露地址 */
@media print {
  .q-item, .panel, .card, .mt-card, .hard-item, .res-row { break-inside: avoid; page-break-inside: avoid; }
  .flow thead, .mis-table thead { display: table-header-group; }
  .lec, .ana, .ans-box { break-inside: avoid; }
  a[href^="#"] { color: inherit; text-decoration: none; }
  .q-item { margin-bottom: 10px; }
  .q-toggle { display: none !important; }   /* 打印时不带「答案」按钮 */
  .q-head { padding-right: 0; }
  .view { padding: 0 8mm; }
}

/* 章内位置图：本节在整章中的序列 */
.posmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.posmap li a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 10px; border-radius: var(--r-s);
  text-decoration: none; color: var(--ink-2); font-size: 13px;
  transition: background .15s;
}
.posmap li a:hover { background: var(--surface-2); }
.posmap li.on a { background: var(--gold-soft); color: var(--ink); }
.posmap__n { font-family: var(--mono); font-size: 12px; color: var(--muted); flex: 0 0 20px; }
.posmap li.on .posmap__n { color: var(--gold); }
.posmap__t { flex: 1; min-width: 0; }
.posmap__s { font-size: 11px; color: var(--muted); flex: none; }
.posmap li.on .posmap__s { color: var(--gold); }
.posmap__nav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line-2); font-size: 12px;
}
.posmap__nav a { color: var(--blue); text-decoration: none; max-width: 49%; }
.posmap__nav a:last-child { text-align: right; margin-left: auto; }

@media (max-width: 640px) {
  .posmap__nav { flex-direction: column; gap: 6px; }
  .posmap__nav a { max-width: none; }
  .posmap__nav a:last-child { text-align: left; }
}

/* 组卷章节选择：按册分组 */
.pch { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.pch__row { display: flex; align-items: flex-start; gap: 8px; }
.pch__bk {
  flex: 0 0 40px; font-size: 11px; color: var(--muted);
  padding-top: 4px; line-height: 1.4;
}
.pch__cs { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; min-width: 0; }

/* 组卷空状态 */
.paper-empty__t { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.paper-empty__d { font-size: 12px; color: var(--muted); line-height: 1.9; margin-bottom: 10px; max-width: 380px; margin-left: auto; margin-right: auto; }

/* 首页「全部备齐」状态徽标 */
.now-card__badge--done { background: var(--teal-soft); color: var(--teal); border-color: #BFE0D8; }

/* 选项常显：与题干左缘对齐，位于折叠区之上 */
.q-opts--out {
  padding: 0 20px 16px 78px;
  margin-bottom: 0;
  gap: 4px 20px;
}
.q-opts--out .q-opt { color: var(--ink); }
@media (max-width: 640px) {
  .q-opts--out { padding: 0 16px 12px; grid-template-columns: 1fr; gap: 2px; }
}

/* 真题说明区在窄屏改为上下堆叠 */
.real-note__covh-x { margin-left: auto; }
@media (max-width: 640px) {
  .real-note { flex-direction: column; gap: 6px; }
  .real-note b { flex: none; }
  .real-note__covh { flex-wrap: wrap; row-gap: 3px; }
  .real-note__covh-x { display: none; }
}

/* ============================ 学科切换 ============================ */
.subj {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  margin: 10px 12px 12px;
  padding: 2px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--night-line);
  border-radius: var(--r-s);
}
.subj__b {
  appearance: none; border: 0; background: transparent;
  color: var(--on-dark-2); font-size: 12px; font-family: inherit;
  padding: 6px 0; border-radius: 6px; cursor: pointer;
  transition: background .15s, color .15s;
}
.subj__b:hover { color: var(--on-dark); background: rgba(255, 255, 255, .06); }
.subj__b.on { background: var(--gold); color: #1A1508; font-weight: 500; }
.subj__b:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 2px; }

/* 学生端入口：与学科切换区分开，用品牌绿强调 */
.stu-go {
  display: flex; align-items: center; gap: 9px;
  margin: 0 12px 12px; padding: 10px 13px;
  border-radius: var(--r-s);
  background: linear-gradient(135deg, #0E7C66 0%, #0A5C4C 100%);
  color: #EAF6F2; font-size: 12.5px; font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(10, 92, 76, .26);
  transition: transform .15s ease, box-shadow .15s ease;
}
.stu-go:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(10, 92, 76, .36); }
.stu-go svg { flex: 0 0 auto; opacity: .92; }
.stu-go span:first-of-type { flex: 1; letter-spacing: .02em; }
.stu-go__ar { font-size: 11px; opacity: .66; }

/* 真题题干中的行内化学式图片：与文字同高，避免撑破行距 */
.qimg { height: 1.55em; vertical-align: -0.32em; max-width: 100%; margin: 0 1px; }
.q-opts .qimg { height: 1.5em; }

/* 老卷题干里的数据表（2008—2020 全国卷把表格抽成 <table class="qtab">） */
.q-stem table.qtab {
  border-collapse: collapse;
  margin: 8px 0 4px;
  font-size: 13px;
  line-height: 1.6;
  background: var(--surface);
  max-width: 100%;
}
.q-stem table.qtab th,
.q-stem table.qtab td {
  border: 1px solid var(--line);
  padding: 4px 10px;
  text-align: center;
  white-space: nowrap;
}
.q-stem table.qtab th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--ink-2);
}
.q-stem table.qtab tbody tr:nth-child(even) td { background: #FBFCFD; }
@media (max-width: 720px) {
  .q-stem table.qtab { font-size: 12px; }
  .q-stem table.qtab th,
  .q-stem table.qtab td { padding: 3px 6px; }
}

/* ---------------- 学生自学课堂 ---------------- */
.ss-head { margin-bottom: 18px; }
.ss-head__k {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: var(--gold); margin-bottom: 8px;
}
.ss-head h1 { font-size: 27px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }

/* 钩子：深色卡，先抛问题 */
.ss-hook {
  background: linear-gradient(135deg, #1B2432 0%, #232F42 100%);
  color: #F2F4F8; border-radius: 14px;
  padding: 26px 30px 26px 32px; font-size: 16.5px; line-height: 1.95;
  position: relative; box-shadow: 0 10px 26px rgba(20, 28, 42, .18);
}
.ss-hook__q {
  display: block; font-size: 11px; letter-spacing: .16em;
  color: var(--gold-l, #D9BE7A); margin-bottom: 10px; font-weight: 500;
}

/* 导语 */
.ss-lead {
  margin: 18px 0 30px; padding-left: 15px; border-left: 3px solid var(--gold);
  font-size: 14.5px; line-height: 1.9; color: var(--ink-2);
}

/* 台阶 */
.ss-steps { margin-top: 8px; }
.ss-step { position: relative; padding-left: 50px; margin-bottom: 34px; }
.ss-step__n {
  position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
}
.ss-step__t {
  font-size: 16.5px; font-weight: 600; line-height: 1.6;
  margin-bottom: 8px; color: var(--ink);
}
.ss-step__p {
  font-size: 14.6px; line-height: 2.05; color: var(--ink-2);
  text-align: justify;
}
.ss-pause {
  margin-top: 12px; padding: 10px 14px 10px 15px;
  background: #FBF7EC; border-left: 2px solid var(--gold);
  border-radius: 0 8px 8px 0; font-size: 13.4px; line-height: 1.85; color: #6B5726;
}
.ss-pause b { color: var(--gold); font-weight: 600; margin-right: 8px; }

/* 多段正文间距 */
.ss-step__p + .ss-step__p { margin-top: 12px; }

/* 例题：题干 + 分步解析 */
.ss-eg {
  margin: 18px 0 4px; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; background: #FCFDFE;
}
.ss-eg--wide { margin: 26px 0 8px; }
.ss-eg__q {
  padding: 14px 16px; font-size: 13.8px; line-height: 1.85;
  color: var(--ink); background: #fff; border-bottom: 1px solid var(--line-2);
}
.ss-eg__q b {
  display: inline-block; font-size: 10.5px; font-weight: 600;
  color: var(--gold); border: 1px solid #E4D6B4;
  border-radius: 4px; padding: 1px 6px; margin-right: 8px;
  vertical-align: 2px; letter-spacing: .06em;
}
.ss-eg__a { padding: 12px 16px 14px; }
.ss-eg__l {
  font-size: 13.4px; line-height: 2; color: var(--ink-2);
  padding-left: 14px; position: relative;
}
.ss-eg__l + .ss-eg__l { margin-top: 2px; }
.ss-eg__l::before {
  content: ''; position: absolute; left: 2px; top: 12px;
  width: 4px; height: 4px; border-radius: 50%; background: #C9D3DF;
}
.ss-eg__l:first-child { color: var(--ink); font-weight: 500; }

/* 台阶旁批 */
.ss-note {
  margin-top: 12px; padding: 10px 14px; background: #F3F7FB;
  border-left: 2px solid #A8C0DA; border-radius: 0 8px 8px 0;
  font-size: 12.8px; line-height: 1.85; color: #35506E;
}

/* 类比 */
.ss-analogy {
  margin: 34px 0 16px; padding: 20px 22px;
  background: #F3F7FB; border: 1px solid #DDE7F1; border-radius: 12px;
}
.ss-analogy__h { font-size: 14px; font-weight: 600; color: #2A5580; margin-bottom: 8px; }
.ss-analogy p { font-size: 14px; line-height: 1.95; color: var(--ink-2); }

/* 陷阱 */
.ss-trap {
  margin: 16px 0; padding: 18px 22px;
  background: #FDF5F4; border: 1px solid #F0DAD6; border-radius: 12px;
}
.ss-trap__h { font-size: 13px; font-weight: 600; color: #9C3A2E; margin-bottom: 8px; letter-spacing: .04em; }
.ss-trap p { font-size: 14px; line-height: 1.95; color: #6E3B34; }

/* 自检 */
.ss-q {
  border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 8px; background: var(--surface); overflow: hidden;
}
.ss-q summary {
  list-style: none; cursor: pointer; padding: 14px 18px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); line-height: 1.75;
  display: flex; gap: 10px; align-items: flex-start;
}
.ss-q summary::-webkit-details-marker { display: none; }
.ss-q summary:hover { background: var(--surface-2); }
.ss-q__n {
  flex: 0 0 20px; height: 20px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; margin-top: 3px;
}
.ss-q[open] summary { border-bottom: 1px solid var(--line-2); }
.ss-q__a {
  padding: 14px 18px 16px 48px; font-size: 14px; line-height: 1.95;
  color: var(--ink-2); background: #FCFDFE;
}

/* 一句话带走 */
.ss-take {
  margin: 30px 0 10px; padding: 24px 28px; border-radius: 12px;
  background: var(--night, #171B21); color: #fff;
}
.ss-take__k {
  display: block; font-size: 11px; letter-spacing: .16em;
  color: var(--gold-l, #D9BE7A); margin-bottom: 8px;
}
.ss-take p { font-size: 16px; line-height: 1.9; }

/* 上/下一节 */
.ss-nav { display: flex; gap: 12px; margin-top: 26px; }
.ss-nav > span { flex: 1; }
.ss-nav__i {
  flex: 1; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; display: block; transition: border-color .15s, background .15s;
}
.ss-nav__i:hover { border-color: var(--gold); background: #FDFBF5; }
.ss-nav__i span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; letter-spacing: .08em; }
.ss-nav__i b { font-size: 14px; color: var(--ink); font-weight: 500; }
.ss-nav__i--r { text-align: right; }

/* 列表：章标题与卡片网格 */
.ss-ch {
  display: flex; align-items: baseline; gap: 10px;
  margin: 18px 0 10px; padding-bottom: 7px; border-bottom: 1px dashed var(--line);
}
.ss-ch__no { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.ss-ch__t { font-size: 14px; font-weight: 600; color: var(--ink); }
.ss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ss-card {
  display: block; padding: 15px 17px; border: 1px solid var(--line); border-radius: 11px;
  text-decoration: none; background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ss-card:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(28, 32, 39, .07); transform: translateY(-1px); }
.ss-card__n { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.ss-card__h { display: block; font-size: 12.4px; line-height: 1.75; color: var(--ink-3); margin-bottom: 8px; }
.ss-card__m { display: block; font-size: 11.5px; color: var(--gold); }
.ss-card--soon { opacity: .55; }
.ss-card--soon:hover { border-color: var(--line); box-shadow: none; transform: none; }
.ss-card--soon .ss-card__h { color: var(--muted); }
.ss-card--soon .ss-card__m { color: var(--muted); }

@media (max-width: 860px) {
  .ss-grid { grid-template-columns: 1fr; }
  .ss-hook { padding: 20px 22px; font-size: 15px; }
  .ss-step { padding-left: 40px; }
  .ss-step__n { width: 26px; height: 26px; font-size: 12px; }
  .ss-step__t { font-size: 15px; }
  .ss-step__p { font-size: 14px; }
  .ss-head h1 { font-size: 22px; }
  .ss-nav { flex-direction: column; }
  .ss-nav__i--r { text-align: left; }
}

/* ============================================================
   秒杀技法
   ============================================================ */
.hk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hk-card {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-m);
  border: 1px solid var(--line); padding: 18px 20px 16px;
  box-shadow: var(--shadow-1); text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.hk-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); border-color: #D8DDE5; }
.hk-card__top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.hk-card__id {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--gold); letter-spacing: .04em;
}
.hk-hot {
  margin-left: auto; font-size: 10.5px; letter-spacing: .06em;
  color: #fff; background: var(--gold); border-radius: 4px;
  padding: 2px 6px; line-height: 1.4;
}
.hk-card__t { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.5; margin-bottom: 4px; }
.hk-card__s { font-size: 12.5px; color: var(--gold); margin-bottom: 10px; letter-spacing: .01em; }
.hk-card__g {
  font-size: 12.5px; color: var(--ink-3); line-height: 1.75;
  padding-top: 10px; border-top: 1px dashed var(--line);
}

/* 技法详情 */
.hk-head { margin-bottom: 20px; }
.hk-head__k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--gold); margin-bottom: 8px; }
.hk-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.hk-head__s { font-size: 14px; color: var(--ink-3); margin-top: 6px; }

.hk-label {
  display: inline-block; font-size: 11px; letter-spacing: .1em;
  color: var(--ink-3); margin-right: 10px; vertical-align: 2px;
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px;
}
.hk-label--gold { color: var(--gold-l); border-color: rgba(217, 188, 126, .4); }
.hk-label--red { color: var(--red); border-color: rgba(192, 69, 58, .3); }

.hk-when {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--blue); border-radius: 0 var(--r-s) var(--r-s) 0;
  padding: 15px 18px; font-size: 14px; line-height: 1.85; color: var(--ink-2);
  margin-bottom: 12px;
}
.hk-core {
  background: linear-gradient(135deg, #1B2432 0%, #232F42 100%);
  color: #F2F4F8; border-radius: var(--r-m); padding: 22px 26px;
  font-size: 16.5px; line-height: 1.9; font-weight: 500;
  box-shadow: 0 10px 24px rgba(20, 28, 42, .16); margin-bottom: 24px;
}
.hk-core .hk-label { color: var(--gold-l); border-color: rgba(217, 188, 126, .35); }

.hk-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.hk-step { display: flex; gap: 14px; align-items: flex-start; }
.hk-step__n {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold);
  border: 1px solid rgba(138, 106, 42, .25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  margin-top: 2px;
}
.hk-step__t { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }

.hk-eg {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-m); overflow: hidden; margin-bottom: 18px;
}
.hk-eg__q { padding: 18px 20px; font-size: 14px; line-height: 1.9; color: var(--ink); }
.hk-eg__d { border-top: 1px solid var(--line-2); background: var(--surface-2); }
.hk-eg__d summary {
  padding: 12px 20px; font-size: 12.5px; color: var(--gold);
  cursor: pointer; list-style: none; letter-spacing: .04em;
}
.hk-eg__d summary::-webkit-details-marker { display: none; }
.hk-eg__d summary::before { content: '▸ '; }
.hk-eg__d[open] summary::before { content: '▾ '; }
.hk-eg__a { padding: 0 20px 18px; font-size: 13.5px; line-height: 1.95; color: var(--ink-2); }

.hk-edge {
  background: var(--red-soft); border-left: 3px solid var(--red);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  padding: 15px 18px; font-size: 13.5px; line-height: 1.85; color: #7A2E27;
  margin-bottom: 28px;
}

/* ============================================================
   口诀速记
   ============================================================ */
.mn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 8px; }
.mn-card {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--r-s); padding: 16px 18px 14px;
  box-shadow: var(--shadow-1);
}
.mn-card--hot { border-left-color: var(--gold); }
.mn-k {
  font-size: 19px; font-weight: 700; color: var(--ink);
  letter-spacing: .04em; line-height: 1.5; margin-bottom: 3px;
}
.mn-sub { font-size: 12px; color: var(--gold); letter-spacing: .05em; margin-bottom: 10px; }
.mn-exp { font-size: 13px; line-height: 1.9; color: var(--ink-2); margin-bottom: 10px; }
.mn-row {
  display: flex; gap: 8px; font-size: 12.5px; line-height: 1.8;
  color: var(--ink-3); padding-top: 8px; border-top: 1px dashed var(--line-2);
}
.mn-row b {
  flex: 0 0 auto; font-weight: 500; font-size: 11px; letter-spacing: .06em;
  color: var(--gold); padding-top: 2px; min-width: 40px;
}
.mn-row--eg { border-top: none; padding-top: 2px; }

/* ============================================================
   一图看懂
   ============================================================ */
.ch-block {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: 22px 24px 18px;
  box-shadow: var(--shadow-1); margin-bottom: 18px;
}
.ch-block__h {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2);
}
.ch-block__h h3 { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.ch-block__h p { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.ch-block__h .tag { margin-left: auto; flex: 0 0 auto; }
.ch-fig { width: 100%; overflow-x: auto; }
.ch-fig svg { width: 100%; height: auto; display: block; max-width: 720px; margin: 0 auto; }
.ch-note {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 13px; line-height: 1.9; color: var(--ink-3);
}

/* ============================================================
   化学故事
   ============================================================ */
.st-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.st-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: 20px 22px 16px;
  box-shadow: var(--shadow-1); text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.st-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.st-card__era {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  color: var(--gold); margin-bottom: 10px;
}
.st-card__t { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.55; margin-bottom: 10px; }
.st-card__h { font-size: 13px; color: var(--ink-3); line-height: 1.85; flex: 1; }
.st-card__f {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--line-2);
  font-size: 11.5px; color: var(--muted);
}

.st-head { margin-bottom: 18px; }
.st-head__k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--gold); margin-bottom: 8px; }
.st-head h1 { font-size: 27px; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
.st-head__s { font-size: 14.5px; color: var(--ink-3); margin-top: 8px; }

.st-hook {
  background: linear-gradient(135deg, #1B2432 0%, #232F42 100%);
  color: #F2F4F8; border-radius: var(--r-m);
  padding: 24px 28px; font-size: 16px; line-height: 1.95;
  box-shadow: 0 10px 24px rgba(20, 28, 42, .16); margin-bottom: 26px;
}
.st-body { max-width: 720px; }
.st-body p {
  font-size: 15px; line-height: 2.1; color: var(--ink-2);
  margin-bottom: 18px; text-align: justify;
}
.st-box {
  border-radius: var(--r-m); padding: 18px 22px; margin-top: 18px;
  border-left: 3px solid var(--line);
}
.st-box--chem { background: var(--blue-soft); border-left-color: var(--blue); }
.st-box--exam { background: var(--amber-soft); border-left-color: var(--gold); }
.st-box__h { font-size: 13px; font-weight: 600; letter-spacing: .06em; margin-bottom: 8px; }
.st-box--chem .st-box__h { color: #1E4E9E; }
.st-box--exam .st-box__h { color: var(--gold); }
.st-box p { font-size: 13.5px; line-height: 1.95; color: var(--ink-2); margin: 0; }
.st-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

@media (max-width: 1080px) {
  .hk-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hk-grid, .mn-grid, .st-grid { grid-template-columns: 1fr; }
  .hk-head h1, .st-head h1 { font-size: 22px; }
  .hk-core { padding: 18px 20px; font-size: 15px; }
  .ch-block { padding: 16px 14px 14px; }
  .st-hook { padding: 18px 20px; font-size: 14.5px; }
  .st-body p { font-size: 14.5px; line-height: 2; }
}

/* ---------- 插图与表格 ---------- */
.ss-fig { margin: 22px 0 8px; }
.ss-fig svg { display: block; width: 100%; height: auto; }
.ss-fig figcaption { margin-top: 9px; font-size: 12.5px; line-height: 1.8; color: var(--ink-3); }
.ss-tbl-wrap { margin: 18px 0; overflow-x: auto; }
.ss-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.ss-tbl th, .ss-tbl td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; vertical-align: top; line-height: 1.7; }
.ss-tbl th { background: #F5F7FA; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ss-tbl td { color: var(--ink-2); }
.ss-tbl__cap { margin-top: 7px; font-size: 12px; color: var(--muted); line-height: 1.7; }

.ss-fig--sm svg { max-width: 430px; margin: 0 auto; }
.ss-fig--md svg { max-width: 580px; margin: 0 auto; }
@media (max-width:520px){ .ss-fig--sm svg, .ss-fig--md svg { max-width: 100%; } }
