/* ==========================================================================
   AB游艺会馆 · /assets/site.css
   共享层：reset、变量、中文排版、页头、页脚、通用组件
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink-900: #06101F;
  --ink-800: #0A1527;
  --ink-700: #0E1B30;
  --ink-600: #13233D;

  --cyan: #22D3FF;
  --violet: #8B5CF6;
  --violet-soft: #B69CFF;
  --orange: #FF9F43;
  --cream: #F3E7CF;

  --text: #EAF4FF;
  --muted: #8FA6C4;
  --green: #35E0A1;
  --red: #FF5D73;

  --line: rgba(34, 211, 255, 0.18);
  --line-soft: rgba(143, 166, 196, 0.18);

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius: 2px;

  --shadow-hard: 0 1px 0 rgba(234, 244, 255, 0.05) inset, 0 18px 40px -34px rgba(34, 211, 255, 0.85);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  background-color: var(--ink-900);
  background-image:
    repeating-linear-gradient(180deg, rgba(34, 211, 255, 0.032) 0px, rgba(34, 211, 255, 0.032) 1px, transparent 1px, transparent 4px),
    radial-gradient(1100px 640px at 10% -10%, rgba(34, 211, 255, 0.15), transparent 60%),
    radial-gradient(900px 600px at 92% 0%, rgba(139, 92, 246, 0.17), transparent 58%),
    linear-gradient(180deg, #06101F 0%, #08152A 48%, #06101F 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, picture { max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
main { display: block; }

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

::selection {
  background: rgba(34, 211, 255, 0.32);
  color: #ffffff;
}

/* ---------- 3. 排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.4vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 26px); }
h4 { font-size: clamp(16px, 1.8vw, 19px); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong, b { color: #FFFFFF; font-weight: 700; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 6px;
  color: var(--cyan);
  background: rgba(34, 211, 255, 0.1);
  border: 1px solid rgba(34, 211, 255, 0.22);
  border-radius: var(--radius);
}

blockquote {
  margin: 1.5em 0;
  padding: 18px 22px;
  background: var(--cream);
  color: #121C2B;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
}

hr { border: 0; }

/* ---------- 4. 无障碍 ---------- */
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 300;
  display: inline-block;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #101A2A;
  background: var(--cream);
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  transition: top 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible { top: 12px; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- 5. 容器与通用工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  flex: none;
  background: currentColor;
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.7;
  color: #D3E4F7;
}

.prose { max-width: 68ch; }
.prose > *:last-child { margin-bottom: 0; }

.divider {
  height: 1px;
  margin-block: clamp(24px, 4vw, 48px);
  background: linear-gradient(90deg, rgba(34, 211, 255, 0.55), rgba(139, 92, 246, 0.3), transparent);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--cyan);
  border-bottom: 1px solid rgba(34, 211, 255, 0.42);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.link-more::after {
  content: "→";
  transition: transform 0.18s ease;
}
.link-more:hover {
  color: #7FE8FF;
  border-bottom-color: currentColor;
}
.link-more:hover::after { transform: translateX(4px); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--orange);
  color: #1A0E00;
  box-shadow: 0 10px 24px -18px rgba(255, 159, 67, 0.95);
}
.btn--primary:hover {
  background: #FFB667;
  box-shadow: 0 0 0 1px rgba(255, 182, 103, 0.75) inset, 0 14px 28px -16px rgba(255, 159, 67, 0.95);
}

.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(34, 211, 255, 0.5);
}
.btn--ghost:hover {
  background: rgba(34, 211, 255, 0.1);
  border-color: var(--cyan);
  box-shadow: 0 0 18px -8px var(--cyan);
}

.btn--violet {
  background: rgba(139, 92, 246, 0.16);
  color: #C9B6FF;
  border-color: rgba(139, 92, 246, 0.55);
}
.btn--violet:hover {
  background: rgba(139, 92, 246, 0.28);
  border-color: var(--violet-soft);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ---------- 7. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(143, 166, 196, 0.08);
  border: 1px solid currentColor;
  border-radius: var(--radius);
}
.tag--cyan { color: var(--cyan); background: rgba(34, 211, 255, 0.1); }
.tag--violet { color: var(--violet-soft); background: rgba(139, 92, 246, 0.14); }
.tag--orange { color: var(--orange); background: rgba(255, 159, 67, 0.12); }
.tag--green { color: var(--green); background: rgba(53, 224, 161, 0.12); }
.tag--red { color: var(--red); background: rgba(255, 93, 115, 0.12); }

