/* ============================================================
   爱游戏赛场 · 共享样式 /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, blockquote, dl, dd, fieldset {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

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

summary { cursor: pointer; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 色彩 */
  --sea-deep: #0B1B2E;
  --night: #122C4A;
  --glass: #0E3A46;
  --ink: #050B14;
  --brand: #FF4A1C;
  --brand-soft: #FF8A3D;
  --neon: #22F0C8;
  --violet: #7C5CFF;
  --silver: #C7D0DA;
  --white: #F4F8FC;
  --muted: #8A9DB2;
  --amber: #FFC24B;

  /* 语义色 */
  --line: rgba(199, 208, 218, 0.16);
  --line-strong: rgba(199, 208, 218, 0.32);
  --panel: linear-gradient(180deg, rgba(18, 44, 74, 0.92), rgba(11, 27, 46, 0.92));
  --panel-glass: linear-gradient(180deg, rgba(14, 58, 70, 0.62), rgba(11, 27, 46, 0.62));

  /* 尺寸 */
  --rail-w: 88px;
  --cut: 18px;
  --cut-sm: 12px;
  --radius: 16px;
  --pill: 999px;
  --shell-max: 1180px;
  --bottom-bar: 70px;

  /* 阴影 */
  --shadow-lg: 0 26px 60px -28px rgba(0, 0, 0, 0.95);
  --shadow-glow: 0 0 0 1px rgba(34, 240, 200, 0.35), 0 18px 40px -22px rgba(34, 240, 200, 0.45);

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

  /* 动效 */
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --scroll-progress: 0;
}

/* ---------- 3. 基础排版与夜赛底色 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--white);
  background-color: var(--sea-deep);
  background-image:
    repeating-linear-gradient(118deg, rgba(199, 208, 218, 0.045) 0 1px, transparent 1px 15px),
    radial-gradient(1100px 620px at 84% -10%, rgba(255, 74, 28, 0.16), transparent 62%),
    radial-gradient(900px 620px at 4% 10%, rgba(34, 240, 200, 0.10), transparent 60%),
    radial-gradient(820px 540px at 52% 106%, rgba(124, 92, 255, 0.14), transparent 64%);
  background-attachment: fixed;
  overflow-x: hidden;
}

::selection {
  background: rgba(34, 240, 200, 0.28);
  color: var(--white);
}

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

/* ---------- 4. 页面骨架 ---------- */
#main-content {
  display: block;
  min-height: 60vh;
  padding-left: var(--rail-w);
  scroll-margin-top: 0;
}

.content-wrap {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 46px);
}

.section { padding-block: clamp(56px, 8vw, 118px); }
.section--tight { padding-block: clamp(30px, 4.6vw, 62px); }

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line-strong), rgba(199, 208, 218, 0));
}

/* ---------- 5. 通用文字 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--neon);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--neon));
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 9vw, 7.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.headline {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.22;
  color: var(--white);
}

.lede {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #C9D7E5;
  max-width: 60ch;
}

.prose {
  max-width: 66ch;
  color: #C6D4E2;
  font-size: 1rem;
}

.prose p + p { margin-top: 1.2em; }

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

.num { color: var(--neon); }

/* ---------- 6. 按钮 / 标签 / 筛选片 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  color: #180A04;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(255, 74, 28, 0.9);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--white);
}

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

.btn--quiet {
  padding-inline: 6px;
  color: var(--neon);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--silver);
}

.tag--neon { color: var(--neon); border-color: rgba(34, 240, 200, 0.45); background: rgba(34, 240, 200, 0.1); }
.tag--violet { color: #CDBFFF; border-color: rgba(124, 92, 255, 0.5); background: rgba(124, 92, 255, 0.12); }
.tag--amber { color: var(--amber); border-color: rgba(255, 194, 75, 0.45); background: rgba(255, 194, 75, 0.1); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  font-size: 0.84rem;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.chip:hover { color: var(--white); border-color: var(--silver); }

.chip[aria-pressed="true"] {
  color: #04121A;
  background: var(--neon);
  border-color: var(--neon);
  font-weight: 700;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(5, 11, 20, 0.7);
}

.segmented__btn {
  padding: 8px 16px;
  border-radius: var(--pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

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

.segmented__btn.is-active,
.segmented__btn[aria-selected="true"] {
  color: var(--neon);
  background: rgba(34, 240, 200, 0.14);
}

/* ---------- 7. 斜向网格 / 错位容器 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.3vw, 28px);
}

.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-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.offside-a { grid-column: 1 / span 7; }
.offside-b { grid-column: 5 / span 8; }

/* ---------- 8. 切角面板 / 数据卡 / 指标 ---------- */
.cut-panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  background: var(--panel);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.cut-panel--accent {
  background: var(--panel-glass);
  border-color: rgba(34, 240, 200, 0.32);
  box-shadow: inset 0 0 0 1px rgba(34, 240, 200, 0.08);
}

