/* =========================================================
 * 托业阅读记单词 · style.css
 * 设计：商务蓝 + 米白纸感，阅读正文用衬线，其余系统无衬线
 * ========================================================= */
:root {
  --bg: #f4f6fb;
  --bg-grad: radial-gradient(1200px 600px at 85% -10%, #e7eefc 0%, rgba(231, 238, 252, 0) 60%);
  --card: #ffffff;
  --ink: #16213a;
  --ink-2: #5b6b86;
  --ink-3: #8794a8;
  --line: #e3e8f2;
  --accent: #1d4ed8;
  --accent-2: #3b82f6;
  --accent-soft: #eef3ff;
  --good: #0e9f6e;
  --good-soft: #e7f7f0;
  --bad: #dc4a4a;
  --bad-soft: #fdeeee;
  --warm: #d97706;
  --warm-soft: #fdf3e3;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(22, 33, 58, .05), 0 8px 24px rgba(22, 33, 58, .06);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 15px;
}
[data-theme="dark"] {
  --bg: #10131c;
  --bg-grad: radial-gradient(1200px 600px at 85% -10%, #1b2440 0%, rgba(27, 36, 64, 0) 60%);
  --card: #171c29;
  --ink: #e8edf7;
  --ink-2: #a3b0c6;
  --ink-3: #7c8aa2;
  --line: #2a3247;
  --accent: #6d9bff;
  --accent-2: #8fb4ff;
  --accent-soft: #1c2a4a;
  --good: #4ade80;
  --good-soft: #143324;
  --bad: #ff8b8b;
  --bad-soft: #3a1d24;
  --warm: #f2b25c;
  --warm-soft: #3a2a15;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-grad), var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* ---------- 头部 ---------- */
.app-header { background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand {
  max-width: 1120px; margin: 0 auto; padding: 16px 20px 10px;
  display: flex; align-items: center; gap: 14px;
}
.logo {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px;
  background: linear-gradient(145deg, var(--accent), #0b2f9b);
  color: #fff; font-family: Georgia, serif; font-size: 27px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(29, 78, 216, .28);
  letter-spacing: -.5px;
}
.brand-text { flex: 1 1 auto; min-width: 0; }
.brand h1 { margin: 0; font-size: 1.18rem; font-weight: 700; letter-spacing: .2px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brand h1 .tagline { font-size: .78rem; font-weight: 500; color: var(--accent); background: var(--accent-soft); padding: 2px 9px; border-radius: 999px; }
.brand .sub { margin: 2px 0 0; font-size: .8rem; color: var(--ink-3); }
.head-actions { display: flex; align-items: center; gap: 8px; }
#btn-player { display: flex; align-items: center; gap: 8px; max-width: 190px; }
#nick-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.avatar {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}

.tabbar {
  max-width: 1120px; margin: 0 auto; padding: 2px 16px 0;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }
.tabbar a {
  position: relative; flex: 0 0 auto;
  padding: 9px 15px 11px; color: var(--ink-2); font-size: .92rem; font-weight: 500;
  border-radius: 10px 10px 0 0; white-space: nowrap; transition: color .15s, background .15s;
}
.tabbar a:hover { color: var(--accent); background: var(--accent-soft); }
.tabbar a.active { color: var(--accent); font-weight: 700; }
.tabbar a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2.5px;
  background: var(--accent); border-radius: 3px;
}
.tabbar a .badge-dot {
  display: inline-block; min-width: 17px; height: 17px; padding: 0 4px; margin-left: 4px;
  font-size: .68rem; line-height: 17px; text-align: center; vertical-align: 1px;
  background: var(--warm); color: #fff; border-radius: 999px; font-weight: 700;
}

/* ---------- 布局 ---------- */
.app-main { max-width: 1120px; margin: 0 auto; padding: 22px 20px 56px; outline: none; }
.layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr) 306px; }
  .side { position: sticky; top: 18px; }
}
.side { display: flex; flex-direction: column; gap: 14px; }
.app-footer {
  max-width: 1120px; margin: 0 auto; padding: 0 20px 30px;
  color: var(--ink-3); font-size: .78rem; display: flex; gap: 8px; flex-wrap: wrap;
}
.app-footer .dot { opacity: .5; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px;
}
.card:last-child { margin-bottom: 0; }
.card h2 { margin: 0 0 4px; font-size: 1.06rem; letter-spacing: .2px; }
.card h3 { margin: 0 0 10px; font-size: .98rem; }
.card .hint { margin: 0 0 14px; color: var(--ink-3); font-size: .82rem; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--ink-2); }
.small { font-size: .82rem; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.hr { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ---------- 控件 ---------- */
.btn {
  font: inherit; font-size: .88rem; line-height: 1.2;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 10px; padding: 9px 15px; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, transform .08s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .option:focus-visible, .tabbar a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); color: #fff; }
.btn.soft { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }
.btn.soft:hover { background: var(--accent); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.sm { padding: 6px 11px; font-size: .8rem; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.pill {
  display: inline-block; font-size: .72rem; padding: 2px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; vertical-align: 1px;
}
.pill.warm { background: var(--warm-soft); color: var(--warm); }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.gray { background: var(--line); color: var(--ink-2); }

/* 进度条 */
.bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 999px; transition: width .35s ease; }

/* ---------- 统计卡 ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; }
.stat .num { font-size: 1.35rem; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: .7rem; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.stat .lbl { font-size: .75rem; color: var(--ink-3); margin-top: 1px; }
.stat.accent .num { color: var(--accent); }
.stat.good .num { color: var(--good); }

/* 每日目标 */
.goal-line { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 6px; color: var(--ink-2); }
.goal-line b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- 文章列表 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.chip {
  font: inherit; font-size: .79rem; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.passage-list { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .passage-list { grid-template-columns: 1fr 1fr; } }
.passage-card {
  display: block; text-align: left; width: 100%; font: inherit; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); border-radius: 13px; padding: 14px 15px;
  transition: border-color .15s, transform .12s, box-shadow .15s; color: var(--ink);
}
.passage-card:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(29, 78, 216, .1); }
.pc-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.pc-title { font-weight: 700; font-size: .95rem; line-height: 1.35; margin: 0 0 2px; }
.pc-sub { font-size: .78rem; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.pc-meter { margin-top: 9px; display: flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--ink-3); }
.pc-meter .bar { flex: 1; height: 4px; }
.done-check { color: var(--good); font-weight: 700; }

/* ---------- 阅读器 ---------- */
.reader-head { margin-bottom: 6px; }
.reader-head h2 { margin: 0 0 4px; font-size: 1.22rem; line-height: 1.35; }
.reader-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .78rem; color: var(--ink-3); }
.reader-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.reader-body {
  font-family: var(--serif); font-size: 1.06rem; line-height: 1.95; color: var(--ink);
  margin: 16px 0 4px; letter-spacing: .1px;
}
.reader-body p { margin: 0 0 14px; }
.reader-body .wordmark {
  cursor: pointer; font-weight: 600; color: var(--accent);
  border-bottom: 1.5px dotted color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 2px; padding: 0 1px; transition: background .15s;
}
.reader-body .wordmark:hover { background: var(--accent-soft); }
.reader-body .wordmark.saved { background: var(--warm-soft); color: var(--warm); border-bottom-color: var(--warm); }
.translation { margin-top: 14px; padding: 14px 16px; background: var(--accent-soft); border-radius: 12px; font-size: .9rem; line-height: 1.85; color: var(--ink-2); }
.translation[hidden] { display: none; }

.word-side { margin-top: 16px; }
.word-side h3 { font-size: .84rem; color: var(--ink-3); font-weight: 600; letter-spacing: .4px; text-transform: uppercase; margin: 0 0 8px; }
.ws-item { display: flex; align-items: baseline; gap: 7px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .87rem; }
.ws-item:last-child { border-bottom: 0; }
.ws-item b { font-family: var(--serif); font-size: .95rem; }
.ws-item .ph { color: var(--ink-3); font-size: .78rem; }
.ws-item .zh { color: var(--ink-2); margin-left: auto; text-align: right; font-size: .82rem; }

/* ---------- 题目 ---------- */
.qbox { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.q-progress { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-3); margin-bottom: 8px; }
.q-stem { font-weight: 700; font-size: 1rem; margin: 0 0 4px; line-height: 1.5; }
.q-zh { font-size: .82rem; color: var(--ink-3); margin: 0 0 14px; }
.options { display: flex; flex-direction: column; gap: 8px; }
.option {
  display: flex; gap: 10px; align-items: flex-start; text-align: left;
  font: inherit; font-size: .92rem; line-height: 1.5;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 11px; padding: 11px 13px; cursor: pointer; transition: .15s;
}
.option .key {
  flex: 0 0 22px; height: 22px; border-radius: 6px; background: var(--bg); color: var(--ink-2);
  font-size: .75rem; font-weight: 700; display: grid; place-items: center; border: 1px solid var(--line);
}
.option:hover:not(.locked) { border-color: var(--accent); background: var(--accent-soft); }
.option.correct { border-color: var(--good); background: var(--good-soft); }
.option.correct .key { background: var(--good); border-color: var(--good); color: #fff; }
.option.wrong { border-color: var(--bad); background: var(--bad-soft); }
.option.wrong .key { background: var(--bad); border-color: var(--bad); color: #fff; }
.option.locked { cursor: default; }
.option.dim { opacity: .55; }
.explain {
  margin-top: 12px; padding: 11px 13px; border-radius: 11px; font-size: .86rem; line-height: 1.7;
  background: var(--accent-soft); color: var(--ink-2); border-left: 3px solid var(--accent);
}
.explain b { color: var(--ink); }

/* ---------- 结果 ---------- */
.result { text-align: center; padding: 6px 0 2px; }
.result .big { font-size: 2.4rem; font-weight: 800; letter-spacing: -1px; line-height: 1.1; color: var(--accent); }
.result .big.good { color: var(--good); }
.result p { margin: 6px 0 0; color: var(--ink-2); font-size: .88rem; }

/* ---------- 单词卡 ---------- */
.flash-wrap { perspective: 1200px; }
.flash {
  position: relative; min-height: 250px; border-radius: 18px; cursor: pointer;
  background: linear-gradient(160deg, var(--card), color-mix(in srgb, var(--accent-soft) 55%, var(--card)));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 26px 22px; text-align: center; transition: transform .2s ease;
  transform-style: preserve-3d;
}
.flash:active { transform: scale(.995); }
.flash .fw { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; letter-spacing: -.5px; line-height: 1.2; word-break: break-word; }
.flash .phon { color: var(--ink-3); font-family: var(--mono); font-size: .85rem; margin-top: 6px; }
.flash .pos { font-size: .75rem; color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 6px; font-family: var(--mono); }
.flash .answer { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); width: 100%; }
.flash .zh { font-size: 1.12rem; font-weight: 700; }
.flash .ex { font-family: var(--serif); font-size: .93rem; color: var(--ink-2); margin-top: 10px; line-height: 1.7; }
.flash .exzh { font-size: .8rem; color: var(--ink-3); margin-top: 3px; }
.flash .note { font-size: .78rem; color: var(--warm); margin-top: 8px; }
.flash .tap-hint { position: absolute; bottom: 12px; font-size: .74rem; color: var(--ink-3); }
.speak-btn { border: 0; background: var(--accent-soft); color: var(--accent); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: grid; place-items: center; }
.speak-btn:hover { background: var(--accent); color: #fff; }
.grade-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.grade-row .btn { padding: 11px 6px; font-weight: 600; }
.grade-row .btn.g-forgot:hover { border-color: var(--bad); color: var(--bad); }
.grade-row .btn.g-fuzzy:hover { border-color: var(--warm); color: var(--warm); }
.grade-row .btn.g-know:hover { border-color: var(--good); color: var(--good); }
.kbd { font-family: var(--mono); font-size: .68rem; opacity: .6; margin-left: 4px; }
.queue-info { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-3); margin-bottom: 10px; }

/* ---------- 词测 ---------- */
.quiz-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.streak { font-size: .82rem; color: var(--warm); font-weight: 700; }
.quiz-options .option { font-size: .95rem; }
.quiz-options .option .key { font-family: var(--mono); }

/* ---------- 生词本 ---------- */
.wb-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.wb-item:last-child { border-bottom: 0; }
.wb-main { flex: 1; min-width: 0; }
.wb-word { font-family: var(--serif); font-size: 1.02rem; font-weight: 700; }
.wb-word .ph { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); font-weight: 400; margin-left: 5px; }
.wb-zh { font-size: .85rem; color: var(--ink-2); }
.wb-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.wb-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.empty { text-align: center; padding: 34px 10px; color: var(--ink-3); }
.empty .ico { font-size: 2.2rem; display: block; margin-bottom: 6px; opacity: .8; }

/* ---------- 积分榜 ---------- */
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.board { margin-top: 12px; }
.board-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  font-size: .87rem;
}
.board-row + .board-row { border-top: 1px solid var(--line); border-radius: 0; }
.board-row.me { background: var(--accent-soft); border-radius: 10px; border-top-color: transparent; }
.board-row .rank { width: 26px; text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 700; font-size: .8rem; }
.board-row .rank.top { color: var(--warm); }
.board-row .nick { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row .pts { font-variant-numeric: tabular-nums; font-weight: 700; }
.board-row .pts small { font-weight: 500; color: var(--ink-3); font-size: .7rem; margin-left: 3px; }

/* ---------- 浮动提示与底部弹层 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  background: var(--ink); color: var(--card); padding: 9px 16px; border-radius: 999px;
  font-size: .84rem; font-weight: 600; opacity: 0; pointer-events: none; z-index: 90;
  transition: opacity .18s, transform .18s; max-width: min(90vw, 420px); text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(12, 18, 32, .38); backdrop-filter: blur(2px); }
.sheet.hidden { display: none; }
.sheet-card {
  background: var(--card); width: 100%; max-width: 560px; border-radius: 20px 20px 0 0;
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 40px rgba(0, 0, 0, .18);
  animation: sheet-in .22s ease;
  max-height: 82vh; overflow: auto;
}
@media (min-width: 640px) {
  .sheet { align-items: center; }
  .sheet-card { border-radius: 18px; max-width: 460px; animation: pop-in .18s ease; }
}
@keyframes sheet-in { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes pop-in { from { transform: scale(.97); opacity: .5; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sheet-head h3 { margin: 0; font-size: 1.02rem; flex: 1; }
.sheet-close { border: 0; background: transparent; color: var(--ink-3); font-size: 1.2rem; cursor: pointer; padding: 2px 6px; }
.word-card { text-align: center; }
.word-card .wc-word { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; line-height: 1.3; }
.word-card .wc-phon { font-family: var(--mono); font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.word-card .wc-zh { font-size: 1rem; font-weight: 700; margin-top: 8px; }
.word-card .wc-ex { font-family: var(--serif); font-size: .9rem; color: var(--ink-2); margin-top: 8px; line-height: 1.6; }
.word-card .wc-exzh { font-size: .78rem; color: var(--ink-3); margin-top: 2px; }
.word-card .wc-note { font-size: .78rem; color: var(--warm); margin-top: 8px; }
.word-card .wc-actions { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.input {
  font: inherit; width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

/* ---------- 暗色下的小修正 ---------- */
[data-theme="dark"] .flash { background: linear-gradient(160deg, var(--card), color-mix(in srgb, var(--accent-soft) 70%, var(--card))); }
[data-theme="dark"] .logo { background: linear-gradient(145deg, #2b5cff, #10235c); }

/* ---------- 打印/无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 细节修正 ---------- */
.passage-list { align-items: stretch; }
.passage-card { height: 100%; display: flex; flex-direction: column; }
.passage-card .pc-meter { margin-top: auto; padding-top: 9px; }
.btn .ico, .empty .ico svg { vertical-align: middle; }
.empty .ico { display: block; margin-bottom: 8px; color: var(--ink-3); line-height: 0; }
.empty .ico svg { width: 40px; height: 40px; }
.wb-word .ph { font-weight: 400; }

/* ---------- 音标字体（部分 mono 字体缺 IPA 符号） ---------- */
.flash .phon, .wc-phon, .ws-item .ph, .wb-word .ph, .q-zh.mono, .reader-meta .mono {
  font-family: "DejaVu Sans", "Noto Sans", var(--mono);
}
.flash { padding-bottom: 34px; }
.flash .tap-hint { bottom: 10px; }

/* ---------- 窄屏头部与导航 ---------- */
@media (max-width: 620px) {
  .brand { padding: 12px 14px 8px; gap: 10px; }
  .logo { width: 40px; height: 40px; flex-basis: 40px; font-size: 23px; border-radius: 11px; }
  .brand h1 { font-size: 1.02rem; line-height: 1.25; }
  .brand h1 .tagline { font-size: .68rem; padding: 1px 7px; }
  .brand .sub { display: none; }
  .head-actions { gap: 4px; }
  #btn-player { max-width: 132px; padding: 7px 10px; }
  #nick-label { font-size: .82rem; }
  .tabbar { padding: 0 10px; }
  .tabbar a { padding: 9px 9px 11px; font-size: .86rem; }
  .app-main { padding: 16px 14px 44px; }
  .card { padding: 16px 15px; }
  .reader-body { font-size: 1.02rem; line-height: 1.85; }
  .flash .fw { font-size: 1.85rem; }
  .stats { gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat .num { font-size: 1.2rem; }
}
