/* =========================================================
   888游戏站 · 共享样式 /assets/site.css
   深空黑地 + 霓虹紫轨道 + 电光蓝数据 + 脉冲粉 CTA
   ========================================================= */

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

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

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

ul, ol { padding: 0; list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

:where(a, button, [tabindex], summary):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection { background: rgba(122, 59, 255, .55); color: #fff; }

/* ---------- 变量 ---------- */
:root {
  --ink-0: #07060F;
  --ink-1: #12101F;
  --ink-2: #1A1730;
  --neon: #7A3BFF;
  --neon-soft: #B98BFF;
  --cyan: #00E5FF;
  --pink: #FF4FA3;
  --gold: #FFD166;
  --text: #E8E6F5;
  --muted: #9B98B8;
  --line: #2A2740;

  --rail: 240px;
  --shell: 1400px;
  --header-h: 84px;
  --header-h-compact: 64px;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, 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", "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-neon: 0 18px 44px -20px rgba(122, 59, 255, .95);
  --shadow-pink: 0 16px 40px -20px rgba(255, 79, 163, .9);
}

/* ---------- 基底 ---------- */
body {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-h);
  margin: 0;
  background-color: var(--ink-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(185, 139, 255, .18) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: .42;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .25) 70%, transparent);
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .25) 70%, transparent);
}

body::after {
  content: "";
  position: fixed;
  top: -32vh;
  left: 50%;
  width: 120vw;
  height: 78vh;
  z-index: 0;
  pointer-events: none;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(122, 59, 255, .26), rgba(0, 229, 255, .06) 55%, transparent 72%);
  filter: blur(18px);
}

main {
  display: block;
  position: relative;
  z-index: 1;
}

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

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 220;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04121A;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .22s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  height: var(--header-h);
  padding-right: clamp(14px, 2.4vw, 30px);
  background: linear-gradient(180deg, rgba(18, 16, 31, .97), rgba(7, 6, 15, .88));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: height .28s var(--ease), background-color .28s var(--ease);
}

.site-header[data-compact] {
  --rail: 172px;
  height: var(--header-h-compact);
  background: linear-gradient(180deg, rgba(12, 10, 24, .99), rgba(7, 6, 15, .95));
}

.header-rail {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: clamp(14px, 2vw, 24px);
  border-right: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(122, 59, 255, .18), rgba(122, 59, 255, 0));
  transition: padding .28s var(--ease);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  z-index: 2;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--neon), var(--cyan) 58%, var(--pink));
  box-shadow: 0 0 12px rgba(0, 229, 255, .7);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  background: linear-gradient(140deg, var(--neon), #2E11A0 72%);
  box-shadow: inset 0 0 0 1px rgba(185, 139, 255, .5), 0 10px 24px -12px rgba(122, 59, 255, .95);
  transition: width .28s var(--ease), height .28s var(--ease), border-radius .28s var(--ease);
}

.site-header[data-compact] .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
  white-space: nowrap;
}

.site-header[data-compact] .brand-sub { display: none; }

/* 导航 */
.site-nav { min-width: 0; }

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background-color: rgba(122, 59, 255, .18);
}

.nav-link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(140deg, rgba(122, 59, 255, .55), rgba(0, 229, 255, .14));
  box-shadow: inset 0 0 0 1px rgba(185, 139, 255, .45);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
}

/* 头部动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta {
  padding: 10px 18px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(122, 59, 255, .16);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

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

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

[data-nav-toggle][aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
[data-nav-toggle][aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
[data-nav-toggle][aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--neon), #43209F 72%);
  color: #fff;
  box-shadow: var(--shadow-neon);
}

.btn-pink {
  background: linear-gradient(135deg, var(--pink), #C42B76 78%);
  color: #fff;
  box-shadow: var(--shadow-pink);
}

.btn-ghost {
  background: rgba(18, 16, 31, .7);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--neon-soft);
  background: rgba(122, 59, 255, .18);
}

.btn-pulse { animation: btn-breathe 4s ease-in-out infinite; }

@keyframes btn-breathe {
  0%, 100% { box-shadow: 0 12px 30px -18px rgba(255, 79, 163, .8); }
  50% { box-shadow: 0 16px 46px -14px rgba(255, 79, 163, 1); }
}

/* ---------- 容器与轨道布局 ---------- */
.content-wrap {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

.layout-rail {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

.side-rail {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(18, 16, 31, .92), rgba(9, 8, 18, .7));
}

.rail-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail-list { display: grid; gap: 4px; }

.rail-link {
  display: block;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}

.rail-link:hover {
  color: var(--text);
  background-color: rgba(122, 59, 255, .16);
}

.rail-link[aria-current="true"] {
  color: #fff;
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(122, 59, 255, .38), transparent);
}

