/* ==========================================================================
   百老汇牛牛游 — 全站共享样式 /assets/site.css
   午夜剧场 · 鎏金霓虹 · 玻璃层与实色层并置
   ========================================================================== */

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

html, body { margin: 0; padding: 0; }

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

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

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

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

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

h1, h2, h3, h4, h5, p, figure, blockquote, address { margin: 0; }

address { font-style: normal; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色彩 */
  --ink: #0A1C17;
  --ink-2: #12332A;
  --ink-3: #1D4F3E;
  --ink-deep: #08150F;
  --gold: #C9A24C;
  --gold-hi: #F1D98F;
  --violet: #8B5CF6;
  --blue: #35D6F0;
  --paper: #F4F0E6;
  --mist: #9FB6AA;
  --red: #E2565F;

  --glass: rgba(244, 240, 230, 0.08);
  --glass-strong: rgba(244, 240, 230, 0.13);
  --glass-line: rgba(244, 240, 230, 0.18);
  --line: rgba(244, 240, 230, 0.13);

  /* 字体 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 尺寸与节奏 */
  --shell: 1320px;
  --measure: 38em;
  --gut: clamp(16px, 4vw, 40px);
  --gap: clamp(16px, 2.4vw, 28px);
  --section-gap: clamp(72px, 10vw, 140px);

  --radius-l: 22px;
  --radius-m: 14px;
  --radius-s: 8px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink);
  background-image:
    radial-gradient(58vw 58vw at 8% -8%, rgba(201, 162, 76, 0.20), transparent 60%),
    radial-gradient(52vw 52vw at 96% 4%, rgba(139, 92, 246, 0.22), transparent 62%),
    radial-gradient(46vw 46vw at 78% 92%, rgba(53, 214, 240, 0.14), transparent 62%),
    radial-gradient(78vw 62vw at 30% 46%, rgba(29, 79, 62, 0.42), transparent 72%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  body { font-size: 17px; }
}

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

strong { font-weight: 600; color: var(--gold-hi); }

a { color: inherit; }

.num,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- 4. 焦点与无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-260%);
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--gold-hi), var(--gold));
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 36px -18px rgba(201, 162, 76, 0.9);
  transition: transform 0.24s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline-color: var(--paper);
}

/* ---------- 5. 布局原语 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section {
  margin-top: var(--section-gap);
}

.grid {
  display: grid;
  gap: var(--gap);
}

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

.prose {
  max-width: var(--measure);
  font-size: 16px;
  line-height: 1.85;
  color: rgba(244, 240, 230, 0.9);
}

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

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

.prose h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
.prose h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

.prose ul { margin: 1em 0; }

.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-top: 0.5em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.78em;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gold);
  border-radius: 1px;
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

/* ---------- 6. 章节抬头 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  flex: none;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: var(--measure);
}

.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  color: var(--paper);
}

.section-title--metal {
  background: linear-gradient(180deg, var(--gold-hi) 8%, var(--gold) 62%, #9C7A2E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--mist);
  max-width: var(--measure);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.22s var(--ease),
    background 0.22s var(--ease),
    border-color 0.22s var(--ease),
    color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.btn--gold {
  background: linear-gradient(140deg, var(--gold-hi) 0%, var(--gold) 60%, #9C7A2E 100%);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px rgba(241, 217, 143, 0.55),
    0 16px 32px -20px rgba(201, 162, 76, 1);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(241, 217, 143, 0.9),
    0 20px 38px -18px rgba(201, 162, 76, 1);
}

.btn--ghost {
  background: var(--glass);
  border-color: var(--glass-line);
  color: var(--paper);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.btn--ghost:hover {
  background: rgba(201, 162, 76, 0.14);
  border-color: rgba(201, 162, 76, 0.7);
  color: var(--gold-hi);
}

.btn--line {
  background: transparent;
  border-color: rgba(53, 214, 240, 0.55);
  color: var(--blue);
}

.btn--line:hover {
  background: rgba(53, 214, 240, 0.12);
  border-color: var(--blue);
}

/* ---------- 8. 卡层 ---------- */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-l);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(244, 240, 230, 0.1);
}

