/* =========================================================
   V8国际娱乐汇 · 版本档案库 — /assets/site.css
   共享层：reset / 变量 / 中文排版 / 页头 / 页脚 / 通用组件
   ========================================================= */

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

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

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

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

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

button { font: inherit; color: inherit; background: none; border: 0; }

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

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

/* ---------- 2. 变量 ---------- */
:root {
  --space-blue: #07111F;
  --archive-black: #0B0F14;
  --navy: #0E1B2E;
  --neon-cyan: #22D3EE;
  --neon-cyan-soft: #67E8F9;
  --amber: #F5B942;
  --deep-amber: #B7791F;
  --paper: #F4F7FB;
  --mist: #A7B4C8;
  --glass: rgba(34, 211, 238, 0.12);
  --line: rgba(167, 180, 200, 0.18);
  --line-strong: rgba(34, 211, 238, 0.38);

  --font-display: "Sora", "Space Grotesk", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 18px;

  --wrap: 1280px;
  --pad-x: clamp(16px, 3.4vw, 44px);

  --dur: 180ms;
  --ease: cubic-bezier(0.33, 0.72, 0.34, 1);
  --shadow-lift: 0 18px 42px -26px rgba(0, 0, 0, 0.92);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--space-blue);
  background-image:
    radial-gradient(900px 520px at 88% -10%, rgba(34, 211, 238, 0.16), transparent 66%),
    radial-gradient(760px 480px at 2% 6%, rgba(14, 27, 46, 0.92), transparent 70%),
    linear-gradient(to right, rgba(34, 211, 238, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 211, 238, 0.055) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; }
h4 { font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 700; }

p { text-wrap: pretty; }

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

::selection { background: rgba(34, 211, 238, 0.32); color: #FFFFFF; }

/* ---------- 4. 焦点与无障碍 ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.2);
}

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

.skip-link {
  position: absolute;
  left: clamp(12px, 2vw, 24px);
  top: 10px;
  z-index: 220;
  transform: translateY(-220%);
  padding: 0.7em 1.15em;
  border-radius: 6px;
  background: var(--amber);
  color: #1A1104;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform var(--dur) var(--ease);
}

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

/* ---------- 5. 容器与工具 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.divider {
  height: 1px;
  border: 0;
  margin: clamp(28px, 4vw, 56px) 0;
  background: linear-gradient(90deg, transparent, var(--line-strong) 22%, var(--line-strong) 78%, transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.78em 1.35em;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn--primary {
  background: var(--neon-cyan);
  color: #04131B;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.45), 0 16px 32px -18px rgba(34, 211, 238, 0.8);
}

.btn--primary:hover {
  background: var(--neon-cyan-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  background: var(--glass);
  border-color: var(--line-strong);
  color: var(--paper);
}

.btn--ghost:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
}

.btn--amber {
  background: transparent;
  border-color: var(--deep-amber);
  color: var(--amber);
}

.btn--amber:hover {
  background: rgba(245, 185, 66, 0.12);
  border-color: var(--amber);
  transform: translateY(-2px);
}

.btn--block { width: 100%; }

/* ---------- 7. 徽章 / 标签 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.24em 0.66em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  color: var(--neon-cyan-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--amber {
  border-color: var(--deep-amber);
  background: rgba(245, 185, 66, 0.1);
  color: var(--amber);
}

.badge--muted {
  border-color: var(--line);
  background: rgba(167, 180, 200, 0.08);
  color: var(--mist);
}

/* ---------- 8. 面板 / 卡片 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy);
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.panel:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.glass-panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(158deg, rgba(34, 211, 238, 0.14), rgba(14, 27, 46, 0.7));
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.75), transparent);
}

/* ---------- 9. 大字号数据锚点 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.stat__num--amber { color: var(--amber); }

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---------- 10. 图片容器基础 ---------- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy);
}

.figure__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  width: 100%;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background:
    radial-gradient(120% 120% at 12% 0%, rgba(34, 211, 238, 0.18), transparent 58%),
    repeating-linear-gradient(90deg, rgba(167, 180, 200, 0.12) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(167, 180, 200, 0.12) 0 1px, transparent 1px 48px),
    linear-gradient(160deg, #0E1B2E, #07111F);
}

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

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

.figure__caption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.breadcrumbs a {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.breadcrumbs__sep { opacity: 0.5; }

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

/* ---------- 12. 长文排版 ---------- */
.prose {
  max-width: 68ch;
  font-size: 1.02rem;
  color: var(--mist);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  margin-top: 1.8em;
  color: var(--paper);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.prose h3 {
  margin-top: 1.6em;
  color: var(--paper);
}

.prose ul, .prose ol {
  padding-left: 1.25em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li + li { margin-top: 0.5em; }

.prose a {
  color: var(--neon-cyan);
  border-bottom: 1px solid rgba(34, 211, 238, 0.42);
  transition: color var(--dur) var(--ease);
}

.prose a:hover { color: var(--neon-cyan-soft); }

/* ---------- 13. 网格 / Bento ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 1.8vw, 24px);
}

.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)); }

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

.bento > * { grid-column: span 6; }
.bento__hero { grid-column: span 8; }
.bento__side { grid-column: span 4; }
.bento__quarter { grid-column: span 3; }
.bento__full { grid-column: 1 / -1; }

/* ---------- 14. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 17, 31, 0.88);
  border-bottom: 1px solid rgba(34, 211, 238, 0.16);
  box-shadow: inset 0 1px 0 rgba(103, 232, 249, 0.22);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.4vw, 36px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(10px, 1.3vw, 15px) var(--pad-x);
}

/* 品牌题签 */
.brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  flex: 0 0 auto;
  border-radius: 8px;
}

.brand__sigil {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #04131B;
  background: linear-gradient(150deg, var(--neon-cyan-soft), var(--neon-cyan));
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.55), 0 12px 26px -16px rgba(34, 211, 238, 0.95);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.brand:hover .brand__sigil {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.9), 0 16px 30px -14px rgba(34, 211, 238, 1);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.brand__meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--glass);
  color: var(--neon-cyan-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-toggle:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: var(--neon-cyan);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

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

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  min-width: 0;
}

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

.nav-index__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  padding: 0.5em 0.62em;
  border-radius: 5px;
  color: var(--mist);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-index__num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--deep-amber);
  transition: color var(--dur) var(--ease);
}

