/* ============================================================
   凤凰体育 CN 中国站 — 共享样式 /assets/site.css
   暗场 + 蓝图网格 + 赤金羽翼；8° 斜切统一角度
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --ink-950: #070C16;
  --ink-900: #0B1320;
  --ink-800: #101A2B;
  --ink-700: #182742;

  --line-gold: rgba(201, 162, 83, 0.12);
  --line-gold-strong: rgba(201, 162, 83, 0.28);
  --line-soft: rgba(201, 162, 83, 0.055);

  --gold-500: #E9A13B;
  --gold-200: #F7D9A0;
  --flame-600: #D2571F;
  --teal-400: #2FBF9F;
  --amber-400: #F0B54A;

  --warm: #F3EFE6;
  --slate: #93A1B6;
  --paper: #F2EEE5;
  --paper-ink: #161C26;

  --shell: 1240px;
  --gutter: clamp(18px, 4.2vw, 48px);
  --header-h: 84px;
  --radius: 14px;
  --angle: 8deg;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink-950);
  background-image:
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 92px),
    radial-gradient(1100px 560px at 82% -10%, rgba(210, 87, 31, 0.18), transparent 68%),
    radial-gradient(880px 480px at 4% 2%, rgba(233, 161, 59, 0.10), transparent 66%);
  color: var(--warm);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--gold-200); text-decoration-color: rgba(233, 161, 59, 0.4); }
a:hover { color: var(--gold-500); }

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

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

::selection { background: rgba(233, 161, 59, 0.32); color: #fff; }

/* ---------- 3. 骨架与排版工具 ---------- */
#main-content {
  display: block;
  padding-top: var(--header-h);
}
.bleed-top { margin-top: calc(var(--header-h) * -1); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 7vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }

