/* ============================================================
   /assets/site.css — 信誉中心 共享外壳
   深墨蓝档案室 / 侧轨导航 / 零圆角 / 1px 精密线
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

table { border-collapse: collapse; border-spacing: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩体系 */
  --c-abyss:   #060A14;
  --c-navy:    #0D1728;
  --c-archive: #152740;
  --c-line:    #24405F;
  --c-cyan:    #00E6C3;
  --c-gold:    #E3A857;
  --c-stone:   #9AA7B2;
  --c-moss:    #6E8B72;
  --c-clay:    #A85C3E;
  --c-cream:   #EFE7DA;

  --c-cyan-soft: rgba(0, 230, 195, 0.10);
  --c-cyan-line: rgba(0, 230, 195, 0.34);
  --c-gold-soft: rgba(227, 168, 87, 0.10);
  --c-clay-soft: rgba(168, 92, 62, 0.14);

  /* 字体 */
  --font-title: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body:  "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono:  "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 字号跨度 */
  --fs-hero:  clamp(2.25rem, 5.4vw, 4.5rem);
  --fs-h2:    clamp(1.6rem, 2.7vw, 2.4rem);
  --fs-h3:    clamp(1.2rem, 1.7vw, 1.6rem);
  --fs-body:  17px;
  --fs-small: 15px;
  --fs-note:  13px;

  /* 空间 */
  --rail-w: 248px;
  --maxw: 1200px;
  --gap: 24px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--c-abyss);
  background-image:
    radial-gradient(1200px 680px at 10% -12%, rgba(0, 230, 195, 0.055), transparent 62%),
    radial-gradient(900px 560px at 102% -4%, rgba(227, 168, 87, 0.05), transparent 58%);
  background-repeat: no-repeat;
  color: var(--c-cream);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
}

/* 低对比扫描纹理，替代纯色平铺 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(36, 64, 95, 0.13) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--c-cream);
}

h1 { font-size: var(--fs-hero); font-weight: 900; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { max-width: 40em; }
p + p { margin-top: 0.9em; }

a { color: var(--c-cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-cream); }

strong, b { font-weight: 700; color: var(--c-cream); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

::selection { background: var(--c-cyan); color: #04140F; }

:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
}

#main-content { scroll-margin-top: 96px; }

/* ---------- 4. 布局容器 ---------- */
.wrap {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--c-line);
  margin: 0;
}

main { display: block; }

/* ---------- 5. 跳到主要内容 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 14px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--c-cyan);
  color: #04140F;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--c-cyan);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 14px; color: #04140F; }

/* ---------- 6. 头部外壳 ---------- */
.site-header {
  background-color: var(--c-navy);
  background-image: linear-gradient(180deg, rgba(21, 39, 64, 0.92), rgba(13, 23, 40, 0.98) 340px);
  border-right: 1px solid var(--c-line);
  z-index: 80;
}

/* 品牌 */
.brand-block { min-width: 0; }

.brand-mark {
  display: block;
  text-decoration: none;
  color: var(--c-cream);
}
.brand-mark:hover { color: var(--c-cyan); }

.brand-cn {
  display: block;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-en {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--c-stone);
}

.brand-line {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-stone);
  max-width: 15em;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--c-line);
  background: rgba(21, 39, 64, 0.72);
  color: var(--c-cream);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--c-cyan); color: var(--c-cyan); }
.nav-toggle[aria-expanded="true"] { border-color: var(--c-cyan); color: var(--c-cyan); background: var(--c-cyan-soft); }

.nav-toggle-bars { display: grid; gap: 3px; width: 15px; }
.nav-toggle-bars i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

.nav-toggle-text { font-size: 13px; }

/* 导航栏目标签 */
.nav-caption {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--c-stone);
  max-width: none;
}
.nav-caption .mono { color: var(--c-gold); }