.data-card {
  position: relative;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%);
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.data-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.data-card__label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.data-card__value {
  display: block;
  margin-block: 8px 4px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  color: var(--neon);
}

.data-card__meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.stat {
  padding-left: 14px;
  border-left: 2px solid rgba(34, 240, 200, 0.45);
}

.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  line-height: 1.15;
  color: var(--white);
}

.stat__label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- 9. 时间轴 / 折叠面板 ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 22px;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--neon), rgba(34, 240, 200, 0.06) 70%, rgba(124, 92, 255, 0.5));
}

.timeline__item { position: relative; }

.timeline__dot {
  position: absolute;
  left: -28px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sea-deep);
  border: 2px solid var(--neon);
}

.timeline__item.is-active .timeline__dot {
  background: var(--neon);
  box-shadow: 0 0 0 5px rgba(34, 240, 200, 0.16);
}

.accordion {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-glass);
  overflow: hidden;
}

.accordion + .accordion { margin-top: 10px; }

.accordion__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  font-size: 1.02rem;
  font-weight: 700;
  list-style: none;
}

.accordion__head::-webkit-details-marker { display: none; }

.accordion__head::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--neon);
  transition: transform 0.2s var(--ease-out);
}

.accordion[open] .accordion__head { color: var(--neon); }
.accordion[open] .accordion__head::after { transform: rotate(45deg); }

.accordion__body {
  padding: 0 18px 18px;
  font-size: 0.95rem;
  color: #C6D4E2;
}

/* ---------- 10. 图片容器（页面阶段放置占位或图片） ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(118deg, rgba(199, 208, 218, 0.06) 0 1px, transparent 1px 12px),
    radial-gradient(70% 70% at 18% 8%, rgba(255, 74, 28, 0.22), transparent 70%),
    linear-gradient(160deg, rgba(18, 44, 74, 0.95), rgba(5, 11, 20, 0.95));
}

.img-frame__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.img-frame__media--tall { aspect-ratio: 3 / 4; }
.img-frame__media--wide { aspect-ratio: 21 / 9; }

.img-frame__caption {
  position: relative;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.breadcrumb__item::after {
  content: "/";
  margin-left: 8px;
  color: rgba(199, 208, 218, 0.32);
}

.breadcrumb__item:last-child::after { content: ""; }
.breadcrumb__item a:hover { color: var(--neon); }
.breadcrumb__item[aria-current="page"] { color: var(--white); }

/* ---------- 12. 跳转链接与返回顶部 ---------- */
.skip-link {
  position: fixed;
  top: -70px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--neon);
  color: #04121A;
  font-weight: 800;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus { top: 0; }

.back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(34, 240, 200, 0.45);
  background: rgba(5, 11, 20, 0.86);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- 13. 头部：品牌轨道 ---------- */
.site-header { position: relative; z-index: 60; }

.brand-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 62;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: var(--rail-w);
  padding: 24px 0 26px;
  background: linear-gradient(180deg, #071120 0%, var(--ink) 55%, #071120 100%);
  border-right: 1px solid var(--line);
}

