/* =========================================================
   易发游戏老版 — 共享样式 (assets/site.css)
   复古数字档案室 / 侧边导览轨 / 旧纸与墨绿
   ========================================================= */

/* ---------- 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, ul, ol, li, figure, figcaption,
blockquote, dl, dd {
  margin: 0;
}

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

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色彩体系 */
  --ink: #12352E;
  --ink-deep: #0B241F;
  --ink-soft: #1B463C;
  --paper: #F3E9D2;
  --paper-2: #E4D6B8;
  --brown: #241A14;
  --amber: #C98A2E;
  --glass: #D9E4DD;
  --brick: #A7482F;
  --mint: #2FD3B5;
  --halftone: #8C8A7A;
  --pixel: #F2C94C;

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

  /* 尺度 */
  --rail-w: 276px;
  --bar-h: 64px;
  --gutter: clamp(18px, 3.4vw, 56px);
  --maxw: 1180px;
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 22px;
  --line: rgba(36, 26, 20, 0.16);
  --shadow-plate: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 26px -20px rgba(36, 26, 20, 0.95);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(140, 138, 122, 0.16) 1px, transparent 0),
    linear-gradient(180deg, rgba(228, 214, 184, 0.5), transparent 22%);
  background-size: 4px 4px, auto;
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: var(--brown);
}

p { text-wrap: pretty; }

::selection {
  background: var(--mint);
  color: var(--ink-deep);
}

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

#main-content:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: -3px;
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink-deep);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(-160%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 3px;
}

/* ---------- 5. Header / 档案轨 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 70;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  padding: 26px 20px 18px;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(47, 211, 181, 0.12), transparent 26%),
    repeating-linear-gradient(180deg, rgba(243, 233, 210, 0.05) 0 1px, transparent 1px 34px),
    radial-gradient(circle at 1px 1px, rgba(243, 233, 210, 0.1) 1px, transparent 0);
  background-size: auto, auto, 5px 5px;
  border-right: 1px solid rgba(47, 211, 181, 0.22);
  box-shadow: 14px 0 36px -32px #000;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* 滚动进度 */
.rail-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 100vh;
  background: rgba(47, 211, 181, 0.12);
  pointer-events: none;
  z-index: 80;
}

.rail-progress-bar {
  display: block;
  width: 100%;
  height: calc(var(--progress, 0) * 100%);
  background: linear-gradient(180deg, var(--mint), var(--amber));
  transition: height 0.08s linear;
}

/* 品牌块 */
.rail-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(243, 233, 210, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pixel);
  background: linear-gradient(150deg, var(--ink-soft), var(--ink-deep));
  border: 1px solid var(--amber);
  border-radius: var(--radius-s);
  box-shadow: inset 0 0 0 3px rgba(201, 138, 46, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}

.brand-tagline {
  max-width: 22ch;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(243, 233, 210, 0.72);
}

/* 移动端索引按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid rgba(47, 211, 181, 0.5);
  border-radius: 999px;
  background: rgba(47, 211, 181, 0.1);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover {
  background: rgba(47, 211, 181, 0.22);
  border-color: var(--mint);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background 0.18s var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.site-header[data-open] .nav-toggle-bars { background: transparent; }
.site-header[data-open] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle-text {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

/* 导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
}

.nav-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(243, 233, 210, 0.5);
}

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

.nav-item { min-width: 0; }

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  border-left: 3px solid transparent;
  border-radius: var(--radius-s);
  color: rgba(243, 233, 210, 0.86);
  font-size: 0.94rem;
  line-height: 1.5;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.nav-link:hover {
  background: rgba(243, 233, 210, 0.09);
  color: #fff;
  border-left-color: var(--amber);
}

.nav-num {
  min-width: 1.7em;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.nav-text { line-height: 1.5; }

.nav-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(47, 211, 181, 0.22), rgba(47, 211, 181, 0.03));
  border-left-color: var(--mint);
  color: #fff;
  font-weight: 700;
}

.nav-link[aria-current="page"] .nav-num { color: var(--mint); }

/* 轨道底部 */
.rail-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed rgba(243, 233, 210, 0.24);
}

.rail-foot-label {
  font-size: 0.76rem;
  line-height: 1.6;
  color: rgba(243, 233, 210, 0.7);
}

.rail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid rgba(36, 26, 20, 0.4);
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink-deep);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s var(--ease);
}

