/* ============================================================
   红黑娱乐汇 · 共享样式表 /assets/site.css
   午夜剧场 · 红黑对撞 · 档案夹资料卡
   ============================================================ */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  min-height: 100vh;
  background: var(--stage);
  color: var(--chalk);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; }

a { color: inherit; }

ul, ol { padding: 0; }

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection {
  background: var(--red);
  color: #fff;
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --stage: #0B0B0F;
  --curtain: #15151C;
  --red: #E11D2E;
  --neon: #FF3B4E;
  --gold: #F5B84B;
  --chalk: #F4F1EA;
  --blush: #FF8A96;
  --wine: #5A0E18;
  --ash: #8A8F98;
  --cyan: #6FE7E0;

  --line: rgba(244, 241, 234, 0.12);
  --line-strong: rgba(244, 241, 234, 0.24);
  --line-red: rgba(255, 59, 78, 0.42);

  /* 形状 */
  --r-xl: 32px;
  --r-lg: 26px;
  --r-md: 20px;
  --r-sm: 12px;
  --r-pill: 999px;

  /* 尺度 */
  --gutter: clamp(16px, 3.6vw, 44px);
  --shell: min(1320px, 100% - var(--gutter) * 2);
  --fs-body: 17px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-mid: 280ms;
  --t-slow: 360ms;

  /* 字体 */
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;
}

@media (max-width: 780px) {
  :root { --fs-body: 16px; }
}

/* ---------- 3. 舞台底纹 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 88% at 84% -12%, rgba(225, 29, 46, 0.20), transparent 62%),
    radial-gradient(90% 62% at 6% 4%, rgba(245, 184, 75, 0.07), transparent 58%),
    radial-gradient(70% 50% at 50% 108%, rgba(90, 14, 24, 0.55), transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: repeating-linear-gradient(
    118deg,
    rgba(244, 241, 234, 0.9) 0 1px,
    transparent 1px 4px
  );
}

/* ---------- 4. 焦点与可达性 ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  pointer-events: auto;
  transform: translateY(-180%);
  transition: transform var(--t-fast) ease-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

#main-content:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 8px;
}

/* ---------- 5. 布局容器 ---------- */
.page-main {
  position: relative;
  z-index: 1;
  display: block;
  padding-top: clamp(96px, 11vw, 124px);
  padding-bottom: clamp(40px, 6vw, 80px);
}

.container {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(44px, 6.5vw, 92px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
}

.section-num::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
}

.chapter-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(48px, 9vw, 108px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(225, 29, 46, 0.6);
}

.section-title {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 62ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  color: rgba(244, 241, 234, 0.82);
}

/* ---------- 6. 正文排版 ---------- */
.prose {
  max-width: 72ch;
  font-size: var(--fs-body);
  line-height: 1.85;
  color: rgba(244, 241, 234, 0.86);
}

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

.prose h2 {
  margin-top: 2em;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--chalk);
}

.prose h3 {
  margin-top: 1.6em;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--chalk);
}

.prose a {
  color: var(--blush);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 138, 150, 0.45);
  transition: color var(--t-fast) ease-out, border-color var(--t-fast) ease-out;
}

.prose a:hover {
  color: #fff;
  border-color: var(--neon);
}

.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--red); }

.prose blockquote {
  margin-block: 1.6em;
  padding: 16px 22px;
  border-left: 3px solid var(--red);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(90, 14, 24, 0.35);
  color: rgba(244, 241, 234, 0.9);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 0.12em 0.42em;
  border-radius: 6px;
  background: rgba(245, 184, 75, 0.16);
  color: var(--gold);
}

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

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

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

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

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t-fast) ease-out, color var(--t-fast) ease-out,
    border-color var(--t-fast) ease-out, transform var(--t-fast) ease-out,
    box-shadow var(--t-mid) var(--ease);
}