.display {
  font-size: clamp(38px, 6.2vw, 84px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.022em;
  transform: skewX(-2deg);
  transform-origin: left bottom;
  margin: 0 0 0.35em;
  text-wrap: balance;
  background: linear-gradient(100deg, var(--warm) 0%, var(--warm) 40%, var(--gold-200) 76%, var(--gold-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h-section {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.012em;
  transform: skewX(-2deg);
  transform-origin: left bottom;
  margin: 0 0 0.55em;
  color: var(--warm);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.26em;
  color: var(--gold-500);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.78;
  color: var(--slate);
  max-width: 62ch;
  margin: 0 0 1.4em;
}

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

/* ---------- 4. 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--warm);
  --btn-bd: var(--line-gold-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  --btn-fg: #1B1206;
  --btn-bd: transparent;
  background: linear-gradient(135deg, var(--gold-200) 0%, var(--gold-500) 46%, var(--flame-600) 100%);
  box-shadow: 0 8px 22px rgba(210, 87, 31, 0.32);
}
.btn-primary:hover {
  color: #1B1206;
  box-shadow: 0 12px 30px rgba(210, 87, 31, 0.46);
}

.btn-ghost {
  --btn-fg: var(--gold-200);
  --btn-bd: rgba(233, 161, 59, 0.42);
  background: rgba(233, 161, 59, 0.06);
}
.btn-ghost:hover {
  background: rgba(233, 161, 59, 0.15);
  color: var(--warm);
}

@media (pointer: coarse) {
  .btn { min-height: 48px; }
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 300;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--gold-500);
  color: #1B1206;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--gold-200);
  outline-offset: 3px;
}

/* ---------- 6. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--warm);
  background: linear-gradient(180deg, rgba(7, 12, 22, 0.9) 0%, rgba(7, 12, 22, 0.58) 54%, rgba(7, 12, 22, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.24s var(--ease), border-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(201, 162, 83, 0.1) 0 1px, transparent 1px 96px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
}

.site-header[data-scrolled="true"] {
  background: rgba(7, 12, 22, 0.97);
  border-bottom-color: var(--line-gold-strong);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}

.site-header[data-open="true"] {
  background: var(--ink-950);
  border-bottom-color: var(--line-gold-strong);
}

.header-inner {
  position: relative;
  z-index: 2;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  transition: height 0.24s var(--ease);
}

.site-header[data-scrolled="true"] .header-inner {
  height: calc(var(--header-h) - 20px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
}
.brand:hover { color: inherit; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 11px;
  border: 1px solid var(--line-gold-strong);
  background: linear-gradient(150deg, rgba(210, 87, 31, 0.3), rgba(233, 161, 59, 0.08));
  box-shadow: inset 0 0 0 1px rgba(247, 217, 160, 0.06);
  transform: skewX(-6deg);
  transition: box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
}
.brand-mark svg { width: 26px; height: 26px; transform: skewX(6deg); }
.brand:hover .brand-mark {
  border-color: rgba(233, 161, 59, 0.7);
  box-shadow: 0 0 0 4px rgba(233, 161, 59, 0.1);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.06; }
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transform: skewX(-2deg);
  transform-origin: left bottom;
  color: var(--warm);
}
.brand-suffix {
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-500);
}

/* 主导航 */
.primary-nav {
  justify-self: center;
  min-width: 0;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1px, 0.7vw, 8px);
  counter-reset: navidx;
}
.nav-list > li { counter-increment: navidx; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 11px;
  border-radius: 8px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav-link::before {
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(201, 162, 83, 0.55);
  transition: color 0.18s var(--ease);
}
.nav-link:hover {
  color: var(--warm);
  background: rgba(233, 161, 59, 0.09);
}
.nav-link:hover::before { color: var(--gold-500); }

.nav-link[aria-current="page"] { color: var(--gold-200); }
.nav-link[aria-current="page"]::before { color: var(--gold-500); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--flame-600), var(--gold-500) 70%, var(--gold-200));
}

.nav-panel-actions { display: none; }

/* 头部动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}
.header-actions .btn { font-size: 14.5px; padding: 0 18px; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  justify-self: end;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(233, 161, 59, 0.38);
  background: rgba(233, 161, 59, 0.08);
  color: var(--gold-200);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-toggle:hover { background: rgba(233, 161, 59, 0.16); }

.nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.16s var(--ease);
}
.site-header[data-open="true"] .nav-toggle-bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header[data-open="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle-bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--flame-600), var(--gold-500) 55%, var(--gold-200));
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 9vw, 120px);
  color: var(--warm);
  border-top: 1px solid var(--line-gold-strong);
  background:
    radial-gradient(920px 420px at 88% -6%, rgba(210, 87, 31, 0.17), transparent 66%),
    radial-gradient(720px 380px at 2% 6%, rgba(233, 161, 59, 0.08), transparent 62%),
    linear-gradient(180deg, var(--ink-800) 0%, var(--ink-950) 74%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, var(--line-gold) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, var(--line-gold) 0 1px, transparent 1px 80px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0) 80%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0) 80%);
}

.footer-feathers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.feather {
  position: absolute;
  display: block;
  border-radius: 62% 38% 54% 46% / 50% 62% 38% 50%;
}
.feather-1 {
  width: min(48vw, 540px);
  aspect-ratio: 1.65;
  right: -9%;
  top: -22%;
  transform: rotate(-8deg);
  background: linear-gradient(120deg, rgba(210, 87, 31, 0.4), rgba(233, 161, 59, 0.12) 52%, rgba(233, 161, 59, 0) 78%);
}
.feather-2 {
  width: min(34vw, 380px);
  aspect-ratio: 1.25;
  right: 12%;
  top: 6%;
  transform: rotate(9deg);
  background: linear-gradient(200deg, rgba(233, 161, 59, 0.24), rgba(210, 87, 31, 0) 70%);
}
.feather-3 {
  width: min(30vw, 320px);
  aspect-ratio: 1.9;
  left: -8%;
  bottom: 4%;
  transform: rotate(-6deg);
  background: linear-gradient(60deg, rgba(233, 161, 59, 0.16), rgba(47, 191, 159, 0) 74%);
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 84px) var(--gutter) clamp(30px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.55fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.footer-brand-name {
  font-size: clamp(23px, 2.5vw, 31px);
  font-weight: 800;
  letter-spacing: 0.01em;
  transform: skewX(-2deg);
  transform-origin: left bottom;
  line-height: 1.15;
}
.footer-brand-name em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.48em;
  letter-spacing: 0.12em;
  color: var(--gold-500);
  margin-left: 0.45em;
  vertical-align: middle;
}

.footer-tagline {
  margin-top: 12px;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.footer-metric {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-gold-strong);
}
.footer-metric-num {
  font-size: 46px;
  line-height: 1;
  color: var(--gold-200);
  text-shadow: 0 0 32px rgba(233, 161, 59, 0.35);
}
.footer-metric-label {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--slate);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.footer-col-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-500);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-gold-strong);
}

.footer-links { list-style: none; display: grid; gap: 10px; }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--slate);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}
.footer-link::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--gold-500);
  opacity: 0.5;
  transition: width 0.2s var(--ease), opacity 0.2s var(--ease);
}
.footer-link:hover {
  color: var(--warm);
  transform: translateX(2px);
}
.footer-link:hover::before { width: 20px; opacity: 1; }

.footer-contact {
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--line-gold-strong);
  border-radius: var(--radius);
  background: rgba(7, 12, 22, 0.5);
}
.footer-contact .footer-col-title { margin-bottom: 6px; }

.contact-line {
  display: grid;
  justify-items: start;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(201, 162, 83, 0.16);
}
.contact-line:last-child { border-bottom: 0; padding-bottom: 0; }

.contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--gold-500);
}
.contact-value {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--warm);
  overflow-wrap: anywhere;
}

.copy-btn {
  margin-top: 6px;
  min-height: 32px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(233, 161, 59, 0.32);
  background: rgba(233, 161, 59, 0.1);
  color: var(--gold-200);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}
.copy-btn:hover { background: rgba(233, 161, 59, 0.22); }
.copy-btn.is-copied {
  background: var(--teal-400);
  border-color: transparent;
  color: #052B22;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--gutter) 30px;
  border-top: 1px solid var(--line-gold-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13px;
  color: var(--slate);
}
.footer-legal { font-family: var(--font-mono); letter-spacing: 0.05em; }
.footer-copy { letter-spacing: 0.02em; }
.footer-note { color: rgba(147, 161, 182, 0.8); }

/* 回到入口 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(233, 161, 59, 0.96), rgba(210, 87, 31, 0.96));
  color: #1B1206;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.48);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
    visibility 0.24s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { transform: translateY(-2px); }

/* ---------- 8. 通用组件 ---------- */
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line-gold-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 26, 43, 0.94), rgba(11, 19, 32, 0.94));
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--flame-600), var(--gold-500) 58%, transparent);
  opacity: 0.85;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 161, 59, 0.55);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-gold-strong);
  background: rgba(233, 161, 59, 0.08);
  color: var(--gold-200);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.badge--teal {
  border-color: rgba(47, 191, 159, 0.38);
  background: rgba(47, 191, 159, 0.1);
  color: var(--teal-400);
}
.badge--amber {
  border-color: rgba(240, 181, 74, 0.4);
  background: rgba(240, 181, 74, 0.1);
  color: var(--amber-400);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: 13px;
  color: var(--slate);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before {
  content: "/";
  font-family: var(--font-mono);
  color: rgba(201, 162, 83, 0.55);
}
.breadcrumbs a { color: var(--slate); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-200); }
.breadcrumbs [aria-current="page"] { color: var(--warm); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.15em; }
.prose h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 2em 0 0.7em;
  color: var(--warm);
  transform: skewX(-2deg);
  transform-origin: left bottom;
}
.prose h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 1.6em 0 0.5em;
  color: var(--gold-200);
}
.prose ul,
.prose ol { padding-left: 1.25em; margin: 0 0 1.15em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--gold-200); }

