/* ============================================================
   DecodeNews AI 新闻解码 · 站点外观（手写文件，由人维护）
   ------------------------------------------------------------
   规则：
   · 禁止 @import / 外部 url()，本站零外链。
   · 配色只用 var(--fg/--muted/--bg/--card/--line/--accent)，
     由主题脚本注入行内样式；这里给 :root 写默认值。
   · 版式必须用 rem，不给 html 写死 font-size（字号控件
     靠 documentElement.style.fontSize 缩放）。
   · 挂载钩子不许删：[data-srow]  data-cat  .catnav a[data-cat]
     h1.today  h1.art  .chip
   ============================================================ */

/* ── 1. 全局变量（浅色默认，深色在 html[data-theme="dark"] 覆盖） ── */
:root {
  --fg:          #1a1a1a;
  --muted:       #6b7280;
  --bg:          #f7f6f3;
  --card:        #ffffff;
  --line:        #e4e2db;
  --accent:      #0f766e;

  /* 扩展变量 */
  --accent-deep: #0a5c55;
  --accent-ink:  #ffffff;
  --accent-glow: rgba(15, 118, 110, .15);
  /* 站标专用色。**要比 --accent 亮**：--accent 那支深青是给文字/链接用的，
     当图形色偏暗（用户 2026-09-29：「换个明亮颜色」）。日夜各一支，靠下面的
     html[data-theme="dark"] 覆盖 —— 站标是内联 SVG，所以它真能继承这个颜色。 */
  --logo-ink:    #14b8a6;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 8px rgba(0,0,0,.04);
  --shadow-md:   0 2px 6px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.06);
  --radius:      .75rem;
  --radius-sm:   .4rem;

  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC",
           "Noto Serif SC", Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "PingFang SC",
           "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
           system-ui, sans-serif;
  --mono:  ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  color-scheme: light;
}

html[data-theme="dark"] {
  --fg:          #e8e8ea;
  --muted:       #9aa0a6;
  --bg:          #14161a;
  --card:        #1b1e24;
  --line:        #2c313a;
  --accent:      #5eead4;

  --accent-deep: #7ff5e2;
  --accent-ink:  #0c2b28;
  --accent-glow: rgba(94, 234, 212, .12);
  --logo-ink:    #5eead4;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.25), 0 1px 8px rgba(0,0,0,.2);
  --shadow-md:   0 2px 8px rgba(0,0,0,.35), 0 6px 20px rgba(0,0,0,.3);
  color-scheme: dark;
}

/* ── 2. 重置 & 全局基础 ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── 3. 布局容器 ── */
/* max-width 42rem：16px × 42 = 672px，正文约 36–38 汉字/行，手机 375px 不滚 */
.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1rem 5rem; }

/* ── 4. 站头 ── */
header.top {
  padding: 1.1rem 0 .85rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
/* 顶部细线：品牌色条 */
header.top::before {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-radius: 0 0 2px 2px;
  margin-bottom: .25rem;
}

/* 品牌标志 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--fg);
  text-decoration: none;
  line-height: 1;
}
.brand:hover { color: var(--accent); }
.brand:focus-visible { border-radius: var(--radius-sm); }
.brandmark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  vertical-align: middle;
  color: var(--logo-ink);   /* 内联 SVG 继承这个颜色；日夜两套值见上方变量块 */
  display: inline-block;
}
html[data-theme="dark"] .brandmark { color: var(--logo-ink); }