/* 导航列表 */
.nav-list { display: block; }

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border-left: 1px solid var(--c-line);
  color: var(--c-stone);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.nav-idx {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-line);
  transition: color 0.18s ease;
}

.nav-text { font-weight: 500; }

.nav-link:hover {
  color: var(--c-cream);
  border-left-color: var(--c-cyan);
  background: var(--c-cyan-soft);
}
.nav-link:hover .nav-idx { color: var(--c-cyan); }

.nav-link[aria-current="page"] {
  color: var(--c-cyan);
  border-left-color: var(--c-cyan);
  background: linear-gradient(90deg, rgba(0, 230, 195, 0.13), rgba(0, 230, 195, 0));
  font-weight: 700;
}
.nav-link[aria-current="page"] .nav-idx { color: var(--c-cyan); }

/* 侧轨快捷键 */
.rail-shortcuts { display: grid; gap: 8px; }

.rail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--c-line);
  background: rgba(21, 39, 64, 0.6);
  color: var(--c-cream);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.rail-btn--cyan { border-left: 3px solid var(--c-cyan); }
.rail-btn--cyan:hover { background: var(--c-cyan-soft); border-color: var(--c-cyan-line); color: var(--c-cyan); }
.rail-btn--gold { border-left: 3px solid var(--c-gold); }
.rail-btn--gold:hover { background: var(--c-gold-soft); border-color: rgba(227, 168, 87, 0.4); color: var(--c-gold); }

/* 侧轨阅读进度 */
.rail-progress {
  position: relative;
  height: 2px;
  margin-top: 18px;
  background: var(--c-line);
  overflow: hidden;
}
.rail-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-gold));
  transition: width 0.12s linear;
}

/* 批次常驻标签 */
.version-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: none;
  font-size: 12px;
  line-height: 1;
  color: var(--c-stone);
}

.version-dot {
  width: 6px;
  height: 6px;
  background: var(--c-cyan);
  box-shadow: 0 0 10px rgba(0, 230, 195, 0.75);
  animation: vt-pulse 2.6s ease-in-out infinite;
  flex: none;
}

@keyframes vt-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.32; }
}

.version-label { letter-spacing: 0.08em; }

.version-code {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-gold);
}

/* 抽屉遮罩 */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(6, 10, 20, 0.74);
  border: 0;
}
.nav-scrim[hidden] { display: none; }

/* ---------- 7. 头部：桌面侧轨 ---------- */
@media (min-width: 961px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    padding: 26px 0 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .brand-block {
    padding: 0 22px 20px;
    border-bottom: 1px solid var(--c-line);
  }

  .nav-toggle { display: none; }

  .site-nav {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding-top: 20px;
  }

  .nav-caption { padding: 0 22px 12px; }

  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 22px;
  }

  .rail-shortcuts {
    margin-top: auto;
    padding: 20px 22px 14px;
  }

  .rail-progress { margin: 0 22px; }

  .version-tag {
    position: fixed;
    top: 22px;
    right: 26px;
    z-index: 70;
    padding: 8px 13px;
    border: 1px solid var(--c-line);
    background: rgba(13, 23, 40, 0.88);
  }

  .nav-scrim { display: none !important; }
}

/* ---------- 8. 头部：移动顶栏 + 抽屉 ---------- */
@media (max-width: 960px) {
  .site-header {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background-color: rgba(13, 23, 40, 0.97);
    background-image: none;
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
  }

  .brand-cn { font-size: 16px; }
  .brand-en { display: none; }
  .brand-line { display: none; }

  .nav-toggle { display: inline-flex; order: 3; }

  .version-tag {
    order: 2;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid var(--c-line);
  }
  .version-label { display: none; }
  .version-code { font-size: 12px; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    width: min(78vw, 320px);
    display: flex;
    flex-direction: column;
    padding: 74px 0 22px;
    background-image: linear-gradient(180deg, var(--c-archive), var(--c-navy) 46%);
    border-left: 1px solid var(--c-line);
    box-shadow: -20px 0 44px rgba(6, 10, 20, 0.62);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(101%);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .site-nav[data-open] { transform: translateX(0); }

  .nav-caption { padding: 0 22px 14px; }

  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 22px;
  }

  .nav-link { padding: 13px 14px; font-size: 16px; }

  .rail-shortcuts {
    margin-top: auto;
    padding: 24px 22px 14px;
  }

  .rail-progress { margin: 0 22px; }
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 96px;
  border-top: 1px solid var(--c-line);
  background-image: linear-gradient(180deg, rgba(13, 23, 40, 0.6), rgba(6, 10, 20, 1) 78%);
}

