/* =========================================================
   365棋牌局 · 共享样式 /assets/site.css
   夜空深蓝 · 酥油灯暖金 · 经幡五色 · 竖向轨道
   ========================================================= */

:root {
  /* 品牌色 */
  --night: #071426;
  --plateau: #0E2340;
  --plateau-hi: #132C4C;
  --gold: #E8B25A;
  --butter: #F6D28C;
  --flag-white: #F4EFE4;
  --cyan: #2AA6A1;
  --red: #C94F4F;
  --green: #3E8E6E;
  --yellow: #E3C34A;
  --cream: #F3E6CF;
  --ink: #14100C;

  /* 派生 */
  --line: rgba(232, 178, 90, .24);
  --line-soft: rgba(244, 239, 228, .12);
  --muted: rgba(244, 239, 228, .70);
  --muted-2: rgba(244, 239, 228, .46);
  --muted-3: rgba(244, 239, 228, .30);

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

  /* 尺度 */
  --rail-w: 104px;
  --max: 1280px;
  --gutter: clamp(20px, 4.6vw, 72px);
  --shadow-panel: 0 30px 64px -36px rgba(0, 0, 0, .9);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--night);
  color: var(--flag-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.rail__list,
.footer__links,
.crumbs { list-style: none; margin: 0; padding: 0; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

a { color: inherit; }

/* ---------- 2. 排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.14;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection {
  background: var(--gold);
  color: var(--night);
}

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

/* ---------- 3. 辅助 ---------- */
.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;
}

.skip-link {
  position: fixed;
  top: 10px;
  inset-inline-start: 12px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--night);
  font: 700 13px/1 var(--font-mono);
  letter-spacing: .06em;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform .18s ease;
}

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

/* ---------- 4. 容器与网格 ---------- */
.shell {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

.stack {
  display: grid;
  gap: clamp(36px, 5vw, 84px);
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}

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

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

/* ---------- 5. 章节头 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 22px;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.section-head--split {
  justify-content: space-between;
  align-items: flex-end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid rgba(232, 178, 90, .38);
  border-radius: 999px;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--butter);
  background: rgba(232, 178, 90, .08);
  white-space: nowrap;
}

.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 2px;
  font: 700 14px/1.2 var(--font-body);
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .22s ease, color .22s ease,
              border-color .22s ease, transform .22s ease;
}

.btn--gold {
  background: linear-gradient(150deg, var(--butter), var(--gold));
  color: var(--night);
  box-shadow: 0 14px 30px -18px rgba(232, 178, 90, .9);
}

.btn--gold:hover {
  transform: translateY(-2px);
  background: linear-gradient(150deg, #ffdfa4, var(--butter));
}

.btn--ghost {
  background: rgba(232, 178, 90, .05);
  border-color: rgba(232, 178, 90, .42);
  color: var(--butter);
}

.btn--ghost:hover {
  background: rgba(232, 178, 90, .14);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 12.5px;
}

/* ---------- 7. 面板 ---------- */
.panel {
  position: relative;
  background:
    linear-gradient(160deg, rgba(19, 44, 76, .92) 0%, rgba(10, 26, 48, .96) 100%);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-panel);
  padding: clamp(24px, 3.6vw, 56px);
}

.panel--cut {
  clip-path: polygon(
    0 0,
    calc(100% - 32px) 0,
    100% 32px,
    100% 100%,
    32px 100%,
    0 calc(100% - 32px)
  );
}

@media (max-width: 600px) {
  .panel--cut {
    clip-path: polygon(
      0 0,
      calc(100% - 20px) 0,
      100% 20px,
      100% 100%,
      20px 100%,
      0 calc(100% - 20px)
    );
  }
}

/* ---------- 8. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(90% 70% at 78% 12%, rgba(232, 178, 90, .16), transparent 62%),
    linear-gradient(160deg, #12304f 0%, #08182d 58%, #050f1d 100%);
  border: 1px solid var(--line-soft);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244, 239, 228, .08);
  pointer-events: none;
}

.media > img,
.media > picture,
.media > picture > img,
.media > video,
.media > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media--cut {
  clip-path: polygon(
    0 0,
    calc(100% - 34px) 0,
    100% 34px,
    100% 100%,
    0 100%
  );
}

.media__caption {
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  z-index: 2;
  max-width: 84%;
  padding: 10px 16px;
  background: rgba(7, 20, 38, .88);
  border-top: 1px solid rgba(232, 178, 90, .34);
  border-inline-end: 1px solid rgba(232, 178, 90, .2);
  font: 500 11.5px/1.5 var(--font-mono);
  letter-spacing: .06em;
  color: var(--butter);
}

/* ---------- 9. 经幡标签 ---------- */
.flag-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font: 600 11.5px/1 var(--font-mono);
  letter-spacing: .1em;
  text-decoration: none;
  border: 1px solid currentColor;
  color: var(--cyan);
  background: rgba(42, 166, 161, .10);
  transition: background-color .2s ease, transform .2s ease;
}

