/* =========================================================
   IM电竞馆 · 共享样式 /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, p, ul, ol, li, dl, dt, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #080A0F;
  --ink-2: #0C1017;
  --panel: #12161F;
  --line: #232A3A;
  --cyan: #00E5D6;
  --purple: #7B4DFF;
  --orange: #FF6A2B;
  --lime: #C6FF3D;
  --paper: #F2E9D8;
  --text: #E9EEF8;
  --muted: #8B94A8;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-hard: 8px 8px 0 rgba(0, 0, 0, .55);
  --shadow-hard-sm: 4px 4px 0 rgba(0, 0, 0, .6);
  --rail-w: 88px;
}

/* ---------- 3. 基础排版与底色 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 420px at 78% -10%, rgba(123, 77, 255, .18), transparent 70%),
    radial-gradient(700px 380px at 4% 8%, rgba(0, 229, 214, .12), transparent 72%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .005em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(to right, rgba(35, 42, 58, .65) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(35, 42, 58, .65) 1px, transparent 1px);
  background-size: 64px 64px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.18;
}

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

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

/* ---------- 4. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 760px; }

.section { padding: 48px 0; }
.section--tight { padding: 24px 0; }

.stack { display: flex; flex-direction: column; gap: 16px; }

.grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}

/* ---------- 5. 标题与文本 ---------- */
.page-title {
  font-size: clamp(30px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.06;
}
.section-title {
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 900;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--cyan);
  flex: 0 0 auto;
}
.lede { font-size: 18px; color: var(--muted); line-height: 1.7; }

.prose { max-width: 38em; }
.prose p { margin: 0 0 1.1em; }
.prose h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 1.6em 0 .6em;
}
.prose h3 { font-size: 20px; font-weight: 800; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--cyan); font-family: var(--font-mono); }
.prose strong { color: #fff; font-weight: 800; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(0, 229, 214, .45); }
.prose a:hover { background: rgba(0, 229, 214, .14); }

/* ---------- 6. 面板与强调带 ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 3px solid var(--line);
  box-shadow: var(--shadow-hard);
  padding: 24px;
}
.panel--paper {
  background: var(--paper);
  color: #0B0D12;
  border-color: #05060A;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .7);
}
.panel--paper .panel-sub,
.panel--paper .muted { color: #4A4535; }
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 3px solid var(--line);
}
.panel-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; }

@media (max-width: 899px) {
  .panel, .panel--paper { box-shadow: none; }
  .panel { border-left: 0; border-right: 0; border-radius: 0; }
}

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 16px 20px;
  background: var(--cyan);
  color: #04181A;
  border: 3px solid #000;
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.01em;
}
.band--purple { background: var(--purple); color: #F4F0FF; }
.band--paper { background: var(--paper); color: #0B0D12; }

.callout {
  background: var(--paper);
  color: #0B0D12;
  border: 3px solid #000;
  box-shadow: var(--shadow-hard-sm);
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.01em;
}

.axis-line { position: relative; padding-left: 22px; }
.axis-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  bottom: .3em;
  width: 3px;
  background: var(--cyan);
}

/* ---------- 7. 状态、数据与标签 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--ink-2);
  border: 3px solid var(--line);
  box-shadow: var(--shadow-hard-sm);
}
.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1;
  color: var(--lime);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--ink-2);
  border: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
}
.tag--cyan { border-color: var(--cyan); color: var(--cyan); }
.tag--purple { border-color: var(--purple); color: #C4AEFF; }
.tag--orange { border-color: var(--orange); color: #FFB48C; }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 3px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
  box-shadow: var(--shadow-hard-sm);
  transition: background-color .18s var(--ease), color .18s var(--ease),
              transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { background: var(--cyan); color: #04181A; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0, 0, 0, .6); }
.btn--solid { background: var(--cyan); color: #04181A; }
.btn--solid:hover { background: #6BFFF4; }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--panel); color: var(--cyan); border-color: var(--cyan); }
.btn--warm { border-color: var(--paper); color: var(--paper); }
.btn--warm:hover { background: var(--paper); color: #0B0D12; }

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a { color: var(--muted); border-bottom: 1px solid var(--line); }
.breadcrumb a:hover { color: var(--cyan); border-color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- 10. 步骤 ---------- */
.step-list { display: grid; gap: 14px; counter-reset: step; }
.step {
  position: relative;
  padding: 16px 20px 16px 66px;
  background: var(--panel);
  border: 3px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 17px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--cyan);
}
.step-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 4px;
}

