/* =========================================================
   皇冠体育主站 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 侧轨 / 页脚 / 基础组件
   ========================================================= */

/* ---------- 1. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, dl, figure, blockquote, aside { margin: 0; }
ul, ol { padding: 0; }
li { list-style: none; }
table { border-collapse: collapse; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 2. tokens ---------- */
:root {
  --gold: #E8B44A;
  --gold-deep: #C08A2E;
  --ink: #0D0E13;
  --panel: #1A1D27;
  --cream: #F3EDE1;
  --brown: #241C17;
  --violet: #5B3FD1;
  --cyan: #35E0D6;
  --orange: #E2542A;
  --gray: #9AA0AE;
  --papergray: #CFC4AE;

  --text: #E9E4D9;
  --text-dim: #A7ADBA;
  --text-brown: #241C17;
  --text-brown-dim: #5C5145;

  --line: rgba(232, 180, 74, 0.24);
  --line-soft: rgba(154, 160, 174, 0.20);
  --line-cream: rgba(36, 28, 23, 0.16);

  --rail-w: 88px;
  --header-h: 72px;
  --header-h-min: 56px;
  --shell-max: 1440px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --shadow-1: 0 24px 48px -36px rgba(0, 0, 0, 0.95);
  --shadow-2: 0 30px 60px -34px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html { background-color: var(--ink); }
html[data-fontsize="md"] { font-size: 107%; }
html[data-fontsize="lg"] { font-size: 115%; }
html[data-nav-locked], html[data-nav-locked] body { overflow: hidden; }

/* ---------- 3. base ---------- */
body {
  position: relative;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: transparent;
  padding-left: var(--rail-w);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 84% -8%, rgba(91, 63, 209, 0.26), transparent 62%),
    radial-gradient(720px 440px at 6% 106%, rgba(232, 180, 74, 0.14), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 96px);
}

/* 排版 */
.display { font-size: clamp(2.75rem, 7.4vw, 6rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; }
.h1 { font-size: clamp(2rem, 4.6vw, 4rem); font-weight: 900; line-height: 1.06; letter-spacing: -0.02em; }
.h2 { font-size: clamp(1.5rem, 3vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.35; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.lead { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.8; color: var(--text-dim); max-width: 38em; }
.prose { max-width: 36em; }
.prose > p + p { margin-top: 1.1em; }
.prose--narrow { max-width: 34em; }

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

/* 布局容器 */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: 64px;
}
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.section--panel { background: var(--panel); }
.section--cream { background: var(--cream); color: var(--text-brown); }
.section--cream .eyebrow { color: var(--gold-deep); }
.section--cream .lead { color: var(--text-brown-dim); }
.section--cream .h1,
.section--cream .h2,
.section--cream .h3 { color: var(--brown); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-title { font-size: clamp(1.5rem, 3.2vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.divider-scale {
  height: 1px;
  margin-block: clamp(24px, 4vw, 48px);
  background-image: repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 10px);
}

/* 网格 */
.grid { display: grid; gap: 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)); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }

/* ---------- 4. 头部 ---------- */
.skip-link {
  position: fixed;
  left: 12px;
  top: -120px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--brown);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(13, 14, 19, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  width: 100%;
  max-width: var(--shell-max);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--line-soft);
  transition: height 0.22s var(--ease), border-color 0.22s var(--ease);
}
.site-header[data-condensed] .header-bar { height: var(--header-h-min); border-color: var(--line); }

.header-brand { display: flex; align-items: center; min-width: 0; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); }
.brand-crown { width: 34px; height: 24px; flex: none; color: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1rem; font-weight: 800; letter-spacing: 0.02em; color: var(--text); }
.brand-sub { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.32em; color: var(--gold-deep); }

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.header-status .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 224, 214, 0.16);
}

.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.tool-link, .tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.tool-link:hover, .tool-btn:hover {
  color: var(--cyan);
  border-color: rgba(53, 224, 214, 0.55);
  background: rgba(53, 224, 214, 0.06);
}
.tool-btn [data-fontsize-label] { color: var(--gold); font-family: var(--font-mono); }

.nav-toggle { display: none; color: var(--text); }
.nav-toggle-bars { position: relative; display: block; width: 20px; height: 2px; background: currentColor; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(6, 7, 11, 0.62);
}
.nav-scrim[hidden] { display: none; }

/* ---------- 5. 左侧轨道 ---------- */
.site-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 90;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 8px 16px;
  background: linear-gradient(180deg, #0B0C11 0%, #14161F 55%, #0B0C11 100%);
  border-right: 1px solid var(--line);
}

.rail-brand {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  color: var(--gold-deep);
  writing-mode: vertical-rl;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.rail-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  width: 100%;
}

