/* ============================================================
   念念 NIANNIAN · 设计系统 v2
   两套主题：日间「纸」/ 夜间「灯下」
   六条自我约束：
     1. 两个模式都避开纯黑与纯白，底色永远带一点暖
     2. 只有一种强调色（珊瑚），用得越少越贵
     3. 数字统一衬线等宽，它是这个产品的视觉基石
     4. 动效只做位移与透明度，慢一些，绝不闪烁
     5. 阴影只在日间用，且必须是暖灰
     6. 一切动效都可被 prefers-reduced-motion 关掉
   ============================================================ */

/* ---------- 品牌字体 ----------
   三套自托管子集，各司其职：
     1. 霞鹜新晰黑 Bold（nn-hei-700.woff2）—— 平台名「念念不忘」
        笔画饱满厚重、结构方正的黑体，作为中文主标识。
     2. Archivo Semibold（nn-archivo-600.woff2）—— 域名 nnbw.top
        字腔开阔、笔画匀实的 grotesque，和中文黑体拉开性格。
     3. 思源宋体（Noto Serif SC，SIL OFL 1.1）四档 —— 署名、数字、统计、
        号码格子。四档都在 @font-face 注册，但只有 600 真正被 CSS 引用，
        浏览器因此只下载 600 一份。
   为什么要自带字体：系统里「思源宋体 / 宋体 / 黑体」各不相同，
   同一枚 Logo 在 Windows 和 macOS 上会长得不一样，字重也差一档。
   自托管之后，全世界的念念都是同一张脸。 */

@font-face {
  font-family: "Niannian Brand";
  src: url("nn-brand-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Niannian Brand";
  src: url("nn-brand-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Niannian Brand";
  src: url("nn-brand-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Niannian Brand";
  src: url("nn-brand-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* 平台名专用：霞鹜新晰黑（黑体），笔画饱满厚重，结构方正。
   注意：绝不能用 font-display:block —— block 会让文字在字体就绪前完全不可见，
   刷新时表现为「先消失、再出现」一闪。swap 让 fallback 立即可见，
   字体一到就替换，配合 head 里的 preload 实际几乎无等待，不再闪。 */
@font-face {
  font-family: "Niannian Hei";
  src: url("nn-hei-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* 域名专用：Archivo grotesque，字腔开阔、笔画匀实 */
@font-face {
  font-family: "Niannian Archivo";
  src: url("nn-archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- 主题令牌：日间 ---------- */

:root {
  color-scheme: light;

  --bg:          #F4F1EA;
  --bg-soft:     #EDE9E0;
  --panel:       #FBF9F4;
  --panel-2:     #F1EDE4;
  --input-bg:    #FEFCF8;
  --header-bg:   rgba(244, 241, 234, .82);

  --line:        #E3DDD0;
  --line-2:      #D1C8B7;
  --line-faint:  #ECE7DB;

  --text:        #2A2D33;
  --text-2:      #4E545D;
  /* 辅助文字以前是 #6E7480 / #8B9099：在暖纸底上只有 4.16 / 2.84，
     12px 的小字基本读不清。压深到 4.5 以上，层级仍保持
     text > text-2 > muted > faint 四档，不会糊成一片。 */
  --muted:       #565C68;
  --faint:       #626875;
  --placeholder: #B4AE9F;

  --accent:       #C0543E;
  --accent-hover: #AB4834;
  --accent-2:     #A2452F;
  --on-accent:    #FFF8F3;
  --accent-bg:    rgba(192, 84, 62, .07);
  --accent-line:  rgba(192, 84, 62, .30);
  --ring:         rgba(192, 84, 62, .16);

  --mint:     #2C8770;
  --mint-bg:  rgba(44, 135, 112, .09);
  --amber:    #A2731E;
  --amber-bg: rgba(162, 115, 30, .10);

  --cell-off-text:   #C3BCAD;
  --cell-off-border: #E8E2D6;
  --row-hover:       #F0ECE3;

  --shadow-1: 0 1px 2px rgba(74, 60, 40, .04), 0 8px 20px -14px rgba(74, 60, 40, .20);
  --shadow-2: 0 2px 6px rgba(74, 60, 40, .05), 0 22px 44px -26px rgba(74, 60, 40, .28);

  /* 纸感三件套（美化 3）：纸面 / 纸纤维 / 印刷边框与晕影 / 纸面高光。
     证书、纪念卡各自手写同一组渐变和阴影，改一处漏一处，
     夜间主题的白色微光版还各抄各的。收敛成 token，三主题各覆盖一次，
     任何「一张纸」的组件都从这里取值，不再自己配色。 */
  --paper-face: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  --paper-grain:
    repeating-linear-gradient(94deg, rgba(140, 120, 90, .035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(2deg, rgba(140, 120, 90, .022) 0 1px, transparent 1px 4px);
  --paper-edge:
    inset 0 0 0 1px rgba(255, 255, 255, .5),
    inset 0 0 0 10px transparent,
    inset 0 0 0 11px rgba(120, 100, 70, .10),
    inset 0 0 40px rgba(120, 100, 70, .06);
  --paper-sheen:
    radial-gradient(130% 90% at 50% -8%, rgba(255, 255, 255, .58), rgba(255, 255, 255, 0) 58%),
    radial-gradient(120% 100% at 50% 112%, rgba(118, 96, 66, .10), rgba(118, 96, 66, 0) 62%);

  --grain: .030;
  --orb-1: rgba(192, 84, 62, .15);
  --orb-2: rgba(140, 160, 130, .125);
  --orb-3: rgba(196, 160, 110, .125);
  --sheen: rgba(255, 255, 255, .70);

  --radius:    10px;
  --radius-sm: 6px;
  --ease:      cubic-bezier(.22, .68, .28, 1);
  /* 微交互的物理感（美化 5）：全站「按压 / 印章」只许用这两条曲线——
     --spring 是松手回弹：过冲一点再落位，像按在真实材料上；
     --ease-stamp 是印章落纸：先快后顿，关键帧里再补一个压实帧。
     以前按钮按下去 scale(.99) 几乎无感、松手直线弹回，
     各处印章动效又各调各的贝塞尔，手感散落一片。 */
  --spring:     cubic-bezier(.34, 1.6, .4, 1);
  --ease-stamp: cubic-bezier(.3, .9, .4, 1);
  /* 反馈时长只留三档：微动 / 常规 / 整块浮现。
     以前每个组件自己写 .12s ~ .9s，同一个页面里快慢不一，
     看着像几套界面拼起来的。新组件一律从这三个里挑。 */
  --dur-1: .16s;
  --dur-2: .24s;
  --dur-3: .32s;

  --serif: "Georgia", "Songti SC", "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
           "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono:  "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* 默认（data-font="system" 或不写）：全站系统无衬线，零加载、永不闪。
     编号与署名数字同样走系统无衬线——这样切到「衬线 / 品牌 / 楷体」时，
     编号字体会明显变化，不会再出现「只改了站名、编号没动」的错觉。
     预设同时作用于三段：--brand（编号 / 署名数字）、--brand-cn（站名）、--brand-domain（域名）。 */
  --brand: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
           "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --brand-cn: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
              "Noto Sans SC", sans-serif;
  --brand-domain: "Archivo", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --logo-accent: #C0543E;
  --logo-paper:  #F4F1EA;
}

/* ---------- 字体预设：管理员后台「外观 → 站点字体」可切换 ----------
   默认（不写 data-font 或 data-font="system"）即上面的系统无衬线，永不闪。
   其余预设只在管理员主动选择时生效；品牌字才会加载自托管字体。 */
html[data-font="brand"] {
  --brand: "Niannian Brand", "Source Han Serif SC", "Noto Serif SC", "Songti SC", Georgia, serif;
  --brand-cn: "Niannian Hei", "LXGW Neo Xi Hei", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --brand-domain: "Niannian Archivo", "Archivo", "Helvetica Neue", Arial, sans-serif;
}
html[data-font="serif"] {
  --brand: Georgia, "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --brand-cn: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --brand-domain: "Archivo", "Helvetica Neue", Georgia, serif;
}
html[data-font="kai"] {
  --brand: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "Noto Serif SC", serif;
  --brand-cn: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "Noto Serif SC", serif;
  --brand-domain: "Kaiti SC", "STKaiti", "KaiTi", Georgia, serif;
}
html[data-font="rounded"] {
  --brand: "Yuanti SC", "Hiragino Maru Gothic ProN", "PingFang SC", "Microsoft YaHei",
           "Source Han Sans SC", sans-serif;
  --brand-cn: "Yuanti SC", "Hiragino Maru Gothic ProN", "PingFang SC", "Microsoft YaHei",
              "Source Han Sans SC", sans-serif;
  --brand-domain: "Yuanti SC", "Hiragino Maru Gothic ProN", "Archivo", "PingFang SC", Arial, sans-serif;
}

/* ---------- 主题令牌：夜间 ---------- */

html[data-theme="dark"] {
  color-scheme: dark;

  --bg:          #17181E;
  --bg-soft:     #1D1F26;
  --panel:       #20232B;
  --panel-2:     #282C35;
  --input-bg:    #1B1E24;
  --header-bg:   rgba(23, 24, 30, .82);

  --line:        #2E323C;
  --line-2:      #3D424E;
  --line-faint:  #262A33;

  --text:        #D9DCE3;
  --text-2:      #B3B8C3;
  --muted:       #8F95A1;
  /* 深底上的小字同样是 12px，#6F7683 只有 3.87，压到 4.5 以上。 */
  --faint:       #868D9A;
  --placeholder: #4C5464;

  --accent:       #C96A5B;
  --accent-hover: #D97C6C;
  --accent-2:     #EFA093;
  --on-accent:    #FFF7F3;
  --accent-bg:    rgba(201, 106, 91, .12);
  --accent-line:  rgba(201, 106, 91, .34);
  --ring:         rgba(201, 106, 91, .20);

  --mint:     #6EC7AB;
  --mint-bg:  rgba(110, 199, 171, .10);
  --amber:    #E0B267;
  --amber-bg: rgba(224, 178, 103, .10);

  --cell-off-text:   #404857;
  --cell-off-border: #1B2028;
  --row-hover:       #191C23;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .28);
  --shadow-2: 0 18px 40px -26px rgba(0, 0, 0, .75);

  /* 纸感三件套（夜间）：深底上白光才有「纸浮在暗处」的效果，
     黑影是看不见的（视觉红线）；纸纤维改用白色微光，不然夜里像蒙了层土。 */
  --paper-face: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  --paper-grain:
    repeating-linear-gradient(94deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(2deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 4px);
  --paper-edge:
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    inset 0 0 0 10px transparent,
    inset 0 0 0 11px rgba(255, 255, 255, .07),
    inset 0 0 48px rgba(0, 0, 0, .35);
  --paper-sheen:
    radial-gradient(130% 90% at 50% -8%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 55%),
    radial-gradient(120% 100% at 50% 112%, rgba(0, 0, 0, .30), rgba(0, 0, 0, 0) 62%);

  --grain: .022;
  --orb-1: rgba(201, 106, 91, .145);
  --orb-2: rgba(110, 150, 140, .105);
  --orb-3: rgba(150, 130, 110, .095);
  --sheen: rgba(255, 255, 255, .045);

  --logo-accent: #C96A5B;
  --logo-paper:  #17181E;
}

/* ---------- 主题令牌：高对比 ----------
   第三套主题，给的是「看不清」的那部分人：
   纯黑底、纯白字、边框全部拉满，靠颜色区分的地方一律改成靠边框区分。
   不做「夜间加深」的变体——那样只是更暗，不是对比更强。 */

html[data-theme="contrast"] {
  color-scheme: dark;

  --bg:          #000000;
  --bg-soft:     #0B0B0C;
  --panel:       #101012;
  --panel-2:     #1A1A1D;
  --input-bg:    #0B0B0C;
  --header-bg:   rgba(0, 0, 0, .92);

  --line:        #4A4A50;
  --line-2:      #6E6E76;
  --line-faint:  #2A2A2E;

  --text:        #FFFFFF;
  --text-2:      #E4E4E8;
  --muted:       #C0C0C8;
  --faint:       #9A9AA4;
  --placeholder: #6E6E76;

  --accent:       #FF9B7A;
  --accent-hover: #FFB295;
  --accent-2:     #FFB295;
  --on-accent:    #000000;
  --accent-bg:    rgba(255, 155, 122, .16);
  --accent-line:  rgba(255, 155, 122, .55);
  --ring:         rgba(255, 155, 122, .35);

  --mint:     #6FE3B8;
  --mint-bg:  rgba(111, 227, 184, .16);
  --amber:    #FFD166;
  --amber-bg: rgba(255, 209, 102, .16);

  --cell-off-text:   #6E6E76;
  --cell-off-border: #3A3A40;
  --row-hover:       #17171A;

  --shadow-1: 0 0 0 1px #4A4A50;
  --shadow-2: 0 0 0 1px #6E6E76;

  /* 纸感三件套（高对比）：纯黑底上纸面就是黑、边框拉满亮度；
     纤维和晕影全部归零——装饰在「看不清」的需求面前一律让路。 */
  --paper-face: #0B0B0C;
  --paper-grain: none;
  --paper-edge:
    inset 0 0 0 1px rgba(255, 255, 255, .18),
    inset 0 0 0 10px transparent,
    inset 0 0 0 11px rgba(255, 255, 255, .20);
  --paper-sheen: none;

  --grain: 0;
  --orb-1: rgba(255, 155, 122, .10);
  --orb-2: rgba(111, 227, 184, .08);
  --orb-3: rgba(255, 209, 102, .07);
  --sheen: rgba(255, 255, 255, .06);

  --logo-accent: #FF9B7A;
  --logo-paper:  #000000;
}

/* 高对比下：所有「靠颜色分辨」的地方补一条边框，
   因为色盲用户分不出琥珀和砖红，但一定分得出线。 */
html[data-theme="contrast"] .status,
html[data-theme="contrast"] .tag,
html[data-theme="contrast"] .btn,
html[data-theme="contrast"] .card {
  border-width: 1px;
}
html[data-theme="contrast"] .ambient { display: none; }
/* 纸面底色与去装饰走主题令牌（--paper-face/-grain/-sheen），这里只管边框亮度 */
html[data-theme="contrast"] .cert { border-color: #6E6E76; }
html[data-theme="contrast"] .cert::before { display: none; }
html[data-theme="contrast"] .cert-edge { display: none; }

/* ---------- 基础 ---------- */

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* 全屏 fixed 层（纸纹 / 浮尘）按「含滚动条的 ICB」算宽度，比可见区宽
     十来个像素，窄屏上就会多出一条横向滚动。clip 只裁不建滚动容器，
     不会像 hidden / auto 那样把 sticky 的参照系偷走。 */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 与 html 保持一致：clip 不创建滚动容器，吸顶目录 / 表头照常吸顶。 */
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }

::selection { background: var(--accent-line); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 6px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--faint); }

/* ---------- 环境层：光斑 + 纸纹 ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient i {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}

/* 用径向渐变代替 filter: blur()：观感接近，但只是一次绘制，
   低端安卓机上不会拖慢滚动 */
.orb-1 {
  width: 46vw; height: 46vw;
  top: -14vw; left: -8vw;
  background: radial-gradient(circle at 50% 50%, var(--orb-1), transparent 72%);
  animation: drift-a 46s var(--ease) infinite alternate;
}
.orb-2 {
  width: 40vw; height: 40vw;
  top: 2vw; right: -12vw;
  background: radial-gradient(circle at 50% 50%, var(--orb-2), transparent 72%);
  animation: drift-b 58s var(--ease) infinite alternate;
}
.orb-3 {
  width: 44vw; height: 44vw;
  bottom: -20vw; left: 30vw;
  background: radial-gradient(circle at 50% 50%, var(--orb-3), transparent 72%);
  animation: drift-c 52s var(--ease) infinite alternate;
}

/* 纸纹：让大片底色不至于死平 */
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, 3vh, 0) scale(1.10); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to   { transform: translate3d(-3vw, 4vh, 0) scale(.96); }
}
@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(.98); }
  to   { transform: translate3d(3vw, -3vh, 0) scale(1.08); }
}

/* 顶部阅读进度 */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 90;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: .75;
  transition: width .12s linear;
  pointer-events: none;
}

/* ---------- 布局 ---------- */

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 760px; }

main, .site-footer { position: relative; z-index: 1; }

.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 62px;
}

/* 品牌标识：图形 + 字。
   字分两套：
   平台名「念念不忘」用自带的霞鹜新晰黑（黑体），笔画饱满厚重、结构方正；
   域名 nnbw.top 用 Archivo grotesque，字腔开阔、笔画匀实，和黑体拉开性格。
   两套都是自托管子集，Windows 上不会掉回宋体。 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--brand-cn);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
  transition: opacity .2s;
}
.brand:hover { opacity: .82; color: var(--text); }

/* 图标：盒子的宽高 = 图形的墨迹宽高。
   LogoMark.php 的 viewBox 已经贴着墨迹裁过了（不是 0 0 40 40），
   所以这里写多少 px，图形就真的有多高，不会再留一圈看不见的白。
   35px 是配平出来的：文字块（名字墨迹 + 间距 + 域名墨迹）实测 35.25px。 */
.brand .logo-mark {
  width: 35px;
  height: 35px;
  flex: none;
  display: block;
  overflow: visible;
}
/* 兜底：不让任何全局定位规则碰到图形里的笔画 */
.brand .logo-mark path,
.brand .logo-mark circle,
.brand .logo-mark rect { position: static; }
.brand .logo-mark rect,
.brand .logo-mark circle { transition: fill .35s var(--ease); }
.brand:hover .logo-mark circle,
.brand:hover .logo-mark rect { fill: var(--accent-hover); }
.brand small {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: .2em;
  color: var(--faint);
  text-transform: uppercase;
  align-self: flex-end;
  padding-bottom: 2px;
}
/* 中文末字后面也会带一个字距，负边距把视觉重心拉回来 */
.brand > span:not(.brand-name) { margin-right: -.1em; }

/* 品牌块：上「念念不忘」，下 nnbw.top。
   两行左右严格等宽，且左端与右端同时咬合。

   做法：
   1. .brand-name 是单列 grid，列宽 max-content —— 由平台名撑出真实宽度；
   2. 域名行 width:100% 于是与平台名同宽；
   3. 域名行内部用 flex + space-between，首字符贴左端、末字符贴右端。

   为什么第 3 步用 space-between 而不是负边距：
   负边距只能对齐一端，另一端会差半个字距；
   space-between 两端都准，但要求域名自然宽度不能远小于平台名，
   否则字符间隙被拉开会散成「n n b w . t o p」。
   所以域名用 Archivo（字腔开阔、笔画匀实），在 16px 下自然宽度接近平台名，
   分配到 6 个间隙上的余量很小，既齐整又不散。

   高度：对齐的是「墨迹」不是「盒子」。
   盒子高相等 ≠ 看起来一样高 —— 行高留白、SVG viewBox 空白都会偷走高度。
   tools/brand/audit_ink.py 按像素实测三者的墨迹边界，
   当前实测：图标 34.75px / 文字块 35.25px（名字 18.5 + 间距 2.5 + 域名 14.25），
   差 0.5px，肉眼看是齐平的。 */
/* 品牌块：一个 max-content 的单列网格，两行分别是平台名和域名。
   行盒贴住墨迹：中文 line-height 收到 1、row-gap 收到 0，
   于是「名字墨迹底 → 域名墨迹顶」的空白只剩字体自身的上下留白（约 2.7px）。
   之前 line-height:1.1 + row-gap:2px 会撑出 7px 的空当，看着松散。 */
.brand-name {
  display: grid;
  grid-template-columns: max-content;
  row-gap: 0;
  line-height: 1;
  align-content: center;
}
.brand-cn {
  font-family: var(--brand-cn);
  font-size: 21px;
  line-height: 1;
  letter-spacing: .06em;
  /* 粗细只靠 font-weight（600 比 700 细一档，更精致），不靠描边；
     描边在 fallback 态不生效会闪。系统字体有多档字重，600 自然生效；
     切到品牌字时字库仅 700 一档，浏览器取最近档位，仍清晰。 */
  font-weight: 600;
  font-synthesis: none;
  /* letter-spacing 加在每个字符之后，末字会多出一个尾随字距（21 × .06 = 1.26px）。
     用等宽负边距抵消，让网格列宽 = 文字真实墨迹宽度，
     域名行的两端才能和平台名的两端同时咬合。 */
  margin-right: -.06em;
}
/* 域名：两端对齐 —— 首字符贴平台名首字，末字符贴平台名末字。
   space-between 分摊的是「剩余空间」：域名自然宽 69px、平台名墨迹宽 87.8px，
   差 18.6px 分到 6 个间隙上，每个约 3.1px —— 齐整又不散。
   字号必须守住 16px：降到 15px 的话自然宽缩到 65px，
   每个间隙涨到 3.8px，又会读成「n n b w . t o p」。 */
.brand-domain {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: baseline;
  /* 名字与域名之间留一点呼吸：向下推开 1.5px（轻推，不拉太远）。
     之前推到 3px 显得松散，现在收紧到 1.5px，和原版 -1.5px 之间取中。 */
  margin-top: 1.5px;
  font-family: var(--brand-domain);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--faint);
  transition: color .2s;
}
.brand-domain i { font-style: normal; }
.brand:hover .brand-domain { color: var(--muted); }

.brand-foot {
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
}
/* 页脚与顶部同一套结构，只按比例缩小：图标 30/35、平台名 18/21、域名 13/16，
   所以「图标大小」和「域名两端对齐」都和顶部一致，不再各做各的。 */
.brand-foot .logo-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand-foot .brand-cn { font-size: 18px; }
.brand-foot .brand-domain {
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0;
  margin-top: 1.5px;
}

/* 站点统计：跟在页脚标语下面，数字用衬线等宽，和编号同源 */
.site-stat {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--faint);
  letter-spacing: .02em;
}
.site-stat .st-num {
  font-family: var(--brand);
  font-weight: 600;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.nav-links { display: flex; gap: 26px; font-size: 13.5px; color: var(--muted); }
.nav-links a {
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .34s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav-links a.on { color: var(--text); }
.nav-links a.on::after { transform: scaleX(1); background: var(--line-2); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.nav-logout { display: inline-flex; align-items: center; margin: 0; padding: 0; }
.nav-logout-btn {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px;
  font-size: 13px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.nav-logout-btn:hover { color: var(--text); border-color: var(--accent); }

/* ---------- 卡片装饰：右下角浅数字 / 引号 ---------- */

.card-step { position: relative; overflow: hidden; }
.card-step::after {
  content: attr(data-n);
  position: absolute;
  right: 12px;
  bottom: 2px;
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  font-size: 68px;
  line-height: 1;
  color: var(--text);
  opacity: .045;
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.card-step:hover::after { opacity: .075; transform: translateY(-3px); }

.quote-card { position: relative; overflow: hidden; }
.quote-card::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: -26px;
  font-family: var(--serif);
  font-size: 168px;
  line-height: 1;
  color: var(--accent);
  opacity: .08;
  pointer-events: none;
}

/* ---------- 首屏 ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px;
  align-items: center;
  padding: 82px 28px 62px;
}
.hero h1 { font-size: 44px; line-height: 1.28; letter-spacing: -.02em; }
.hero-copy { min-width: 0; }
.hero-actions { margin-top: 34px; gap: 12px; flex-wrap: wrap; }
.hero-stats { margin-top: 44px; gap: 0; flex-wrap: wrap; }
/* 三个数之间用一条发丝线隔开：比 40px 的空白更「像一组数据」，
   空白只会让人以为是三块互不相干的东西。 */
.hero-stats .stat + .stat {
  margin-left: 30px;
  padding-left: 30px;
  border-left: 1px solid var(--line-faint);
}

/* 窄屏上第三个数据会折到第二行，那条「左边距 + 发丝线 + 内边距」跟着折过去，
   看起来就像这一块莫名其妙缩进了 60px。折行了就不再假装还在同一行。 */
@media (max-width: 520px) {
  .hero-stats { row-gap: 20px; }
  .hero-stats .stat:nth-child(3) {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}

/* 卡片背后一圈极淡的环，像盖章时留下的印痕 */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

/* 叠放的参照系：宽高都由最上面那张卡决定，
   下层的两张纸才能严丝合缝地「垫」在它下面。 */
.plate-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: grid;
  place-items: center;
}
.ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  /* 环跟着卡片走，不跟容器走。之前按 .hero-visual 的宽度算，
     直径到了 480px，两个大圆圈飘在卡片外面，像没用完的草稿。 */
  width: calc(100% + 54px);
  aspect-ratio: 1 / 1;
}
.ring-1 {
  border: 1px solid var(--line-2);
  opacity: .34;
}
.ring-2 {
  width: calc(100% + 18px);
  border: 1px dashed var(--line-2);
  opacity: .42;
  animation: ring-spin 160s linear infinite;
}

/* 下面垫着的两张「已经发出去的号」 */
.plate-sheet {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--panel-2);
  pointer-events: none;
}
/* 偏移量要压过卡片自己那层大阴影，否则两张纸只露出 1px 的边，
   远看就是「卡片有一圈脏边」，看不出是叠着的。 */
.plate-sheet.s1 {
  transform: translate(11px, 13px) rotate(1.7deg);
}
.plate-sheet.s2 {
  transform: translate(22px, 27px) rotate(3.4deg);
  background: var(--bg-soft);
  opacity: .7;
}
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.hero-plate {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px 22px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  /* 两层：一层贴边的硬阴影给「厚度」，一层大范围的软阴影给「离桌面有多高」。
     只用 --shadow-2 的话 44px 的模糊半径会把下面垫着的两张纸盖没。 */
  box-shadow:
    0 1px 2px rgba(74, 60, 40, .07),
    0 14px 30px -18px rgba(74, 60, 40, .26);
  overflow: hidden;
}
.hero-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 76% at 50% -18%, var(--accent-bg), transparent 72%);
  pointer-events: none;
}
.hero-plate > * { position: relative; z-index: 1; }

/* 一道极慢的光扫过卡片，像纸被翻了一下 */
.hero-plate::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -50%;
  width: 36%;
  height: 140%;
  background: linear-gradient(90deg, transparent, var(--accent-bg), transparent);
  transform: skewX(-16deg);
  animation: plate-sheen 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes plate-sheen {
  0%, 60% { left: -50%; }
  100%   { left: 112%; }
}

.plate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-faint);
}

.plate-stage {
  position: relative;
  height: 152px;
}
.swap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  opacity: 0;
  animation: sig-swap 18s var(--ease) infinite;
}
.swap:nth-child(2) { animation-delay: 6s; }
.swap:nth-child(3) { animation-delay: 12s; }
.plate-stage .signature { font-size: 29px; }
.plate-cap { font-size: 12px; color: var(--muted); letter-spacing: .01em; }

@keyframes sig-swap {
  0%, 4%    { opacity: 0; transform: translateY(10px); }
  9%, 30%   { opacity: 1; transform: translateY(0); }
  35%, 100% { opacity: 0; transform: translateY(-10px); }
}

.plate-foot {
  display: flex;
  gap: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line-faint);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .04em;
}
.plate-foot span { position: relative; padding-left: 9px; }
.plate-foot span::before {
  content: "";
  position: absolute;
  left: 0; top: .68em;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--line-2);
}

/* ---------- 主题开关 ---------- */

.theme-toggle {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: color .24s, border-color .24s, background .24s, transform .24s var(--spring);
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--faint);
  background: var(--panel-2);
}
.theme-toggle:active { transform: scale(.9); }

.theme-toggle svg {
  position: absolute;
  width: 15px;
  height: 15px;
  transition: opacity .34s var(--ease), transform .46s var(--ease);
}
.theme-toggle .i-sun { opacity: 0; transform: rotate(-70deg) scale(.55); }
.theme-toggle .i-moon { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(70deg) scale(.55); }

/* 只在这半秒里允许颜色过渡，避免拖慢首屏 */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color .36s ease, border-color .36s ease,
              color .36s ease, fill .36s ease, stroke .36s ease,
              box-shadow .36s ease !important;
}

/* ---------- 通用元件 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-2), border-color var(--dur-2), color var(--dur-2),
              transform var(--dur-2) var(--spring), box-shadow var(--dur-2);
}
.btn:hover {
  background: var(--panel-2);
  border-color: var(--faint);
  transform: translateY(-1px);
}
/* 按下去是真的「压进去」（.97 才有手感），松手靠 --spring 过冲回弹 */
.btn:active { transform: translateY(0) scale(.97); }
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  box-shadow: 0 6px 18px -10px var(--accent-line);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
  box-shadow: 0 10px 24px -12px var(--accent-line);
}
.btn-ghost { border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--panel); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn-block { width: 100%; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: inset 0 1px 0 var(--sheen), var(--shadow-1);
  transition: border-color var(--dur-2), box-shadow var(--dur-3), transform var(--dur-3) var(--spring);
}
.card-tight { padding: 16px 18px; }
.card-flat { background: transparent; box-shadow: none; }

a.card:hover {
  border-color: var(--line-2);
  box-shadow: inset 0 1px 0 var(--sheen), var(--shadow-2);
  transform: translateY(-3px);
  color: inherit;
}

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spacer { flex: 1; }

/* ---------- 排版 ---------- */

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 34px; line-height: 1.35; }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
h4 { font-size: 13.5px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  flex: 0 0 20px;
  background: var(--accent-line);
}

.lead { font-size: 15px; color: var(--text-2); line-height: 1.85; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }

.serif { font-family: var(--brand); font-weight: 600; }
.num {
  font-family: var(--brand);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* ---------- 署名：全站唯一的品牌资产 ---------- */

/* 署名里的「念念」和编号数字共用一款宋体，
   这样 Windows 上的宋体发灰问题不会蔓延到用户贴在页脚的那行字。 */
.signature {
  font-family: var(--brand);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
  display: inline-flex;
  align-items: baseline;
  gap: .35em;
  white-space: nowrap;
}
.signature .mid {
  color: var(--faint);
  font-size: .82em;
  font-weight: 400;
  transition: color .3s;
}
.signature .no { color: var(--text); }
.signature:hover .mid { color: var(--accent); }
.signature.sm { font-size: 15px; }
.signature.md { font-size: 22px; }
.signature.lg { font-size: 40px; }
.signature.xl { font-size: 58px; }

/* ---------- 编号格子 ---------- */

/* 编号是一个整体。20261109 就是这一枚的名字，不拆成「2026」+「1109」：
   拆成两行读，等于告诉人前半截只是年份、后半截才是号——
   而这页的原话是「编号只是署名，不排先后、也不分好坏」，
   一旦拆开，大家就会开始挑「后面那四位」，甚至以为号码按年份排资历。
   所以整串一行，靠等宽数字 + 均匀字距让它像一枚盖上去的印；
   左边那条 2px 竖线只是撕口，不承担分组。 */
.pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 7px;
}

.cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 6px;
  /* 左边这条 2px 竖线是票根撕口：可用号偏暖，灰号偏冷 */
  border: 1px solid var(--line);
  border-left: 2px solid var(--line-faint);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-family: var(--brand);
  font-weight: 600;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .045em;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
  overflow: hidden;
  box-shadow: inset 0 1px 0 var(--sheen);
  transition: border-color .18s, background .18s, color .18s, transform .18s var(--ease);
}
.cell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120px 64px at 50% 0%, var(--accent-bg), transparent 72%);
  opacity: 0;
  transition: opacity .32s;
  pointer-events: none;
}
a.cell:hover {
  border-color: var(--line);
  border-left-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}
a.cell:hover::after { opacity: 1; }

/* 已占用：灰色，绝不用红色——红色是失败感 */
.cell.taken {
  color: var(--cell-off-text);
  background: transparent;
  border-color: var(--cell-off-border);
  cursor: default;
}
.cell.taken:hover { transform: none; border-color: var(--cell-off-border); }
.cell.taken::after { display: none; }

/* 尚未放出：比已占用再淡一点，但不至于看不清 */
.cell.dim {
  color: var(--cell-off-text);
  background: transparent;
  border-color: var(--cell-off-border);
  opacity: .72;
  cursor: default;
}
.cell.dim::after { display: none; }

/* 本场新增：只有一点点边缘光，不做金色描边 */
.cell.fresh {
  border-color: var(--accent-line);
  animation: cell-breathe 5.5s ease-in-out infinite;
}
@keyframes cell-breathe {
  0%, 100% { border-color: var(--line); }
  50%      { border-color: var(--accent-line); }
}

/* ---------- 大厅：头部与统计 ---------- */

/* 原来「可领 9,917 枚 · 已领 3 枚」是一行 12px 小字，缩在标题下面，
   跟着整页一起被忽略。现在和首页一样拆成两栏数字，用发丝线隔开。 */
.pool-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding-top: 44px;
  padding-bottom: 22px;
}
.pool-h1 {
  font-size: 30px;
  margin-top: 10px;
}
.pool-sub {
  margin-top: 10px;
  max-width: 440px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}
.pool-side {
  display: flex;
  align-items: flex-end;
  gap: 26px;
  flex-wrap: wrap;
}
.pool-stats {
  display: flex;
  align-items: flex-end;
}
.pstat + .pstat {
  margin-left: 22px;
  padding-left: 22px;
  border-left: 1px solid var(--line-faint);
}
.pstat-v {
  font-family: var(--brand);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 27px;
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
}
.pstat-s {
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: .02em;
}
.pool-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- 大厅：号码板 ---------- */

/* 240 个格子直接铺在页面底色上会和背景糊在一起，
   给它们一块板子（浅一档的底 + 发丝边），网格才有「容器」感。 */
.pool-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 6px 6px 4px;
}
.pool-board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 10px 12px;
}
.pbh-l {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .04em;
}
.pbh-r {
  font-size: 11.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* ---------- 大厅：翻页 ---------- */

/* 以前根本没有翻页：limit 写死 240，剩下九千多个号从界面上走不到。 */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 8px 16px;
  border-top: 1px solid var(--line-faint);
  margin-top: 10px;
}
.pg,
.pg-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-size: 12.5px;
  color: var(--text-2);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: border-color .16s, color .16s, background .16s;
}
.pg-num { min-width: 32px; padding: 0 8px; }
a.pg:hover,
a.pg-num:hover { border-color: var(--accent-line); color: var(--text); }
.pg-num.is-on {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-bg);
}
.pg.is-off { color: var(--faint); opacity: .55; }
.pg-nums { display: inline-flex; align-items: center; gap: 5px; }
.pg-gap { color: var(--faint); font-size: 12px; padding: 0 1px; }

@media (max-width: 640px) {
  .pool-head { padding-top: 30px; gap: 18px; }
  .pool-h1 { font-size: 26px; }
  /* 手机上「两个数字 + 两个按钮」挤不进一行，会被裁到屏幕外。
     竖着排，各占一行。 */
  .pool-side { flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; }
  .pool-actions { width: 100%; }
  .pstat-v { font-size: 23px; }
  .pstat + .pstat { margin-left: 16px; padding-left: 16px; }
  .pool-board { padding: 4px; }
  .pg-arrow { padding: 0 9px; }
}

/* ---------- 展示馆缩略图 ---------- */

.gthumb {
  position: relative;
  height: 132px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(140% 120% at 18% 0%, var(--accent-bg), transparent 64%),
    linear-gradient(135deg, var(--panel-2), var(--bg-soft));
  overflow: hidden;
}
/* 极淡的方格，让空缩略图也有结构，而不是一块死色 */
.gthumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .42;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 50%, #000, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 50%, #000, transparent 78%);
}
.gthumb > * { position: relative; z-index: 1; }
.gthumb-mark {
  font-size: 38px;
  line-height: 1;
  color: var(--faint);
  opacity: .55;
  transform: translateY(-2px);
  transition: opacity .5s, transform .6s var(--ease);
}
a.card:hover .gthumb-mark { opacity: .8; transform: translateY(-2px) scale(1.06); }
.gthumb img { transition: transform .7s var(--ease); }
a.card:hover .gthumb img { transform: scale(1.045); }

/* ---------- 表单 ---------- */

label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }

.input, select, textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--input-bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { height: auto; padding: 10px 12px; line-height: 1.7; resize: vertical; }

.input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.input::placeholder, textarea::placeholder { color: var(--placeholder); }

.field { margin-bottom: 16px; }
.field-error { margin-top: 5px; font-size: 12px; color: var(--accent-2); }
.hint { margin-top: 5px; font-size: 11.5px; color: var(--faint); line-height: 1.6; }
.hint-err { color: var(--accent-2); }

/* 「该填这里了」的闪烁提示。
   光靠 focus 不够——输入框可能在视口外，用户仍会觉得点了没反应。
   描边闪两下是最快让人找到目标的方式，且不动布局、不引起跳动。 */
@keyframes req-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); border-color: var(--line); }
  20%      { box-shadow: 0 0 0 3px rgba(139, 58, 46, .22); border-color: var(--accent-2); }
  60%      { box-shadow: 0 0 0 3px rgba(139, 58, 46, .12); border-color: var(--accent-2); }
}
.req-flash {
  animation: req-flash 1.6s ease-out 1;
  border-color: var(--accent-2) !important;
}
@media (prefers-reduced-motion: reduce) {
  .req-flash { animation: none; border-color: var(--accent-2) !important; }
}

/* ---------- 验证码行 ---------- */

/* 输入框与「获取验证码」按钮并排，按钮不换行、不撑破窄屏 */
.code-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.code-row .input { flex: 1; min-width: 0; }
.code-send {
  flex: none;
  height: 40px;
  padding: 0 14px;
  white-space: nowrap;
  font-size: 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--text-2);
}
.code-send:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-2); }
.code-send:disabled { opacity: .5; cursor: default; }