.rail-cta:hover {
  background: var(--pixel);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35);
}

/* ---------- 6. Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px) 0 22px;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(243, 233, 210, 0.09) 1px, transparent 0),
    linear-gradient(180deg, var(--ink-deep), var(--ink) 45%, var(--ink-deep));
  background-size: 5px 5px, auto;
  border-top: 3px solid var(--amber);
}

.site-footer::before {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -140px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 138, 46, 0.26), transparent 70%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(20px, 3vw, 44px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mint);
}

.footer-wordmark {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--paper);
  text-shadow: 2px 2px 0 rgba(201, 138, 46, 0.4);
}

.footer-desc {
  max-width: 26ch;
  font-size: 0.86rem;
  line-height: 1.8;
  color: rgba(243, 233, 210, 0.74);
}

.stamp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 4px;
  padding: 9px 18px;
  border: 1.5px dashed rgba(243, 233, 210, 0.6);
  border-radius: 999px;
  color: var(--paper);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.16s var(--ease);
}

.stamp-link:hover {
  background: rgba(201, 138, 46, 0.2);
  border-color: var(--amber);
  color: var(--pixel);
  transform: translateY(-2px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.footer-col--contact { gap: 14px; }

.footer-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  font-size: 0.88rem;
  color: rgba(243, 233, 210, 0.82);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer-list a:hover {
  color: var(--pixel);
  border-bottom-color: rgba(242, 201, 76, 0.6);
}

.footer-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-k {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(47, 211, 181, 0.9);
}

.footer-v {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(243, 233, 210, 0.88);
  word-break: break-word;
}

.footer-note {
  font-size: 0.78rem;
  line-height: 1.75;
  color: rgba(243, 233, 210, 0.62);
}

.footer-legal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: clamp(26px, 4vw, 42px) auto 0;
  padding: 16px var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(243, 233, 210, 0.18);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(243, 233, 210, 0.68);
}

.footer-note--legal {
  max-width: 46ch;
  font-size: 0.72rem;
  color: rgba(243, 233, 210, 0.52);
}

/* ---------- 7. Layout 基础 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(36px, 5.5vw, 84px);
}

.section--alt {
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border-block: 1px solid rgba(36, 26, 20, 0.1);
}

.section--dark {
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(180deg, rgba(243, 233, 210, 0.045) 0 1px, transparent 1px 32px),
    radial-gradient(circle at 1px 1px, rgba(243, 233, 210, 0.09) 1px, transparent 0);
  background-size: auto, 5px 5px;
  color: var(--paper);
}

.section--dark h2,
.section--dark h3 { color: var(--paper); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 32px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section--dark .section-head { border-bottom-color: rgba(243, 233, 210, 0.24); }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brick);
}

.section--dark .eyebrow { color: var(--mint); }

.section-title {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.lede {
  max-width: 42ch;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.8;
  color: rgba(36, 26, 20, 0.82);
}

.section--dark .lede { color: rgba(243, 233, 210, 0.82); }

.display-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: 0.01em;
  text-shadow: 2px 2px 0 rgba(201, 138, 46, 0.38), -1px 0 0 rgba(167, 72, 47, 0.18);
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease), box-shadow 0.16s var(--ease), color 0.16s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--stamp {
  background: var(--brick);
  color: var(--paper);
  box-shadow: 0 3px 0 rgba(36, 26, 20, 0.5);
}

.btn--stamp:hover { background: #933F28; }

.btn--mint {
  background: var(--mint);
  color: var(--ink-deep);
  box-shadow: 0 3px 0 rgba(36, 26, 20, 0.45);
}

.btn--mint:hover { background: #45E4C8; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(18, 53, 46, 0.45);
}

.btn--ghost:hover { background: rgba(18, 53, 46, 0.08); }

.section--dark .btn--ghost {
  color: var(--paper);
  border-color: rgba(243, 233, 210, 0.5);
}

.section--dark .btn--ghost:hover { background: rgba(243, 233, 210, 0.12); }

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(36, 26, 20, 0.62);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 0.5em; }

.breadcrumb li + li::before {
  content: "/";
  color: var(--halftone);
}

.breadcrumb a {
  color: var(--ink);
  border-bottom: 1px solid rgba(18, 53, 46, 0.3);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.breadcrumb a:hover {
  color: var(--brick);
  border-bottom-color: var(--brick);
}

/* ---------- 10. 卡片 / 标签 / 网格 ---------- */
.plate {
  position: relative;
  padding: clamp(16px, 2vw, 26px);
  border: 1px solid rgba(36, 26, 20, 0.14);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-plate);
}