.btn--solid {
  background: linear-gradient(135deg, var(--red), #B0111F);
  color: #fff;
  box-shadow: 0 14px 30px -18px rgba(225, 29, 46, 0.95);
}

.btn--solid:hover {
  background: linear-gradient(135deg, var(--neon), var(--red));
  transform: translateY(-1px);
  box-shadow: 0 18px 38px -18px rgba(255, 59, 78, 0.95);
}

.btn--ghost {
  background: rgba(244, 241, 234, 0.04);
  border-color: var(--line-strong);
  color: var(--chalk);
}

.btn--ghost:hover {
  border-color: var(--neon);
  background: rgba(255, 59, 78, 0.13);
  color: #fff;
}

.btn--sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

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

.btn:active { transform: translateY(0) scale(0.985); }

/* ---------- 9. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(244, 241, 234, 0.05);
  color: rgba(244, 241, 234, 0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tag--red {
  border-color: var(--line-red);
  background: rgba(225, 29, 46, 0.18);
  color: #FFC4CA;
}

.tag--gold {
  border-color: rgba(245, 184, 75, 0.5);
  background: rgba(245, 184, 75, 0.14);
  color: #F8D296;
}

/* ---------- 10. 数据高亮 ---------- */
.hl {
  display: inline-block;
  padding: 0.04em 0.4em;
  border-radius: 6px;
  background: var(--gold);
  color: var(--stage);
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.hl--red {
  background: var(--red);
  color: #fff;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(21, 21, 28, 0.95), rgba(11, 11, 15, 0.9));
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--gold);
}

.stat__label {
  font-size: 13px;
  color: var(--ash);
  letter-spacing: 0.04em;
}

/* ---------- 11. 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(21, 21, 28, 0.96), rgba(11, 11, 15, 0.92));
  overflow: hidden;
  transition: border-color var(--t-fast) ease-out, transform var(--t-mid) var(--ease),
    box-shadow var(--t-mid) var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent 70%);
  opacity: 0.7;
}

.card:hover {
  border-color: var(--line-red);
  transform: translateY(-3px);
  box-shadow: 0 26px 60px -42px rgba(225, 29, 46, 0.95);
}

.card__body { display: flex; flex-direction: column; gap: 10px; }

.card__title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--chalk);
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ash);
}

.card__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 800;
  color: var(--blush);
  text-decoration: none;
  transition: color var(--t-fast) ease-out, gap var(--t-fast) ease-out;
}

.card__link:hover { color: #fff; }

/* ---------- 12. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 120% at 18% 0%, rgba(225, 29, 46, 0.24), transparent 58%),
    linear-gradient(158deg, #1B1B24, #0C0C11);
  isolation: isolate;
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 11, 15, 0) 42%, rgba(11, 11, 15, 0.68) 100%);
}

.media__img,
.media > img,
.media > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 234, 0.82);
}

/* ---------- 13. 面包屑 ---------- */
.breadcrumb {
  margin-bottom: clamp(16px, 2vw, 26px);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--ash);
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(138, 143, 152, 0.6);
}

.breadcrumb__link {
  color: var(--ash);
  text-decoration: none;
  transition: color var(--t-fast) ease-out;
}

.breadcrumb__link:hover { color: var(--chalk); }

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

