/* =========================================================
   王者赏金赛 · 共享站点样式 /assets/site.css
   暗夜竞技场 · 数据作战室
   ========================================================= */

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

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

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

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

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

button {
  font: inherit;
  color: inherit;
}

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #0a0c0f;
  --ink-deep: #080a0d;
  --ink-2: #12161b;
  --panel: #171b21;
  --panel-2: #1e242c;

  --gold: #f5a03c;
  --gold-line: #a96a1c;
  --cyan: #3be0d6;
  --silver: #c9d1d9;
  --silver-dim: #8a939d;
  --paper: #f2eadf;
  --paper-ink: #1b1a17;
  --alert: #e4573d;
  --teal: #0f3b3a;

  --text-hi: #f2eadf;

  --rail-w: 120px;
  --rail-h-mobile: 64px;
  --gutter: clamp(16px, 4vw, 56px);
  --bento-gap: clamp(12px, 1.3vw, 20px);

  --shadow-hard: 8px 8px 0 rgba(0, 0, 0, 0.55);
  --shadow-gold: 6px 6px 0 rgba(169, 106, 28, 0.45);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;
}

/* ---------- 2. Base ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(169, 106, 28, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 106, 28, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  color: var(--silver);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  color: var(--text-hi);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 5.6vw, 92px);
  line-height: 0.95;
}

h2 {
  font-size: clamp(26px, 3.2vw, 46px);
}

h3 {
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.2;
}

h4 {
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

p {
  text-wrap: pretty;
}

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

strong {
  color: var(--text-hi);
  font-weight: 700;
}

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

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

/* ---------- 3. Utilities ---------- */
.sr-only {
  position: absolute !important;
  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;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

.divider {
  height: 2px;
  border: 0;
  margin-block: clamp(28px, 4vw, 56px);
  background: linear-gradient(
    90deg,
    var(--gold-line) 0%,
    var(--gold-line) 32%,
    rgba(169, 106, 28, 0.18) 32%,
    rgba(169, 106, 28, 0.18) 100%
  );
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  transform: translateY(-220%);
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(44px, 6.5vw, 96px);
}

.section--paper {
  background: var(--paper);
  color: var(--paper-ink);
  background-image:
    linear-gradient(rgba(27, 26, 23, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 26, 23, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

.section--paper h1,
.section--paper h2,
.section--paper h3,
.section--paper h4,
.section--paper strong {
  color: var(--paper-ink);
}

.section--paper a {
  color: #0b5f5b;
}

.section--paper .label,
.section--paper .mono {
  color: #5c5a52;
}

.section--ink {
  background: var(--ink-2);
  border-block: 2px solid var(--gold-line);
}

.prose {
  max-width: 34em;
  font-size: 17px;
  line-height: 1.9;
  color: var(--silver);
}

.section--paper .prose {
  color: #33312b;
}

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

.prose h2 {
  margin-top: 1.9em;
}

.prose h3 {
  margin-top: 1.6em;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
  list-style: none;
}

.prose li {
  position: relative;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 0.78em;
  width: 8px;
  height: 2px;
  background: var(--gold);
}

.prose ol {
  counter-reset: prose-ol;
}

.prose ol > li {
  counter-increment: prose-ol;
}

.prose ol > li::before {
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: -1.9em;
  top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-line);
}

/* ---------- 5. Grid ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--bento-gap);
}

.grid-12 > * {
  grid-column: span 12;
  min-width: 0;
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  --btn-shadow: rgba(169, 106, 28, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-fg);
  box-shadow: 5px 5px 0 var(--btn-shadow);
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--btn-shadow);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--btn-shadow);
}

.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
}

.btn--cyan {
  --btn-bg: var(--cyan);
  --btn-fg: var(--ink);
  --btn-shadow: rgba(59, 224, 214, 0.35);
  border-color: var(--ink);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-shadow: rgba(0, 0, 0, 0.5);
  border-color: var(--gold-line);
}

.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(59, 224, 214, 0.08);
}

.btn--sm {
  padding: 9px 14px;
  font-size: 12px;
  box-shadow: 3px 3px 0 var(--btn-shadow);
}

/* ---------- 7. Breadcrumb ---------- */
.breadcrumb {
  padding-top: clamp(20px, 3vw, 36px);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--silver-dim);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--gold-line);
}

.breadcrumb__link {
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.breadcrumb__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.breadcrumb__current {
  color: var(--gold);
}

/* ---------- 8. Panels ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--panel);
  border: 2px solid var(--gold-line);
  box-shadow: var(--shadow-hard);
}

.panel--focus {
  background: var(--panel-2);
  border-color: var(--gold);
  box-shadow: none;
  filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, 0.6));
  clip-path: polygon(
    0 0,
    calc(100% - 34px) 0,
    100% 34px,
    100% 100%,
    0 100%
  );
}

.panel__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.panel__label::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold);
  flex: none;
}

.panel__title {
  margin-top: 10px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
}

.panel__body {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--silver);
}

/* ---------- 9. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  background: rgba(169, 106, 28, 0.14);
  border: 1px solid var(--gold-line);
}

.tag--cyan {
  color: var(--cyan);
  background: rgba(59, 224, 214, 0.1);
  border-color: var(--cyan);
}

.tag--alert {
  color: var(--alert);
  background: rgba(228, 87, 61, 0.1);
  border-color: var(--alert);
}

/* ---------- 10. Figure ---------- */
.figure {
  position: relative;
  margin: 0;
  background: var(--panel);
  border: 2px solid var(--gold-line);
  overflow: hidden;
}

.figure__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #10151a;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(169, 106, 28, 0.16) 0 2px,
    transparent 2px 12px
  );
}

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