.plate--glass { background: rgba(217, 228, 221, 0.55); }

.plate--solid {
  background: var(--paper-2);
  backdrop-filter: none;
}

.section--dark .plate {
  background: rgba(243, 233, 210, 0.08);
  border-color: rgba(243, 233, 210, 0.22);
  box-shadow: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 3px 10px;
  border: 1px solid rgba(36, 26, 20, 0.24);
  border-radius: 999px;
  background: rgba(243, 233, 210, 0.85);
  color: rgba(36, 26, 20, 0.82);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.tag--amber {
  background: rgba(201, 138, 46, 0.2);
  border-color: rgba(201, 138, 46, 0.6);
  color: #6B4310;
}

.tag--brick {
  background: rgba(167, 72, 47, 0.16);
  border-color: rgba(167, 72, 47, 0.55);
  color: #7D3018;
}

.tag--mint {
  background: rgba(47, 211, 181, 0.22);
  border-color: rgba(47, 211, 181, 0.7);
  color: var(--ink-deep);
}

.meta-mono {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(36, 26, 20, 0.6);
}

.section--dark .meta-mono { color: rgba(243, 233, 210, 0.62); }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 11. 图片容器基座 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(36, 26, 20, 0.2);
  border-radius: var(--radius-m);
  background: linear-gradient(140deg, var(--ink-soft), var(--ink-deep));
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(243, 233, 210, 0.18) 1px, transparent 0);
  background-size: 4px 4px;
  opacity: 0.55;
  mix-blend-mode: screen;
}

/* ---------- 12. 筛选条 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px dashed rgba(36, 26, 20, 0.28);
  border-radius: var(--radius-m);
  background: rgba(217, 228, 221, 0.4);
}

.filter-btn {
  padding: 7px 15px;
  border: 1px solid rgba(18, 53, 46, 0.3);
  border-radius: 999px;
  background: rgba(243, 233, 210, 0.8);
  color: rgba(36, 26, 20, 0.85);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.filter-btn:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
}

.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--mint);
}

.filter-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(36, 26, 20, 0.66);
}

.is-filtered-out { display: none !important; }

/* ---------- 13. 显现动画 ---------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 工具类 ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1240px) {
  :root { --rail-w: 244px; }
}

@media (max-width: 1040px) {
  :root { --rail-w: 224px; }
  .site-header { padding: 22px 16px 16px; }
  .brand-name { font-size: 0.96rem; }
  .nav-link { font-size: 0.88rem; }
}

@media (max-width: 1000px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --rail-w: 0px; }

  body { padding-left: 0; padding-top: var(--bar-h); }

  .site-header {
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--bar-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(47, 211, 181, 0.28);
    box-shadow: 0 14px 28px -26px #000;
  }

  .rail-progress {
    width: 100%;
    height: 3px;
    background: rgba(47, 211, 181, 0.16);
  }

  .rail-progress-bar {
    height: 100%;
    width: calc(var(--progress, 0) * 100%);
    background: linear-gradient(90deg, var(--mint), var(--amber));
    transition: width 0.08s linear;
  }

  .rail-brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .brand-mark {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .brand-tagline { display: none; }
  .brand-sub { font-size: 0.58rem; letter-spacing: 0.14em; }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - var(--bar-h));
    padding: 16px 16px 22px;
    overflow-y: auto;
    background: var(--ink-deep);
    border-bottom: 1px solid rgba(47, 211, 181, 0.24);
    box-shadow: 0 24px 36px -28px #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s linear;
  }

  .site-header[data-open] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-link { font-size: 1rem; padding: 12px 12px 12px 14px; }
  .nav-label { padding-left: 14px; }

  .rail-foot {
    margin-top: 8px;
    padding-top: 14px;
  }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .grid-12 { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
  .filter-status { margin-left: 0; width: 100%; }
  .lede { max-width: none; }
  .breadcrumb { font-size: 0.68rem; }
}

/* ---------- 16. 减弱动效 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .reveal-ready [data-reveal],
  .reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .rail-cta:hover,
  .stamp-link:hover,
  .filter-btn:hover { transform: none; }
}
