/* ===========================================================
   电玩平台 · 共享样式表 /assets/site.css
   复古街机厅 × 数字棋牌桌 · 霓虹紫轨道 + 深墨蓝底
   =========================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

a { color: inherit; text-decoration: none; }

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B0A1F;
  --ink-2: #16123A;
  --ink-3: #0E0B26;
  --violet: #7C4DFF;
  --violet-soft: #B49BFF;
  --teal: #22E0C0;
  --red: #FF3D68;
  --gold: #FFC24B;
  --text: #EDEBFF;
  --text-dim: #A9A5CC;
  --line: #2E2A57;

  --rail-w: 88px;
  --shell-max: 1280px;
  --radius: 18px;

  --font-display: 'Chakra Petch', 'Orbitron', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Noto Sans Mono CJK SC', monospace;

  --ease: cubic-bezier(.2, .8, .3, 1);
}

/* ---------- 3. 基础排版 ---------- */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(124, 77, 255, .45);
  color: #fff;
}

body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 82% -12%, rgba(124, 77, 255, .30), transparent 62%),
    radial-gradient(900px 560px at -6% 106%, rgba(34, 224, 192, .15), transparent 60%),
    radial-gradient(720px 520px at 52% 48%, rgba(255, 61, 104, .07), transparent 72%),
    linear-gradient(180deg, #0B0A1F 0%, #120E33 44%, #0B0A1F 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* 像素光点底纹层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(180, 155, 255, .22) 1px, transparent 1.6px),
    radial-gradient(rgba(34, 224, 192, .16) 1px, transparent 1.6px);
  background-size: 28px 28px, 52px 52px;
  background-position: 0 0, 14px 14px;
  opacity: .55;
}

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

h1 { font-size: clamp(32px, 5vw, 44px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }

strong { color: #fff; font-weight: 600; }

code, kbd, samp, .mono {
  font-family: var(--font-mono);
  font-size: .95em;
}

#main-content {
  position: relative;
  z-index: 1;
  display: block;
  scroll-margin-top: 72px;
}

/* ---------- 4. 布局工具 ---------- */
.shell {
  position: relative;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 56px);
}

.shell--narrow { max-width: 920px; }

.stack { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 22px); }

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(237, 235, 255, .88);
}

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

.prose h2, .prose h3 { margin-top: 1.6em; margin-bottom: .5em; color: var(--text); }

.prose ul, .prose ol { margin-top: .8em; padding-left: 1.2em; }

.prose ul li { list-style: square; }
.prose ol li { list-style: decimal; }

.prose li { margin-top: .35em; }

.prose a {
  color: var(--teal);
  border-bottom: 1px dashed rgba(34, 224, 192, .5);
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

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

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

/* ---------- 5. 章节 ---------- */
.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 8vw, 104px);
}

.section--violet { background: linear-gradient(180deg, rgba(124, 77, 255, .12), transparent 72%); }
.section--teal { background: linear-gradient(180deg, rgba(34, 224, 192, .09), transparent 72%); }
.section--gold { background: linear-gradient(180deg, rgba(255, 194, 75, .09), transparent 72%); }
.section--red { background: linear-gradient(180deg, rgba(255, 61, 104, .10), transparent 72%); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .28em;
  color: var(--teal);
  text-transform: uppercase;
}

.section-title { color: var(--text); }

.section-lead {
  max-width: 60ch;
  color: var(--text-dim);
  font-size: 16px;
}

/* 横向主题带 */
.band {
  position: relative;
  z-index: 1;
  padding-block: clamp(30px, 4.4vw, 56px);
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(124, 77, 255, .18), rgba(34, 224, 192, .08) 52%, rgba(255, 61, 104, .12));
}

.band--teal { background: linear-gradient(90deg, rgba(34, 224, 192, .17), rgba(124, 77, 255, .08) 60%, rgba(255, 194, 75, .10)); }
.band--gold { background: linear-gradient(90deg, rgba(255, 194, 75, .17), rgba(255, 61, 104, .10) 60%, rgba(124, 77, 255, .10)); }
.band--red { background: linear-gradient(90deg, rgba(255, 61, 104, .19), rgba(124, 77, 255, .10) 62%, rgba(34, 224, 192, .08)); }

