:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #1c2128;
  --ink2: #57606a;
  --ink3: #8b949e;
  --line: #e3e7ec;
  --line2: #eef1f4;
  --brand: #0f766e;
  --brand-soft: #e6f4f1;
  --brand-ink: #0b5c56;
  --ok: #15a34a;
  --ok-soft: #e8f7ee;
  --warn: #d97706;
  --warn-soft: #fdf3e3;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05);
}

* { box-sizing: border-box; }

/* 作者样式里的 display 会盖掉浏览器默认的 [hidden]{display:none}，这里强制恢复 */
[hidden] { display: none !important; }

/* 这里只能用 min-height，不能用 height。
   一旦写死 height: 100%，body 就会被钉死在一屏高，自测页解析一长，
   超出的内容变成滚不到的溢出，页面直接「锁死」。 */
html { margin: 0; min-height: 100%; }
body { margin: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  /* 与拾词同一套字体栈：雅黑 UI 排第一，正文小字更耐看 */
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  /* 手机上给底部导航让位 */
  padding-bottom: env(safe-area-inset-bottom);
}

button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-in { max-width: 1220px; margin: 0 auto; padding: 10px 20px 0; }

.brandrow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brandrow.subjects { margin-top: 10px; }

/* 品牌区：SVG 图形标 + 中文大字 + 英文小标，和拾词同一套结构 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--brand);
  text-decoration: none;
}
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; color: var(--brand); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { min-width: 0; }
.brand-text b {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.05;
  white-space: nowrap;
}
.brand-text small {
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 3.5px;
  color: var(--brand-ink);
  margin-top: 5px;
  white-space: nowrap;
}

/* 右侧操作区。margin-left:auto 很关键：窄屏换行时它仍会靠右，
   之前 chip 是 .brandrow 的直接子元素，flex 换行后落到第二行最左，正压着品牌区。 */
.brand-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
/* 三样都不许被压扁：压扁后按钮文字会溢出到旁边的 chip 上 */
.brand-actions > * { flex: none; }
/* 昵称可能很长，超出就截断加省略号，别把整行撑破 */
#authButton {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spacer { flex: 1; }

.chip {
  font-size: 11.5px;
  color: var(--brand-ink);
  background: var(--brand-soft);
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}

/* 同步状态不该抢眼：小圆点 + 浅色，比普通 chip 再退一档 */
.chip.sync {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink3);
  background: transparent;
  border: 1px solid var(--line);
  padding: 3px 10px 3px 8px;
}
.chip.sync::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}
.chip.sync[data-state="pending"] { color: var(--warn); border-color: #f0d9b4; }
.chip.sync[data-state="pending"]::before { background: var(--warn); }
.chip.sync[data-state="syncing"] { color: var(--brand-ink); border-color: #cfe8dd; }
.chip.sync[data-state="syncing"]::before { background: var(--brand); animation: syncPulse 1s ease-in-out infinite; }
.chip.sync[data-state="error"] { color: var(--bad); border-color: #f3c9c9; }
.chip.sync[data-state="error"]::before { background: var(--bad); }
@keyframes syncPulse { 50% { opacity: .25; transform: scale(.8); } }

.stat {
  font-size: 12.5px;
  color: var(--ink3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stat b { color: var(--brand); font-weight: 700; }

/* ---------- 顶栏页签 ---------- */
.tabs {
  display: flex;
  gap: 22px;
  margin-top: 10px;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.tab {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--ink3);
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 2px 11px;
  border-bottom: 2.5px solid transparent;
  transition: .16s;
}

.tab:hover { color: var(--ink2); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }

.badge {
  display: inline-block;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  text-align: center;
  background: var(--bad);
  color: #fff;
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 700;
  margin-left: 5px;
  padding: 0 4px;
  font-variant-numeric: tabular-nums;
}

/* ---------- 学科切换 ---------- */
.seg { display: flex; gap: 4px; background: var(--line2); padding: 3px; border-radius: 10px; }

.segbtn {
  border: 0;
  background: transparent;
  color: var(--ink2);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  transition: .16s;
  white-space: nowrap;
}

.segbtn:hover { color: var(--ink); }
.segbtn.on { background: var(--brand); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }

/* ---------- 布局 ---------- */
.page { display: none; }
.page.active { display: block; }

.wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}

.wrap.narrow { grid-template-columns: 1fr; }

.side {
  position: sticky;
  top: 112px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  max-height: calc(100vh - 140px);
  overflow: auto;
}

.side h4 {
  margin: 2px 0 8px;
  font-size: 11.5px;
  color: var(--ink3);
  font-weight: 700;
  letter-spacing: .6px;
}

.tree { list-style: none; margin: 0; padding: 0; }

.tree a {
  display: block;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--ink2);
  text-decoration: none;
  font-size: 13.2px;
  line-height: 1.45;
  transition: .13s;
  border-left: 2px solid transparent;
}

.tree a:hover { background: var(--line2); color: var(--ink); }
.tree a.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; border-left-color: var(--brand); }
.tree .nav-file { margin: 12px 0 3px; }
.tree .nav-file:first-child { margin-top: 0; }
.tree .nav-file .nm {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 4px 5px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.tree .nav-file .nm i { font-style: normal; font-weight: 500; font-size: 11px; color: var(--ink3); }
.tree .nav-unit a { padding-left: 14px; font-size: 12.8px; }
/* 第三级：课。缩进再深一级，字号再小一点，视觉上从属于所属单元 */
.tree .nav-lesson a { padding-left: 26px; font-size: 12.3px; color: var(--ink2); }
.tree .nav-lesson a.on { color: var(--brand-ink); }
/* 条数跟课名之间要留缝，不然「中华文明的起源0」挤成一团 */
.tree .nav-unit .cnt,
.tree .nav-lesson .cnt { margin-left: 6px; font-size: 11px; color: var(--ink3); font-weight: 500; }

.content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  min-width: 0;
}

.crumb { font-size: 12.5px; color: var(--ink3); margin-bottom: 10px; font-weight: 600; }

.listhead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--ink3);
  flex-wrap: wrap;
}