.rail-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  text-align: center;
  color: var(--text-dim);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.rail-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 22px;
  background: var(--gold);
  transform: translateY(-50%) scaleY(0);
  transition: transform 0.2s var(--ease);
}
.rail-idx { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.08em; color: var(--gold-deep); }
.rail-label { font-size: 0.8125rem; font-weight: 600; line-height: 1.35; letter-spacing: 0.04em; }
.rail-link:hover { color: var(--text); background: rgba(232, 180, 74, 0.07); }
.rail-link:hover .rail-idx { color: var(--gold); }
.rail-link[aria-current="page"] { color: var(--gold); background: rgba(232, 180, 74, 0.1); }
.rail-link[aria-current="page"]::before { transform: translateY(-50%) scaleY(1); }
.rail-link[aria-current="page"] .rail-idx { color: var(--cyan); }

.rail-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }

.rail-progress {
  display: block;
  position: relative;
  width: 2px;
  height: 72px;
  background: rgba(154, 160, 174, 0.22);
  overflow: hidden;
}
.rail-progress-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--gold), var(--cyan));
  transform: scaleY(0);
  transform-origin: top center;
}

.rail-chapter {
  display: block;
  max-height: 120px;
  overflow: hidden;
  writing-mode: vertical-rl;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.backtop {
  width: 100%;
  padding: 10px 4px;
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(232, 180, 74, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.backtop[data-visible] { opacity: 1; pointer-events: auto; }
.backtop:hover { color: var(--cyan); border-color: rgba(53, 224, 214, 0.55); }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  padding-bottom: 112px;
  background: linear-gradient(180deg, #0B0C11 0%, #101219 70%, #0B0C11 100%);
  border-top: 1px solid var(--line);
}

.footer-scale {
  height: 12px;
  opacity: 0.55;
  background-image: repeating-linear-gradient(90deg, rgba(232, 180, 74, 0.4) 0 1px, transparent 1px 10px);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(36px, 5vw, 56px) 32px;
}
.brand--footer .brand-name { font-size: 1.25rem; }
.footer-tagline { max-width: 30em; font-size: 0.9375rem; line-height: 1.7; color: var(--text-dim); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 40px;
  padding-block: 36px 44px;
  border-top: 1px solid var(--line-soft);
}

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

.footer-title {
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold);
}
.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-image: repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 8px);
  transition: background-image 0.2s var(--ease);
}
.footer-col:hover .footer-title::after {
  background-image: repeating-linear-gradient(90deg, var(--cyan) 0 1px, transparent 1px 8px);
}

.footer-list { display: flex; flex-direction: column; gap: 10px; }
.footer-list--plain { gap: 12px; }

.footer-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}
.footer-link:hover { color: var(--cyan); transform: translateX(4px); }