/* ---------- 8. 面板 / 展签 / 图像容器 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  background: linear-gradient(180deg, rgba(14, 27, 48, 0.94), rgba(10, 21, 39, 0.94));
  border: 1px solid rgba(143, 166, 196, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.panel--cyan { border-color: rgba(34, 211, 255, 0.4); }
.panel--violet { border-color: rgba(139, 92, 246, 0.42); }
.panel--orange { border-color: rgba(255, 159, 67, 0.5); }

.panel--interactive::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.25s ease;
}
.panel--interactive:hover,
.panel--interactive:focus-within {
  border-color: rgba(34, 211, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(34, 211, 255, 0.18) inset, 0 22px 44px -34px rgba(34, 211, 255, 0.95);
}
.panel--interactive:hover::before,
.panel--interactive:focus-within::before { transform: scaleX(1); }

.slip {
  position: relative;
  padding: clamp(16px, 2.2vw, 24px) clamp(16px, 2.2vw, 24px) clamp(16px, 2.2vw, 24px) clamp(22px, 2.8vw, 30px);
  color: #121C2B;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 rgba(4, 11, 22, 0.55);
}
.slip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--orange), var(--violet));
}
.slip h2, .slip h3, .slip h4, .slip strong { color: #101A2A; }
.slip a { color: #8A3B00; }

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(143, 166, 196, 0.22);
  border-radius: var(--radius);
  background-color: var(--ink-600);
  background-image:
    repeating-linear-gradient(180deg, rgba(34, 211, 255, 0.06) 0 1px, transparent 1px 4px),
    radial-gradient(120% 120% at 18% 0%, rgba(139, 92, 246, 0.38), transparent 62%),
    radial-gradient(100% 100% at 92% 100%, rgba(34, 211, 255, 0.26), transparent 64%);
}
.media-frame > img,
.media-frame > picture,
.media-frame > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(6, 16, 31, 0.84);
  border-top: 1px solid rgba(34, 211, 255, 0.35);
}

/* ---------- 9. 面包屑 ---------- */
.crumbs { padding-block: 14px; border-bottom: 1px solid var(--line-soft); }
.crumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs-list a {
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.crumbs-list a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.crumbs-list [aria-current="page"] { color: var(--cream); }
.crumb-sep { color: rgba(143, 166, 196, 0.5); }

/* ---------- 10. 网格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* ---------- 11. 页头 ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  background: rgba(143, 166, 196, 0.14);
  pointer-events: none;
}
.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--orange));
  box-shadow: 0 0 12px rgba(34, 211, 255, 0.7);
}

.site-header {
  position: relative;
  z-index: 100;
  background: linear-gradient(180deg, rgba(6, 16, 31, 0.98), rgba(8, 21, 42, 0.94));
  border-bottom: 1px solid var(--line);
}

/* 状态带 */
.header-ledger {
  background: #040B16;
  border-bottom: 1px solid rgba(143, 166, 196, 0.14);
}
.ledger-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ledger-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}
.ledger-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ledger-tag {
  margin-left: auto;
  flex: none;
  padding: 2px 8px;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 255, 0.35);
  border-radius: var(--radius);
}

/* 刊头 */
.header-masthead {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 27, 48, 0.9), rgba(6, 16, 31, 0.55));
}
.header-masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 160px at 6% 120%, rgba(34, 211, 255, 0.18), transparent 72%),
    radial-gradient(380px 150px at 94% -10%, rgba(139, 92, 246, 0.22), transparent 72%);
}
.header-masthead::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 18%, var(--violet) 52%, var(--orange) 84%, transparent);
  opacity: 0.7;
}
.masthead-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(14px, 2.2vw, 22px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
  text-shadow: 0 0 22px rgba(34, 211, 255, 0.42);
  transition: color 0.18s ease, text-shadow 0.18s ease;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  color: var(--cyan);
  text-shadow: 0 0 26px rgba(34, 211, 255, 0.75);
}

.masthead-line {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 19px);
  letter-spacing: 0.16em;
  color: var(--muted);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
  background: rgba(19, 35, 61, 0.85);
  border: 1px solid rgba(143, 166, 196, 0.28);
  border-radius: 999px;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.pill:hover {
  border-color: currentColor;
  box-shadow: 0 0 0 1px currentColor inset, 0 0 18px -6px currentColor;
}
.pill--cyan { color: var(--cyan); }
.pill--violet { color: var(--violet-soft); }
.pill--orange {
  color: var(--orange);
  background: rgba(255, 159, 67, 0.12);
  border-color: rgba(255, 159, 67, 0.45);
}
.pill--orange:hover { background: rgba(255, 159, 67, 0.22); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  background: rgba(19, 35, 61, 0.9);
  border: 1px solid rgba(34, 211, 255, 0.4);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.nav-toggle:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 255, 0.1);
}
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
  flex: none;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-label { white-space: nowrap; }

