/* ============================================================
   365电玩城 · 共享外壳样式 /assets/site.css
   墨夜底 + 霓虹紫 + 街机青 + 琥珀金 · 文字建筑 · 编号索引
   ============================================================ */

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

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

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

ul, ol { padding: 0; 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; }

main { display: block; }

/* ---------- tokens ---------- */
:root {
  --ink-900: #07060F;
  --ink-800: #0E0C1B;
  --ink-700: #17142B;
  --ink-600: #221D3D;

  --violet-500: #7C4DFF;
  --violet-300: #B39CFF;
  --cyan-400: #2BE7D0;
  --cyan-200: #A8FFF4;
  --amber-400: #FFB23E;
  --magenta-500: #FF4FA3;

  --paper-050: #F2F0FA;
  --mist-400: #A9A4C7;
  --grid-600: #2A2545;

  --font-display: "Zpix", "站酷庆科黄油体", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max-w: 1240px;
  --gutter: 24px;

  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-pill: 999px;

  --dur: 240ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --hair: 1px solid rgba(42, 37, 69, 0.85);
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(58% 46% at 82% -8%, rgba(124, 77, 255, 0.20), transparent 62%),
    radial-gradient(48% 38% at 0% 4%, rgba(43, 231, 208, 0.10), transparent 64%);
  background-attachment: fixed;
  color: var(--paper-050);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 扫描线颗粒层 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(242, 240, 250, 0.045) 0 1px, transparent 1px 4px);
  opacity: 0.45;
}

::selection { background: var(--violet-500); color: var(--paper-050); }

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(43, 231, 208, 0.22);
  border-radius: 4px;
}

a { color: var(--cyan-400); }

a:hover { color: var(--cyan-200); }

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

[id] { scroll-margin-top: 112px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 头部：信号带 + 悬浮胶囊 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--amber-400);
  color: #1A1002;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); color: #1A1002; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 6, 15, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  border-bottom: 1px solid rgba(42, 37, 69, 0.55);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.site-header[data-scrolled="true"] {
  background: rgba(7, 6, 15, 0.92);
  border-bottom-color: rgba(124, 77, 255, 0.34);
}

.signal-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max-w), 100% - 40px);
  margin: 0 auto;
  padding: 9px 2px;
  max-height: 44px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist-400);
  transition: max-height var(--dur) var(--ease), opacity 0.18s linear, padding var(--dur) var(--ease);
}

.signal-rail__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-200);
  white-space: nowrap;
}

.signal-rail__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--cyan-400);
  box-shadow: 0 0 10px var(--cyan-400);
}

.signal-rail__hint { color: var(--mist-400); white-space: nowrap; }

.site-header[data-scrolled="true"] .signal-rail {
  max-height: 0;
  opacity: 0;
  padding-block: 0;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  width: min(var(--max-w), 100% - 40px);
  margin: 0 auto 10px;
  padding: 7px 8px 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(23, 20, 43, 0.62);
  border: 1px solid rgba(42, 37, 69, 0.9);
  box-shadow: 0 22px 48px -34px rgba(124, 77, 255, 0.95);
  transition: padding var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease), margin var(--dur) var(--ease),
    border-radius var(--dur) var(--ease);
}

.site-header[data-scrolled="true"] .site-header__inner {
  padding: 3px 6px 3px 12px;
  margin-bottom: 8px;
  background: rgba(14, 12, 27, 0.94);
  border-color: rgba(124, 77, 255, 0.42);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--paper-050);
}

.brand:hover { color: var(--paper-050); }

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--violet-500), var(--cyan-400));
  clip-path: polygon(0 0, 68% 0, 100% 32%, 100% 100%, 32% 100%, 0 68%);
  transition: transform var(--dur) var(--ease);
}

.brand__mark::after {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--ink-900);
}

.brand:hover .brand__mark { transform: rotate(6deg); }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-shadow: 2px 2px 0 rgba(124, 77, 255, 0.5);
}

.brand__note {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mist-400);
  white-space: nowrap;
}

.site-nav { justify-self: center; min-width: 0; }

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

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: #C9C3E4;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.site-nav__link:hover {
  background: rgba(124, 77, 255, 0.18);
  color: var(--paper-050);
}

.site-nav__link[aria-current="page"] {
  background: var(--violet-500);
  color: var(--paper-050);
  box-shadow: inset 0 0 0 1px rgba(179, 156, 255, 0.55), 0 0 22px -6px rgba(124, 77, 255, 0.95);
}

.site-nav__link[aria-current="page"]::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  background: var(--cyan-200);
  box-shadow: 0 0 8px var(--cyan-400);
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--amber-400);
  color: #1A1002;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

.header-cta:hover {
  color: #1A1002;
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(255, 178, 62, 0.2), 0 14px 26px -16px rgba(255, 178, 62, 0.95);
}