/* 图形验证码：4 位纯数字。图片与输入框同高、垂直居中，整块独立成行。 */
.captcha-field { width: 100%; }
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row .captcha-input {
  flex: 0 1 140px;
  width: 140px;
  max-width: 140px;
  min-width: 0;
  height: 42px;
  text-align: center;
  letter-spacing: .12em;
}
.captcha-img {
  flex: 0 0 auto;
  height: 42px;          /* 与输入框同高，垂直居中不再错位 */
  width: auto;           /* 跟随 SVG 比例，宽度自适应 */
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  cursor: pointer;
  user-select: none;
  display: block;
}
.captcha-img:hover { border-color: var(--accent); }
/* 在 .row 里也独占一整行，不与其它字段挤在同一列 */
.row > .captcha-field { flex: 1 1 100%; min-width: 100%; margin: 0; }
@media (max-width: 420px) {
  .captcha-row { gap: 8px; }
  .captcha-row .captcha-input { flex: 1 1 120px; width: 120px; max-width: 120px; }
}

@media (max-width: 420px) {
  .code-row { flex-wrap: wrap; }
  .code-row .input { flex: 1 1 100%; }
  .code-send { flex: 1 1 100%; }
}

/* ---------- Tab ---------- */

.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.tab:hover { color: var(--text); }
.tab.on {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

/* ---------- 提示条 ---------- */

.alert {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.65;
  animation: alert-in .5s var(--ease) both;
}
@keyframes alert-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.alert-ok { border-color: var(--mint-bg); background: var(--mint-bg); color: var(--mint); }
.alert-err { border-color: var(--accent-line); background: var(--accent-bg); color: var(--accent-2); }
.alert-info { background: var(--panel-2); border-color: var(--line); color: var(--text-2); }

/* ---------- 可复制的代码行 ----------
   验证文件、页脚代码都要「贴到别的地方去」，所以它首先得像个能拿的东西：
   等宽、可横向滚动不回折、右边永远有一个明确的复制按钮。

   行内布局用 flex + min-width:0，长串（一条 meta 标签能到 90 字符）
   才会在框内滚动而不是把卡片撑破。 */

.copyrow { margin-top: 10px; }
.copyrow-label {
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 6px;
}
.copyrow-box {
  display: flex;
  align-items: stretch;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.copyrow-box code {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
  overflow-x: auto;
  white-space: nowrap;
  /* 滚动条在深色主题下也得看得见 */
  scrollbar-width: thin;
}
.copyrow-box code.wrap {
  white-space: pre-wrap;
  word-break: break-all;
}
.copyrow-note {
  font-size: 12px;
  color: var(--faint);
  margin-top: 6px;
  line-height: 1.65;
}

.copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 13px;
  border: 0;
  border-left: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text-2);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.copy-btn:hover { background: var(--panel); color: var(--text); }
.copy-btn svg { width: 13px; height: 13px; opacity: .75; }
.copy-btn.is-done { color: var(--mint); }
.copy-btn.is-fail { color: var(--accent-2); }
@media (max-width: 560px) {
  /* 手机上把按钮换成底部一条，否则横向空间全被按钮吃掉 */
  .copyrow-box { flex-direction: column; }
  .copy-btn {
    justify-content: center;
    padding: 9px 12px;
    border-left: 0;
    border-top: 1px solid var(--line-2);
  }
}

/* 带样张的代码行：左边是它真实渲染出来的样子，右边才是代码。
   只给一行代码，用户贴上去之前不知道自己会得到什么。 */
.copyrow-has-prev {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.copyrow-prev {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  overflow: hidden;
}
.copyrow-prev.dark {
  background: #14171D;
  border-color: #242A33;
}
.copyrow-prev img { max-width: 100%; height: auto; }
.copyrow-body { min-width: 0; }
.prev-link {
  font-size: 12.5px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
  white-space: nowrap;
}
@media (max-width: 620px) {
  .copyrow-has-prev { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .copyrow-prev { min-height: 46px; padding: 10px; }
}

/* ---------- 折叠块 / 站点行 ---------- */

.fold {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.fold-sum {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.fold-sum::-webkit-details-marker { display: none; }
/* 折叠标题前的加号圆标。
   之前直接写「+」这个字符：字符在行盒里是按基线排的，
   加号又偏数学轴，所以看着永远比圆圈高一点、歪一点。
   现在改成两条线用伪元素画 —— 几何居中，不依赖字体。 */
.fold-plus {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-size: 0;
  line-height: 1;
  color: var(--text-2);
  transition: transform .2s, border-color .2s, color .2s;
}
.fold-plus::before,
.fold-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}
.fold-plus::before { width: 9px; height: 1.5px; }
.fold-plus::after { width: 1.5px; height: 9px; }
.fold[open] .fold-plus { transform: rotate(45deg); border-color: var(--accent); color: var(--accent-2); }
.fold-body {
  padding: 4px 18px 18px;
  border-top: 1px solid var(--line-faint);
}

/* 站点列表：默认一行一个站点，详情折叠。
   一个站点一张大卡片的排法，十个站点就要滚三屏。 */
.site-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: border-color .18s;
}
.site-item[open] { border-color: var(--line-2); }
.site-row {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}
.site-row::-webkit-details-marker { display: none; }
.site-row:hover { background: var(--panel-2); }
.site-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
}
.site-dot.ok { background: var(--mint); }
.site-dot.wait { background: var(--accent-2); }
.site-dot.off { background: var(--line-2); }
.site-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.site-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-sub {
  font-size: 12px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-num { flex: none; margin-left: auto; }
.site-status { flex: none; }
.site-caret {
  flex: none;
  display: inline-flex;
  color: var(--faint);
  transition: transform .2s;
}
.site-caret svg { width: 15px; height: 15px; }
.site-item[open] .site-caret { transform: rotate(180deg); }
.site-body {
  padding: 4px 16px 18px;
  border-top: 1px solid var(--line-faint);
}
.site-sec { padding-top: 16px; }
.site-sec + .site-sec {
  margin-top: 16px;
  border-top: 1px solid var(--line-faint);
}
.site-sec-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.site-sec-h h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .02em;
}
/* 手机上第一行是「站名 + 状态」，编号落到第二行。
   用 grid 排这条曾经把「待验证」挤成竖排、还溢出卡片外。 */
@media (max-width: 560px) {
  .site-row {
    flex-wrap: wrap;
    row-gap: 6px;
    padding: 12px 13px;
  }
  .site-main { flex: 1 1 55%; order: 1; }
  .site-sub { display: none; }
  .site-status { order: 2; margin-left: auto; }
  .site-num { order: 3; margin-left: 0; flex: 1 1 100%; }
  .site-caret { display: none; }
}

/* 一行填完的表单：输入框 + 图形验证码 + 按钮。
   以前验证码单独占三行（标题/输入/提示），把「换一枚」摊成了半屏。 */
.form-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.form-line .tiny { margin: 0; }

/* 一行里三样东西必须一样高：输入框 40、验证码框 40、图片 40、按钮 40。
   以前是 40 / 42 / 30（.btn-sm）三种高度挤在一起，下缘各差几个像素，
   看着就是一排没对齐的方块。按钮高度跟着输入框走，读起来才是「一行」。 */
.form-line .captcha-inline .captcha-input,
.form-line .captcha-img,
.closed-box-f .captcha-inline .captcha-input,
.closed-box-f .captcha-img { height: 40px; }
.form-line .btn,
.closed-box-f .btn { height: 40px; }
.form-line .btn-sm,
.closed-box-f .btn-sm { padding: 0 16px; font-size: 13px; }
.captcha-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.captcha-inline .captcha-input {
  width: 92px;
  min-width: 0;
  height: 42px;
  text-align: center;
  letter-spacing: .12em;
}
@media (max-width: 420px) {
  .captcha-inline .captcha-input { width: 76px; }
  .captcha-inline .captcha-img { height: 40px; }
}

/* ---------- 标签 / 状态 ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color .22s, color .22s, background .22s;
}
a.tag:hover { border-color: var(--faint); color: var(--text); }

/* 状态色：只复用已有变量，不另造一套调色板 */
.tag-mint { border-color: var(--mint); color: var(--mint); background: var(--mint-bg); }
.tag-blue { border-color: var(--line-2); color: var(--text-2); background: var(--panel-2); }
.tag-gray { border-color: var(--line-2); color: var(--faint); }
.tag-red  { border-color: var(--accent-line); color: var(--accent-2); background: var(--accent-bg); }

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: 0 0 6px; }
.dot-ok {
  background: var(--mint);
  box-shadow: 0 0 0 0 var(--mint-bg);
  animation: dot-pulse 3.6s ease-out infinite;
}
.dot-warn { background: var(--amber); }
.dot-off { background: var(--cell-off-text); }

@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 var(--mint-bg); }
  60%  { box-shadow: 0 0 0 5px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.status { font-size: 11.5px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.status-ok { background: var(--mint-bg); color: var(--mint); }
.status-warn { background: var(--amber-bg); color: var(--amber); }
.status-off { background: var(--bg-soft); color: var(--faint); }

/* ---------- 表格 ---------- */

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 12px;
  border-bottom: 1px solid var(--line-faint);
  color: var(--text-2);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .18s; }
tbody tr:hover td { background: var(--row-hover); }

/* ---------- 数字块 ---------- */

.stat { min-width: 92px; }
.stat .k {
  font-size: 11.5px;
  color: var(--faint);
  margin-bottom: 6px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.stat .v {
  font-family: var(--brand);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  color: var(--text);
  line-height: 1.15;
  white-space: nowrap;
}
.stat .s { font-size: 11.5px; color: var(--faint); margin-top: 4px; }

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  /* 页脚上间距从 90px 收到 56px。
     以前每个页面最后一个 section 自己还带 padding-bottom:70px，
     两层叠加就是 160px 的空白——用户一眼看到的是「下面空了一块」。
     现在留白由各页自己的 padding 决定，页脚只补一点呼吸间距。 */
  margin-top: 56px;
  padding: 36px 0 44px;
  color: var(--faint);
  font-size: 12.5px;
}
/* 页面最后一个区块的底部留白统一收口。
   各页原来都写死 padding-bottom:70px，是同一种手误抄了 20 多遍。
   用 !important 覆盖内联 style：作者重要声明优先于内联非重要声明。

   注意不能用 `main > *:last-child`：有些页面末尾是 <script> 标签
   （pool / badge_studio 的轮询脚本），它撑不起 padding，
   真正的最后一块内容在更早的 section 里，规则会落空。
   也不能用 `:last-of-type`：main 里可能有多个 div（flash 消息容器等），
   `:last-of-type` 选的是「最后一个 div」，不是「最后一个子元素」。
   所以改成显式列出：最后一个 section、最后一个 div、或最后一个其它元素，
   三者取并集，谁在最后谁生效。 */
main > *:last-child,
main > section:last-of-type,
main > div:last-of-type,
main > article:last-of-type {
  padding-bottom: 24px !important;
}
/* 末段里的卡片自带 margin-top:20px 的，跟收口后的 padding 叠起来还是空。
   最后一个区块内部的第一张卡片不留上间距——它上面没有别的内容要隔开。 */
main > *:last-child > *:first-child,
main > section:last-of-type > *:first-child,
main > div:last-of-type > *:first-child,
main > article:last-of-type > *:first-child {
  margin-top: 0 !important;
}
/* 证书页 / 档案页：内容短，页脚离正文远一点就空出一大片。
   这里把上间距收到 32px，正文那段自己的 padding 也一并收。 */
.page-cert .site-footer { margin-top: 32px; }
.footer-grid { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.footer-col h5,
.footer-col .footer-col-h {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: 3px 0;
  color: var(--faint);
  transition: color .2s, transform .2s var(--ease);
}
.footer-col a:hover { color: var(--text-2); transform: translateX(2px); }
.footer-legal {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line-faint);
  font-size: 11.5px;
  line-height: 1.9;
}

/* 页脚里那行「每月几日放号」：不抢注意力，但要能被扫到 */
.footer-mini {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-faint);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: .02em;
}

/* ---------- 空状态 ---------- */

.empty {
  text-align: center;
  padding: 54px 20px;
  /* 一整页都空的时候，虚线框撑满 1160px 会显得更空。
     收窄到 620px 居中，框里的那两句话才有个"落点"。 */
  max-width: 620px;
  margin: 0 auto;
  color: var(--faint);
  font-size: 13.5px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}

/* ---------- 进场动效 ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .78s var(--ease), transform .78s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
html.js .reveal.in { opacity: 1; transform: none; }

/* 首屏直接播放，不等滚动 */
html.js .rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in .9s var(--ease) both;
  animation-delay: var(--d, 0ms);
}
@keyframes rise-in {
  to { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    padding: 56px 28px 44px;
  }
  .hero h1 { font-size: 34px; }
  .hero-plate { max-width: 400px; }
  /* 窄屏上环会撑破栅格，直接收起 */
  .ring { display: none; }
}

@media (max-width: 860px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 平板别一上来就单列：两列仍能看清卡片，纵向能省一半空间 */
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  h1 { font-size: 27px; }
  .signature.xl { font-size: 40px; }
  .signature.lg { font-size: 30px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 44px 18px 36px; }
  .hero h1 { font-size: 30px; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
  }
  .hero-stats .stat { min-width: 0; }
  .hero-stats .stat:nth-child(3) { grid-column: 1 / -1; }
  .hero-stats .stat .v { font-size: 22px; }
  /* 74px 才能让 390px 宽的手机排到 4 列；再宽就掉成 3 列，240 个号要排 80 行。
     整串 8 位要在一行里放下：13.5px × 8 位 ≈ 67px，加内边距 12px 刚好进 84px 的格子。 */
  .pool-grid { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; }
  .cell {
    height: 44px;
    padding: 0 4px;
    font-size: 13.5px;
    letter-spacing: .02em;
  }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 手机上卡片还是回到单列，别把文字挤成两三字一行 */
  .grid-3 { grid-template-columns: 1fr; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
  .nav { gap: 12px; }
  .nav-right { gap: 6px; }
  .nav-right .btn-ghost { display: none; }
  /* 手机上 nav-links 整排都收起了，工作台是唯一能回到「自己那一摊」的入口，
     不能跟着一起藏。昵称按钮先让位 —— 账号设置在页脚「使用」栏里。 */
  .nav-right .btn[href="/dashboard"] { display: inline-flex; }
  .nav-right .btn.nav-account { display: none; }
  .brand small { display: none; }
  .theme-toggle { width: 30px; height: 30px; flex-basis: 30px; }
}

/* ---------- 尊重系统设置 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .rise { opacity: 1; transform: none; }
  .ambient i { animation: none; }
  .swap { animation: none; opacity: 0; }
  .swap:first-child { opacity: 1; }
}

/* ---------- 放号日历：按月成组，一屏看完全年 ---------- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 14px;
}
.cal-month { padding: 14px 16px; }
.cal-list { display: grid; }
.cal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
}
.cal-head b { font-size: 15px; font-weight: 700; }
.cal-item {
  display: grid;
  grid-template-columns: 28px 40px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 1px 0;
}
.cal-item + .cal-item { border-top: 1px solid var(--line-faint); }
/* 每一场都能点开看这一场的编号：<a> 版本的 cal-item 要去掉链接默认样式，
   hover 给一点底色反馈，否则整行看不出是可点的 */
a.cal-item {
  color: inherit;
  text-decoration: none;
  border-radius: 5px;
  transition: background .14s;
}
a.cal-item:hover { background: var(--bg-soft); }
a.cal-item:hover .cal-day { color: var(--accent-2); }
a.cal-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-day { font-size: 14px; font-weight: 600; color: var(--text); }
.cal-time, .cal-quota { color: var(--faint); white-space: nowrap; }
.cal-item.is-open .cal-day { color: var(--accent-2); }
.cal-item .status { font-size: 10.5px; padding: 1px 7px; }
/* 个别演示数据会把几十场排进同一个月，别让一张卡拉成长条 */
.cal-month.is-dense .cal-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.cal-month.is-dense .cal-time { display: none; }
.cal-month.is-dense .cal-item { grid-template-columns: 24px 1fr auto; }
.cal-month.is-dense .cal-item + .cal-item { border-top: 0; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text-2);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .10);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s, transform .22s, color .2s, border-color .2s;
}
html[data-theme="dark"] .to-top { box-shadow: 0 6px 22px rgba(0, 0, 0, .34); }
.to-top svg { width: 17px; height: 17px; }
.to-top span { font-size: 9px; letter-spacing: .06em; line-height: 1; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent-2); border-color: var(--accent-line); }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 更新记录（面向所有人的时间轴） ---------- */
.log-timeline { position: relative; padding-left: 26px; }
.log-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line-2);
}
.log-entry { position: relative; margin-bottom: 24px; }
.log-entry:last-child { margin-bottom: 0; }
.log-entry::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-bg);
}
.log-date {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--faint);
  margin-bottom: 8px;
}
/* 版本号徽章：等宽字体在 .log-date 里，这里要把 letter-spacing 收回来，
   否则 v1.8.0 会被拆得像四个独立字符 */
.log-ver {
  display: inline-block;
  margin-right: 7px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 10.5px;
  line-height: 16px;
  letter-spacing: 0;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line-faint);
  vertical-align: 1px;
}
.log-ver.is-cur {
  color: var(--accent-2);
  background: var(--accent-bg);
  border-color: transparent;
}
.log-now {
  margin-left: 6px;
  font-size: 10px;
  letter-spacing: 0;
  color: var(--accent-2);
}
.log-card { padding: 18px 22px; }
.log-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.log-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.log-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.log-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-2);
}
.log-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-2);
}
.log-kind {
  display: inline-block;
  margin-right: 7px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 10.5px;
  line-height: 17px;
  vertical-align: 1px;
  background: var(--bg-soft);
  color: var(--muted);
}
.log-kind.k-new { background: var(--accent-bg); color: var(--accent-2); }
.log-kind.k-better { background: var(--mint-bg); color: var(--mint); }
.log-kind.k-fix { background: var(--amber-bg); color: var(--amber); }
@media (max-width: 560px) {
  .log-timeline { padding-left: 20px; }
  .log-entry::before { left: -17px; }
  .log-card { padding: 15px 16px; }
}

/* ============================================================
   编号的一生 · 这一版新增的组件
   顺序：证书 → 时间轴 → 柱图 → 搜索 → 文档 → 生成器 → 404 叙事
   ============================================================ */

/* ---------- 数字排版 ----------
   所有计数、编号、日期都用等宽数字：
   数字滚动时字宽不变，页面不会左右抖。
   font-variant-numeric 比 font-feature-settings 更稳（Safari 也认）。 */
.num,
.stat .v,
.kpi-v,
.signature .no,
.doc-tr .num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- 纸感：编号证书 ----------
   这张「纸」是可以打印出来的，所以：
   - 用两层渐变做出压印的边（内阴影 + 一道亮边）
   - 撕边用 conic-gradient 切出细小的齿
   - @media print 时只留这张纸，页眉页脚全部去掉 */

.cert {
  position: relative;
  padding: 34px 30px 26px;
  border-radius: 4px;
  background: var(--paper-face);
  border: 1px solid var(--line-2);
  box-shadow: var(--paper-edge), var(--shadow-2);
  overflow: hidden;
}
/* 纸纤维：极细的斜纹，靠 background 画，不额外请求图片 */
.cert::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: var(--paper-grain);
}
/* 撕边：底边一排细齿 */
.cert-edge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background:
    linear-gradient(-45deg, transparent 50%, var(--panel-2) 50%) 0 0 / 10px 10px repeat-x,
    linear-gradient(45deg, transparent 50%, var(--panel-2) 50%) 0 0 / 10px 10px repeat-x;
  opacity: .8;
}
.cert-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.cert-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
}
/* 平台名 + 域名，两行。跟页头标识是同一套结构，只是缩小了。
   少了域名，这一角就只是个图标，看不出是谁发的。
   两行要左右都齐：网格的 track 取 max-content（= 最宽的那行），
   窄行 stretch 到 track 宽之后，还得有东西把它撑满——
   平台名是汉字，text-align-last: justify 能在字间加空隙；
   域名直接复用页头的 brand_domain()（逐字 <i> + flex space-between），
   因为拉丁串没有断行点，justify 对它无效（右边会短一截）。 */
.cert-brand-text {
  display: grid;
  grid-template-columns: max-content;
  row-gap: 2px;
  line-height: 1;
}
.cert-brand-cn {
  font-family: var(--brand-cn);
  font-size: 15px;
  letter-spacing: .06em;
  text-align: justify;
  text-align-last: justify;
}
/* 只改字号：字距、两端对齐、颜色都由 .brand-domain 统一管。 */
.cert-brand-text .brand-domain {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}
.cert-seal {
  width: 34px;
  height: 34px;
  color: var(--accent);
  opacity: .82;
}
.cert-seal svg { width: 100%; height: 100%; }

/* ---- 核验章 ----
   压在纸上的一枚圆章。两圈线（外实内虚）+ 两行字，整体偏 -8°。
   不做到「很红」：`opacity` 压到 .38，像盖过之后吸收进纸里的样子；
   太实会像贴纸，太淡又看不出是章。 */
.cert-stamp {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 82px;
  height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
  color: var(--accent);
  opacity: .38;
  transform: rotate(-8deg);
  pointer-events: none;
  user-select: none;
}
.cert-stamp::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed currentColor;
  border-radius: 50%;
  opacity: .75;
}
.cert-stamp-t {
  font-family: var(--brand-cn);
  font-size: 10px;
  letter-spacing: .12em;
  text-indent: .12em;
  line-height: 1;
}
.cert-stamp-w {
  font-family: var(--brand-cn);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-indent: .04em;
  line-height: 1;
}
.cert-stamp.is-void { color: var(--faint); opacity: .34; }
@media (max-width: 520px) {
  .cert-stamp { width: 66px; height: 66px; top: 14px; right: 14px; }
  .cert-stamp-t { font-size: 9px; }
  .cert-stamp-w { font-size: 12.5px; }
}
.cert-label {
  position: relative;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .32em;
  text-indent: .32em;
  color: var(--faint);
  margin-bottom: 12px;
}
.cert-number {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
/* 「念念」与编号数字要站得住同一档：
   数字是等宽粗体，天然比同字号的汉字显得重。
   这里按「字面大小」来配——用户看的是字框，不是墨迹，
   所以字号直接给到 32px（数字 34px），不再按 0.8 倍缩水；
   墨迹上汉字本来就比数字高（28 vs 24），两者叠起来才真的平级。
   字重跟数字一样 700，颜色也提到 --text，差在笔画密度上，
   但字框是一样大的。 */
.cert-cn {
  font-family: var(--brand-cn);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
}
/* 中间的分隔点原来是「·」这个字符：
   字符跟着基线排，数学轴位置天然偏下，看着就不在一条水平线上。
   改成伪元素画的圆点，再让它在 flex 行里垂直居中。 */
.cert-dot {
  align-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
}
.cert-digits {
  font-family: var(--brand);
  font-size: 34px;
  font-weight: 700;
  /* 活字印刷的字距：比正文宽，但两端必须都齐（text-indent 补掉最后一位
     多出来的那半个字缝，否则整串会偏左一点，居中就不准了）。 */
  letter-spacing: .12em;
  text-indent: .12em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: var(--text);
}
.cert-state {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}
.cert-meta {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cert-meta > div { text-align: center; min-width: 0; }
.cert-meta span {
  display: block;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .06em;
  margin-bottom: 4px;
}
/* 三列的值统一装进 .cert-meta-v：横向排、基线对齐、超长省略。
   以前归属站点那格是两行（站点名 + 域名），另外两格一行，
   三列底部对不齐，看着就别扭。 */
.cert-meta .cert-meta-v {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}
.cert-meta b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.cert-meta .cert-meta-v b,
.cert-meta .cert-meta-v em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 站点名右边那行域名：站点名是主，域名是辅，跟站点名并排在同一行 */
.cert-meta em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  color: var(--faint);
  overflow-wrap: anywhere;
}
.cert-meta .cert-meta-v em { margin-top: 0; }
.cert-foot {
  position: relative;
  margin-top: 16px;
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--faint);
  text-align: center;
}
.cert-foot b { color: var(--accent-2); font-weight: 500; }
@media (max-width: 560px) {
  .cert { padding: 26px 18px 20px; }
  .cert-cn { font-size: 25px; }
  .cert-digits { font-size: 26px; }
  .cert-meta { grid-template-columns: 1fr; gap: 10px; }
  .cert-meta > div { text-align: left; display: flex; justify-content: space-between; gap: 12px; }
  /* 只清 label 的下边距，别把值块 .cert-meta-v 的也清了 */
  .cert-meta > div > span { margin-bottom: 0; }
  .cert-meta .cert-meta-v { justify-content: flex-end; }
  .cert-meta em { text-align: right; margin-top: 0; }
}

/* ---------- 事实清单 ----------
   原来是两列表格：左边一列标签，右边一列内容，内容短的时候
   右边空掉一大片，看着像没排完。改成三块并排的小卡，
   每块自己占一列，宽屏正好填满，窄屏再叠成一列。 */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.fact {
  padding: 16px 18px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  min-width: 0;
}
.fact-wide { grid-column: 1 / -1; }
.fact-k {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--faint);
  margin-bottom: 8px;
}
.fact-v {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.fact-link {
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  transition: border-color .16s, color .16s;
}
.fact-link:hover { color: var(--accent-2); border-color: var(--accent); }
.fact-link-sm {
  display: inline-block;
  margin-left: 8px;
  font-size: 12.5px;
  color: var(--accent-2);
}
.fact-sub {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--faint);
}
@media (max-width: 720px) {
  .fact-grid { grid-template-columns: 1fr; }
}

/* 打印：只留证书 */
@media print {
  body.printing-cert * { visibility: hidden; }
  body.printing-cert #cert,
  body.printing-cert #cert * { visibility: visible; }
  /* 打印时不要再用 fixed 定位。
     fixed 在分页环境里是「每页都钉在同一个位置」，纸一长就压到第二页；
     改成正常流里的居中纸面，A4 竖版一张刚好。 */
  body.printing-cert #cert {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 16mm 12mm;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: #fff !important;
  }
  body.printing-cert .cert::before { display: none; }
  body.printing-cert .cert-edge { display: none; }
  /* 章在纸上要能看清：屏幕上为了「吸收进纸里」压到 .38，
     打印机只有 100% 的黑白（或一档浅色），太淡会直接消失。 */
  body.printing-cert .cert-stamp { opacity: .62; color: #8c3a2b; }
  body.printing-cert .cert-digits { color: #111; }
  @page { size: A4 portrait; margin: 14mm; }
}

/* ---------- KPI 小块（回顾页、档案页共用） ---------- */
.kpi-k {
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.kpi-v {
  font-size: 28px;
  line-height: 1.15;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -.01em;
}
.kpi-s {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--faint);
  line-height: 1.6;
}

/* ---------- 曝光小柱图 ---------- */
.spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 64px;
  padding: 6px 0 0;
}
.spark-bar {
  flex: 1;
  min-width: 2px;
  background: var(--accent);
  opacity: .55;
  border-radius: 2px 2px 0 0;
  transition: opacity .18s, background .18s;
}
.spark-bar:hover { opacity: 1; background: var(--accent-2); }

/* ---------- 履历时间轴 ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.tl-item {
  position: relative;
  padding: 0 0 18px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -22px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
  box-shadow: 0 0 0 3px var(--panel);
}
.tl-ok .tl-dot { background: var(--mint); }
.tl-warn .tl-dot { background: var(--amber); }
.tl-off .tl-dot { background: var(--faint); }
.tl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.tl-head b {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}
.tl-note {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* ---------- 年度回顾：按月柱状 ---------- */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 190px;
}
.bar-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 6px;
}
.bar-n {
  font-size: 11px;
  color: var(--faint);
  height: 14px;
}
.bar-track {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  background: var(--bg-soft);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  width: 100%;
  background: var(--accent);
  opacity: .72;
  border-radius: 4px 4px 0 0;
  transition: opacity .2s;
}
.bar-col:hover .bar-fill { opacity: 1; }
.bar-m {
  font-size: 11px;
  color: var(--faint);
  height: 15px;
}

/* ---------- 站内搜索 ---------- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 14px;
  background: var(--input-bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition: border-color .18s, box-shadow .18s;
}
.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}
.search-bar svg {
  width: 17px;
  height: 17px;
  color: var(--faint);
  flex: none;
}
.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 8px 0;
  outline: none;
}
.search-input::placeholder { color: var(--placeholder); }
.search-bar .btn { flex: none; }

.result-sec { margin-bottom: 26px; }
.result-h {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: .04em;
}
.result-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.result-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-faint);
  transition: background .16s;
  flex-wrap: wrap;
}
.result-row:last-child { border-bottom: 0; }
.result-row:hover { background: var(--row-hover); }
.result-title {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
}
.result-sub {
  font-size: 12.5px;
  color: var(--muted);
  flex: 1;
  min-width: 0;
}

/* 拼音命中标记：搜「dt」找到「灯塔手记」，标题里没有 dt 这个字面，
   结果要是不说话，用户只会觉得莫名其妙。这枚小标签回答「为什么会命中」。
   底色跟 mark 高亮一个家族（都是「这次为什么匹配上」的说明），但用虚线框
   区分开：<mark> 是字面命中，这枚是读音命中。 */
.py-hit {
  font-size: 11px;
  color: var(--muted);
  border: 1px dashed var(--line-2);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
  letter-spacing: .04em;
  margin-left: 8px;
  display: inline-block;
  vertical-align: 1px;
}
html[data-theme="contrast"] .py-hit { color: #000; border-color: rgba(0,0,0,.45); }

/* 吉祥物「小念」：守着信箱的小猫（功能 18）。
   它出现在空状态、404、订阅引导——所有「在等一样东西」的地方。
   笔触与 _empty_art 同一族（1.4px / currentColor），三主题自动适配；
   台词只有一个口径：小念不承诺做不到的事（站内没有推送，它不说「我会通知你」）。 */
.mascot {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 18px;
}
.mascot.is-bare { margin-bottom: 0; }
.mascot-art {
  width: 108px;
  flex: 0 0 auto;
  display: inline-block;
}
.mascot-art svg { width: 100%; height: auto; display: block; }
.mascot-say {
  font-size: 12.5px;
  color: var(--muted);
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  padding: 9px 13px;
  max-width: 300px;
  text-align: left;
  line-height: 1.85;
  margin-bottom: 10px;
}
html[data-theme="contrast"] .mascot-say { color: #000; border-color: rgba(0,0,0,.45); }
@media (max-width: 640px) {
  .mascot { flex-direction: column; align-items: center; gap: 10px; }
  .mascot-say { margin-bottom: 0; text-align: center; }
}
/* 呼吸感：极轻的一起一伏，像趴着打盹的起伏。系统要求减少动效时不做。 */
@media (prefers-reduced-motion: no-preference) {
  .mascot-art svg { animation: mascot-breathe 5.6s ease-in-out infinite; }
}
@keyframes mascot-breathe {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1.5px); }
}

/* 搜索命中高亮。
   底色不能用 --amber-bg（那是 .10 的透明琥珀，叠在纸底上跟没高亮一样，
   实测采样差只有 3/255，肉眼根本看不出来）。
   这里直接给一个**实色**淡黄，跟纸色底明确分开；
   深色主题另给一档，不然深底上的浅黄会发灰。 */
mark {
  background: #F6E3B8;
  color: var(--text);
  padding: .05em .18em;
  border-radius: 3px;
  font-weight: 500;
  box-shadow: inset 0 -1px 0 rgba(162, 115, 30, .22);
}
html[data-theme="dark"] mark {
  background: rgba(224, 178, 103, .26);
  color: var(--text);
  box-shadow: inset 0 -1px 0 rgba(224, 178, 103, .45);
}
html[data-theme="contrast"] mark {
  background: #FFE9A8;
  color: #000;
  box-shadow: inset 0 -2px 0 #7A5B12;
}

/* 编号里的命中位：用「荧光笔划一道」而不是换底色。
   底块会把数字挤开、看起来像被拆成了两段；
   只在字的下沿压一道色，八位还是连着读的。 */
mark.hl-code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-weight: 500;
  color: var(--text);
  box-shadow: inset 0 -0.38em 0 var(--accent-bg);
}
html[data-theme="dark"] mark.hl-code {
  background: none;
  box-shadow: inset 0 -0.38em 0 rgba(217, 119, 106, .34);
}
html[data-theme="contrast"] mark.hl-code {
  background: none;
  color: #000;
  box-shadow: inset 0 -0.42em 0 #FFE9A8;
}

/* 分类切换：几个 tab 挨着，说明「下面这些结果可以只看某一类」。
   用计数把每类多少条写清楚，不然用户点了才知道有没有。 */
.result-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.result-tab {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: var(--panel);
  transition: border-color .16s, color .16s;
}
.result-tab:hover { border-color: var(--accent); color: var(--text); }
.result-tab.is-on {
  border-color: var(--accent);
  color: var(--accent-2);
}
.result-tab .n {
  font-size: 11.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.result-tab.is-on .n { color: var(--accent-2); }

/* 馆刊结果：一条一封信的样子 */
.result-letter {
  display: block;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line-faint);
  transition: background .16s;
}
.result-letter:last-child { border-bottom: 0; }
.result-letter:hover { background: var(--row-hover); }
.result-letter-t {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 5px;
}
.result-letter-x {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 文档中心 ---------- */
.docs {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}
.docs-side {
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.docs-nav {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
.docs-nav a {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--muted);
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color .16s, border-color .16s;
}
.docs-nav a:hover {
  color: var(--text);
  border-left-color: var(--line-2);
}
.docs-side-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.docs-body { min-width: 0; }
.doc-sec {
  margin-bottom: 44px;
  scroll-margin-top: 76px;
}
/* 最后一个章节不留下边距：它后面就是页脚了，
   这 44px 加上区块 padding 与页脚 margin，叠出一大片空白。 */
.doc-sec:last-child { margin-bottom: 0; }
}
.doc-sec h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 19px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.doc-n {
  font-family: var(--brand);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .1em;
}
.doc-sec p {
  margin: 0 0 12px;
  line-height: 1.9;
  color: var(--text-2);
  font-size: 14px;
}
.doc-list {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--text-2);
  line-height: 1.95;
  font-size: 14px;
}
.doc-list li { margin-bottom: 6px; }
.doc-note {
  padding: 12px 14px;
  background: var(--panel-2);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--muted);
}
.doc-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--panel);
}
.doc-tr {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-faint);
  font-size: 12.5px;
  color: var(--text-2);
  align-items: baseline;
}
.doc-tr:last-child { border-bottom: 0; }
.doc-th {
  background: var(--bg-soft);
  color: var(--faint);
  font-size: 11.5px;
  letter-spacing: .04em;
}
.doc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.doc-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.doc-card h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text);
}
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .docs-side { position: static; }
  .docs-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; border-left: 0; }
  .docs-nav a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 12px;
    margin-left: 0;
    font-size: 12.5px;
  }
  .docs-nav a:hover { border-color: var(--line-2); }
  .doc-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .doc-tr { grid-template-columns: 1fr; gap: 2px; }
  .doc-th { display: none; }
}

