/* ==========================================================
   水果666玩家 · /assets/site.css
   共享外壳样式：reset / tokens / 头部 / 页脚 / 通用组件
   ========================================================== */

/* ---------- 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, figure, blockquote, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* ---------- tokens ---------- */
:root {
  --ink: #0E0F1A;
  --ink-deep: #07080F;
  --panel: #161A2E;
  --panel-2: #1D2340;
  --melon: #FF3B5C;
  --orange: #FFC23D;
  --lime: #5CE65C;
  --grape: #A259FF;
  --neon: #2FD8FF;
  --paper: #F5F2EA;
  --muted: #9AA0B4;
  --line: rgba(245, 242, 234, .12);
  --glass: rgba(22, 26, 46, .62);

  --radius: 14px;
  --radius-sm: 10px;
  --cut: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));

  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Press Start 2P", "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;

  --shell: 1180px;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --header-h: 64px;
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(58vw 40vw at 10% -8%, rgba(162, 89, 255, .30), transparent 64%),
    radial-gradient(46vw 34vw at 98% 2%, rgba(47, 216, 255, .20), transparent 62%),
    radial-gradient(70vw 46vw at 50% 112%, rgba(255, 59, 92, .18), transparent 68%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.75;
  word-break: break-word;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(180deg, rgba(245, 242, 234, .035) 0 1px, transparent 1px 4px);
}

h1, h2, h3, h4, h5 { font-weight: 900; line-height: 1.18; letter-spacing: -.01em; color: var(--paper); }
p { max-width: 78ch; }
strong { color: var(--paper); font-weight: 800; }
code, kbd { font-family: var(--font-mono); font-size: .85em; color: var(--neon); }

/* ---------- a11y ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 6px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: var(--pad);
  top: -80px;
  z-index: 300;
  padding: .7rem 1.15rem;
  border-radius: 0 0 12px 12px;
  background: var(--lime);
  color: #06210A;
  font-weight: 900;
  box-shadow: 0 12px 30px -12px rgba(92, 230, 92, .9);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section--tight { padding-block: clamp(1.5rem, 4vw, 3rem); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .8rem 1.6rem;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}
.section-num {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .3em;
  color: var(--grape);
  margin-bottom: .5rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--neon);
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon);
}
.section-title { font-size: clamp(1.55rem, 3.6vw, 2.5rem); }
.lede {
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  color: rgba(245, 242, 234, .82);
  max-width: 64ch;
}
.divider {
  height: 1px;
  border: 0;
  margin-block: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(90deg, var(--grape), rgba(162, 89, 255, .06));
}
.note { font-size: .86rem; color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.serif-title { font-family: var(--font-serif); font-weight: 700; letter-spacing: .01em; }
.big-number {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1;
  color: var(--paper);
}

/* ---------- grid ---------- */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-asym { display: grid; gap: clamp(1.2rem, 3vw, 2.4rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .grid-asym { grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); }
  .grid-asym--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.62fr); }
}

/* ---------- prose ---------- */
.prose { max-width: 70ch; }
.prose p { margin-block: .9em; color: rgba(245, 242, 234, .88); }
.prose h2 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); margin-block: 1.7em .6em; }
.prose h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); margin-block: 1.4em .5em; }
.prose ul, .prose ol { padding-left: 0; margin-block: .9em; }
.prose ul li { position: relative; padding-left: 1.25rem; margin-block: .4em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--lime);
}
.prose ol { counter-reset: step; }
.prose ol li { position: relative; padding-left: 2rem; margin-block: .5em; }
.prose ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: .25em;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--orange);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn-primary {
  background: var(--melon);
  color: #1A0308;
  box-shadow: 0 10px 30px -12px rgba(255, 59, 92, .95);
}
.btn-accent {
  background: var(--orange);
  color: #1C1300;
  box-shadow: 0 10px 30px -12px rgba(255, 194, 61, .95);
}
.btn-ghost {
  border-color: rgba(245, 242, 234, .22);
  background: rgba(245, 242, 234, .04);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); box-shadow: 0 0 24px -6px rgba(47, 216, 255, .8); }
.btn-mono { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; }