/* ---------- 11. 标签页 ---------- */
.tabs { border-top: 3px solid var(--line); padding-top: 20px; }
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 3px solid var(--line);
}
.tab {
  position: relative;
  top: 3px;
  padding: 10px 16px;
  border: 3px solid transparent;
  border-bottom: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--muted);
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] {
  background: var(--panel);
  border-color: var(--line);
  color: var(--cyan);
  box-shadow: inset 0 3px 0 var(--cyan);
}
.tab-panel { padding: 22px 0 4px; }

/* ---------- 12. 图片容器（页面阶段放图） ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(0, 229, 214, .10), transparent 60%),
    var(--ink-2);
  border: 3px solid var(--line);
  box-shadow: var(--shadow-hard);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.06);
}
.media-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--cyan);
  opacity: .75;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

@media (max-width: 899px) {
  .media-frame { box-shadow: none; }
}

/* ---------- 13. 进入动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   14. 头部（移动端 sticky 顶栏 / 桌面端 88px 轨道）
   ========================================================= */
.skip-link {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cyan);
  color: #04181A;
  border: 3px solid #000;
  font-family: var(--font-display);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--panel);
  border-bottom: 3px solid var(--line);
}

/* 顶栏第一行 */
.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--panel);
  border-bottom: 2px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 2px;
}
.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--cyan);
  color: #04201E;
  border: 3px solid #000;
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.06em;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  color: var(--text);
}
.brand-tag {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 移动端开关 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--ink-2);
  border: 3px solid var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: background-color .2s var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: transform .2s var(--ease);
}
.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 { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 抽屉导航（移动端默认） */
.site-nav {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  width: min(310px, 84vw);
  padding: 108px 0 32px;
  overflow-y: auto;
  background: var(--ink-2);
  border-right: 3px solid var(--cyan);
  box-shadow: 10px 0 0 rgba(0, 0, 0, .55);
  transform: translateX(-104%);
  transition: transform .32s var(--ease);
}
.site-nav[data-open] { transform: translateX(0); }

.nav-heading {
  padding: 0 20px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--muted);
}
.nav-list { display: flex; flex-direction: column; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 2px solid var(--line);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav-link:hover { color: var(--cyan); background: rgba(0, 229, 214, .07); }
.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: linear-gradient(90deg, rgba(0, 229, 214, .16), transparent 80%);
  box-shadow: inset 6px 0 0 var(--cyan);
}
.nav-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}
.nav-link[aria-current="page"] .nav-idx { color: var(--cyan); }
.nav-label { display: block; }

/* 底部状态与快速入口 */
.rail-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--ink-2);
  border-top: 2px solid var(--line);
}
.status-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 214, .9);
  animation: statusPulse 1.2s var(--ease) infinite alternate;
}
@keyframes statusPulse {
  from { opacity: .35; }
  to { opacity: 1; }
}
.status-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.status-version { display: none; }

.quick-entry { position: relative; flex: 0 0 auto; }
.quick-toggle {
  min-height: 40px;
  padding: 8px 14px;
  background: var(--cyan);
  color: #04181A;
  border: 3px solid #000;
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.quick-toggle:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0, 0, 0, .6); }

.quick-paths {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  width: 208px;
  background: var(--panel);
  border: 3px solid var(--line);
  box-shadow: var(--shadow-hard);
}
.quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.quick-link:last-child { border-bottom: 0; }
.quick-link:hover { background: rgba(0, 229, 214, .12); color: var(--cyan); }
.quick-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

/* 滚动进度（移动端隐藏） */
.rail-progress { display: none; }