.flag-tag:hover { transform: translateY(-1px); }

.flag-tag--gold { color: var(--gold); background: rgba(232, 178, 90, .10); }
.flag-tag--red { color: var(--red); background: rgba(201, 79, 79, .12); }
.flag-tag--green { color: var(--green); background: rgba(62, 142, 110, .14); }
.flag-tag--yellow { color: var(--yellow); background: rgba(227, 195, 74, .12); }
.flag-tag--white { color: var(--flag-white); background: rgba(244, 239, 228, .08); }

/* ---------- 10. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
  font: 500 11.5px/1.4 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crumbs li + li::before {
  content: "/";
  color: rgba(232, 178, 90, .42);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.crumbs a:hover {
  color: var(--butter);
  border-bottom-color: rgba(232, 178, 90, .5);
}

.crumbs [aria-current="page"] { color: var(--butter); }

/* ---------- 11. 长文排版 ---------- */
.prose {
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(244, 239, 228, .84);
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(21px, 2.4vw, 27px);
  color: var(--flag-white);
}

.prose h3 {
  margin-top: 1.9em;
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--butter);
}

.prose ul,
.prose ol {
  padding-inline-start: 1.25em;
  margin-block: 1.05em;
}

.prose li + li { margin-top: .45em; }

.prose ul { list-style: none; padding-inline-start: 0; }

.prose ul > li {
  position: relative;
  padding-inline-start: 1.3em;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.prose a {
  color: var(--butter);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 178, 90, .45);
}

.prose a:hover { border-bottom-color: var(--gold); }

.prose blockquote {
  border-inline-start: 2px solid var(--gold);
  padding-inline-start: 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.prose code {
  font-family: var(--font-mono);
  font-size: .9em;
  padding: 2px 6px;
  background: rgba(232, 178, 90, .1);
  border-radius: 2px;
  color: var(--butter);
}

.prose--cream {
  background: var(--cream);
  color: var(--ink);
  max-width: none;
  padding: clamp(26px, 4vw, 64px);
}

.prose--cream h2,
.prose--cream h3 { color: var(--ink); }

.prose--cream a {
  color: #8a4a12;
  border-bottom-color: rgba(138, 74, 18, .5);
}

.prose--cream code {
  background: rgba(20, 16, 12, .08);
  color: var(--ink);
}

/* =========================================================
   12. 头部：左侧竖向轨道
   ========================================================= */
.site-header {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 80;
  width: var(--rail-w);
  background:
    linear-gradient(180deg, rgba(14, 35, 64, .98) 0%, rgba(7, 20, 38, .99) 100%);
  border-inline-end: 1px solid rgba(232, 178, 90, .2);
  box-shadow: inset -1px 0 0 rgba(232, 178, 90, .08);
}

.rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 20px 8px 18px;
  overflow: hidden;
}

/* 品牌 */
.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex: none;
}

.rail__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font: 700 12.5px/1 var(--font-mono);
  letter-spacing: -.02em;
  color: var(--night);
  background: linear-gradient(150deg, var(--butter), var(--gold));
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    0 100%
  );
  transition: transform .25s ease, filter .25s ease;
}

.rail__brand:hover .rail__mark {
  transform: translateY(-2px);
  filter: brightness(1.07);
}

.rail__word {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font: 800 14.5px/1 var(--font-head);
  letter-spacing: .2em;
  color: var(--flag-white);
}

/* 版本徽章 */
.rail__badge {
  flex: none;
  margin-top: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(232, 178, 90, .36);
  border-radius: 999px;
  background: rgba(232, 178, 90, .08);
  font: 600 10px/1 var(--font-mono);
  letter-spacing: .05em;
  color: var(--butter);
}