.figure__media--square {
  aspect-ratio: 1 / 1;
}

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

.figure__cap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--silver-dim);
  border-top: 1px solid rgba(169, 106, 28, 0.36);
}

.figure__cap strong {
  color: var(--gold);
}

/* ---------- 11. Filter protocol ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-btn {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-dim);
  background: transparent;
  border: 1px solid rgba(169, 106, 28, 0.5);
  cursor: pointer;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.filter-btn:hover {
  color: var(--paper);
  border-color: var(--gold);
}

.filter-btn[aria-pressed="true"] {
  font-weight: 700;
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

[data-filter-item][hidden] {
  display: none !important;
}

[data-filter-item] {
  animation: kb-fade-in 0.28s var(--ease) both;
}

@keyframes kb-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes kb-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

/* =========================================================
   12. HEADER · 侧边轨道
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 120;
  width: var(--rail-w);
}

.rail {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background: #0b0e12;
  border-right: 2px solid var(--gold-line);
}

/* 品牌块 */
.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px 18px;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  transition: background-color 0.2s var(--ease);
}

.rail__brand:hover {
  background: var(--cyan);
}

.rail__brand-cn {
  display: block;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
  color: var(--gold);
  background: var(--ink);
}

.rail__brand-name {
  writing-mode: vertical-rl;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--ink);
}

/* 移动开关 */
.rail__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.rail__toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

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

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

.rail__toggle-bars::before {
  top: -6px;
}

.rail__toggle-bars::after {
  top: 6px;
}

.rail__toggle-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.rail__toggle[aria-expanded="true"] .rail__toggle-bars {
  background: transparent;
}

.rail__toggle[aria-expanded="true"] .rail__toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.rail__toggle[aria-expanded="true"] .rail__toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* 导航 */
.rail__nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-block: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-line) transparent;
}

.rail__nav::-webkit-scrollbar {
  width: 4px;
}

.rail__nav::-webkit-scrollbar-thumb {
  background: var(--gold-line);
}

.rail__link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--silver);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.rail__num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-line);
  transition: color 0.18s var(--ease);
}

.rail__text {
  min-width: 0;
}

.rail__link:hover {
  color: var(--paper);
  background: rgba(245, 160, 60, 0.09);
  border-left-color: var(--gold);
  transform: translateX(2px);
}

.rail__link:hover .rail__num {
  color: var(--cyan);
}

.rail__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 800;
  background: var(--gold);
  border-left-color: var(--cyan);
}

.rail__link[aria-current="page"] .rail__num {
  color: rgba(10, 12, 15, 0.6);
}

/* 轨道 CTA */
.rail__cta {
  display: block;
  margin: 6px 12px 12px;
  padding: 10px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--cyan);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(59, 224, 214, 0.25);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

.rail__cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(59, 224, 214, 0.4);
  background: var(--gold);
}

/* 轮次状态 */
.rail__status {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 12px 12px 16px;
  border-top: 1px solid rgba(169, 106, 28, 0.36);
}

.rail__status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  background: var(--cyan);
  animation: kb-pulse 2.4s var(--ease) infinite;
}

.rail__status-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--silver-dim);
}

.rail__status-round {
  display: block;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* 滚动进度 */
.rail__progress {
  position: absolute;
  top: 0;
  right: -2px;
  bottom: 0;
  width: 3px;
  background: rgba(169, 106, 28, 0.18);
  pointer-events: none;
}

.rail__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top center;
  will-change: transform;
}