/* ---------- tags / chips ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .24rem .6rem;
  border-radius: 7px;
  border: 1px solid var(--line);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.5;
}
.tag--melon { color: var(--melon); border-color: rgba(255, 59, 92, .5); background: rgba(255, 59, 92, .13); }
.tag--orange { color: var(--orange); border-color: rgba(255, 194, 61, .5); background: rgba(255, 194, 61, .13); }
.tag--lime { color: var(--lime); border-color: rgba(92, 230, 92, .5); background: rgba(92, 230, 92, .13); }
.tag--grape { color: var(--grape); border-color: rgba(162, 89, 255, .55); background: rgba(162, 89, 255, .16); }
.tag--neon { color: var(--neon); border-color: rgba(47, 216, 255, .5); background: rgba(47, 216, 255, .12); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(245, 242, 234, .03);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- surfaces ---------- */
.panel {
  background: rgba(22, 26, 46, .72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.4vw, 1.6rem);
}
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.4vw, 1.6rem);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: rotate(-1.4deg); border-color: rgba(162, 89, 255, .55); box-shadow: 0 18px 40px -26px rgba(162, 89, 255, .95); }
.card--cut { border-radius: 0; clip-path: var(--cut); }
.card--glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: rgba(162, 89, 255, .35);
}
.card--melon { border-left: 4px solid var(--melon); }
.card--orange { border-left: 4px solid var(--orange); }
.card--lime { border-left: 4px solid var(--lime); }
.card--neon { border-left: 4px solid var(--neon); }
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(162, 89, 255, .3);
  border-radius: var(--radius);
}

/* ---------- stats ---------- */
.stat {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(92, 230, 92, .8);
}
.stat--melon::before { background: var(--melon); box-shadow: 0 0 18px rgba(255, 59, 92, .8); }
.stat--orange::before { background: var(--orange); box-shadow: 0 0 18px rgba(255, 194, 61, .8); }
.stat--grape::before { background: var(--grape); box-shadow: 0 0 18px rgba(162, 89, 255, .8); }
.stat--neon::before { background: var(--neon); box-shadow: 0 0 18px rgba(47, 216, 255, .8); }
.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 4.6vw, 2.7rem);
  line-height: 1.05;
  color: var(--paper);
}
.stat--melon .stat-value { color: var(--melon); }
.stat--orange .stat-value { color: var(--orange); }
.stat--lime .stat-value { color: var(--lime); }
.stat--grape .stat-value { color: var(--grape); }
.stat--neon .stat-value { color: var(--neon); }
.stat-label { font-size: .84rem; color: var(--muted); }

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 26, 46, .74);
  -webkit-overflow-scrolling: touch;
}
.data-table { width: 100%; min-width: 620px; font-variant-numeric: tabular-nums; }
.data-table caption {
  text-align: left;
  padding: .9rem 1rem .2rem;
  font-size: .84rem;
  color: var(--muted);
}
.data-table th {
  padding: .85rem 1rem;
  text-align: left;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--neon);
  background: rgba(47, 216, 255, .07);
  border-bottom: 1px solid rgba(47, 216, 255, .3);
}
.data-table td {
  padding: .85rem 1rem;
  border-bottom: 1px dashed var(--line);
  color: rgba(245, 242, 234, .9);
  vertical-align: top;
}
.data-table tbody tr:hover { background: rgba(162, 89, 255, .1); }
.data-table .num { font-family: var(--font-mono); color: var(--orange); }