/* ---------- 徽章样式生成器 ---------- */
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.studio-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.studio-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  padding: 30px 20px;
  transition: background .25s;
}
.studio-canvas.is-dark { background: #14171D; }
.studio-canvas.is-light { background: #F4F1EA; }
.studio-canvas img { max-width: 100%; height: auto; }
/* 「现在预览的是哪一枚」：徽章样式生成器顶上那行。
   以前这一页默认拿的是全站第一枚徽章——别人的号，站长看着跟自己没关系，
   复制出去的代码贴的也是陌生人的署名。所以这行必须说清楚在预览什么。 */
.studio-own {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 0;
  max-width: 760px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.7;
}
.studio-cap {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
}
.studio-alert { max-width: 760px; }
/* 「换一个站」：多站点时必须让站长一眼看清现在预览的是哪个站的编号。
   没有这一行，代码里填的编号跟页面顶上显示的可能对不上，
   复制出去贴错站，署的就是别的站的编号——错了还不报错。 */
.studio-sites {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 0;
  max-width: 860px;
}
.studio-site {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
  transition: border-color .16s, color .16s, background .16s;
}
.studio-site:hover { color: var(--text); border-color: var(--faint); }
.studio-site.on {
  border-color: var(--accent);
  color: var(--accent-2);
  background: var(--accent-bg);
}
.studio-site-n { font-size: 12px; }
.studio-site-t { max-width: 15em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-nobadge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.studio-controls {
  padding: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.studio-controls label {
  display: block;
  font-size: 11.5px;
  color: var(--faint);
  margin-bottom: 7px;
  letter-spacing: .04em;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color .16s, color .16s, background .16s;
}
.chip:hover { color: var(--text); border-color: var(--faint); }
.chip.on {
  border-color: var(--accent);
  color: var(--accent-2);
  background: var(--accent-bg);
}
.studio-code {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
}
.studio-code h4 { margin: 0 0 6px; font-size: 14px; }
@media (max-width: 860px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 404 叙事页 ----------
   不是「404 Not Found」，是讲清楚「这里本来该有什么」。 */
.paper-ribbon {
  width: 76px;
  height: 76px;
  color: var(--line-2);
  opacity: .85;
}
.paper-ribbon svg { width: 100%; height: 100%; }

/* ---------- 空状态插画 ----------
   纯 SVG 单线，笔触统一（1.4px），不依赖任何图标字体。 */
.empty-art {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  color: var(--line-2);
}
.empty-art svg { width: 100%; height: 100%; }
/* 小号：便条区那种「一句话就够」的位置，96px 会把下面的输入框推出屏幕 */
.empty-art.is-sm { width: 64px; height: 64px; margin-bottom: 10px; }

/* ---------- 骨架屏 ----------
   渐进增强：只在 .skeleton 元素上出现，
   没有 JS 的地方（比如服务端渲染的列表）不受影响。 */
.skeleton {
  background: linear-gradient(90deg, var(--bg-soft) 25%, var(--panel-2) 37%, var(--bg-soft) 63%);
  background-size: 400% 100%;
  animation: skel 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
.skeleton-line { height: 12px; margin-bottom: 9px; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }
@keyframes skel {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------- 跨页过渡（View Transitions） ----------
   不支持的浏览器直接忽略这一段，页面照常工作。 */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .28s;
  animation-timing-function: var(--ease);
}

/* ---------- 微交互：呼吸点 ----------
   只给「正在放号」用。其余状态一律静止——
   一页上五个点一起闪，比一个不闪更让人分心。 */
.dot-pulse {
  position: relative;
}
.dot-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0;
  animation: dot-breathe 2.2s var(--ease) infinite;
}
@keyframes dot-breathe {
  0% { opacity: .5; transform: scale(.6); }
  70% { opacity: 0; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* 微交互：复制成功后数字轻跳一下 */
@keyframes num-hop {
  0% { transform: none; }
  40% { transform: translateY(-3px); }
  100% { transform: none; }
}
.is-hop { display: inline-block; animation: num-hop .42s var(--ease); }

/* ---------- 放号实时反馈 ---------- */
.live-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--line-faint);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 13px;
  color: var(--text-2);
  transition: border-left-color .3s;
}
/* 一条 12px 的横条里，「开抢了」只靠文字说太闷。
   加一颗小圆点：平时是暗的，正在放号时亮起来轻轻呼吸。 */
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  box-shadow: 0 0 0 3px transparent;
  flex: none;
  transition: background .3s, box-shadow .3s;
}
.live-bar.is-live { border-left-color: var(--accent); }
.live-bar.is-live .live-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
  animation: live-pulse 2.2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-bg); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .live-bar.is-live .live-dot { animation: none; }
}
.live-bar .live-k { color: var(--faint); font-size: 11.5px; letter-spacing: .04em; }
.live-bar .live-v { color: var(--text); font-weight: 500; }
.live-count {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
@media (max-width: 560px) {
  .live-bar { gap: 8px 14px; padding: 10px 12px; }
}

/* ---------- 首页滚动叙事 ----------
   一枚编号的三段来历。
   之前这里做的是「竖向 sticky 分镜」：每一段独占一屏高度，滚动时画面换一张。
   实际用起来有两个毛病：
     一、一段就是一屏，三段要滚三屏，内容一共不到 200 字 —— 空间全是空的；
     二、插画是 absolute 定位，而它的定位祖先是 .story（不是 .story-scene），
        三张插画会叠到同一个位置上互相盖住。
   现在改成一段一列、并排一行读完。窄屏退回横向滑动（手指划一下换一段）。 */
.story {
  position: relative;
  padding-bottom: 70px;
}
.story-track {
  /* 这一段不在 .wrap 里（它要能横向滑出屏幕边），
     所以宽度、内边距自己跟 .wrap 对齐，别让整页出现两种左右边距。 */
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.story-scene {
  min-width: 0;
  display: flex;
}
.story-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color .2s, transform .2s;
}
.story-scene:hover .story-panel {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.story-n {
  font-family: var(--brand);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 12px;
}
.story-h {
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--text);
}
.story-p {
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
  flex: 1;
}
.story-art {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--line-2);
}
.story-art svg { width: 100%; height: auto; max-height: 96px; }

/* 窄屏：三段并排读不动。第 24 批从「横向滑动」改成「竖向堆叠」——
   横滑轨道在 564~860 宽时固定 340px 一张卡，视口只能装下 1.6 张，
   左右各露出半张被裁的卡片，看起来就像两侧多出两条白条。
   竖排后每张卡完整可见，左右边距跟 .wrap 保持一致。 */
@media (max-width: 860px) {
  .story-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    margin: 0;
    gap: 14px;
    overflow: visible;
    padding: 0 28px;
  }
  .story-scene { min-width: 0; width: auto; }
}
@media (max-width: 560px) {
  .story-track { padding: 0 18px; }
}

/* ---------- 首屏滚动驱动动效（美化 1）
   用浏览器原生的 animation-timeline 做随滚动渐显/视差，零 JS 开销；
   主题.js 里那套 IntersectionObserver（.reveal/.stagger）保持原样，
   两套机制作用在不同元素上，不抢同一个节点。
   包在 @supports 里：不支持的浏览器（Firefox 等）自然落到
   现有的静态展示，什么都不缺——动效是装饰，不是信息。 */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* 三段来历：各列跟着自己的 view 时间线浮现。
       三列在页面上位置天然错开，滚动时从左到右依次显影，
       正好是「翻一本纪念册」的节奏——不用给每一列排 delay。 */
    .story-scene {
      opacity: 0;
      transform: translateY(26px);
      animation: story-enter .8s var(--ease) both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    @keyframes story-enter { to { opacity: 1; transform: none; } }

    /* 窄屏（≤860px）三段改成竖向堆叠：卡片依次进入视口，view() 会让
       先进入的那张停在半透明状态。关掉，保持静态可读。 */
    @media (max-width: 860px) {
      .story-scene { opacity: 1; transform: none; animation: none; }
    }

    /* 署名预览叠卡：滚离首屏时轻轻上浮、微收一点存在感，
       和后文的滚动形成两层速度差（页面快、卡片慢），有深度感。
       幅度克制：位移不超过一行字高，透明度不破 .7。 */
    .hero-visual {
      animation: hero-drift 1s linear both;
      animation-timeline: scroll(root);
      animation-range: 0 620px;
    }
    @keyframes hero-drift { to { transform: translateY(-30px); opacity: .68; } }
  }

  /* 打印时滚动位置是 0，view() 时间线会停在起点——三段来历不能印成白纸。 */
  @media print {
    .story-scene { opacity: 1; transform: none; animation: none; }
    .hero-visual { animation: none; }
  }
}

/* ---------- 入口卡（首页新加的那一排） ---------- */
.entry {
  display: block;
  transition: border-color .18s, transform .18s;
}
.entry:hover { border-color: var(--line-2); transform: translateY(-2px); }
.entry-t {
  font-size: 14.5px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 7px;
}
.entry p { margin: 0; line-height: 1.75; }

/* ---------- 展示馆卡片统一化 ----------
   原来的卡片每个都不一样：有的有图、有的没图，有的高、有的矮，
   标题位置也在飘。一屏看过去像一堆凑不齐的卡片。
   现在统一成：
     - 缩略图一律 16:9，去色（filter: grayscale），点击时才恢复
     - 没图的用单色方块 + 首字，比例完全一致
     - 标题两行截断，简介三行截断，正文高度对齐 */
.gcard {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.gthumb-sq {
  height: 0;
  padding-bottom: 52%;
  aspect-ratio: 20 / 10;
}
.gthumb-sq > img {
  position: absolute;
  inset: 0;
  filter: grayscale(1) contrast(.92) brightness(1.02);
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.gcard:hover .gthumb-sq > img {
  filter: grayscale(.25) contrast(1) brightness(1);
  transform: scale(1.045);
}
.gcard-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 15px;
}
.gcard-t {
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.5;
  /* 一行标题也占两行的高度：同一行的卡片里，
     「编号那行」才会落在同一条水平线上。留白比参差好看。 */
  min-height: 3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gcard-p {
  margin: 0 0 12px;
  line-height: 1.7;
  /* 两行。原来是三行，可大多数简介只有一行——
     三行 clamp 只让「话多的站」把整行卡片撑高。 */
  min-height: 3.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 站点健康标记 ----------
   「连续探不到」在列表里一眼能看到，但不要用红色——
   红色会让人以为出了故障，而大多数时候只是对方在重启服务器。 */
.site-health {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--faint);
  white-space: nowrap;
}
.site-health .dot { flex: none; }

/* ---------- 导航：搜索入口 ----------
   搜索按钮做成图标，桌面端紧挨着主题开关。
   窄屏（860px 以下）nav-links 已经收起，搜索按钮保留——
   那是移动端最常按的一个键。 */
.nav-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  color: var(--muted);
  transition: color .18s, background .18s;
}
.nav-search:hover { color: var(--text); background: var(--bg-soft); }
.nav-search svg { width: 16px; height: 16px; }
@media (max-width: 560px) {
  .nav-search { width: 30px; height: 30px; }
}

/* ---------- 复制按钮的微交互 ----------
   成功时按钮轻轻弹一下。幅度必须小：反馈是为了确认，不是为了表演。 */
@keyframes copy-pop {
  0% { transform: none; }
  38% { transform: translateY(-2px) scale(1.03); }
  100% { transform: none; }
}
.copy-btn.is-pop { animation: copy-pop .44s var(--ease); }
.copy-btn.is-pop svg { color: var(--mint); opacity: 1; }

/* ---------- 骨架屏容器 ----------
   .is-loading 时内容区被骨架占住，避免「空白 + 突然出现」的跳动。 */
.skeleton-box { padding: 2px 0; }
.is-loading > *:not(.skeleton-box) { display: none; }

/* 「随便逛一个」点击后的等待态 */
[data-wander].is-waiting {
  pointer-events: none;
  opacity: .55;
}

/* =============================================================
   第 12 批 · A 组：证书二维码 / 街坊 / 增强时间轴
   ============================================================= */

/* ---- 证书尾栏：免责声明 + 二维码 ----
   原来免责声明独占一行，右边一整块空着。二维码放进同一行，
   既是功能（扫码验真），也把这个空补上了。 */
.cert-tail {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}
.cert-tail .cert-foot {
  margin-top: 0;
  flex: 1 1 auto;
}
.cert-qr {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-2);
  opacity: .85;
}
.cert-qr svg {
  display: block;
  width: 62px;
  height: 62px;
}
.cert-qr-t {
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--faint);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .cert-tail { flex-direction: column; align-items: center; }
  .cert-tail .cert-foot { text-align: center; }
}

/* ---- 街坊 / 同类排名 ----
   两张（或三张）小卡并排。它们不是主要信息，是「顺手还能去哪」，
   所以用比事实卡更轻的底，不抢证书的注意力。 */
.ctx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.ctx-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.ctx-card:hover {
  border-color: var(--line-2);
  transform: translateY(-1px);
}
.ctx-k {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--faint);
}
.ctx-v {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.ctx-mid {
  font-size: 12px;
  color: var(--faint);
  font-weight: 400;
}
.ctx-s {
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- 增强时间轴 ----
   原来的竖线 + 圆点保留，改成「年份分段 + 每类事件一个图形」。
   .timeline 本体不动，避免影响后台那几处复用。 */
.timeline-rich {
  padding-left: 0;
}
.timeline-rich::before {
  left: 13px;
}
.tl-year {
  position: relative;
  list-style: none;
  margin: 14px 0 10px;
  padding-left: 34px;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--faint);
}
.tl-year:first-child { margin-top: 0; }
.tl-year span {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.timeline-rich .tl-item {
  padding-left: 34px;
  padding-bottom: 16px;
}
.tl-node {
  position: absolute;
  left: 0;
  top: -1px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}
.tl-node svg {
  width: 14px;
  height: 14px;
  display: block;
}
/* 状态色：只给「有情绪」的几种事件上色，日常事件保持中性。
   全上色等于没上色。 */
.tl-ok .tl-node      { color: var(--mint); border-color: rgba(44,135,112,.32); background: var(--mint-bg); }
.tl-warn .tl-node    { color: var(--amber); border-color: rgba(162,115,30,.32); background: var(--amber-bg); }
.tl-bad .tl-node     { color: var(--accent); border-color: var(--accent-line); background: var(--accent-bg); }
.tl-node.n-badge     { color: var(--mint); border-color: rgba(44,135,112,.32); background: var(--mint-bg); }
.tl-node.n-remind    { color: var(--amber); border-color: rgba(162,115,30,.32); background: var(--amber-bg); }
.tl-node.n-dormant   { color: var(--faint); }
.tl-node.n-issued    { color: var(--accent); border-color: var(--accent-line); background: var(--accent-bg); }

/* ---- 二维码打印：把颜色钉死成黑 ----
   打印时 currentColor 会跟着正文颜色走，有的打印机会把浅灰打成几乎看不见。 */
@media print {
  .cert-qr { color: #000; opacity: 1; }
}

/* =============================================================
   第 12 批 · B 组：今日一站 / 站点图标 / 点赞 / 标签云 / 策展集
   ============================================================= */

/* ---- 站点图标 ----
   域名首字母 + 由域名哈希出的两个色相。不抓 favicon：
   服务端抓外部图片是 SSRF 入口，而这里连一次请求都不用发。 */
.site-glyph {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--g1, #C0543E), var(--g2, #A2452F));
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  user-select: none;
}
.site-glyph.lg {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  font-size: 22px;
}
/* 展示馆卡片里的缩略图位替身：铺满整块 */
.gthumb-mark.glyph {
  background: linear-gradient(135deg, var(--g1, #C0543E), var(--g2, #A2452F));
  color: #fff;
}

/* ---- 今日一站 ---- */
.daily {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.daily:hover {
  border-color: var(--line-2);
  transform: translateY(-1px);
}
.daily-tag {
  position: absolute;
  top: -9px;
  left: 22px;
  padding: 1px 9px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10.5px;
  letter-spacing: .1em;
}
.daily-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}
.daily-t {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}
.daily-h {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.daily-m {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.daily-go {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 18px;
  transition: transform .2s var(--ease), color .2s var(--ease);
}
.daily:hover .daily-go {
  color: var(--accent);
  transform: translate(2px, -2px);
}
@media (max-width: 560px) {
  .daily { flex-wrap: wrap; gap: 12px; }
  .daily-t { font-size: 16px; }
}

/* ---- 点赞按钮 ---- */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}
.like-btn svg { width: 15px; height: 15px; }
.like-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.like-btn.is-on {
  border-color: var(--accent-line);
  background: var(--accent-bg);
  color: var(--accent);
}
.like-btn.is-on svg { fill: currentColor; }
.like-btn:disabled { opacity: .6; cursor: default; }
/* 列表卡片上的纯数字版 */
.like-n {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  color: var(--faint);
}
.like-n svg { width: 12px; height: 12px; }

/* ---- 收藏按钮（书签） ---- */
.fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}
.fav-btn svg { width: 15px; height: 15px; }
.fav-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.fav-btn.is-on {
  border-color: var(--accent-line);
  background: var(--accent-bg);
  color: var(--accent);
}
.fav-btn.is-on svg { fill: currentColor; }
.fav-btn:disabled { opacity: .6; cursor: default; }
/* 列表卡片上漂着的收藏按钮：盖在封面上，不跟卡片抢点击 */
.gcard-wrap { position: relative; display: flex; flex-direction: column; }
.gcard-wrap > .gcard { flex: 1 1 auto; }
.fav-float {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: var(--card);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .14);
}

/* ---- 「页脚已验证」小标 ---- */
.verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px 1px 5px;
  border-radius: 20px;
  border: 1px solid rgba(44, 135, 112, .3);
  background: var(--mint-bg);
  color: var(--mint);
  font-size: 11px;
  line-height: 1.7;
}
.verified-chip svg { width: 11px; height: 11px; }

/* ---- 标签云 ---- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
}
.tag-cloud-a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text-2);
  text-decoration: none;
  line-height: 1.5;
  transition: color .16s var(--ease);
}
.tag-cloud-a:hover { color: var(--accent); }
.tag-cloud-n {
  font-size: 11px;
  color: var(--faint);
}

/* ---- 策展集条 ---- */
.theme-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.theme-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.theme-card:hover {
  border-color: var(--line-2);
  background: var(--panel);
}
.theme-t { font-size: 14px; font-weight: 500; color: var(--text); }
.theme-i { font-size: 12px; color: var(--muted); line-height: 1.6; }
.theme-c { font-size: 11px; color: var(--faint); margin-top: 2px; }

/* ---- 策展集详情：带序号的清单 ---- */
.theme-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.theme-item { border-bottom: 1px solid var(--line-faint); }
.theme-item:last-child { border-bottom: 0; }
.theme-item-a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  text-decoration: none;
  color: inherit;
  transition: background .16s var(--ease);
}
.theme-item-a:hover { background: var(--row-hover); }
.theme-idx {
  flex: 0 0 auto;
  width: 22px;
  font-size: 12px;
  color: var(--faint);
  text-align: right;
}
.theme-item-b {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.theme-item-t { font-size: 15px; color: var(--text); }
.theme-item-n {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .theme-item-a { gap: 10px; }
  .theme-item-n { white-space: normal; }
}

/* ==========================================================================
   体检报告 /dashboard/sites/{id}/health
   --------------------------------------------------------------------------
   分数环用 SVG stroke-dasharray 画，不引图表库：
   只有一条弧，Chart.js 那几百 KB 传过来纯属浪费。
   ========================================================================== */
.health-top {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.health-ring {
  position: relative;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
}
.health-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);      /* 从 12 点开始画，不是 3 点 */
}
.health-ring circle {
  fill: none;
  stroke-width: 6;
}
.hr-track { stroke: var(--line); }
.hr-arc {
  stroke-linecap: round;
  transition: stroke-dasharray .6s var(--ease);
}
.health-ring.ok   .hr-arc { stroke: var(--mint); }
.health-ring.warn .hr-arc { stroke: var(--amber); }
.health-ring.bad  .hr-arc { stroke: var(--accent); }

.hr-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--text);
}
.health-copy { flex: 1 1 240px; min-width: 0; }
.health-verdict {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.health-ring.ok   ~ .health-copy .health-verdict { color: var(--mint); }
.health-ring.warn ~ .health-copy .health-verdict { color: var(--amber); }
.health-ring.bad  ~ .health-copy .health-verdict { color: var(--accent-2); }

.health-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.health-item {
  display: flex;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.hi-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-top: 1px;
}
.hi-mark svg { width: 13px; height: 13px; }
.health-ok   .hi-mark { background: var(--mint-bg);  color: var(--mint); }
.health-warn .hi-mark { background: var(--amber-bg); color: var(--amber); }
.health-bad  .hi-mark { background: var(--accent-bg); color: var(--accent); }

.hi-body { flex: 1 1 auto; min-width: 0; }
.hi-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.hi-label { font-size: 14.5px; font-weight: 600; color: var(--text); }
.hi-value {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}
.health-ok   .hi-value { color: var(--mint); }
.health-warn .hi-value { color: var(--amber); }
.health-bad  .hi-value { color: var(--accent-2); }
.hi-hint {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.health-notes {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}
@media (max-width: 560px) {
  .health-top { gap: 18px; }
  .health-ring { width: 74px; height: 74px; flex-basis: 74px; }
  .hr-num { font-size: 21px; }
}

/* ==========================================================================
   嵌入向导 /dashboard/embed
   ========================================================================== */
.embed-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.embed-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 2px;
}
.embed-tab {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: border-color .16s, color .16s, background .16s;
}
.embed-tab:hover { color: var(--text); border-color: var(--line-2); }
.embed-tab.is-on {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent-2);
  font-weight: 600;
}
.embed-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.embed-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.embed-where {
  font-size: 12.5px;
  color: var(--faint);
  word-break: break-all;
}
.embed-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.embed-steps li {
  display: flex;
  gap: 11px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}
.es-n {
  flex: 0 0 20px;
  height: 20px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.embed-extra {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.embed-preview {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.embed-preview-box {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line-faint);
}

/* 站点卡片底部的工具行：体检 / 嵌入向导 / 下载编号页 */
.site-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.site-tools .btn { font-size: 12.5px; }

/* ==========================================================================
   公开信卡片（首页）
   --------------------------------------------------------------------------
   它是「公告」，但不是弹窗：不遮内容、不抢焦点、关掉就真的不再出现。
   ========================================================================== */
.letter-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--panel);
}
.lc-tag {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent-2);
  font-size: 11.5px;
  letter-spacing: .04em;
  margin-top: 2px;
}
.lc-body { flex: 1 1 auto; min-width: 0; }
.lc-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.005em;
}
.lc-title:hover { color: var(--accent-2); }
.lc-ex {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.lc-acts {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lc-close {
  /* 跟旁边那颗「读全文」按钮一样高（36px）：26px 的叉在手机上要瞄准，
     但它跟按钮同一行，抬到 36 不会把这一行撑高。图标仍是 13px。 */
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  transition: background .16s, color .16s;
}
.lc-close:hover { background: var(--bg-soft); color: var(--text-2); }
.lc-close svg { width: 13px; height: 13px; }
@media (max-width: 560px) {
  .letter-card { flex-wrap: wrap; }
  .lc-acts { width: 100%; justify-content: flex-end; }
}

/* 公开信正文页 */
.letter-doc { padding: 30px 34px; }
.letter-doc p {
  margin: 0 0 1.15em;
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-2);
}
.letter-doc p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  .letter-doc { padding: 22px 20px; }
  .letter-doc p { font-size: 14.5px; line-height: 1.9; }
}

/* 公开信列表 */
.letter-list { display: flex; flex-direction: column; gap: 10px; }
.letter-item {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  transition: border-color .16s, background .16s;
}
.letter-item:hover { border-color: var(--line-2); background: var(--panel-2); }
.li-date {  flex: none;
  width: 82px;
  padding-top: 2px;
  font-size: 12px;
  color: var(--faint);
}
.li-body { flex: 1 1 auto; min-width: 0; }
.li-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.li-ex {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media (max-width: 560px) {
  .letter-item { flex-direction: column; gap: 6px; }
  .li-date { width: auto; }
}

/* 公开信系列卡片：/letters 列表页顶部的「专栏」入口 */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.series-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  transition: border-color .16s, background .16s, transform .16s;
}
.series-card:hover {
  border-color: var(--line-2);
  background: var(--panel-2);
  transform: translateY(-2px);
}
.sc-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.sc-intro {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sc-go { margin-top: auto; }

/* 时间胶囊：编号档案页上写给未来的话 */
.capsule-list { display: flex; flex-direction: column; gap: 12px; }
.capsule {
  padding: 14px 16px;
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.capsule.is-sealed {
  /* 封着的胶囊压暗一点：读者能看见「有封信」，但读不到内容 */
  background: repeating-linear-gradient(
    135deg,
    transparent 0 7px,
    rgba(0, 0, 0, .022) 7px 14px
  );
}
.cap-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cap-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.cap-state { color: var(--faint); }
.cap-para {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-2);
}
.cap-para:first-of-type { margin-top: 10px; }
.cap-sealed {
  margin-top: 10px;
  padding: 14px 0 2px;
  font-size: 13px;
  color: var(--faint);
}

/* 转赠纪念卡：一次交接，一张纸 */
.keepsake {
  padding: 30px 34px;
  background: var(--paper-face);
}
.ks-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
/* 编号是一整串，一行印完——不拆开、不分年份序号 */
.ks-code {
  display: block;
  margin: 18px 0 6px;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: .045em;
  color: var(--text);
}
.ks-handover {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.ks-who {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-2);
}
.ks-arrow { color: var(--faint); }
.ks-note {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.ks-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-faint);
}
.ks-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line-faint);
}

/* ==========================================================================
   编号归档 /archive · /archive/{year}
   ========================================================================== */
.arc-years {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.arc-year {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  transition: border-color .16s, background .16s, transform .16s var(--ease);
}
.arc-year:hover {
  border-color: var(--line-2);
  background: var(--panel-2);
  transform: translateY(-1px);
}
.ay-num {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.ay-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ay-count { font-size: 13px; color: var(--text-2); }
.ay-range { font-size: 11.5px; color: var(--faint); }
.ay-arrow { flex: none; color: var(--faint); }
.ay-arrow svg { width: 15px; height: 15px; display: block; }

.arc-month-h {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-faint);
}
.am-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .04em;
}
.am-count { font-variant-numeric: tabular-nums; }

.arc-list { display: flex; flex-direction: column; gap: 2px; }
.arc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background .14s;
}
.arc-row:hover { background: var(--bg-soft); }
.ar-code {
  flex: none;
  width: 86px;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  color: var(--text-2);
}
.ar-site { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ar-title {
  font-size: 13.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ar-domain {
  font-size: 11.5px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ar-tag { flex: none; }
.ar-date { flex: none; width: 44px; text-align: right; }
@media (max-width: 560px) {
  .ar-code { width: 72px; font-size: 12.5px; }
  .arc-row { gap: 10px; padding: 8px 6px; }
  .ar-date { width: auto; }
}

/* ==========================================================================
   刘海屏 / 圆角屏
   --------------------------------------------------------------------------
   <meta viewport> 里有 viewport-fit=cover —— 也就是说页面会铺到刘海和
   屏幕圆角下面，必须自己把内容让开，否则 iPhone 横屏时左边那行字会被
   挖掉一块，右下角的「回到顶部」会被 Home 指示条压住。

   全部写成 max(原值, env(...))：
   env() 在不支持的设备上返回 0，max 会落回原值，等于什么都没发生。
   所以这段在新旧设备上都安全，不需要写 @supports 包一层再赌一次。
   ========================================================================== */
.wrap {
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
}
.site-footer {
  padding-bottom: calc(44px + env(safe-area-inset-bottom));
}
.to-top {
  right: max(22px, calc(env(safe-area-inset-right) + 12px));
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 12px));
}
@media (max-width: 560px) {
  .wrap {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
  .to-top {
    right: max(14px, calc(env(safe-area-inset-right) + 12px));
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 12px));
  }
}

/* ==========================================================================
   错峰进场（.stagger）
   --------------------------------------------------------------------------
   .reveal 让整个 section 一起淡入。可一个 section 里排着 6 张卡片时，
   六张同时出现像「啪」地贴上一整块，眼睛找不到该先看哪。
   给每张加 55ms 的间隔，视线自然从上往下走一遍。

   两个上限是有意的：
     1. 只延迟前 12 项 —— 一张列表排到第 30 个还要等 1.6 秒才出现，比不动更烦。
     2. prefers-reduced-motion 下直接常显 —— 动效是装饰，不是信息。
   ========================================================================== */
html.js .stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js .stagger.in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   证书纸张质感（第二层）
   --------------------------------------------------------------------------
   原来只有「纸纤维」（斜纹）和一圈内高光，看着还是像一块贴了纹理的塑料板。
   真纸张有三个特征，这里各补一点：
     1. 中间亮、四角暗 —— 光打在纸面中央，边角微微收进去（vignette）
     2. 有一道印刷边框 —— 证书类印刷品几乎都有，且是往里缩一圈的
     3. 边缘不吃光 —— 纸边比纸面薄，会透出一点底色
   全部用伪元素和背景渐变画，不加图片、不加请求。
   ========================================================================== */
.cert::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: var(--paper-sheen);
}
/* 内框与晕影（白天/夜间/高对比三套值）都在主题令牌 --paper-edge 里，
   这里不再重复覆盖——以前夜里各自抄一份白光值，改一处漏一处。 */

/* 揭幕动画（美化 8）：证书不是「加载出来」的，是「揭开」的——
   clip-path 从中间一道缝向两侧展开，像撕开信封口。
   to 帧故意扩到 inset(-60px) 而不是 0：clip-path 会把外阴影一起裁掉，
   扩出去 60px 才装得下 var(--shadow-2) 的落影；fill 用 backwards，
   动画播完整个属性回归基础样式（无 clip），落影无缝接上。
   其他想「揭开一张纸」的场合直接复用 unveil 关键帧。 */
@media (prefers-reduced-motion: no-preference) {
  @supports (clip-path: inset(0)) {
    .cert { animation: unveil .72s var(--ease) backwards; }
  }
}
@keyframes unveil {
  from { clip-path: inset(0 50% 0 50%); opacity: 0; }
  55%  { opacity: 1; }
  to   { clip-path: inset(-60px); opacity: 1; }
}
/* 打印时不要内阴影和渐层：家用打印机把渐变打出来是一块灰 */
@media print {
  .cert, .cert::after { box-shadow: none !important; background: #fff !important; }
  .cert::before { display: none; }
  .cert { animation: none; }
}

/* 徽章工坊的预览场景。
   用属性选择器而不是 class：canvas 上已经有 is-dark / is-light 两个 class
   由徽章主题控制，再叠 class 会变成四种状态互相打架。
   属性一挂，主题那两个 class 就被 removeAttribute 前先清掉，
   语义上「手动场景」优先于「跟随主题」，代码里也看得出来。 */
.studio-canvas[data-scene="dark"] {
  background: #14171D;
}
.studio-canvas[data-scene="light"] {
  background: #F4F1EA;
}
/* 米色纸张：老式个人主页那种带点黄的底色，很多 2000 年代的站还在用 */
.studio-canvas[data-scene="paper"] {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%),
    #EFE7D6;
}
.field-hint {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--faint);
}

/* ============================================================
   首页浮尘（dust.js 画的 canvas）
   ------------------------------------------------------------
   放 z-index:0，和 .ambient 同层、排在它之后 ——
   main / .site-footer 是 z-index:1，所以内容永远压在上面，
   小点只从留白里透出来，不会盖住字。
   ============================================================ */
.dust {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* 高对比主题的前提就是「不要背景噪声」，这里跟着 .ambient 一起关掉 */
html[data-theme="contrast"] .dust { display: none; }

/* ============================================================
   正文字号（页脚那三个按钮）
   ------------------------------------------------------------
   为什么不整体 zoom：zoom 会把 sticky / fixed 的包含块一起改掉，
   页头的吸顶和右下角的回顶按钮都会跟着漂。
   这里只抬「成段阅读」的字——p / li / 引用 ——
   字号用 em 相对父级算，所以嵌在小字卡片里的段落不会被一步顶爆。
   ============================================================ */
.read-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.rp-label {
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: .04em;
  margin-right: 2px;
}
.rp-btn {
  font: inherit;
  font-size: 11.5px;
  line-height: 1;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.rp-btn:hover { color: var(--text-2); border-color: var(--faint); }
.rp-btn[aria-pressed="true"] {
  color: var(--accent-2);
  border-color: var(--accent-line);
  background: var(--accent-bg);
}
.rp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

html:is([data-read="2"], [data-read="3"]) :is(p, li, blockquote, dd) {
  font-size: calc(1em * var(--read-fs, 1.09));
  line-height: var(--read-lh, 1.86);
}
html[data-read="2"] { --read-fs: 1.09; --read-lh: 1.86; }
html[data-read="3"] { --read-fs: 1.18; --read-lh: 1.96; }

/* 字大了，浅灰就更容易糊在纸底上；日间把两档灰各压深一点。
   只在 light 下改 —— 夜间本来就是对浅色字，压深反而是降对比。 */
html[data-theme="light"]:is([data-read="2"], [data-read="3"]) {
  --muted: #545A62;
  --faint: #6B7078;
}

/* ============================================================
   虫洞入口（/wormhole 那一页有自己的 wormhole.css）
   ------------------------------------------------------------
   按钮上的图标不是骰子，是一圈压扁的同心环 —— 隧道的截面。
   骰子说的是「随机」，环说的是「进去」。
   悬停时把环拧一下，暗示「旋进去」，不解释也不用解释。
   ============================================================ */
.btn-wormhole .wh-ico {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: .72;
  transition: transform .55s cubic-bezier(.2, .7, .3, 1), opacity .25s;
}
.btn-wormhole:hover .wh-ico {
  transform: rotate(-48deg);
  opacity: 1;
}
/* 按下时不再上浮：这一下是「跳走」，不是「点了个按钮」 */
.btn-wormhole:active { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .btn-wormhole .wh-ico { transition: none; }
  .btn-wormhole:hover .wh-ico { transform: none; }
}

/* ============================================================
   展示馆封面（没缩略图时自己拼一张）
   ------------------------------------------------------------
   以前这块只有一个居中的 38px 彩色字母，上下各留 60px 空白，
   一屏扫过去像六张没加载完的图。

   现在按「一张封面」来排：域名色打底、首字母做大号水印压在右下、
   编号缩在左下角、右上角给一个指向外面的箭头。
   零请求、零图片，但每一张都不一样，而且都不会空。
   ============================================================ */
.gcover {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  /* 三层：左上高光 / 域名色渐变 / 最后压一层纸色。
     最后一层是关键 —— 色相是域名哈希出来的，什么颜色都有可能，
     不洗一遍就会出现一整排荧光紫，和全站的暖纸打架。 */
  background:
    radial-gradient(120% 96% at 16% 0%, rgba(255, 255, 255, .22), transparent 56%),
    linear-gradient(135deg, var(--g1, #8A8578), var(--g2, #55514A)),
    rgba(244, 241, 234, .16);
  background-blend-mode: normal, normal, normal;
}
/* 斜向发丝：让色块有织物的手感，而不是一块塑料 */
.gcover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    114deg,
    rgba(255, 255, 255, .07) 0 1px,
    transparent 1px 8px);
  opacity: .9;
}

/* 首字母：不是「图标」，是印在封面上的一个大字。
   略微出血到边框外，让它像被裁掉一角，而不是缩在正中间。 */
.gcover-mark {
  position: absolute;
  right: 4%;
  bottom: -14%;
  font-family: var(--brand-cn);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(80px, 9.4vw, 112px);
  line-height: 1;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .16);
  user-select: none;
  transition: transform .55s var(--ease), color .45s;
}
.gcard:hover .gcover-mark {
  transform: translateY(-4px) scale(1.04);
  color: rgba(255, 255, 255, .26);
}

/* 编号：这张封面属于哪一枚。左下角，字距拉开，像印在票根上 */
.gcover-code {
  position: absolute;
  left: 14px;
  bottom: 11px;
  font-family: var(--brand-domain);
  font-size: 9.5px;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .62);
  font-variant-numeric: tabular-nums;
}

/* 右上角的箭头：这一下是去别人的站，所以指向外面 */
.gcover-go {
  position: absolute;
  right: 12px;
  top: 9px;
  font-size: 11.5px;
  line-height: 1;
  color: rgba(255, 255, 255, .45);
  transition: transform .35s var(--ease), color .35s;
}
.gcard:hover .gcover-go {
  transform: translate(2px, -2px);
  color: rgba(255, 255, 255, .92);
}

@media (prefers-reduced-motion: reduce) {
  .gcover-mark, .gcover-go { transition: none; }
  .gcard:hover .gcover-mark { transform: none; }
}

/* ============================================================
   站点详情页的头部
   ------------------------------------------------------------
   原来是一个 52px 的小色块 + 三行字，右边整块空着，像没排完。
   现在：色块放大成一块「封面切片」，站点色在背后透一层很淡的光，
   让每个站的详情页有自己的气息，而不是同一张白纸。
   ============================================================ */
.show-head {
  position: relative;
  margin-top: 26px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* 站点色不铺成一块背景板：radial-gradient 落在元素边缘会留一条硬边，
   看着像没对齐的色块。改成给色块自己加一圈同色的柔光，
   光晕是围着图形转的，不会有边界。 */

.show-glyph {
  flex: none;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--g1, #8A8578), var(--g2, #55514A));
  color: rgba(255, 255, 255, .92);
  font-family: var(--brand-cn);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  box-shadow:
    0 1px 2px rgba(74, 60, 40, .08),
    0 16px 30px -20px rgba(74, 60, 40, .38),
    0 0 0 9px hsl(var(--h, 24) 38% 58% / .08);
  overflow: hidden;
}

@media (max-width: 560px) {
  .show-head { gap: 14px; }
  .show-glyph { width: 84px; height: 84px; border-radius: 14px; font-size: 34px; }
}

/* ---------- 签发回执 ----------
   领到一枚号是这站上唯一「真正得到东西」的时刻，值一张纸，不值一条 flash。
   注意编号整串印，不加 No.、不加分隔、不拆两行。 */

.rcpt-wrap { padding: 44px 28px 64px; }

.rcpt {
  position: relative;
  margin-top: 18px;
  padding: 24px 30px 0;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background-color: var(--panel);
  /* 一道 118° 的极淡发丝，8px 一循环：只在光下看得出，不抢字 */
  background-image: repeating-linear-gradient(
    118deg,
    rgba(120, 104, 78, .028) 0 1px,
    transparent 1px 8px
  );
  box-shadow: 0 1px 2px rgba(74, 60, 40, .06), 0 18px 40px -26px rgba(74, 60, 40, .34);
  overflow: hidden;
}
/* 顶部一道珊瑚细线：像信笺的压边，不是边框加粗 */
.rcpt::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: .82;
}

.rcpt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.rcpt-k {
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--faint);
}
.rcpt-d {
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rcpt-body { padding: 34px 0 6px; }
.rcpt-lead {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--faint);
}
/* 整串八位一行。字距给足，让八个数字之间有呼吸，
   但它仍然是一个词，不是一个式子。 */
.rcpt-code {
  margin: 14px 0 0;
  font-family: var(--brand);
  font-weight: 700;
  font-size: clamp(34px, 7.4vw, 62px);
  line-height: 1;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text);
}
/* 里程表：领到号的那一下，八位数字一位一位滚下来。
   letter-spacing 对空 span 不起作用，所以改成 flex + gap；
   每一位一个裁切窗口（.rr），窗口里是一条 0–9 的长轨。 */