.inline { display: inline-flex; align-items: center; gap: 6px; }

.search {
  width: 100%;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  margin-bottom: 10px;
}

.search:focus { border-color: var(--brand); background: #fff; }

select, input[type="number"], input[type="text"] {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  outline: none;
}

select:focus, input:focus { border-color: var(--brand); }

/* ---------- 按钮 ---------- */
.btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink2);
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  transition: .15s;
  white-space: nowrap;
}

.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); color: #fff; }
.btn.ok { background: var(--ok-soft); border-color: #bbf0cd; color: #15803d; }
.btn.ok:hover { border-color: var(--ok); color: var(--ok); }
.btn.warn { background: var(--warn-soft); border-color: #fbe0b0; color: #b45309; }
.btn.warn:hover { border-color: var(--warn); color: var(--warn); }
.btn.ghost { padding: 6px 12px; font-size: 13px; }
.btn.sm { padding: 5px 11px; font-size: 12.5px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.keyhint { font-size: 11.5px; color: var(--ink3); text-align: center; margin-top: 12px; }

/* 手机上底部导航是固定层，滚动定位时留出它的高度，别把按钮压在下面 */
.ctl { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 18px; flex-wrap: wrap; scroll-margin-bottom: 78px; }

/* ---------- 知识点卡片 ---------- */
/* 册标题：人教版一科拆成好几册，单元编号每册从头数，得先把册立出来 */
.volhead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0 2px;
  padding: 9px 12px;
  background: linear-gradient(180deg, var(--brand-soft), transparent);
  border: 1px solid var(--line2);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-ink);
  letter-spacing: .5px;
}

.volhead:first-child { margin-top: 0; }
.volhead span { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--ink3); letter-spacing: 0; }

.unit { border-bottom: 1px solid var(--line2); padding-bottom: 6px; margin-bottom: 6px; }
.unit:last-child { border-bottom: 0; }

.uhead { padding: 12px 2px 6px; }
.uhead h3 { margin: 0; font-size: 16px; letter-spacing: .2px; }
.uhead .meta { font-size: 12px; color: var(--ink3); margin-top: 4px; }

.lesson { padding-left: 2px; }

.lhead {
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0 4px;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
}

