:root {
  --paper: #f7f9fd;
  --card: #ffffff;
  --ink: #1c2a4a;
  --muted: #5b6787;
  --line: #d5ddeb;
  --grid: #e4eaf4;
  --accent: #2c56c9;
  --accent-soft: #eef2fc;
  --ok: #178a4c;
  --ok-soft: #e3f5ea;
  --warn: #8a5a12;
  --warn-soft: #fff4e5;
  --bad: #c8452d;
  --math: #2c56c9;
  --sci: #178a4c;
  --eng: #7a4fc4;
  --chi: #c8452d;
  --xhs: #e8364f;
  --display: 'Noto Serif SC', 'Songti SC', serif;
  --body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}
body.grid-bg {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
a { color: var(--accent); }
h1, h2 { margin: 0; }
.display { font-family: var(--display); font-weight: 900; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden, [hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { width: 100%; max-width: 460px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-direction: column; gap: 18px; flex: 1; }

/* 顶栏 */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.brand .logo { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand b { font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1.2; }
.brand-text > span { font-size: 12px; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.back { text-decoration: none; font-weight: 700; padding: 10px 4px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--accent); border-radius: 10px; padding: 13px 20px;
  background: var(--accent); color: #fff; min-height: 48px;
}
.btn:hover { background: #1d3f9e; color: #fff; }
.btn.ghost { background: var(--card); color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn.soft { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
.btn.small { font-size: 15px; padding: 8px 14px; min-height: 40px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; }
.link-btn { background: none; border: 0; font: inherit; color: var(--accent); cursor: pointer; padding: 6px; }

/* 卡片和表单 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.field input {
  font: inherit; font-size: 17px; color: var(--ink);
  padding: 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper);
}
.field input:focus { outline: none; border-color: var(--accent); background: #fff; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 0; flex: none; }
.note { border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.6; }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.info { background: var(--accent-soft); }
.msg { min-height: 1.2em; font-size: 14px; color: var(--bad); margin: 0; }
.msg.good { color: var(--ok); }

.steps { display: flex; gap: 6px; }
.steps span { flex: 1; height: 6px; border-radius: 3px; background: var(--grid); }
.steps span.on { background: var(--accent); }

.grades { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.grades button {
  font: inherit; font-size: 15px; padding: 10px 0; border: 1.5px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); cursor: pointer;
}
.grades button.on { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* 首页 */
.hero { display: grid; gap: 28px; padding: 28px 0 24px; }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: 32px; line-height: 1.25; }
.badge { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--accent); background: #fff; border: 1px solid var(--accent); border-radius: 10px; padding: 4px 12px; }
.hero-main { display: flex; flex-direction: column; gap: 16px; }
.perks { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.cta { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.howto { display: flex; flex-direction: column; gap: 12px; }
.howto .stepline { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.howto .dot { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--xhs); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.feature { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c, var(--accent)); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.feature b { font-size: 15px; color: var(--c, var(--accent)); }
.feature span { font-size: 13px; color: var(--muted); }
.feature .soon { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); background: #eef1f6; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.section { padding: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.section h2 { font-family: var(--display); font-weight: 900; font-size: 20px; }

footer.foot { margin-top: auto; background: #fff; border-top: 1px solid var(--line); }
footer.foot .wrap { padding: 22px 16px 28px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }

/* 选孩子 */
.who { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.avatars { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.avatar { background: none; border: 0; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); opacity: 0.55; }
.avatar.on { opacity: 1; }
.avatar .face { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; font-size: 42px; border: 4px solid transparent; }
.avatar.on .face { border-color: currentColor; }
.avatar b { font-size: 17px; }
.c-pink { color: #d6457a; } .c-pink .face { background: #fbe3ec; color: #d6457a; }
.c-blue { color: #2c6fc9; } .c-blue .face { background: #e2edfb; color: #2c6fc9; }
.c-green { color: #178a4c; } .c-green .face { background: #e3f5ea; color: #178a4c; }
.c-purple { color: #7a4fc4; } .c-purple .face { background: #efe7fb; color: #7a4fc4; }
.c-orange { color: #c2701a; } .c-orange .face { background: #fdeedb; color: #c2701a; }
.avatar b, .avatar span.muted { color: var(--ink); }
.pinpad { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pindots { display: flex; gap: 14px; }
.pindots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); }
.pindots i.on { background: var(--ink); border-color: var(--ink); }
.keys { display: grid; grid-template-columns: repeat(3, 76px); gap: 10px; }
.keys button { height: 56px; border-radius: 12px; border: 0; background: var(--accent-soft); font: inherit; font-size: 24px; font-weight: 700; color: var(--ink); cursor: pointer; }
.keys button:active { background: #d9e3f8; }
.keys .blank { visibility: hidden; }

/* 孩子首页 */
.kid-head { display: flex; align-items: center; gap: 10px; }
.kid-head .face { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; font-size: 20px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-size: 26px; }
.subjects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.subject { text-decoration: none; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 10px; padding: 14px 12px; color: var(--ink); }
.subject b { display: block; font-size: 17px; }
.tabbar { position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border-top: 1px solid var(--line); padding: 6px 0 max(10px, env(safe-area-inset-bottom)); }
.tabbar a { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font-size: 13px; }
.tabbar a.on { color: var(--accent); font-weight: 700; }
.tabbar a span { font-size: 22px; }

/* 家长中心 */
.prog { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.prog:first-child { border-top: 0; padding-top: 0; }
.pstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pstats div { background: var(--bg, #f6f7fb); border-radius: 10px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pstats b { font-size: 22px; color: currentColor; line-height: 1.1; }
.pstats span { font-size: 12px; color: var(--muted); text-align: center; }
.pweek { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; align-items: end; }
.pweek div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pweek i { width: 60%; min-height: 3px; border-radius: 4px 4px 0 0; background: currentColor; opacity: .75; }
.psubj { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--ink); }
.psubj th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 4px 6px; }
.psubj td { padding: 6px; border-top: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.tile b { font-size: 15px; color: var(--c, var(--ink)); }
.tile span { font-size: 12px; color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.row .grow { flex: 1; }
.list { display: flex; flex-direction: column; gap: 10px; }

/* 弹窗 */
.sheet-bg { position: fixed; inset: 0; background: rgba(28, 42, 74, 0.35); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet { width: 100%; max-width: 460px; background: #fff; border-radius: 16px 16px 0 0; padding: 20px 16px 28px; display: flex; flex-direction: column; gap: 14px; }

@media (min-width: 900px) {
  .brand .logo { width: 46px; height: 46px; }
  .brand-text { flex-direction: row; align-items: baseline; gap: 14px; }
  .brand b { font-size: 26px; }
  .hero { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; padding: 64px 0 40px; }
  .hero h1 { font-size: 52px; line-height: 1.2; }
  .perks { flex-direction: row; gap: 24px; font-size: 16px; }
  .cta { flex-direction: row; }
  .howto { padding: 28px; box-shadow: 0 12px 40px rgba(28, 42, 74, 0.08); }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .feature { padding: 18px 20px; }
  .feature b { font-size: 18px; }
  .feature span { font-size: 15px; }
  .section h2 { font-size: 26px; }
  footer.foot .wrap { flex-direction: row; justify-content: space-between; font-size: 14px; }
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 16px; }
}

/* 首页：最新上线印章 */
.hero-title { position: relative; padding-right: 96px; }
.stamp { position: absolute; right: 0; top: -6px; width: 92px; height: 92px; color: #c8321e; transform: rotate(-12deg); opacity: .9; font-family: var(--display); }
.stamp text { fill: currentColor; }
@media (min-width: 760px) {
  .hero-title { padding-right: 0; }
  .stamp { position: absolute; left: 360px; right: auto; top: 44px; width: 136px; height: 136px; }
}

/* 首页：精修版前后对比 */
.ba { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.ba-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--paper); border-radius: 10px; padding: 4px; }
.ba-tabs button { border: 0; background: transparent; border-radius: 7px; padding: 9px 4px; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.ba-tabs button.on { background: var(--accent); color: #fff; }
.ba-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ba-track::-webkit-scrollbar { display: none; }
.ba-slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; gap: 14px; align-content: start; }
.ba-desc { display: flex; flex-direction: column; gap: 8px; }
.ba-stat { display: flex; flex-direction: column; gap: 2px; border-left: 4px solid var(--c, var(--accent)); padding: 2px 0 2px 12px; }
.ba-stat b { font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1.2; color: var(--c, var(--accent)); }
.ba-stat span { font-size: 13px; color: var(--muted); }
.ba-title { font-size: 17px; }
.ba-desc p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.ba-pts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; font-weight: 700; color: var(--accent); }
.ba-pts .g { color: var(--ok); }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.ba figure { margin: 0; position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.ba-pair figure.page { aspect-ratio: 210 / 297; }
.ba-pair figure.page > img:first-of-type { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ba-pair figure.key { padding-top: 28px; }
.ba-pair figure.key img { width: 100%; display: block; }
.ba img { cursor: zoom-in; }
.ba-loupe { position: absolute; right: 6%; bottom: 5%; width: 52%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--accent); box-shadow: 0 4px 14px rgba(20, 28, 48, .25); background: #fff; object-fit: cover; }
.ba-pair figure:first-child .ba-loupe { border-color: var(--muted); }
.ba-lbl { position: absolute; z-index: 1; top: 6px; left: 6px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--muted); color: #fff; }
.ba-lbl.new { background: var(--accent); }
.ba-keys { display: flex; flex-direction: column; gap: 10px; }
.ba-strip img { width: 100%; display: block; }
.ba-strip figcaption { font-size: 12px; color: var(--muted); padding: 6px 10px; border-top: 1px solid var(--line); background: var(--paper); }
.ba-strip figcaption b { color: #d0021b; }
.ba-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ba-dots { display: flex; justify-content: center; gap: 6px; }
.ba-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.ba-dots i.on { width: 16px; border-radius: 3px; background: var(--accent); }
@media (min-width: 760px) {
  .ba { padding: 20px 24px; gap: 18px; }
  .ba-tabs { display: inline-grid; align-self: flex-start; grid-template-columns: repeat(3, auto); }
  .ba-tabs button { padding: 9px 22px; }
  .ba-slide { grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
  .ba-desc { position: sticky; top: 0; padding-top: 8px; }
  .ba-stat b { font-size: 34px; }
  .ba-pair { gap: 16px; max-width: 620px; }
  .ba-keys { max-width: 620px; }
}
.ba-pair img { cursor: zoom-in; }
.zoom { position: fixed; inset: 0; z-index: 50; background: rgba(20, 28, 48, .85); overflow: auto; padding: 48px 12px 24px; cursor: zoom-out; }
.zoom img { display: block; width: 100%; max-width: 900px; margin: 0 auto; background: #fff; border-radius: 6px; }
.zoom-x { position: fixed; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 24px; cursor: pointer; }

/* 下载太快时的滑块 */
.slider { position: relative; height: 48px; border-radius: 24px; background: #e4eaf4; margin: 0 24px; touch-action: none; }
.slider .slot { position: absolute; top: 2px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; border: 2px dashed var(--accent); box-sizing: border-box; }
.slider .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 24px; background: #cfe0fb; }
.slider .knob { position: absolute; top: 2px; left: 0; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: grab; user-select: none; touch-action: none; }

/* 真题下载 */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 20; margin: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 14px; padding: 7px 13px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; min-height: 36px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff !important; font-weight: 700; }
.chip:disabled { color: #a9b2c6 !important; background: #f2f4f8; cursor: default; }
.dl-page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 16px 16px 40px; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; }
.dl-side { display: flex; flex-direction: column; gap: 12px; }
.dl-title { display: none; margin: 0; font-size: 28px; }
.dl-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; }
.dl-search input { border: 0; outline: 0; font: inherit; font-size: 16px; padding: 11px 0; flex: 1; min-width: 0; background: transparent; }
.dl-group { display: flex; flex-direction: column; gap: 6px; }
.dl-group > b { font-size: 14px; display: none; }
.dl-selects { flex-direction: row; gap: 8px; }
.dl-selects label { flex: 1; }
.dl-selects select { width: 100%; font: inherit; font-size: 15px; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.dl-tip { font-size: 13px; line-height: 1.7; }
.dl-side .dl-tip { display: none; }
.dl-main { display: flex; flex-direction: column; gap: 12px; }
.dl-sum { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.dl-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.dl-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.dl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dl-head b { font-size: 15px; }
.dl-en { font-weight: 500; color: var(--muted); font-size: 13px; }
.dl-subj { flex: none; font-size: 12px; font-weight: 700; color: var(--c); }
.dl-done { font-size: 12px; font-weight: 700; color: var(--ok); }
.dl-btns { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.dl-btns .btn { flex: 1; padding: 9px 0; min-height: 44px; font-size: 15px; text-decoration: none; justify-content: center; }
@media (min-width: 900px) {
  .dl-page { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding-top: 28px; align-items: start; }
  .dl-side { position: sticky; top: 16px; gap: 16px; }
  .dl-title { display: block; }
  .dl-group > b { display: block; }
  .dl-selects { flex-direction: column; }
  .dl-side .dl-tip { display: block; }
  .dl-tip-m { display: none; }
  .dl-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 600px) and (max-width: 899px) { .dl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 管理员后台 */
.adm { width: 100%; max-width: 960px; margin: 0 auto; padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; }
.adm-h { font-size: 16px; margin: 0; }
.adm-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.adm-stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; }
.adm-stats b { font-size: 22px; color: var(--accent); }
.adm-stats span { font-size: 12px; color: var(--muted); }
.adm-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.adm-form .grow { flex: 1; min-width: 180px; }
.adm-form select { font: inherit; padding: 11px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.adm-new { display: flex; flex-direction: column; gap: 10px; }
.adm-codes { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-code { font: inherit; font-size: 18px; font-weight: 700; letter-spacing: 2px; padding: 6px 12px; border-radius: 8px; border: 1.5px solid var(--ok); background: #fff; color: var(--ink); cursor: pointer; }
.adm-scroll { overflow-x: auto; max-height: 420px; overflow-y: auto; }
.adm-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-t th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px; position: sticky; top: 0; background: #fff; }
.adm-t td:first-child, .adm-t td:last-child { white-space: nowrap; }
.adm-t td { padding: 6px; border-top: 1px solid var(--line); vertical-align: top; }

/* 管理员：模块用量工作台 */
.use-scroll { max-height: none; }
.use-t th, .use-t td { text-align: center; }
.use-t th.use-m { text-align: left; white-space: nowrap; color: var(--ink); font-weight: 700; position: sticky; left: 0; background: #fff; }
.use-c { cursor: pointer; min-width: 52px; }
.use-c b { display: block; font-size: 15px; }
.use-c span { display: block; font-size: 11px; color: var(--muted); min-height: 14px; }
.use-c.zero b { color: #c3cad8; font-weight: 400; }
.use-c:hover { background: #f2f5fb; }
.use-c.on { background: var(--accent); }
.use-c.on b, .use-c.on span { color: #fff; }
.use-sum th, .use-sum td { border-top: 2px solid var(--line); }
.use-day { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.use-bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; height: 140px; align-items: end; }
.use-bars div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; padding-bottom: 16px; }
.use-bars i { display: block; width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 1px; }
.use-bars span { font-size: 9px; color: var(--muted); }
.use-bars em { position: absolute; bottom: 0; font-style: normal; font-size: 9px; color: var(--muted); white-space: nowrap; }
.use-t td { vertical-align: middle; }
.use-day .row { flex-wrap: wrap; } .use-day .row b { min-width: 60%; }
.use-soon { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 8px; background: #ffe36b; color: #1c2a4a; margin-left: 4px; }
/* 意见反馈：1 对 1 聊天 */
.chat { display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 86%; padding: 10px 12px; border-radius: 14px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; display: flex; flex-direction: column; gap: 4px; }
.bub.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bub.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bub .meta { font-size: 12px; opacity: 0.75; white-space: normal; }
.bub .rep { font-size: 13px; padding: 6px 8px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); white-space: normal; }
.bub.me .rep { background: rgba(255, 255, 255, 0.18); color: #fff; }
.bub .done { font-size: 12px; font-weight: 700; color: var(--ok); }
.bub.me .done { color: #d9ffe6; }
.bub .acts { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 13px; }
.bub .acts a.link-btn { text-decoration: none; }
.chat-form { display: flex; flex-direction: column; gap: 8px; }
.chat-form textarea, .rep-sheet textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; resize: vertical; min-height: 84px; background: #fff; color: var(--ink); }
.chat-form textarea:focus, .rep-sheet textarea:focus { outline: none; border-color: var(--accent); }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.kinds label { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; background: #fff; }
.kinds input { margin: 0; }
.kinds label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.dot-n, .tile .dot-n { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 18px; }
.fb-row { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.fb-row:first-child { border-top: 0; }
.bub.me .link-btn { color: #fff; opacity: 0.85; }

/* 家长中心入口（爸爸 2026-10-27：原来的「家长 ⚙」太不显眼） */
.btn.parent-btn { background: var(--accent-soft); border-color: #c9d6f5; color: var(--accent); position: relative; }
.btn.parent-btn:hover { background: #dfe7fa; border-color: #c9d6f5; color: var(--accent); }
.btn.parent-btn .dot-n { position: absolute; top: -7px; right: -7px; box-shadow: 0 0 0 2px var(--card); }

/* 首页「免费样题」入口 */
.free-link { align-self: flex-start; font-weight: 700; color: var(--accent); }

/* 英文界面（中英切换 2026-10-30）：顶栏放得下语言按钮 */
[data-lang=en] .top .btn { white-space: nowrap; }
@media (max-width: 480px) { [data-lang=en] .brand-text > span { display: none; } }
[data-lang=en] .hero h1 { font-size: 30px; }
@media (min-width: 900px) { [data-lang=en] .hero h1 { font-size: 46px; } [data-lang=en] .stamp { left: 540px; top: -48px; width: 116px; height: 116px; } }
/* 小红书 / RedNote 图标：中文版显示小红书，英文版显示 rednote */
.xhs { display: inline-block; width: 26px; height: 26px; vertical-align: -7px; margin: 0 0 0 4px; }
.xhs svg { width: 100%; height: 100%; display: block; }
.xhs .xhs-en, [data-lang=en] .xhs .xhs-zh { display: none; }
[data-lang=en] .xhs .xhs-en { display: block; }
/* 英文版：英文字母和引号先用西文字体，避免 ’ “ ” 显示成全角、出现空格 */
[data-lang=en] { --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
[data-lang=en] { --display: Georgia, 'Times New Roman', 'Noto Serif SC', 'Songti SC', serif; }
@media (min-width: 900px) { [data-lang=en] .perks { flex-direction: column; gap: 6px; } }
[data-lang=en] .xhs { margin: 0 1px 0 0; }
/* 怎么拿邀请码：第 1 步两种关注方式（小红书 / X），图标同样大小排齐 */
.howto .follow { display: flex; flex-direction: column; gap: 8px; }
.howto .fl { display: flex; align-items: center; gap: 8px; }
.howto .fl .xhs, [data-lang=en] .howto .fl .xhs { margin: 0; vertical-align: 0; flex: none; }
.xlogo { display: inline-block; width: 26px; height: 26px; flex: none; }
.xlogo svg { width: 100%; height: 100%; display: block; }
.howto .xh { color: inherit; text-decoration: none; }
.howto .fl b { white-space: nowrap; }
.howto .xh:hover { text-decoration: underline; }