.rcpt-code.is-rolling {
  display: flex;
  justify-content: center;
  gap: .1em;
  letter-spacing: 0;
}
.rcpt-code .rr {
  display: inline-block;
  height: 1.28em;
  overflow: hidden;
}
.rcpt-code .rr-t {
  display: block;
  transition: transform .92s cubic-bezier(.16, .84, .24, 1);
  will-change: transform;
}
.rcpt-code .rr-t b {
  display: block;
  height: 1.28em;
  line-height: 1.28em;
  font-weight: inherit;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .rcpt-code.is-rolling { display: block; }
  .rcpt-code .rr-t { transition: none; }
}
.rcpt-site {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.rcpt-site b { color: var(--text); font-weight: 600; }
.rcpt-host {
  display: inline-block;
  margin-left: 7px;
  font-size: 11.5px;
  color: var(--faint);
}

/* 章：日间压进纸纹（multiply），夜间换成微光（screen），
   否则深底上整块消失。 */
.rcpt-seal {
  position: absolute;
  right: 26px;
  bottom: 68px;
  width: 132px;
  height: 132px;
  color: var(--accent);
  opacity: .66;
  transform: rotate(-9deg);
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* 回执上的章不是「放着」的，是「盖下来」的：
   和复制印章（copy-stamp）同一套物理语言——举起来、压实、落定。
   缓动走 --ease-stamp，节奏交给关键帧里的 70% 压实帧。 */
@media (prefers-reduced-motion: no-preference) {
  .rcpt-seal { animation: stamp-in .42s var(--ease-stamp) .25s both; }
}
@keyframes stamp-in {
  0%   { opacity: 0;  transform: rotate(-24deg) scale(1.5); }
  70%  { opacity: .8; transform: rotate(-8deg)  scale(.94); }
  100% { opacity: .66; transform: rotate(-9deg) scale(1); }
}
html[data-theme="dark"] .rcpt-seal,
html[data-theme="contrast"] .rcpt-seal {
  opacity: .42;
  mix-blend-mode: screen;
}
.rcpt-seal svg { display: block; width: 100%; height: 100%; }
.rcpt-seal-arc {
  font-size: 12px;
  letter-spacing: .16em;
  fill: currentColor;
  font-family: var(--brand);
}
.rcpt-seal-mid {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .1em;
  fill: currentColor;
  font-family: var(--brand);
}

/* 落款给章让出位置：章压着一点边才有盖上去的感觉 */
.rcpt-foot {
  display: flex;
  gap: 38px;
  margin-top: 30px;
  padding: 15px 132px 20px 0;
  border-top: 1px dashed var(--line-2);
}
.rcpt-fk {
  display: block;
  font-size: 9.5px;
  letter-spacing: .14em;
  color: var(--faint);
}
.rcpt-fv {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.rcpt-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.rcpt-note {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--faint);
}

@media (max-width: 560px) {
  .rcpt-wrap { padding: 30px 18px 52px; }
  .rcpt { padding: 20px 20px 0; }
  .rcpt-body { padding: 26px 0 4px; }
  .rcpt-code { font-size: 8.2vw; letter-spacing: .06em; }
  .rcpt-seal { width: 88px; height: 88px; right: 12px; bottom: 54px; opacity: .54; }
  .rcpt-seal-arc { font-size: 11px; letter-spacing: .1em; }
  .rcpt-seal-mid { font-size: 18px; }
  .rcpt-foot { gap: 20px; padding: 13px 0 16px; flex-wrap: wrap; }
  .rcpt-acts .btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- 上手进度：五步走在一条线上 ---------- */
.steps-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  /* 和刻度线同宽，否则「还有两步」会飘到屏幕另一头去 */
  max-width: 560px;
}
.steps-head .k {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--faint);
}
.steps-head .v {
  font-size: 12.5px;
  color: var(--text-2);
}

.steps {
  display: flex;
  max-width: 560px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding-top: 22px;
}
/* 连接线：首尾各收一半，线才不会伸出两个端点之外 */
.step::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.step:first-child::before { left: 50%; }
.step:last-child::before { right: 50%; }
.step.is-done::before,
.step.is-now::before { background: var(--accent-line); }

.step-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg);
  box-sizing: border-box;
}
.step.is-done .step-dot {
  background: var(--accent);
  border-color: var(--accent);
}
.step.is-now .step-dot {
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-bg);
}
.step-t {
  display: block;
  padding: 0 4px;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  color: var(--faint);
}
.step.is-done .step-t { color: var(--text-2); }
.step.is-now .step-t { color: var(--text); font-weight: 600; }

.steps-act { margin-top: 16px; }

@media (max-width: 560px) {
  .step-t { font-size: 10px; padding: 0 2px; }
  .steps { margin-top: 16px; }
}

/* ---------- 愿望单 ---------- */
.wish-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-faint);
}
.wish-row:last-child { border-bottom: 0; }
.wish-code {
  font-family: var(--brand);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text);
}
.wish-main { flex: 1 1 auto; min-width: 0; }
.wish-sub {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--faint);
}
.wish-acts { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 560px) {
  .wish-row { flex-wrap: wrap; gap: 8px 12px; }
  .wish-acts { width: 100%; }
}

/* ---------- 空状态（全站统一） ----------
   全站 34 处「暂无 / 还没有」，读起来像报错。
   空的地方应当说清「这里本来会有什么」，而不是「什么都没有」。
   结构：插画 + 一句（.empty-line）+ 一句补充（.empty-sub）+ 一个出口（.empty-go）。 */
.empty-line {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
}
.empty-sub {
  margin: 8px auto 0;
  max-width: 36ch;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--faint);
}
.empty-go {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 2px;
  font-size: 12.5px;
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: border-color .18s ease, color .18s ease;
}
.empty-go:hover { border-bottom-color: var(--accent-2); }
.empty-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
/* 卡片内部的空状态不需要再套一层虚线框 */
.empty.is-bare {
  max-width: none;
  margin: 0;
  padding: 34px 12px 32px;
  border: 0;
  background: none;
}
@media (max-width: 560px) {
  .empty { padding: 42px 16px; }
  .empty.is-bare { padding: 28px 10px; }
}

/* ---------- 发号年轮 ----------
   一年 365 格，哪几天放了号。数据来自 issued_at（我们放号的时间），
   与编号里那八位数字无关——别把这张图读成「编号的生日」。 */
.wheel-h1 {
  font-size: 32px;
  margin-top: 10px;
}
.wheel-lead {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--text-2);
}
.wheel-note {
  margin: 10px 0 0;
  max-width: 52ch;
  font-size: 12px;
  line-height: 1.85;
  color: var(--faint);
}

.wheel-wall {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px 24px 18px;
}

.wheel-figs {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-faint);
}
.wheel-fig .k {
  display: block;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--faint);
}
.wheel-fig .v {
  display: block;
  margin-top: 6px;
  font-family: var(--brand);
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.wheel-fig .v em {
  margin-left: 4px;
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: var(--faint);
}
.wheel-fig .v-sm { font-size: 15px; font-weight: 500; }

.wheel-scroll { overflow-x: auto; }

.wheel {
  display: grid;
  grid-template-columns: 34px repeat(31, minmax(0, 1fr));
  gap: 3px;
  min-width: 620px;
}
.wheel-m {
  align-self: center;
  padding-right: 5px;
  text-align: right;
  font-size: 10px;
  color: var(--faint);
  letter-spacing: .02em;
}

/* 一格：底是空盘的灰，热度靠 accent 叠上去。
   用 ::after + opacity，主题一切就自动跟随，不用为每档写一遍深色。 */
.wheel-d {
  position: relative;
  align-self: center;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--line-faint);
}
/* 撑成正方形：grid 的 align-self:stretch 会让 aspect-ratio 失效，
   所以用 padding-bottom 的百分比（相对宽度）来定高。 */
.wheel-d::before {
  content: "";
  display: block;
  padding-bottom: 100%;
}
.wheel-d::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  opacity: var(--o, 0);
}
.wheel-d[data-k="1"] { --o: .24; }
.wheel-d[data-k="2"] { --o: .40; }
.wheel-d[data-k="3"] { --o: .58; }
.wheel-d[data-k="4"] { --o: .80; }
.wheel-d.is-pad { box-shadow: none; }
.wheel-d.is-pad::after { display: none; }

.wheel-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 10.5px;
  color: var(--faint);
}
.wheel-legend .wheel-d {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
}
.wheel-legend .wheel-d::before { display: none; }
.wheel-lg-k { margin: 0 5px; }
.wheel-lg-note {
  margin-left: auto;
  letter-spacing: .02em;
}

@media (max-width: 640px) {
  .wheel-wall { padding: 16px 14px 14px; }
  .wheel { min-width: 560px; }
  .wheel-figs { gap: 22px; padding-bottom: 16px; margin-bottom: 18px; }
  .wheel-fig .v { font-size: 22px; }
  .wheel-lg-note { width: 100%; margin: 8px 0 0; }
  .wheel-legend { flex-wrap: wrap; }
}

.wheel-foot {
  margin: 18px 0 0;
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--faint);
}
.wheel-foot a { color: var(--accent-2); }

.wheel-years {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}
.wheel-yr {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  text-decoration: none;
  transition: border-color .16s, color .16s, background .16s;
}
.wheel-yr:hover { border-color: var(--line-2); color: var(--text); }
.wheel-yr.on {
  border-color: var(--accent-line);
  background: var(--accent-bg);
  color: var(--accent-2);
}

/* ---------- 后四位一样的号 ---------- */
.same-h1 {
  font-size: 28px;
  margin-top: 10px;
}
.same-lead {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.same-hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--text-2);
}
.same-hint b { color: var(--accent-2); font-weight: 600; }

.same-list { margin-top: 24px; }

.same-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  text-decoration: none;
  transition: border-color .16s, transform .16s var(--ease), box-shadow .16s;
}
.same-row:hover {
  border-color: var(--accent-line);
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}
.same-code {
  font-family: var(--brand);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text);
}
.same-site {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--faint);
}
.same-go {
  font-size: 12px;
  color: var(--faint);
  transition: transform .2s, color .2s;
}
.same-row:hover .same-go { transform: translateX(3px); color: var(--accent); }

.same-foot {
  margin: 24px 0 0;
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--faint);
}
.same-foot a { color: var(--accent-2); }

@media (max-width: 560px) {
  .same-row { flex-wrap: wrap; gap: 8px 12px; padding: 13px 14px; }
  .same-site { flex-basis: 100%; order: 3; }
  .same-go { display: none; }
  .same-h1 { font-size: 24px; }
}

.same-jump {
  margin: 22px 0 0;
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--faint);
}
.same-jump a { color: var(--accent-2); }

/* ---------- 馆刊 ----------
   一个月一封。全站都在讲「现在」，这一页往回看。 */
.jr-wrap { padding: 44px 28px 56px; }

.jr-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.jr-k {
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--accent);
}
.jr-m {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.jr-h1 {
  margin-top: 28px;
  font-size: 30px;
  line-height: 1.45;
}
.jr-lead {
  max-width: 44ch;
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.95;
  color: var(--muted);
}

.jr-sec { margin-top: 40px; }
.jr-h2 {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-2);
}
.jr-n {
  font-size: 11px;
  font-weight: 400;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.jr-list {
  margin-top: 14px;
  border-top: 1px solid var(--line-faint);
}
.jr-item {
  display: block;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line-faint);
  text-decoration: none;
}
.jr-title {
  display: block;
  font-size: 14.5px;
  color: var(--text);
  transition: color .16s;
}
.jr-headline {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.jr-meta {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.jr-item:hover .jr-title { color: var(--accent-2); }

.jr-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}
.jr-code {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--brand);
  font-size: 13px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  text-decoration: none;
  transition: border-color .16s, color .16s;
}
.jr-code:hover { border-color: var(--accent-line); color: var(--text); }
.jr-more {
  align-self: center;
  padding-left: 4px;
  font-size: 10.5px;
  color: var(--faint);
}

.jr-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid var(--line-faint);
  font-size: 12px;
}
.jr-nav a { color: var(--accent-2); text-decoration: none; }
.jr-nav a:hover { text-decoration: underline; }
.jr-now { color: var(--faint); }

@media (max-width: 560px) {
  .jr-wrap { padding: 30px 18px 48px; }
  .jr-h1 { font-size: 25px; margin-top: 22px; }
  .jr-sec { margin-top: 32px; }
}

/* ---------- 放号的编年 ---------- */
.chron { margin-top: 38px; }
.chron-h {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-2);
}
.chron-sub {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--faint);
}
.chron-list {
  margin: 20px 0 0;
  padding: 0 0 0 22px;
  list-style: none;
  border-left: 1px solid var(--line-2);
}
.chron-i {
  position: relative;
  padding-bottom: 22px;
}
.chron-i:last-child { padding-bottom: 0; }
.chron-dot {
  position: absolute;
  left: -27px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  box-sizing: border-box;
}
.chron-i.is-now .chron-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.chron-date {
  display: block;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.chron-t {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.chron-now {
  margin-left: 8px;
  padding: 1px 7px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--accent);
}

/* ---------- 翻页过渡 ----------
   View Transitions：支持的浏览器翻页时会淡一下，不支持的什么都不发生。
   这是全站唯一一处「一行 CSS 换来现代感」的地方，不要加别的动画进去。 */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-group(root) {
    animation: none !important;
  }
}

/* ---------- 复制成功：盖一枚章 ----------
   把按钮文字换成「已复制」会把按钮撑宽、把整行推一下；
   盖章只是盖上去，布局一动不动。 */
.copy-btn { position: relative; }
.copy-btn::after {
  content: "已复制";
  position: absolute;
  inset: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--panel);
  color: var(--accent);
  font-size: 9.5px;
  letter-spacing: .12em;
  line-height: 1;
  opacity: 0;
  /* 静止态别用 scale(1.4)：那枚透明的章照样参与滚动溢出计算，
     会把 .copyrow-box 撑出十几像素。放大的动作交给 copy-stamp 关键帧。 */
  transform: rotate(-7deg) scale(1);
  pointer-events: none;
}
.copy-btn.is-done::after {
  opacity: .95;
  transform: rotate(-7deg) scale(1);
  animation: copy-stamp .34s var(--ease-stamp) both;
}
html[data-theme="dark"] .copy-btn::after,
html[data-theme="contrast"] .copy-btn::after {
  background: var(--panel-2, var(--panel));
}
@keyframes copy-stamp {
  0%   { opacity: 0;  transform: rotate(-18deg) scale(1.5); }
  70%  { opacity: 1;  transform: rotate(-6deg) scale(.96); }
  100% { opacity: .95; transform: rotate(-7deg) scale(1); }
}

/* ---------- 表单报错：一枚墨点，不是红框 ----------
   红框是「系统判定你错了」，墨点是「这里有个地方要改」。
   这站没有一处红色警告，错误提示也不该破例。 */
.field-error {
  position: relative;
  padding-left: 13px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--accent-2);
}
.field-error::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .52em;
  width: 5px;
  height: 5px;
  /* 四个角半径各不相同，才像一滴墨，不像一个圆点 */
  border-radius: 52% 44% 56% 48%;
  background: currentColor;
  opacity: .82;
}
/* 有错的那一行输入框只换一道边色，不加红框、不加图标 */
.field:has(.field-error) .input,
.field:has(.field-error) textarea,
.field:has(.field-error) select {
  border-color: var(--accent-line);
}

/* ---------- 打印 ----------
   编号证书打出来应该是一张纸，不是一张网页。
   只保留内容：导航、页脚、浮尘、纸纹、进度条全部不打印。 */
@media print {
  .ambient,
  .site-header,
  .site-footer,
  .scroll-progress,
  .dust,
  .to-top,
  .btn,
  .copy-btn,
  .site-toast {
    display: none !important;
  }

  html, body {
    background: #fff !important;
    color: #1a1a1a !important;
  }

  main { padding: 0 !important; }
  .wrap, .wrap-narrow { max-width: none !important; padding: 0 !important; }

  /* 卡片与证书：去掉阴影和圆角，留一条细边框，像印在纸上 */
  .card, .cert, .rcpt {
    background: #fff !important;
    box-shadow: none !important;
    border: 1px solid #bbb !important;
    border-radius: 0 !important;
  }

  .site-footer { display: none !important; }

  a { color: inherit !important; text-decoration: none !important; }

  @page { margin: 16mm 14mm; }
}

/* ---------- 章节编号 ----------
   像一本册子的目录：每一节左上角一个 01 / 02。
   只在宽屏显示——窄屏时 wrap 两侧没有余量，编号会压到内容上。
   绝对定位，不占布局，也不改任何 section 的 padding。 */
main { counter-reset: nn-ch; }
main > section {
  counter-increment: nn-ch;
  position: relative;
}
/* 只有一个 section 的页面不显示编号：孤零零一个「01」不是目录，是噪声。 */
main > section:only-of-type::before { content: none; }

@media (min-width: 1180px) {
  main > section::before {
    content: counter(nn-ch, decimal-leading-zero);
    position: absolute;
    left: -30px;
    top: 2px;
    font-family: var(--brand);
    font-size: 9.5px;
    line-height: 1;
    letter-spacing: .12em;
    font-variant-numeric: tabular-nums;
    color: var(--faint);
    opacity: .7;
    pointer-events: none;
    user-select: none;
  }
}

/* =========================================================================
   第 17 批 · 曝光折线 / 展示馆反馈 / 邻居分组
   色彩一律走令牌，夜间与高对比自己跟随，不另写深色版。
   ========================================================================= */
.spark-card {
  margin-top: 18px;
  padding: 14px 16px 10px;
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background: var(--panel);
}
.spark { display: block; width: 100%; height: 46px; margin-top: 10px; }
.spark-axis {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--faint);
  margin-top: 2px;
}

.feedback-fold > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  user-select: none;
}
.feedback-fold > summary::-webkit-details-marker { display: none; }
.feedback-fold > summary::before {
  content: "";
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .2s var(--ease);
}
.feedback-fold[open] > summary::before { transform: rotate(45deg); }
.feedback-fold > summary:hover { color: var(--text-2); }
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.feedback-grid .card { padding: 16px; }
.feedback-grid .captcha-inline { flex: 0 0 auto; }
@media (max-width: 640px) {
  .feedback-grid { grid-template-columns: 1fr; }
}

/* ---------- 第 17 批 · 顶栏消息 / 首页策展 ---------- */
.nav-notice { position: relative; }
.nav-dot {
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}
.curate-card { display: block; padding: 20px; }
.curate-card .eyebrow { letter-spacing: .08em; }
@media (max-width: 560px) {
  .nav-notice { padding-left: 7px; padding-right: 7px; }
  .nav-notice-txt { display: none; }
  .nav-notice::before { content: "\25CE"; font-size: 13px; line-height: 1; }
  .nav-dot { margin-left: 2px; }
}

/* =========================================================================
   第 17 批 · 公开信按年 / 馆刊往期 / 下一步条 / 搜索建议
   ========================================================================= */
.letter-year { padding-bottom: 22px; }
.letter-year-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 12px;
}
.letter-year-n {
  font-size: 34px; font-weight: 700;
  color: var(--accent); opacity: .16;
  letter-spacing: -.02em; line-height: 1;
}
.letter-year-t { font-size: 14px; margin: 0 0 2px; color: var(--text-2); font-weight: 600; }
.letter-year-rule { flex: 1; height: 1px; background: var(--line-faint); }

.jr-archive { margin-top: 34px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.jr-arch-months { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.jr-arch-m {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 7px 11px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 12px;
  color: var(--text-2); background: var(--panel);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.jr-arch-m:hover { border-color: var(--accent); color: var(--accent-2); }
.jr-arch-m.is-now { border-color: var(--accent); color: var(--accent-2); }

.next-wrap { padding-bottom: 26px; }
.next-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line-faint);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--panel);
}
.next-k {
  display: block; font-size: 10.5px; letter-spacing: .1em;
  color: var(--accent-2); margin-bottom: 6px;
}
.next-line { margin: 0; font-size: 14px; color: var(--text); line-height: 1.7; }
.next-note { margin: 6px 0 0; line-height: 1.7; }
@media (max-width: 560px) {
  .next-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* 搜索建议：挂在 .search-bar 里，绝对定位，不占布局高度 */
.search-bar { position: relative; }
.suggest-box {
  position: absolute; left: -1px; right: -1px; top: calc(100% + 6px);
  z-index: 40;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.suggest-box[hidden] { display: none; }
.suggest-loading { padding: 12px 14px 4px; }
.suggest-loading .skeleton-line { height: 10px; margin-bottom: 8px; }
.suggest-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-faint);
  font-size: 13px;
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover, .suggest-item.is-active { background: var(--bg-soft); }
.suggest-kind { font-size: 10px; color: var(--faint); }
.suggest-label { color: var(--text); font-variant-numeric: tabular-nums; }
.suggest-sub { font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  .suggest-item { grid-template-columns: 34px minmax(0, 1fr); }
  .suggest-sub { display: none; }
}

/* ============================================================
   第 26 项 · 一整套图形语言（ornament）
   颜色一律走主题令牌；SVG 线稿继承 currentColor，不写死色值；
   透明度只在 SVG 内部用 opacity(<=.5)，夜间提亮、高对比拉满。
   ============================================================ */

.orn-wrap {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}
.orn {
  display: inline-block;
  color: var(--line-2);
  line-height: 0;
  max-width: 100%;
}
.orn svg { display: block; width: 100%; height: auto; }

.orn-rule svg  { width: 240px; height: auto; }
.orn-seal svg  { width: 72px; height: 72px; }
.orn-fiber svg { width: 64px; height: 64px; }
.orn-crest svg { width: 44px; height: 44px; }
.orn-leaf svg  { width: 30px; height: 30px; }

.orn-seal { transform: rotate(-7deg); }
.orn-seal text { font-family: var(--serif); }

.orn-label {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .14em;
  line-height: 1.6;
  color: var(--faint);
}

/* tone 只换变量，不写死色值 */
.orn-tone-accent { color: var(--accent); }
.orn-tone-soft   { color: var(--line-2); }
.orn-tone-faint  { color: var(--faint); }
.orn-tone-text   { color: var(--text-2); }

/* 夜间：深底上把描边提亮 */
html[data-theme="dark"] .orn { color: var(--text-2); }
html[data-theme="dark"] .orn-seal { color: var(--accent); }
html[data-theme="dark"] .orn-label { color: var(--muted); }

/* 高对比：去掉所有柔光/低透明度，保证看得见 */
html[data-theme="contrast"] .orn {
  color: var(--text);
  opacity: 1;
  filter: none;
  text-shadow: none;
}
html[data-theme="contrast"] .orn svg > * { opacity: 1; }
html[data-theme="contrast"] .orn-label { color: var(--text); opacity: 1; }

/* 尊重减少动效：一律关掉动画与过渡 */
@media (prefers-reduced-motion: reduce) {
  .orn, .orn * { animation: none !important; transition: none !important; }
}

/* 手机端：印章收小一点 */
@media (max-width: 640px) {
  .orn-seal svg { width: 54px; height: 54px; }
  .orn-wrap { margin: 22px 0; }
}

/* ---------- 长文阅读排版：协议 / 隐私这类要一口气读完的页面 ---------- */
/* 颜色一律走主题变量，深浅与高对比由 html[data-theme] 自己切换，这里不写深色版硬色值。 */

.prose-head { padding-top: 56px; padding-bottom: 24px; }
.prose-h1 { font-size: 28px; }
.prose-meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--faint);
}
.prose-body { padding-bottom: 70px; }

/* 吸顶目录：一行排完，窄了就横向滚；小字 + 胶囊锚点。 */
.prose-toc {
  position: sticky;
  /* 导航栏实测 62px（不是 56）：差 6px 会让目录顶边压在导航底下 */
  top: 62px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 10px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-size: 12.5px;
}
.prose-toc-label {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.prose-toc a {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.prose-toc a:hover { color: var(--text); border-color: var(--line-2); }
.prose-toc a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.prose-toc-n {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* 正文：一行最多 68ch，眼睛不用在长行里来回找下一行起点。 */
.prose-sec {
  max-width: 68ch;
  margin: 0 0 44px;
  /* 点目录里的锚点时，标题要落在「导航 + 吸顶目录 + 呼吸」之下；
     以前只留 76px，标题会被目录盖掉 34px。实测目录底边在 124px，
     140px 留出 16px 余量，换字体或缩放也不会贴上去。 */
  scroll-margin-top: 140px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-2);
}
.prose-sec:last-child { margin-bottom: 0; }
.prose-sec > h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  color: var(--text);
}
/* :target 当作当前章节的 active 态 */
.prose-sec:target > h2 { border-bottom-color: var(--accent); }
.prose-n {
  flex: none;
  font-family: var(--brand);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.prose-sec h3 {
  margin: 26px 0 10px;
  font-size: 15px;
  color: var(--text);
}
.prose-sec h3:first-child { margin-top: 0; }
.prose-sec p { margin: 0 0 14px; }
.prose-sec p:last-child { margin-bottom: 0; }
.prose-sec b, .prose-sec strong { font-weight: 600; color: var(--text); }
.prose-sec ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--text-2);
}
.prose-sec li { margin-bottom: 6px; }
.prose-sec li:last-child { margin-bottom: 0; }
.prose-sec blockquote {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-bg);
  color: var(--text-2);
}
.prose-sec blockquote p:last-child { margin-bottom: 0; }
.prose-sec table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  font-size: 13px;
}
.prose-sec th, .prose-sec td {
  padding: 9px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose-sec th { background: var(--bg-soft); color: var(--text); font-weight: 600; }
.prose-sec code {
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  font-family: var(--mono);
  font-size: .9em;
  color: var(--text);
  white-space: nowrap;
}
.prose-sec pre {
  margin: 0 0 16px;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.prose-sec pre code { padding: 0; background: none; white-space: pre; }

/* about 页最底下那段「一句必须说清的话」 */
.prose-note {
  max-width: 68ch;
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-bg);
  font-size: 13px;
  line-height: 1.95;
  color: var(--text-2);
}
.prose-note p { margin: 0; }
.prose-note b { color: var(--text); }

/* 手机端：目录收成一条可横向滑动的滚动条 */
@media (max-width: 560px) {
  .prose-toc {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 9px 0;
  }
  .prose-toc::-webkit-scrollbar { height: 4px; }
  .prose-toc::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
  .prose-toc a { padding: 4px 10px; font-size: 12px; }
}

/* =========================================================================
   第 17 批 · 编号大特写 / 卡片反馈统一 / 高对比插画审计
   ========================================================================= */
.numhero {
  padding: 20px 0 16px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.numhero-top, .numhero-bot {
  display: flex; align-items: center; gap: 12px;
  font-size: 10.5px; letter-spacing: .1em; color: var(--faint);
}
.numhero-rule { flex: 1; height: 1px; background: var(--line-faint); }
.numhero-idx { font-variant-numeric: tabular-nums; }
.numhero-digits {
  display: block;
  margin: 18px 0 16px;
  font-family: var(--brand, var(--mono));
  font-size: clamp(34px, 8.2vw, 72px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: .045em;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
  color: var(--text);
  /* 整串八位一个整体：不拆行、不加分隔符、不按日期分组 */
}
.numhero-bot { justify-content: space-between; min-height: 22px; }
.numhero-cap { letter-spacing: 0; font-size: 11px; }
.numhero-crest { width: 26px; height: 26px; color: var(--accent-2); opacity: 1; }
.numhero-crest .orn { width: 100%; height: 100%; color: var(--accent-2); }
/* 纹章是编号页唯一的落款图形。.orn 默认用 --line-2 + path 半透明，
   再乘上容器 opacity 之后有效透明度只有 0.31 / 0.20，日夜间都近乎隐形。
   这里换成可读性更好的品牌深色，并把透明度提到看得见的档位；
   高对比主题后面的规则会把它推到实色白色。 */
.numhero-crest .orn svg > * { opacity: .72; }
.numhero-crest .orn svg > * + * { opacity: .5; }
/* 夜间 / 高对比各有自己的颜色规则，特异性更高，这里写明白三档分别用什么 */
html[data-theme="dark"] .numhero-crest .orn { color: var(--accent-2); }
html[data-theme="contrast"] .numhero-crest .orn { color: var(--text); }
.numhero.is-compact { padding: 12px 0 10px; }
.numhero.is-compact .numhero-digits {
  margin: 8px 0 6px;
  font-size: clamp(26px, 5vw, 40px);
}
.numhero.is-compact .numhero-top,
.numhero.is-compact .numhero-cap { display: none; }
@media (max-width: 400px) {
  .numhero-digits { font-size: clamp(28px, 8vw, 40px); letter-spacing: .02em; }
}

/* 卡片反馈：hover / 按下 / 焦点一套，不再各页各写 */
a.card:focus-visible,
a.cell:focus-visible,
.curate-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a.card:active { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.card, .btn, a.card, a.cell, .tag {
  transition-timing-function: var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .card, .btn, a.card, a.cell, .tag { transition-duration: .01ms; }
}

/* 夜间 / 高对比插画审计：装饰图形不能「藏起来」。
   日间靠 blend-mode 做油墨感，高对比下必须退回实色，
   否则 multiply 压在纯黑底上等于没画。 */
html[data-theme="dark"] .empty-art { color: var(--text-2); }
html[data-theme="contrast"] .empty-art,
html[data-theme="contrast"] .orn,
html[data-theme="contrast"] .numhero-crest {
  opacity: 1 !important;
  color: var(--text);
}
html[data-theme="contrast"] .rcpt-seal,
html[data-theme="contrast"] .post-seal {
  opacity: 1;
  mix-blend-mode: normal;
  color: var(--accent);
}
html[data-theme="contrast"] .wheel-d::after {
  opacity: calc(var(--o, 0) * 1.5);
}
html[data-theme="contrast"] .wheel-d {
  box-shadow: inset 0 0 0 1px var(--text-2);
}
html[data-theme="contrast"] .numhero {
  border-top-color: var(--text-2);
  border-bottom-color: var(--text-2);
}

/* ---------- 骨架屏 · 统一语言（第 17 批） ----------
   骨架由 PHP 直接印在 HTML 里，首屏就能看见；JS 只负责在
   图片 / 异步数据就绪后把它摘掉。这样服务端渲染的内容不会
   「先显示、再被 JS 换成骨架、再换回来」地闪一下。 */
.sk-wrap { position: relative; }
.sk-wrap.is-sk-loading > *:not(.sk):not(.sk-lines):not(.sk-cards) { visibility: hidden; }
/* 骨架摘掉（去掉 is-sk-loading）之后必须真的不占位。
   徽章的骨架是绝对居中的一块渐变，只删 class 不删节点的话，
   它会一直盖在真图上——表现就是「编号/徽章不显示」，而不是报错。 */
.sk-wrap:not(.is-sk-loading) > .sk,
.sk-wrap:not(.is-sk-loading) > .sk-lines,
.sk-wrap:not(.is-sk-loading) > .sk-cards { display: none; }
.sk {
  display: block;
  background: linear-gradient(90deg, var(--bg-soft) 25%, var(--panel-2) 37%, var(--bg-soft) 63%);
  background-size: 400% 100%;
  animation: skel 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
.sk-wrap > .sk-fill,
.sk-fill { position: absolute; inset: 0; z-index: 2; border-radius: 0; }
.sk-line { height: 12px; margin-bottom: 9px; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }
.sk-inline { display: inline-block; width: 3.6em; height: 1em; vertical-align: -.14em; }
.sk-badge { display: inline-block; width: 112px; height: 22px; }
/* 徽章预览的容器本来就是 flex 居中：骨架绝对居中，不挤占真实图片的位置 */
.sk-wrap > .sk-badge {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.sk-lines { padding: 4px 0; }
.sk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
/* 列表整块换成骨架时，骨架自己要占满所有列，不能挤在第一格里 */
.sk-wrap > .sk-cards { grid-column: 1 / -1; }
.embed-preview-box.sk-wrap { display: inline-block; }
.sk-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel);
}
.sk-card-cover { height: 108px; margin-bottom: 14px; }
html[data-theme="contrast"] .sk { background: var(--line-2); animation: none; }
@media (prefers-reduced-motion: reduce) {
  .sk {
    background: var(--bg-soft);
    box-shadow: inset 0 0 0 1px var(--line);
    animation: none;
  }
}

/* 点站内链接 / 提交表单时的顶部细进度条：慢网络下不至于像没点上。 */
.sk-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  z-index: 9999; background: var(--accent);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2, .24s);
}
body.is-leaving .sk-progress,
body.is-sending .sk-progress {
  opacity: 1; width: 88%;
  transition: opacity var(--dur-2, .24s), width 1.2s cubic-bezier(.2, .7, .3, 1);
}
form.is-sending button[type="submit"] { pointer-events: none; opacity: .72; }

/* ---------- 错误页：把「撞墙」改成「还有路可走」 ----------
 * 500 页以前只有一句「已记录这次异常，追踪 ID：xxxx」混在正文里，
 * 用户得自己拖选 12 个字符，还容易抄错；按钮也一律回首页。
 * 现在追踪编号用站内同一个可复制组件，按钮按状态给真正相关的去处。
 * 下面这几条只管版式，颜色一律走主题变量，夜间 / 高对比自动跟着换。 */
.err-page { text-align: center; }
.err-lead { text-wrap: pretty; }
.err-code { letter-spacing: .02em; }
.err-path { margin-top: 6px; word-break: break-all; }
.err-path code {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
  color: var(--text-2);
}
.err-trace {
  max-width: 400px;
  margin: 22px auto 0;
  text-align: left;
}
.err-trace .copyrow { margin-top: 0; }
.err-trace .copyrow-box { background: var(--panel); }
.err-trace .copyrow-box code {
  font-size: 15px;
  letter-spacing: .14em;
  color: var(--text);
  padding: 12px 14px;
}
.err-trace .copyrow-note { color: var(--muted); }
.err-actions { margin-left: auto; margin-right: auto; }
.err-actions .btn { min-height: 42px; display: inline-flex; align-items: center; }
.err-back { margin-top: 18px; line-height: 1.8; }
.err-back a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="contrast"] .err-trace .copyrow-note,
html[data-theme="contrast"] .err-code,
html[data-theme="contrast"] .err-path,
html[data-theme="contrast"] .err-back { color: var(--text); }
html[data-theme="contrast"] .err-path code { border-color: var(--text); color: var(--text); }
@media (max-width: 600px) {
  .err-page { padding-top: 68px !important; }
  .err-trace { max-width: 100%; }
  .err-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- 显示细节巡检后的统一修正 ----------
 * 三项都是 390px 屏上实测出来的：
 *   ① 工作台六列表格把整页撑宽 43px → 收进可横向滑动的容器；
 *   ② 顶栏 / 页脚的小按钮只有 30 / 26px 高，手指按不中 → 手机端抬高；
 *   ③ 首屏叠卡的两张垫纸右出血 22px → 窄屏收一点，还是看得出是「一叠」。 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-hint { display: none; }
@media (max-width: 600px) {
  .table-scroll table { min-width: 430px; }
  .table-hint { display: block; margin: 8px 14px 2px; }
}
@media (max-width: 600px) {
  .theme-toggle { width: 40px; height: 40px; flex-basis: 40px; }
  .nav-search {
    min-width: 40px; min-height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .btn-sm { height: 36px; padding: 0 13px; }
  .rp-btn { min-height: 36px; }
  .plate-sheet.s1 { transform: translate(7px, 9px) rotate(1.7deg); }
  .plate-sheet.s2 { transform: translate(13px, 18px) rotate(3.4deg); }
}

/* ============================================================
   一条路线（.route-list）
   ------------------------------------------------------------
   「连逛十家」给的是**一条路**，不是十张并列的卡片。

   所以排版是行程单：左边一条竖线串起来，每站一个序号圆点。
   网格是「并列」，竖线是「一路」—— 语义不一样，看的人也不一样。

   竖线用 border-left 画，不用伪元素：
   伪元素要算圆点中心的 y，多一层定位；border-left 直接跟着
   li 的内容高度走，最后一站用 :last-child 收掉半截线。
   ============================================================ */
.route-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.route-stop {
  position: relative;
  padding-left: 46px;
  padding-bottom: 16px;
}
.route-stop::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: -4px;
  width: 1px;
  /* 用 line-2 而不是 line：line 是发丝级浅灰，在纸底上几乎看不见，
     「一条路线」的核心视觉就靠这根线。 */
  background: var(--line-2);
}
.route-stop:last-child::before { display: none; }

/* 序号圆点：压在竖线上，像站牌 */
.route-no {
  position: absolute;
  left: 0;
  top: 12px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--panel);
  border: 1px solid var(--line-2);
  font-variant-numeric: tabular-nums;
}
.route-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 15px;
  box-shadow: inset 0 1px 0 var(--sheen), var(--shadow-1);
  transition: border-color var(--dur-2), box-shadow var(--dur-3), transform var(--dur-3) var(--spring);
}
.route-card:hover {
  border-color: var(--line-2);
  box-shadow: inset 0 1px 0 var(--sheen), var(--shadow-2);
  transform: translateY(-2px);
}
.route-t {
  font-size: 16px;
  margin: 0 0 6px;
  line-height: 1.5;
}
.route-p {
  margin: 0 0 12px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.route-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  margin-top: auto;
}

/* 「看过」不封成灰色 —— 灰掉像是失效。
   给一枚浅色小签即可：它是一条信息，不是状态。 */
.route-seen {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 4px;
  color: var(--mint);
  background: var(--mint-bg);
  white-space: nowrap;
}

/* 看过的站：整张卡略微退后，但不至于看不见 */
.route-stop.is-seen .route-card {
  background: var(--panel-2);
  box-shadow: none;
}
.route-stop.is-seen .route-t { color: var(--text-2); }

@media (max-width: 600px) {
  .route-stop { padding-left: 36px; padding-bottom: 12px; }
  .route-stop::before { left: 10px; }
  .route-no { width: 22px; height: 22px; font-size: 11.5px; }
  .route-card { padding: 14px 15px 13px; }
}

/* ============================================================
   站点纪念日（.anniv-list）
   ------------------------------------------------------------
   「这个站在纪念」—— 站长自己填的日期，显示已经多少天 / 还差多少天。

   排版上用「数字大 + 说明小」：天数是主角，日期和标题是注解。
   大数字用衬线（--brand），跟编号那套字体是一家人 ——
   这一页说的还是「编号与署名」那件事。

   未来的日子（还没到）用琥珀色，跟已过的分开：
   「还有 12 天」和「已经 400 天」是两种心情，不该长得一样。
   ============================================================ */
.anniv-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.anniv-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.anniv-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.anniv-item:first-child { border-top: none; padding-top: 2px; }

/* 天数：衬线大字 */
.anniv-days {
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex: 0 0 auto;
  min-width: 62px;
}
.anniv-n {
  font-family: var(--brand);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.anniv-u {
  font-size: 12px;
  color: var(--faint);
}

.anniv-body { min-width: 0; }
.anniv-title {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 2px;
}
.anniv-note {
  margin: 6px 0 0;
  color: var(--text-2);
  line-height: 1.75;
}

/* 还没到的日子 */
.anniv-item.is-future .anniv-n { color: var(--amber); }
.anniv-item.is-future .anniv-title { color: var(--text-2); }

@media (max-width: 600px) {
  .anniv-item { flex-wrap: wrap; gap: 10px; }
  .anniv-n { font-size: 26px; }
}

/* ---------- 首页的纪念日一排 ----------
   横向一排小方块，像书架上的书脊。
   不做成卡片网格：首页已经有好几排网格了，
   再来一排网格就分不清哪排是什么。 */
.anniv-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.anniv-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--sheen), var(--shadow-1);
  transition: border-color var(--dur-2), box-shadow var(--dur-3), transform var(--dur-3) var(--spring);
  color: inherit;
}
.anniv-tile:hover {
  border-color: var(--line-2);
  box-shadow: inset 0 1px 0 var(--sheen), var(--shadow-2);
  transform: translateY(-2px);
}
.anniv-tile-n {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.anniv-tile-n .anniv-n { font-size: 32px; }
.anniv-tile-t {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 还没到的日子：琥珀色，跟已过的分开 */
.anniv-tile.is-future .anniv-n { color: var(--amber); }
.anniv-tile.is-future .anniv-tile-t { color: var(--text-2); }

/* ---------- 编号分享卡（canvas 生成，弹层预览） ----------
   卡片本身是 1200×630 的画布，这里只管「把它端出来」的那层壳。
   夜间用深色背板、白天用纸色背板，跟当前主题走，不另立一套配色。 */
html.sc-lock { overflow: hidden; }

.sc-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.sc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, .52);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
html[data-theme="dark"] .sc-backdrop,
html[data-theme="contrast"] .sc-backdrop { background: rgba(0, 0, 0, .68); }

.sc-panel {
  position: relative;
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 18px 18px 14px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(8px) scale(.985);
  transition: opacity .22s var(--ease), transform .28s var(--spring, var(--ease));
}
.sc-modal.is-on .sc-backdrop { opacity: 1; }
.sc-modal.is-on .sc-panel { opacity: 1; transform: none; }

.sc-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 2px 4px 14px;
}
.sc-t { font-size: 15px; font-weight: 600; color: var(--text); }
.sc-s { font-size: 12px; color: var(--muted); }
.sc-x {
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  align-self: center;
}
.sc-x svg { width: 16px; height: 16px; }
.sc-x:hover { background: var(--panel-2); color: var(--text); }