/* 目录里有、内容还没录的课：留着占位，标灰比留空白更说明问题 */
.lhead .todo {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink3);
  vertical-align: 2px;
}

.pt { padding: 11px 0; border-bottom: 1px dashed var(--line2); }
.pt:last-child { border-bottom: 0; }

.pt .term {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 5px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.pt .body { font-size: 14.2px; line-height: 1.9; color: #2f3640; letter-spacing: .2px; }

.tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  letter-spacing: .3px;
  flex: none;
}

.tag.高频 { background: #fee2e2; color: #b91c1c; }
.tag.易错 { background: #ffedd5; color: #c2410c; }
.tag.识记 { background: #e0e7ff; color: #4338ca; }

.hl { color: var(--brand); font-weight: 700; background: var(--brand-soft); padding: 0 2px; border-radius: 3px; }
mark { background: #ffe58a; padding: 0 2px; border-radius: 2px; }

/* 掌握状态圆点 */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; display: inline-block; }
.dot.learning { background: var(--warn); }
.dot.mastered { background: var(--ok); }

/* 词条右侧的掌握度小条 */
.mini { width: 60px; height: 5px; border-radius: 3px; background: var(--line2); overflow: hidden; display: inline-block; vertical-align: middle; flex: none; }
.mini i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }

/* ---------- 练习范围选择 ---------- */
/* 单独占一行，不挤进 deck-top：手机上那行本来就排得满 */
.rangebar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.rangecap {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink3);
  letter-spacing: .5px;
}

.rangesel {
  flex: 1;
  min-width: 0;
  /* 下拉里的选项全是「第一单元 史前时期：…」这种长名字，得给足宽度 */
  font-size: 13.5px;
  padding: 8px 9px;
  text-overflow: ellipsis;
}

.rangecount {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rangecount.warn { color: var(--bad); }

/* ---------- 翻卡 ---------- */
.deck { max-width: 720px; margin: 0 auto; }

.deck-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--ink3);
  flex-wrap: wrap;
}

.deck-top .grow { flex: 1; }

.card { perspective: 1600px; height: 360px; cursor: pointer; }
.card-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.4, .2, .2, 1); }
.card.flip .card-in { transform: rotateY(180deg); }