/* 导航 */
.rail__nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.rail__nav::-webkit-scrollbar { width: 0; height: 0; }

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

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  text-decoration: none;
  color: rgba(244, 239, 228, .60);
  transition: color .2s ease, background-color .2s ease;
}

.rail__link::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 2px;
  height: 22px;
  border-radius: 2px;
  background: var(--gold);
  opacity: 0;
  transform: translateY(-50%) scaleY(.25);
  transition: opacity .22s ease, transform .3s cubic-bezier(.22, .8, .24, 1);
}

.rail__idx {
  font: 500 9.5px/1 var(--font-mono);
  letter-spacing: .14em;
  color: rgba(232, 178, 90, .5);
  transition: color .2s ease;
}

.rail__label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font: 600 12.5px/1 var(--font-body);
  letter-spacing: .16em;
  white-space: nowrap;
}

.rail__link:hover {
  color: var(--butter);
  background: rgba(232, 178, 90, .07);
}

.rail__link:hover::before {
  opacity: .55;
  transform: translateY(-50%) scaleY(.62);
}

.rail__link[aria-current="page"] {
  color: var(--gold);
  background: rgba(232, 178, 90, .1);
}

.rail__link[aria-current="page"]::before {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

.rail__link[aria-current="page"] .rail__idx { color: var(--gold); }

/* 快捷动作 */
.rail__actions {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.rail__action {
  display: block;
  padding: 9px 4px;
  text-align: center;
  text-decoration: none;
  font: 650 11px/1.35 var(--font-body);
  letter-spacing: .02em;
  color: var(--butter);
  background: rgba(232, 178, 90, .1);
  border: 1px solid rgba(232, 178, 90, .28);
  border-radius: 2px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.rail__action:hover {
  background: var(--gold);
  color: var(--night);
  border-color: var(--gold);
}

.rail__action:nth-child(2) {
  color: var(--flag-white);
  background: rgba(42, 166, 161, .14);
  border-color: rgba(42, 166, 161, .36);
}

.rail__action:nth-child(2):hover {
  background: var(--cyan);
  color: var(--night);
  border-color: var(--cyan);
}

/* 汉堡按钮（仅移动端出现） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(232, 178, 90, .4);
  border-radius: 2px;
  color: var(--flag-white);
  font: 600 12px/1 var(--font-mono);
  letter-spacing: .13em;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.nav-toggle:hover {
  border-color: var(--gold);
  background: rgba(232, 178, 90, .1);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: background-color .2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .26s cubic-bezier(.22, .8, .24, 1);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* 桌面端让出轨道宽度 */
@media (min-width: 1080px) {
  body { padding-inline-start: var(--rail-w); }
}

/* 矮屏压缩轨道 */
@media (min-width: 1080px) and (max-height: 820px) {
  .rail { padding: 14px 8px 14px; }
  .rail__mark { width: 40px; height: 40px; font-size: 11px; }
  .rail__word { font-size: 13px; letter-spacing: .14em; }
  .rail__badge { margin-top: 7px; padding: 4px 7px; font-size: 9px; }
  .rail__link { padding: 7px 4px; gap: 6px; }
  .rail__label { font-size: 11.5px; letter-spacing: .1em; }
  .rail__idx { font-size: 9px; }
  .rail__actions { gap: 6px; padding-top: 10px; }
  .rail__action { padding: 7px 3px; font-size: 10px; }
}

/* =========================================================
   13. 移动端：顶栏 + 右侧抽屉
   ========================================================= */
@media (max-width: 1079px) {
  html { scroll-padding-top: 78px; }

  .site-header {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    border-inline-end: 0;
    border-bottom: 1px solid rgba(232, 178, 90, .2);
    background: rgba(7, 20, 38, .93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .rail {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    height: auto;
    padding: 10px clamp(14px, 4vw, 24px);
    overflow: visible;
  }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 9px;
  }

  .rail__mark { width: 36px; height: 36px; font-size: 10.5px; }

  .rail__word {
    writing-mode: horizontal-tb;
    font-size: 14.5px;
    letter-spacing: .06em;
  }

  .rail__badge {
    margin-top: 0;
    padding: 4px 7px;
    font-size: 9px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-inline-start: auto;
  }

  /* 抽屉 */
  .rail__nav {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 92;
    width: min(340px, 86vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 78px 22px 30px;
    background: linear-gradient(180deg, #0E2340 0%, #071426 100%);
    border-inline-start: 1px solid rgba(232, 178, 90, .3);
    box-shadow: -34px 0 70px -24px rgba(0, 0, 0, .85);
    transform: translateX(102%);
    transition: transform .34s cubic-bezier(.22, .8, .24, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .rail__nav[data-open="true"] {
    transform: translateX(0);
  }

  .rail__list { gap: 0; }

  .rail__link {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 13px;
    padding: 15px 8px;
    border-bottom: 1px solid var(--line-soft);
  }

  .rail__link::before {
    inset-inline-start: 0;
    top: 50%;
    height: 58%;
    width: 2px;
  }

  .rail__label {
    writing-mode: horizontal-tb;
    font-size: 15px;
    letter-spacing: .04em;
  }

  .rail__idx { font-size: 10.5px; letter-spacing: .16em; }

  .rail__actions {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px dashed rgba(232, 178, 90, .24);
    gap: 10px;
  }

  .rail__action {
    padding: 13px 16px;
    text-align: left;
    font-size: 13px;
    letter-spacing: .03em;
  }

  body[data-drawer="open"] { overflow: hidden; }

  body[data-drawer="open"]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 88;
    background: rgba(4, 10, 20, .68);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
}

@media (max-width: 420px) {
  .rail__badge { display: none; }
  .nav-toggle__text { display: none; }
  .nav-toggle { padding: 11px; }
}

/* =========================================================
   14. 页脚
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 132px);
  background:
    radial-gradient(120% 96% at 10% 0%, rgba(232, 178, 90, .14), transparent 58%),
    radial-gradient(90% 80% at 92% 8%, rgba(42, 166, 161, .10), transparent 62%),
    linear-gradient(180deg, #0A1B31 0%, #050F1D 100%);
  border-top: 1px solid rgba(232, 178, 90, .26);
  overflow: hidden;
}

.footer__strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 6px;
  opacity: .92;
}

.footer__strip span:nth-child(1) { background: var(--cyan); }
.footer__strip span:nth-child(2) { background: rgba(244, 239, 228, .82); }
.footer__strip span:nth-child(3) { background: var(--red); }
.footer__strip span:nth-child(4) { background: var(--green); }
.footer__strip span:nth-child(5) { background: var(--yellow); }

.footer__inner {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
  padding-block: clamp(42px, 6vw, 84px) 30px;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
}

.footer__wordmark {
  font: 800 clamp(24px, 3vw, 36px)/1.05 var(--font-head);
  letter-spacing: -.03em;
  color: var(--flag-white);
}

.footer__tagline {
  margin-top: 14px;
  font: 500 12.5px/1.7 var(--font-mono);
  letter-spacing: .12em;
  color: rgba(232, 178, 90, .76);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 22px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  text-decoration: none;
  font-size: 14px;
  color: rgba(244, 239, 228, .76);
  transition: color .2s ease, transform .2s ease;
}

.footer__link::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  background: currentColor;
  opacity: .45;
  transform: rotate(45deg);
  transition: opacity .2s ease, background-color .2s ease;
}

.footer__link:hover {
  color: var(--butter);
  transform: translateX(2px);
}

.footer__link:hover::before {
  opacity: 1;
  background: var(--gold);
}

.footer__label {
  margin-bottom: 16px;
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(232, 178, 90, .72);
}

.footer__meta {
  display: grid;
  gap: 13px;
}

.footer__meta-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.footer__meta dt {
  font: 500 10.5px/1.5 var(--font-mono);
  letter-spacing: .12em;
  color: rgba(244, 239, 228, .38);
}

.footer__meta dd {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(244, 239, 228, .86);
  word-break: break-word;
}

.footer__note {
  max-width: 78ch;
  padding-top: 22px;
  border-top: 1px dashed rgba(232, 178, 90, .2);
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(244, 239, 228, .5);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 239, 228, .08);
  font: 500 11.5px/1.6 var(--font-mono);
  letter-spacing: .05em;
  color: rgba(244, 239, 228, .42);
}

.footer__icp { color: rgba(232, 178, 90, .68); }

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

@media (max-width: 520px) {
  .footer__links { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* =========================================================
   15. 滚动显现
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .54s ease,
    transform .54s cubic-bezier(.22, .8, .24, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* =========================================================
   16. 降低动效
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .rail__nav { transition: none; }
}