.solid-card {
  background: linear-gradient(160deg, var(--ink-2) 0%, #0E271F 68%, #0B1F19 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(20px, 3vw, 32px);
}

/* ---------- 9. 标签与筛选 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: var(--violet);
  white-space: nowrap;
}

.tag--blue { color: var(--blue); }
.tag--gold { color: var(--gold); }

.chip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 2px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.22s var(--ease),
    border-color 0.22s var(--ease),
    color 0.22s var(--ease);
}

.chip:hover {
  border-color: rgba(139, 92, 246, 0.66);
  color: #DDD2FF;
}

.chip.is-active,
.chip[aria-selected="true"] {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.34), rgba(139, 92, 246, 0.12));
  border-color: rgba(139, 92, 246, 0.72);
  color: #EFE9FF;
  box-shadow: 0 0 24px -12px rgba(139, 92, 246, 1);
}

/* ---------- 10. 大号数字 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold-hi);
}

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

/* ---------- 11. 数据表 ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, rgba(18, 51, 42, 0.85), rgba(10, 28, 23, 0.95));
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.data-table caption {
  padding: 16px 18px 6px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--mist);
}

.data-table th,
.data-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background 0.22s var(--ease);
}

.data-table tbody tr:hover {
  background: rgba(53, 214, 240, 0.07);
}

.data-table td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  white-space: nowrap;
}

.data-table th[aria-sort] { cursor: pointer; }

.data-table th[aria-sort]:hover { color: var(--gold-hi); }

.data-table td.is-negative { color: var(--red); }

/* ---------- 12. 图片框（页面阶段放置占位） ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background:
    radial-gradient(70% 90% at 20% 0%, rgba(139, 92, 246, 0.28), transparent 62%),
    radial-gradient(60% 80% at 90% 100%, rgba(53, 214, 240, 0.22), transparent 60%),
    linear-gradient(155deg, var(--ink-3), var(--ink) 78%);
}

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

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

.media-frame__cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
  text-shadow: 0 1px 8px rgba(8, 21, 15, 0.9);
}

/* ---------- 13. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.22s var(--ease);
}

.breadcrumb a:hover { color: var(--gold-hi); }

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(159, 182, 170, 0.45);
}

/* ---------- 14. 滚动显现协议 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.42s var(--ease),
    transform 0.42s var(--ease);
  transition-delay: var(--rd, 0ms);
}

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

/* ---------- 15. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 16px var(--gut);
  background: transparent;
  transition:
    padding 0.3s var(--ease),
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header.is-condensed {
  padding-top: 8px;
  padding-bottom: 8px;
  background: rgba(8, 21, 15, 0.94);
  box-shadow:
    inset 0 -1px 0 rgba(244, 240, 230, 0.08),
    0 22px 48px -34px rgba(0, 0, 0, 1);
}

.site-header__inner {
  max-width: var(--shell);
  margin-inline: auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  text-decoration: none;
  color: var(--paper);
}

.brand__mark {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 3px;
  transform: rotate(45deg);
  background: linear-gradient(140deg, var(--gold-hi) 0%, var(--gold) 55%, #8A6A25 100%);
  box-shadow:
    0 0 0 1px rgba(8, 21, 15, 0.75),
    0 0 16px rgba(201, 162, 76, 0.5);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.brand:hover .brand__mark {
  box-shadow:
    0 0 0 1px rgba(8, 21, 15, 0.75),
    0 0 26px rgba(241, 217, 143, 0.85);
  transform: rotate(45deg) scale(1.08);
}

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

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, var(--gold-hi) 10%, var(--gold) 70%, #A8842F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand__abbr {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.42em;
  color: var(--mist);
  max-width: 12em;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.3s var(--ease), max-width 0.3s var(--ease);
}

.site-header.is-condensed .brand__abbr {
  opacity: 0;
  max-width: 0;
}

/* 悬浮胶囊导航 */
.nav-capsule {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(244, 240, 230, 0.12),
    0 22px 46px -34px rgba(0, 0, 0, 1);
  transition: padding 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-condensed .nav-capsule {
  padding: 4px;
  background: rgba(244, 240, 230, 0.06);
}

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

.nav-capsule__list a {
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14.5px;
  line-height: 1.2;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.82;
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    opacity 0.22s var(--ease),
    padding 0.3s var(--ease),
    font-size 0.3s var(--ease);
}

.nav-capsule__list a:hover {
  background: rgba(201, 162, 76, 0.16);
  color: var(--gold-hi);
  opacity: 1;
}

.nav-capsule__list a[aria-current="page"] {
  background: linear-gradient(180deg, rgba(201, 162, 76, 0.34), rgba(201, 162, 76, 0.1));
  color: var(--gold-hi);
  opacity: 1;
  box-shadow:
    inset 0 0 0 1px rgba(201, 162, 76, 0.55),
    0 0 24px -10px rgba(201, 162, 76, 0.95);
}

.site-header.is-condensed .nav-capsule__list a {
  padding: 7px 13px;
  font-size: 13.5px;
}

/* 右侧动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--paper);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(201, 162, 76, 0.7);
  color: var(--gold-hi);
}

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
  flex: none;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.26s var(--ease), top 0.26s var(--ease), bottom 0.26s var(--ease), box-shadow 0.26s var(--ease);
}

.nav-toggle__icon::before {
  top: 2px;
  box-shadow: 0 4px 0 currentColor;
}

.nav-toggle__icon::after {
  bottom: 1px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: 5px;
  transform: rotate(45deg);
  box-shadow: 0 4px 0 rgba(244, 240, 230, 0);
}

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

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-hi) 42%, var(--violet) 72%, var(--blue) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.site-header.is-condensed .scroll-progress { opacity: 0.9; }

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: var(--section-gap);
  background: linear-gradient(180deg, rgba(18, 51, 42, 0.42) 0%, rgba(10, 28, 23, 0.96) 44%, var(--ink-deep) 100%);
  border-top: 1px solid var(--line);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 76, 0.85) 32%, rgba(53, 214, 240, 0.5) 68%, transparent);
}

.site-footer__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 84px) var(--gut) 0;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-bottom: clamp(26px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
}

.brand--footer .brand__mark { width: 18px; height: 18px; }

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: var(--mist);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 56px);
  padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 6vw, 64px);
}

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

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col__title::after {
  content: "";
  flex: 1;
  height: 1px;
  min-width: 12px;
  background: linear-gradient(90deg, rgba(201, 162, 76, 0.5), transparent);
}

.footer-col__list li + li { margin-top: 9px; }

.footer-col__list a {
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.22s var(--ease), transform 0.22s var(--ease);
}

.footer-col__list a:hover {
  color: var(--gold-hi);
  transform: translateX(3px);
}

.footer-col__aside {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 1px solid rgba(201, 162, 76, 0.4);
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(159, 182, 170, 0.78);
}

.footer-contact {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-contact__line {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
  word-break: break-all;
}

.footer-contact__line:first-child {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: rgba(53, 214, 240, 0.86);
}

.footer-contact__line--addr {
  color: rgba(159, 182, 170, 0.72);
  line-height: 1.75;
}

.footer-legal {
  border-top: 1px solid var(--line);
  background: rgba(8, 21, 15, 0.7);
}

.footer-legal__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 20px var(--gut) 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  font-size: 12.5px;
  color: rgba(159, 182, 170, 0.82);
}

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

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

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-left: auto;
}

.footer-legal__links a {
  color: rgba(159, 182, 170, 0.92);
  text-decoration: none;
  transition: color 0.22s var(--ease);
}

.footer-legal__links a:hover { color: var(--gold-hi); }

/* ---------- 17. 响应式：≤1100px ---------- */
@media (max-width: 1100px) {
  .nav-capsule__list a {
    padding: 8px 12px;
    font-size: 13.5px;
  }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-legal__links { margin-left: 0; }
}

/* ---------- 18. 响应式：≤980px（底部浮条导航） ---------- */
@media (max-width: 980px) {
  html { scroll-padding-top: 72px; }

  .nav-toggle { display: inline-flex; }

  .nav-capsule {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 14px;
    z-index: 70;
    margin: 0;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px;
    background: rgba(8, 21, 15, 0.95);
    border: 1px solid var(--glass-line);
    box-shadow:
      inset 0 1px 0 rgba(244, 240, 230, 0.1),
      0 -12px 56px -24px rgba(0, 0, 0, 1),
      0 0 0 1px rgba(201, 162, 76, 0.16);
    transform: translateY(140%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.34s var(--ease),
      opacity 0.34s var(--ease),
      visibility 0.34s var(--ease);
  }

  .site-header.is-condensed .nav-capsule {
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 21, 15, 0.95);
  }

  .nav-capsule[data-open] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-capsule__list {
    gap: 8px;
    padding-bottom: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .nav-capsule__list li {
    flex: none;
    scroll-snap-align: start;
  }

  .nav-capsule__list a,
  .site-header.is-condensed .nav-capsule__list a {
    padding: 11px 18px;
    font-size: 15px;
    background: var(--glass);
    border: 1px solid var(--glass-line);
    border-radius: 999px;
    opacity: 1;
  }

  .nav-capsule__list a[aria-current="page"] {
    border-color: rgba(201, 162, 76, 0.7);
  }

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

/* ---------- 19. 响应式：≤720px ---------- */
@media (max-width: 720px) {
  :root { --section-gap: clamp(56px, 14vw, 88px); }

  body { font-size: 16px; }

  .site-header { padding: 10px var(--gut); }

  .site-header__inner {
    min-height: 46px;
    gap: 10px;
  }

  .brand__abbr { display: none; }

  .header-actions .btn--ghost {
    padding: 9px 15px;
    font-size: 13px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-legal__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- 20. 响应式：≤560px ---------- */
@media (max-width: 560px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .header-actions .btn--ghost { display: none; }

  .data-table { min-width: 480px; }
}

/* ---------- 21. reduced-motion ---------- */
@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;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

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

  .nav-capsule {
    transition: none !important;
  }
}