.header-cta__dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: #1A1002;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--grid-600);
  color: var(--paper-050);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan-400);
  background: rgba(43, 231, 208, 0.08);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  height: 12px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--cyan-400);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.site-header[data-open="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  background: rgba(42, 37, 69, 0.55);
}

.scroll-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--violet-500), var(--cyan-400) 58%, var(--amber-400));
}

/* ---------- 页脚：机房底板 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  background: var(--ink-800);
  border-top: 1px solid rgba(42, 37, 69, 0.8);
  color: var(--mist-400);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(42, 37, 69, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 37, 69, 0.6) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.28;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 480px;
  height: 480px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.4), rgba(124, 77, 255, 0) 68%);
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 4vw, 46px);
  width: min(var(--max-w), 100% - 40px);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 84px) 0 28px;
}

.footer__masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 24px;
  align-items: end;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5.5vw, 60px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--paper-050);
  text-shadow: 3px 3px 0 rgba(124, 77, 255, 0.45);
}

.footer__pitch {
  margin-top: 14px;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist-400);
}

.footer__stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 8px 14px;
  border: 1px solid var(--grid-600);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist-400);
  white-space: nowrap;
}

.footer__stamp-num { color: var(--amber-400); }

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

.footer__col { min-width: 0; }

.footer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--paper-050);
}

.footer__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cyan-400);
}

.footer__links { display: grid; gap: 9px; }

.footer__link {
  display: inline-block;
  font-size: 14px;
  color: var(--mist-400);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer__link:hover {
  color: var(--cyan-200);
  transform: translateX(3px);
}

.footer__link:focus-visible { transform: none; }

.footer__contact {
  display: grid;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(42, 37, 69, 0.85);
}

.footer__contact .footer__title { margin-bottom: 4px; }

.footer__contact-line {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--cyan-200);
  word-break: break-word;
}

.footer__contact-note {
  max-width: 38em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist-400);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(42, 37, 69, 0.85);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #8E88AD;
}

.footer__record { color: var(--violet-300); }

.footer__copy { color: #8E88AD; }

.footer__micro {
  flex-basis: 100%;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: #8E88AD;
}

/* ---------- 通用布局 ---------- */
.container {
  width: min(var(--max-w), 100% - 40px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(56px, 8vw, 112px);
}

.section--ink800 { background: var(--ink-800); }

.section--tight { padding-block: clamp(32px, 5vw, 64px); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.glass {
  background: rgba(23, 20, 43, 0.62);
  border: 1px solid rgba(42, 37, 69, 0.9);
  border-radius: var(--radius-l);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.glass:hover {
  background: rgba(23, 20, 43, 0.44);
  border-color: rgba(124, 77, 255, 0.5);
  transform: translateY(-4px);
}

.solid-panel {
  background: var(--ink-700);
  border: 1px solid rgba(42, 37, 69, 0.9);
  border-radius: var(--radius-l);
}

/* ---------- 文本组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan-400);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--cyan-400);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%);
}

.lede {
  max-width: 34em;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
  color: #D9D4EE;
}

.prose { max-width: 34em; }

.prose p {
  font-size: 16.5px;
  line-height: 1.75;
  color: #DCD8EF;
}

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

.prose h2,
.prose h3 {
  margin-top: 1.6em;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--paper-050);
}

.prose h2 { font-size: clamp(24px, 3vw, 32px); }
.prose h3 { font-size: clamp(19px, 2.2vw, 24px); }

.prose ul,
.prose ol {
  margin: 1em 0;
  padding-left: 1.25em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: 0.4em;
  color: #DCD8EF;
}

.prose a {
  color: var(--cyan-400);
  box-shadow: inset 0 -0.5em 0 rgba(43, 231, 208, 0.14);
}

.prose a:hover { color: var(--cyan-200); }

.prose strong {
  color: var(--paper-050);
  font-weight: 700;
}

/* ---------- 徽章 / 标签 / 按钮 ---------- */
.num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--violet-500);
  color: var(--paper-050);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.num-badge--amber {
  background: var(--amber-400);
  color: #1A1002;
}

.num-badge--ghost {
  background: rgba(42, 37, 69, 0.7);
  color: var(--mist-400);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(43, 231, 208, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(43, 231, 208, 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan-200);
}

.tag--violet {
  border-color: rgba(124, 77, 255, 0.5);
  background: rgba(124, 77, 255, 0.16);
  color: var(--violet-300);
}

.tag--amber {
  border-color: rgba(255, 178, 62, 0.5);
  background: rgba(255, 178, 62, 0.14);
  color: var(--amber-400);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    color 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

.btn--primary {
  background: var(--amber-400);
  color: #1A1002;
}

.btn--primary:hover {
  color: #1A1002;
  box-shadow: 0 14px 30px -16px rgba(255, 178, 62, 0.95);
}

.btn--violet {
  background: var(--violet-500);
  color: var(--paper-050);
}

.btn--violet:hover {
  color: var(--paper-050);
  box-shadow: 0 14px 30px -16px rgba(124, 77, 255, 0.95);
}

.btn--ghost {
  background: rgba(23, 20, 43, 0.6);
  border-color: var(--grid-600);
  color: var(--paper-050);
}

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

/* ---------- 面包屑 ---------- */
.breadcrumbs { margin-bottom: 18px; }

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist-400);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__link {
  padding: 2px 0;
  color: var(--mist-400);
  transition: color 0.18s var(--ease);
}

.breadcrumbs__link:hover { color: var(--cyan-200); }

.breadcrumbs__sep { color: var(--grid-600); }

.breadcrumbs__current { color: var(--cyan-200); }

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(42, 37, 69, 0.9);
  border-radius: var(--radius-m);
  background: var(--ink-700);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.media-frame:hover {
  border-color: rgba(124, 77, 255, 0.55);
  transform: translateY(-4px);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(7, 6, 15, 0.32) 0 1px, transparent 1px 3px);
  opacity: 0.55;
}

.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame--placeholder {
  background-image:
    repeating-linear-gradient(45deg, rgba(124, 77, 255, 0.14) 0 10px, transparent 10px 20px),
    radial-gradient(circle at 28% 18%, rgba(43, 231, 208, 0.2), transparent 62%),
    linear-gradient(160deg, var(--ink-700), var(--ink-800));
}

.media-frame__caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(7, 6, 15, 0.74);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan-200);
}