/* ── 站头工具条：简/繁 · 字号 · 日/夜 · 朗读 · 顶部 ───────────────────────
   用户 2026-09-29：控件做成**一套规范图标**，另起一行放在分类下面。
   图标本身是生成器内联进 HTML 的线性 SVG（24 视框 / 1.75 线宽 / currentColor），
   所以这里只管排布，不引入任何图形资源。所有按钮外观必须**完全一致** ——
   区别只在图标与文字，这正是一套规范图标的含义。

   选择器一律写成 `.toolbar .tool`（两层）而不是 `.tool`：文件下半部分还有旧的
   `.fsr, .thm, .speak { … }` 和 `.back-top { position:fixed }` 单层规则，
   同权重时**靠后的赢**，只写 `.tool` 会被它们盖掉（浮动、圆角、内边距都会回旧样）。 */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-top: .7rem;
}
.toolbar .tool {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .6rem;
  min-height: 2rem;                 /* 触控目标：手指点得中 */
  border: 1px solid var(--line);
  border-radius: 999px;             /* 药丸形，与分类导航的方块在形状上区分开 */
  background: var(--card);
  color: var(--fg);
  font: inherit;
  font-size: .8rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.toolbar .tool:hover { border-color: var(--accent); color: var(--accent); }
.toolbar .tool:focus-visible { outline: 2px solid var(--accent-glow); outline-offset: 1px; }
.toolbar .tool .ic { width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.toolbar .tool .tool-label { letter-spacing: .01em; white-space: nowrap; }

/* 「顶部」键原来是**浮动圆钮**（.back-top 单层规则：position:fixed / 圆形 / 阴影）。
   它现在住进工具条，所以在这里把浮动的那套按掉。用户 2026-09-29：「浮在角落的收进这一排」。
   注意只按掉"位置与外观"，点击行为（滚回顶部）在 site-v2.js 里，不受影响。 */
.toolbar .back-top {
  position: static;
  right: auto; bottom: auto;
  width: auto; height: auto;
  z-index: auto;
  box-shadow: none;
  font-size: .8rem;
}
.toolbar .back-top:hover { transform: none; }

/* 日夜只用一枚按钮：两枚图标都在 HTML 里，由 CSS 按当前主题挑一枚显示。
   这样切主题不需要换 DOM（JS 只改文字标签），也不会出现图标延迟。 */
.toolbar [data-tool="theme"] .ic-moon { display: none; }
html[data-theme="dark"] .toolbar [data-tool="theme"] .ic-sun { display: none; }
html[data-theme="dark"] .toolbar [data-tool="theme"] .ic-moon { display: inline-block; }

/* 朗读键只在单篇页出现（列表页每行各有自己的朗读键，整页念没意义 ——
   见 TTS_JS 里那条注释）。没有朗读区域时按钮由 JS 加 .is-off 隐藏，
   但**不能 display:none**：藏了之后 JS 还得负责把它放回来。 */
.toolbar .tool.is-off { display: none; }
/* 朗读进行中：文字标签换成「停止」，图标换成方块（两枚图标都写在 HTML 里，
   由 .speaking 这个类决定显示哪一枚 —— 和日夜键用同一套办法），并换成强调色 */
.toolbar .tool.speaking { border-color: var(--accent); color: var(--accent); }
.toolbar .tool .ic-stop { display: none; }
.toolbar .tool.speaking .ic-speak { display: none; }
.toolbar .tool.speaking .ic-stop { display: inline-block; }

@media (max-width: 600px) {
  .toolbar { gap: .35rem; margin-top: .55rem; }
  .toolbar .tool { padding: .28rem .52rem; font-size: .76rem; }
}

/* 更新时间 dateline */
header.top .sub {
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .01em;
}

/* 导航栏 */
header.top nav {
  margin-top: .2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .9rem;
  align-items: center;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  padding: .15rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ── 5. 标题体系 ── */
h1, h2, h3 { font-family: var(--sans); line-height: 1.5; text-wrap: pretty; }
h1 { font-size: 1.45rem; margin: .25rem 0 1rem; font-weight: 700; }

/* 首页「今日原创 · N 篇」 */
h1.today {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: 1rem;
}

/* 页面级 h2（往期日期分组、常读页）*/
h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 2rem 0 .7rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--line);
}

/* 文章页内容 h2（小标题） */
body[data-page="post"] h2 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 2rem 0 .8rem;
  padding: 0 0 .4rem .7rem;
  border-bottom: 0;
  border-left: 3px solid var(--accent-glow);
  position: relative;
}
body[data-page="post"] h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 2.4rem; height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
html[data-theme="dark"] body[data-page="post"] h2 {
  border-left-color: rgba(94, 234, 212, .1);
}

body[data-page="post"] .art-meta + h2,
body[data-page="post"] .lead + h2 { margin-top: 1.5rem; }

h1 .cnt { font-family: var(--sans); font-size: .78rem; color: var(--muted); font-weight: 400; }

/* 文章标题（首页 / 文章页）：左侧栏目色条 */
h1.art {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .01em;
  margin: .15rem 0 .3rem;
  border-left: 4px solid var(--line);
  padding-left: .75rem;
  line-height: 1.55;
}