/* 移动端导航锁滚动 */
html.is-nav-open,
html.is-nav-open body {
  overflow: hidden;
}

/* =========================================================
   13. FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  background-color: var(--ink-deep);
  background-image:
    linear-gradient(rgba(169, 106, 28, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 106, 28, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  border-top: 2px solid var(--gold-line);
  color: var(--silver);
}

.footer__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) 22px;
}

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

/* 品牌列 */
.footer__brand {
  min-width: 0;
}

.footer__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__wordmark {
  margin: 6px 0 10px;
  font-size: clamp(60px, 8vw, 118px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: rgba(245, 160, 60, 0.06);
  -webkit-text-stroke: 1px rgba(169, 106, 28, 0.55);
}

.footer__tagline {
  max-width: 22em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--silver-dim);
}

.footer__cta {
  margin-top: 18px;
}

/* 链接三列 */
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 40px);
}

.footer__col {
  min-width: 0;
}

.footer__col-title {
  padding-bottom: 10px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(169, 106, 28, 0.4);
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding-block: 7px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--silver);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer__link::before {
  content: "";
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.2s var(--ease), margin-right 0.2s var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--cyan);
}

.footer__link:hover::before,
.footer__link:focus-visible::before {
  width: 12px;
  margin-right: 8px;
}

/* 联系带 */
.footer__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid rgba(169, 106, 28, 0.32);
}

.footer__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  padding: 13px 15px;
  text-align: left;
  background: #101418;
  border: 1px solid rgba(169, 106, 28, 0.45);
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.footer__copy:hover {
  border-color: var(--cyan);
  background: rgba(59, 224, 214, 0.06);
}

.footer__copy[data-copied] {
  border-color: var(--cyan);
  background: rgba(59, 224, 214, 0.12);
}

.footer__copy-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  word-break: break-all;
  color: var(--text-hi);
}

.footer__copy-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

.footer__address {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--silver);
  border: 1px dashed rgba(169, 106, 28, 0.4);
}

/* 元信息 */
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 26px;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.7;
  color: var(--silver-dim);
  border-top: 1px solid rgba(169, 106, 28, 0.32);
}

/* =========================================================
   14. Responsive
   ========================================================= */
@media (max-width: 1040px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__wordmark {
    font-size: clamp(56px, 11vw, 96px);
  }
}

@media (max-width: 960px) {
  html {
    scroll-padding-top: 80px;
  }

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

  .site-header {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--rail-h-mobile);
  }

  .rail {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: var(--rail-h-mobile);
    border-right: 0;
    border-bottom: 2px solid var(--gold-line);
  }

  .rail__brand {
    flex-direction: row;
    gap: 10px;
    padding: 0 14px;
    height: 100%;
    background: transparent;
    color: var(--paper);
    border-bottom: 0;
    border-right: 2px solid var(--gold-line);
  }

  .rail__brand:hover {
    background: transparent;
    color: var(--cyan);
  }

  .rail__brand-cn {
    color: var(--ink);
    background: var(--gold);
    letter-spacing: 0.16em;
  }

  .rail__brand-name {
    writing-mode: horizontal-tb;
    font-size: 17px;
    letter-spacing: 0.06em;
    color: inherit;
  }

  .rail__toggle {
    display: inline-flex;
    margin-right: 12px;
    flex: none;
  }

  .rail__nav {
    position: fixed;
    top: var(--rail-h-mobile);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    flex: none;
    padding-block: 6px 24px;
    background: #0b0e12;
    border-top: 1px solid rgba(169, 106, 28, 0.4);
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.28s var(--ease), visibility 0.28s var(--ease);
  }

  .rail__nav[data-open] {
    transform: translateX(0);
    visibility: visible;
  }

  .rail__link {
    padding: 17px 22px;
    font-size: 16px;
    border-left-width: 0;
    border-bottom: 1px solid rgba(169, 106, 28, 0.22);
  }

  .rail__num {
    font-size: 11px;
  }

  .rail__link:hover {
    transform: none;
  }

  .rail__link[aria-current="page"] {
    border-left-width: 0;
    box-shadow: inset 6px 0 0 var(--cyan);
  }

  .rail__cta {
    display: none;
  }

  .rail__status,
  .rail__progress {
    display: none;
  }

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

@media (max-width: 640px) {
  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 12;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

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

  .btn {
    width: 100%;
  }

  .btn--sm {
    width: auto;
  }
}

/* =========================================================
   15. Motion preferences
   ========================================================= */
@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;
  }

  .rail__status-dot {
    animation: none;
  }

  .btn:hover,
  .rail__link:hover,
  .rail__cta:hover {
    transform: none;
  }
}
