/* ============================================================
   电玩棋牌 CN 站 · 共享站点样式 /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, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

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

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

img { height: auto; }

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

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

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 色彩体系 */
  --ink: #0B0D14;
  --ink-deep: #07080D;
  --panel: #1B1730;
  --panel-deep: #120F24;
  --paper: #F4E8D0;
  --violet: #7B4DFF;
  --cyan: #22D3EE;
  --orange: #FF8A3D;
  --orange-soft: #FFAA6B;
  --lime: #A3FF5E;
  --slate: #AEB7CC;
  --teal: #0D3B45;
  --teal-deep: #0A2229;

  /* 线条与阴影 */
  --line: rgba(174, 183, 204, 0.20);
  --line-soft: rgba(174, 183, 204, 0.12);
  --line-paper: rgba(20, 18, 39, 0.14);
  --shadow-panel: 0 1px 0 rgba(244, 232, 208, 0.05) inset,
                  0 18px 40px -30px rgba(0, 0, 0, 0.95);
  --shadow-lift: 0 22px 46px -28px rgba(0, 0, 0, 1);

  /* 圆角 */
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  /* 字体 */
  --font-display: 'Archivo Black', 'Noto Sans SC', 'Source Han Sans SC',
                  system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', system-ui, -apple-system,
               'Segoe UI', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular,
               Menlo, Consolas, monospace;

  /* 版式 */
  --shell: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 78px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.5vw + 13.6px, 17px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  background-color: var(--ink);
  background-image:
    radial-gradient(1000px 620px at 8% -12%, rgba(123, 77, 255, 0.22), transparent 62%),
    radial-gradient(760px 520px at 96% -4%, rgba(34, 211, 238, 0.13), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(255, 138, 61, 0.09), transparent 65%),
    linear-gradient(to right, rgba(174, 183, 204, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(174, 183, 204, 0.045) 1px, transparent 1px);
  background-size: auto, auto, auto, 56px 56px, 56px 56px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--paper);
}

h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  letter-spacing: 0.005em;
  text-shadow: 2px 0 0 rgba(123, 77, 255, 0.50),
               -2px 0 0 rgba(34, 211, 238, 0.26);
}

h2 { font-size: clamp(24px, 2.6vw, 34px); }
h3 { font-size: clamp(18px, 1.6vw, 23px); }
h4 { font-size: clamp(16px, 1.2vw, 19px); }

p { margin-bottom: 0.9em; }

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

a:hover { color: var(--paper); }

strong, b { font-weight: 700; color: var(--paper); }

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

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

:where([id]) {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.18);
}

#main-content:focus { outline: none; }