.rail-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.rail-mark__glyph {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  box-shadow: 0 10px 24px -12px rgba(255, 74, 28, 0.9);
}

.rail-mark__text {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.34em;
}

.rail-badge {
  writing-mode: vertical-rl;
  padding: 10px 4px;
  border-radius: var(--pill);
  border: 1px solid rgba(34, 240, 200, 0.35);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  color: var(--neon);
}

.rail-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.rail-link {
  writing-mode: vertical-rl;
  padding: 12px 6px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--white);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.rail-link:hover { color: var(--neon); }

.rail-link--ghost {
  border-color: var(--line-strong);
  color: var(--silver);
  font-weight: 600;
}

.rail-link--ghost:hover,
.rail-link--ghost[aria-expanded="true"] {
  border-color: var(--amber);
  color: var(--amber);
}

.rail-tip {
  position: fixed;
  left: calc(var(--rail-w) + 12px);
  bottom: 30px;
  z-index: 90;
  width: 236px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 194, 75, 0.5);
  background: rgba(5, 11, 20, 0.97);
  color: #DCE6F0;
  font-size: 0.82rem;
  line-height: 1.6;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  box-shadow: var(--shadow-lg);
}

.rail-tip[hidden] { display: none; }

.rail-meta {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-block: 14px;
}

.rail-meta__line {
  position: relative;
  flex: 1;
  width: 2px;
  min-height: 60px;
  border-radius: 2px;
  background: rgba(199, 208, 218, 0.18);
  overflow: hidden;
}

.rail-meta__line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: calc(var(--scroll-progress, 0) * 100%);
  background: linear-gradient(180deg, var(--neon), var(--violet));
  transition: height 0.12s linear;
}

.rail-meta__dot {
  position: absolute;
  bottom: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 74, 28, 0.18);
}

/* ---------- 14. 头部：悬浮胶囊导航 ---------- */
.nav-capsule {
  position: fixed;
  top: 16px;
  left: calc(var(--rail-w) + 22px);
  right: 22px;
  z-index: 58;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1080px;
  margin-inline: auto;
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(8, 18, 32, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}

.capsule-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  color: var(--white);
  white-space: nowrap;
}

.capsule-nav { display: flex; flex: 1; }

.capsule-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.capsule-nav__list a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.capsule-nav__list a:hover {
  color: var(--white);
  background: rgba(255, 138, 61, 0.12);
}

.capsule-nav__list a[aria-current="page"] {
  color: var(--neon);
  background: rgba(34, 240, 200, 0.14);
  box-shadow: inset 0 0 0 1px rgba(34, 240, 200, 0.4);
}

.capsule-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.capsule-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  color: #180A04;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.capsule-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(255, 74, 28, 0.9);
}

.capsule-cta__long { display: inline; }
.capsule-cta__short { display: none; }

.nav-toggle {
  position: relative;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
}

.nav-toggle:hover { border-color: var(--neon); color: var(--neon); }

.nav-toggle__bars {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease-out), top 0.2s var(--ease-out);
}

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

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

.nav-toggle__label { letter-spacing: 0.06em; }

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  background: linear-gradient(180deg, rgba(5, 11, 20, 0.2), var(--ink) 34%);
  border-top: 1px solid var(--line);
}

.footer-stripe {
  height: 4px;
  background: linear-gradient(90deg,
    var(--brand) 0 16%,
    var(--brand-soft) 16% 30%,
    var(--neon) 30% 44%,
    var(--violet) 44% 58%,
    rgba(199, 208, 218, 0.35) 58% 100%);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.05fr 1.9fr 1.25fr;
  gap: clamp(28px, 4vw, 52px);
  padding-block: clamp(40px, 6vw, 76px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.footer-brand__badge {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--neon);
}

.footer-brand__note {
  margin-top: 14px;
  max-width: 26ch;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer-brand .btn { margin-top: 20px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

.footer-col__list { display: grid; gap: 10px; }

.footer-col__list a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-col__list a:hover { color: var(--neon); }

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

.contact-list { display: grid; gap: 14px; }

.contact-item {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(199, 208, 218, 0.14);
}

.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }

.contact-item__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--silver);
}