.sc-stage {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 五种版式五种比例（1200x630 / 1080x1440 / 1200x520 / 1080x1080）。
   画布不能写死宽度：竖版按宽度铺满会高得看不到全貌，
   所以以高度为闸门，宽度自己缩。 */
.sc-canvas {
  display: block;
  max-width: 100%;
  max-height: 54vh;
  width: auto;
  height: auto;
}
/* 两组开关（版式 / 色调）挨着放，窄屏自动换行 */
.sc-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.sc-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
}
.sc-tabs {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
}
.sc-tab {
  min-width: 52px;
  padding: 5px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.sc-tab.is-on {
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-1);
}
.sc-actions { margin-left: auto; display: inline-flex; gap: 8px; }
.sc-note {
  min-height: 18px;
  margin: 8px 4px 0;
  font-size: 12px;
  color: var(--muted);
}

/* 手机：整屏铺开，别把 1200×630 的图挤成一条 */
@media (max-width: 560px) {
  .sc-modal { padding: 12px; }
  .sc-panel { max-height: calc(100vh - 24px); padding: 14px 12px 10px; }
  .sc-s { display: none; }
  .sc-actions { margin-left: 0; width: 100%; }
  .sc-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-backdrop, .sc-panel { transition: none; }
  .sc-panel { transform: none; }
}

@media print {
  .sc-modal { display: none !important; }
}

/* ---------- 徽章墙 ----------
   挂在生成器下面：上面是「想贴成什么样」，下面是「已经贴成什么样」。
   每一格只放四样东西——徽章本体、编号、站点名、一句来处。
   墙上不做花活：这一页的主角是生成器，墙是它的证据。 */
.bw-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.bw-h {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}
.bw-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-2);
}

.bw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 12px;
}

.bw-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 16px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: inset 0 1px 0 var(--sheen), var(--shadow-1);
  transition: border-color var(--dur-2), box-shadow var(--dur-3),
              transform var(--dur-3) var(--spring, var(--ease));
}
.bw-tile:hover {
  border-color: var(--faint);
  box-shadow: inset 0 1px 0 var(--sheen), var(--shadow-2);
  transform: translateY(-2px);
}
.bw-tile:active { transform: translateY(0) scale(.995); }
.bw-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 徽章本体：给它一块自己的浅色/深色底，否则白底徽章会跟卡片糊在一起 */
.bw-art {
  display: flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 10px;
}
.bw-art img {
  display: block;
  height: 22px;
  width: auto;
}

.bw-code {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
  line-height: 1.2;
}
.bw-site {
  max-width: 100%;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bw-meta {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--muted);
}
.bw-dot { margin: 0 4px; }

/* ---------- 徽章详情（弹层复用分享卡那层壳） ---------- */
.bw-panel { width: min(520px, 100%); }

.bw-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(120% 100% at 50% 0%, var(--panel-2), var(--panel));
}
.bw-big {
  display: block;
  height: 40px;
  width: auto;
}

.bw-facts {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
.bw-fact { display: flex; flex-direction: column; gap: 2px; }
.bw-fact dt {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}
.bw-fact dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}
.bw-acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* 详情入场：徽章先「按」下来（有点像盖章），信息随后一行行浮上来。
   动效只做一次，不做循环——墙是静态收藏，不是动画片。 */
@media (prefers-reduced-motion: no-preference) {
  .bw-modal.is-on .bw-big {
    animation: bw-stamp .42s var(--ease-stamp, cubic-bezier(.3, .9, .4, 1)) both;
  }
  .bw-modal.is-on .bw-fact {
    animation: bw-rise .34s var(--ease) both;
  }
  .bw-modal.is-on .bw-fact:nth-child(1) { animation-delay: .06s; }
  .bw-modal.is-on .bw-fact:nth-child(2) { animation-delay: .10s; }
  .bw-modal.is-on .bw-fact:nth-child(3) { animation-delay: .14s; }
  .bw-modal.is-on .bw-fact:nth-child(4) { animation-delay: .18s; }
  .bw-modal.is-on .bw-fact:nth-child(5) { animation-delay: .22s; }
}
@keyframes bw-stamp {
  from { opacity: 0; transform: scale(1.34) rotate(-2deg); }
  70%  { opacity: 1; transform: scale(.98) rotate(0deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes bw-rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .bw-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .bw-tile { padding: 13px 12px 11px; }
  .bw-code { font-size: 17px; }
  .bw-facts { grid-template-columns: 1fr; gap: 8px; }
  .bw-acts .btn { flex: 1 1 auto; }
}

/* ---------- 顶栏：登录后入口变多，别把导航挤成两行 ----------
   登录状态比未登录多出五个入口，1120 的容器里刚好差几个像素，
   浏览器就把「放号日历」拆成「放号日 / 历」——看上去像页面坏了。
   这里做三件事：条目一律不换行、间距收一点、真的放不下时先收两个
   次要入口（它们在自己的面板里都还能进），而不是把字截断。 */
.nav { gap: 24px; }
.nav-links { gap: 22px; flex-wrap: nowrap; }
.nav-links a { white-space: nowrap; }
.nav-right { gap: 10px; }

@media (max-width: 1180px) {
  .nav-links { gap: 16px; }
  .nav-right { gap: 8px; }
  .nav-right .btn { padding: 0 10px; }
}

@media (max-width: 1040px) {
  /* 窄屏只收「我的收藏」这一项。
     工作台是「我的」这一组的总入口，站点 · 编号是每天都要用的，
     两个都不能省；收藏从工作台和页脚还进得去。 */
  .nav-right .btn[href="/dashboard/favorites"] { display: none; }
}

/* ---------- 季节皮肤：只换纸面的色温 ----------
   一年里页面总是一个颜色，看久了像没人在维护。这里按月份给背景
   换一层很淡的色温（春偏青、夏偏冷、秋偏暖、冬偏灰）。

   三条边界，都是红线：
   1. 不碰编号：八位数字的颜色、字体、间距一律不动；这里只改 --bg 一族。
   2. 不碰高对比主题：无障碍优先，季节在 contrast 下完全不生效。
   3. 夜间只给一点环境光，不动深色底：夜里换底色最容易让对比度掉下去。
   所以这一节里只出现 --bg / --bg-soft / --header-bg 和 body 的一层顶光。 */

html[data-theme="light"][data-season="spring"] {
  --bg:        #F2F3E9;
  --bg-soft:   #E8EBDE;
  --header-bg: rgba(242, 243, 233, .82);
}
html[data-theme="light"][data-season="spring"] body {
  background-image: radial-gradient(120% 56% at 50% -16%, rgba(104, 142, 96, .10), rgba(104, 142, 96, 0) 72%);
}

html[data-theme="light"][data-season="summer"] {
  --bg:        #F3F3EC;
  --bg-soft:   #E9EBE2;
  --header-bg: rgba(243, 243, 236, .82);
}
html[data-theme="light"][data-season="summer"] body {
  background-image: radial-gradient(120% 56% at 50% -16%, rgba(92, 134, 150, .09), rgba(92, 134, 150, 0) 72%);
}

html[data-theme="light"][data-season="autumn"] {
  --bg:        #F6EFE3;
  --bg-soft:   #EDE3D1;
  --header-bg: rgba(246, 239, 227, .82);
}
html[data-theme="light"][data-season="autumn"] body {
  background-image: radial-gradient(120% 56% at 50% -16%, rgba(188, 120, 58, .11), rgba(188, 120, 58, 0) 72%);
}

html[data-theme="light"][data-season="winter"] {
  --bg:        #F1F2F2;
  --bg-soft:   #E7E9EA;
  --header-bg: rgba(241, 242, 242, .82);
}
html[data-theme="light"][data-season="winter"] body {
  background-image: radial-gradient(120% 56% at 50% -16%, rgba(108, 128, 158, .09), rgba(108, 128, 158, 0) 72%);
}

/* 夜间：底色不动，只在最上面挂一层几乎看不出来的光 */
html[data-theme="dark"][data-season="spring"] body {
  background-image: radial-gradient(120% 52% at 50% -14%, rgba(110, 170, 120, .06), rgba(110, 170, 120, 0) 72%);
}
html[data-theme="dark"][data-season="summer"] body {
  background-image: radial-gradient(120% 52% at 50% -14%, rgba(90, 140, 165, .06), rgba(90, 140, 165, 0) 72%);
}
html[data-theme="dark"][data-season="autumn"] body {
  background-image: radial-gradient(120% 52% at 50% -14%, rgba(200, 130, 70, .07), rgba(200, 130, 70, 0) 72%);
}
html[data-theme="dark"][data-season="winter"] body {
  background-image: radial-gradient(120% 52% at 50% -14%, rgba(120, 145, 180, .06), rgba(120, 145, 180, 0) 72%);
}

/* 打印：底色和顶光都不印，纸是白的 */
@media print {
  html[data-season] body { background-image: none !important; }
}

/* ---------- 无障碍：一次性补齐（美化 14） ----------
   这几条不是「加个功能」，是让键盘和读屏用户能正常用完这个站。 */

/* 跳到正文：平时藏在屏幕上方，Tab 到它才滑下来。
   不用 display:none —— 那样它也拿不到焦点，等于没有。 */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13.5px;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translate(-50%, -180%);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
  pointer-events: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
  outline: 2px solid var(--on-accent);
  outline-offset: -5px;
}

/* 跳过去之后正文会拿到焦点（tabindex="-1"）。给它一条细线提示，
   但不要那圈默认的大轮廓——正文整块被框起来看着像选错了地方。 */
#main:focus { outline: none; }
#main:focus-visible { outline: 2px solid var(--accent-line); outline-offset: -2px; }

/* 装饰性长动画：关掉系统动效的人这里一个都不留。
   只点名会持续/大幅动的，别用 * 一刀切——那会把进度条的宽度过渡也砍掉。 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cert,
  .bw-big,
  .bw-fact,
  .mascot-art,
  .rcpt-seal,
  .copy-btn::after { animation: none !important; }
  .sc-panel,
  .sc-backdrop,
  .bw-tile,
  .btn,
  .card,
  .route-card,
  .anniv-tile { transition-duration: .01ms !important; }
}

/* ---------- 语义层级工具类 ----------
   标题层级要按文档结构排（h1 → h2 → h3），但字号等级不能跟着一起跳：
   把一张卡片的小标题从 h4 提到 h2，字号不该从 13.5px 变成 21px。
   这两个类就是「按原来的字号显示」——读屏听到的是正文的第二层，
   眼睛看到的还是那张卡片的小标题。 */
.h-4 { font-size: 13.5px; }
.h-3 { font-size: 16px; }

/* 只给读屏看的文字（分区标题之类，视觉上不需要重复一遍） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   v3 视觉升级 · 顶栏与页脚
   --------------------------------------------------------------------------
   改的是「组织方式」，不是再加一层装饰：
   1. 顶栏的五个链接原本是五个散字，间距 26px 悬在米色页头上，眼睛拿不到边界。
      改成一个有底、有边、有内圆角的「胶囊组」，当前页填白 —— 一眼知道自己在哪。
   2. 搜索与主题两个图标原本大小不一、hover 只有变色，改成同尺寸方块按钮。
   3. 登录后右侧 6 个元素一字排开，改成「工具 / 分隔 / 账号区」三段。
   4. 页脚原本 5 列 flex 平分，列宽跟着内容跑，怎么排都不齐；改成
      品牌 288px + 4 列等宽网格，底部再收一条工具条。
   ========================================================================== */

/* ---------- 顶栏 ---------- */
.site-header {
  border-bottom: 1px solid var(--line-faint);
  background: linear-gradient(180deg, rgba(252, 250, 245, .96), rgba(247, 244, 238, .84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 8px 26px -24px rgba(74, 60, 40, .55);
}
.site-header .nav { height: 66px; gap: 26px; }
.nav-hair {
  display: block; height: 1px; margin-top: -1px;
  background: linear-gradient(90deg, transparent, rgba(192, 84, 62, .16), transparent);
}

/* 胶囊导航组 */
.site-header .nav-links {
  display: flex; gap: 2px;
  padding: 4px;
  font-size: 13.5px;
  background: rgba(255, 255, 255, .52);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(74, 60, 40, .04);
}
.site-header .nav-links a {
  padding: 6px 13px;
  border-radius: 9px;
  color: var(--muted);
  line-height: 1.4;
  white-space: nowrap;
  transition: background .22s var(--ease), color .22s, box-shadow .22s;
}
.site-header .nav-links a::after { display: none; }
.site-header .nav-links a:hover {
  background: rgba(255, 255, 255, .92);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(74, 60, 40, .07);
}
.site-header .nav-links a.on {
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(74, 60, 40, .07), inset 0 -2px 0 var(--accent-line);
}

/* 右侧工具按钮：统一 34px 方块 */
.site-header .nav-right { gap: 8px; }
.nav-tools { display: flex; align-items: center; gap: 4px; }
.site-header .nav-icon,
.site-header .nav-search,
.site-header .theme-toggle {
  width: 34px; height: 34px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 11px;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background .22s, color .22s, border-color .22s, transform .22s var(--ease);
}
.site-header .nav-icon svg { width: 17px; height: 17px; }
.site-header .nav-icon:hover {
  background: rgba(255, 255, 255, .92);
  border-color: var(--line);
  color: var(--text);
  transform: translateY(-1px);
}
.nav-sep { width: 1px; height: 18px; background: var(--line); margin: 0 3px; flex: none; }
.nav-user, .nav-guest { display: flex; align-items: center; gap: 6px; }

/* 顶栏按钮：比内容区按钮轻一档，不跟正文抢 */
.site-header .nav-right .btn {
  height: 32px; padding: 0 13px; font-size: 13px;
  border-radius: 10px;
}
.site-header .nav-right .btn-ghost {
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.site-header .nav-right .btn-ghost:hover {
  background: var(--panel);
  border-color: var(--line-2);
  color: var(--text);
}
.site-header .nav-account {
  background: var(--accent-bg);
  color: var(--accent-2);
  border: 1px solid var(--accent-line);
  max-width: 108px; overflow: hidden; text-overflow: ellipsis;
}

/* 夜间：白渐变会把页头洗亮，换回深色 */
html[data-theme="dark"] .site-header {
  background: linear-gradient(180deg, rgba(28, 27, 25, .96), rgba(24, 23, 22, .88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 8px 26px -24px rgba(0, 0, 0, .8);
}
html[data-theme="dark"] .site-header .nav-links { background: rgba(255, 255, 255, .04); }
html[data-theme="dark"] .site-header .nav-links a:hover { background: rgba(255, 255, 255, .07); }
html[data-theme="dark"] .site-header .nav-links a.on { background: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .site-header .nav-icon:hover { background: rgba(255, 255, 255, .07); }
html[data-theme="dark"] .site-header .nav-right .btn-ghost { background: rgba(255, 255, 255, .04); }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 64px;
  padding: 48px 0 36px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 62%),
    var(--bg-soft);
}
.foot-top {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.foot-brand .brand-foot { margin-bottom: 14px; }
.foot-say {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--faint);
}
.foot-meta { display: flex; flex-direction: column; gap: 7px; }
.foot-meta-i {
  display: inline-flex; align-items: baseline; gap: 5px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--faint); letter-spacing: .02em;
}
.foot-meta-i b { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 22px;
}
.footer-col .footer-col-h {
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-faint);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.footer-col a { display: block; padding: 3.5px 0; color: var(--faint); transition: color .2s, transform .2s var(--ease); }
.footer-col a:hover { color: var(--accent-2); transform: translateX(2px); }

.foot-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  margin-top: 34px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.foot-bar-note { font-size: 11.5px; color: var(--faint); letter-spacing: .02em; }
.site-footer .read-pick {
  margin: 0; padding: 0; border: 0; background: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.site-footer .footer-legal {
  margin-top: 18px; padding-top: 0; border-top: 0;
  font-size: 11px; line-height: 1.85; color: var(--faint);
}
.site-footer .footer-legal p { margin: 0 0 3px; }
.site-footer .footer-legal b { font-weight: 500; color: var(--muted); }

html[data-theme="dark"] .site-footer {
  background: radial-gradient(120% 90% at 50% -10%, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 62%), var(--bg-soft);
}

@media (max-width: 980px) {
  .foot-top { grid-template-columns: 1fr; gap: 34px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 860px) {
  .site-header .nav-links { display: none; }
}
@media (max-width: 560px) {
  .site-header .nav { height: 60px; gap: 12px; }
  .nav-sep { display: none; }
  .site-header .nav-right { gap: 4px; }
  .site-header .nav-icon, .site-header .nav-search, .site-header .theme-toggle { width: 32px; height: 32px; }
  .site-footer { padding: 36px 0 28px; margin-top: 44px; }
  .foot-cols { gap: 20px; }
  .footer-col a { padding: 4px 0; }
  .foot-bar { margin-top: 24px; }
}

/* ==========================================================================
   v3 视觉升级 · 首页版面
   --------------------------------------------------------------------------
   问题不是「不好看」，是「每一段都长一个样」：
   标题 + 一堆同尺寸白卡，从上到下重复七八次，眼睛找不到节奏。
   这里做三件事：
     1. 章节标记从贴边 9.5px 的孤字，改成带竖线的边注；
     2. 卡片统一加「顶线 + 双层影 + hover 抬升」，白卡从纸面上分离出来；
     3. 标题、数字、正文的字号阶梯拉开，靠对比而不是靠装饰分主次。
   ========================================================================== */

/* ---------- 章节边注 ---------- */
@media (min-width: 1180px) {
  main > section::before {
    left: -42px;
    top: 3px;
    padding-right: 7px;
    border-right: 1px solid var(--accent-line);
    font-size: 9px;
    letter-spacing: .1em;
    opacity: .55;
  }
}

/* ---------- 首屏 ---------- */
.hero { padding: 74px 28px 56px; gap: 52px; }
.hero h1 {
  font-size: 50px;
  line-height: 1.24;
  letter-spacing: -.006em;
}
.hero .lead { font-size: 14.5px; line-height: 1.95; color: var(--text-2); }
.hero-actions { margin-top: 30px; }
.hero-stats { margin-top: 40px; }
.hero-stats .stat .v { font-size: 26px; line-height: 1.1; }
.hero-stats .stat .k {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 7px;
}

/* ---------- 区块标题：把 21px 提到 24px，与正文拉开 ---------- */
main > section h2 { font-size: 24px; letter-spacing: -.014em; }

/* ---------- 卡片：顶线 + 双层影 ---------- */
.card {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow:
    inset 0 1px 0 var(--sheen),
    0 1px 2px rgba(74, 60, 40, .035),
    0 10px 24px -18px rgba(74, 60, 40, .38);
  transition: border-color .24s var(--ease), box-shadow .3s var(--ease), transform .3s var(--spring);
}
/* 顶沿一道极细的暖线：让白卡有「上沿受光」的厚度，不再是塑料片 */
.card::before {
  content: "";
  position: absolute;
  left: 12px; right: 12px; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
a.card:hover::before { opacity: 1; }
a.card:hover {
  border-color: var(--accent-line);
  box-shadow:
    inset 0 1px 0 var(--sheen),
    0 2px 4px rgba(74, 60, 40, .04),
    0 20px 38px -22px rgba(74, 60, 40, .42);
  transform: translateY(-4px);
}

/* ---------- 编号格子：等宽、有底、hover 亮边 ---------- */
.pool-grid { gap: 8px; }
.cell {
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  font-family: var(--brand);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease);
}
.cell:hover {
  border-color: var(--accent-line);
  background: var(--panel);
  color: var(--accent-2);
  transform: translateY(-2px);
}

/* ---------- 三条路：序号做成角标，标题加粗一档 ---------- */
.card-step { padding: 24px 22px 20px; }
.card-step .tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--panel-2);
  border: 1px solid var(--line-faint);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 16px;
}
.card-step h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.card-step .small.muted { font-size: 12.5px; line-height: 1.85; color: var(--text-2); }
.card-step::after {
  font-size: 72px;
  right: 14px;
  bottom: -6px;
  opacity: .035;
  color: var(--accent);
}
.card-step:hover::after { opacity: .07; }
.card-step a.small {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent-line);
  transition: gap .22s var(--ease), border-color .22s;
}
.card-step:hover a.small { gap: 8px; border-color: var(--accent); }

/* ---------- 今日一站：横向大卡，左侧色块放大 ---------- */
.daily { border-radius: 12px; }

/* ---------- 引言块 ---------- */
.quote-card {
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
}
.quote-card .serif { font-size: 21px; line-height: 2; }

/* ---------- 入口卡 ---------- */
.entry { padding: 18px 18px 20px; }
.entry-t { font-size: 14.5px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.entry .small { font-size: 12px; line-height: 1.75; }

@media (max-width: 860px) {
  .hero { padding: 46px 24px 40px; }
  .hero h1 { font-size: 34px; }
  main > section h2 { font-size: 21px; }
}

/* ==========================================================================
   v3 视觉升级 · 首页卡片（三条路 / 展示馆 / 编号带）
   ========================================================================== */

/* ---------- 三条路 ---------- */
.card-step { display: flex; flex-direction: column; }
.cs-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 15px;
}
.card-step .tag { margin-bottom: 0; }
.cs-ico {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--panel-2);
  border: 1px solid var(--line-faint);
  color: var(--accent);
  transition: background .24s, border-color .24s, transform .3s var(--spring);
}
.cs-ico svg { width: 17px; height: 17px; }
.card-step:hover .cs-ico {
  background: var(--accent-bg);
  border-color: var(--accent-line);
  transform: rotate(-4deg) scale(1.06);
}
.card-step h3 { margin-bottom: 9px; }
.card-step p.small.muted { margin: 0 0 18px; }
.cs-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 5px;
  align-self: flex-start;
  font-size: 12.5px; font-weight: 500;
  color: var(--accent-2);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent-line);
  transition: gap .22s var(--ease), border-color .22s;
}
.cs-link i { font-style: normal; transition: transform .22s var(--ease); }
.cs-link:hover { border-color: var(--accent); gap: 9px; }
.cs-link:hover i { transform: translateX(1px); }

/* ---------- 展示馆卡片 ---------- */
.grid-3.stagger { gap: 18px; }
.gallery-card { display: flex; flex-direction: column; padding: 16px 17px 15px; }
.gc-top { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.gallery-card .site-glyph {
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff; font-size: 15px; font-weight: 600;
  background: linear-gradient(140deg, var(--g1), var(--g2));
  box-shadow: 0 6px 14px -9px rgba(40, 34, 26, .85), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.gc-id { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gc-title {
  font-size: 14.5px; font-weight: 600; color: var(--text);
  letter-spacing: -.008em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gc-dom {
  font-family: var(--mono); font-size: 11px; color: var(--faint);
  letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gc-go {
  margin-left: auto; flex: none;
  font-size: 13px; color: var(--faint);
  transition: color .22s, transform .22s var(--ease);
}
.gallery-card:hover .gc-go { color: var(--accent); transform: translate(1px, -1px); }
.gc-desc {
  margin: 0 0 14px;
  font-size: 12.5px; line-height: 1.75; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}
.gc-foot {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line-faint);
}

/* ---------- 最近领走的编号：加一条列头 ---------- */
.recent-bar { display: flex; flex-direction: column; gap: 11px; }
.rb-label {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint);
}
.recent-bar .pool-grid { gap: 7px; }

@media (max-width: 860px) {
  .gallery-card { padding: 14px 15px 13px; }
  .gc-desc { min-height: 0; }
}

/* ==========================================================================
   v3 视觉升级 · 深色段（三段故事）
   --------------------------------------------------------------------------
   全页从首屏到页脚都是米色，二十几个区块同一个底色。
   「一枚编号的三段来历」曾经被做成全页唯一的深色块；后来改成纸色块，
   实测又变成日间模式里一条更亮的白带 —— 两种做法都会造成横向断层。
   现在这一块与整页同底，层次交给三张卡片和内容宽度内的一条细线。
   ========================================================================== */
.story {
  margin: 4px 0 0;
  padding: 62px 0 64px;
  /* 不铺全宽底色。铺一层就会和页面底色差十几个色阶，日间看是白带，
     夜间看是第二条更深的带。 */
  background: none;
  color: var(--text);
  position: relative;
}
/* 顶部一道暖线，收住深色块的边 */
.story::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}
/* 第 24 批：这一段原先是「深色块上的裸文字栏」（padding:0 / border:0），
   后来三栏改成带边框的白卡却没同步清理，首栏文字贴左边、末栏插画被裁。
   这里直接改回卡片几何，三张完全一致，首末栏不再留特例。 */
.story-track { gap: 18px; }
.story-panel {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-1);
}
.story-scene:hover .story-panel { border-color: var(--line-2); transform: none; }
.story-n {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--accent-2);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 9px;
}
.story-n::after {
  content: "";
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--accent-line), transparent);
}
.story-h {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.008em;
  color: var(--text);
  margin-bottom: 12px;
}
.story-p {
  font-size: 13.5px;
  line-height: 2;
  color: var(--muted);
  margin: 0 0 22px;
}
.story-art {
  margin-top: auto;
  padding-top: 4px;
  color: var(--faint);
}
.story-art svg { max-height: 84px; }

html[data-theme="dark"] .story {
  background: none;
  border: 0;
}

@media (max-width: 860px) {
  .story { padding: 44px 0 46px; }
  .story-track { gap: 22px; }
  .story-h { font-size: 17px; }
}

/* ---------- 纸面提亮：让白卡真正从米底上浮起来 ---------- */
:root {
  --panel: #FFFEFA;
  --input-bg: #FFFFFF;
}

/* 深色段修正：对比度、插画对齐、与下一段的间距 */
.story-p { color: var(--muted); min-height: 5.4em; }
.story-art { color: var(--faint); }
.story-art svg { width: 100%; max-width: 180px; max-height: 92px; }
.story + section { padding-top: 54px !important; }
@media (max-width: 860px) {
  .story-p { min-height: 0; }
}

/* ==========================================================================
   v3 · 题记与今日一站
   ========================================================================== */

/* 题记：原来是一个 46px 内边距的空盒子，两行字浮在中间，四周全是白。
   改成「引号压角 + 左右细线 + 落款式署名」，让它像书里的一句题记。 */
.quote-card {
  position: relative;
  padding: 34px 56px 32px !important;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}
.quote-card::before {
  left: 26px;
  top: 6px;
  font-size: 74px;
  color: var(--accent);
  opacity: .13;
}
.quote-card::after {
  content: "";
  position: absolute;
  left: 15%; right: 15%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}
.quote-card .serif { font-size: 20px !important; line-height: 2 !important; color: var(--text) !important; }

/* 今日一站：加高、色块放大、右侧箭头做成圆形按钮 */
.daily {
  padding: 17px 20px !important;
  gap: 16px !important;
}
.daily .site-glyph.lg {
  width: 54px; height: 54px;
  font-size: 21px;
  border-radius: 13px;
}
.daily-t { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.daily-h { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.daily-m { margin-top: 9px; gap: 10px; }
.daily-go {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  transition: background .24s, border-color .24s, color .24s, transform .3s var(--spring);
}
.daily:hover .daily-go {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: rotate(45deg);
}

/* 公开信横条：按钮组不要被 margin-left:auto 推得太远 */
.lc-acts { gap: 6px; }
.lc-close { flex: none; }

/* ==========================================================================
   v3 · 首屏编号卡：证书质感
   --------------------------------------------------------------------------
   它站在首屏右半边，是页面唯一的主角，但原来只是一张白纸 + 两行字。
   这里补的是「印刷品」该有的几件事：
     1. 双线边框 —— 外一圈细边、内一圈更淡的内框，像证书的压印边；
     2. 四角角标 —— 只在四角各画一小段，不围成一圈；
     3. 底部三栏加竖线分隔；
     4. 编号本身加一层极淡的凹印，让它像压进纸里而不是印在纸上。
   ========================================================================== */
.hero-plate {
  position: relative;
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 0 0 1px var(--panel),
    inset 0 0 0 2px var(--line-faint),
    0 1px 2px rgba(74, 60, 40, .04),
    0 18px 40px -26px rgba(74, 60, 40, .45);
}
/* 四角角标 */
.hero-plate::before,
.hero-plate::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid rgba(192, 84, 62, .42);
  pointer-events: none;
}
.hero-plate::before { left: 10px; top: 10px; border-right: 0; border-bottom: 0; }
.hero-plate::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }

.hero-plate .plate-top { padding-bottom: 14px; border-bottom: 1px solid var(--line-faint); }
.hero-plate .plate-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-faint);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--faint);
  text-align: center;
}
.hero-plate .plate-foot span + span { border-left: 1px solid var(--line-faint); }
.hero-plate .signature .no {
  text-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 -1px 0 rgba(42, 34, 22, .10);
}

/* ---------- 手机端：统计三栏改成「两列 + 整行」 ---------- */
@media (max-width: 520px) {
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding-top: 4px;
  }
  .hero-stats .stat { margin: 0; padding: 0; border-left: 0; }
  .hero-stats .stat:nth-child(3) {
    grid-column: 1 / -1;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line-faint);
  }
}

/* 题记收窄：全宽 1000px 里只放两行字，怎么排都像一句被落在空地中间的话。
   收到 780px 并居中，它才成「引文」而不是「一个没填满的盒子」。 */
.quote-card {
  max-width: 780px;
  margin: 0 auto;
}
.quote-card .serif { font-size: 19px !important; }

/* 入口卡：四张同样宽，字多了会顶到边，内边距加一点、标题与说明拉开 */
.entry { padding: 20px 20px 22px !important; }
.entry-t { margin-bottom: 8px; }

/* ==========================================================================
   v4 · 顶栏重制（第 20 批）
   --------------------------------------------------------------------------
   三处硬伤，逐条对应：
   1. 背景被写死成浅色渐变，只有 [data-theme="dark"] 另写了一份 → 高对比主题
      仍是白底白字，整条顶栏在纯黑页面上「消失」，logo 只剩一层灰影。
      底色改回 --header-bg，三套主题各给各的值，不再单独特判。
   2. 胶囊套胶囊：容器一层底一层边，当前项又一层底一层边，两层框叠在一起，
      五个链接看着像五个塞进框里的按钮。改成「当前项一条 2px 下划线」。
   3. 窄屏直接 display:none —— 手机上五个主入口整个没了，只能滚到页脚去点。
      改成折叠面板：同一批链接、同一份 DOM，只换排布。
   ========================================================================== */

.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line-faint);
  /* 只在滚动内容从下面经过时托住顶栏，不做成一条硬阴影 */
  box-shadow: 0 14px 28px -28px rgba(40, 32, 20, .6);
}
html[data-theme="dark"] .site-header,
html[data-theme="contrast"] .site-header {
  background: var(--header-bg);
  box-shadow: 0 14px 28px -28px rgba(0, 0, 0, .9);
}
.site-header .nav { height: 64px; gap: 22px; }
.nav-hair { display: none; }

/* ---- 主导航：去掉外框，只留「当前页」那条线 ---- */
.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: 8px;
  padding: 0;
  font-size: 13.5px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.site-header .nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1;
  transition: color .2s, background-color .2s;
}
.site-header .nav-links a:hover {
  background: var(--row-hover);
  color: var(--text);
  box-shadow: none;
}
.site-header .nav-links a::after,
.site-header .nav-links a:hover::after {
  content: "";
  display: block;
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .26s var(--ease);
}
.site-header .nav-links a.on {
  background: none;
  color: var(--text);
  font-weight: 600;
  box-shadow: none;
}
.site-header .nav-links a.on::after { transform: scaleX(1); }

/* ---- 右侧工具 ---- */
.site-header .nav-right { gap: 6px; }
.site-header .nav-icon,
.site-header .nav-search,
.site-header .theme-toggle {
  width: 32px; height: 32px;
  border-radius: 9px;
  border-color: transparent;
}
.site-header .nav-icon:hover {
  background: var(--row-hover);
  border-color: transparent;
  transform: translateY(-1px);
}
.nav-sep { height: 16px; margin: 0 6px; opacity: .9; }
.nav-user, .nav-guest { gap: 4px; }

.site-header .nav-right .btn {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 9px;
}
.site-header .nav-right .btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.site-header .nav-right .btn-ghost:hover {
  background: var(--row-hover);
  border-color: transparent;
  color: var(--text);
}
.site-header .nav-right .btn-primary { font-weight: 600; }

/* ---- 汉堡（只在窄屏出现） ---- */
.nav-burger {
  display: none;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 34px; height: 34px;
  margin-left: 2px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 16px; height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .26s var(--ease), opacity .18s;
}
.site-header.is-open .nav-burger {
  background: var(--row-hover);
  border-color: var(--line-faint);
}
.site-header.is-open .nav-burger span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.site-header.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-burger span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header .nav-links { display: none; }
  .nav-burger { display: flex; }

  .site-header.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 9px max(16px, env(safe-area-inset-left)) 14px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 36px -30px rgba(0, 0, 0, .6);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .site-header.is-open .nav-links a {
    height: 46px;
    padding: 0 14px 0 16px;
    font-size: 14.5px;
    border-radius: 9px;
  }
  .site-header.is-open .nav-links a::after,
  .site-header.is-open .nav-links a:hover::after {
    left: 0; right: auto; top: 50%; bottom: auto;
    width: 3px; height: 16px;
    border-radius: 2px;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center top;
  }
  .site-header.is-open .nav-links a.on::after { transform: translateY(-50%) scaleY(1); }
  .site-header.is-open .nav-links a.on { background: var(--row-hover); }
}

@media (max-width: 600px) {
  .site-header .nav { height: 58px; gap: 6px; }
  .site-header .brand { gap: 8px; }
  .site-header .logo-mark { width: 32px; height: 32px; }
  .site-header .brand-cn { font-size: 15.5px; }
  .site-header .nav-tools { gap: 0; }
  .site-header .nav-icon,
  .site-header .nav-search,
  .site-header .theme-toggle { width: 30px; height: 30px; }
  .nav-sep { display: none; }
  .site-header .nav-right { gap: 2px; }
  .site-header .nav-right .btn { height: 30px; padding: 0 10px; font-size: 12.5px; }
  .site-header.is-open .nav-links { max-height: calc(100vh - 58px); }
}

/* ==========================================================================
   v4 · 页脚重制（第 20 批）
   --------------------------------------------------------------------------
   上一版的问题不是配色，是「组织」：
   1. 五列长度差一行，整排下沿参差不齐；每列标题下还有一条 110px 的短横线，
      五条断线横在一排里像表格残渣。→ 改成四列，用竖线分栏，标题去掉下划线。
   2. 品牌列比右侧短一截，左下空出一个大洞。→ 品牌列补到与四列同高，
      标语、放号节奏、访问量三段落自然填满。
   3. 底部工具行：左边是字号按钮、右边是版权，中间空出半屏；
      协议类链接被塞在第五列里跟着一起乱。→ 工具行三段式：
      版权 | 协议链接 | 字号，协议链接回到它该在的地方。
   4. 「说明」这一列取消后，四条协议链接横排在工具行，页脚少一列、少一行。
   ========================================================================== */

.site-footer {
  /* 24px 是「最后一个区块收口」的全局 padding，页脚再补 20px ——
     入口卡直接顶着页脚那条线，看着像被裁掉了半截。 */
  margin-top: 20px;
  padding: 54px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
html[data-theme="dark"] .site-footer,
html[data-theme="contrast"] .site-footer { background: var(--bg-soft); }

.foot-top {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 52px;
  align-items: stretch;
}
.foot-brand { display: flex; flex-direction: column; }
.foot-brand .brand-foot { margin-bottom: 18px; }
.foot-say {
  margin: 0 0 20px;
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--muted);
}
.foot-meta { display: grid; gap: 9px; margin-top: auto; }
.foot-meta-i {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: .02em;
}
/* 小圆点：把两行元信息串成一组，比纯文本堆叠更像「数据栏」 */
.foot-meta-i::before {
  content: "";
  flex: none;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-line);
}
.foot-meta-i b { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.foot-meta-i .st-num {
  font-family: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}

/* ---- 四列站内地图：竖线分栏，标题不带下划线 ---- */
.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.footer-col {
  min-width: 0;
  padding: 0 22px;
  border-left: 1px solid var(--line-faint);
}
.footer-col:first-child { padding-left: 0; border-left: 0; }
.footer-col:last-child { padding-right: 0; }
.footer-col .footer-col-h {
  margin: 0 0 13px;
  padding: 0;
  border: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--text-2);
}
.footer-col a {
  display: block;
  padding: 4.5px 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--faint);
  transition: color .2s, transform .2s var(--ease);
}
.footer-col a:hover { color: var(--accent-2); transform: translateX(2px); }