/* 有机模糊色块 */
.blob {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 42% 58% 63% 37% / 46% 39% 61% 54%;
  filter: blur(64px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

.blob--violet { background: radial-gradient(circle at 30% 30%, rgba(124, 77, 255, .75), transparent 70%); }
.blob--teal { background: radial-gradient(circle at 60% 40%, rgba(34, 224, 192, .55), transparent 70%); }
.blob--red { background: radial-gradient(circle at 45% 55%, rgba(255, 61, 104, .45), transparent 70%); }

/* ---------- 6. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .04em;
  line-height: 1.4;
  transition: background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.btn--primary {
  background: linear-gradient(140deg, var(--violet), #5A2FE0);
  color: #0B0A1F;
  font-weight: 700;
  box-shadow: 0 14px 34px -18px rgba(124, 77, 255, .95);
}

.btn--primary:hover { box-shadow: 0 0 0 1px var(--violet-soft), 0 0 30px -6px rgba(124, 77, 255, .85); }

.btn--ghost {
  background: rgba(124, 77, 255, .10);
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover { border-color: var(--violet-soft); box-shadow: 0 0 24px -8px rgba(124, 77, 255, .9); }

.btn--teal {
  background: rgba(34, 224, 192, .12);
  border-color: rgba(34, 224, 192, .45);
  color: var(--teal);
}

.btn--teal:hover { background: rgba(34, 224, 192, .2); box-shadow: 0 0 24px -8px rgba(34, 224, 192, .9); }

/* 面包屑 */
.crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--text-dim);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5em;
}

.crumbs li + li::before {
  content: "/";
  margin-right: .5em;
  color: var(--line);
}

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

/* 面板卡片 */
.panel {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(22, 18, 58, .92), rgba(11, 10, 31, .86));
  transition: border-color .25s ease, box-shadow .25s ease;
}

.panel:hover {
  border-color: var(--violet-soft);
  box-shadow: 0 0 0 1px rgba(180, 155, 255, .22), 0 20px 44px -28px rgba(124, 77, 255, .95);
}

.panel--accent { overflow: hidden; }

.panel--accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
}

.panel--tilt { transform: rotate(-2deg); }
.panel--tilt-alt { transform: rotate(2deg); }

/* 超大数字锚点 */
.stat { display: flex; flex-direction: column; gap: 8px; }

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 96px);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--violet);
}

.stat-num--teal { color: var(--teal); }
.stat-num--gold { color: var(--gold); }
.stat-num--red { color: var(--red); }

.stat-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--text-dim);
}

/* 计分板式规则条目 */
.rule-list { margin: 0; }

.rule-row {
  display: grid;
  grid-template-columns: minmax(104px, auto) minmax(0, 1fr);
  gap: 6px 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rule-row dt {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--teal);
}

.rule-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.9;
  color: rgba(237, 235, 255, .88);
}

@media (max-width: 599px) {
  .rule-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* 时间轴 */
.timeline {
  position: relative;
  margin: 0;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  padding-block: 14px 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--ink-2);
  border: 1px solid var(--violet);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.timeline-item.is-in::before {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 16px rgba(34, 224, 192, .75);
}

/* 风险 / 禁手提示 */
.notice {
  padding: 18px 20px;
  border: 1px solid rgba(255, 61, 104, .45);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(255, 61, 104, .16), rgba(255, 61, 104, .04));
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.9;
  color: rgba(237, 235, 255, .92);
}

.notice strong { color: var(--red); }

/* 徽章标签 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 18, 58, .72);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--text-dim);
}

.chip--violet { border-color: rgba(124, 77, 255, .6); color: var(--violet-soft); }
.chip--teal { border-color: rgba(34, 224, 192, .5); color: var(--teal); }
.chip--gold { border-color: rgba(255, 194, 75, .5); color: var(--gold); }
.chip--red { border-color: rgba(255, 61, 104, .55); color: var(--red); }

/* 图片容器 */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(150deg, #16123A, #0B0A1F);
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(124, 77, 255, .18), transparent 62%);
}