/* ---------- media placeholders ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #0B0D18;
  background-image:
    radial-gradient(70% 60% at 28% 20%, rgba(162, 89, 255, .38), transparent 70%),
    radial-gradient(60% 55% at 82% 84%, rgba(255, 59, 92, .30), transparent 72%),
    linear-gradient(160deg, #1B2140, #0A0C17);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(180deg, rgba(245, 242, 234, .07) 0 1px, transparent 1px 5px);
}
.media-frame > img,
.media-frame > svg,
.media-frame > picture,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.figure { margin: 0; }
.figure-caption { margin-top: .6rem; font-size: .84rem; color: var(--muted); }

/* ---------- filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block: 1rem 1.4rem;
}
.filter-btn {
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(245, 242, 234, .04);
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.filter-btn:hover { color: var(--paper); border-color: rgba(162, 89, 255, .6); }
.filter-btn[aria-pressed="true"] {
  background: var(--grape);
  border-color: var(--grape);
  color: #12021F;
  box-shadow: 0 8px 26px -12px rgba(162, 89, 255, 1);
}

/* ---------- breadcrumb / anchor nav ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding-block: .9rem;
  font-size: .82rem;
  color: var(--muted);
}
.breadcrumb li { display: flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; color: var(--grape); }
.breadcrumb a:hover { color: var(--neon); }
.anchor-nav { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
.anchor-nav a {
  padding: .38rem .7rem;
  border-left: 3px solid transparent;
  color: var(--muted);
  transition: color .18s ease, border-color .18s ease;
}
.anchor-nav a:hover { color: var(--neon); border-left-color: var(--neon); }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  background: rgba(245, 242, 234, .08);
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--melon), var(--orange), var(--lime), var(--neon));
  box-shadow: 0 0 14px rgba(47, 216, 255, .7);
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================
   头部
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 12, 21, .86);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.hud-strip {
  background: linear-gradient(90deg, rgba(162, 89, 255, .32), rgba(47, 216, 255, .16) 60%, rgba(255, 194, 61, .14));
  border-bottom: 1px solid rgba(47, 216, 255, .22);
  font-size: .82rem;
}
.hud-inner {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 38px;
  padding-block: .45rem;
  transition: padding .25s ease, min-height .25s ease;
}
.hud-dot {
  flex: 0 0 auto;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: lampPulse 2.6s ease-in-out infinite;
}
.hud-text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  color: rgba(245, 242, 234, .88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-toggle {
  flex: 0 0 auto;
  padding: .22rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 216, 255, .4);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
}
.hud-toggle:hover { background: rgba(47, 216, 255, .14); }
.site-header[data-compact] .hud-text { display: none; }
.site-header[data-compact] .hud-inner { min-height: 30px; padding-block: .2rem; }

.header-bar { position: relative; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(.6rem, 1.5vw, .95rem);
}
.header-left { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.header-right { display: flex; align-items: center; gap: .6rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(255, 59, 92, .45);
  background: linear-gradient(140deg, rgba(255, 59, 92, .3), rgba(162, 89, 255, .34));
  box-shadow: 0 0 20px -6px rgba(255, 59, 92, .95);
}
.brand-mark--sm { width: 30px; height: 30px; border-radius: 9px; }
.brand-name {
  font-size: clamp(1rem, 2.2vw, 1.16rem);
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}
.header-current {
  display: none;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--muted);
  padding-left: .7rem;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}
@media (min-width: 900px) { .header-current { display: inline-block; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(162, 89, 255, .48);
  background: rgba(162, 89, 255, .16);
  font-size: .86rem;
  font-weight: 800;
}
.nav-toggle:hover { background: rgba(162, 89, 255, .28); }
.nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle-bars i { display: block; height: 2px; border-radius: 2px; background: var(--paper); }
.nav-toggle[aria-expanded="true"] {
  border-color: rgba(92, 230, 92, .6);
  background: rgba(92, 230, 92, .18);
}
.nav-toggle-label { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; }

/* 移动抽屉 */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(86vw, 340px);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 5.5rem 1.4rem 2rem;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(22, 26, 46, .97), rgba(14, 15, 26, .99));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-left: 1px solid rgba(162, 89, 255, .4);
  box-shadow: -30px 0 60px -30px rgba(162, 89, 255, .8);
  transform: translateX(105%);
  transition: transform .34s cubic-bezier(.22, .7, .3, 1);
}
.site-nav[data-open] { transform: none; }
.nav-list { display: flex; flex-direction: column; gap: .2rem; }
.nav-link {
  display: block;
  padding: .72rem .8rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  font-weight: 800;
  color: var(--paper);
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.nav-link:hover { background: rgba(162, 89, 255, .16); color: var(--grape); }
.nav-link[aria-current="page"] {
  color: var(--lime);
  border-left-color: var(--lime);
  background: rgba(92, 230, 92, .12);
}
.nav-list li[data-tone="melon"] .nav-link:hover { color: var(--melon); background: rgba(255, 59, 92, .14); }
.nav-list li[data-tone="orange"] .nav-link:hover { color: var(--orange); background: rgba(255, 194, 61, .14); }
.nav-list li[data-tone="lime"] .nav-link:hover { color: var(--lime); background: rgba(92, 230, 92, .14); }
.nav-list li[data-tone="neon"] .nav-link:hover { color: var(--neon); background: rgba(47, 216, 255, .14); }
.nav-legend {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
  font-size: .78rem;
  color: var(--muted);
}
.legend-item { display: flex; align-items: center; gap: .5rem; }
.legend-chip { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 3px; }
.legend-chip--melon { background: var(--melon); box-shadow: 0 0 10px rgba(255, 59, 92, .9); }
.legend-chip--orange { background: var(--orange); box-shadow: 0 0 10px rgba(255, 194, 61, .9); }
.legend-chip--lime { background: var(--lime); box-shadow: 0 0 10px rgba(92, 230, 92, .9); }
.legend-chip--grape { background: var(--grape); box-shadow: 0 0 10px rgba(162, 89, 255, .9); }
.legend-chip--neon { background: var(--neon); box-shadow: 0 0 10px rgba(47, 216, 255, .9); }

body.nav-open { overflow: hidden; }
@media (max-width: 1023px) {
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(5, 6, 12, .74);
  }
}