/* ---------- 章节 ---------- */
.section {
  position: relative;
  padding: clamp(36px, 5.5vw, 76px) 0;
}

.section-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .8;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.12;
}

.section-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan), var(--neon-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
}

.section-note {
  margin-top: clamp(20px, 3vw, 34px);
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14px;
}

.vertical-note {
  position: absolute;
  top: 0;
  left: -46px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .4;
}

.slant-band {
  height: clamp(26px, 5vw, 54px);
  margin: clamp(24px, 4vw, 46px) 0;
  border-radius: 8px;
  background: linear-gradient(100deg, rgba(122, 59, 255, .3), rgba(0, 229, 255, .1) 55%, rgba(255, 79, 163, .18));
  clip-path: polygon(0 42%, 100% 0, 100% 58%, 0 100%);
}

.divider-glow {
  height: 1px;
  margin: clamp(28px, 4vw, 46px) 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--neon), var(--cyan), transparent);
  opacity: .55;
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 26px);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(20, 17, 38, .95), rgba(11, 9, 22, .86));
  transition: border-color .24s var(--ease), transform .24s var(--ease), box-shadow .24s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 139, 255, .6), transparent);
  opacity: .5;
}

.card:hover {
  border-color: rgba(185, 139, 255, .55);
  box-shadow: 0 26px 62px -40px rgba(122, 59, 255, .95);
}

.card--offset { transform: translateY(clamp(0px, 2vw, 24px)); }
.card--offset:hover { transform: translateY(calc(clamp(0px, 2vw, 24px) - 4px)); }
.card--accent { border-color: rgba(255, 79, 163, .42); }

.card-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.35;
}

.card-text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

/* ---------- 徽章 / 数据 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(122, 59, 255, .1);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.badge--gold { color: var(--gold); border-color: rgba(255, 209, 102, .45); background: rgba(255, 209, 102, .1); }
.badge--pink { color: var(--pink); border-color: rgba(255, 79, 163, .45); background: rgba(255, 79, 163, .1); }
.badge--cyan { color: var(--cyan); border-color: rgba(0, 229, 255, .4); background: rgba(0, 229, 255, .1); }

.data-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--gold);
}

.stat-value--cyan { color: var(--cyan); }
.stat-value--pink { color: var(--pink); }

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

.filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 16, 31, .8);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.filter-btn:hover { color: var(--text); border-color: var(--neon-soft); }

.filter-btn[aria-pressed="true"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--neon), #3B1AA0);
  box-shadow: 0 14px 34px -20px rgba(122, 59, 255, .95);
}

.filter-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

[data-filter-item][hidden] { display: none !important; }

/* ---------- 标签页 ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.tab-btn {
  padding: 10px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 14px 14px 0 0;
  background: none;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}

.tab-btn:hover { color: var(--text); background-color: rgba(122, 59, 255, .14); }

.tab-btn[aria-selected="true"] {
  color: #fff;
  border-bottom-color: var(--pink);
  background-color: rgba(122, 59, 255, .18);
}

.tab-panel[hidden] { display: none; }

/* ---------- 手风琴 ---------- */
.accordion {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(12, 10, 24, .6);
}

.acc-item + .acc-item { border-top: 1px solid var(--line); }

.acc-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}

.acc-trigger:hover { background-color: rgba(122, 59, 255, .13); }

.acc-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(122, 59, 255, .26);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  transition: transform .24s var(--ease);
}

.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(45deg); }

.acc-panel {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 15px;
}

.acc-panel[hidden] { display: none; }