.footer-meta { font-size: 0.8125rem; line-height: 1.65; color: var(--gray); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.link-arrow::after { content: "→"; transition: transform 0.18s var(--ease); }
.link-arrow:hover { color: var(--cyan); }
.link-arrow:hover::after { transform: translateX(4px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--gray);
}
.legal-line { margin: 0; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal-links a { color: var(--text-dim); transition: color 0.18s var(--ease); }
.footer-legal-links a:hover { color: var(--cyan); }

/* 固定联系锚点 */
.contact-anchor {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 288px;
  padding: 18px 18px 16px;
  background: rgba(26, 29, 39, 0.94);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.contact-anchor__title {
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold);
}
.contact-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.contact-key { flex: none; font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--gray); }
.contact-val {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
}
.copy-btn {
  flex: none;
  padding: 3px 8px;
  font-size: 0.6875rem;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.copy-btn:hover { color: var(--cyan); border-color: rgba(53, 224, 214, 0.5); }
.copy-btn[data-copied] { color: var(--cyan); border-color: var(--cyan); }
.contact-anchor .btn { margin-top: 12px; }

/* ---------- 7. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--brown); }
.btn--gold:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn--line { border-color: var(--line); color: var(--gold); }
.btn--line:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(53, 224, 214, 0.07); }
.btn--ghost { border-color: var(--line-soft); color: var(--text); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--small { padding: 9px 16px; font-size: 0.8125rem; }
.btn--block { width: 100%; }
.section--cream .btn--line { border-color: var(--line-cream); color: var(--brown); }
.section--cream .btn--line:hover { border-color: var(--gold-deep); color: var(--gold-deep); background: rgba(192, 138, 46, 0.1); }

.breadcrumb {
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gray);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--gold-deep); }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--cyan); }

.card {
  position: relative;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  box-shadow: var(--shadow-1);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover { border-color: var(--line); }
.card--shear { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); }
.card--shear:hover { transform: translate(4px, -4px); border-color: var(--line); }
.section--cream .card { background: #FBF7EF; border-color: var(--line-cream); box-shadow: 0 1px 0 rgba(36, 28, 23, 0.04); }

.panel {
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(180deg, rgba(26, 29, 39, 0.96), rgba(13, 14, 19, 0.96));
  border: 1px solid var(--line-soft);
  border-radius: 2px;
}
.data-board { position: relative; }
.data-board::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px);
}

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value { font-family: var(--font-mono); font-weight: 700; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; color: var(--gold); }
.stat-label { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--gray); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(232, 180, 74, 0.06);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.tag--violet { color: #B9A9FF; background: rgba(91, 63, 209, 0.14); border-color: rgba(91, 63, 209, 0.55); }
.tag--orange { color: #FF9573; background: rgba(226, 84, 42, 0.12); border-color: rgba(226, 84, 42, 0.5); }
.tag--cyan { color: var(--cyan); background: rgba(53, 224, 214, 0.1); border-color: rgba(53, 224, 214, 0.45); }
.section--cream .tag { color: var(--brown); border-color: rgba(192, 138, 46, 0.5); background: rgba(232, 180, 74, 0.18); }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.chip:hover { color: var(--cyan); border-color: rgba(53, 224, 214, 0.5); }
.chip[aria-pressed="true"] { color: var(--brown); background: var(--gold); border-color: var(--gold); font-weight: 700; }

.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(232, 180, 74, 0.06));
}
.timeline-item { position: relative; padding: 0 0 28px 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--orange);
}
.timeline-date { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--gold); }
.timeline-title { margin: 6px 0; font-size: 1.125rem; font-weight: 700; }
.timeline-text { max-width: 34em; font-size: 0.9375rem; color: var(--text-dim); }

.data-table { width: 100%; font-size: 0.9375rem; }
.data-table caption {
  padding-bottom: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-align: left;
  color: var(--gray);
}
.data-table th,
.data-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.data-table th { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; color: var(--gold); }
.data-table td { color: var(--text-dim); }
.data-table tbody tr:hover td { color: var(--text); background: rgba(232, 180, 74, 0.04); }
.section--cream .data-table th { color: var(--gold-deep); }
.section--cream .data-table th,
.section--cream .data-table td { border-bottom-color: var(--line-cream); }
.section--cream .data-table td { color: var(--text-brown-dim); }

.accordion { border-top: 1px solid var(--line-soft); }
.accordion-item { border-bottom: 1px solid var(--line-soft); }
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 0;
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: left;
  color: var(--text);
}
.accordion-trigger::after { content: "＋"; font-size: 1.125rem; color: var(--gold); transition: color 0.18s var(--ease); }
.accordion-trigger[aria-expanded="true"]::after { content: "－"; color: var(--cyan); }
.accordion-panel { padding: 0 0 20px; color: var(--text-dim); }
.accordion-panel[hidden] { display: none; }
.section--cream .accordion-trigger { color: var(--brown); }
.section--cream .accordion-panel { color: var(--text-brown-dim); }

.frame {
  position: relative;
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 29, 39, 0.55), rgba(13, 14, 19, 0.2));
}
.frame::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 72px;
  height: 9px;
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 8px);
}
.frame::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 72px;
  background-image: repeating-linear-gradient(180deg, var(--gold) 0 1px, transparent 1px 8px);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background:
    radial-gradient(120% 120% at 18% 0%, rgba(91, 63, 209, 0.3), rgba(13, 14, 19, 0.98) 62%),
    linear-gradient(135deg, rgba(232, 180, 74, 0.14), transparent 55%);
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame__img { width: 100%; height: 100%; object-fit: cover; }
.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(13, 14, 19, 0.9));
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1199px) {
  .shell { padding-inline: 32px; }
}

@media (max-width: 1023px) {
  body { padding-left: 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-4, .col-6, .col-8 { grid-column: span 3; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .header-status { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-soft);
    border-radius: 2px;
    transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
  }
  .nav-toggle:hover { color: var(--cyan); border-color: rgba(53, 224, 214, 0.5); }

  .site-rail {
    width: min(84vw, 320px);
    align-items: stretch;
    gap: 20px;
    padding: 28px 22px 24px;
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    transform: translateX(-104%);
    transition: transform 0.3s var(--ease);
  }
  .site-rail[data-open] { transform: none; }
  .rail-brand { writing-mode: horizontal-tb; letter-spacing: 0.32em; padding-bottom: 12px; }
  .rail-list { flex: 0 0 auto; justify-content: flex-start; gap: 0; }
  .rail-link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 8px;
    font-size: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(154, 160, 174, 0.12);
  }
  .rail-link::before { display: none; }
  .rail-label { font-size: 1rem; }
  .rail-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .rail-progress { display: none; }
  .rail-chapter { writing-mode: horizontal-tb; max-height: none; font-size: 0.6875rem; }
  .backtop { width: auto; padding: 10px 14px; }
}

@media (max-width: 767px) {
  .shell { padding-inline: 20px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid-12 { grid-template-columns: 1fr; }
  .col-4, .col-6, .col-8 { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .brand-sub { display: none; }
  .tool-link { display: none; }

  .site-footer { padding-bottom: 84px; }
  .contact-anchor {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: 0 -18px 40px -30px rgba(0, 0, 0, 0.95);
  }
  .contact-anchor__title { display: none; }
  .contact-row { padding: 0; }
  .contact-row + .contact-row { display: none; }
  .contact-val { font-size: 0.6875rem; }
  .contact-anchor .btn { width: auto; margin-top: 0; padding: 8px 14px; font-size: 0.75rem; flex: none; }
}

/* ---------- 9. 动效偏好 ---------- */
@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