/* ── 6. 正文辅助样式 ── */
.art-meta { color: var(--muted); font-size: .82rem; margin-bottom: .4rem; line-height: 1.5; }
.lead { font-size: 1.02rem; margin: .2rem 0 .9rem; color: var(--fg); line-height: 1.85; }
.note { color: var(--muted); font-size: .86rem; margin: 0 0 1rem; }
.note .hl { color: var(--fg); font-weight: 700; }
.ex { color: var(--muted); font-size: .82rem; margin: .15rem 0 .7rem; }

/* ── 7. 首页文章卡片（article[data-srow]，当前无命中，保留备用） ── */
article[data-srow] {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1rem;
  margin: 0 0 .85rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
article[data-srow]:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
article[data-srow] h2 { font-size: 1rem; margin-top: 1.1rem; }
article[data-srow] p { margin: .65em 0; }

/* ── 8. 首页「最新 10 条」列表（.hfeed / .hlist） ── */
ul { list-style: none; padding-left: 0; margin: 0; }

.hfeed { list-style: none; padding: 0; margin: .2rem 0 1rem; }
.hfeed li {
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.hfeed li:last-child { border-bottom: 0; }

.hfeed .hlist {
  display: block;
  text-decoration: none;
  /* 2026-09-30 Gary：标题用各自栏目的颜色（cat-*），和分类页一致；
     不再强制 var(--fg)。hover 仍走 --accent。 */
  font-size: 1.03rem;
  line-height: 1.5;
  font-weight: 500;
  transition: color .15s;
}
.hfeed .hlist:hover { color: var(--accent); }
.hfeed .art-meta { margin-top: .22rem; }
.hfeed .tags { margin-top: .28rem; }

/* 首页标题 */
.home-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 .5rem;
  letter-spacing: .04em;
  text-transform: none;
}

/* ── 9. 往期 / 栏目 / 常读列表（.toc） ── */
.toc li, .dates a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s, background .15s;
}
.toc li {
  padding: .6rem .85rem;
  margin: .45rem 0;
}
.toc li:hover { border-color: var(--accent); }
.toc li a { color: var(--fg); text-decoration: none; font-weight: 500; word-break: break-all; }
.toc li a:hover { color: var(--accent); }
.toc li em, li em { color: var(--muted); font-style: normal; font-size: .83rem; }
.dates { display: flex; flex-wrap: wrap; gap: .45rem; }
.dates a { padding: .3rem .65rem; color: var(--fg); text-decoration: none; font-size: .88rem; }
.dates a:hover { border-color: var(--accent); color: var(--accent); }

/* ── 10. 栏目导航（.catnav .chip） ── */
/* 挂载钩子：.catnav a[data-cat]  必须保留 */
.catnav { display: flex; flex-wrap: wrap; gap: .35rem; margin: .15rem 0 1.1rem; }
.catnav .chip {
  text-decoration: none;
  transition: transform .12s ease, opacity .12s ease;
}
.catnav .chip:hover { transform: translateY(-1px); opacity: .88; }
.catnav .chip.here {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* 挂载钩子：.chip  必须保留 */
.chip {
  display: inline-block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  padding: .11rem .48rem;
  border-radius: 999px;
  color: #fff;
  margin-right: .4rem;
  vertical-align: .1em;
  letter-spacing: .02em;
  line-height: 1.5;
}

/* ── 11. 工具条（搜索 / 筛选） ── */
[hidden] { display: none !important; }
.site-tools {
  position: sticky; top: .4rem; z-index: 20;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin: .65rem 0 1rem; padding: .45rem .55rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.searchbox {
  display: flex; align-items: center; gap: .4rem; flex: 1; min-width: 9rem;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .28rem .65rem; color: var(--muted);
  transition: border-color .15s;
}
.searchbox input {
  width: 100%; min-width: 0; border: 0; outline: 0;
  background: transparent; color: var(--fg); font: inherit; font-size: .9rem;
}
.searchbox:focus-within { border-color: var(--accent); }
.clear-search {
  border: 1px solid var(--line); background: var(--card); color: var(--fg);
  border-radius: var(--radius-sm); padding: .32rem .6rem; cursor: pointer;
  font: inherit; font-size: .83rem;
  transition: border-color .15s, color .15s;
}
.clear-search:hover { border-color: var(--accent); color: var(--accent); }
.result-count { font-size: .76rem; color: var(--muted); white-space: nowrap; }
.category-filter {
  border: 1px solid var(--line); background: var(--bg); color: var(--fg);
  border-radius: var(--radius-sm); padding: .38rem .5rem; max-width: 12rem;
  font: inherit; font-size: .82rem;
}

/* ── 12. 进度条 / 回到顶部 ── */
.read-progress {
  position: fixed; z-index: 100; left: 0; top: 0; width: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transition: width .08s linear;
  border-radius: 0 2px 2px 0;
}
.back-top {
  position: fixed; z-index: 50; right: 1rem; bottom: 1rem;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--card); color: var(--fg);
  font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow-md);
  transition: border-color .15s, color .15s, transform .15s;
  /* 图标（20px 内联 svg / 老页面的 "↑" 字）居中：按钮是固定 2.5rem 的圆 */
  display: flex; align-items: center; justify-content: center;
}
.back-top:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.back-top-float svg { width: 1.05rem; height: 1.05rem; display: block; }