/* 桌面横向胶囊导航 */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    display: block;
  }
  .nav-legend { display: none; }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: .15rem;
    padding: .3rem;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid rgba(162, 89, 255, .38);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 0 40px -22px rgba(162, 89, 255, 1);
  }
  .nav-link {
    padding: .48rem .85rem;
    border-radius: 999px;
    border-left: 0;
    font-size: .92rem;
  }
  .nav-link:hover { background: rgba(162, 89, 255, .2); }
  .nav-link[aria-current="page"] {
    color: #06210A;
    background: var(--lime);
    box-shadow: 0 0 20px -6px rgba(92, 230, 92, 1);
  }
  .nav-link[aria-current="page"]:hover { color: #06210A; background: var(--lime); }
}

/* ==========================================================
   页脚
   ========================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(2.5rem, 7vw, 5.5rem);
  background: linear-gradient(180deg, #0B0C15, #05060C);
  border-top: 1px solid rgba(92, 230, 92, .55);
  color: var(--muted);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  pointer-events: none;
  background: radial-gradient(70% 100% at 20% 0, rgba(92, 230, 92, .14), transparent 70%);
}
.footer-inner { position: relative; padding-block: clamp(2rem, 5vw, 3.5rem) 1.2rem; }
.footer-grid {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.45fr 1fr 1fr 1.3fr; } }
.footer-col { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--paper);
}
.footer-claim {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--paper);
  max-width: 30ch;
}
.footer-title {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--neon);
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; font-size: .92rem; }
.footer-links a { color: rgba(245, 242, 234, .82); transition: color .18s ease, padding-left .18s ease; }
.footer-links a:hover { color: var(--lime); padding-left: .25rem; }
.footer-contact { display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.footer-contact li { display: flex; flex-wrap: wrap; gap: .55rem; align-items: baseline; }
.footer-key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  color: var(--orange);
}
.footer-note { font-size: .84rem; line-height: 1.75; color: var(--muted); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.4rem;
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  padding-block: 1.1rem;
  border-top: 1px dashed var(--line);
}
.footer-icp { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--muted); }

/* ---------- to top ---------- */
.to-top {
  position: fixed;
  right: clamp(.9rem, 3vw, 1.8rem);
  bottom: clamp(.9rem, 3vw, 1.8rem);
  z-index: 120;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(92, 230, 92, .55);
  background: rgba(22, 26, 46, .92);
  color: var(--lime);
  box-shadow: 0 0 26px -10px rgba(92, 230, 92, .95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(92, 230, 92, .18); }

/* ---------- motion ---------- */
@keyframes lampPulse {
  0%, 100% { opacity: .5; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .card:hover, .btn:hover { transform: none; }
}

/* ---------- 小屏微调 ---------- */
@media (max-width: 420px) {
  .brand-name { font-size: .95rem; }
  .nav-toggle-label { display: none; }
  .hud-text { font-size: .78rem; }
}