.media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  background: linear-gradient(transparent, rgba(11, 10, 31, .94));
}

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

@media (max-width: 599px) {
  .media, .media--wide { aspect-ratio: 4 / 3; }
}

/* ---------- 7. 显现动效 ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js-ready [data-reveal].panel--tilt { transform: translateY(20px) rotate(-2deg); }
.js-ready [data-reveal].panel--tilt-alt { transform: translateY(20px) rotate(2deg); }
.js-ready [data-reveal].panel--tilt.is-in { transform: rotate(-2deg); }
.js-ready [data-reveal].panel--tilt-alt.is-in { transform: rotate(2deg); }

@media (max-width: 719px) {
  .panel--tilt,
  .panel--tilt-alt,
  .js-ready [data-reveal].panel--tilt,
  .js-ready [data-reveal].panel--tilt-alt,
  .js-ready [data-reveal].panel--tilt.is-in,
  .js-ready [data-reveal].panel--tilt-alt.is-in { transform: none; }
}

/* ---------- 8. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 90;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--teal);
  color: #06231E;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  transform: translateY(-180%);
  transition: transform .22s var(--ease);
}

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

/* ---------- 9. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 10, 31, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 10px clamp(16px, 4vw, 40px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(124, 77, 255, .6);
  background: radial-gradient(circle at 30% 25%, rgba(124, 77, 255, .42), rgba(22, 18, 58, .9));
  box-shadow: 0 0 20px -6px rgba(124, 77, 255, .9), inset 0 0 14px rgba(124, 77, 255, .25);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--violet-soft);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
}

.brand-sign {
  display: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .02em;
  color: var(--text-dim);
}

.brand-tagline { display: none; }

@media (min-width: 560px) and (max-width: 1023px) {
  .brand-sign { display: block; }
}

/* 汉堡按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 18, 58, .85);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  transition: border-color .22s ease, box-shadow .22s ease;
}

.nav-toggle:hover {
  border-color: var(--violet-soft);
  box-shadow: 0 0 22px -8px rgba(124, 77, 255, .95);
}

.nav-toggle-bars {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 10px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transition: transform .25s var(--ease), top .25s var(--ease), bottom .25s var(--ease);
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { bottom: 4px; transform: rotate(-45deg); }

/* 轨道导航：默认 = 移动抽屉 */
.rail-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: min(330px, 86vw);
  padding: 26px 20px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(170deg, #16123A, #0B0A1F);
  border-right: 1px solid var(--line);
  box-shadow: 30px 0 70px -34px rgba(0, 0, 0, .95);
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform .34s var(--ease), visibility .34s var(--ease);
}

.rail-nav[data-open] {
  transform: translateX(0);
  visibility: visible;
}

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

.rail-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 15px;
  transition: color .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.rail-link:hover {
  color: var(--text);
  background: rgba(124, 77, 255, .16);
  border-color: rgba(180, 155, 255, .45);
}

.rail-link[aria-current="page"] {
  color: #0B0A1F;
  background: linear-gradient(140deg, var(--violet), #5A2FE0);
  border-color: var(--violet-soft);
  box-shadow: 0 0 26px -8px rgba(124, 77, 255, .95);
}

.rail-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--teal);
}

.rail-link[aria-current="page"] .rail-index { color: rgba(11, 10, 31, .7); }

.rail-label { font-family: var(--font-body); }

.rail-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.rail-action {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(22, 18, 58, .85);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-align: center;
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, color .22s ease;
}

.rail-action:hover {
  border-color: var(--violet-soft);
  background: rgba(124, 77, 255, .2);
}