.contact-item__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  color: var(--white);
  word-break: break-word;
}

.copy-btn {
  justify-self: start;
  margin-top: 4px;
  padding: 5px 12px;
  border-radius: var(--pill);
  border: 1px solid rgba(34, 240, 200, 0.4);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--neon);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.copy-btn:hover { background: rgba(34, 240, 200, 0.12); }

.copy-btn.is-done {
  background: var(--neon);
  border-color: var(--neon);
  color: #04121A;
}

.footer-bar {
  border-top: 1px solid var(--line);
  background: rgba(3, 8, 14, 0.8);
}

.footer-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-bar__icp { color: var(--silver); }
.footer-bar__note { flex: 1 1 320px; }
.footer-bar__year { margin-left: auto; }

/* ---------- 16. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ---------- 17. 平板与移动端 ---------- */
@media (max-width: 1100px) {
  .span-3, .span-4 { grid-column: span 6; }
  .span-5 { grid-column: span 6; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  :root {
    --rail-w: 0px;
    --bottom-bar: 70px;
  }

  body { font-size: 16px; }

  #main-content {
    padding-left: 0;
    padding-bottom: calc(var(--bottom-bar) + 22px);
  }

  .site-footer { padding-bottom: var(--bottom-bar); }

  /* 轨道 → 底部拇指条 */
  .brand-rail {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: auto;
    height: var(--bottom-bar);
    padding: 0 14px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .brand-rail::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: left center;
    background: linear-gradient(90deg, var(--neon), var(--brand));
    transition: transform 0.12s linear;
  }

  .rail-mark { flex-direction: row; gap: 8px; }
  .rail-mark__glyph { width: 26px; height: 26px; }

  .rail-mark__text {
    writing-mode: horizontal-tb;
    font-size: 0.86rem;
    letter-spacing: 0.12em;
  }

  .rail-badge {
    writing-mode: horizontal-tb;
    padding: 4px 9px;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
  }

  .rail-actions {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    margin-left: auto;
  }

  .rail-link {
    writing-mode: horizontal-tb;
    padding: 9px 13px;
    border-radius: var(--pill);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
  }

  .rail-meta { display: none; }

  .rail-tip {
    left: 12px;
    right: 12px;
    bottom: calc(var(--bottom-bar) + 12px);
    width: auto;
  }

  /* 胶囊 → 两颗浮动按钮 */
  .nav-capsule {
    top: 12px;
    left: auto;
    right: 12px;
    max-width: none;
    margin: 0;
    gap: 10px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .capsule-brand { display: none; }

  .capsule-tools { gap: 10px; margin-left: 0; }

  .capsule-cta {
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.86rem;
    box-shadow: 0 16px 32px -16px rgba(255, 74, 28, 0.95);
  }

  .capsule-cta__long { display: none; }
  .capsule-cta__short { display: inline; }

  .nav-toggle {
    display: inline-flex;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
    background: rgba(8, 18, 32, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
  }

  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
  }

  /* 导航面板 */
  .capsule-nav {
    display: block;
    position: fixed;
    top: 76px;
    left: 12px;
    right: 12px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(34, 240, 200, 0.3);
    border-radius: 18px;
    background: rgba(7, 17, 32, 0.97);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0.22s;
  }

  .capsule-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .capsule-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .capsule-nav__list a {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 0.98rem;
  }

  .back-top { right: 14px; bottom: calc(var(--bottom-bar) + 16px); }
}

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

  .offside-a,
  .offside-b { grid-column: 1 / -1; }

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

@media (max-width: 640px) {
  .rail-badge { display: none; }

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

  .footer-bar__year { margin-left: 0; }

  .display { letter-spacing: -0.01em; }
}

/* ---------- 18. 无障碍与降级动效 ---------- */
@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;
    transition-delay: 0ms !important;
  }

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

  .rail-meta__line::after,
  .brand-rail::before {
    transition: none;
  }
}