/* ---------- 礼包码 ---------- */
.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 16px;
  border: 1px dashed rgba(255, 209, 102, .55);
  border-radius: 999px;
  background: rgba(255, 209, 102, .08);
}

.code-text {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--gold);
}

.copy-btn {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #241A00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  cursor: pointer;
  transition: filter .2s var(--ease), transform .2s var(--ease);
}

.copy-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  max-width: 88vw;
  padding: 12px 22px;
  border: 1px solid rgba(0, 229, 255, .5);
  border-radius: 999px;
  background: var(--ink-1);
  color: var(--text);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}

.copy-toast[data-visible] { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 图片容器（供页面阶段放入图片占位） ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(122, 59, 255, .5), transparent 62%),
    radial-gradient(90% 80% at 88% 84%, rgba(0, 229, 255, .3), transparent 66%),
    radial-gradient(60% 60% at 62% 42%, rgba(255, 79, 163, .16), transparent 72%),
    var(--ink-1);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .32;
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ---------- 显现 / 浮动 CTA ---------- */
.js-on .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.js-on .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.float-cta {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 90;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}

.float-cta[data-visible] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  padding: clamp(18px, 2.4vw, 28px) 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* ---------- 正文 ---------- */
.prose { max-width: 68ch; }
.prose p { margin: 0 0 18px; }

.prose h2 {
  margin: 34px 0 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
}

.prose h3 {
  margin: 26px 0 10px;
  font-size: 19px;
  font-weight: 800;
}

.prose ul { display: grid; gap: 8px; margin: 0 0 18px; }

.prose li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--neon));
}

.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 229, 255, .5);
}

.prose strong { color: var(--text); }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 8vw, 110px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 16, 31, .74), rgba(7, 6, 15, 1) 58%);
}

.footer-glow {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), var(--cyan), var(--pink), transparent);
  opacity: .8;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(16px, 3vw, 32px) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand--footer .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.footer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-note {
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
}

.footer-title {
  position: relative;
  margin-bottom: 14px;
  padding-left: 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--text);
}

.footer-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
}

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

.footer-list a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s var(--ease);
}

.footer-list a:hover { color: var(--cyan); }

.footer-list--info li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(28px, 4vw, 48px);
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-legal,
.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal a:hover { color: var(--cyan); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .nav-link { padding: 9px 11px; font-size: 14px; }
  .header-cta { padding: 9px 15px; font-size: 13px; }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 72px;
    --header-h-compact: 72px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-left: clamp(14px, 4vw, 20px);
  }

  .site-header[data-compact] { height: var(--header-h); }

  .header-rail {
    padding-left: 0;
    border-right: 0;
    background: none;
  }

  .site-header[data-compact] .brand-sub { display: none; }

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

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    padding: calc(var(--header-h) + 8px) clamp(14px, 4vw, 20px) 22px;
    background: linear-gradient(180deg, rgba(7, 6, 15, .99), rgba(18, 16, 31, .97));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s linear;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-link {
    padding: 13px 16px;
    border-radius: var(--r-sm);
    background-color: rgba(122, 59, 255, .08);
    font-size: 16px;
  }

  .nav-link[aria-current="page"]::after {
    left: auto;
    right: 16px;
    top: 50%;
    bottom: auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateY(-50%);
  }

  body.nav-open { overflow: hidden; }

  .layout-rail { grid-template-columns: minmax(0, 1fr); }

  .side-rail {
    position: static;
    top: auto;
  }

  .vertical-note { display: none; }

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

@media (max-width: 900px) {
  .grid-3,
  .grid-4,
  .grid-8-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .card--offset { transform: none; }
}

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

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-8-4 { grid-template-columns: minmax(0, 1fr); }

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

  .footer-bottom { justify-content: flex-start; }

  .float-cta { left: clamp(14px, 4vw, 20px); right: clamp(14px, 4vw, 20px); }

  .float-cta .btn { width: 100%; }
}

@media (max-width: 440px) {
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: 10px 12px; }
  .header-cta { padding: 9px 13px; font-size: 12px; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .js-on .reveal {
    opacity: 1;
    transform: none;
  }
}
