:root {
  --sidebar-w: 268px;
  --canvas: #f4f6fa;
  --surface: #ffffff;
  --ink: #1b2733;
  --ink-2: #33465a;
  --muted: #64748b;
  --line: #dde5ee;
  --line-2: #eef2f7;
  --accent: #2c5d8f;
  --accent-2: #3f7cad;
  --accent-soft: #eef4fa;
  --rail-bg-1: #16273a;
  --rail-bg-2: #223549;
  --rail-text: #b6c6d8;
  --rail-text-2: #8ea3ba;
  --ok: #0f766e;
  --warn: #a86412;
  --danger: #a33a3a;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(21, 40, 60, .05), 0 8px 24px rgba(21, 40, 60, .05);
  --topbar-h: 54px;
  --lesson-bar-h: 0px;
  --toc-h: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, input, select, summary, [role="button"] { touch-action: manipulation; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
/* 锁背景：触屏设备只用 JS 的 touchmove 守卫，不改 overflow（避免安卓/iOS 连带冻结抽屉内滚动）；
   鼠标/触控板设备才用 overflow 锁，用于面板打开时的滚轮锁定 */
@media (hover: hover) and (pointer: fine) {
  body.scroll-locked { overflow: hidden; }
}

/* ---------- 侧栏 ---------- */
.rail {
  /* 不用 inset 简写：部分安卓 WebView 不支持，会丢失 bottom 导致抽屉高度退化为内容高度 */
  position: fixed; top: 0; bottom: 0; left: 0; right: auto; width: var(--sidebar-w);
  background: linear-gradient(170deg, var(--rail-bg-1), var(--rail-bg-2));
  color: var(--rail-text); display: flex; flex-direction: column; z-index: 40;
}
.rail-brand { position: relative; padding: 20px 62px 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.rail-close {
  display: none; position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  width: 46px; height: 46px; min-height: 46px; padding: 0; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px; color: #dbe6f1; font-size: 18px; line-height: 1; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rail-close:hover { background: rgba(255,255,255,.16); color: #fff; }
.rail-close:active { background: rgba(255,255,255,.24); }
.rail-brand .mark { display: flex; align-items: center; gap: 10px; color: #cfe0ef; }
.logo {
  display: block; width: 26px; height: 26px; flex: 0 0 auto;
  overflow: visible; color: inherit;
}
.topbar-brand { display: none; color: var(--accent); text-decoration: none; }
.topbar-brand .logo { width: 24px; height: 24px; }
.rail-brand b { color: #eef3f8; font-size: 14px; letter-spacing: .4px; font-weight: 600; }
.rail-brand small { display: block; color: var(--rail-text-2); font-size: 11px; letter-spacing: .6px; margin-top: 4px; }
.rail-nav {
  overflow-y: auto; padding: 12px 10px 24px; flex: 1 1 auto; min-height: 0;
  touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.rail-nav::-webkit-scrollbar { width: 6px; }
.rail-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 3px; }
.rail-sec { margin-bottom: 6px; position: relative; }
.rail-sec > a {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: var(--radius);
  color: #dbe6f1; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .2px;
}
.rail-sec.has-sub > a { padding-right: 34px; }
.rail-sec > a:hover { background: rgba(255,255,255,.06); }
.rail-sec > a .idx { width: 18px; height: 18px; border-radius: 3px; background: rgba(255,255,255,.1); color: #cfe0ef; font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 500; flex: 0 0 auto; }
.rail-sec > a .sec-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-sec.on > a { background: rgba(90, 150, 210, .18); color: #fff; }
.rail-sub-toggle {
  position: absolute; right: 5px; top: 6px;
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 4px; padding: 0; cursor: pointer;
  color: var(--rail-text-2);
}
.rail-sub-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }
.chev {
  display: block; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg); transition: transform .16s ease; margin-left: -2px;
}
[aria-expanded="true"] > .chev { transform: rotate(45deg); margin-left: 0; margin-top: -2px; }
.rail-lessons { margin: 2px 0 8px 12px; border-left: 1px solid rgba(255,255,255,.1); padding-left: 6px; }
.rail-lessons.collapsed { display: none; }
.rail-tools { display: flex; gap: 6px; padding: 2px 4px 6px; }
.rail-tools button {
  font: inherit; font-size: 11px; line-height: 1.6; color: var(--rail-text-2);
  background: none; border: 1px solid rgba(255,255,255,.14); border-radius: 3px;
  padding: 0 7px; cursor: pointer;
}
.rail-tools button:hover { color: #fff; border-color: rgba(255,255,255,.32); }
.rail-lesson {
  display: flex; align-items: center; gap: 4px; padding: 5px 8px 5px 2px;
  font-size: 12px; color: var(--rail-text); border-radius: 4px;
}
.rail-lesson:hover { background: rgba(255,255,255,.05); }
.rail-lesson.open { color: #e8f0f8; }
.rail-lesson-toggle {
  flex: 0 0 auto; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 3px; padding: 0; cursor: pointer;
  color: var(--rail-text-2);
}
.rail-lesson-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }
.rail-lesson .rail-lesson-link { flex: 1; min-width: 0; }
.rail-lessons .cnt { color: var(--rail-text-2); font-size: 11px; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.rail-events { margin: 2px 0 6px; }
.rail-events[hidden] { display: none; }
.rail-events a {
  display: block; padding: 3px 8px 3px 14px; font-size: 12px; color: var(--rail-text-2);
  text-decoration: none; border-radius: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rail-events a:hover { color: #fff; background: rgba(255,255,255,.06); }
.rail-foot { padding: 12px 18px; font-size: 11px; color: var(--rail-text-2); border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- 主区 ---------- */
.main { margin-left: var(--sidebar-w); min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: 54px; display: flex; align-items: center; gap: 14px;
  padding: 0 26px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .crumbs { font-size: 12px; color: var(--muted); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .crumbs b { color: var(--ink-2); font-weight: 600; }
.search { position: relative; }
.search input {
  width: 210px; height: 32px; padding: 0 10px 0 28px; font-size: 12px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; background: #f7f9fc; outline: none;
}
.search input:focus { border-color: var(--accent-2); background: #fff; }
.search svg { position: absolute; left: 9px; top: 9px; width: 14px; height: 14px; stroke: var(--muted); fill: none; stroke-width: 1.7; }
.menu-btn {
  display: none; width: 32px; height: 32px; padding: 0; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  color: var(--ink-2); font-size: 16px; line-height: 1; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn.is-open { background: var(--accent-soft); border-color: #cfe0ef; color: var(--accent); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 26px 30px 80px; }

/* 封面 */
.hero {
  background: linear-gradient(135deg, #1b3249, #2b4a66 60%, #35607f);
  border-radius: 8px; color: #fff; padding: 34px 34px 30px; margin-bottom: 22px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -70px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%);
}
.hero .kicker { font-size: 11px; letter-spacing: 2.4px; color: #b9cfe2; text-transform: uppercase; }
.hero h1 { margin: 10px 0 8px; font-size: 25px; line-height: 1.35; font-weight: 600; letter-spacing: .5px; }
.hero p { margin: 0; color: #d3e1ec; font-size: 13px; max-width: 720px; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero .chip { font-size: 12px; padding: 4px 10px; border-radius: 3px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #e8f1f8; }

/* 板块 */
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.panel-card > h2 { margin: 0; padding: 14px 20px; font-size: 14px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; }
.panel-card > h2::before { content: ""; width: 3px; height: 14px; background: var(--accent); border-radius: 2px; }
.panel-card .body { padding: 16px 20px 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--line-2); border-radius: 4px; padding: 12px 14px; background: #fbfcfe; }
.stat b { display: block; font-size: 21px; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.stat span { font-size: 11.5px; color: var(--muted); }

/* 科目卡 */
.subj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.subj {
  display: flex; flex-direction: column; justify-content: flex-start;
  text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; position: relative; transition: .18s; overflow: hidden; min-height: 118px;
}
.subj::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); opacity: .75; }
.subj:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,45,66,.09); border-color: #c8d6e5; }
.subj .code { font-size: 11px; color: var(--muted); letter-spacing: .8px; }
.subj h3 { margin: 6px 0 6px; font-size: 16px; font-weight: 600; }
.subj .meta { font-size: 12px; color: var(--muted); }
.subj.empty::before { background: #98a8ba; }
.subj.empty { background: #fafbfd; }

/* 课次 */
.lesson { margin: 30px 0 10px; }
.lesson-head { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.lesson-head .row1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lesson-head h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: .3px; }
.lesson-head .tag { font-size: 11px; color: var(--accent); background: var(--accent-soft); border: 1px solid #d8e6f2; padding: 1px 7px; border-radius: 3px; }
.lesson-head .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

.lesson-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
details.teach { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
details.teach > summary { cursor: pointer; padding: 11px 16px; font-size: 13px; font-weight: 600; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 8px; }
details.teach > summary::-webkit-details-marker { display: none; }
details.teach > summary::before { content: "+"; width: 14px; text-align: center; color: var(--accent-2); font-size: 13px; font-weight: 600; }
details.teach[open] > summary::before { content: "−"; }
details.teach .inner { padding: 4px 18px 16px; border-top: 1px solid var(--line-2); }
details.teach h4 { margin: 14px 0 6px; font-size: 12.5px; color: var(--accent); font-weight: 600; letter-spacing: .3px; }
details.teach p { margin: 0 0 8px; }
details.teach ol, details.teach ul { margin: 0 0 8px; padding-left: 20px; }
details.teach li { margin: 2px 0; }
.note { background: #fbf7ee; border: 1px solid #eddfc6; border-left: 3px solid #c99a4d; color: #6b5327; font-size: 12.5px; padding: 9px 12px; border-radius: 3px; margin: 8px 0; }

/* 事件表 */
.ev-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ev-table thead th { background: #eef3f8; color: #40556b; font-size: 12px; font-weight: 600; text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); letter-spacing: .3px; }
.ev-table td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.ev-table tr:last-child td { border-bottom: none; }
.ev-table tr.event:hover td { background: #fafcfe; }
.ev-table .c-no { width: 54px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-table .c-ev { width: 190px; }
.ev-table .c-el { width: 210px; }
.ev-table .ev-name { font-weight: 600; color: var(--ink); font-size: 13.5px; }
.ev-table .phase { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.ev-table .scene { font-size: 12.5px; color: #3f5367; white-space: pre-line; }
.ev-table .scene .lg { font-size: 10.5px; color: #8a9bad; border: 1px solid #e3eaf2; border-radius: 2px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; }
.el-link {
  display: inline-block; margin: 1px 4px 3px 0; padding: 1px 7px; font-size: 11.5px; color: var(--accent);
  background: #f2f7fc; border: 1px solid #dbe8f4; border-radius: 3px; cursor: pointer; text-decoration: none; line-height: 1.7;
}
.el-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.el-link.role { color: #556a7f; background: #f7f9fb; border-color: #e6ecf3; }

/* 详情面板 */
.panel {
  position: fixed; top: 0; right: 0; width: min(560px, 94vw); height: 100%; background: #fff; z-index: 60;
  transform: translateX(102%); transition: transform .22s ease; box-shadow: -8px 0 32px rgba(20,38,58,.14);
  display: flex; flex-direction: column;
}
.panel.open { transform: translateX(0); }
.panel-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; background: #f8fafc; }
.panel-head .t { flex: 1; font-size: 14px; font-weight: 600; }
.panel-head .m { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.icon-btn { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 3px; cursor: pointer; color: var(--muted); font-size: 13px; line-height: 1; }
.icon-btn:hover { color: var(--ink); border-color: #c4d3e2; }
.panel-body {
  padding: 16px 18px 28px; overflow-y: auto; flex: 1 1 auto; min-height: 0;
  touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.panel-body h4 { margin: 16px 0 6px; font-size: 12px; color: var(--accent); letter-spacing: .6px; font-weight: 600; }
.panel-body h4:first-child { margin-top: 0; }
.panel-body .cond { background: #f6f9fc; border-left: 3px solid var(--accent-2); padding: 9px 12px; font-size: 12.5px; color: #3c5064; border-radius: 3px; }
.panel-body table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 12px; }
.panel-body th, .panel-body td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.panel-body th { background: #eef3f8; font-weight: 600; }
.panel-body ul, .panel-body ol { padding-left: 18px; margin: 4px 0 10px; }
.panel-body li { margin: 2px 0; }
.panel-body .kv { font-size: 12.5px; margin: 0 0 5px; }
.panel-body .kv b { color: #48596b; }
.panel-foot { padding: 11px 18px; border-top: 1px solid var(--line); background: #f8fafc; display: flex; gap: 8px; align-items: center; }
.panel-foot a { font-size: 12px; color: var(--accent); text-decoration: none; }
.panel-foot a:hover { text-decoration: underline; }
.panel-foot .sp { flex: 1; }
.overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(16,30,44,.28); opacity: 0; pointer-events: none; transition: .22s; z-index: 50; }
.overlay.on { opacity: 1; pointer-events: auto; }

/* 附录表 */
.app-table { width: 100%; border-collapse: collapse; font-size: 12px; background: #fff; border: 1px solid var(--line); }
.tbl-hint { display: none; }
.app-table th { background: #eef3f8; padding: 8px 10px; text-align: left; font-weight: 600; color: #40556b; border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.app-table td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.app-table tr:nth-child(even) td { background: #fcfdfe; }
.app-table .badge { white-space: nowrap; }
#b .app-table td:nth-child(2), #c .app-table td:nth-child(2) { white-space: nowrap; }
#b .app-table td:nth-child(5), #c .app-table td:nth-child(5) { white-space: nowrap; }
.badge { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 2px; border: 1px solid; }
.badge.w { color: var(--warn); border-color: #ecd9b8; background: #fdf8ef; }
.badge.m { color: var(--accent); border-color: #d5e4f2; background: #f3f8fd; }
.badge.p { color: var(--ok); border-color: #c9e3df; background: #f2faf8; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.toolbar select, .toolbar button { height: 30px; font-size: 12px; border: 1px solid var(--line); background: #fff; border-radius: 3px; padding: 0 8px; color: var(--ink-2); }
.empty-page { text-align: center; padding: 90px 20px; color: var(--muted); }
.empty-page .big { font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }

footer.foot { text-align: center; color: #93a3b4; font-size: 11.5px; padding: 26px 0 10px; letter-spacing: .4px; }

@media (max-width: 1100px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  /* 抽屉从顶栏下方展开，保证菜单按钮始终可点 */
  .rail { top: 54px; transform: translateX(-100%); transition: transform .22s; z-index: 55; }
  .rail.open { transform: translateX(0); }
  .rail-close { display: inline-flex; }
  .rail-nav { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .wrap { padding: 18px 16px 60px; }

  /* 抽屉打开：锁住页面滚动，遮罩让出顶栏 */
  body.drawer-open .overlay { top: 54px; }
  .subj-grid, .grid2 { grid-template-columns: 1fr; }
  .hero { padding: 24px 20px; }
  .hero h1 { font-size: 20px; }
  .search input { width: 130px; }
  .ev-table thead { display: none; }
  .ev-table, .ev-table tbody, .ev-table tr, .ev-table td { display: block; width: 100%; }
  .ev-table tr.event { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .ev-table td { border: none; padding: 3px 12px; }
  .ev-table .c-no, .ev-table .c-ev, .ev-table .c-el { width: auto; }
  .ev-table .c-no::before { content: "序号 "; color: var(--muted); font-size: 11px; }
  .ev-table .c-el::before { content: "要素"; display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .6px; }
}

/* iPad 横屏（触屏 901–1024）：与手机一致使用抽屉，横屏也能收起 */
@media (pointer: coarse) and (min-width: 901px) and (max-width: 1024px) {
  .rail { top: 54px; transform: translateX(-100%); transition: transform .22s; z-index: 55; }
  .rail.open { transform: translateX(0); }
  .rail-close { display: inline-flex; }
  .rail-nav { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .topbar-brand { display: block; flex: 0 0 auto; }
  body.drawer-open .overlay { top: 54px; }
}
@media print {
  .rail, .topbar, .panel, .overlay, .menu-btn { display: none !important; }
  .main { margin: 0; }
  body { background: #fff; }
  .panel-card, .ev-table, details.teach { break-inside: avoid; }
}

/* ---------- 快速跳转 ---------- */
.qnav {
  display: none; height: 30px; max-width: 200px; padding: 0 8px;
  font-size: 12px; color: var(--ink-2); border: 1px solid var(--line);
  border-radius: 15px; background: #f7f9fc; outline: none;
}
.qnav:focus { border-color: var(--accent-2); background: #fff; }

/* ---------- 侧栏课次链接 ---------- */
.rail-lessons > .rail-ov {
  display: block; padding: 5px 8px; margin: 2px 0 4px; font-size: 12px;
  color: #dbe6f1; text-decoration: none; border-radius: 4px;
}
.rail-lessons > .rail-ov:hover { background: rgba(255,255,255,.06); color: #fff; }
.rail-lesson-link {
  color: inherit; text-decoration: none; flex: 1; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.rail-lesson-link:hover { color: #fff; text-decoration: underline; }

/* ---------- 课程概述 ---------- */
.ov .body { padding-top: 14px; }
.ov-head b { display: block; font-size: 13.5px; color: var(--ink); }
.ov-note {
  font-size: 12px; color: #7a6640; background: #fdf9f0; border-left: 3px solid #d8b26a;
  padding: 6px 10px; border-radius: 3px; margin: 8px 0 10px;
}
.ov-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.ov-chips a {
  font-size: 11.5px; color: var(--accent); background: var(--accent-soft);
  border: 1px solid #dbe8f4; padding: 2px 8px; border-radius: 3px; text-decoration: none;
}
.ov-chips a:hover { background: #e4eef8; }
.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ov-sec { border: 1px solid var(--line-2); border-radius: 4px; padding: 12px 14px; background: #fcfdff; }
.ov-sec.wide { grid-column: 1 / -1; }
.ov-sec h3 {
  margin: 0 0 7px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 7px;
}
.ov-sec h3 .n {
  width: 18px; height: 18px; border-radius: 3px; background: var(--accent); color: #fff;
  font-size: 11px; display: inline-flex; align-items: center; justify-content: center; font-weight: 500;
}
.ov-sec p { margin: 0 0 6px; font-size: 12.5px; color: #3d4f62; }
.ov-table { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: 12px; }
.ov-table caption { text-align: left; color: var(--muted); font-size: 11.5px; padding-bottom: 4px; }
.ov-table th, .ov-table td { border: 1px solid var(--line-2); padding: 6px 9px; text-align: left; vertical-align: top; }
.ov-table th { background: #f2f6fa; color: #40566c; font-weight: 600; }

/* 要素缺口清单：窄屏改为纵向条件块，避免多列表格挤压 */
.gap-list { display: grid; gap: 12px; margin-top: 12px; }
.gap-item { border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; padding: 12px 14px; }
.gap-ev { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.gap-row { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 12.5px; line-height: 1.6; }
.gap-row:first-of-type { border-top: 0; }
.gap-k { color: var(--muted); }
.gap-v { color: var(--ink-2); }
@media (max-width: 640px) {
  .gap-row { grid-template-columns: 1fr; gap: 2px; }
  .gap-k { font-size: 11px; }
}
.ov-subs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.ov-sub h4 { margin: 0 0 4px; font-size: 12px; color: var(--accent); }
.ov-sub ul { margin: 0; padding-left: 16px; font-size: 12px; color: #3d4f62; }
.ov-src { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); }

.ov-sum-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ov-sum {
  display: block; text-decoration: none; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; transition: .18s;
}
.ov-sum:hover { border-color: #c8d6e5; box-shadow: 0 4px 16px rgba(26,45,66,.07); transform: translateY(-1px); }
.ov-sum-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ov-sum-top b { font-size: 13.5px; }
.ov-sum-top span { font-size: 11.5px; color: var(--accent); }
.ov-sum-intro { margin: 0 0 8px; font-size: 12.5px; color: #3d4f62; }
.ov-sum-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.ov-sum.empty { background: #fafbfd; }

/* ---------- 英语通讯样例 ---------- */
.en-group { margin-bottom: 18px; }
.en-table { margin-bottom: 0; }
.en-table td.scene { font-size: 12px; color: #3d4f62; }
.en-table td.c-el { width: 150px; }
.en-elchip {
  display: inline-block; font-size: 11px; color: var(--accent); background: var(--accent-soft);
  border: 1px solid #dbe8f4; border-radius: 2px; padding: 0 5px; margin: 1px 3px 1px 0;
}
.en-transcript {
  border: 1px solid var(--line); border-top: none; border-radius: 0 0 4px 4px;
  background: #fbfcfe; padding: 10px 14px 12px;
}
.en-transcript.empty { color: var(--muted); font-size: 12px; }
.en-freq {
  font-size: 11.5px; color: #5a6b7d; letter-spacing: .3px; margin: 8px 0 4px;
  padding-top: 6px; border-top: 1px dashed var(--line); font-variant-numeric: tabular-nums;
}
.en-freq:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.en-stage {
  font-size: 11.5px; color: #8a6d3b; background: #fdf8ee; display: inline-block;
  padding: 0 6px; border-radius: 2px; margin: 5px 0 3px;
}
.en-stage.strong { color: #40566c; background: #eef3f8; }
.en-line { font-size: 12.5px; margin: 2px 0; display: flex; gap: 8px; align-items: flex-start; }
.en-line .who { flex: 0 0 78px; color: #2c5d8f; font-weight: 600; font-size: 11.5px; padding-top: 2px; }
.en-line .say { flex: 1; color: #28394b; }

/* ---------- 对照清单 ---------- */
.badge.ok { color: var(--ok); border-color: #c9e3df; background: #f2faf8; }
.badge.no { color: var(--danger); border-color: #eccaca; background: #fdf5f5; }
.audit-table td { font-size: 12px; }
.audit-table td.why { color: #5b6b7c; }
#f .ov-chips .badge { font-size: 11.5px; padding: 2px 8px; }

/* ---------- 锚点定位 ---------- */
.lesson, tr.event, .panel-card, .ov-sec, .rail-ov { scroll-margin-top: 64px; }
tr.event.flash td { background: #eef6fd !important; transition: background .4s; }

@media (max-width: 900px) {
  .qnav { display: inline-block; max-width: 150px; }
  .ov-grid, .ov-sum-grid { grid-template-columns: 1fr; }
  .ov-subs { grid-template-columns: 1fr; }
  .en-table td.c-phase::before { content: "阶段 "; color: var(--muted); font-size: 11px; }
  .en-table td.c-no::before { content: "序号 "; color: var(--muted); font-size: 11px; }
  .en-line .who { flex: 0 0 66px; }
  .en-transcript { border: 1px solid var(--line); border-top: none; }
}
@media (max-width: 640px) {
  .search { display: none; }
  .qnav { max-width: 132px; }
}
.audit-table th:nth-child(1), .audit-table td:nth-child(1) { width: 34px; text-align: center; }
.audit-table th:nth-child(3), .audit-table td:nth-child(3) { width: 78px; }
.audit-table th:nth-child(5), .audit-table td:nth-child(5) { width: 92px; white-space: nowrap; }
.audit-table th:nth-child(4), .audit-table td:nth-child(4) { width: 128px; }

@media (max-width: 640px) {
  .audit-table thead { display: none; }
  .audit-table, .audit-table tbody, .audit-table tr, .audit-table td { display: block; width: auto !important; }
  .audit-table tr { padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
  .audit-table tr:last-child { border-bottom: none; }
  .audit-table td { border: none; padding: 1px 0; font-size: 12px; }
  .audit-table td:nth-child(1) { display: inline; color: var(--muted); margin-right: 6px; }
  .audit-table td:nth-child(2) { display: inline; font-weight: 600; color: var(--ink-2); }
  .audit-table td:nth-child(3)::before { content: "类型："; color: var(--muted); }
  .audit-table td:nth-child(4)::before { content: "适用："; color: var(--muted); }
  .audit-table td:nth-child(5)::before { content: "状态："; color: var(--muted); }
  .audit-table td:nth-child(6)::before { content: "说明："; color: var(--muted); }
  .audit-table td:nth-child(6) { margin-top: 2px; color: #5b6b7c; }
  .audit-table td:nth-child(5) { margin: 3px 0; }
}

/* ---------- 品牌标识 ---------- */
@media (max-width: 900px) {
  .topbar-brand { display: block; flex: 0 0 auto; }
  .topbar .crumbs { min-width: 0; }
}

/* ---------- 导出 Word ---------- */
.hero-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.btn-export {
  appearance: none; border: 1px solid rgba(255,255,255,.42);
  background: rgba(255,255,255,.13); color: #fff;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .3px;
  padding: 8px 18px; border-radius: 4px; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .12s ease;
}
.btn-export:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.7); }
.btn-export:active { transform: translateY(1px); }
.btn-export:disabled { cursor: default; opacity: .72; }
.btn-export:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.export-note { color: #b9cfe2; font-size: 12px; }
@media (max-width: 640px) {
  .hero-tools { margin-top: 14px; }
  .export-note { flex-basis: 100%; }
}

/* ---------- 窄屏课次选择条 ---------- */
.lesson-bar { display: none; }

@media (max-width: 900px), (pointer: coarse) and (max-width: 1024px) {
  .lesson-bar {
    display: block; position: sticky; top: var(--topbar-h, 54px); z-index: 26;
    margin: 0 0 14px;
  }
  .lb-toggle {
    display: flex; align-items: center; gap: 6px; width: 100%; min-height: 52px;
    padding: 0 14px; border: 1px solid var(--line); border-radius: 8px;
    background: #fff; box-shadow: var(--shadow); color: var(--ink);
    font: inherit; text-align: left; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .lb-toggle:active { background: #f7fafd; }
  .lb-toggle:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
  .lb-label { font-size: 11px; color: var(--muted); letter-spacing: .5px; flex: 0 0 auto; }
  .lb-idx { font-size: 15px; font-weight: 700; color: var(--accent); white-space: nowrap; flex: 0 0 auto; }
  .lb-total { font-size: 12px; color: var(--muted); white-space: nowrap; flex: 0 0 auto; }
  .lb-name {
    flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    padding-left: 2px;
  }
  .lb-caret {
    flex: 0 0 auto; width: 0; height: 0;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid var(--muted); transition: transform .18s;
  }
  .lesson-bar.open .lb-caret { transform: rotate(180deg); }

  .lb-panel {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 2;
    display: flex; flex-direction: column; max-width: 460px;
    max-height: calc(100vh - 142px); max-height: calc(100dvh - 142px);
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    box-shadow: 0 14px 36px rgba(21, 40, 60, .18); overflow: hidden;
  }
  .lb-panel[hidden] { display: none; }
  .lb-head {
    display: flex; justify-content: space-between; align-items: center; flex: 0 0 auto;
    padding: 10px 14px; font-size: 11.5px; color: var(--muted);
    border-bottom: 1px solid var(--line-2);
  }
  .lb-list {
    flex: 1 1 auto; min-height: 0; overflow-y: auto;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .lb-item {
    display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 9px 14px;
    border-bottom: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .lb-item:last-child { border-bottom: none; }
  .lb-item:active { background: var(--accent-soft); }
  .lb-item.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
  .lb-item .lb-no { flex: 0 0 auto; min-width: 58px; font-size: 13px; font-weight: 600; color: var(--ink); }
  .lb-item.on .lb-no { color: var(--accent); }
  .lb-item .lb-nm {
    flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .lb-item .lb-cnt { flex: 0 0 auto; font-size: 11.5px; color: var(--muted); }
  .lb-foot {
    display: flex; gap: 20px; flex: 0 0 auto; padding: 4px 14px;
    border-top: 1px solid var(--line-2); background: #fbfcfe;
  }
  .lb-foot a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--accent); text-decoration: none; }

  .lesson, .lesson-head, .panel-card, .ov-sec { scroll-margin-top: 118px; }
}

@media (max-width: 380px) {
  .lb-name { display: none; }
}

/* ---------- 移动端触控热区（≥44px） ---------- */
@media (max-width: 900px), (pointer: coarse) and (max-width: 1024px) {
  .menu-btn { width: 44px; height: 44px; font-size: 17px; }
  .qnav { height: 44px; }
  .search input { height: 44px; }
  .search svg { top: 50%; transform: translateY(-50%); }
  .toolbar select, .toolbar button { height: 44px; }
  .btn-export { min-height: 44px; padding: 10px 20px; }
  .icon-btn { width: 44px; height: 44px; font-size: 15px; }
  .rail-sec > a { min-height: 44px; }
  .rail-sec.has-sub > a { padding-right: 50px; }
  .rail-sub-toggle { width: 44px; height: 44px; top: 0; right: 2px; }
  .rail-lesson { min-height: 44px; }
  .rail-lesson-toggle { width: 44px; height: 44px; }
  .rail-lesson .rail-lesson-link { display: flex; align-items: center; min-height: 44px; }
  .rail-events a { padding-top: 13px; padding-bottom: 13px; }
  .rail-tools button { min-height: 44px; padding: 0 10px; }
  .topbar-brand { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  /* 附录宽表：避免短列被压成竖排，允许横向滚动并给出提示 */
  #b .app-table { min-width: 640px; }
  #c .app-table { min-width: 600px; }
  #b .app-table td:nth-child(3), #c .app-table td:nth-child(3) { white-space: nowrap; }
}
@media (max-width: 640px) {
  .tbl-hint { display: block; margin: 0 0 8px; font-size: 11.5px; color: var(--muted); }
}
@media print {
  .lesson-bar { display: none !important; }
}

/* ---------- 授权登录 · 顶栏身份条 ---------- */
.who {
  display: flex; align-items: center; gap: 6px; flex: 0 0 auto;
  padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--line);
}
.who-label { font-size: 11px; color: var(--muted); letter-spacing: .3px; }
.who-name {
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  white-space: nowrap; max-width: 7em; overflow: hidden; text-overflow: ellipsis;
}
.who-out {
  appearance: none; -webkit-appearance: none; font-family: inherit;
  font-size: 11.5px; line-height: 1.5; color: var(--accent);
  background: var(--accent-soft); border: 1px solid #dbe8f4; border-radius: 12px;
  padding: 2px 10px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.who-out:hover { background: #e4eefa; border-color: #c8dcef; }
.who-out:active { background: #d9e8f7; }
.who-out:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
@media (max-width: 640px) {
  /* 窄屏让位给身份条：快速跳转与左侧目录重复，隐藏避免横向溢出 */
  .qnav { display: none; }
  .who { padding-left: 8px; }
  .who-label { display: none; }
  .who-name { max-width: 5em; font-size: 12px; }
  .who-out { min-height: 32px; padding: 0 9px; }
}

/* ---------- 授权登录 · 登录页 ---------- */
.login-body {
  background:
    radial-gradient(900px 420px at 50% -8%, #e7eef7 0%, rgba(231, 238, 247, 0) 72%),
    var(--canvas);
}
.login-wrap {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 18px calc(32px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
.login-card {
  width: 100%; max-width: 400px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(21, 40, 60, .05), 0 14px 40px rgba(21, 40, 60, .07);
  padding: 28px 28px 22px;
}
.login-brand {
  display: flex; align-items: center; gap: 10px; color: var(--accent);
  padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line-2);
}
.login-brand .logo { width: 30px; height: 30px; }
.login-brand b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: .3px; }
.login-brand small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .8px; margin-top: 1px; }
.login-card h1 { margin: 0 0 6px; font-size: 20px; line-height: 1.4; font-weight: 700; color: var(--ink); letter-spacing: .5px; }
.login-lede { margin: 0 0 20px; font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.login-field { display: block; margin-bottom: 14px; }
.login-field > span { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.login-field input {
  display: block; width: 100%; height: 46px; padding: 0 12px;
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: #fbfcfe; border: 1px solid var(--line); border-radius: 6px;
  outline: none; -webkit-appearance: none; appearance: none;
}
.login-field input::placeholder { color: #9aa9b9; font-size: 13px; }
.login-field input:focus { border-color: var(--accent-2); background: #fff; box-shadow: 0 0 0 3px rgba(63, 124, 173, .12); }
.login-err {
  display: none; margin: 0 0 12px; padding: 8px 10px; border-radius: 4px;
  font-size: 12.5px; line-height: 1.6;
}
.login-err.show { display: block; }
.login-err.bad { color: var(--danger); background: #fdf5f5; border: 1px solid #eccaca; }
.login-err.warn { color: var(--warn); background: #fdf8ee; border: 1px solid #eddfc6; }
.login-btn {
  display: block; width: 100%; height: 46px; border: 0; border-radius: 6px;
  background: var(--accent); color: #fff; font-family: inherit;
  font-size: 14px; font-weight: 600; letter-spacing: 1px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.login-btn:hover { background: #27527e; }
.login-btn:active { background: #224a72; }
.login-btn:disabled { opacity: .7; cursor: default; }
.login-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.login-note { margin: 14px 0 0; font-size: 11px; line-height: 1.75; color: var(--muted); }
.login-note.dim { margin-top: 6px; color: #8b9aab; }
@media (max-width: 480px) {
  .login-wrap { align-items: flex-start; padding: 18px 14px calc(22px + env(safe-area-inset-bottom)); }
  .login-card { padding: 22px 18px 18px; border-radius: 8px; }
  .login-card h1 { font-size: 20px; }
  .login-lede { margin-bottom: 16px; }
}

/* ---------- 登录页 · 使用范围说明 ---------- */
.login-alt {
  margin: 16px 0 0; padding: 10px 12px; border-radius: 6px;
  background: var(--accent-soft); border: 1px solid #dbe8f4;
  font-size: 12.5px; line-height: 1.75; color: var(--ink-2);
}
.login-alt b { font-weight: 600; color: var(--accent); }
.login-alt p { margin: 2px 0 0; }
.login-alt a {
  color: var(--accent); font-weight: 600; text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 1px; word-break: break-word;
}
.login-alt a:hover { color: #224a72; }
.login-alt a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 2px; }
.login-alt .ext { font-size: 11px; margin-left: 2px; text-decoration: none; }

/* ---------- 课次内六节结构与目录条 ---------- */
.cov {
  margin: 8px 0 2px; font-size: 11.5px; line-height: 1.7; color: var(--muted);
}
.cov::before {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px;
  border-radius: 50%; background: var(--accent-2); vertical-align: 2px;
}
.lesson-toc {
  position: sticky; top: 54px; z-index: 6;
  display: flex; align-items: center; gap: 6px;
  margin: 10px 0 4px; padding: 8px 0 9px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.lesson-toc::-webkit-scrollbar { display: none; }
.lesson-toc a {
  flex: 0 0 auto; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: #fbfcfe;
  font-size: 12px; line-height: 1.6; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.lesson-toc a:hover { border-color: var(--accent-2); color: var(--accent); background: var(--accent-soft); }
.lesson-toc a.on { border-color: var(--accent-2); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.lesson-toc a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.teach-sec { margin: 18px 0 0; }
.sec-h {
  margin: 0 0 8px; padding-left: 9px; border-left: 3px solid var(--accent-2);
  font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--accent);
  letter-spacing: .3px; scroll-margin-top: 110px;
}
.sec-body > p { margin: 0 0 8px; line-height: 1.85; }
.sec-body > p:last-child { margin-bottom: 0; }
.sec-body h4 {
  margin: 14px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.sec-body h4:first-child { margin-top: 0; }
.sec-body ul, .sec-body ol { margin: 0 0 8px; padding-left: 20px; }
.sec-body li { margin: 3px 0; line-height: 1.8; }
.sec-body .pre-item { margin: 10px 0 2px; }
.sec-body .data-grp { margin: 0 0 12px; }
.sec-body .seg-sub { color: var(--accent); }
.sec-body:empty { display: none; }
@media (max-width: 900px), (pointer: coarse) and (max-width: 1024px) {
  .lesson-toc {
    position: sticky;
    top: calc(var(--topbar-h, 54px) + var(--lesson-bar-h, 0px));
    z-index: 20;
    margin: 10px 0 0; padding: 6px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line-2);
    overscroll-behavior-x: contain;
    scroll-snap-type: none;
  }
  .lesson-toc a {
    min-height: 44px; padding: 0 14px;
    display: inline-flex; align-items: center;
    font-size: 12.5px;
  }
  .sec-h {
    scroll-margin-top: calc(var(--topbar-h, 54px) + var(--lesson-bar-h, 0px) + var(--toc-h, 0px) + 10px);
  }
}

/* 附录 G · 参考样例与资料 */
.ref-lead { margin: 0 0 10px; color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.ref-src { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); font-size: 12.5px; line-height: 1.8; }
.ref-src li { margin: 2px 0; }
.ref-sec { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.ref-sec h3 {
  margin: 0 0 8px; font-size: 14.5px; font-weight: 600; line-height: 1.6;
  color: var(--accent); overflow-wrap: anywhere; word-break: break-word;
}
.ref-body { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.ref-line {
  margin: 0 0 6px; font-size: 13px; line-height: 1.85; color: #33475b;
  overflow-wrap: anywhere; word-break: break-word;
}
.ref-no {
  display: inline-block; min-width: 2.8em; margin-right: 6px; color: #9aa8b6;
  font-size: 11px; font-variant-numeric: tabular-nums; user-select: none;
}
@media (max-width: 900px) {
  .ref-lead { font-size: 12.5px; }
  .ref-line { font-size: 12.5px; line-height: 1.78; }
  .ref-sec h3 { font-size: 14px; }
  .ref-no { min-width: 2.4em; }
}

/* ---------- 意见反馈：课次末节 ---------- */
.feed-sec { margin: 22px 0 0; }
.feed-card {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: #fbfcfe; color: inherit; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.feed-card:hover { border-color: #c8d6e5; background: var(--accent-soft); }
.feed-card:active { background: #e8f1f9; }
.feed-qr {
  flex: 0 0 auto; display: block; width: 104px; height: 104px;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
}
.feed-txt { flex: 1 1 auto; min-width: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.feed-txt b { display: block; margin-bottom: 2px; font-size: 13.5px; color: var(--accent); }
.feed-txt span { display: block; }
.feed-go { flex: 0 0 auto; font-size: 12px; color: var(--accent); white-space: nowrap; }
@media (max-width: 640px) {
  .feed-card { padding: 10px; gap: 10px; }
  .feed-qr { width: 84px; height: 84px; }
  .feed-txt { font-size: 12px; }
  .feed-txt b { font-size: 12.5px; }
  .feed-go { display: none; }
}

/* ---------- 意见反馈页 ---------- */
.fb-head { max-width: 560px; margin: 0 auto 14px; }
.fb-head .kicker { font-size: 11px; letter-spacing: 2.4px; color: var(--accent-2); }
.fb-head h1 { margin: 6px 0; font-size: 21px; font-weight: 600; letter-spacing: .3px; }
.fb-head p { margin: 0; font-size: 13px; color: var(--muted); }
.fb-card {
  max-width: 560px; margin: 0 auto; padding: 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow); text-align: center;
}
.fb-qr-wrap {
  width: max-content; max-width: 100%; margin: 0 auto; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
}
.fb-qr { display: block; width: min(72vw, 260px); height: auto; }
.fb-tip { margin: 10px 0 0; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.fb-channels { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); text-align: left; }
.fb-channels h2 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fb-channels ul { list-style: none; margin: 0; padding: 0; }
.fb-channels li {
  display: flex; gap: 12px; padding: 9px 0;
  border-top: 1px dashed var(--line); font-size: 13px; line-height: 1.7;
}
.fb-channels li:first-child { border-top: 0; }
.fb-channels .k { flex: 0 0 56px; padding-top: 1px; font-size: 12px; color: var(--muted); }
.fb-channels .v { flex: 1 1 auto; min-width: 0; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.fb-channels a.v { color: var(--accent); }
.fb-channels a.v:hover { text-decoration: underline; }
.fb-channels small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.fb-note { margin: 12px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--muted); }
@media (max-width: 640px) {
  .fb-card { padding: 14px 14px 16px; }
  .fb-head h1 { font-size: 19px; }
  .fb-head p { font-size: 12.5px; }
  .fb-channels li { gap: 10px; }
  .fb-channels .k { flex-basis: 46px; }
}