/* ---------- 桌面端：固定 88px 轨道 ---------- */
@media (min-width: 900px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    border-right: 3px solid var(--line);
    background: var(--panel);
  }

  .rail-head {
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding: 18px 0 14px;
    background: transparent;
    border-bottom: 3px solid var(--line);
  }
  .brand { flex-direction: column; align-items: center; gap: 10px; padding: 0; }
  .brand-text { align-items: center; }
  .brand-name {
    writing-mode: vertical-rl;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .22em;
  }
  .brand-tag { display: none; }
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    flex: 1 1 auto;
    width: auto;
    padding: 14px 0;
    overflow: visible;
    background: transparent;
    border-right: 0;
    box-shadow: none;
    transform: none;
  }
  .nav-heading { display: none; }
  .nav-list { gap: 8px; align-items: center; }
  .nav-link {
    position: relative;
    justify-content: center;
    width: 62px;
    height: 50px;
    padding: 0;
    border: 2px solid var(--line);
    background: var(--ink-2);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
  }
  .nav-link:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    background: var(--panel);
  }
  .nav-link[aria-current="page"] {
    background: var(--cyan);
    color: #04181A;
    border-color: var(--cyan);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, .9);
  }
  .nav-link[aria-current="page"] .nav-idx { color: #04201E; }

  .nav-label {
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    z-index: 5;
    padding: 6px 12px;
    background: var(--panel);
    border: 3px solid var(--cyan);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, .75);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-10px);
    transition: opacity .18s var(--ease), transform .18s var(--ease);
  }
  .nav-link:hover .nav-label,
  .nav-link:focus-visible .nav-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  .rail-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 9px 18px;
    background: transparent;
    border-top: 3px solid var(--line);
  }
  .status-strip { flex: 0 0 auto; justify-content: center; padding: 0; }
  .status-dot { display: none; }
  .status-text { display: none; }
  .status-version {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--cyan);
  }
  .quick-toggle {
    width: 100%;
    min-height: 44px;
    padding: 6px 4px;
    font-size: 13px;
    line-height: 1.2;
  }
  .quick-paths {
    top: auto;
    bottom: 0;
    right: auto;
    left: calc(100% + 12px);
    width: 196px;
  }

  .rail-progress {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: rgba(0, 229, 214, .16);
    pointer-events: none;
  }
  .rail-progress-fill {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 229, 214, .75);
    transform: scaleY(0);
    transform-origin: top center;
  }

  .skip-link { left: calc(var(--rail-w) + 10px); }
}

@media (min-width: 900px) and (max-height: 720px) {
  .brand-name { font-size: 13px; letter-spacing: .16em; }
  .brand-mark { width: 36px; height: 36px; font-size: 15px; }
  .nav-link { height: 44px; }
  .rail-head { padding: 12px 0 10px; }
}

/* =========================================================
   15. 页脚
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: 72px;
  background: var(--panel);
  border-top: 3px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 3px;
  background: var(--cyan);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 32px;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--cyan);
  color: #04201E;
  border: 3px solid #000;
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.06em;
}
.footer-name {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -.02em;
}
.footer-tag {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.footer-stats {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding-left: 14px;
  border-left: 3px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-stats .mono { color: var(--cyan); }

.footer-col-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--cyan);
  text-transform: uppercase;
}
.footer-links { display: grid; gap: 8px; }
.footer-links a {
  display: inline-block;
  padding: 2px 0;
  color: var(--text);
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer-links a:hover { color: var(--cyan); border-color: var(--cyan); }

.footer-contact-list { display: grid; gap: 10px; }
.footer-contact-list li {
  display: grid;
  gap: 2px;
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
}
.contact-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}
.footer-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px 26px;
  border-top: 3px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom .mono { color: var(--muted); }

@media (min-width: 760px) {
  .footer-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
@media (min-width: 1024px) {
  .footer-shell {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1.2fr);
    align-items: start;
    padding-top: 64px;
  }
  .footer-nav { grid-column: auto; }
}

/* ---------- 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;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .site-nav { transition: none; }
}
