/* ==========================================================================
   电玩试玩会馆 · 共享样式 /assets/site.css
   霓虹电玩厅 + 试玩控制台：深蓝黑画布、侧边品牌轨道、扫描线与等宽仪表
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: calc(100% * var(--scale));
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, aside { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- 变量 ---------- */
:root {
  --ink: #070B18;
  --night: #0E1730;
  --cyan: #3DF5E6;
  --violet: #8B5CF6;
  --magenta: #FF3D9A;
  --orange: #FF9F45;
  --bone: #F3F0E8;
  --rock: #8A94A6;
  --moss: #6FA36F;
  --clay: #C97B63;

  --rail-w: 88px;
  --scale: 1;

  --font-title: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --line: rgba(243, 240, 232, 0.13);
  --glass: rgba(14, 23, 48, 0.78);
  --glass-line: rgba(61, 245, 230, 0.28);

  --pad-inline: clamp(16px, 3vw, 40px);
  --max-w: 1440px;
}

html[data-scale="1"] { --scale: 1.07; }
html[data-scale="2"] { --scale: 1.14; }

/* ---------- 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--bone);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 88% -12%, rgba(139, 92, 246, 0.20), transparent 64%),
    radial-gradient(880px 520px at 4% 12%, rgba(61, 245, 230, 0.10), transparent 60%),
    linear-gradient(180deg, #070B18 0%, #0A1023 48%, #070B18 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(61, 245, 230, 0.05) 0,
    rgba(61, 245, 230, 0.05) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.55;
}

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

h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -0.01em; }

p { text-wrap: pretty; }

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

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

main { display: block; min-width: 0; }

/* ---------- 骨架容器 ---------- */
@media (min-width: 901px) {
  main { margin-left: var(--rail-w); }
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

@media (min-width: 901px) {
  .container { padding-left: clamp(24px, 3.4vw, 56px); }
}

.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid rgba(243, 240, 232, 0.07);
}

.section--night {
  background: linear-gradient(180deg, rgba(14, 23, 48, 0.92), rgba(7, 11, 24, 0.6));
  border-top-color: rgba(139, 92, 246, 0.28);
}

.section-head { display: grid; gap: 14px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head__title { font-size: clamp(1.7rem, 3vw, 2.6rem); }

/* ---------- 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--glass-line);
  border-radius: 2px;
  background:
    linear-gradient(150deg, #122043 0%, #0C1326 55%, #070B18 100%);
  isolation: isolate;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(7, 11, 24, 0.42) 0,
    rgba(7, 11, 24, 0.42) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
  z-index: 2;
}

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

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  margin: 0;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--bone);
  background: rgba(7, 11, 24, 0.82);
  border-top: 1px solid var(--glass-line);
  border-right: 1px solid var(--glass-line);
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

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

.btn--primary {
  background: var(--orange);
  color: #1A0D00;
  box-shadow: 0 12px 32px -20px var(--orange), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.btn--primary:hover { background: #FFB266; }

.btn--cyan { background: var(--cyan); color: #04121A; }
.btn--cyan:hover { background: #7BFFF4; }

.btn--ghost { border-color: rgba(61, 245, 230, 0.5); color: var(--bone); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--quiet { border-color: rgba(243, 240, 232, 0.18); color: var(--rock); }
.btn--quiet:hover { border-color: var(--bone); color: var(--bone); }

/* ---------- 标签 / 仪表 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.14);
  color: #CFC2FF;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.tag--cyan { border-color: rgba(61, 245, 230, 0.55); background: rgba(61, 245, 230, 0.12); color: #A9FFF8; }
.tag--moss { border-color: rgba(111, 163, 111, 0.6); background: rgba(111, 163, 111, 0.14); color: #B7DEB7; }
.tag--magenta { border-color: rgba(255, 61, 154, 0.55); background: rgba(255, 61, 154, 0.14); color: #FFB3D4; }
.tag--clay { border-color: rgba(201, 123, 99, 0.6); background: rgba(201, 123, 99, 0.14); color: #E8B7A6; }

.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

.meter {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 26px rgba(61, 245, 230, 0.42);
}

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background: linear-gradient(180deg, rgba(14, 23, 48, 0.94), rgba(7, 11, 24, 0.9));
  border: 1px solid var(--line);
}

.panel--skew {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
  border-color: rgba(61, 245, 230, 0.24);
}

/* ---------- 主标题街机处理 ---------- */
.title-arcade {
  transform: rotate(-2deg);
  transform-origin: 0 100%;
  -webkit-text-stroke: 1px rgba(61, 245, 230, 0.35);
  text-shadow: 3px 3px 0 rgba(255, 61, 154, 0.26), -3px -3px 0 rgba(61, 245, 230, 0.22);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--rock);
}

.breadcrumb a {
  color: var(--rock);
  text-decoration: none;
  border-bottom: 1px dotted rgba(138, 148, 166, 0.65);
}
.breadcrumb a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: rgba(138, 148, 166, 0.45); }
.breadcrumb li:last-child::after { content: none; }
.breadcrumb li[aria-current="page"] { color: var(--bone); }