/* ---------- 14. 头部 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: clamp(10px, 1.6vw, 20px);
  pointer-events: none;
}

.site-header__shell {
  position: relative;
  pointer-events: auto;
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 18px);
  padding: 9px 10px 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(21, 21, 28, 0.93), rgba(11, 11, 15, 0.88));
  box-shadow:
    0 22px 56px -34px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(244, 241, 234, 0.06);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  transition: padding var(--t-mid) var(--ease), background var(--t-mid) ease-out,
    border-color var(--t-mid) ease-out, box-shadow var(--t-mid) var(--ease);
}

.site-header__shell::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 59, 78, 0.55), transparent);
  pointer-events: none;
}

.site-header[data-compact] .site-header__shell {
  padding-block: 6px;
  background: linear-gradient(180deg, rgba(16, 16, 22, 0.97), rgba(9, 9, 13, 0.95));
  border-color: rgba(255, 59, 78, 0.22);
  box-shadow: 0 18px 44px -32px rgba(0, 0, 0, 1), 0 0 0 1px rgba(0, 0, 0, 0.35);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--red), var(--wine));
  color: var(--chalk);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  transform: rotate(-4deg);
  box-shadow:
    0 0 0 1px rgba(255, 59, 78, 0.4),
    0 12px 26px -16px rgba(225, 29, 46, 0.95);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(0deg) scale(1.05);
  box-shadow:
    0 0 0 1px rgba(255, 59, 78, 0.7),
    0 16px 30px -14px rgba(255, 59, 78, 1);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
}

.brand__wordmark {
  font-size: 16.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--chalk);
  white-space: nowrap;
}

.brand__note {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 状态点 */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(111, 231, 224, 0.26);
  border-radius: var(--r-pill);
  background: rgba(111, 231, 224, 0.07);
  color: #A8F0EC;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(111, 231, 224, 0.18);
  animation: status-pulse 2.8s var(--ease) infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(111, 231, 224, 0.16); }
  50% { box-shadow: 0 0 0 5px rgba(111, 231, 224, 0.06); }
}

/* 导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__item { display: block; }

.site-nav__link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  color: rgba(244, 241, 234, 0.72);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast) ease-out, background var(--t-fast) ease-out,
    box-shadow var(--t-fast) ease-out;
}

.site-nav__link:hover {
  color: var(--chalk);
  background: rgba(244, 241, 234, 0.08);
}

.site-nav__link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #BA1223);
  box-shadow: 0 10px 24px -14px rgba(225, 29, 46, 1);
}

.site-nav__link[aria-current="page"]:hover {
  background: linear-gradient(135deg, var(--neon), var(--red));
}

/* 头部动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

/* 汉堡 */
.nav-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(244, 241, 234, 0.05);
  color: var(--chalk);
  cursor: pointer;
  transition: background var(--t-fast) ease-out, border-color var(--t-fast) ease-out;
}

.nav-toggle:hover {
  border-color: var(--line-red);
  background: rgba(255, 59, 78, 0.14);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background var(--t-fast) ease-out;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t-mid) var(--ease);
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.site-header[data-nav-open] .nav-toggle {
  border-color: rgba(255, 59, 78, 0.6);
  background: rgba(225, 29, 46, 0.18);
}

.site-header[data-nav-open] .nav-toggle__bars { background: transparent; }
.site-header[data-nav-open] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-nav-open] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 9vw, 132px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0B0B0F 0%, #15151C 46%, #08080C 100%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -120px;
  width: min(760px, 90%);
  height: 240px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(225, 29, 46, 0.28), transparent 72%);
  pointer-events: none;
}

.site-footer__beam {
  position: relative;
  height: clamp(10px, 1.5vw, 18px);
  background: linear-gradient(90deg, var(--red) 0%, var(--wine) 34%, rgba(11, 11, 15, 0) 68%, var(--gold) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 100%);
  opacity: 0.9;
}

.site-footer__inner {
  position: relative;
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(36px, 5.5vw, 72px) 0 clamp(22px, 3vw, 34px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.95fr 1.15fr;
  gap: clamp(26px, 4vw, 56px);
}

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

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

.footer-brand__wordmark {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--chalk);
}

.footer-brand__tagline {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-brand__note {
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(244, 241, 234, 0.62);
}

.footer-brand__icp {
  margin-top: 4px;
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ash);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.footer-col__title::before {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--red);
}

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

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: rgba(244, 241, 234, 0.68);
  text-decoration: none;
  transition: color var(--t-fast) ease-out, transform var(--t-fast) ease-out;
}

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

.footer-list--contact { gap: 14px; }

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

.footer-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}

.footer-value {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.84);
  overflow-wrap: anywhere;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  margin-top: clamp(30px, 4.5vw, 54px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ash);
}