.footer-inner {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
  padding: 64px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1.2fr 1fr 1.25fr;
  gap: 40px 32px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--c-line);
}

.footer-col { min-width: 0; }

.footer-brand {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--c-cream);
  max-width: none;
}

.footer-line {
  margin-top: 10px;
  font-size: 14px;
  color: var(--c-stone);
  max-width: 17em;
}

.footer-meta {
  margin-top: 18px;
  font-size: 12px;
  color: var(--c-stone);
  letter-spacing: 0.06em;
  max-width: none;
}

.footer-icp {
  margin-top: 6px;
  font-size: 12px;
  color: var(--c-clay);
  letter-spacing: 0.04em;
  max-width: none;
}

.footer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--c-stone);
}

.footer-head::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--c-cyan);
}

.footer-list {
  display: grid;
  gap: 9px;
}

.footer-list--two { grid-template-columns: 1fr 1fr; }

.footer-list a {
  display: inline-block;
  color: var(--c-cream);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer-list a:hover {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan-line);
}

.footer-note {
  margin-top: 16px;
  font-size: var(--fs-note);
  line-height: 1.7;
  color: var(--c-stone);
  max-width: 22em;
}

.footer-note--strong {
  margin-top: 6px;
  font-size: 13px;
  color: var(--c-gold);
  letter-spacing: 0.04em;
  word-break: break-all;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
}

.footer-copy {
  font-size: var(--fs-note);
  color: var(--c-stone);
  max-width: none;
}

.footer-legacy {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-note);
  color: var(--c-clay);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.18s ease;
}
.footer-legacy:hover { color: #D07A55; }

.legacy-bar {
  width: 26px;
  height: 2px;
  background: var(--c-clay);
  flex: none;
}

/* ---------- 10. 通用章节头 ---------- */
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--c-gold);
  white-space: nowrap;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-cream);
  white-space: nowrap;
}

.section-rule {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--c-line), rgba(36, 64, 95, 0.15));
}

/* ---------- 11. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-cream);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn--primary {
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  color: #04140F;
}
.btn--primary:hover {
  background: #4DFADF;
  border-color: #4DFADF;
  color: #04140F;
}

.btn--line:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  background: var(--c-cyan-soft);
}

.btn--gold {
  border-color: rgba(227, 168, 87, 0.45);
  color: var(--c-gold);
}
.btn--gold:hover {
  background: var(--c-gold-soft);
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 12. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--c-line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--c-stone);
  white-space: nowrap;
}

.tag--moss { border-color: rgba(110, 139, 114, 0.55); color: var(--c-moss); }
.tag--gold { border-color: rgba(227, 168, 87, 0.5); color: var(--c-gold); }
.tag--clay { border-color: rgba(168, 92, 62, 0.55); color: var(--c-clay); }

/* ---------- 13. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-stone);
}
.breadcrumb a { color: var(--c-stone); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-cyan); }
.breadcrumb .sep { color: var(--c-line); }
.breadcrumb [aria-current="page"] { color: var(--c-cream); }

/* ---------- 14. 复制按钮 ---------- */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--c-line);
  background: rgba(21, 39, 64, 0.5);
  color: var(--c-gold);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}
.copy-btn:hover { border-color: var(--c-cyan-line); color: var(--c-cyan); }
.copy-btn[data-copied] { border-color: var(--c-moss); color: var(--c-moss); }