.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.face.back { transform: rotateY(180deg); }
.face .crumb { font-size: 11.5px; color: var(--ink3); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line2); flex: none; }
.face .q { font-size: 22px; font-weight: 700; line-height: 1.6; margin: auto 0; letter-spacing: .3px; }
.face .hint { margin-top: auto; font-size: 12px; color: var(--ink3); text-align: center; padding-top: 14px; flex: none; }
.face .a { font-size: 15.4px; line-height: 2; color: #23292f; letter-spacing: .25px; }

/* 必背重点词：就地标在正文里，比在下面单列一排更清楚 */
.key {
  background: #ffe08a;
  color: #7a4b00;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 700;
  /* 关键词不允许从中间断到两行，否则看着像两个高亮 */
  white-space: nowrap;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- 挖空 ---------- */
.cloze-wrap { max-width: 860px; margin: 0 auto; }

.cz {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

/* 挖空题顶部只放定位（单元 › 课），不是知识点标题——
   标题就是答案提示，摆出来题就废了。样式也跟着从标题降级成面包屑。 */
.cz .cq { font-size: 12.5px; font-weight: 600; margin-bottom: 10px; color: var(--ink3); }
/* 判定之后才显示知识点标题，这时答案已摊开，顺带让学生知道清单里叫什么 */
.cz .cq.answered { color: var(--brand-ink); font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.cz .cc { font-size: 15px; line-height: 2.2; color: #2f3640; letter-spacing: .2px; }

/* 教材课后活动的表格。content 里存的是 markdown 源码，app.js 还原成真表格。
   窄屏放不下 6 列，所以横向可滚，不硬压宽度——压了字会挤成一团。 */
.mdtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 4px 0 10px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mdtable th,
.mdtable td {
  border: 1px solid var(--line, #e3e7ec);
  padding: 7px 10px;
  text-align: left;
  white-space: nowrap;
}
.mdtable th {
  background: #f4f7f6;
  font-weight: 700;
  color: var(--ink2, #3a4450);
}
/* 书上就是空的格子（那道题本来就是让学生填的），画成待填的样子，不塞内容进去 */
.mdtable td.fill {
  min-width: 64px;
  background: repeating-linear-gradient(135deg, #fbfcfc 0 5px, #f3f6f6 5px 10px);
}
.mdtable .key,
.mdtable .blank { white-space: nowrap; }

.blank {
  display: inline-block;
  min-width: 72px;
  padding: 0 8px;
  margin: 0 2px;
  border-bottom: 2px solid var(--brand);
  color: transparent;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  transition: .16s;
  border-radius: 3px 3px 0 0;
  user-select: none;
}

.blank:hover { background: var(--brand-soft); }
/* 答出来的词要和正文里的重点词是同一种样子，不再保留填空下划线 */
.blank.shown {
  color: #7a4b00;
  background: #ffe08a;
  font-weight: 700;
  border-radius: 3px;
  padding: 0 2px;
  border-bottom-color: transparent;
  min-width: 0;
}

/* ---------- 自测 ---------- */
.quiz { max-width: 760px; margin: 0 auto; }

.qcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.qcard .crumb { font-size: 11.5px; color: var(--ink3); margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line2); }
.qtext { font-size: 15.5px; line-height: 2.15; color: #2f3640; letter-spacing: .2px; }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.opt {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 11px;
  padding: 13px 15px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  transition: .15s;
  line-height: 1.5;
}

.opt:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.opt.right { background: var(--ok-soft); border-color: var(--ok); color: #15803d; }
.opt.wrong { background: var(--bad-soft); border-color: var(--bad); color: #b91c1c; }
.opt:disabled { cursor: default; }

.explain {
  margin-top: 14px;
  background: #fafbfc;
  border: 1px solid var(--line2);
  border-radius: 11px;
  padding: 12px 15px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink2);
}

.timer { font-variant-numeric: tabular-nums; color: var(--ink3); font-weight: 600; }

/* ---------- 自测结果 ---------- */
.qz-sum {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 12px;
}

/* conic-gradient 画正确率环：不用 SVG，也不用额外请求 */
.qz-ring {
  --pct: 0;
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--brand) calc(var(--pct) * 1%), var(--line2) 0);
}

.qz-ring > div {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--panel);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
}

.qz-ring b {
  font-size: 30px;
  line-height: 1;
  color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}

.qz-ring b small { font-size: 15px; font-weight: 700; margin-left: 1px; }
.qz-ring span { font-size: 11.5px; color: var(--ink3); }
.qz-ring.mid { background: conic-gradient(var(--warn) calc(var(--pct) * 1%), var(--line2) 0); }
.qz-ring.mid b { color: #b45309; }
.qz-ring.low { background: conic-gradient(var(--bad) calc(var(--pct) * 1%), var(--line2) 0); }
.qz-ring.low b { color: #b91c1c; }

.qz-sumtext { min-width: 0; }
.qz-sumtext h2 { margin: 0 0 6px; font-size: 21px; }
.qz-sumtext p { margin: 0; font-size: 13.5px; color: var(--ink2); line-height: 1.85; }

.qz-kpis { margin-bottom: 12px; }
.qz-kpis .kpi b small { font-size: 14px; color: var(--ink3); font-weight: 600; margin-left: 2px; }

.qz-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.qz-actions .btn { flex: 1 1 auto; min-width: 128px; }

.qz-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 6px;
  margin-bottom: 12px;
}

.qz-panelhead {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.qz-panelhead h4 { margin: 0; font-size: 14.5px; flex: 1 1 auto; }

.qz-filter { display: flex; gap: 6px; }
.qz-filter button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink2);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
}
.qz-filter button.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.qz-rows { display: flex; flex-direction: column; }

.qz-row { border-top: 1px solid var(--line2); }
.qz-row[hidden] { display: none !important; }

.qz-row > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  cursor: pointer;
  list-style: none;
}
.qz-row > summary::-webkit-details-marker { display: none; }
.qz-row > summary:hover { background: #fafbfc; }

.qz-no {
  font-size: 12px;
  color: var(--ink3);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  flex: none;
  width: 20px;
}

/* 中间一列自己占满剩下的宽度，面包屑才能贴着知识点名换行，
   而不是把「用时 / 对错」挤到下一行右端去 */
.qz-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qz-line1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }

.qz-ans { font-size: 14.5px; font-weight: 700; flex: none; }
.qz-row.ok .qz-ans { color: #15803d; }
.qz-row.bad .qz-ans { color: #b91c1c; }

.qz-term { font-size: 13px; color: var(--ink2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz-meta { font-size: 11.5px; color: var(--ink3); font-style: normal; }

.qz-right { flex: none; display: flex; align-items: center; gap: 8px; }
.qz-time { font-style: normal; font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }

.qz-tag {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 5px;
  padding: 1px 7px;
}
.qz-row.ok .qz-tag { background: var(--ok-soft); color: #15803d; }
.qz-row.bad .qz-tag { background: var(--bad-soft); color: #b91c1c; }

.qz-rowbody { padding: 0 2px 14px 29px; }
.qz-pick { margin: 0 0 8px; font-size: 13px; color: var(--ink2); }
.qz-pick b { color: var(--ink); }
.qz-src {
  background: #fafbfc;
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 2.05;
  color: var(--ink2);
}

.qz-note { margin: 0 0 24px; font-size: 12.5px; color: var(--ink3); line-height: 1.8; }

/* ---------- 复习 / 错题 ---------- */
.rv {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line2);
}

.rv:last-child { border-bottom: 0; }
.rv .main { flex: 1; min-width: 0; }
.rv .rt { font-size: 14.2px; font-weight: 700; margin-bottom: 3px; }
.rv .rc { font-size: 12.5px; color: var(--ink3); }
.rv .rk { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.rv .rk em { font-style: normal; font-size: 11.5px; background: var(--bad-soft); color: #b91c1c; padding: 1px 7px; border-radius: 5px; font-weight: 700; }
.rv .actions { display: flex; gap: 6px; flex: none; }

/* ---------- 报告 ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 6px; }

.kpi {
  background: linear-gradient(180deg, var(--brand-soft), transparent);
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 12px 14px;
}

.kpi b { display: block; font-size: 22px; color: var(--brand-ink); font-variant-numeric: tabular-nums; line-height: 1.25; }
.kpi span { font-size: 12px; color: var(--ink3); }

.sec { margin: 20px 0 10px; font-size: 13.5px; color: var(--ink); font-weight: 700; }

.ubar { margin-bottom: 9px; }
.ubar .utop { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink2); margin-bottom: 4px; gap: 10px; }
.ubar .utop i { font-style: normal; color: var(--ink3); font-size: 11.5px; white-space: nowrap; }
.ubar .ubar-track { height: 7px; background: var(--line2); border-radius: 4px; overflow: hidden; }
.ubar .ubar-fill { height: 100%; background: var(--ok); border-radius: 4px; transition: width .4s; }
.ubar .ubar-fill.learning { background: var(--warn); }

.spark { display: flex; align-items: flex-end; gap: 4px; height: 96px; padding: 0 2px; }

.spark .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.spark .bar i { width: 100%; background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.spark .bar i.zero { background: var(--line2); }
.spark .bar em { font-style: normal; font-size: 9.5px; color: var(--ink3); white-space: nowrap; }

.weak { display: flex; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line2); font-size: 13.5px; }
.weak:last-child { border-bottom: 0; }
.weak .wn { margin-left: auto; font-size: 12px; color: var(--bad); font-weight: 700; white-space: nowrap; }

.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.setting { display: flex; flex-direction: column; gap: 5px; }
.setting label { font-size: 12.5px; color: var(--ink3); font-weight: 600; }
.setting.buttons { flex-direction: row; align-items: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---------- 空态 / 提示 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--ink3); }
.empty h3 { color: var(--ink2); margin: 0 0 8px; font-size: 16px; }

/* ---------- 登录弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(16, 24, 40, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.sheet {
  position: relative;
  background: var(--panel);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, .25);
}

.sheet h3 { margin: 0 0 4px; font-size: 18px; }
.sheet .tip { margin: 0 0 14px; font-size: 12.5px; color: var(--ink3); }
.auth-modes { margin: 0 0 14px; background: var(--line2); }
.auth-modes .segbtn { flex: 1; text-align: center; }

.close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--ink3);
}

.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 12.5px; color: var(--ink3); font-weight: 600; margin-bottom: 4px; }
.field input { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 16px; outline: none; background: var(--bg); }
.field input:focus { border-color: var(--brand); background: #fff; }
.err { color: var(--bad); font-size: 12.5px; min-height: 17px; margin: 0 0 8px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 95;
  background: rgba(28, 33, 40, .93);
  color: #fff;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  max-width: 90vw;
  text-align: center;
  /* 提示条只是提示，不能挡住底下的按钮，否则答完题点「下一题」会没反应 */
  pointer-events: none;
}

.toast.error { background: rgba(185, 28, 28, .95); }

/* ---------- 手机底部导航 ---------- */
.bottom-nav { display: none; }

@media (max-width: 860px) {
  /* 底栏高度只在这里定一次，按钮高度和 body 让位都用它，不会对不上 */
  :root { --navh: 58px; }

  .wrap { grid-template-columns: 1fr; padding: 12px; }
  .side { position: static; max-height: 220px; }
  .top-in { padding: 8px 12px 0; }
  .tabs { display: none; }
  .card { height: 400px; }
  .face { padding: 20px; }
  .face .q { font-size: 19px; }
  .opts { grid-template-columns: 1fr; }
  .content { padding: 14px; }
  .toast { bottom: 96px; }

  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -1px 12px rgba(16, 24, 40, .05);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: var(--navh);
    border: 0;
    background: transparent;
    color: var(--ink2);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 6px 2px;
    position: relative;
    /* 去掉安卓/iOS 的点击高亮方块和 300ms 双击延迟 */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    transition: color .15s, background .15s;
  }

  /* 当前页：加粗变主色，再在顶端压一条短横杠，光看颜色不够显眼 */
  .bottom-nav button.active { color: var(--brand); font-weight: 800; }

  .bottom-nav button.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--brand);
  }

  .bottom-nav button:active { background: var(--brand-soft); }

  .bottom-nav button .badge { position: absolute; top: 6px; right: 50%; margin-right: -30px; }

  /* 让位要比底栏略高一点：留 0 余量时，最后一行会正好压在底栏顶边上，看着像被截断 */
  body { padding-bottom: calc(var(--navh) + env(safe-area-inset-bottom) + 18px); }
}

/* ============================================================
   首页：big modules 落地页
   配色沿用拾社的青绿主色，底子换成拾词那种暖纸色 + 大色块，
   大圆角、超大展示卡，和五个功能页的冷灰调拉开层次。
   ============================================================ */
#page-home {
  --paper: #faf6ef;
  --ink-h: #16201d;
  background: var(--paper);
  color: var(--ink-h);
  padding-bottom: 8px;
  /* 两团装饰色块故意画到容器外面，不裁掉的话整页会被撑出横向滚动条 */
  overflow-x: clip;
}

.home {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
  padding: 30px 20px 20px;
  isolation: isolate;
}

/* 两团柔色背景，纯装饰 */
.home::before,
.home::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(6px);
  pointer-events: none;
}
.home::before {
  width: 460px; height: 460px;
  top: -140px; right: -120px;
  background: radial-gradient(circle at 35% 35%, #d7ece0, #eaf5ee 70%, transparent 72%);
}
.home::after {
  width: 420px; height: 420px;
  bottom: -160px; left: -130px;
  background: radial-gradient(circle at 60% 40%, #fbe8c6, #fdf4e2 70%, transparent 72%);
}

/* ---------- Hero ---------- */
.hero { max-width: 720px; padding: 6px 0 26px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-ink);
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(15, 118, 110, .16);
  padding: 5px 13px;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.eyebrow i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #e8834a;
  box-shadow: 0 0 0 3px rgba(232, 131, 74, .18);
  flex: none;
}

.hero-title {
  margin: 16px 0 12px;
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.18;
  font-weight: 800;
  /* 拾词的大标题是收紧字距的，这里用 em 跟着字号走，比例对齐（拾词 -3px/68px ≈ -0.044em） */
  letter-spacing: -.045em;
  color: var(--ink-h);
}
.hero-title em {
  font-style: normal;
  color: var(--brand);
  position: relative;
}
/* 给「拾」加一道手写感的高亮底 */
.hero-title em::after {
  content: "";
  position: absolute;
  left: -.04em; right: -.04em; bottom: .06em;
  height: .3em;
  background: #cfe8dd;
  border-radius: 3px;
  z-index: -1;
}

.hero-sub {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.85;
  color: #5a6663;
}

.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.btn.lg { padding: 12px 26px; font-size: 15px; border-radius: 24px; }
.btn.plain {
  background: transparent;
  border-color: transparent;
  color: var(--brand);
  padding: 12px 4px;
  font-weight: 700;
}
.btn.plain:hover { background: transparent; color: var(--brand-ink); text-decoration: underline; }

/* ---------- 今日必背：超大展示卡 ---------- */
.showcase {
  position: relative;
  background: linear-gradient(168deg, #ffffff 0%, #f4faf7 58%, #eaf5f0 100%);
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 28px;
  padding: 22px 26px 24px;
  box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 18px 44px rgba(15, 118, 110, .09);
  overflow: hidden;
}

.sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sc-label { font-size: 16px; font-weight: 800; letter-spacing: .5px; }
.sc-date {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-ink);
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(15, 118, 110, .14);
  padding: 4px 12px;
  border-radius: 18px;
  white-space: nowrap;
}

/* 装饰：一圈圈虚线轨道 + 中间的「史」字块 + 飘着的关键词 */
.sc-art {
  position: relative;
  height: 168px;
  margin: 10px 0 4px;
  display: grid;
  place-items: center;
}
.ring {
  position: absolute;
  border: 1.5px dashed rgba(15, 118, 110, .2);
  border-radius: 50%;
}
.ring.r1 { width: 132px; height: 132px; }
.ring.r2 { width: 196px; height: 132px; transform: rotate(-14deg); }
.ring.r3 { width: 258px; height: 150px; transform: rotate(9deg); }

.book {
  position: relative;
  z-index: 2;
  width: 104px; height: 78px;
  display: grid; place-items: center;
  border-radius: 8px 14px 14px 8px;
  background: linear-gradient(150deg, #12796f, #0c5c55);
  color: #f3d98b;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 2px;
  box-shadow: 0 10px 22px rgba(12, 92, 85, .32), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.book::before {
  content: "";
  position: absolute;
  left: 9px; top: 0; bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, .18);
  border-radius: 2px;
}
.book b { font-weight: 800; transform: translateY(-1px); }

/* 飘浮词只在展示卡里飘。这条规则必须带 .sc-art 限定：
   顶栏的同步状态也用 .chip 这一个类名，写成全局就会把它变成绝对定位，
   脱离正常文档流浮在页面上，压住 LOGO 和登录按钮。 */
.sc-art .chip {
  position: absolute;
  z-index: 3;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-ink);
  background: #fff;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 9px;
  padding: 5px 10px;
  box-shadow: 0 4px 12px rgba(16, 24, 40, .07);
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-art .chip:empty { display: none; }
.sc-art .chip.c1 { top: 16px; left: 6%; transform: rotate(-7deg); }
.sc-art .chip.c2 { top: 26px; right: 7%; transform: rotate(6deg); }
.sc-art .chip.c3 { bottom: 12px; left: 24%; transform: rotate(4deg); }

.sc-body { border-top: 1px solid rgba(15, 118, 110, .1); padding-top: 16px; }
.sc-crumb { font-size: 12.5px; font-weight: 700; color: #6b7a76; margin-bottom: 8px; }
.sc-term {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.2px;
  color: var(--ink-h);
}
.sc-content {
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
  color: #3f4a47;
  max-width: 74ch;
}
.sc-content mark,
.sc-content .key {
  background: linear-gradient(transparent 58%, #ffe08a 58%);
  color: inherit;
  font-weight: 700;
  padding: 0 1px;
  border-radius: 2px;
}

.sc-foot { display: flex; gap: 10px; margin-top: 18px; }

/* ---------- 五大模块面板 ---------- */
.mods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mod {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 20px 18px;
  min-height: 168px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}
.mod::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--tint, rgba(15, 118, 110, .07));
  transition: transform .25s ease;
}
.mod:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 16px 34px rgba(16, 24, 40, .09);
  border-color: var(--ac, var(--brand));
}
.mod:hover::after { transform: scale(1.5); }

.mod-ic {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--tint, var(--brand-soft));
  color: var(--ac, var(--brand));
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.mod-ic svg { width: 24px; height: 24px; }

.mod-t {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink-h);
  position: relative;
  z-index: 1;
}
.mod-d {
  font-size: 12.8px;
  line-height: 1.6;
  color: #6a7573;
  position: relative;
  z-index: 1;
}
.mod-m {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ac, var(--brand));
  display: flex;
  align-items: baseline;
  gap: 5px;
  position: relative;
  z-index: 1;
}
.mod-m b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mod-badge {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  background: var(--ac, var(--brand));
  border-radius: 20px;
  padding: 3px 9px;
}

/* ---------- 底部两块数据面板 ---------- */
.cols {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.panel-t {
  margin: 0 0 14px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink-h);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cnt {
  font-size: 11.5px;
  font-weight: 700;
  color: #5f6b68;
  background: #f0f3f2;
  border-radius: 20px;
  padding: 2px 9px;
}
.panel-b { font-size: 13.5px; }

/* 册次行 */
.vol-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.vol-row:last-child { margin-bottom: 0; }
.vol-n { flex: 1; min-width: 0; font-weight: 600; color: #3d4744; }
.vol-n small { display: block; font-weight: 500; color: #8a9491; font-size: 11.5px; }
.bar {
  width: 96px; height: 7px;
  background: #eef1f0;
  border-radius: 4px;
  overflow: hidden;
  flex: none;
}
.bar > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #17a08f, #0f766e);
  border-radius: 4px;
  transition: width .4s ease;
}
.vol-p {
  width: 42px; text-align: right;
  font-size: 12px; font-weight: 700;
  color: #6a7573;
  font-variant-numeric: tabular-nums;
  flex: none;
}

/* 进度块 */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.pcell {
  background: #f6f9f8;
  border-radius: 14px;
  padding: 12px 12px 11px;
  text-align: center;
}
.pcell b {
  display: block;
  font-size: 25px; font-weight: 800;
  color: var(--brand);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.pcell span { font-size: 11.5px; color: #7b8583; }

.streak {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 700;
  color: #3d4744;
  padding-top: 14px;
  border-top: 1px solid #f0f2f1;
}
.streak em {
  font-style: normal;
  width: 30px; height: 30px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 15px;
  flex: none;
}
.streak small { display: block; font-weight: 500; color: #8a9491; font-size: 11.5px; }

.empty { color: #8a9491; font-size: 13px; padding: 6px 0 2px; }

/* ---------- 首页在宽屏上的展开 ---------- */
/* auto-fit minmax(248px) 在 1180px 容器里只排得下 4 列，5 张卡会掉成 4+1，
   「清单」孤零零占一行。这里显式摊成 5 列，保证一行放得下。 */
@media (min-width: 1040px) {
  .mods { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- 首页在窄屏上的收拢 ---------- */
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .home { padding: 18px 14px 10px; }
  .showcase { border-radius: 22px; padding: 18px 18px 20px; }
  .sc-art { height: 150px; }
  .ring.r3 { width: 220px; }
  .book { width: 92px; height: 70px; font-size: 30px; }
  .mods { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mod { min-height: 150px; padding: 16px 16px 14px; border-radius: 18px; }
  .mod-t { font-size: 15.5px; }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .vol-n small { display: none; }
  .bar { width: 64px; }
}

@media (max-width: 520px) {
  .hero-title { font-size: 29px; }
  .hero-cta { gap: 12px; }
  .btn.lg { padding: 11px 20px; font-size: 14.5px; }
  .sc-art .chip { max-width: 92px; font-size: 11px; }
  .sc-art .chip.c1 { left: 2%; }
  .sc-art .chip.c2 { right: 2%; }
  .mods { grid-template-columns: 1fr; }
  .mod { min-height: 0; }
  .sc-content { font-size: 14.5px; }
  /* 底栏现在 7 个项，字号和内边距要收一收，不然 375px 屏上挤 */
  .bottom-nav button { font-size: 12.5px; letter-spacing: 0; }
}