.nav-index__label {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-index__link::after {
  content: "";
  position: absolute;
  left: 0.62em;
  right: 0.62em;
  bottom: 0.26em;
  height: 1px;
  background: var(--neon-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-index__link:hover {
  color: var(--paper);
  background: rgba(34, 211, 238, 0.12);
}

.nav-index__link:hover::after { transform: scaleX(1); }

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

.nav-index__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--amber);
}

.nav-index__link[aria-current="page"] .nav-index__num { color: var(--amber); }

/* 右侧快捷跳转 */
.nav-quick {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: clamp(10px, 1.6vw, 20px);
  border-left: 1px solid var(--line);
}

.nav-quick__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0.8;
}

.nav-quick__link {
  padding: 0.4em 0.72em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--neon-cyan-soft);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.nav-quick__link:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: var(--neon-cyan);
  color: var(--paper);
}

/* 阅读进度尺 */
.scroll-meter {
  height: 2px;
  width: 100%;
  background: rgba(34, 211, 238, 0.1);
}

.scroll-meter__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-cyan-soft) 58%, var(--amber) 100%);
  transition: width 120ms linear;
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  overflow: hidden;
  background: var(--archive-black);
  border-top: 1px solid rgba(34, 211, 238, 0.22);
}

.site-footer::before {
  content: "V8";
  position: absolute;
  right: -0.05em;
  bottom: -0.3em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(9rem, 26vw, 22rem);
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: rgba(34, 211, 238, 0.05);
  pointer-events: none;
  user-select: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) var(--pad-x) clamp(20px, 3vw, 32px);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.25fr;
  gap: clamp(20px, 3vw, 44px);
}

/* 页脚品牌 */
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.footer-brand__meta {
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.footer-brand__summary {
  margin-top: 0.8rem;
  max-width: 30ch;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--mist);
}

.footer-brand__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.footer-brand__chip {
  padding: 0.22em 0.7em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--mist);
  background: rgba(34, 211, 238, 0.06);
}

/* 页脚栏目 */
.footer-nav__title {
  margin-bottom: 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.footer-nav--legal .footer-nav__title { color: var(--amber); }

.footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.92rem;
  color: var(--mist);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.footer-nav__link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--deep-amber);
  opacity: 0.55;
  transition: background-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

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

.footer-nav__link:hover::before {
  background: var(--neon-cyan);
  opacity: 1;
}

/* 页脚联系 */
.footer-contact__list {
  display: grid;
  gap: 0.7rem;
}

.footer-contact__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: baseline;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}

.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-contact__value--text {
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.55;
}

.footer-contact__note {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(183, 121, 31, 0.5);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--mist);
}

/* 页脚底部 */
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.4rem;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.footer-copy { color: var(--mist); }

.footer-icp { letter-spacing: 0.04em; }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.5em 0.95em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--glass);
  color: var(--neon-cyan-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.to-top:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 95;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 18px var(--pad-x) 24px;
    border-bottom: 1px solid var(--line-strong);
    background: rgba(11, 15, 20, 0.985);
    box-shadow: 0 34px 60px -34px #000000;
  }

  .site-nav[data-open="true"] {
    display: flex;
    animation: nav-drop 180ms var(--ease) both;
  }

  .nav-index {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-index__link {
    padding: 0.7em 0.8em;
    border-radius: 6px;
    border-left: 2px solid transparent;
  }

  .nav-index__label { font-size: 1rem; }

  .nav-index__link::after { display: none; }

  .nav-index__link[aria-current="page"] {
    border-left-color: var(--amber);
    background: rgba(245, 185, 66, 0.08);
  }

  .nav-quick {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .nav-quick__link {
    padding: 0.55em 1em;
    font-size: 0.86rem;
  }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

  .bento__hero { grid-column: 1 / -1; }
  .bento__side { grid-column: 1 / -1; }
  .bento__quarter { grid-column: span 6; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .brand__sigil { width: 40px; height: 40px; font-size: 0.92rem; }
  .brand__name { font-size: 0.95rem; }
  .brand__meta { font-size: 0.56rem; letter-spacing: 0.18em; }

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

  .bento > * { grid-column: 1 / -1; }

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

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .nav-toggle__text { display: none; }
  .brand__meta { display: none; }
  .footer-contact__item { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
}

/* ---------- 17. 减少动效 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .scroll-meter__bar { transition: none; }
  .panel:hover,
  .btn:hover,
  .to-top:hover,
  .footer-nav__link:hover { transform: none; }
}