/* ---- 工具行：版权 / 协议 / 字号 ---- */
.foot-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.foot-bar-note { font-size: 11.5px; color: var(--faint); letter-spacing: .02em; }
.foot-bar-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.foot-bar-links a {
  font-size: 11.5px;
  color: var(--faint);
  transition: color .2s;
}
.foot-bar-links a:hover { color: var(--accent-2); }
.site-footer .read-pick {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.site-footer .read-pick .rp-label { font-size: 11px; letter-spacing: .06em; margin-right: 4px; }
.site-footer .read-pick .rp-btn { padding: 5px 9px; font-size: 11px; }

.site-footer .footer-legal {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  font-size: 11px;
  line-height: 1.9;
  color: var(--faint);
}
.site-footer .footer-legal p { margin: 0; }
.site-footer .footer-legal b { font-weight: 500; color: var(--muted); }

@media (max-width: 1000px) {
  .foot-top { grid-template-columns: 1fr; gap: 36px; }
  .foot-brand .foot-meta { margin-top: 0; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .footer-col { padding: 0 20px; }
  .footer-col:nth-child(odd) { padding-left: 0; border-left: 0; }
  .footer-col:nth-child(even) { padding-right: 0; }
}
@media (max-width: 620px) {
  .site-footer { padding: 40px 0 26px; }
  .foot-cols { grid-template-columns: 1fr; row-gap: 0; }
  .footer-col,
  .footer-col:nth-child(odd),
  .footer-col:nth-child(even) {
    padding: 0 0 16px;
    border-left: 0;
    border-bottom: 1px solid var(--line-faint);
    margin-bottom: 16px;
  }
  .footer-col:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  .foot-bar { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
  .foot-bar-links { gap: 6px 14px; }
}

/* ==========================================================================
   v4 · 首页节奏与首屏（第 20 批）
   ========================================================================== */

/* ---- 章节编号整块下架 ----
   它靠 left:-42px 站在 wrap 外面，只在 ≥1180px 出现。可 wrap 最宽 1120，
   视口 1400 时外面只剩 140px，编号离屏幕边缘只有几像素，还常常正好落在
   顶栏下沿 —— 一串没有含义的 01/02 贴着页面边线飘，看起来像脏点或渲染残留。
   真正的目录信息由每个区块自己的 eyebrow（THREE WAYS IN / GALLERY）承担。 */
main > section::before { content: none !important; }

/* ---- 区块垂直节奏：一套刻度，不再逐段手写 ---- */
.sec      { padding-bottom: 58px; }
.sec-sm   { padding-bottom: 32px; }
.sec-last { padding-bottom: 40px; }
@media (max-width: 860px) {
  .sec      { padding-bottom: 44px; }
  .sec-sm   { padding-bottom: 26px; }
  .sec-last { padding-bottom: 20px; }
}

/* ---- 首屏 ---- */
.hero { padding: 52px 28px 58px; gap: 54px; align-items: center; }
.hero h1 {
  font-size: 46px;
  line-height: 1.22;
  letter-spacing: -.022em;
}
.hero .lead { font-size: 14.5px; line-height: 2; }
.hero-actions { margin-top: 28px; }
.hero-stats { margin-top: 42px; }
.hero-stats .stat .v { font-size: 27px; letter-spacing: -.02em; }
.hero-stats .stat .k {
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--faint);
  margin-bottom: 9px;
}
/* 第三个数据是一句话不是数字：字号降一档，但基线要和左右两个数字对齐，
   原来靠行内 padding-top:6px 硬凑，换个字号就错位。 */
.hero-stats .stat .v-sm {
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.01em;
  padding-top: 0;
}
.stat-link {
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  transition: color .2s, border-color .2s;
}
.stat-link:hover { color: var(--accent-2); border-color: var(--accent-line); }

/* 卡背的环：原来两条都在 .34 / .42，高对比主题下变成两个刺眼的白圈，
   压到刚好看得见的一层，只当「纸被压过的印子」。 */
.ring-1 { opacity: .2; }
.ring-2 { opacity: .22; }
/* 垫在下面的两张纸：错开量收一半，之前远看像卡片多了一圈脏边 */
.plate-sheet.s1 { transform: translate(9px, 10px) rotate(1.3deg); }
.plate-sheet.s2 { transform: translate(18px, 20px) rotate(2.6deg); opacity: .55; }

/* ---- 深色段与相邻区块的接缝 ---- */
.story { padding: 56px 0 58px; }
.story + section { padding-top: 46px !important; }

/* ---- 题记 ---- */
.quote-card {
  max-width: 820px;
  padding: 38px 52px 36px !important;
}
.quote-card .serif { font-size: 19px !important; line-height: 2 !important; }

/* ---- 「最近领走的编号」列头：10px 太小，和编号格子不成比例 ---- */
.rb-label { font-size: 10.5px; letter-spacing: .18em; color: var(--muted); }

/* ---- 页脚修正：竖线要看得见，品牌列的数据组要「成块」 ---- */
.footer-col { border-left-color: var(--line-2); }
.foot-meta { padding-top: 14px; border-top: 1px solid var(--line-faint); }
/* 不用 margin-top:auto 撑到底：那样标语和数据之间会出现一个 40px 的洞 ——
   没有内容的一行在视觉上只会读成「少了一行」，加一条横线才读成「分节」。 */
.foot-brand .foot-meta { margin-top: 0; }

/* 必须写上下界：只写 max-width:1180 会把上面那条 1000px 断点又顶回去，
   手机上就变成「品牌 250 + 四列挤在 68px 里」，一个字一行。 */
@media (min-width: 1001px) and (max-width: 1180px) {
  .foot-top { grid-template-columns: 250px minmax(0, 1fr); gap: 36px; }
  .footer-col { padding: 0 16px; }
  .footer-col:first-child { padding-left: 0; }
}

/* ---- 首屏卡片：左栏 320px 高、右栏只有 205px，右半边看着是空的。
       把卡本身加高（编号舞台 152 → 176）、横向放到 460，
       右侧才算撑得住左栏那一整列字。 ---- */
.plate-box { max-width: 460px; }
.plate-stage { height: 176px; }
.hero-plate { padding: 22px 24px 16px; }
.plate-stage .signature { font-size: 30px; }
/* 首屏正文里那个编号是和正文同字号内联的，读起来像一句话里的普通词。
   它是这一屏的主角，抬到 16.5px 并给一点点字距。 */
.hero .lead .signature.sm { font-size: 16.5px; letter-spacing: .01em; }
@media (max-width: 860px) {
  .plate-box { max-width: 100%; }
  .plate-stage { height: 148px; }
  .plate-stage .signature { font-size: 26px; }
}

/* ---- 手机顶栏：把「登录」还回来 ----
   2050 行那条 .nav-right .btn-ghost{display:none} 是给登录后那五个入口腾地方的，
   它连游客的「登录」一起吞了 —— 手机上根本没有登录入口，只能自己敲地址。
   游客态只藏「工作台」类入口，登录必须留着。 */
@media (max-width: 900px) {
  .nav-guest .btn-ghost { display: inline-flex; }
}
@media (max-width: 600px) {
  /* 左右内边距收到 16：390 宽时顶栏要塞下 品牌 + 两个图标 + 登录 + 去选号 + 汉堡，
     还按 28 算就正好差十几像素，最后一个元素被挤出屏幕。 */
  .site-header .nav {
    gap: 2px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  /* 图标按钮从 40 收到 36：和手机端 .btn-sm 同高，手指仍然按得中，
     但五个元素在 360 屏上正好塞得下（40 会溢出 6px，汉堡被切一半）。 */
  .site-header .nav-icon,
  .site-header .nav-search,
  .site-header .theme-toggle { width: 36px; height: 36px; }
  .site-header .nav-right .btn { height: 34px; padding: 0 9px; font-size: 13px; }
  .site-header .nav-right { gap: 2px; }
  .nav-burger { width: 34px; height: 34px; margin-left: 0; }
  /* 顶栏 logo 41 → 34：41 在 58px 的条里几乎顶满，且 360 屏上要走 7px 的宽度 */
  .site-header .logo-mark { width: 34px; height: 34px; }
}
/* 320 那一档真的放不下了，先让文字按钮退场（两个图标 + 主按钮 + 汉堡仍在） */
@media (max-width: 348px) {
  .nav-guest .btn-ghost { display: none; }
}

/* 360 / 320 这类窄屏：顶栏五个元素真的挤不下。
   只缩文字侧（品牌名与两个按钮的字号、内边距），图标按钮与汉堡的点击区不动。 */
@media (max-width: 384px) {
  /* 品牌名不再缩字号（再小就不像标了），改缩图标与缝隙：
     34 → 30 的徽标 + 去掉两道 2px 缝，正好把右侧的汉堡从裁切线里拉回来。 */
  .site-header .logo-mark { width: 30px; height: 30px; }
  .site-header .brand { gap: 6px; }
  .site-header .nav { gap: 0; }
  .site-header .nav-right .btn { padding: 0 8px; font-size: 12.5px; }
}

/* 「退出」原来是全站唯一一个带边框的顶栏按钮，和旁边四个无框按钮并排时
   像被单独圈了出来 —— 它只是同一组里的一项，不该长得不一样。 */
.nav-logout-btn {
  height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  transition: background-color .2s, color .2s;
}
.nav-logout-btn:hover {
  background: var(--row-hover);
  border-color: transparent;
  color: var(--text);
}
@media (max-width: 600px) {
  .nav-logout-btn { height: 34px; padding: 0 9px; font-size: 13px; }
}

/* 平板/手机上的首屏卡：.hero-plate 被 400px 卡住，可 .plate-box 还是整栏宽，
   垫在下面的两张纸和背后那圈环按 700px 算 —— 卡片 400、纸 700，
   看起来像「卡片压在一块更大的板上」，环还横穿整个屏幕。
   让参照系跟着卡片走，窄屏干脆去掉环和第三张纸。 */
@media (max-width: 860px) {
  .plate-box { max-width: 400px; margin: 0 auto; }
  .ring-1, .ring-2 { display: none; }
  .plate-sheet.s2 { display: none; }
  .plate-sheet.s1 { transform: translate(8px, 9px) rotate(1.4deg); }
  .hero-visual { padding: 6px 8px 14px; }
}

/* ---- 今日一站：那个骑在边框上的标签 ----
   top:-9px 让它一半悬在卡片外面，远看像贴歪了的贴纸。
   改成左上角的「页签」：贴着卡片圆角长出来，和卡片是一体的。 */
.daily { padding: 18px 22px !important; }
.daily-tag {
  /* 贴内 1px：正好压着卡片那道 1px 边框走，圆角与卡片同为 11，
     不会在左上角「方角戳出圆角」的那一小块。 */
  top: 1px;
  left: 1px;
  padding: 4px 12px 4px 14px;
  border-radius: 11px 0 7px 0;
  font-size: 10.5px;
  letter-spacing: .12em;
}

/* ---- 题记：引号太淡，等于没有 ---- */
.quote-card::before { opacity: .2; left: 30px; top: -2px; }

/* ---- 题记的引号：被 .card::before（卡片顶沿那道暖线）整条顶掉了 ----
   两条规则都是「一个类 + ::before」，后来的 .card::before 赢，
   于是这个引号从第 19 批起就没画出来过。这里用双类提权把它抢回来。 */
.card.quote-card::before {
  content: "\201C";
  position: absolute;
  /* .card::before 还留着 right:12px / height:1px / 一层渐变背景，
     只改 left 的话盒子仍然是「卡片宽减 40」，字被 text-align:center 推到中间去。
     这些必须一并复位，伪元素没有「只覆盖一部分」这回事。 */
  left: 28px;
  right: auto;
  top: 6px;
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  font-family: var(--serif);
  font-size: 108px;
  line-height: 1;
  color: var(--accent);
  opacity: .18;
  pointer-events: none;
}

/* 高对比模式把装饰清掉：叠在卡下面的两张纸和背后那圈环只有线没有面，
   在纯黑底上就变成三块「飘着的空心框」——那是纯装饰，看不清的人不需要它。
   和 .ambient / .dust 同一条原则：装饰让路。 */
html[data-theme="contrast"] .plate-sheet,
html[data-theme="contrast"] .ring { display: none; }
html[data-theme="contrast"] .hero-plate::before,
html[data-theme="contrast"] .hero-plate::after { display: none; }

/* 手机上题记卡只有 334 宽，108px 的引号和 52px 的左右内边距一起把正文挤成
   每行十来个字。字号与内边距按比例收回。 */
@media (max-width: 860px) {
  .quote-card { padding: 28px 26px 26px !important; }
  .card.quote-card::before { left: 16px; top: 6px; font-size: 72px; opacity: .14; }
}

/* ==========================================================================
   v5 · 今日一站 / 最近编号 / 页脚落款（第 20 批补）
   ========================================================================== */

/* --------------------------------------------------------------------------
   今日一站：那个方块不是 logo，是「猜的」
   --------------------------------------------------------------------------
   原来用 域名首字母 + 高饱和渐变，画出来是一个 iOS 风的 App 图标：
   bbs.gg 显示 B（跟站名「GG论坛」没关系）、蓝紫渐变在米色页面上像贴上去的。
   站点没有真 favicon 可抓（抓外部图片是 SSRF），所以不装作有——
   改成「纸上钤的一枚印」：纸色底、两圈细线、站点色一个字，字取**站名**。
   -------------------------------------------------------------------------- */
.daily {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 19px;
  padding: 20px 22px;
}

.daily-seal {
  position: relative;
  flex: none;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: hsl(var(--gh, 24) 42% 96%);
  border: 1px solid hsl(var(--gh, 24) 30% 83%);
  color: hsl(var(--gh, 24) 44% 33%);
  font-family: var(--serif, Georgia, serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  user-select: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    0 1px 2px rgba(74, 60, 40, .05);
}
/* 内圈：印章的第二道边。差 4px 才像压出来的框，贴边就成了双描边 */
.daily-seal::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid hsl(var(--gh, 24) 34% 84% / .7);
  border-radius: 11px;
  pointer-events: none;
}
html[data-theme="dark"] .daily-seal {
  background: hsl(var(--gh, 24) 20% 16%);
  border-color: hsl(var(--gh, 24) 18% 27%);
  color: hsl(var(--gh, 24) 40% 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
html[data-theme="dark"] .daily-seal::after { border-color: hsl(var(--gh, 24) 20% 30% / .8); }
/* 高对比主题不讲配色：印就是黑白的一枚字 */
html[data-theme="contrast"] .daily-seal {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
  box-shadow: none;
}
html[data-theme="contrast"] .daily-seal::after { border-color: var(--line-faint); }

/* 右侧编号块：卡片右边原来只有一个小箭头，一整条留白没人接住。
   编号本来就是这张卡的主角，把它从正文里提出来，靠右站成一列。 */
.daily-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  padding-left: 20px;
  border-left: 1px solid var(--line-faint);
  white-space: nowrap;
}
.daily-side .ds-k {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--faint);
}
.daily-side .signature.sm { font-size: 15px; }
.daily-side .signature.sm .no { letter-spacing: .04em; }

.daily-m { margin-top: 7px; }
.daily-h { max-width: 46ch; }
.daily-go {
  margin-left: 2px;
}

@media (max-width: 720px) {
  .daily {
    grid-template-columns: auto minmax(0, 1fr) auto;
    row-gap: 12px;
    padding: 18px 18px 16px;
    gap: 14px;
  }
  .daily-seal { width: 50px; height: 50px; font-size: 23px; border-radius: 13px; }
  .daily-seal::after { inset: 3px; border-radius: 10px; }
  .daily-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-faint);
  }
  .daily-h { max-width: none; }
}

/* --------------------------------------------------------------------------
   最近领走的编号：一张大卡里放一枚号，右边全是空的
   --------------------------------------------------------------------------
   本地只有一两枚号的时候，卡照旧撑满整行 —— 读起来不是「最近只有一枚」，
   而是「这张卡忘了填内容」。去掉卡，改成一条票根带：
   编号是一张一张发出去的，排成一列本来就是它的样子；
   末尾那条虚线是轨道，空的那半截于是成了「还没走到头」，不是「空了」。
   -------------------------------------------------------------------------- */
.recent-note {
  margin: 0 0 20px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--faint);
}
.recent-strip { padding-top: 16px; border-top: 1px solid var(--line-faint); }
.rs-label {
  display: block;
  margin-bottom: 13px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--faint);
}
.rs-track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.rs-ticket {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--brand);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 var(--sheen);
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s;
}
.rs-ticket:hover {
  border-left-color: var(--accent);
  background: var(--panel-2, var(--panel));
  transform: translateY(-2px);
}
/* 末尾的轨道：从最后一枚票根一直拉到右边缘 */
.rs-tail {
  flex: 1 1 90px;
  min-width: 50px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 11px);
}
@media (max-width: 620px) {
  .rs-ticket { height: 48px; padding: 0 15px; font-size: 16px; }
  .rs-tail { display: none; }
}

/* --------------------------------------------------------------------------
   页脚最底部：两句声明一左一右
   --------------------------------------------------------------------------
   原来两句挤在左半边，右半边放一段制作方的落款，
   结果是该读的声明被压成一坨，不该抢眼的落款反倒占了视线。
   现在两句各占一半，中间一条发丝线，没有第三句话。
   -------------------------------------------------------------------------- */
/* 必须带 .site-footer：v4 里那条 .site-footer .footer-legal 权重更高，
   只写 .footer-legal 会被它的 margin/padding 顶掉。 */
.site-footer .footer-legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 40px;
  align-items: start;
}
.site-footer .footer-legal p { margin: 0; }
.site-footer .footer-legal .fl-l { padding-right: 4px; }
.site-footer .footer-legal .fl-r {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
@media (max-width: 760px) {
  .site-footer .footer-legal { grid-template-columns: 1fr; gap: 12px; }
  .site-footer .footer-legal .fl-r {
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-faint);
  }
}

/* --------------------------------------------------------------------------
   站点图标：从「App 图标」统一成「印章」
   --------------------------------------------------------------------------
   高饱和渐变 + 白字，在米色纸页上是一块贴纸，六个排在一起像一排手机桌面图标。
   而站名与那个字母常常没关系（bbs.gg 的站名是「GG论坛」）。
   统一成：纸色底 + 站点色一个字 + 两圈细线。
   缩略图位（.gcover）不动 —— 那是「没有截图」时的画面，不是图标。
   -------------------------------------------------------------------------- */
.site-glyph {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: hsl(var(--gh, 24) 40% 96%);
  border: 1px solid hsl(var(--gh, 24) 28% 84%);
  color: hsl(var(--gh, 24) 44% 34%);
  font-family: var(--brand-cn, var(--serif));
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.site-glyph::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid hsl(var(--gh, 24) 32% 85% / .6);
  border-radius: 7px;
  pointer-events: none;
}
html[data-theme="dark"] .site-glyph {
  background: hsl(var(--gh, 24) 18% 16%);
  border-color: hsl(var(--gh, 24) 16% 27%);
  color: hsl(var(--gh, 24) 38% 72%);
  box-shadow: none;
}
html[data-theme="dark"] .site-glyph::after { border-color: hsl(var(--gh, 24) 18% 30% / .8); }
html[data-theme="contrast"] .site-glyph {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
html[data-theme="contrast"] .site-glyph::after { border-color: var(--line-faint); }

/* 详情页的大图标：同一枚印，尺寸放大，去掉原来那圈 9px 的彩色光环
   （在浅底上像一圈没对齐的描边）。 */
.show-glyph {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: hsl(var(--h, 24) 38% 96%);
  border: 1px solid hsl(var(--h, 24) 26% 84%);
  color: hsl(var(--h, 24) 44% 32%);
  font-family: var(--brand-cn, var(--serif));
  font-size: 40px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.show-glyph::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid hsl(var(--h, 24) 30% 85% / .6);
  border-radius: 16px;
  pointer-events: none;
}
.show-glyph { position: relative; }
html[data-theme="dark"] .show-glyph {
  background: hsl(var(--h, 24) 18% 16%);
  border-color: hsl(var(--h, 24) 16% 26%);
  color: hsl(var(--h, 24) 38% 74%);
  box-shadow: none;
}
html[data-theme="dark"] .show-glyph::after { border-color: hsl(var(--h, 24) 18% 30% / .8); }
html[data-theme="contrast"] .show-glyph {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
html[data-theme="contrast"] .show-glyph::after { border-color: var(--line-faint); }

/* 编号块的字距与色调：它是一串数字，不是一句标语 */
.daily-side .signature.sm .no {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 720px) {
  .site-glyph { width: 34px; height: 34px; font-size: 14px; }
  .show-glyph { width: 76px; height: 76px; font-size: 32px; border-radius: 18px; }
  .show-glyph::after { inset: 5px; border-radius: 13px; }
}

/* 展示馆卡片里的图标另有一条 `.gallery-card .site-glyph`（含 color:#fff 与渐变底），
   权重比单类高，会把印章的淡底压成「白字白底」。同权重、后写，覆盖回来。 */
.gallery-card .site-glyph {
  width: 38px;
  height: 38px;
  color: hsl(var(--gh, 24) 44% 34%);
  background: hsl(var(--gh, 24) 40% 96%);
  border: 1px solid hsl(var(--gh, 24) 28% 84%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.gallery-card .site-glyph::after { border-color: hsl(var(--gh, 24) 32% 85% / .6); }
html[data-theme="dark"] .gallery-card .site-glyph {
  color: hsl(var(--gh, 24) 38% 72%);
  background: hsl(var(--gh, 24) 18% 16%);
  border-color: hsl(var(--gh, 24) 16% 27%);
  box-shadow: none;
}
html[data-theme="dark"] .gallery-card .site-glyph::after { border-color: hsl(var(--gh, 24) 18% 30% / .8); }
html[data-theme="contrast"] .gallery-card .site-glyph {
  color: var(--text);
  background: transparent;
  border-color: var(--line-2);
}
html[data-theme="contrast"] .gallery-card .site-glyph::after { border-color: var(--line-faint); }

/* 印章里的字稍大一点：58px 的框放 27px 的字，四周空了一圈，像没对准 */
.daily-seal { font-size: 30px; }

/* 票根等宽：flex 里每个按内容撑开，八枚排下来第一个比最后一行宽一截，
   换行时更明显。改成栅格，一枚一格，装得下就一行，装不下就整齐换行。 */
.rs-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  gap: 9px;
}
.rs-ticket {
  justify-content: center;
  height: 52px;
  padding: 0 10px;
  font-size: 16.5px;
}
.rs-tail { display: none; }
@media (max-width: 620px) {
  .rs-track { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .rs-ticket { height: 46px; font-size: 15px; }
}

/* 票根的「根」：整条 3px 边框太吵（八条并排像表格线），
   改成靠左的一小截竖条，只做视觉锚点。 */
.rs-ticket {
  position: relative;
  border-left-width: 1px;
  border-left-color: var(--line);
  padding-left: 18px;
}
.rs-ticket::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 13px;
  bottom: 13px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  opacity: .5;
}
html[data-theme="contrast"] .rs-ticket::before { background: var(--text); opacity: .9; }

/* ==========================================================================
   v6 · 题记与深色叙事区（第 21 批）
   --------------------------------------------------------------------------
   这两块是首页视觉上最「没做完」的地方：
   题记是一张白卡，两行字居中悬在中间，上下各空一大截，除了一个淡引号
   没有任何层级；深色叙事区三栏正文是 13.5px / 70% 白，线稿只用 34% 白
   画在空底上，栏顶一条断线、栏底一条虚线，读起来像三张没填完的表。
   这一版不动结构，只补秩序：左对齐排版 + 落款、栏间竖线、提亮正文、
   插画收进有底的图版框。
   ========================================================================== */

/* ---- 题记 ---- */
.quote-card {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
  padding: 32px 44px 25px !important;
  text-align: left;
  border-left: 3px solid var(--accent-line);
  box-shadow: 0 12px 30px -28px rgba(60, 44, 26, .5);
}
/* 引号挪到右上角：左对齐之后它再压左上角就会砸在主句上。
   .card::before 的 right/width/height/背景必须一并复位，否则伪元素仍带着
   卡片顶沿那道 1px 暖线的盒子属性，字会被推到卡片中间。 */
.card.quote-card::before {
  content: "\201C";
  position: absolute;
  left: auto; right: 30px; top: 6px;
  width: auto; height: auto;
  background: none; box-shadow: none;
  font-family: var(--serif);
  font-size: 92px; line-height: 1;
  color: var(--accent);
  opacity: .13;
  pointer-events: none;
}
.quote-k {
  display: block;
  margin-bottom: 15px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--faint);
}
.quote-main {
  margin: 0;
  font-size: 25px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--text);
}
.quote-sub {
  margin: 11px 0 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.quote-by {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line-faint);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--faint);
}
.quote-by-n {
  font-family: var(--mono);
  letter-spacing: .2em;
  color: var(--accent-line);
  white-space: nowrap;
}
@media (max-width: 860px) {
  .quote-card { padding: 26px 24px 22px !important; }
  .card.quote-card::before { right: 14px; top: 8px; font-size: 64px; opacity: .1; }
  .quote-main { font-size: 21px; }
  .quote-sub { font-size: 13px; }
}

/* ---- 叙事区：三张卡片的几何必须完全一致 ----
   旧的「竖线分栏」写法给首栏 padding-left:0 / border-left:0、末栏
   padding-right:0，卡片化之后就成了「首卡贴左边、末卡插画被裁」。
   这里整段收回统一值，不再给 first-child / last-child 开特例。 */
.story { padding: 0 0 6px; }
.story-track { gap: 18px; }
.story-panel {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-1);
}
/* 栏号后面那条渐隐短线改成淡实线：三条渐隐线长短不一，看着像没画完 */
.story-n {
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.story-n::after { background: var(--accent-line); }
.story-h { font-size: 20px; margin-bottom: 13px; }
.story-p {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--muted);
  margin: 0 0 24px;
}
/* 插画：给一块有底的图版，线稿不再飘在深色底上。
   原始 .story-art 带 border-top:1px dashed，必须显式改 border 才盖得掉。 */
.story-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  margin-top: auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--faint);
}
.story-art svg { width: 100%; max-width: 168px; max-height: 80px; }
html[data-theme="contrast"] .story-art {
  background: none;
  border-color: var(--line-2);
  color: var(--text);
}
@media (max-width: 860px) {
  .story-track { gap: 14px; }
  .story-panel { padding: 18px 18px 16px; }
  .story-art { min-height: 88px; }
}

/* 今日一站的窄屏栅格：原先只给 .daily-side 指定跨列，箭头被自动排到
   第三行左下角，单独占一行还带个空圈。把四块的位置逐个钉死：
   第一行 印章 / 站名 / 箭头，第二行 编号整行。 */
@media (max-width: 720px) {
  .daily-seal { grid-column: 1; grid-row: 1; }
  .daily-body { grid-column: 2; grid-row: 1; }
  .daily-go   { grid-column: 3; grid-row: 1; align-self: start; margin: 0; }
  .daily-side { grid-column: 1 / -1; grid-row: 2; }
}

/* 高对比模式沿用「装饰让路」：整页已经是纯黑，这里也不再叠一层底色。 */
html[data-theme="contrast"] .story {
  background: none;
  border: 0;
}

/* ==========================================================================
   v7 · 日间不该有黑带 / 统计区重做 / 刊头去卡片（第 22 批）
   --------------------------------------------------------------------------
   1) 叙事区原先在 .story 上写死了一整组深色底与浅字色，
      与主题令牌完全脱钩：日间模式下「还能做这些」上方凭空一条黑带，
      夜间改令牌也救不回来。这一版把所有写死的颜色收回主题令牌。
   2) 首屏三个数据原来是 flex + 30px 左右边距，数字之间大片空白，
      读起来像三块互不相干的东西。改成有边框、有抬头、有分隔线的数据板。
   3) 题记白卡滚动时只剩一条白边露在深色区上沿，像加载失败；
      改成纸面上的刊头，不再有可裁切的卡片。
   ========================================================================== */

/* ---- 首屏数据板 ---- */
.hero-board {
  position: relative;
  margin-top: 40px;
  max-width: 540px;
  padding: 15px 20px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-face);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
/* 左上角一小段暖色压边，给这块「台账」一个记号的起点 */
.hero-board::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 66px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-line));
}
.hb-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 11px; margin-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.hb-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: var(--text-2);
}
.hb-tag i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.hb-note {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .12em;
  color: var(--faint);
}
.hb-grid {
  display: grid;
  grid-template-columns: .88fr .88fr 1.5fr;
  gap: 0;
}
.hb-grid .stat {
  min-width: 0;
  padding: 0 16px;
  border-left: 1px solid var(--line-faint);
}
.hb-grid .stat:first-child { padding-left: 0; border-left: 0; }
.hb-grid .stat:last-child  { padding-right: 0; }
.hb-grid .stat .k {
  font-size: 10.5px; letter-spacing: .08em;
  color: var(--faint); margin-bottom: 8px;
}
.hb-grid .stat .v {
  font-size: 28px; line-height: 1.1; letter-spacing: -.025em;
}
.hb-grid .stat .v-sm {
  font-size: 16px; font-weight: 600; line-height: 1.5;
  padding-top: 4px; letter-spacing: -.01em;
}
.hb-grid .stat .s {
  margin-top: 8px; font-size: 10.5px; color: var(--faint);
}
.hb-grid .stat-link { white-space: nowrap; }
.hb-grid .stat-link i { font-style: normal; margin-left: 3px; }

/* ---- 章节刊头（替掉白卡） ---- */
.chapter { padding-top: 8px; padding-bottom: 26px; }
.chapter-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.chapter-count {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  color: var(--accent-line); white-space: nowrap;
}
.chapter-main {
  margin: 22px 0 0;
  font-size: 30px; line-height: 1.5; font-weight: 600;
  letter-spacing: -.02em; color: var(--text);
}
.chapter-sub {
  margin: 9px 0 0; max-width: 62ch;
  font-size: 14px; line-height: 1.9; color: var(--muted);
}
.chapter-byline {
  margin-top: 18px;
  font-size: 11px; letter-spacing: .06em; color: var(--faint);
}

/* ---- 叙事区：底色与文字全部回到主题令牌 ---- */
/* 叙事区：底色与整页完全一致 —— 不给全宽背景、不给上下硬边。
   像素采样实测：页面 rgb(246,239,227)，原先这里被 --paper-face 铺成
   rgb(251,245,240) 且右下带薄荷顶光，于是日间出现一条明显的白带断层。
   分层只靠内容宽度内的一条细线和章节标题，不靠横向色带。 */
.story {
  margin: 0;
  padding: 0 0 6px;
  background: none;
  color: var(--text);
  border: 0;
}
.story::before, .story::after { content: none; }
.story-lead {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  margin-bottom: 26px;
}
.story-lead h2 { margin: 7px 0 0; font-size: 21px; color: var(--text); }
.story-lead-p { margin: 0 0 3px; font-size: 12px; color: var(--muted); }
.story .story-track { gap: 18px; }
.story .story-panel {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-1);
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.story .story-scene:hover .story-panel {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.story .story-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: none;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0;
  margin-bottom: 16px;
}
.story .story-n::after { display: none; }
.story .story-h {
  font-size: 19px; font-weight: 600; letter-spacing: -.008em;
  color: var(--text); margin-bottom: 11px;
}
.story .story-p {
  flex: 1; min-height: 0;
  font-size: 13.5px; line-height: 1.95;
  color: var(--muted); margin: 0 0 20px;
}
.story .story-art {
  margin-top: auto; min-height: 96px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--faint);
}
.story .story-art svg { width: 100%; max-width: 168px; max-height: 76px; }
.stat-link {
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  transition: color .2s, border-color .2s;
}
.stat-link:hover { color: var(--accent-2); border-color: var(--accent-line); }
.story + section { padding-top: 36px !important; }

/* 夜间 / 高对比同样不给全宽底色：整页已经是深底，再铺一层就是第二条色带 */
html[data-theme="dark"] .story,
html[data-theme="contrast"] .story { background: none; border: 0; }
html[data-theme="dark"] .story-lead,
html[data-theme="contrast"] .story-lead { border-top-color: var(--line-2); }
html[data-theme="contrast"] .story .story-panel {
  background: #0B0B0C; border-color: var(--line-2); box-shadow: none;
}
html[data-theme="contrast"] .story .story-art {
  background: none; border-color: var(--line-2); color: var(--text);
}
html[data-theme="contrast"] .hb-top { border-bottom-color: var(--line-2); }

@media (max-width: 860px) {
  .story { padding: 0 0 4px; }
  .story-lead { padding-top: 24px; }
  .story .story-track { gap: 14px; }
  .story .story-panel { padding: 18px 18px 16px; }
  .story .story-h { font-size: 17px; }
  .story .story-art { min-height: 84px; }
  .chapter-main { font-size: 24px; }
}
@media (max-width: 620px) {
  .hero-board { max-width: none; margin-top: 32px; padding: 14px 16px 15px; }
  .hb-grid { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .hb-grid .stat:nth-child(3) {
    grid-column: 1 / -1;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px dashed var(--line);
  }
  .hb-grid .stat .v { font-size: 24px; }
  .hb-grid .stat .v-sm { font-size: 16px; }
  .story-lead { align-items: flex-start; flex-direction: column; gap: 8px; }
  .story-lead-p { margin: 0; }
}

/* ==========================================================================
   v8 · 首屏左右收平 / 数据条通栏 / 票本补位（第 23 批）
   --------------------------------------------------------------------------
   截图实测：左列从眉标排到数据板，右列只有一张小卡悬在中间，
   上下各空一百多像素；数据板又只占左列半屏宽，首屏左重右轻。
   这一版把数据板挪到两栏下方铺满、右列上下补齐、预览卡放大。
   ========================================================================== */

.hero { padding: 76px 28px 30px; gap: 48px; }
.hero-board-wrap { padding-top: 0; padding-bottom: 34px; }
.hero-board { max-width: none; margin-top: 0; }

/* 右列：上一条说明、中间卡、下一条落款，从上到下都有东西 */
.hero-visual {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 15px;
}
.hv-cap {
  width: 100%; max-width: 480px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px; color: var(--muted);
}
.hv-cap-e {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  color: var(--faint); white-space: nowrap;
}
.hv-note {
  width: 100%; max-width: 480px; margin: 0;
  font-size: 11.5px; color: var(--faint); text-align: center;
}
.hv-note span { color: var(--muted); }

/* 预览卡跟着右列一起放大，不再是一张小小的贴纸 */
.plate-box { max-width: 480px; }
.hero-plate { padding: 24px 26px 20px; }
.plate-top { padding-bottom: 16px; }
.plate-stage { height: 184px; }
.plate-stage .signature { font-size: 34px; }
.plate-cap { font-size: 12.5px; }
.plate-foot { padding-top: 15px; font-size: 11.5px; }
.plate-sheet.s1 { transform: translate(8px, 10px) rotate(1.3deg); }
.plate-sheet.s2 { transform: translate(16px, 20px) rotate(2.6deg); }
.ring-1 { width: calc(100% + 28px); }
.ring-2 { width: calc(100% + 10px); }

/* 通栏数据条：四列各说一件事 */
.hb-grid { grid-template-columns: .9fr .9fr 1.45fr 1fr; }
.hb-act {
  min-width: 0;
  padding: 0 0 0 18px;
  border-left: 1px solid var(--line-faint);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 7px;
}
.hb-act-k { font-size: 10.5px; letter-spacing: .08em; color: var(--faint); }
.hb-act-go {
  display: inline-flex; align-items: center; gap: 5px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent-line);
  font-size: 13px; font-weight: 600; color: var(--accent-2);
  white-space: nowrap;
}
.hb-act-go i { font-style: normal; transition: transform .2s; }
.hb-act-go:hover { color: var(--accent); border-color: var(--accent); }
.hb-act-go:hover i { transform: translateX(3px); }
.hb-act-s { font-size: 10.5px; color: var(--faint); }

/* 这一周：一条时间轴 + 七个节点，有事的点亮起来。
   不画柱状图（数据只有个位数，柱子只会显得空），也不用长横条——
   长横条七根并排，看起来像表格的行线，不像「这周」。 */