/* ---------- 竖向索引轨 ---------- */
.rail {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 72px;
  padding-left: 8px;
  border-left: 1px solid var(--grid-600);
  font-family: var(--font-mono);
}

.rail__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist-400);
  transition: color 0.18s var(--ease);
}

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

.rail__link[aria-current="true"] { color: var(--amber-400); }

.rail__link[aria-current="true"] .rail__num {
  background: var(--amber-400);
  color: #1A1002;
}

.rail__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  border-radius: 4px;
  background: rgba(42, 37, 69, 0.9);
  font-size: 10px;
  color: var(--mist-400);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

/* ---------- 显现 ---------- */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

html[data-js="on"] [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .site-nav__link { padding: 0 10px; font-size: 13.5px; }
}

@media (max-width: 960px) {
  .site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 10px 8px 14px;
    border-radius: 26px;
  }

  .site-header[data-scrolled="true"] .site-header__inner { border-radius: 26px; }

  .site-header[data-open="true"] .site-header__inner { border-radius: 26px; }

  .header-cta { margin-left: auto; justify-self: auto; }

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

  .site-nav {
    order: 4;
    flex: 1 1 100%;
    display: none;
    margin-top: 2px;
    padding: 10px;
    border: 1px solid var(--grid-600);
    border-radius: 18px;
    background: rgba(14, 12, 27, 0.98);
  }

  .site-nav[data-open="true"] { display: block; }

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

  .site-nav__link {
    height: 46px;
    justify-content: flex-start;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 15px;
    background: rgba(23, 20, 43, 0.55);
  }

  .site-nav__link:hover { background: rgba(124, 77, 255, 0.22); }

  .signal-rail { font-size: 11px; letter-spacing: 0.06em; }

  .signal-rail__hint { display: none; }

  .footer__masthead { grid-template-columns: minmax(0, 1fr); align-items: start; }

  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }

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

  .span-3 { grid-column: span 3; }
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-12 { grid-column: span 6; }

  .rail { display: none; }
}

@media (max-width: 680px) {
  .grid-12 { grid-template-columns: minmax(0, 1fr); }

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-12 { grid-column: span 1; }
}

@media (max-width: 560px) {
  .site-header__inner { width: calc(100% - 24px); margin-bottom: 8px; }

  .signal-rail { width: calc(100% - 24px); }

  .brand__note { display: none; }

  .brand__name { font-size: 16px; }

  .header-cta { height: 34px; padding: 0 12px; font-size: 13px; }

  .nav-toggle { height: 34px; padding: 0 10px; }

  .nav-toggle__label { display: none; }

  .container,
  .footer__inner { width: calc(100% - 32px); }

  .footer__meta { font-size: 11.5px; gap: 8px 18px; }
}

/* ---------- 无障碍与偏好 ---------- */
@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[data-js="on"] [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .glass:hover,
  .media-frame:hover,
  .btn:hover,
  .header-cta:hover { transform: none; }

  body::after { display: none; }
}

@media print {
  body {
    background: #FFFFFF;
    color: #101018;
  }

  body::after,
  .site-header,
  .site-footer,
  .rail { display: none !important; }

  html[data-js="on"] [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  a { color: #101018; }
}
