/* ============================================================
   米兰赛场 · 全站共享样式 /assets/site.css
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

button { font: inherit; color: inherit; }

:root {
  --pitch-black: #08080A;
  --carbon: #141418;
  --deep-wine: #4B0D18;
  --milan-red: #C8102E;
  --signal-cyan: #2FF3E0;
  --flare-yellow: #E9FF3F;
  --bone-white: #F3F0E8;
  --ash-gray: #9B9BA6;
  --deep-teal: #063B3A;
  --indigo-ink: #1A1433;
  --warm-red-mid: #7A1524;
  --paper-mist: #E7E3D8;

  --hair: rgba(243, 240, 232, 0.14);
  --hair-soft: rgba(243, 240, 232, 0.08);

  --rail-w: 76px;
  --strip-h: 44px;
  --gutter: 24px;
  --max-w: 1440px;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "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, "Cascadia Mono", "Roboto Mono", monospace;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-left: var(--rail-w);
  padding-top: var(--strip-h);
  background: var(--pitch-black);
  color: var(--bone-white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--signal-cyan);
  color: var(--pitch-black);
}

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

/* ---------- 中文排版与标题 ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 6vw, 88px); }
h2 { font-size: clamp(28px, 3.2vw, 48px); }
h3 { font-size: clamp(20px, 2vw, 28px); line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.35; letter-spacing: 0; }

p { max-width: 70ch; }

strong { color: var(--flare-yellow); font-weight: 700; }

a { color: inherit; }

/* ---------- 布局基础 ---------- */

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 3.4vw, 48px);
}

#main-content {
  display: block;
  scroll-margin-top: calc(var(--strip-h) + 12px);
}

.grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

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

/* ---------- 通用文字组件 ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--signal-cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--signal-cyan);
  flex: 0 0 auto;
}

.sec-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sec-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--flare-yellow);
}

.link {
  position: relative;
  color: var(--bone-white);
  text-decoration: none;
  display: inline-block;
  padding-bottom: 3px;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ash-gray);
}

.link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--signal-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.link:hover::before,
.link:focus-visible::before { transform: scaleX(1); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--signal {
  background: var(--flare-yellow);
  color: var(--pitch-black);
}

.btn--signal:hover { background: var(--bone-white); }

.btn--cyan {
  background: transparent;
  color: var(--signal-cyan);
  border-color: var(--signal-cyan);
}

.btn--cyan:hover {
  background: var(--signal-cyan);
  color: var(--pitch-black);
}

.btn--ghost {
  background: transparent;
  color: var(--bone-white);
  border-color: var(--hair);
}

.btn--ghost:hover {
  border-color: var(--signal-cyan);
  color: var(--signal-cyan);
}

/* ---------- 标签 ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  border: 1px solid var(--hair);
  border-radius: 2px;
  color: var(--bone-white);
}

.tag--red {
  border-color: var(--milan-red);
  background: var(--warm-red-mid);
  color: var(--bone-white);
}

.tag--yellow {
  border-color: var(--flare-yellow);
  background: var(--flare-yellow);
  color: var(--pitch-black);
}

.tag--cyan {
  border-color: var(--signal-cyan);
  color: var(--signal-cyan);
}

/* ---------- 面包屑 ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: clamp(18px, 2.4vw, 30px) 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ash-gray);
}

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

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

.crumbs__sep { color: var(--warm-red-mid); }

.crumbs__current { color: var(--bone-white); }

/* ---------- 卡片 ---------- */

.card {
  position: relative;
  background: var(--carbon);
  border: 1px solid var(--hair);
  border-radius: 2px;
  padding: clamp(18px, 2vw, 26px);
  transition: border-color 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--flare-yellow);
  transition: width 0.24s ease;
}

.card:hover { border-color: var(--signal-cyan); }
.card:hover::before { width: 24px; }

.card--notch {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

/* ---------- 图片容器基础规则 ---------- */

.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--carbon);
  border: 1px solid var(--hair);
  border-radius: 2px;
}

.figure__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: var(--deep-teal);
  background-image: linear-gradient(135deg, var(--deep-teal) 0%, var(--indigo-ink) 55%, var(--pitch-black) 100%);
  filter: contrast(1.04) saturate(0.95);
}

.figure--portrait .figure__media { aspect-ratio: 3 / 4; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }
.figure--wide .figure__media { aspect-ratio: 21 / 9; }

.figure--clip {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}

.figure__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 14px;
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ash-gray);
}

.figure__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  background: var(--flare-yellow);
  color: var(--pitch-black);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ---------- 分区 ---------- */