.hb-week {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
}
.hb-week-k {
  flex: none;
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--faint);
}
.hb-week-track {
  flex: 1 1 auto;
  max-width: 520px;
  display: flex;
  align-items: flex-start;
  min-width: 0;
}
.hb-week-d {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
/* 贯穿的那根线：首尾各收一半，轴才有起点和终点 */
.hb-week-d::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.hb-week-d:first-child::before { left: 50%; }
.hb-week-d:last-child::before { right: 50%; }
.hb-week-d i {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform var(--dur-2);
}
.hb-week-d.is-on i {
  background: var(--accent);
  box-shadow: none;
}
.hb-week-d.is-many i { transform: scale(1.45); }
.hb-week-d.is-today i {
  box-shadow: 0 0 0 1px var(--accent-line), 0 0 0 4px var(--accent-bg);
}
.hb-week-d.is-today.is-on i {
  box-shadow: 0 0 0 4px var(--accent-bg);
}
.hb-week-d em {
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  color: var(--faint);
}
.hb-week-d.is-on em { color: var(--text-2); }
.hb-week-d.is-today em { color: var(--accent-2); font-weight: 600; }
.hb-week-n {
  flex: none;
  font-size: 10.5px;
  color: var(--faint);
  white-space: nowrap;
}
.hb-week-n b { font-weight: 600; color: var(--text-2); }

/* 窄屏：一行塞不下「标签＋七格轴＋数量」，轴独占一行，否则七个点挤成一串珠子 */
@media (max-width: 560px) {
  .hb-week { flex-wrap: wrap; gap: 10px 12px; }
  .hb-week-track {
    flex: 1 1 100%;
    order: 3;
    min-width: 100%;
    max-width: none;
  }
  .hb-week-n { margin-left: auto; }
}

/* 票本补位：只领走一枚时，右边不该空半条。
   空位是虚线框，不是数据，不带编号，也不参与 hover。 */
.rs-track { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.rs-ticket.is-void {
  border: 1px dashed var(--line-2);
  background: none;
  box-shadow: none;
  color: transparent;
}
.rs-ticket.is-void::before { display: none; }
.rs-ticket.is-void::after {
  content: "";
  width: 20px; height: 1px;
  background: var(--line-2); opacity: .65;
}
.rs-ticket.is-void:hover { border-color: var(--line-2); background: none; transform: none; }

@media (max-width: 900px) {
  .hero { gap: 30px; }
  .hb-grid { grid-template-columns: .9fr .9fr 1.3fr; }
  .hb-act { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px;
            padding: 14px 0 0; border-left: 0; border-top: 1px dashed var(--line); }
  .hb-act-k { margin-right: auto; }
  .rs-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hero { padding: 44px 18px 24px; gap: 24px; }
  .hero-visual { gap: 12px; }
  .plate-box { max-width: 100%; }
  .hero-plate { padding: 18px 18px 15px; }
  .plate-stage { height: 140px; }
  .plate-stage .signature { font-size: 26px; }
  .hero-board-wrap { padding-top: 0; }
  .hero-board { margin-top: 0; padding: 14px 16px 15px; }
  .hb-grid { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .hb-grid .stat,
  .hb-grid .stat:nth-child(3),
  .hb-grid .hb-act {
    grid-column: auto; padding: 0 12px;
    border-left: 1px solid var(--line-faint); border-top: 0;
  }
  .hb-grid .stat:first-child { padding-left: 0; border-left: 0; }
  .hb-grid .stat:nth-child(3), .hb-grid .hb-act {
    grid-column: 1 / -1;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px dashed var(--line);
  }
  .hb-act { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hb-act-k { margin-right: 0; }
  .hb-grid .stat .v { font-size: 24px; }
  .hb-grid .stat .v-sm { font-size: 16px; }
  .rs-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rs-ticket { padding-left: 10px; font-size: 14px; }
  .rs-ticket.is-void::after { width: 14px; }
}

/* ==========================================================================
   第 24 批 · 叙事区左右两侧显示异常 —— 三张卡片几何统一（最终值）
   --------------------------------------------------------------------------
   修复前实测（1400 宽）：三张 .story-panel 的 computed padding 依次是
     0px/22px、22px/22px、22px/0px，首卡 border-left:0、末卡插画贴右边。
   根因是 v6「裸文字分栏」时代留给首栏的「左内边距零、左边框零」、
   留给末栏的「右内边距零」两条特例（选择器带 :first-child / :last-child），
   没跟着 v7 的卡片化一起删；它的权重 (0,3,0) 高于 .story .story-panel
   (0,2,0)，所以只在末尾补统一值也盖不住，必须把特例从源码里删掉。
   历史特例已全部删除；这里再写一次最终值，防止以后新增规则破坏一致性。
   验收：tools/brand/check_story.py 逐宽度比对三张卡的 padding / border /
   是否溢出容器，数值不一致即报错。
   ========================================================================== */
.story .story-panel,
.story .story-scene:first-child .story-panel,
.story .story-scene:last-child .story-panel {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.story .story-art { margin-left: 0; margin-right: 0; }
html[data-theme="contrast"] .story .story-panel {
  border-color: var(--line-2);
  box-shadow: none;
}
@media (max-width: 860px) {
  .story .story-track {
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }
  .story .story-panel,
  .story .story-scene:first-child .story-panel,
  .story .story-scene:last-child .story-panel {
    padding: 18px 18px 16px;
  }
}

/* ==========================================================================
   第 25 批 · 今日一站：一整行只摆一个站，右边七成是空的
   --------------------------------------------------------------------------
   原来 .daily 是 1064px 宽的一条大卡，内部四列横排（印章 / 正文 / 编号 /
   箭头），正文只有站名和域名，中间约 630px 全是空白。
   现在这一行改成三栏：今日一站特写 + 展示馆里两个站的紧凑卡；
   下方三张大卡换成不重复的另外三个站，整页同宽下从展示 1 个站变成 4 个。
   ========================================================================== */
.daily-row {
  display: grid;
  grid-template-columns: 1.42fr 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

/* 卡片窄到 1.42fr 之后四列会把文字挤成一团：改成「上排身份、下排编号」。
   注意 .daily 在 8559 行带 padding !important，这里也得带，否则改不动。 */
.daily-row .daily {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "seal body go"
    "side side side";
  align-content: start;
  gap: 12px 14px;
  padding: 18px 18px 14px !important;
}
.daily-row .daily-seal {
  grid-area: seal;
  width: 50px; height: 50px;
  font-size: 25px;
  border-radius: 13px;
}
.daily-row .daily-seal::after { inset: 3px; border-radius: 10px; }
.daily-row .daily-body { grid-area: body; gap: 3px; padding-top: 2px; }
.daily-row .daily-t { font-size: 17px; }
.daily-row .daily-h {
  max-width: none;
  font-size: 12.5px;
  line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden;
}
.daily-row .daily-m { margin-top: 2px; }
.daily-row .daily-go {
  grid-area: go;
  align-self: start;
  margin: 2px 0 0;
  font-size: 16px;
}
.daily-row .daily-side {
  grid-area: side;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0 0;
  border-left: 0;
  border-top: 1px solid var(--line-faint);
  white-space: normal;
}
.daily-row .ds-k { font-size: 10.5px; letter-spacing: .08em; white-space: nowrap; }
.daily-row .daily-side .signature.sm .no {
  font-size: 17px; letter-spacing: .06em;
}

/* 同排的两个站：跟特写卡等高，内容按「印章行 / 两行简介 / 编号脚」排满 */
.daily-peer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px 16px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s var(--ease), transform .2s var(--ease),
              box-shadow .2s var(--ease);
}
.daily-peer:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.dp-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dp-top .site-glyph {
  width: 38px; height: 38px; flex: none;
  font-size: 15px;
  border-radius: 11px;
}
.dp-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dp-t, .dp-d {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dp-t { font-size: 14px; font-weight: 600; color: var(--text); }
.dp-d { font-size: 11px; color: var(--faint); }
/* 跟 .daily-go 同一套圆形按钮语言，只是小一号：三张卡的入口长得一样 */
.dp-arrow {
  width: 28px; height: 28px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
  transition: background .24s, border-color .24s, color .24s,
              transform .3s var(--spring);
}
.daily-peer:hover .dp-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: rotate(45deg);
}
.dp-desc {
  min-height: 2.9em;
  font-size: 12px; line-height: 1.7; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.dp-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-faint);
}
.dp-k { font-size: 10px; letter-spacing: .1em; color: var(--faint); white-space: nowrap; }
.dp-foot .signature.sm .no {
  font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--text);
}

html[data-theme="contrast"] .daily-peer:hover { box-shadow: none; }

@media (max-width: 1000px) {
  .daily-row { grid-template-columns: 1fr 1fr; }
  .daily-row .daily { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .daily-row { grid-template-columns: 1fr; }
  .daily-row .daily { grid-column: auto; }
}

/* ==========================================================================
   v11 · 第 26 批：实时搜索 + 细节层（前后台共用）
   --------------------------------------------------------------------------
   这一批新增的组件全部走主题变量，不写死底色：
   上一轮「日间模式出现黑带」就是硬编码颜色绕过令牌造成的。
   ========================================================================== */

/* ---- 页脚第三行：念念编号徽章（由 nnbw.top 嵌入脚本渲染） ---- */
/* 嵌入徽章只是一张图片（站点署名），本身不带亮点；平台在它前面放一颗小圆点。
   圆点样式**直接沿用 .foot-meta-i::before**，与上面「每月」「访问」两行完全一致 ——
   编号这行不该自己长成另一副样子（曾经是 7px 发光红点，和上面两行对不上）。
   这里只管排版：徽章紧跟在圆点后面，不独占一行。 */
.foot-meta-no {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---- 账号页：登录状态卡片 ---- */
.session-card { border-left: 3px solid var(--accent-line); }
.session-card .signature.sm .no { font-size: 13px; }

/* ---- 实时结果：状态行 / 加载条 / 建议空态 ---- */
.live-status {
  display: flex; align-items: center; gap: 8px;
  min-height: 18px; margin: 0 0 12px;
  font-size: 11.5px; color: var(--faint);
  letter-spacing: .02em;
}
.live-status.is-idle { min-height: 0; margin: 0; font-size: 0; }
.live-status [data-live-count] {
  font-family: var(--brand); font-size: 13px; font-weight: 600;
  color: var(--text-2); font-variant-numeric: tabular-nums;
}
.suggest-none {
  padding: 14px; font-size: 12px; color: var(--faint); line-height: 1.7;
}
body.is-live-busy::after {
  content: ""; position: fixed; left: 0; right: 0; top: 0; height: 2px;
  z-index: 9999; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 40% 100%;
  animation: nnbw-busy 1s linear infinite;
}
@keyframes nnbw-busy { from { background-position: -40% 0; } to { background-position: 140% 0; } }
form.is-live-busy { cursor: progress; }
form.is-live-busy input[data-live-key] { border-color: var(--accent-line); }

/* ---- 全局提示条 ---- */
.nnbw-toast, #nnbw-live-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 10000;
  transform: translate(-50%, 12px);
  max-width: min(88vw, 420px);
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-2);
  font-size: 12.5px; line-height: 1.6;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nnbw-toast.is-on, #nnbw-live-toast.is-on, .nnbw-toast.is-warn {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nnbw-toast.is-warn { border-color: var(--accent-line); color: var(--accent-2); }

/* ---- 命令面板（Ctrl / ⌘ + K） ---- */
.cmd-panel[hidden] { display: none; }
.cmd-panel { position: fixed; inset: 0; z-index: 9990; }
.cmd-mask {
  position: absolute; inset: 0;
  background: rgba(24, 22, 20, .42);
  backdrop-filter: blur(2px);
}
html[data-theme="dark"] .cmd-mask,
html[data-theme="contrast"] .cmd-mask { background: rgba(0, 0, 0, .66); }
.cmd-card {
  position: relative;
  width: min(92vw, 560px);
  margin: min(14vh, 120px) auto 0;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  animation: cmd-in .18s var(--ease);
}
@keyframes cmd-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.cmd-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-faint);
}
.cmd-ic { font-size: 21px; line-height: 1; color: var(--accent); }
.cmd-input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: none;
  color: var(--text); font-size: 14.5px; font-family: inherit;
}
.cmd-input::placeholder { color: var(--placeholder); }
.cmd-head kbd, .cmd-foot kbd, .cmd-help-row kbd {
  font-family: var(--mono, monospace); font-size: 10px;
  border: 1px solid var(--line-2); border-radius: 4px;
  padding: 2px 5px; color: var(--faint); background: var(--bg-soft);
}
.cmd-list { max-height: min(56vh, 420px); overflow-y: auto; padding: 6px 0; }
.cmd-group {
  padding: 10px 16px 5px;
  font-size: 10px; letter-spacing: .16em; color: var(--faint);
}
.cmd-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 16px;
  align-items: center; gap: 10px;
  padding: 9px 16px;
  color: var(--text); text-decoration: none;
  border-left: 2px solid transparent;
}
.cmd-item:hover, .cmd-item.is-active {
  background: var(--bg-soft); border-left-color: var(--accent);
}
.cmd-t { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-s { font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-go { font-size: 12px; color: var(--faint); text-align: right; }
.cmd-none { padding: 22px 16px; font-size: 12.5px; color: var(--faint); }
.cmd-foot {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 16px; border-top: 1px solid var(--line-faint);
  font-size: 10.5px; color: var(--faint);
}
.cmd-help { padding: 4px 16px 14px; }
.cmd-help-row {
  display: flex; align-items: center; gap: 14px;
  padding: 7px 0; font-size: 12.5px; color: var(--text-2);
  border-bottom: 1px solid var(--line-faint);
}
.cmd-help-row:last-child { border-bottom: 0; }
.cmd-help-row kbd { min-width: 92px; text-align: center; }
/* 顶栏的快捷面板按钮：窄屏让位给汉堡，不必再挤一个 */
.nav-cmdk {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 32px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.nav-cmdk:hover { color: var(--accent); border-color: var(--accent-line); }
.nav-cmdk kbd { font-family: var(--mono, monospace); font-size: 9.5px; letter-spacing: -.02em; }
@media (max-width: 1000px) { .nav-cmdk { display: none; } }

/* ---- 阅读进度 / 回到顶部进度环 ---- */
.read-progress {
  position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 9000;
  background: var(--accent);
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease);
}
.read-progress.is-on { opacity: .85; }
.to-top::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: conic-gradient(var(--accent) calc(var(--ring, 0) * 360deg), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  opacity: .5;
}

/* ---- 表单即时校验 ---- */
.field-live { font-size: 11px; line-height: 1.6; margin-top: 5px; min-height: 0; }
.field-live.is-ok { color: var(--mint); }
.field-live.is-bad { color: var(--accent-2); }
input.is-ok { border-color: var(--mint) !important; }
input.is-bad { border-color: var(--accent-line) !important; }
input[data-pw-strong="1"] { box-shadow: 0 0 0 3px var(--mint-bg); }

/* ---- 相对时间小标 ---- */
.ago-tag {
  display: inline-block; margin-left: 6px;
  font-size: 10px; color: var(--faint);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* ---- 键盘用户才显示焦点环（鼠标点击不闪） ---- */
body.is-keyboard a:focus-visible,
body.is-keyboard button:focus-visible,
body.is-keyboard input:focus-visible,
body.is-keyboard select:focus-visible,
body.is-keyboard .cmd-item:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---- 后台：登录态徽标 ---- */
.adm-session {
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; font-size: 11px; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.adm-session i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 3px var(--mint-bg);
}
.adm-session-max { color: var(--line-2); }
@media (max-width: 1180px) { .adm-session { display: none; } }

/* ---- 后台：设置项实时预览 ---- */
.adm-set-preview {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 8px; padding: 8px 12px;
  border: 1px dashed var(--line-2); border-radius: 8px;
  background: var(--bg-soft);
  font-size: 11.5px; color: var(--faint);
}
.adm-set-prev-k { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.adm-set-prev-hint { margin-left: auto; font-size: 10.5px; color: var(--faint); }
/* 页脚徽章那项的三种提示：是自己家的 / 是别人的 / 还没绑定站点。
   「粘了别人的 token」这一条最要紧——不提醒，页脚会署别人的名。 */
.adm-set-ok,
.adm-set-warn,
.adm-set-hint {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.75;
}
.adm-set-ok { color: var(--mint); }
.adm-set-warn { color: var(--accent-2); }
.adm-set-hint { color: var(--faint); }
.adm-set-ok code,
.adm-set-warn code {
  font-family: var(--mono);
  font-size: 10.5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
}
.adm-set-warn a,
.adm-set-hint a { color: var(--accent-2); }
html[data-theme="contrast"] .adm-set-preview { border-style: solid; }

/* 「用哪个站的编号」：多站点时，管理员得能一眼看清页脚现在署的是谁，
   并一键换成另一枚自己的徽章。
   以前只有一段自由输入的文本框：换个站要自己去别处翻 token 粘回来，
   粘错了前台署的就是别的站的编号，还不报错。 */
.adm-set-choose {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 8px;
}
.adm-set-choose-k {
  font-size: 10px; letter-spacing: .12em; color: var(--muted);
  flex: 0 0 auto;
}
.adm-set-choose-b {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font: inherit; font-size: 12px;
  cursor: pointer;
  transition: border-color .16s, color .16s, background .16s;
}
.adm-set-choose-b:hover { color: var(--text); border-color: var(--faint); }
.adm-set-choose-b.on {
  border-color: var(--accent);
  color: var(--accent-2);
  background: var(--accent-bg);
}
.adm-set-choose-t { max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 嵌入代码这类「一行塞不下」的设置：上下堆叠，标签占满整行，
   文本框与预览各自换行，避免把左侧标签挤成四个字一行、文本框被裁掉。 */
.adm-set-row--embed { flex-direction: column; align-items: stretch; gap: 8px; }
.adm-set-row--embed .adm-set-meta { width: 100%; }
.adm-set-row--embed .adm-set-ctrl { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
.adm-set-row--embed .adm-set-ctrl form { flex-direction: column; align-items: stretch; gap: 6px; }
.adm-set-row--embed textarea.adm-in { width: 100%; flex: 1 1 auto; min-width: 0; }
.adm-set-row--embed .adm-set-ctrl .adm-btn { align-self: flex-end; }
.adm-set-row--embed .adm-set-preview { width: 100%; }
/* 预览里的徽章（脚本运行时注入 <a><img></a>）：前面补一颗小圆点，
   与页脚那颗、以及页脚上面两行用的是同一套圆点样式（.foot-meta-i::before），
   编号前的「亮点」在后台也能预览到，而且长得跟前台一模一样。 */
.adm-set-prev-badge { display: inline-flex; align-items: center; gap: 8px; }
.adm-set-prev-badge::before {
  content: "";
  flex: none;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-line);
}

/* ============================================================
   展示馆 · 馆藏概览（1.20.0）
   ------------------------------------------------------------
   上一版这一页只有「大标题 + 一句说明 + 一排筛选项 + 卡片」。
   首屏没有一处告诉访客「这里有多大、最近有没有人进来」，
   一屏扫过去全是留白，看不出重点。

   现在首屏分四层，自上而下回答四个问题：
     1. 这是什么（标题 + 一句说明 + 三个入口）
     2. 有多大（四个数字，用上下细线夹住，不做卡片）
     3. 最近有什么（刚刚进馆，四条一行）
     4. 从哪里下手（带条数的标签 + 排序）

   颜色一律走令牌：数字band 不铺底色，只用两条细线——全宽区块换底色
   会和页面形成一道明显的分界线（这条以前踩过）。
   ============================================================ */

.gal-hero {
  padding: 52px 28px 0;
}

.gal-hero-l { max-width: 640px; }

.gal-h1 {
  font-size: 34px;
  letter-spacing: -.01em;
  margin: 10px 0 0;
}

.gal-lead { margin-top: 14px; }

.gal-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

/* ---- 四个数字 ---- */
.gal-figs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gal-fig {
  padding: 20px 22px 18px;
  min-width: 0;
  border-left: 1px solid var(--line-faint);
}
.gal-fig:first-child { border-left: 0; padding-left: 0; }
.gal-fig:last-child { padding-right: 0; }

.gal-fig dt {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}

.gal-fig dd {
  margin: 6px 0 0;
  font-family: var(--brand);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.gal-fig-s {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--faint);
  line-height: 1.6;
}

/* ---- 逛到哪儿了 ---- */
.gal-progress-wrap { padding: 12px 28px 0; }

.gal-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0 0;
  flex-wrap: wrap;
}

.gal-progress-bar {
  flex: 0 0 132px;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.gal-progress-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.gal-progress-t {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.gal-progress-t b { color: var(--text-2); font-weight: 600; }
.gal-progress .btn { margin-left: auto; }

/* ---- 刚刚进馆：四条一行 ---- */
.gal-fresh-wrap { padding: 30px 28px 4px; }

.gal-sec-head {
  margin-bottom: 12px;
  align-items: baseline;
}
.gal-sec-t { margin: 0; }

.gal-fresh {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-faint);
}

.gal-fresh-i {
  display: flex;
  gap: 10px;
  padding: 14px 16px 14px 0;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-right: 1px solid var(--line-faint);
  transition: background var(--dur-2), padding-left var(--dur-2);
}
.gal-fresh-i:last-child { border-right: 0; }
.gal-fresh-i:hover { background: var(--accent-bg); padding-left: 8px; }

.gal-fresh-no {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--faint);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}

.gal-fresh-body { min-width: 0; display: block; }

.gal-fresh-t {
  display: block;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gal-fresh-d {
  display: block;
  font-size: 11px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}

.gal-fresh-m {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}

/* ---- 筛选栏：标签带真实条数 ---- */
.gal-filter-wrap { padding: 26px 28px 22px; }

.gal-filter {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.gal-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
}
.gal-filter-row--sub { border-top: 1px dashed var(--line-faint); margin-top: 6px; padding-top: 10px; }

.gal-filter-k {
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--faint);
  flex: 0 0 auto;
  margin-right: 3px;
}

.gal-filter-now {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.gal-filter-now b { color: var(--text-2); font-weight: 600; }
.gal-filter-now a { color: var(--accent-2); margin-left: 8px; }

/* 标签里的阿拉伯数字：小一号、浅一档，读起来是「个人 12」而不是「个人12」 */
.tag-count b {
  font-family: var(--brand);
  font-weight: 600;
  font-size: 10.5px;
  color: var(--faint);
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.tag-count.is-on b { color: var(--accent-2); }

.tag.is-on {
  border-color: var(--accent-line);
  color: var(--accent-2);
  background: var(--accent-bg);
}

.tag-more { border-style: dashed; color: var(--faint); }

.tag-xs {
  height: 19px;
  padding: 0 7px;
  font-size: 10.5px;
  border-radius: 10px;
}

/* ---- 卡片上新增的两处 ---- */
.gcard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
  /* 没标签的站也留出这一行的高度：
     否则同排有的卡「标签 + 编号」，有的只有「编号」，脚部差一行。 */
  min-height: 19px;
}

/* 卡片自己的那条颜色：域名算出来的色相（--gc / --gd 由视图写在 .gcard-wrap 上）。
   只在底边点一下、在「新进」角标上点一下，其余保持主题色——
   一屏二十张卡，颜色是给人认路用的，不是用来铺满的。 */
.gcard { position: relative; }
.gcard::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg,
      transparent,
      var(--gc, var(--line-2)) 14%,
      var(--gc, var(--line-2)) 86%,
      transparent);
  opacity: .55;
  transition: opacity var(--dur-2);
  pointer-events: none;
}
.gcard:hover::after { opacity: 1; }

.gcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-faint);
}

/* 封面角上的小标。位置避开右上角的收藏按钮。 */
.gbadge-new,
.gbadge-off {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 10.5px;
  letter-spacing: .04em;
  backdrop-filter: blur(6px);
}
.gbadge-new {
  /* 用这个站自己的色（深一档），而不是全站红：
     一整排「新进」全是同一块红，反而看不出谁是谁。 */
  background: var(--gd, var(--accent));
  color: #fff;
}
.gbadge-off {
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line-2);
}

/* ---- 列表末尾的说明 ---- */
.gal-tail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-faint);
}
.gal-tail p { margin: 0; max-width: 620px; line-height: 1.8; }

@media (max-width: 900px) {
  .gal-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal-fig { padding: 16px 16px 14px; }
  .gal-fig:nth-child(odd) { border-left: 0; padding-left: 0; }
  .gal-fig:nth-child(n + 3) { border-top: 1px solid var(--line-faint); }
  .gal-fresh { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal-fresh-i:nth-child(2n) { border-right: 0; }
  .gal-fresh-i:nth-child(n + 3) { border-top: 1px solid var(--line-faint); }
}

@media (max-width: 560px) {
  .gal-hero { padding-top: 38px; }
  .gal-h1 { font-size: 28px; }
  .gal-fig dd { font-size: 24px; }
  .gal-fresh { grid-template-columns: 1fr; }
  .gal-fresh-i { border-right: 0; padding-right: 0; }
  .gal-fresh-i + .gal-fresh-i { border-top: 1px solid var(--line-faint); }
  .gal-progress-bar { flex-basis: 88px; }
  .gal-progress .btn { margin-left: 0; }
  .gal-tail { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   馆内详情 · 双栏（1.20.0）
   ------------------------------------------------------------
   以前整页是一条 760px 的窄栏，桌面上一屏只放得下两张卡，
   左右各留两百多像素的空白，编号卡里更是空着一大片。
   现在左侧讲「他在说什么」，右侧讲「这个站现在什么状态」——
   同样的内容，一屏能看到的东西多了一倍。
   ============================================================ */

.gshow { padding-bottom: 0; }
.gshow-head { margin-bottom: 24px; }

.gshow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 16px;
  align-items: start;
  margin-top: 26px;
}

.gshow-main { min-width: 0; display: grid; gap: 14px; }
.gshow-side { min-width: 0; display: grid; gap: 14px; }

.gshow-card { padding: 26px 28px; }

.gshow-about {
  margin: 16px 0 0;
  color: var(--text-2);
  line-height: 1.95;
}

/* 编号卡底部一行注：说清楚这串数字是干嘛用的，而不是留一片白 */
.gshow-codewrap {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-faint);
}

.gs-card { padding: 16px 18px 15px; }

.gs-h {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--faint);
  font-weight: 500;
}

.gs-dl { margin: 0; padding: 0; }

.gs-dl-r {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-faint);
}
.gs-dl-r:last-child { border-bottom: 0; padding-bottom: 0; }

.gs-dl dt {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--faint);
}

.gs-dl dd {
  margin: 0;
  min-width: 0;
  font-size: 12.5px;
  color: var(--text-2);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-domain { font-size: 12px; }

.gs-note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-faint);
  font-size: 11px;
  line-height: 1.75;
  color: var(--faint);
}

/* ---- 时间线：横排四个点，铺满主栏 ----
   竖排版本会在一侧留出一条空柱子，横排则把宽度用满，
   而且「早 → 晚」从左到右读，符合这一块想讲的事。 */
.gs-tlcard { padding: 18px 22px 16px; }

.gs-tlh {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.gs-tlh-i {
  position: relative;
  padding: 14px 14px 0 0;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.gs-tlh-dot {
  position: absolute;
  top: -3.5px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line-2);
}
.gs-tlh-i:first-child .gs-tlh-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.gs-tlh-k {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.gs-tlh-v {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--text);
}
.gs-tlh-s {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--faint);
}

/* ---- 邻居：侧栏里的一行一个 ---- */
.gs-neigh-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.gs-neigh-more {
  font-size: 10.5px;
  color: var(--accent-2);
  text-decoration: none;
  white-space: nowrap;
}

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

/* 主栏底部并排两组邻居 */
.gs-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 700px) {
  .gs-2col { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

.gs-li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "t c"
    "d c";
  align-items: center;
  column-gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-faint);
  text-decoration: none;
  color: inherit;
}
.gs-list li:last-child .gs-li { border-bottom: 0; padding-bottom: 0; }

.gs-li-t {
  grid-area: t;
  font-size: 12.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gs-li-d {
  grid-area: d;
  font-size: 10.5px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gs-li-c {
  grid-area: c;
  font-size: 11px;
  color: var(--muted);
}
.gs-li:hover .gs-li-t { color: var(--accent-2); }
.gs-li:hover .gs-li-c { color: var(--accent-2); }

@media (max-width: 960px) {
  .gshow-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .gshow-card { padding: 20px 18px; }
  .gs-tlcard { padding: 16px 18px; }
  .gs-tlh { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
}

/* ============================================================
   工作台 · 展示馆 / 我的这一年（1.20.0）
   ------------------------------------------------------------
   这两块原来是同一个毛病：一条横杠卡片，左边一句说明、右边一个按钮，
   中间两百多像素全是空白。读完既不知道「我的站现在什么状态」，
   也不知道「馆里最近有没有人」。
   现在两边都把真实数字摆出来，卡片自己就能回答「然后呢」。
   ============================================================ */

/* ---- 我的这一年 ---- */
.db-year {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
}

.db-year-l { min-width: 0; }

.db-year-t { margin: 0 0 6px; font-size: 15px; font-weight: 500; }

.db-year-p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.8; }

.db-year-go {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--accent-2);
}
.db-year-go span { transition: transform .2s var(--ease); display: inline-block; }
.db-year:hover .db-year-go span { transform: translateX(3px); }

.db-year-figs {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, auto));
  gap: 0;
  margin: 0;
  padding: 0;
}

.db-year-figs > div {
  padding: 0 18px;
  border-left: 1px solid var(--line-faint);
  text-align: right;
}
.db-year-figs > div:first-child { border-left: 0; padding-left: 0; }
.db-year-figs > div:last-child { padding-right: 0; }

.db-year-figs dt {
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--faint);
}

.db-year-figs dd {
  margin: 4px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  font-size: 22px;
  line-height: 1.1;
  color: var(--text);
}
.db-year-figs dd b {
  font-family: var(--brand);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.db-year-figs dd span {
  font-size: 10px;
  color: var(--faint);
}

/* ---- 展示馆两块 ---- */
.db-show {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 14px;
  align-items: start;
}

.db-show-main, .db-hall { padding: 16px 18px; }

.db-show-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.db-show-k {
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--faint);
}

.db-show-note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-faint);
  font-size: 11px;
  color: var(--faint);
  line-height: 1.7;
}

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

.db-slot-i {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-faint);
}
.db-slot-i:last-child { border-bottom: 0; padding-bottom: 0; }

.db-slot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cell-off-text);
}
.db-slot-dot.is-live { background: var(--mint); }
.db-slot-dot.is-ready { background: var(--accent); }
.db-slot-dot.is-off { background: var(--cell-off-text); }

.db-slot-body { min-width: 0; }

.db-slot-t {
  display: block;
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.db-slot-d {
  display: block;
  font-size: 10.5px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db-slot-st {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.db-slot-n { white-space: nowrap; }

.db-slot-a {
  font-size: 11px;
  color: var(--accent-2);
  white-space: nowrap;
  text-decoration: none;
}
.db-slot-a:hover { text-decoration: underline; }

/* ---- 馆里现在 ---- */
.db-hall-figs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 6px 0 0;
  padding: 0;
  border-bottom: 1px solid var(--line-faint);
  padding-bottom: 12px;
}
.db-hall-figs > div { min-width: 0; }
.db-hall-figs dt {
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: .06em;
}
.db-hall-figs dd {
  margin: 4px 0 0;
  font-size: 19px;
  line-height: 1.1;
  color: var(--text);
}

.db-hall-picks { margin-top: 12px; }

.db-pick {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-faint);
  text-decoration: none;
  color: inherit;
}
.db-pick:last-child { border-bottom: 0; padding-bottom: 0; }
.db-pick-t {
  font-size: 12.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.db-pick-d { font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.db-pick:hover .db-pick-t { color: var(--accent-2); }

@media (max-width: 960px) {
  .db-show { grid-template-columns: minmax(0, 1fr); }
  .db-year { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .db-year-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 14px; border-top: 1px solid var(--line-faint); }
  .db-year-figs > div { padding: 0 12px; text-align: left; }
  .db-year-figs > div:first-child { padding-left: 0; }
}

@media (max-width: 560px) {
  .db-slot-i {
    grid-template-columns: 6px minmax(0, 1fr) auto;
    grid-template-areas:
      "d b s"
      ". n a";
    row-gap: 4px;
  }
  .db-slot-dot { grid-area: d; }
  .db-slot-body { grid-area: b; }
  .db-slot-st { grid-area: s; }
  .db-slot-n { grid-area: n; text-align: left; }
  .db-slot-a { grid-area: a; }
  .db-year-figs > div { padding: 0 8px; }
  .db-year-figs dd { font-size: 18px; }
}
/* ---- 动效偏好：全部关掉 ---- */
@media (prefers-reduced-motion: reduce) {
  body.is-live-busy::after { animation: none; }
  .cmd-card { animation: none; }
  .nnbw-toast, #nnbw-live-toast, .read-progress { transition: none; }
}

/* ---------- 这一枚的来历（档案页三句话） ----------
   左边一道细线，像引用；字号比正文略大一点，
   因为它讲的是「故事」，不是「数据」。 */
.bio {
  position: relative;
  margin: 0 0 18px;
  padding: 2px 0 2px 14px;
  border-left: 2px solid var(--accent-line);
}
.bio-t {
  margin: 0;
  font-size: 14px;
  line-height: 2;
  color: var(--text-2);
  font-family: var(--brand-cn);
  letter-spacing: .01em;
}
.bio-copy {
  margin-top: 10px;
  height: 28px;
  font-size: 11.5px;
  padding: 0 10px;
}

/* ---------- 徽章在不在（站点页那一行） ----------
   「在线」用一点点绿，「没找到」不用红——大多数时候只是改了模板，
   不是出了故障。灰底 + 一条虚线更准确。 */
.badge-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  font-size: 11px;
  white-space: nowrap;
  border: 1px solid var(--line);
  color: var(--faint);
  background: var(--panel-2);
}
.badge-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge-state.is-on { color: var(--mint); border-color: var(--mint-line, var(--line)); }
.badge-state.is-off { color: var(--muted); border-style: dashed; }

/* 降级页的线稿：跟空状态同一支笔，只是大一点 */
.down-art { width: 96px; height: 96px; margin-bottom: 22px; color: var(--line-2); }
.down-art svg { width: 100%; height: 100%; }

/* ==================================================================
   第 20 批 · 新增组件
   这一整段都是「一页里几个数字 + 一条时间线 / 一张表」的量级，
   统一走同一套节奏：标签 11px 大写间距、值用 --brand、说明用 --faint。
   ================================================================== */

/* ---------- 编号总表 /dashboard/numbers ---------- */

.led-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 44px 28px 22px;
}
.led-h1 { font-size: 30px; letter-spacing: .01em; }
.led-lead { max-width: 560px; margin-top: 12px; }

.led-figs {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 18px;
  margin: 0;
  min-width: 360px;
}
.led-fig dt {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--faint);
}
.led-fig dd {
  margin: 6px 0 2px;
  font-family: var(--brand);
  font-size: 26px;
  line-height: 1.1;
  color: var(--text);
}
.led-fig-s { font-size: 11.5px; color: var(--faint); }

.led-body { padding-bottom: 70px; }

.led-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.led-bar-t { font-size: 12.5px; color: var(--muted); }

.led-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.led {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}
.led th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--faint);
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.led td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line-faint);
  vertical-align: middle;
}
.led tr:hover td { background: var(--row-hover); }
.led tr.is-off td { opacity: .62; }
.led-th-r, .led-acts { text-align: right; }
.led-acts { white-space: nowrap; }
.led-acts a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 12px;
  border-bottom: 1px solid var(--line-2);
  margin-left: 10px;
}
.led-acts a:hover { color: var(--accent-2); border-color: var(--accent-line); }
.led-code { white-space: nowrap; }
.led-site {
  display: block;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.led-sub { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.led-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  background: var(--line-2);
}
.led-state {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11.5px;
  border: 1px solid var(--line);
  color: var(--text-2);
  background: var(--panel-2);
}
.led-state.is-off { color: var(--faint); border-style: dashed; }
.led-state.is-closed { color: var(--amber); border-color: var(--amber-bg); background: var(--amber-bg); }
.led-tip { margin: 12px 2px 0; line-height: 1.9; }

.led-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.led-remark {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-left: 2px solid var(--line-2);
  border-radius: 6px;
}

/* ---------- 年度报告 /dashboard/report ---------- */

.rep-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding: 48px 28px 24px;
}
.rep-h1 { font-size: 30px; }
.rep-lead { max-width: 620px; margin-top: 12px; line-height: 1.95; }
.rep-years { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.rep-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* 存图结果那一行要独占一行：挤在按钮右边会把「存好了：nnbw-year-2026.png」
   压成两行，按钮跟着上下跳。 */
.rep-saved { flex: 0 0 100%; margin: 6px 0 0; font-size: 12px; }
.rep-body { padding-bottom: 70px; }

.rep-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.rep-card {
  position: relative;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.rep-k {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--faint);
}
.rep-v {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 8px 0 4px;
  font-family: var(--brand);
}
.rep-v b { font-size: 30px; line-height: 1; color: var(--text); }
.rep-v i { font-style: normal; font-size: 12px; color: var(--muted); }
.rep-n { font-size: 11.5px; color: var(--faint); line-height: 1.6; }

.rep-chart { margin-top: 18px; }
.rep-chart-t { font-size: 16px; margin: 0; }
.rep-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  align-items: end;
  height: 168px;
  margin-top: 16px;
}
.rep-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}
.rep-bar-i {
  width: 100%;
  max-width: 34px;
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: .82;
  min-height: 2px;
}
.rep-bar.is-zero .rep-bar-i { background: var(--line); opacity: .6; }
.rep-bar-m { margin-top: 6px; font-size: 10.5px; color: var(--faint); }
.rep-bar-v { font-size: 10.5px; color: var(--muted); height: 14px; }
.rep-foot { margin-top: 22px; display: grid; gap: 14px; }

/* ---------- 编号病历 /n/{code}/record ---------- */

.rec-hero { padding: 46px 28px 70px; }
.rec-h1 { font-size: 27px; margin-top: 10px; }
.rec-lead { margin-top: 12px; max-width: 620px; line-height: 1.95; }

.rec-figs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 20px;
}
.rec-fig {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
}
.rec-k { display: block; font-size: 11px; letter-spacing: .06em; color: var(--faint); }
.rec-v { display: block; margin-top: 6px; font-size: 13px; color: var(--text-2); }
.rec-none { margin-top: 6px; }

.rec-line { list-style: none; margin: 8px 0 0; padding: 0; }
.rec-item {
  display: grid;
  grid-template-columns: 14px 88px 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line-faint);
}
.rec-dot {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--line-2);
}
.rec-item.is-ok .rec-dot { background: var(--mint); }
.rec-item.is-warn .rec-dot { background: var(--amber); }
.rec-item.is-bad .rec-dot { background: var(--accent); }
.rec-at { font-size: 12px; color: var(--muted); }
.rec-body b { display: block; font-weight: 500; font-size: 13px; color: var(--text); }
.rec-detail { display: block; margin-top: 3px; font-size: 12px; color: var(--faint); line-height: 1.7; }
.rec-tip { margin-top: 14px; line-height: 1.9; }
.rec-kinds { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- 周年卡 /n/{code}/anniversary ---------- */

.ann-page { padding: 44px 28px 80px; }
.ann-back { display: inline-block; margin-bottom: 18px; }
.ann-none { max-width: 620px; }
.ann-h1 { font-size: 26px; margin-top: 10px; }

.ann-stage { display: flex; justify-content: center; }
.ann-card {
  position: relative;
  width: min(100%, 520px);
  padding: 38px 36px 30px;
  background: var(--paper-face);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--paper-edge), var(--shadow-2);
}
.ann-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--paper-grain);
  opacity: 1;
  pointer-events: none;
  border-radius: 3px;
}
.ann-tape {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 92px;
  height: 22px;
  transform: translateX(-50%) rotate(-1.6deg);
  background: rgba(226, 205, 160, .5);
  border-left: 1px solid rgba(150, 120, 70, .14);
  border-right: 1px solid rgba(150, 120, 70, .14);
}
.ann-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ann-eyebrow { font-size: 10.5px; letter-spacing: .22em; color: var(--faint); }
.ann-year {
  font-family: var(--brand);
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
}
.ann-year i { font-style: normal; font-size: 13px; margin-left: 3px; color: var(--muted); }
.ann-big {
  font-family: var(--brand-cn);
  font-size: 34px;
  line-height: 1.2;
  margin: 20px 0 6px;
  color: var(--text);
}
.ann-site { font-size: 17px; color: var(--text-2); margin: 0; }
.ann-domain { font-size: 12px; color: var(--faint); margin: 4px 0 0; }
.ann-rule { height: 1px; background: var(--line); margin: 22px 0 16px; }
.ann-line { font-size: 13px; color: var(--text-2); line-height: 1.9; margin: 0; }
.ann-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.ann-brand { font-size: 11px; color: var(--faint); letter-spacing: .06em; }
.ann-acts { margin-top: 22px; justify-content: center; }
.ann-tip { margin-top: 14px; text-align: center; line-height: 1.9; }