/* ---------- 4. 布局骨架 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(26px, 4.6vw, 54px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(16px, 2.4vw, 26px);
}

.page-head {
  padding-block: clamp(22px, 4vw, 44px) clamp(10px, 1.8vw, 18px);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}

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

.rail {
  grid-column: span 4;
  position: sticky;
  top: calc(var(--header-h) + 18px);
  align-self: start;
}

.flow { grid-column: span 8; }

/* ---------- 5. 文本与索引组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.lede {
  max-width: 64ch;
  font-size: clamp(15px, 0.42vw + 14px, 18px);
  line-height: 1.78;
  color: rgba(244, 232, 208, 0.82);
}

.coord {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(174, 183, 204, 0.8);
}

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.7em; margin-bottom: 0.5em; }
.prose h3 { margin-top: 1.5em; margin-bottom: 0.4em; }
.prose p { margin-bottom: 1em; }
.prose ul, .prose ol { padding-left: 1.25em; margin-bottom: 1em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--violet); }
.prose a { color: var(--cyan); }

.divider {
  height: 1px;
  border: 0;
  margin-block: clamp(20px, 3vw, 34px);
  background: linear-gradient(90deg, rgba(123, 77, 255, 0.75),
              rgba(34, 211, 238, 0.45) 45%, transparent 92%);
}

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

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease,
              background-color 180ms ease, border-color 180ms ease,
              color 180ms ease;
}

.btn--primary {
  color: #1A0F05;
  background: linear-gradient(180deg, var(--orange-soft), var(--orange));
  box-shadow: 0 16px 32px -20px rgba(255, 138, 61, 0.95);
}

.btn--primary:hover {
  color: #1A0F05;
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -18px rgba(255, 138, 61, 1);
}

.btn--ghost {
  color: var(--paper);
  border-color: rgba(123, 77, 255, 0.6);
  background: rgba(123, 77, 255, 0.12);
}

.btn--ghost:hover {
  color: var(--paper);
  background: rgba(123, 77, 255, 0.24);
  transform: translateY(-2px);
}

.btn--quiet {
  color: var(--slate);
  border-color: rgba(174, 183, 204, 0.32);
  background: transparent;
}

.btn--quiet:hover {
  color: var(--paper);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumbs {
  margin-bottom: clamp(12px, 2vw, 20px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(174, 183, 204, 0.45);
}

.breadcrumbs a {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px dotted rgba(174, 183, 204, 0.5);
}

.breadcrumbs a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 8. 面板与标签 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.8vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-panel);
  transition: transform 200ms ease, border-color 200ms ease,
              box-shadow 200ms ease;
}

.panel--paper {
  background: var(--paper);
  color: #141227;
  border-color: var(--line-paper);
}

.panel--paper h2,
.panel--paper h3,
.panel--paper strong { color: #141227; }

.panel--paper .coord,
.panel--paper .eyebrow { color: rgba(20, 18, 39, 0.66); }

.panel--teal {
  background: linear-gradient(160deg, var(--teal), var(--teal-deep));
  border-color: rgba(34, 211, 238, 0.28);
}

.panel--violet {
  background: linear-gradient(155deg, rgba(123, 77, 255, 0.28), rgba(27, 23, 48, 0.94));
  border-color: rgba(123, 77, 255, 0.5);
}

.panel--lift:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 77, 255, 0.55);
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(123, 77, 255, 0.28);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid rgba(174, 183, 204, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(174, 183, 204, 0.07);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  line-height: 1.5;
  color: var(--slate);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease,
              background-color 160ms ease;
}

.tag:hover {
  color: var(--paper);
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.14);
}

.tag--hot {
  color: #1A0F05;
  border-color: transparent;
  background: var(--orange);
}

.tag--live {
  color: var(--lime);
  border-color: rgba(163, 255, 94, 0.45);
  background: rgba(163, 255, 94, 0.1);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 9px rgba(163, 255, 94, 0.9);
}

.data-figure {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan);
}

/* ---------- 9. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-image:
    linear-gradient(to right, rgba(174, 183, 204, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(174, 183, 204, 0.10) 1px, transparent 1px),
    linear-gradient(155deg, rgba(123, 77, 255, 0.30), rgba(34, 211, 238, 0.16) 55%, rgba(255, 138, 61, 0.18));
  background-size: 28px 28px, 28px 28px, 100% 100%;
}

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

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

.media-frame__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(11, 13, 20, 0.78);
  border: 1px solid rgba(244, 232, 208, 0.18);
}

/* ---------- 10. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #12101F;
  background: var(--paper);
  text-decoration: none;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.8);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

/* ---------- 11. 头部：悬浮胶囊浮岛 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 12px var(--gutter) 10px;
  background: linear-gradient(180deg, rgba(11, 13, 20, 0.96) 0%,
              rgba(11, 13, 20, 0.78) 58%, rgba(11, 13, 20, 0) 100%);
}

.header-shell {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: var(--shell);
  margin-inline: auto;
}

/* 品牌胶囊 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border: 1px solid rgba(244, 232, 208, 0.16);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(27, 23, 48, 0.94), rgba(18, 15, 36, 0.94));
  text-decoration: none;
  color: var(--paper);
  box-shadow: 0 12px 26px -22px #000;
  transition: border-color 190ms ease, transform 190ms ease;
}

.brand:hover {
  color: var(--paper);
  border-color: rgba(123, 77, 255, 0.75);
  transform: translateY(-1px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--violet), #3B2A8C 55%, var(--cyan));
  box-shadow: 0 0 0 1px rgba(244, 232, 208, 0.2) inset;
}

.brand-mark::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(163, 255, 94, 0.8);
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.brand-line {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--slate);
}

/* 导航胶囊 */
.primary-nav {
  margin-inline: auto;
  padding: 5px;
  border: 1px solid rgba(174, 183, 204, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(18, 15, 36, 0.8);
  box-shadow: 0 14px 32px -26px #000, 0 0 0 1px rgba(123, 77, 255, 0.1) inset;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { margin: 0; }

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--slate);
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease,
              box-shadow 180ms ease;
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(123, 77, 255, 0.22);
}

.nav-link[aria-current="page"] {
  color: #12101F;
  font-weight: 700;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(244, 232, 208, 0.55),
              0 0 20px -8px rgba(244, 232, 208, 0.75);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid rgba(244, 232, 208, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(18, 15, 36, 0.9);
  color: var(--paper);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.nav-toggle:hover { border-color: rgba(34, 211, 238, 0.6); }

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 14px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform 200ms ease, background-color 200ms ease;
}

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
}

.site-header[data-open] .nav-toggle {
  border-color: rgba(255, 138, 61, 0.7);
}

.site-header[data-open] .nav-toggle-bar:first-child {
  background: var(--orange);
  transform: translateY(3px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-bar:last-child {
  background: var(--orange);
  transform: translateY(-3px) rotate(-45deg);
}

/* 工具浮岛 */
.header-utility {
  display: flex;
  align-items: center;
  gap: 6px;
}

.utility-link {
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--slate);
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease,
              background-color 180ms ease;
}

.utility-link:hover {
  color: var(--paper);
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.1);
}