.zone { padding-block: clamp(48px, 7vw, 104px); }

.zone--light {
  background: var(--paper-mist);
  color: var(--pitch-black);
}

.zone--wine {
  background: var(--deep-wine);
  color: var(--bone-white);
}

.zone--teal {
  background: var(--deep-teal);
  color: var(--bone-white);
}

.zone--indigo {
  background: var(--indigo-ink);
  color: var(--bone-white);
}

.prose {
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.78;
  color: rgba(243, 240, 232, 0.86);
}

.zone--light .prose { color: #1B1B21; }
.prose p + p { margin-top: 1.05em; }
.prose h2, .prose h3 { margin-top: 1.6em; margin-bottom: 0.5em; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.3em; }
.prose li { margin-block: 0.35em; }

/* ---------- 选项卡 ---------- */

.tabs {
  display: flex;
  flex-direction: column;
  background: var(--carbon);
  border: 1px solid var(--hair);
  border-radius: 2px;
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--hair);
}

.tabs__btn {
  appearance: none;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--hair-soft);
  padding: 14px 18px;
  color: var(--ash-gray);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.tabs__btn:hover { color: var(--bone-white); }

.tabs__btn[aria-selected="true"] {
  background: var(--deep-wine);
  color: var(--bone-white);
  box-shadow: inset 0 -3px 0 var(--signal-cyan);
}

.tabs__panel { padding: clamp(18px, 2.4vw, 28px); }
.tabs__panel[hidden] { display: none; }

/* ============================================================
   头部
   ============================================================ */

.site-header {
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--rail-w) + 12px);
  z-index: 300;
  padding: 10px 18px;
  background: var(--flare-yellow);
  color: var(--pitch-black);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-240%);
  transition: transform 0.2s ease;
}

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

/* 赛事信号带 */
.signal-strip {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--strip-h);
  padding: 0 20px;
  background: var(--carbon);
  border-bottom: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ash-gray);
}

.signal-strip__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal-cyan);
  box-shadow: 0 0 0 3px rgba(47, 243, 224, 0.16);
  animation: strip-pulse 1.2s steps(2, end) infinite;
}

@keyframes strip-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.signal-strip__text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ash-gray);
}

.signal-strip__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--signal-cyan);
  border-radius: 2px;
  color: var(--signal-cyan);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.signal-strip__cta:hover {
  background: var(--signal-cyan);
  color: var(--pitch-black);
}

.signal-strip__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--signal-cyan);
  transform: scaleX(0);
  transform-origin: left center;
}

/* 侧轨 */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 80;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 14px 0 10px;
  background: var(--pitch-black);
  border-right: 1px solid var(--hair);
}

.rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  background: repeating-linear-gradient(180deg, rgba(243, 240, 232, 0.13) 0 1px, transparent 1px 10px);
  pointer-events: none;
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 10px 14px;
  padding: 4px 6px 16px;
  border-bottom: 1px solid var(--hair-soft);
  color: var(--bone-white);
  text-decoration: none;
}

.rail__brand-mark {
  position: relative;
  padding-top: 14px;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--bone-white);
}

.rail__brand-mark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 4px;
  background: var(--milan-red);
  transform: translateX(-50%);
}

.rail__brand-sub {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ash-gray);
}

.rail__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(243, 240, 232, 0.24);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.18s ease;
}

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

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

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

.rail__toggle-bar::before { top: -6px; }
.rail__toggle-bar::after { top: 6px; }

.site-header[data-open] .rail__toggle-bar { background: transparent; }
.site-header[data-open] .rail__toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .rail__toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.rail__nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

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

.rail__item { display: block; }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 2px;
  border-left: 3px solid transparent;
  color: var(--ash-gray);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.rail__link:hover {
  color: var(--bone-white);
  background: rgba(243, 240, 232, 0.06);
  border-left-color: var(--flare-yellow);
}

.rail__idx {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--ash-gray);
  transition: color 0.18s ease;
}

.rail__label {
  writing-mode: vertical-rl;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
}

.rail__link:hover .rail__idx { color: var(--flare-yellow); }

.rail__link[aria-current="page"] {
  color: var(--bone-white);
  background: var(--deep-wine);
  border-left-color: var(--signal-cyan);
}

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

.rail__foot {
  display: flex;
  justify-content: center;
  margin: 14px 10px 0;
  padding: 14px 8px 4px;
  border-top: 1px solid var(--hair-soft);
}

.rail__note {
  writing-mode: vertical-rl;
  max-width: none;
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--ash-gray);
}