/* ---------- 15. 档案卡 ---------- */
.archive-card {
  position: relative;
  padding: 24px 24px 24px 28px;
  background: var(--c-archive);
  border: 1px solid var(--c-line);
  transform: translate(var(--ox, 0px), var(--oy, 0px));
}

.archive-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--c-cyan);
}

.archive-card--legacy::before { background: var(--c-clay); }
.archive-card--gold::before { background: var(--c-gold); }

.archive-card h3 { margin-bottom: 10px; }

.archive-card p {
  font-size: var(--fs-small);
  color: var(--c-stone);
  max-width: 34em;
}

/* ---------- 16. 索引表 ---------- */
.index-scroll {
  overflow-x: auto;
  border: 1px solid var(--c-line);
  background: rgba(21, 39, 64, 0.42);
}

.index-table {
  width: 100%;
  min-width: 560px;
  text-align: left;
}

.index-table th,
.index-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-small);
  vertical-align: top;
}

.index-table tr:last-child th,
.index-table tr:last-child td { border-bottom: 0; }

.index-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-stone);
  white-space: nowrap;
  background: rgba(13, 23, 40, 0.6);
}

.index-table td { color: var(--c-cream); }
.index-table td.mono { color: var(--c-gold); font-size: 13px; white-space: nowrap; }
.index-table tbody tr:hover td { background: rgba(0, 230, 195, 0.05); }

/* ---------- 17. 图片容器（供页面阶段使用） ---------- */
.fig { position: relative; }

.fig-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--c-line);
  background-color: var(--c-archive);
  background-image:
    repeating-linear-gradient(135deg, rgba(36, 64, 95, 0.42) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, var(--c-archive), var(--c-navy));
}

.fig-frame--wide { aspect-ratio: 21 / 9; }
.fig-frame--tall { aspect-ratio: 3 / 4; }
.fig-frame--square { aspect-ratio: 1 / 1; }

.fig-frame > img,
.fig-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06) brightness(0.94);
}

.fig-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 10, 20, 0) 55%, rgba(6, 10, 20, 0.55));
}

.fig-cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--c-stone);
  max-width: none;
}

/* ---------- 18. 显现动效 ---------- */
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease var(--rd, 0ms),
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) var(--rd, 0ms);
}

html.js-ready .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 19. 平板 ---------- */
@media (max-width: 1080px) and (min-width: 961px) {
  :root { --rail-w: 216px; }
}

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }
}

/* ---------- 20. 手机 ---------- */
@media (max-width: 640px) {
  :root {
    --fs-body: 16px;
    --fs-small: 14.5px;
    --gap: 18px;
  }

  body::before { opacity: 0.4; }

  .wrap { width: min(100% - 32px, var(--maxw)); }

  .footer-inner { width: min(100% - 32px, var(--maxw)); padding: 48px 0 26px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 34px;
  }

  .footer-list--two { grid-template-columns: 1fr 1fr; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .site-footer { margin-top: 64px; }

  .btn { width: 100%; min-height: 52px; }

  .btn-row { flex-direction: column; }

  .section-head { flex-wrap: wrap; gap: 10px 14px; }

  .section-title { white-space: normal; }

  .archive-card { padding: 20px 18px 20px 22px; }

  .fig-frame { aspect-ratio: 4 / 3; }
  .fig-frame--tall { aspect-ratio: 3 / 4; }
}

/* ---------- 21. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html.js-ready .reveal {
    opacity: 1;
    transform: none;
  }

  .site-nav { transition: none !important; }
}

/* ---------- 22. 打印 ---------- */
@media print {
  body { background: #fff; color: #111; padding-left: 0; }
  body::before,
  .site-header,
  .nav-scrim { display: none !important; }
  .site-footer { border-top: 1px solid #999; background: none; margin-top: 24px; }
  a { color: #111; }
}