.rail-action--primary {
  border-color: transparent;
  background: linear-gradient(140deg, var(--violet), #5A2FE0);
  color: #0B0A1F;
  font-weight: 700;
}

.rail-action--primary:hover {
  background: linear-gradient(140deg, #8F66FF, #6A3DFF);
  color: #0B0A1F;
  box-shadow: 0 0 26px -8px rgba(124, 77, 255, .95);
}

.rail-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* 遮罩 */
.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(6, 5, 18, .74);
  opacity: 0;
  transition: opacity .3s ease;
}

@media (max-width: 1023px) {
  .nav-scrim { display: block; }
  .nav-scrim.is-on { opacity: 1; }
  body.nav-open { overflow: hidden; }
}

/* 桌面：88px 街机选关轨道 */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: var(--rail-w);
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(22, 18, 58, .98), rgba(11, 10, 31, .98));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .topbar {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: none;
    padding: 16px 8px 12px;
    border-bottom: 1px solid var(--line);
  }

  .brand { flex-direction: column; gap: 8px; }

  .brand-text {
    align-items: center;
    text-align: center;
  }

  .brand-name { font-size: 12px; letter-spacing: .06em; }
  .brand-sign { display: none; }
  .nav-toggle { display: none; }

  .rail-nav {
    position: static;
    flex: 1 1 auto;
    min-height: 0;
    width: auto;
    gap: 10px;
    padding: 12px 8px 14px;
    visibility: visible;
    transform: none;
    border-right: 0;
    box-shadow: none;
    background: none;
    scrollbar-width: none;
  }

  .rail-nav::-webkit-scrollbar { display: none; }

  .rail-list { gap: 6px; }

  .rail-link {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px;
    border-radius: 14px;
  }

  .rail-index {
    display: none;
  }

  .rail-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 11px;
    line-height: 1.15;
    letter-spacing: .1em;
  }

  .rail-cta {
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .rail-action {
    padding: 11px 4px;
    font-size: 10px;
    letter-spacing: .02em;
    white-space: nowrap;
    border-radius: 12px;
  }

  .rail-hint { display: none; }

  .nav-scrim { display: none !important; }
}

@media (min-width: 1024px) and (min-height: 900px) {
  .brand-tagline {
    display: block;
    margin: 0;
    padding-inline: 4px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: .12em;
    color: var(--text-dim);
    opacity: .8;
  }
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 18, 58, .88), rgba(11, 10, 31, .97));
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--teal) 38%, var(--gold) 68%, var(--red));
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr);
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(40px, 6vw, 72px);
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
}

.footer-logo:hover { color: var(--violet-soft); }

.footer-domain {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--teal);
}

.footer-note {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
}

.footer-contact,
.footer-addr {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(237, 235, 255, .82);
}

.footer-addr { color: var(--text-dim); }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}

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

.footer-list li { margin: 0; }

.footer-list a {
  display: inline-block;
  padding-block: 5px;
  font-size: 14px;
  color: var(--text-dim);
  transition: color .2s ease;
}

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

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal-links a { color: var(--text-dim); }
.footer-legal-links a:hover { color: var(--teal); }

.footer-hours { color: var(--text-dim); }

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

@media (max-width: 539px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 11. 滚动进度 / 回到顶部 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: calc(var(--scroll-pct, 0) * 1%);
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--teal), var(--gold));
  pointer-events: none;
  transition: width .12s linear;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 65;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(22, 18, 58, .94);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, border-color .22s ease, box-shadow .22s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--teal);
  box-shadow: 0 0 24px -8px rgba(34, 224, 192, .95);
}

@media (min-width: 1024px) {
  .scroll-progress {
    left: calc(var(--rail-w) - 3px);
    top: 0;
    width: 3px;
    height: calc(var(--scroll-pct, 0) * 1vh);
    background: linear-gradient(180deg, var(--violet), var(--teal), var(--gold));
    transition: height .12s linear;
  }

  .to-top { right: 26px; bottom: 26px; }
}

/* ---------- 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;
  }

  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .js-ready [data-reveal].panel--tilt { transform: rotate(-2deg); }
  .js-ready [data-reveal].panel--tilt-alt { transform: rotate(2deg); }
}