@media print {
  .site-header, .site-footer, .ann-back, .ann-acts, .ann-tip { display: none !important; }
  .ann-card { box-shadow: none; border-color: #ccc; }
}

/* ---------- 门牌便条 ---------- */

.note-sec { margin-top: 6px; }
.note-h { font-size: 16px; margin: 0; }
.note-none { margin: 10px 0 0; }
.note-list { list-style: none; margin: 12px 0 0; padding: 0; }
.note-i {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-line);
  border-radius: 4px;
  background: var(--panel-2);
  margin-bottom: 8px;
}
.note-body { display: block; font-size: 13.5px; line-height: 1.8; color: var(--text); }
.note-meta { display: block; margin-top: 6px; }
.note-form { margin-top: 14px; }
.note-in {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.8;
  resize: vertical;
  font-family: inherit;
}
.note-in:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--ring); }
.note-form-f { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- 最后一次被看见 ---------- */

.lastline {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-faint);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.lastline-i { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lastline-k { font-size: 11px; letter-spacing: .06em; color: var(--faint); }
.lastline-v { font-size: 13px; color: var(--text-2); }
.lastline-v.is-stale { color: var(--amber); }
.lastline-s { font-size: 11.5px; color: var(--faint); }

/* ---------- 打烊 ---------- */

.closed-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 12px;
  border: 1px dashed var(--amber);
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 12px;
}
.closed-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.closed-tag--wide { margin: 14px auto 0; text-align: center; }

.closed-box {
  position: relative;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-2), background var(--dur-2);
}
/* 打烊中：描边变琥珀 + 顶上挂一道门帘的褶。
   起初铺的是整块斜纹，实测像贴了一张警戒带：这块面板右边大半是空的，
   斜纹一路铺过去，看着就脏。褶子只留顶上一窄条，含义还在，纸还白。 */
.closed-box.is-on {
  border-style: solid;
  border-color: var(--amber);
  background: var(--amber-bg);
}
.closed-box.is-on::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background-image: repeating-linear-gradient(90deg,
    var(--amber) 0 2px, transparent 2px 7px);
  /* 深色主题下琥珀本来就亮，同一档透明度会比浅色主题扎眼一截，
     所以取两边都能接受的低值。 */
  opacity: .3;
  pointer-events: none;
}
/* 挂在右上角的小木牌：「打烊中」。原文案在盒子里已经说过一遍，
   这块牌子只是把状态提前一眼看见，不再解释。 */
.closed-box.is-on::after {
  content: "打烊中";
  position: absolute;
  top: -9px;
  right: 14px;
  padding: 1px 8px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 10.5px;
  letter-spacing: .06em;
  line-height: 16px;
}

/* summary：一行灰字没人知道能点开。左边挂一块门牌，右边一个箭头，
   点开时箭头翻上去、门牌亮起来 —— 不加图标字体，全用 CSS 画。 */
.closed-box summary {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--muted);
  list-style: none;
  user-select: none;
}
.closed-box summary::-webkit-details-marker { display: none; }
.closed-box summary:hover { color: var(--text); }
/* 收起时整块也是可点的：描边跟着亮一点，别让人以为只有那行字能点 */
.closed-box:not([open]):hover { border-color: var(--faint); }
.closed-box summary:hover::before { transform: translateX(1px); }
/* 门牌：拱顶小门 + 门把手；把手那一点用 currentColor，跟着文字变色。
   16px 是硬下限——再小拱顶就糊成一个方角，读不出「门」。 */
.closed-box summary::before {
  content: "";
  flex: none;
  width: 16px;
  height: 19px;
  border: 1px solid var(--faint);
  border-radius: 8px 8px 1.5px 1.5px;
  background-image: radial-gradient(circle at 73% 58%, currentColor 1.2px, transparent 1.5px);
  background-repeat: no-repeat;
  opacity: .8;
  transition: border-color var(--dur-2), background-color var(--dur-2),
              opacity var(--dur-2), transform var(--dur-2) var(--spring);
}
.closed-box summary:hover::before { opacity: 1; }
/* 箭头：一个转 45° 的方角，收起时朝下、展开时朝上 */
.closed-box summary::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-left: auto;
  margin-right: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform var(--dur-2) var(--spring);
  opacity: .7;
}
.closed-box[open] summary::after { transform: rotate(-135deg) translate(-1px, -1px); }
.closed-box[open] summary::before { border-color: var(--amber); }
.closed-box[open] summary:hover::before { background-color: var(--amber-bg); }
/* 展开后，标题和表单之间拉一条虚线：不收着的时候还挤在一起，
   会让人以为「留一句话」也是标题的一部分。 */
.closed-box[open] summary {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 12px;
  color: var(--text);
}
.closed-box-t { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }

/* 打烊表单：留一句话 + 验证码 + 按钮挤在一行。
   align-items: flex-end 是「下缘对齐」，所以 .field 的 margin-bottom
   必须归零——它自带的 16px 会把输入框整体顶高，跟验证码错开一大截。 */
.closed-box-f {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.closed-box-f > .field { margin-bottom: 0; flex: 1 1 220px; }
.closed-box[open] .closed-box-f,
.closed-box[open] .closed-box-f ~ .tiny { animation: door-open .26s ease-out both; }
@keyframes door-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .closed-box[open] .closed-box-f,
  .closed-box[open] .closed-box-f ~ .tiny { animation: none; }
  .closed-box summary::after { transition: none; }
}

/* ---------- 选号大厅：年份栏 + 往年指定签发 ---------- */

.pool-years {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
}
.pool-years-k { font-size: 11px; letter-spacing: .08em; color: var(--faint); }
.pool-years-list { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* 年份胶囊比普通 .tag 高一档：普通 .tag 是 22px，塞两个词（年份 + 说明）
   就挤成一条缝。这里单独放宽，别去改 .tag 本身——全站都在用它。 */
.pool-years-list .tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 7px 0 12px;
  border-radius: 14px;
  font-size: 12px;
  letter-spacing: .01em;
}
.pool-years-tip {
  font-style: normal;
  font-size: 10px;
  color: var(--faint);
  border-left: 1px solid var(--line-2);
  padding-left: 7px;
}
/* 选中态是「淡主色底 + 主色字」，不是「实心主色 + 白字」。
   这里原来写的是 --on-accent（实心底上才用的白字），
   于是选中那一枚的说明文字是白字压淡红底——几乎看不见。 */
.pool-years-list .tag.is-on .pool-years-tip {
  color: var(--accent-2);
  border-color: var(--accent-line);
  opacity: .8;
}
/* 「更早的年份」手填入口：和年份胶囊同一行、同高，看起来是这一排的一部分，
   而不是又开了一块表单。输入框只收四位，所以窄。 */
.pool-year-jump { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.pool-year-jump .input {
  width: 76px;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
  letter-spacing: .1em;
  text-align: center;
}



/* ---------- 展示馆「墙面」（美化 25） ----------
   网格是「整齐一列一列」；墙面是「挂在墙上、有点歪」。
   两者共用同一份 DOM，只换 CSS —— 切换不重新请求、也不掉滚动位置。 */
.grid-3.gal-wall { gap: 22px 20px; align-items: start; }
.gal-wall .gcard-wrap { transform: rotate(var(--tilt, 0deg)); }
.gal-wall .gcard-wrap:nth-child(3n+1) { --tilt: -.45deg; }
.gal-wall .gcard-wrap:nth-child(3n+2) { --tilt: .5deg; margin-top: 14px; }
.gal-wall .gcard-wrap:nth-child(3n+3) { --tilt: -.28deg; margin-top: 5px; }
.gal-wall .gcard {
  border-radius: 2px;
  box-shadow: 0 2px 3px rgba(60, 45, 25, .10), 0 18px 30px -20px rgba(60, 45, 25, .38);
}
html[data-theme="dark"] .gal-wall .gcard {
  box-shadow: 0 2px 3px rgba(0, 0, 0, .4), 0 18px 30px -20px rgba(0, 0, 0, .7);
}
.gal-wall .gthumb { border-radius: 0; }
.gal-wall .gcard-wrap:hover { transform: rotate(0deg) translateY(-3px); transition: transform var(--dur-2) var(--ease); }

.gal-viewrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 16px;
}
.gal-view-k { font-size: 11.5px; color: var(--faint); }

/* 视图切换：两枚小按钮，状态存本地 */
.gal-view {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}
.gal-view button {
  border: 0;
  background: none;
  padding: 5px 11px;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}
.gal-view button.is-on { background: var(--accent-bg); color: var(--accent-2); }

/* ---------- 卡片折角（美化 27） ---------- */
.gcard-wrap { position: relative; }
.gcard::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 0 0;
  border-color: transparent var(--panel-2) transparent transparent;
  transition: border-width var(--dur-2) var(--ease);
  pointer-events: none;
}
.gcard-wrap:hover .gcard::after {
  border-width: 0 26px 26px 0;
  border-color: transparent var(--panel-2) transparent transparent;
  filter: drop-shadow(-1px 1px 1px rgba(0, 0, 0, .12));
}

/* ---------- 编号字体四选（美化 23） ----------
   作用于「数字」这一层（.num —— 编号、日期、计数），站名与正文一个字都不动。
   编号本身仍然整串一行，这里只换字面，不参与任何拆分。
   选择存在本地（boot.js 在首帧之前写 html[data-numfont]），所以不会闪。 */
html[data-numfont="ticket"] .num,
html[data-numfont="ticket"] .cert-digits,
html[data-numfont="ticket"] .signature .no,
html[data-numfont="ticket"] .rcpt-code {
  font-family: "Niannian Archivo", "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "tnum" 1;
  letter-spacing: .04em;
}
html[data-numfont="dot"] .num,
html[data-numfont="dot"] .cert-digits,
html[data-numfont="dot"] .signature .no,
html[data-numfont="dot"] .rcpt-code {
  font-family: "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  letter-spacing: .16em;
  -webkit-text-stroke: .3px currentColor;
  font-weight: 500;
}
html[data-numfont="type"] .num,
html[data-numfont="type"] .cert-digits,
html[data-numfont="type"] .signature .no,
html[data-numfont="type"] .rcpt-code {
  font-family: "Courier New", "Nimbus Mono PS", Courier, monospace;
  letter-spacing: .02em;
  font-weight: 700;
}
html[data-numfont="thin"] .num,
html[data-numfont="thin"] .cert-digits,
html[data-numfont="thin"] .signature .no,
html[data-numfont="thin"] .rcpt-code {
  font-family: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
  font-weight: 400;
  letter-spacing: .10em;
}

/* ---------- 编号字形选择（美化 23 的入口） ----------
   收在 <details> 里：字形是个「调一次就不再动」的东西，
   摊在总表顶上会抢走「这一页是核对编号的」这个焦点。 */
.led-font {
  margin: 0 0 14px;
  border: 1px solid var(--line-faint);
  border-radius: 12px;
  background: var(--panel);
  padding: 0 14px;
}
.led-font[open] { padding-bottom: 12px; }
.led-font-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  list-style: none;
}
.led-font-sum::-webkit-details-marker { display: none; }
.led-font-sum::before {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--text-3);
  border-bottom: 1px solid var(--text-3);
  transform: rotate(-45deg);
  transition: transform var(--dur-1) var(--ease);
  flex: none;
}
.led-font[open] .led-font-sum::before { transform: rotate(45deg); }
.led-font-sum > span:first-of-type { flex: 1; }
.led-font-now {
  color: var(--text);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--panel-2);
}
.led-font-bs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0 10px;
}
.led-font-b {
  appearance: none;
  border: 1px solid var(--line-1);
  background: transparent;
  color: var(--text-2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.led-font-b:hover { border-color: var(--line-2); color: var(--text); }
.led-font-b.on {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.led-font-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-3);
}

/* ---------- 证书纸纹（美化 24） ----------
   纤维 + 折痕 + 边角压痕。用伪元素叠，不动布局：
   证书本身的 ::before 已经在画边框晕影，这里只在右下角补一道极淡折痕。 */
.cert::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    linear-gradient(102deg, transparent 46.6%, rgba(120, 100, 70, .055) 48.2%, rgba(255, 255, 255, .30) 49.1%, transparent 51.2%),
    linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 22%);
  mix-blend-mode: multiply;
}
html[data-theme="dark"] .cert::after {
  background-image:
    linear-gradient(102deg, transparent 46.6%, rgba(255, 255, 255, .045) 48.2%, rgba(255, 255, 255, .10) 49.1%, transparent 51.2%);
  mix-blend-mode: screen;
}

/* ---------- 夜色纸纹（美化 29） ----------
   深色主题原来只有纯色底 + 一层极淡光，看着像「换了张 CSS」。
   这里给 body 铺一层几乎看不出来的纸纤维：不改底色，只加质感。 */
html[data-theme="dark"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image:
    repeating-linear-gradient(96deg, rgba(255, 255, 255, .016) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(3deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 4px);
}
html[data-theme="contrast"] body::before { display: none; }

/* ---------- 盖章加载（美化 32） ----------
   骨架屏收尾时盖一枚小印：比「灰块淡出」多一个「这件事办完了」的收束。
   只看得到一次——每次加载都盖一遍会变成噪音。 */
.sk-stamp {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.4px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 9px;
  letter-spacing: .02em;
  transform: scale(1.9) rotate(-14deg);
  opacity: 0;
  pointer-events: none;
}
.sk-stamp.is-on {
  animation: sk-stamp-in .52s var(--ease-stamp) forwards;
}
/* 盖完自己退场：它是收尾，不是水印。停在 0.72 一直留着，
   徽章图右下角就会永远挂一个小圆圈。 */
.sk-stamp.is-off {
  animation: stamp-out .42s var(--ease) forwards;
}
@keyframes stamp-out {
  0%   { opacity: .72; transform: scale(1) rotate(-14deg); }
  100% { opacity: 0; transform: scale(1.06) rotate(-14deg); }
}
/* 名字必须带 sk- 前缀：全局已经有一支 stamp-in（回执页的章，0.42s、
   从 -24deg 落到 -9deg）。重名会把那枚章一起改掉，而且改坏了看不出来—— */
@keyframes sk-stamp-in {
  0%   { transform: scale(1.9) rotate(-14deg); opacity: 0; }
  62%  { transform: scale(.94) rotate(-14deg); opacity: .92; }
  80%  { transform: scale(1.03) rotate(-14deg); opacity: .8; }
  100% { transform: scale(1) rotate(-14deg); opacity: .72; }
}

/* ---------- 数字进位（美化 33） ----------
   逐位滚动。回执页那套是给八位编号写的（每位都转），
   这里给统计数字用：只滚「有变化的那几位」，最高位先停。 */
.odo { display: inline-flex; align-items: baseline; }
/* 千分位不参与滚动：它不「进位」，跟着一起转反而像数字在抖 */
.odo-s { display: inline-block; height: 1em; line-height: 1; }
.odo-c {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  line-height: 1;
  vertical-align: baseline;
}
.odo-t {
  display: block;
  transition: transform .9s var(--ease);
}
.odo-t b {
  display: block;
  height: 1em;
  line-height: 1;
  font-weight: inherit;
  font-variant-numeric: tabular-nums;
}

/* ---------- 降级页清单（美化 38） ---------- */
.down-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  max-width: 560px;
}
.down-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--line-faint);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.8;
}
.down-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 19px;
  width: 7px;
  height: 1px;
  background: var(--line-2);
}
.down-list b { font-weight: 500; color: var(--text); }

/* ---------- 错误页分级（美化 37） ----------
   404 / 500 / 降级三种情绪：撕掉、裂开、雾住。线稿在 _empty_art 里，
   这里只管它们的尺寸与色调差异——同一支笔，不同的重量。 */
.err-page[data-tier="404"] .empty-art { color: var(--line-2); }
.err-page[data-tier="500"] .empty-art { color: var(--accent); opacity: .55; }
.err-page[data-tier="degrade"] .empty-art { color: var(--amber); opacity: .6; }
.err-checklist { text-align: left; margin: 22px auto 0; max-width: 520px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 720px) {
  .led-hero { padding-top: 34px; }
  .led-figs { grid-template-columns: repeat(2, 1fr); min-width: 0; width: 100%; }
  .rep-cards { grid-template-columns: repeat(2, 1fr); }
  .rec-figs { grid-template-columns: 1fr; }
  .rec-item { grid-template-columns: 14px 74px 1fr; }
  .rec-t { display: none; }
  .ann-card { padding: 30px 24px 24px; }
  .ann-big { font-size: 28px; }
  .rep-bars { gap: 3px; }
  .rep-bar-v { display: none; }
  .lastline { gap: 14px; }
}

/* ---------- 投稿表单：分组标签选择 ----------
   词表五十多个，平铺一排会糊成一片。按组分行，组名做小标题；
   chip 自带一个方块，选中时变成对勾（原生 checkbox 藏起来但仍在表单里）。 */
.tag-pick { display: flex; flex-direction: column; gap: 15px; margin-top: 6px; }
/* 上限那句放在标签上方：五十多个 chip 一直排到卡片底部，
   提示留在最后面等于没有。 */
.tag-pick-hint { margin: 2px 0 12px; }
.tag-pick-group { display: flex; flex-direction: column; gap: 8px; }
.tag-pick-k {
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--faint);
}
.tag-pick-row { display: flex; flex-wrap: wrap; gap: 8px; }

.tag-pick-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: border-color .18s, color .18s, background .18s, opacity .18s;
}
.tag-pick-item:hover { border-color: var(--faint); color: var(--text-2); }

/* 原生框留着（表单要靠它提交），只是不画 */
.tag-pick-item input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

/* 方块 */
.tag-pick-item::before {
  content: "";
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 1px solid var(--faint);
  border-radius: 3px;
  transition: border-color .18s, background .18s;
}

/* 对勾：只留左下两边的描边，转 -45° */
.tag-pick-item::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 6px;
  height: 3px;
  border-left: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  transform: translateY(-65%) rotate(-45deg) scale(.5);
  opacity: 0;
  transition: opacity .15s, transform .15s;
}

.tag-pick-item.is-on {
  border-color: var(--accent-line);
  color: var(--accent-2);
  background: var(--accent-bg);
}
.tag-pick-item.is-on::before { border-color: var(--accent); background: var(--accent); }
.tag-pick-item.is-on::after { opacity: 1; transform: translateY(-65%) rotate(-45deg) scale(1); }

/* 选满了：其余的压暗且不再接受点击 */
.tag-pick-item.is-off { opacity: .42; cursor: not-allowed; }
.tag-pick-item.is-off:hover { border-color: var(--line-2); color: var(--muted); }

@media (max-width: 560px) {
  .tag-pick { gap: 13px; }
  .tag-pick-row { gap: 7px; }
  .tag-pick-item { height: 27px; padding: 0 10px; font-size: 11.5px; }
}

/* ============================================================
   1.22.6 · 站点详情重排：先看站，再看凭证
   ------------------------------------------------------------
   旧版一进来先撞见一张大编号卡，简介却缩成 12px 灰字，右栏八行
   同样大小的档案、两组邻居跟时间线一起抢视线 —— 信息都还在，
   但没有主次。现在把顺序改成「这是谁的站 → 他说了什么 →
   这枚编号和现在的状态」，编号只出现一次，操作只留一个主按钮。
   测试钩子（show-head / gs-dl / gshow-main / gshow-side / gs-2col）
   一个没动，只是换了位置和分量。
   ============================================================ */

/* ---------- 头图 ---------- */
.gshow .gshow-hero {
  position: relative;
  margin: 24px 0 26px;
  padding: 30px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(120deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.gshow .gshow-hero::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.gshow-hero-copy {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}
.gshow-hero .show-glyph {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  font-size: 38px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.gshow-hero-text { min-width: 0; }
.gshow-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.gshow-domain {
  font-family: var(--font-mono, var(--mono, monospace));
  font-size: 12px;
  letter-spacing: .01em;
  color: var(--muted);
}
.gshow-hero h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.22;
  letter-spacing: -.015em;
  color: var(--text);
}
.gshow-lead {
  margin: 10px 0 0;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}
.gshow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.gshow-actions {
  flex: none;
  width: 176px;
  display: grid;
  gap: 12px;
  justify-items: stretch;
}
.gshow-go {
  height: 44px;
  justify-content: center;
  font-size: 14px;
}
.gshow-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gshow-mini .btn-wormhole svg { width: 15px; height: 15px; }

/* ---------- 主栏：简介是正文，不再是附注 ---------- */
.gshow .gshow-card { padding: 22px 24px; }
.gshow .gs-about > .gs-h { margin-bottom: 14px; }
.gs-about-text {
  margin: 0;
  max-width: 68ch;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--text);
}
.gs-about-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-faint);
}

/* ---------- 侧栏：凭证是一张小纸，不再占整张卡 ---------- */
.gs-seal {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}
.gs-seal::before {
  content: "";
  position: absolute;
  right: -34px; top: -34px;
  width: 108px; height: 108px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  opacity: .55;
}
.gs-seal-k {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--faint);
}
.gs-seal-code {
  position: relative;
  margin-top: 9px;
  font-size: 24px;
  letter-spacing: .01em;
}
.gs-seal-code .no { color: var(--text); }
.gs-seal-note {
  position: relative;
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.75;
  color: var(--muted);
}

.gshow .gs-card { padding: 16px 18px 14px; }
.gshow .gs-h { margin-bottom: 8px; }
.gshow .gs-dl-r { padding: 8px 0; }
.gshow .gs-note { margin-top: 10px; padding-top: 9px; }

/* ---------- 时间线：日期是主角，标签只是说明 ---------- */
.gshow .gs-tlh { margin-top: 12px; }
.gshow .gs-tlh-i { padding: 16px 12px 0 0; }
.gshow .gs-tlh-k { font-size: 11px; }
.gshow .gs-tlh-v {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
}
.gshow .gs-tlh-s { margin-top: 3px; font-size: 10.5px; }

@media (max-width: 960px) {
  .gshow .gshow-hero { padding: 24px; gap: 20px; }
  .gshow-actions { width: 156px; }
}
@media (max-width: 720px) {
  .gshow .gshow-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 20px 20px;
  }
  .gshow-hero-copy { gap: 14px; }
  .gshow-hero .show-glyph { width: 72px; height: 72px; font-size: 30px; border-radius: 16px; }
  .gshow-hero h1 { font-size: 28px; }
  .gshow-lead { font-size: 14px; }
  .gshow-tags { margin-top: 12px; }
  .gshow-actions {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .gshow-go { flex: 1; }
}
@media (max-width: 560px) {
  .gshow .gshow-hero { margin: 20px 0 22px; }
  .gshow .gs-tlh { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
}

/* 深色主题下纸槽要压一点亮，免得凭证卡比正文还抢眼 */
html[data-theme="dark"] .gs-seal { background: var(--panel); }

/* ============================================================
   1.22.7 · 站点详情：做成一份「有封面的档案」
   ------------------------------------------------------------
   1.22.6 只把东西排齐了，仍然像后台资料页。这一版给它一个明确的
   气质：头图拿站点自己的色相当封面，首字压成水印；站长写的话
   用引号和衬线体排成正文；编号做成一张票根；状态做成三格档案。
   所有测试钩子（show-head / gs-dl / gshow-main / gshow-side /
   gs-2col / 它经历过什么）保持原样。
   ============================================================ */

.gshow .gshow-hero {
  padding: 38px 40px 36px;
  background:
    var(--paper-grain),
    linear-gradient(120deg, hsl(var(--h, 24) 34% 95%), var(--panel) 62%);
  border-color: hsl(var(--h, 24) 24% 82%);
  box-shadow: var(--shadow-1);
}
.gshow .gshow-hero::before { width: 4px; background: hsl(var(--h, 24) 48% 46%); }
.gshow-watermark {
  position: absolute;
  right: 245px;
  top: 50%;
  transform: translateY(-52%);
  font-family: var(--serif);
  font-size: 152px;
  line-height: 1;
  font-weight: 700;
  color: hsl(var(--h, 24) 30% 40% / .07);
  pointer-events: none;
  user-select: none;
}
.gshow-hero-copy { gap: 26px; }
.gshow-hero .show-glyph {
  width: 104px;
  height: 104px;
  border-radius: 22px;
  font-size: 44px;
  background: linear-gradient(145deg, hsl(var(--h, 24) 42% 90%), hsl(var(--h, 24) 34% 80%));
  border-color: hsl(var(--h, 24) 28% 70%);
  color: hsl(var(--h, 24) 42% 28%);
}
.gs-filemark {
  padding: 2px 8px;
  border: 1px solid hsl(var(--h, 24) 34% 76%);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .14em;
  color: hsl(var(--h, 24) 40% 36%);
  background: hsl(var(--h, 24) 50% 50% / .06);
}
.gshow-hero h1 { font-size: 42px; letter-spacing: -.02em; }
.gshow-lead { font-size: 16.5px; max-width: 46ch; }
.gshow-tags { margin-top: 18px; }
.gshow-go { height: 46px; }

/* ---- 引文：站长自己说的话，用正文排，不用资料行 ---- */
.gshow .gs-quote-card {
  position: relative;
  padding: 26px 32px 22px;
  overflow: hidden;
  background: var(--paper-face);
  border-left: 3px solid hsl(var(--h, 24) 42% 48%);
}
.gshow .gs-quote-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper-grain);
  opacity: .6;
  pointer-events: none;
}
.gs-quote-card > * { position: relative; z-index: 1; }
.gs-quote-mark {
  position: absolute;
  right: 24px;
  top: -18px;
  font-family: var(--serif);
  font-size: 108px;
  line-height: 1;
  color: hsl(var(--h, 24) 42% 48% / .12);
  pointer-events: none;
}
.gshow .gs-quote {
  margin: 12px 0 0;
  max-width: 58ch;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.9;
  color: var(--text);
}
.gs-quote-card .gs-about-foot { position: relative; z-index: 1; }

/* ---- 票根：齿孔 + 圆印，都是 CSS 画的 ---- */
.gshow .gs-seal {
  padding: 20px 20px 18px 26px;
  border: 1px dashed hsl(var(--h, 24) 28% 74%);
  background: var(--paper-grain), var(--panel-2);
}
.gshow .gs-seal::before {
  content: "";
  position: absolute;
  left: 9px; top: 12px; bottom: 12px;
  border-left: 1px dashed var(--line-2);
}
.gs-seal-stamp {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid hsl(var(--h, 24) 42% 48% / .45);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px hsl(var(--h, 24) 42% 48% / .08);
  transform: rotate(-14deg);
}
.gs-seal-stamp::after {
  content: "念";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--brand-cn, var(--serif));
  font-size: 17px;
  color: hsl(var(--h, 24) 42% 42% / .55);
}
.gs-seal-k { position: relative; }
.gs-seal-code { position: relative; font-size: 25px; }
.gs-seal-note { position: relative; }

/* ---- 三格档案：状态用数字说，不再是一排灰字 ---- */
.gs-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0 14px;
}
.gs-stat {
  padding: 10px 4px 9px;
  border: 1px solid var(--line-faint);
  border-radius: 9px;
  background: var(--panel);
  text-align: center;
}
.gs-stat-v {
  display: block;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}
.gs-stat-k {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: var(--faint);
}
.gshow .gs-dl-r { padding: 7px 0; }
.gshow .gs-dl-r:first-child { padding-top: 0; }

/* ---- 时间线：日期再抬一档 ---- */
.gshow .gs-tlh-i { padding-top: 18px; }
.gshow .gs-tlh-v { font-size: 15px; }

/* ---- 邻居：一枚小圆章，让「另一个站」有脸 ---- */
.gshow .gs-li {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  grid-template-areas:
    "g t c"
    "g d c";
  column-gap: 9px;
  padding: 9px 0;
}
.gs-li-g {
  grid-area: g;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: hsl(var(--h, 24) 40% 92%);
  border: 1px solid hsl(var(--h, 24) 28% 80%);
  color: hsl(var(--h, 24) 40% 34%);
  font-family: var(--brand-cn, var(--serif));
  font-size: 11px;
}
.gs-li:hover .gs-li-g { border-color: hsl(var(--h, 24) 42% 56%); }

html[data-theme="dark"] .gshow .gshow-hero {
  background:
    var(--paper-grain),
    linear-gradient(120deg, hsl(var(--h, 24) 18% 18%), var(--panel) 62%);
  border-color: hsl(var(--h, 24) 16% 28%);
}
html[data-theme="dark"] .gshow-watermark { color: hsl(var(--h, 24) 34% 70% / .07); }
html[data-theme="dark"] .gshow-hero .show-glyph {
  background: linear-gradient(145deg, hsl(var(--h, 24) 20% 26%), hsl(var(--h, 24) 18% 20%));
  border-color: hsl(var(--h, 24) 18% 34%);
  color: hsl(var(--h, 24) 40% 78%);
}
html[data-theme="dark"] .gs-filemark {
  color: hsl(var(--h, 24) 46% 76%);
  border-color: hsl(var(--h, 24) 20% 38%);
  background: hsl(var(--h, 24) 40% 60% / .08);
}
html[data-theme="dark"] .gshow .gs-seal { background: var(--panel); }
html[data-theme="dark"] .gs-stat { background: var(--panel-2); }
html[data-theme="dark"] .gs-li-g {
  background: hsl(var(--h, 24) 18% 24%);
  border-color: hsl(var(--h, 24) 16% 34%);
  color: hsl(var(--h, 24) 40% 76%);
}

@media (max-width: 960px) {
  .gshow-watermark { right: 130px; font-size: 140px; }
  .gshow-hero h1 { font-size: 36px; }
}
@media (max-width: 720px) {
  .gshow .gshow-hero { padding: 26px 20px 22px; }
  .gshow-hero .show-glyph { width: 76px; height: 76px; font-size: 32px; }
  .gshow-hero h1 { font-size: 30px; }
  /* 窄屏上水印只会从标题边上露半截字，像没裁干净的图，干脆收掉 */
  .gshow-watermark { display: none; }
  .gshow .gs-quote-card { padding: 22px 20px 20px; }
  .gshow .gs-quote { font-size: 16px; }
  .gs-quote-mark { font-size: 78px; right: 12px; }
  .gs-stats { gap: 5px; }
  .gs-stat-v { font-size: 18px; }
}

/* ============================================================
   1.22.8 · 展示馆扉页：从「说明 + 表格」做成一本展览册
   ------------------------------------------------------------
   旧版头部是一段说明 + 四个数字 + 四条资料行，卡片再一张张铺下去，
   每一屏都像后台列表。这一版把头部做成左右两页：左边是刊头，右边
   把最新三个站摞成一叠卡；新进的四条改成四张票；筛选收进一张工具条；
   卡片加折角、阴影和 hover 抬起。测试钩子（gal-figs / gal-fresh /
   gcard-foot / tag-count / gcover-code）全部保留。
   ============================================================ */

.gal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 32px;
  padding-top: 56px;
}
.gal-hero-l { max-width: none; }
.gal-hero .eyebrow { letter-spacing: .2em; }
.gal-h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-top: 12px;
}
.gal-lead {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-2);
}
.gal-acts { margin-top: 24px; }

/* 一叠卡：三张，各自颜色，轻微错开。纯 CSS，不加载图片 */
.gal-cover-stack {
  position: relative;
  height: 300px;
  min-width: 0;
}
.gal-cover-card {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 206px;
  height: 264px;
  margin-left: -103px;
  border: 1px solid hsl(var(--h, 24) 26% 76%);
  border-radius: 12px;
  overflow: hidden;
  background:
    var(--paper-grain),
    linear-gradient(150deg, hsl(var(--h, 24) 42% 88%), hsl(var(--h, 24) 26% 68%));
  box-shadow: var(--shadow-2);
}
.gal-cover-card:nth-child(1) { transform: translateX(-62px) rotate(-10deg); z-index: 1; }
.gal-cover-card:nth-child(2) { transform: translateY(-10px) rotate(2deg); z-index: 3; }
.gal-cover-card:nth-child(3) { transform: translateX(62px) rotate(10deg); z-index: 2; }
.gal-cover-mark {
  position: absolute;
  right: 4%;
  bottom: -12%;
  font-family: var(--brand-cn, var(--serif));
  font-size: 128px;
  line-height: 1;
  font-weight: 700;
  color: hsl(var(--h, 24) 40% 100% / .26);
}
.gal-cover-t,
.gal-cover-d {
  position: absolute;
  left: 16px;
  right: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gal-cover-t { bottom: 46px; font-size: 16px; font-weight: 600; color: hsl(var(--h, 24) 36% 22%); }
.gal-cover-d { bottom: 26px; font-size: 11px; color: hsl(var(--h, 24) 28% 30% / .78); }
.gal-cover-card::after {
  content: "SITE";
  position: absolute;
  left: 16px;
  top: 15px;
  font-size: 9px;
  letter-spacing: .2em;
  color: hsl(var(--h, 24) 30% 30% / .6);
}

/* 四格数字：抬到刊头下面，字再大一点，像封底的馆藏戳 */
.gal-figs { margin-top: 46px; border-top-width: 2px; border-top-color: var(--text-2); }
.gal-fig { padding: 22px 22px 20px; }
.gal-fig dt { letter-spacing: .14em; }
.gal-fig dd { font-size: 36px; }

/* 刚刚进馆：四张小票 */
.gal-fresh { gap: 10px; border-top: 0; }
.gal-fresh-i {
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: transform var(--dur-2), border-color var(--dur-2), box-shadow var(--dur-2);
}
.gal-fresh-i:last-child { border-right: 1px solid var(--line); }
.gal-fresh-i:hover {
  padding-left: 14px;
  border-color: hsl(var(--h, 24) 42% 60%);
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
}
.gal-fresh-g {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: hsl(var(--h, 24) 42% 92%);
  border: 1px solid hsl(var(--h, 24) 28% 78%);
  color: hsl(var(--h, 24) 40% 32%);
  font-family: var(--brand-cn, var(--serif));
  font-size: 14px;
}
.gal-fresh-no { align-self: flex-start; opacity: .55; }
.gal-fresh-t { font-size: 14px; font-weight: 600; }

/* 筛选：一张工具条，不再贴着页边 */
.gal-filter-wrap { padding-top: 28px; }
.gal-filter {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.gal-filter-row { padding: 7px 0; }
.gal-filter-row--sub { margin-top: 4px; }

/* 卡片：折角 + 抬起 */
.gcard {
  transition: transform var(--dur-3), box-shadow var(--dur-3);
}
.gcard-wrap:hover .gcard {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.gcover::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  border-style: solid;
  border-width: 0 26px 26px 0;
  border-color: transparent rgba(255, 255, 255, .2) transparent transparent;
  pointer-events: none;
}
.gcover-mark { font-size: clamp(88px, 10vw, 128px); color: rgba(255, 255, 255, .2); }
.gcard:hover .gcover-mark { color: rgba(255, 255, 255, .3); }
.gcover-code { letter-spacing: .16em; }
.gcard-body { padding: 16px 16px 14px; }
.gcard-t { font-size: 17px; }
.gcard-p { font-size: 13px; line-height: 1.7; }
.gcard-foot { border-top-style: dashed; }
.gcard-foot .signature.sm { font-size: 13px; }

html[data-theme="dark"] .gal-cover-card {
  background:
    var(--paper-grain),
    linear-gradient(150deg, hsl(var(--h, 24) 20% 26%), hsl(var(--h, 24) 16% 16%));
  border-color: hsl(var(--h, 24) 16% 34%);
}
html[data-theme="dark"] .gal-cover-t { color: hsl(var(--h, 24) 40% 86%); }
html[data-theme="dark"] .gal-cover-d { color: hsl(var(--h, 24) 24% 70%); }
html[data-theme="dark"] .gal-fresh-g {
  background: hsl(var(--h, 24) 18% 24%);
  border-color: hsl(var(--h, 24) 16% 38%);
  color: hsl(var(--h, 24) 40% 78%);
}

@media (max-width: 1000px) {
  .gal-hero { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
  .gal-cover-stack { height: 250px; }
  .gal-cover-card { width: 170px; height: 222px; margin-left: -85px; }
  .gal-cover-card:nth-child(1) { transform: translateX(-46px) rotate(-9deg); }
  .gal-cover-card:nth-child(3) { transform: translateX(46px) rotate(9deg); }
  .gal-cover-mark { font-size: 104px; }
}
@media (max-width: 800px) {
  .gal-hero { grid-template-columns: minmax(0, 1fr); }
  .gal-cover-stack { display: none; }
  .gal-h1 { font-size: 46px; }
  .gal-figs { margin-top: 36px; }
}
@media (max-width: 560px) {
  .gal-hero { padding-top: 42px; }
  .gal-h1 { font-size: 40px; }
  .gal-lead { font-size: 15px; }
  .gal-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal-fig:nth-child(3) { border-left: 0; padding-left: 0; }
  .gal-fig:nth-child(n+3) { border-top: 1px solid var(--line-faint); }
  .gal-fresh { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal-fresh-i:nth-child(2) { border-right: 1px solid var(--line); }
  .gal-filter { padding: 12px; }
}

/* 手机两列小票：序号挤掉了时间的位置，「今天」会被拆成上下两字。
   收掉序号，并给时间一行独占，两张并排也读得顺。 */
@media (max-width: 560px) {
  .gal-fresh-i { gap: 8px; }
  .gal-fresh-no { display: none; }
  .gal-fresh-m { flex-wrap: wrap; gap: 6px; }
  .gal-fresh-m .tiny { white-space: nowrap; }
}