/* ---------- 正文与导语 ---------- */
.lede {
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  color: rgba(243, 240, 232, 0.88);
}

.prose {
  max-width: 72ch;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(243, 240, 232, 0.88);
}
.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 1.9em 0 0.6em; }
.prose h3 { margin: 1.6em 0 0.5em; }
.prose ul, .prose ol { list-style: disc; padding-left: 1.25em; margin-bottom: 1.1em; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.35em 0; }
.prose a { color: var(--cyan); }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ==========================================================================
   共享头部
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 60;
}

/* 跳转链接 */
.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--rail-w) + 14px);
  z-index: 95;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--cyan);
  color: #04121A;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.16s ease;
}
.skip-link:focus-visible { transform: translateY(0); }

/* 阅读进度 */
.progress {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: 3px;
  z-index: 90;
  pointer-events: none;
  background: rgba(243, 240, 232, 0.08);
}
.progress__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 58%, var(--magenta));
  box-shadow: 0 0 16px rgba(61, 245, 230, 0.65);
  transition: width 0.1s linear;
}

/* 左侧品牌轨道 */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 0 22px;
  background: linear-gradient(180deg, #0E1730 0%, #070B18 58%, #0E1730 100%);
  border-right: 1px solid rgba(61, 245, 230, 0.18);
  box-shadow: 18px 0 46px -40px #000;
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--bone);
}

.rail__glyph {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #04121A;
  background: var(--cyan);
  padding: 6px 8px;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(61, 245, 230, 0.5);
}

.rail__word {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-title);
  font-size: 0.9375rem;
  font-weight: 900;
  letter-spacing: 0.32em;
  color: var(--bone);
  text-shadow: 0 0 14px rgba(139, 92, 246, 0.7);
}

.rail__meter {
  position: relative;
  flex: 1 1 auto;
  width: 4px;
  min-height: 60px;
  margin: 6px 0;
  border-radius: 2px;
  background: rgba(243, 240, 232, 0.1);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.rail__meter-fill {
  display: block;
  width: 100%;
  height: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--magenta), var(--cyan));
  transition: height 0.1s linear;
}

.rail__tag {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  color: var(--rock);
}
.rail__tag b { color: var(--magenta); font-weight: 700; }

/* 头部主体（双层导航） */
.header-body {
  position: sticky;
  top: 0;
  z-index: 65;
  margin-left: var(--rail-w);
  background: linear-gradient(180deg, rgba(7, 11, 24, 0.98) 0%, rgba(14, 23, 48, 0.96) 100%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.32);
  box-shadow: 0 16px 34px -30px #000;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 10px var(--pad-inline);
  border-bottom: 1px dashed rgba(243, 240, 232, 0.12);
}

.header-top__line {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--rock);
}
.header-top__line::before { content: "//"; color: var(--cyan); margin-right: 8px; }

.header-top__actions { display: flex; align-items: center; gap: 10px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.chip--ghost { color: var(--bone); border-color: rgba(243, 240, 232, 0.22); }
.chip--ghost:hover { color: var(--cyan); border-color: var(--cyan); }

.chip--accent { background: var(--orange); color: #1A0D00; }
.chip--accent:hover { background: #FFB266; color: #1A0D00; }

.nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0 var(--pad-inline);
}

.site-nav { flex: 1 1 auto; min-width: 0; }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item { display: block; }

.site-nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 14px 15px;
  border-radius: 2px;
  color: rgba(243, 240, 232, 0.78);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--violet);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 7px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.site-nav__link:hover { color: var(--bone); background: rgba(61, 245, 230, 0.08); }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] { color: var(--bone); }
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}
.site-nav__link[aria-current="page"] .site-nav__index { color: var(--cyan); }

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(61, 245, 230, 0.45);
  border-radius: 6px;
  background: rgba(61, 245, 230, 0.1);
  color: var(--bone);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle__bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

.nav-toggle__text { letter-spacing: 0.08em; }

/* 抽屉遮罩 */
.nav-veil {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(4, 8, 18, 0.7);
  border: 0;
  padding: 0;
}

/* ---------- 悬浮双按钮 ---------- */
.dock {
  position: fixed;
  right: clamp(12px, 2vw, 26px);
  bottom: clamp(12px, 2vw, 26px);
  z-index: 88;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dock__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(61, 245, 230, 0.45);
  background: rgba(14, 23, 48, 0.86);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 34px -20px #000;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}
.dock__btn:hover { border-color: var(--cyan); color: var(--cyan); }

.dock__btn--accent { border-color: rgba(255, 159, 69, 0.7); color: var(--orange); }
.dock__btn--accent:hover { background: var(--orange); border-color: var(--orange); color: #1A0D00; }

.dock__key {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--magenta);
}
.dock__btn--accent .dock__key { color: inherit; }

/* ---------- 显示设置浮层 ---------- */
.settings-panel {
  position: fixed;
  right: clamp(12px, 2vw, 26px);
  bottom: 104px;
  z-index: 89;
  width: min(310px, calc(100vw - 24px));
  padding: 18px;
  border: 1px solid rgba(139, 92, 246, 0.55);
  border-radius: 14px;
  background: rgba(11, 18, 38, 0.97);
  box-shadow: 0 26px 64px -28px #000;
  backdrop-filter: blur(10px);
}

.settings-panel__title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--bone);
}