/* 侧轨联赛图例抽屉 */
.rail__drawer {
  position: fixed;
  top: var(--strip-h);
  left: var(--rail-w);
  bottom: 0;
  z-index: 75;
  width: 272px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 22px;
  background: var(--carbon);
  border-right: 1px solid var(--hair);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-12px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.rail:hover .rail__drawer,
.rail:focus-within .rail__drawer {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.rail__drawer-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--signal-cyan);
}

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

.rail__legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--hair-soft);
  font-size: 13px;
  color: var(--bone-white);
}

.rail__legend-swatch {
  flex: 0 0 auto;
  width: 10px;
  height: 14px;
  border-radius: 1px;
  background: var(--ash-gray);
}

.rail__legend-swatch--red { background: var(--milan-red); }
.rail__legend-swatch--cyan { background: var(--signal-cyan); }
.rail__legend-swatch--yellow { background: var(--flare-yellow); }

.rail__legend-key {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ash-gray);
}

.rail__drawer-note {
  max-width: none;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ash-gray);
}

.rail__drawer-link {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--signal-cyan);
  color: var(--bone-white);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease;
}

.rail__drawer-link:hover { color: var(--signal-cyan); }

/* ============================================================
   页脚
   ============================================================ */

.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background: var(--carbon);
  border-top: 1px solid var(--hair);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(240px, 45%);
  height: 3px;
  background: var(--milan-red);
}

.footer__band { padding-top: clamp(28px, 4vw, 44px); }

.footer__tagline {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--bone-white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--bone-white);
  text-decoration: none;
}

.footer__mark::before {
  content: "";
  width: 10px;
  height: 22px;
  background: var(--milan-red);
  transform: skewX(-8deg);
  flex: 0 0 auto;
}

.footer__mark:hover { color: var(--signal-cyan); }

.footer__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ash-gray);
}

.footer__note {
  max-width: 34ch;
  font-size: 12.5px;
  line-height: 1.68;
  color: var(--ash-gray);
}

.footer__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--signal-cyan);
}

.footer__group-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--hair);
}

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

.footer__link {
  position: relative;
  display: inline-block;
  padding-left: 0;
  font-size: 14.5px;
  color: var(--ash-gray);
  text-decoration: none;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.footer__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--signal-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.footer__link:hover {
  color: var(--bone-white);
  padding-left: 12px;
}

.footer__link:hover::before { transform: scaleX(1); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--hair-soft);
}

.footer__contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash-gray);
}

.footer__contact-value {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--bone-white);
  word-break: break-word;
}

.footer__contact-value--text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ash-gray);
}

.footer__legal-line { max-width: none; }

.footer__legal-line--dim { color: var(--warm-red-mid); }

.footer__top {
  appearance: none;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid rgba(243, 240, 232, 0.24);
  border-radius: 2px;
  color: var(--bone-white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

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

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: clamp(28px, 4vw, 40px);
  }

  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  body {
    padding-left: 0;
    padding-top: 0;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--pitch-black);
  }

  .skip-link { left: 12px; }

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

  .signal-strip {
    position: static;
    height: auto;
    padding: 7px 14px;
    gap: 10px;
    font-size: 10.5px;
    border-bottom: 1px solid var(--hair-soft);
  }

  .signal-strip__cta {
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .signal-strip__progress { display: none; }

  .rail {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--hair);
  }

  .rail::after { display: none; }

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

  .rail__brand-mark {
    writing-mode: horizontal-tb;
    padding-top: 0;
    padding-left: 12px;
    font-size: 18px;
    letter-spacing: 0.1em;
  }

  .rail__brand-mark::before {
    top: 50%;
    left: 0;
    width: 4px;
    height: 16px;
    transform: translateY(-50%);
  }

  .rail__brand-sub { display: none; }

  .rail__toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .rail__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    max-height: calc(100vh - 110px);
    padding: 6px;
    background: var(--carbon);
    border-bottom: 1px solid var(--hair);
    overflow-y: auto;
  }

  .site-header[data-open] .rail__nav { display: flex; }

  .rail__list { width: 100%; }

  .rail__link {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--hair-soft);
  }

  .rail__link:hover { border-left-color: var(--flare-yellow); }

  .rail__idx {
    width: 30px;
    font-size: 10px;
  }

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

  .rail__foot { display: none; }

  .rail__drawer { display: none; }

  .footer__legal { justify-content: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__tagline { max-width: none; }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .signal-strip__dot { animation: none; }
}