/* 右下角浮动钮（.back-top-float，site-v2.js 造）：滚动一段才浮出来。
   默认透明 + visibility:hidden —— 不是 display:none：留着位置才能做淡入淡出，
   而 visibility:hidden 的元素本来就点不到、也不进无障碍树，不用再管 tabindex。
   两个阈值（600 出 / 400 回）由 JS 判，这里只管"在/不在"的过渡。 */
.back-top-float {
  opacity: 0; visibility: hidden; transform: translateY(.4rem);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.back-top-float.is-on { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .back-top-float { transition: none; }
  .back-top:hover { transform: none; }
}

/* ── 13. 控件按钮（字号 / 日夜 / 朗读） ── */
.fsr, .thm, .speak {
  background: var(--card); color: var(--fg);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .2rem .7rem; font: inherit; font-size: .8rem; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.fsr:hover, .thm:hover, .speak:hover { border-color: var(--accent); color: var(--accent); }
nav .fsr, .postnav .fsr, nav .thm, .postnav .thm { margin-left: .5rem; vertical-align: middle; }
.postnav .speak { margin-left: auto; }

/* ── 14. 页脚导航 ── */
.postnav {
  margin: 1.8rem 0 .5rem; padding-top: .85rem;
  border-top: 1px solid var(--line);
  display: flex; gap: .9rem; font-size: .9rem; flex-wrap: wrap; align-items: center;
}
.postnav a { color: var(--fg); text-decoration: none; font-weight: 600; }
.postnav a:hover { color: var(--accent); }

/* 返回链接：**已无页面使用**。单篇页那行「← 回首页」2026-09-29 收进了站头工具条
   （.toolbar .tool-home）。规则先留着 —— 万一还有老页面/外部引用，删掉会突然裸奔；
   真要清理时先跑一次 `grep -rho '<a class="back" href' --include=*.html .` 确认是 0。 */
.back {
  display: inline-flex; align-items: center; gap: .25rem;
  margin-bottom: 1rem; font-size: .88rem;
  color: var(--accent); text-decoration: none;
  transition: opacity .15s;
}
.back:hover { opacity: .75; text-decoration: none; }
.back::before { content: "←"; font-size: .9em; }

.c-link { margin-top: .6rem; font-size: .86rem; }
.c-link a { color: var(--accent); text-decoration: none; font-weight: 600; }
.c-link a:hover { text-decoration: underline; }

/* ── 15. 订阅（类名保留，无可见样式——表单已于 2026-09-28 移除） ── */
/* .sub  .sub-btn  .sub-form  .sub-hp  .sub-mail  .sub-msg  .sub-note
   .subscribe  .sub-hp 由 brief-site-build.py inject_subscribe() 管理 */

/* ── 16. 评论 ── */
.comments { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.comments h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.comments .c-note { color: var(--muted); font-size: .82rem; margin-bottom: .85rem; }
.c-item {
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius-sm) 0;
  padding: .6rem .85rem; margin-bottom: .55rem;
  transition: border-left-color .15s;
}
.c-item:hover { border-left-color: var(--accent); }
.c-item .c-head { font-size: .8rem; color: var(--muted); margin-bottom: .22rem; }
.c-item .c-body { white-space: pre-wrap; word-break: break-word; line-height: 1.75; }
.c-item .c-report {
  font-size: .76rem; color: var(--muted); background: none; border: 0;
  cursor: pointer; padding: 0; margin-top: .3rem; text-decoration: underline;
}
.c-item .c-report:hover { color: var(--accent); }
.c-form input[type=text], .c-form textarea {
  width: 100%; background: var(--bg); color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .48rem .62rem; font: inherit; font-size: .9rem; margin-bottom: .45rem;
  transition: border-color .15s, box-shadow .15s;
}
.c-form input[type=text]:focus, .c-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.c-form textarea { min-height: 5rem; resize: vertical; }
.c-form button {
  background: var(--accent); color: var(--accent-ink); border: 0;
  border-radius: var(--radius-sm); padding: .48rem 1.1rem;
  font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer;
  transition: background .15s, opacity .15s;
}
.c-form button:hover { background: var(--accent-deep); }
.c-form button[disabled] { opacity: .5; cursor: default; }
.c-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.c-msg { font-size: .83rem; margin-top: .45rem; color: var(--muted); }

/* ── 17. 常读页 / 通知框 ── */
.notice {
  background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); padding: .8rem 1rem;
  font-size: .85rem; color: var(--muted); margin: 1.3rem 0 1.8rem;
  line-height: 1.7;
}
.notice a { word-break: break-all; color: var(--accent); }
.guide h2 { margin: 1.5rem 0 .4rem; }
.guide .lead { font-family: var(--serif); }

/* 栏目导航（mainnav / mnav） */
.mainnav, .mnav {
  display: flex; flex-wrap: wrap; gap: .35rem .7rem;
  margin: .2rem 0 1rem; font-size: .88rem;
}
.mainnav a, .mnav a {
  color: var(--muted); text-decoration: none;
  padding: .12rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.mainnav a:hover, .mnav a:hover,
.mainnav a.here, .mnav a.here { color: var(--accent); border-bottom-color: var(--accent); }

/* ── 18. 页脚 / 通用 ── */
footer {
  color: var(--muted); font-size: .78rem; margin-top: 3rem;
  border-top: 1px solid var(--line); padding-top: 1rem;
  line-height: 1.75;
}
/* 页脚第一行 = 站点一句话介绍（生成器 SITE_TAGLINE，Gary 2026-09-29 定稿）。
   比下面的免责声明抬一档：字号略大、用正文的墨色、上边距留白，
   让它读起来像"这个站是什么"，而不是免责条款的一部分。 */
footer .tagline {
  color: var(--fg); font-size: .86rem; line-height: 1.7;
  margin: 0 0 .55rem;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 1.8rem 0; }

/* ── 分页导航（列表页每 50 条一页，生成器 pager_html()） ──
   静态站没有 JS 分页，这一排就是全部导航：上一页 / 页码 / 下一页 + 一行"这是第几页"。
   `.is-off` 是首末页那两个不可点的箭头（用 span 不用 a：点不动的东西就不该长成链接）。 */
.pager {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  margin: 1.6rem 0 .4rem; padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.pager .pg {
  display: inline-block; min-width: 1.9rem; padding: .22rem .5rem;
  text-align: center; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--fg); font-size: .82rem;
}
.pager a.pg:hover { border-color: var(--accent); color: var(--accent); }
.pager .pg.is-cur { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.pager .pg.is-off { color: var(--muted); opacity: .55; }
.pager .pg-arrow { padding: .22rem .7rem; }
.pager .pg-gap { color: var(--muted); padding: 0 .15rem; }
.pager .pg-info {
  flex: 1 1 100%; color: var(--muted); font-size: .76rem; margin-top: .35rem;
}
code {
  background: var(--card); border: 1px solid var(--line); border-radius: .25rem;
  padding: .04rem .28rem; font-size: .84em;
  font-family: var(--mono);
}
em { color: var(--muted); font-style: normal; font-size: .84rem; }

/* ── 19. 小屏（≤600px，移动端优先微调） ── */
@media (max-width: 600px) {
  .wrap { padding-left: .85rem; padding-right: .85rem; }
  header.top .brand { font-size: 1.05rem; }
  article[data-srow] { padding: .9rem .95rem .8rem; }
  .category-filter { max-width: 8.5rem; }
  .site-tools { gap: .35rem; padding: .38rem; }
  h1.art { font-size: 1.12rem; }
  .back-top { right: .65rem; bottom: .65rem; }
  .hfeed .hlist { font-size: .97rem; }
}

/* ── 20. 打印：只留正文 ── */
@media print {
  .site-tools, .back-top, .read-progress, .subscribe, .comments,
  .postnav, .catnav, .fsr, .thm, .speak { display: none !important; }
  body { background: #fff; color: #000; }
  article[data-srow] { box-shadow: none; break-inside: avoid; }
  .notice { border-color: #ccc; }
}