.utility-link--flag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 9px rgba(163, 255, 94, 0.9);
  vertical-align: middle;
}

.utility-cta {
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1A0F05;
  text-decoration: none;
  background: linear-gradient(180deg, var(--orange-soft), var(--orange));
  box-shadow: 0 0 22px -10px rgba(255, 138, 61, 0.95),
              0 0 0 1px rgba(255, 170, 107, 0.5) inset;
  white-space: nowrap;
  transition: transform 180ms ease, filter 180ms ease;
}

.utility-cta:hover {
  color: #1A0F05;
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* ---------- 12. 页脚：堆叠导视牌 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  padding-block: clamp(42px, 6vw, 68px) 26px;
  background: linear-gradient(180deg, rgba(11, 13, 20, 0.25), var(--ink-deep) 55%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan) 45%,
              var(--orange) 78%, transparent);
  box-shadow: 0 0 18px rgba(123, 77, 255, 0.55);
}

.footer-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 14px;
}

.footer-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid rgba(244, 232, 208, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

.footer-panel--brand {
  background: var(--paper);
  color: #141227;
  border-color: var(--line-paper);
}

.footer-panel--links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 6px 20px;
  background: rgba(27, 23, 48, 0.92);
}

.footer-panel--contact {
  background: linear-gradient(160deg, var(--teal), var(--teal-deep));
  border-color: rgba(34, 211, 238, 0.28);
}

.footer-index {
  display: block;
  grid-column: 1 / -1;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(174, 183, 204, 0.85);
}

.footer-panel--brand .footer-index { color: rgba(20, 18, 39, 0.55); }

.footer-brand-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: 0.03em;
  color: #141227;
}

.footer-brand-line {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(20, 18, 39, 0.62);
}

.footer-lead {
  max-width: 34ch;
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(20, 18, 39, 0.84);
}

.footer-col { min-width: 0; }

.footer-col-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.footer-link-list {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--slate);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: rgba(174, 183, 204, 0.5);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.footer-link:hover {
  color: var(--paper);
  transform: translateX(2px);
}

.footer-link:hover::before {
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(34, 211, 238, 0.9);
}

.footer-contact-list {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.footer-contact-item { display: grid; gap: 3px; }

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.9);
}

.footer-contact-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.footer-cta { margin-top: 2px; }

.footer-panel--brand .btn--ghost {
  color: #141227;
  border-color: rgba(20, 18, 39, 0.42);
  background: rgba(20, 18, 39, 0.06);
}

.footer-panel--brand .btn--ghost:hover {
  color: #141227;
  background: rgba(20, 18, 39, 0.14);
}

.footer-panel--contact .btn--quiet {
  color: rgba(244, 232, 208, 0.9);
  border-color: rgba(34, 211, 238, 0.45);
}

.footer-panel--contact .btn--quiet:hover {
  color: var(--paper);
  border-color: var(--cyan);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(174, 183, 204, 0.22);
}

.footer-legal,
.footer-meta,
.footer-coord {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.7;
  color: rgba(174, 183, 204, 0.75);
}

.footer-coord { color: rgba(163, 255, 94, 0.7); }

/* ---------- 13. 动效与进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--violet), var(--cyan) 55%, var(--orange));
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.55);
}

[data-reveal] { transition: opacity 520ms ease, transform 520ms ease; }

.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; order: 3; }

  .header-utility {
    order: 2;
    margin-left: auto;
  }

  .brand { margin-right: auto; }

  .primary-nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px;
    border-radius: var(--radius-lg);
    background: rgba(15, 12, 30, 0.98);
    box-shadow: 0 30px 60px -30px #000,
                0 0 0 1px rgba(123, 77, 255, 0.28);
  }

  .site-header[data-open] .primary-nav { display: block; }

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

  .nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 15px;
  }
}

@media (max-width: 1000px) {
  .footer-stack { grid-template-columns: 1fr 1fr; }
  .footer-panel--brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .rail,
  .flow,
  .span-4,
  .span-6,
  .span-8 {
    grid-column: 1 / -1;
    position: static;
  }

  .rail { top: auto; }
}

@media (max-width: 660px) {
  .footer-stack { grid-template-columns: 1fr; }
  .footer-panel--brand { grid-column: auto; }
  .footer-panel--links { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .utility-link { display: none; }
  .header-shell { gap: 8px; }
  .brand { padding: 6px 13px 6px 7px; }
}

@media (max-width: 420px) {
  .brand-line { display: none; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 10px 13px; }
}

/* ---------- 15. 无障碍与降级 ---------- */
@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;
  }

  .has-reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .panel--lift:hover,
  .btn:hover,
  .utility-cta:hover,
  .footer-link:hover,
  .brand:hover { transform: none; }
}