.settings-panel__hint {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--rock);
}

.settings-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.settings-panel__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.settings-panel__foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(243, 240, 232, 0.14);
  font-size: 0.75rem;
  color: var(--rock);
}

.seg {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(243, 240, 232, 0.18);
  border-radius: 8px;
}

.seg__btn {
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--rock);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.seg__btn:hover { color: var(--bone); }
.seg__btn.is-active { background: var(--cyan); color: #04121A; }

/* ==========================================================================
   共享页脚
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(36px, 5vw, 64px) 0 24px;
  background: linear-gradient(180deg, #070B18 0%, #0E1730 46%, #070B18 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.32);
}

@media (min-width: 901px) {
  .site-footer { margin-left: var(--rail-w); }
}

.site-footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(20px, 3vw, 48px);
  padding-bottom: 26px;
  border-bottom: 1px dashed rgba(243, 240, 232, 0.14);
}

.site-footer__name {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--bone);
  text-shadow: 2px 0 rgba(255, 61, 154, 0.35), -2px 0 rgba(61, 245, 230, 0.35);
}

.site-footer__sub {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--rock);
}

.site-footer__update {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 5px 12px;
  border: 1px solid rgba(111, 163, 111, 0.5);
  border-radius: 999px;
  background: rgba(111, 163, 111, 0.1);
  color: #B7DEB7;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.site-footer__update::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 10px var(--moss);
}

.site-footer__note {
  margin-top: 14px;
  max-width: 52ch;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--rock);
}

.site-footer__label {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--violet);
}

.site-footer__list {
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(243, 240, 232, 0.8);
}

.site-footer__link {
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 245, 230, 0.32);
  transition: color 0.16s ease, border-color 0.16s ease;
}
.site-footer__link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(243, 240, 232, 0.1);
  font-size: 0.8125rem;
  color: var(--rock);
}

.site-footer__icp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--rock);
}

.site-footer__year { color: rgba(243, 240, 232, 0.55); }

/* ==========================================================================
   动效协议
   ========================================================================== */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

html[data-motion="off"] .dock__btn,
html[data-motion="off"] .site-nav__link::after,
html[data-motion="off"] .progress__fill,
html[data-motion="off"] .rail__meter-fill { transition: none; }
html.js[data-motion="off"] [data-reveal] { opacity: 1; transform: none; transition: none; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .site-nav__link { padding: 13px 10px; font-size: 0.875rem; }
  .site-nav__link::after { left: 10px; right: 10px; }
  .site-nav__index { display: none; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

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

  .skip-link { left: 14px; }

  .progress { left: 0; }

  /* 品牌轨道变为顶部横向品牌条 */
  .rail {
    position: static;
    inset: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px var(--pad-inline);
    border-right: 0;
    border-bottom: 1px solid rgba(61, 245, 230, 0.2);
    box-shadow: none;
  }

  .rail__brand { flex-direction: row; gap: 10px; }
  .rail__word {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 0.875rem;
    letter-spacing: 0.18em;
  }
  .rail__meter { display: none; }
  .rail__tag {
    writing-mode: horizontal-tb;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
  }

  .header-body { margin-left: 0; }

  .header-top__line { font-size: 0.6875rem; letter-spacing: 0.1em; }

  .nav-row { justify-content: flex-end; padding-block: 8px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 80;
    width: min(84vw, 340px);
    padding: 92px 20px 32px;
    overflow-y: auto;
    background: linear-gradient(180deg, #0B1226 0%, #0E1730 100%);
    border-right: 1px solid rgba(61, 245, 230, 0.32);
    box-shadow: 26px 0 70px -34px #000;
    transform: translateX(-102%);
    transition: transform 0.24s ease;
  }

  .site-nav[data-open] { transform: none; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }

  .site-nav__link {
    padding: 16px 10px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(243, 240, 232, 0.08);
  }
  .site-nav__index { display: inline; font-size: 0.625rem; }
  .site-nav__link::after { left: 10px; right: 10px; bottom: 6px; }

  .nav-veil { display: block; }

  .dock { gap: 8px; }
  .dock__btn { padding: 10px 14px; font-size: 0.8125rem; }
  .settings-panel { bottom: 96px; }

  .grid--2, .grid--3 { grid-template-columns: 1fr; }

  .site-footer { margin-left: 0; }
  .site-footer__top { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__legal { gap: 10px 16px; font-size: 0.75rem; }
}

@media (max-width: 520px) {
  .header-top__actions .chip--ghost { display: none; }
  .media--wide { aspect-ratio: 16 / 9; }
}

/* ---------- 降低动效偏好 ---------- */
@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;
  }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .title-arcade { transform: none; }
}