[data-nav-open="true"] .nav-toggle {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 159, 67, 0.12);
}
[data-nav-open="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
[data-nav-open="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
[data-nav-open="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 索引轨 */
.nav-rail {
  background: rgba(4, 11, 22, 0.74);
  border-bottom: 1px solid var(--line-soft);
}
.nav-rail-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item { flex: 0 0 auto; }
.nav-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 14px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(34, 211, 255, 0.07);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(143, 166, 196, 0.7);
  transition: color 0.18s ease;
}
.nav-text { white-space: nowrap; }
.nav-link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: rgba(34, 211, 255, 0.06);
}
.nav-link[aria-current="page"] .nav-index { color: var(--orange); }

.rail-note {
  margin-left: auto;
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(143, 166, 196, 0.7);
  white-space: nowrap;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  color: var(--text);
  background-color: var(--ink-700);
  background-image:
    repeating-linear-gradient(180deg, rgba(34, 211, 255, 0.03) 0 1px, transparent 1px 5px),
    radial-gradient(760px 380px at 16% 0%, rgba(139, 92, 246, 0.22), transparent 64%),
    radial-gradient(640px 340px at 88% 8%, rgba(34, 211, 255, 0.14), transparent 62%);
  border-top: 1px solid rgba(34, 211, 255, 0.3);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 48%, var(--orange));
  opacity: 0.9;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(36px, 5vw, 64px);
}

.footer-brand { min-width: 0; }
.footer-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-line {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  text-wrap: balance;
}
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #1A0E00;
  background: var(--orange);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(255, 159, 67, 0.5), 0 12px 26px -18px rgba(255, 159, 67, 0.9);
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.footer-cta::after {
  content: "→";
  font-size: 16px;
  transition: transform 0.18s ease;
}
.footer-cta:hover {
  background: #FFB667;
  box-shadow: 0 0 0 1px rgba(255, 182, 103, 0.8) inset, 0 16px 30px -18px rgba(255, 159, 67, 0.95);
}
.footer-cta:hover::after { transform: translateX(4px); }
.footer-cta:active { transform: translateY(1px); }

.footer-version {
  margin: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}
.footer-col {
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(143, 166, 196, 0.22);
}
.footer-col-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}
.footer-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-list a {
  display: inline-block;
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer-list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-board {
  color: #101A2A;
  background: var(--cream);
  border-top: 1px solid rgba(6, 16, 31, 0.25);
}
.board-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-block: 14px;
}
.board-legal {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.board-contact {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: #3A4A61;
  overflow-wrap: anywhere;
}

/* ---------- 13. 悬浮返回操作台 ---------- */
.return-dock {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #101A2A;
  background: var(--cream);
  border: 1px solid rgba(6, 16, 31, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(255, 159, 67, 0.85), 0 18px 34px -22px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.18s ease;
}
.return-dock.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.return-dock:hover { background: #FFF4E0; }
.return-dock-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #B4530A;
}
.return-dock-label { letter-spacing: 0.04em; white-space: nowrap; }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1000px) {
  .masthead-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding-block: 12px;
  }
  .masthead-line,
  .quick-actions { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-rail-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-inline: 0;
  }
  .site-nav { width: 100%; }
  .rail-note { display: none; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 4px;
    display: none;
  }
  .site-nav[data-open="true"] .nav-list { display: flex; }

  .nav-item { width: 100%; }
  .nav-link {
    align-items: center;
    padding: 15px var(--gutter);
    font-size: 16px;
    border-bottom: 1px solid rgba(143, 166, 196, 0.12);
    border-left: 2px solid transparent;
  }
  .nav-link[aria-current="page"] {
    border-bottom-color: rgba(143, 166, 196, 0.12);
    border-left-color: var(--cyan);
  }

  .col-3, .col-4, .col-6, .col-8, .col-9 { grid-column: 1 / -1; }
}

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

@media (max-width: 560px) {
  body { font-size: 16px; }
  .ledger-text { font-size: 10px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .board-inner { flex-direction: column; align-items: flex-start; }
  .footer-cta { width: 100%; justify-content: center; }
  .nav-toggle-label { display: none; }
}

/* ---------- 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;
  }
  .return-dock { transform: none; }
}