.paper-panel {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.paper-panel h2,
.paper-panel h3 { color: #0F1521; }
.paper-panel .lede,
.paper-panel p { color: #3A4351; }
.paper-panel a { color: #8A4A12; }
.paper-panel .eyebrow { color: #8A4A12; }

.chapter-index { list-style: none; display: grid; gap: 2px; }
.chapter-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}
.chapter-link .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(201, 162, 83, 0.6);
}
.chapter-link:hover { color: var(--warm); background: rgba(233, 161, 59, 0.06); }
.chapter-link.is-active {
  color: var(--gold-200);
  border-left-color: var(--gold-500);
  background: rgba(233, 161, 59, 0.08);
}

/* 图片容器基础规则（页面阶段放置 img 占位） */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-gold-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(233, 161, 59, 0.28), transparent 62%),
    linear-gradient(135deg, rgba(210, 87, 31, 0.24), rgba(16, 26, 43, 0.94) 64%);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.media:hover img { transform: scale(1.03); }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media-caption {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--slate);
}

/* 显现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1280px) {
  .nav-link { font-size: 14px; padding: 10px 9px; }
  .header-actions .btn { padding: 0 15px; font-size: 14px; }
}

@media (max-width: 1080px) {
  :root { --header-h: 72px; }

  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .site-header[data-scrolled="true"] .header-inner { height: var(--header-h); }

  .nav-toggle { display: inline-flex; }
  .header-actions { display: none; }

  .primary-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    z-index: 2;
    justify-self: stretch;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 10px var(--gutter) 30px;
    background: var(--ink-950);
    border-top: 1px solid var(--line-gold-strong);
    border-bottom: 1px solid var(--line-gold-strong);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity 0.22s var(--ease), transform 0.26s var(--ease),
      visibility 0.26s var(--ease);
  }
  .site-header[data-open="true"] .primary-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list { display: grid; gap: 0; }
  .nav-list > li + li { border-top: 1px solid rgba(201, 162, 83, 0.1); }
  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 10px;
    font-size: 16px;
    border-radius: 0;
  }
  .nav-link::before { font-size: 11px; }
  .nav-link[aria-current="page"]::after { left: 10px; right: auto; width: 26px; bottom: 8px; }

  .nav-panel-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line-gold-strong);
  }
  .nav-panel-actions .btn { width: 100%; min-height: 48px; }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-metric { margin-top: 20px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.75; }
  :root { --gutter: 18px; }

  .brand-name { font-size: 18px; }
  .brand-mark { width: 36px; height: 36px; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 0 13px; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .to-top { padding: 0 16px; font-size: 13px; }
}

/* ---------- 10. 减弱动效 ---------- */
@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .card:hover,
  .btn:hover,
  .to-top:hover,
  .footer-link:hover,
  .media:hover img { transform: none; }
}