.footer-copy {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal__link {
  color: var(--ash);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color var(--t-fast) ease-out, border-color var(--t-fast) ease-out;
}

.footer-legal__link:hover {
  color: var(--gold);
  border-bottom-color: rgba(245, 184, 75, 0.6);
}

.footer-contact-note {
  max-width: 42ch;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(138, 143, 152, 0.9);
}

/* ---------- 16. 滚动进度 / 返回顶部 ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 130;
  height: 3px;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red), var(--neon) 58%, var(--gold));
  box-shadow: 0 0 16px rgba(255, 59, 78, 0.7);
}

.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 30px);
  bottom: clamp(16px, 2.6vw, 34px);
  z-index: 110;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 59, 78, 0.45);
  border-radius: 50%;
  background: rgba(21, 21, 28, 0.92);
  color: var(--chalk);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease),
    visibility var(--t-mid), border-color var(--t-fast) ease-out;
}

.to-top::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--neon) calc(var(--ring, 0) * 1%),
    rgba(244, 241, 234, 0.12) 0
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  pointer-events: none;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { border-color: var(--neon); }

.to-top__glyph {
  font-size: 17px;
  line-height: 1;
  transform: translateY(-1px);
}

/* ---------- 17. 目录 ---------- */
.toc {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(21, 21, 28, 0.95), rgba(11, 11, 15, 0.85));
}

.toc__title {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.toc__link {
  display: block;
  padding: 7px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  color: rgba(244, 241, 234, 0.66);
  text-decoration: none;
  transition: color var(--t-fast) ease-out, background var(--t-fast) ease-out,
    border-color var(--t-fast) ease-out;
}

.toc__link:hover {
  color: var(--chalk);
  background: rgba(244, 241, 234, 0.06);
}

.toc__link[aria-current="true"] {
  color: var(--chalk);
  border-left-color: var(--red);
  background: rgba(225, 29, 46, 0.14);
}

/* ---------- 18. 显现动画 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ---------- 19. 斜切装饰 ---------- */
.slant-band {
  height: clamp(8px, 1.2vw, 14px);
  background: linear-gradient(90deg, var(--red), var(--wine) 40%, transparent 78%);
  clip-path: polygon(0 0, 100% 0, 100% 34%, 0 100%);
  opacity: 0.85;
}

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1240px) {
  .brand__note { display: none; }
}

@media (max-width: 1120px) {
  .status { display: none; }
  .site-nav__link { padding: 0 10px; font-size: 13px; }
}

@media (max-width: 1024px) {
  .site-nav {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 120;
    display: block;
    width: min(520px, calc(100% - 24px));
    padding: 12px;
    border: 1px solid rgba(255, 59, 78, 0.3);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(21, 21, 28, 0.98), rgba(9, 9, 13, 0.99));
    box-shadow: 0 -22px 64px -26px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(244, 241, 234, 0.06);
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, calc(100% + 48px));
    transition: transform var(--t-slow) var(--ease), opacity var(--t-mid) ease-out,
      visibility var(--t-mid);
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .site-nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .site-nav__link {
    display: flex;
    justify-content: center;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 14px;
  }

  .nav-toggle { display: grid; }

  .header-actions { gap: 6px; }

  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-col--contact { grid-column: 1 / -1; }
  .to-top { bottom: 88px; }
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-col--contact { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-header__shell { padding-left: 10px; gap: 6px; }
  .brand__mark { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
  .brand__wordmark { font-size: 15px; }
  .header-actions .btn--ghost { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-contact-note { max-width: none; }
}

@media (max-width: 520px) {
  .header-actions .btn { display: none; }
  .site-nav__list { grid-template-columns: minmax(0, 1fr); }
  .site-nav__link { height: 42px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}

/* ---------- 21. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  .status-dot { animation: none; }
  .card:hover,
  .brand:hover .brand__mark { transform: none; }
}
