/* ==========================================================================
   亚星赛事 · 共享 Site CSS
   版本：深蓝数据仪表盘 / 展览画册目录感
   ========================================================================== */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--line-h);
  background-color: var(--deep-blue);
  background-image:
    linear-gradient(rgba(58, 74, 90, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 74, 90, 0.13) 1px, transparent 1px);
  background-size: 42px 42px;
  color: var(--cream);
  padding-top: var(--body-top);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-blue);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--line-h-tight);
  text-wrap: balance;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(212, 175, 55, 0.35);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

/* ---------- Design Tokens ---------- */
:root {
  /* 色彩节奏：深蓝黑 60％ · 深蓝 20％ · 奶油白 10％ · 金 5％ · 红 3％ */
  --deep-blue: #0A1128;
  --card-blue: #10203A;
  --cream: #F5F0E6;
  --gold: #D4AF37;
  --red: #E63946;
  --gray-blue: #B0B7C3;
  --line-blue: #3A4A5A;
  --accent-blue: #00A8E8;

  /* 字体 */
  --font-display: "Arial Narrow", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: "Courier New", "Noto Sans Mono", "PingFang SC", monospace;

  --fs-index: clamp(3.5rem, 8vw, 6rem);
  --fs-title: clamp(2rem, 4.8vw, 3.25rem);
  --fs-subtitle: 1.125rem;
  --fs-body: 0.875rem;
  --fs-small: 0.8125rem;
  --fs-label: 0.75rem;
  --fs-btn: 0.875rem;

  /* 布局 */
  --container-w: 1240px;
  --nav-maxw: 1200px;
  --header-h: 3.5rem;
  --header-offset: 0.75rem;
  --body-top: calc(var(--header-h) + var(--header-offset) * 2 + 1rem);

  /* 间距 */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 3.5rem;
  --space-5: 5rem;
  --space-6: 8rem;

  /* 行高 */
  --line-h: 1.65;
  --line-h-tight: 1.25;

  /* 圆角与阴影 */
  --radius-capsule: 999px;
  --shadow-nav: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);

  /* 动效 */
  --transition-fast: 0.18s ease;
  --transition-slow: 0.3s ease;
}

/* ---------- 容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

#main-content {
  scroll-margin-top: calc(var(--body-top) + 0.5rem);
}

/* ---------- 辅助工具类 ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.text-muted { color: var(--gray-blue); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-center { text-align: center; }

/* ---------- Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 500;
  padding: 0.625rem 1.25rem;
  background: var(--gold);
  color: var(--deep-blue);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  pointer-events: auto;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--header-offset);
}

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--red) 100%);
  z-index: 600;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ---------- 头部悬浮胶囊导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--header-offset) var(--space-2) 0;
  z-index: 120;
  pointer-events: none;
}

.capsule-nav {
  position: relative;
  max-width: var(--nav-maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.625rem 0.5rem 1rem;
  background: rgba(10, 17, 40, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-capsule);
  box-shadow: var(--shadow-nav);
  pointer-events: auto;
}

@supports not ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .capsule-nav {
    background: rgba(10, 17, 40, 0.98);
  }
}

/* ---------- 品牌 ---------- */
.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--cream);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--deep-blue);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

.brand-name {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.1;
}

.brand-cn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  color: var(--cream);
}

.brand-en {
  font-size: 0.625rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gray-blue);
}

/* ---------- 轮次更新标记 ---------- */
.round-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.45);
  border-radius: var(--radius-capsule);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
  white-space: nowrap;
  color: #ffaeb4;
}

.live-dot {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- 主导航 ---------- */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--gray-blue);
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--cream);
  background: rgba(58, 74, 90, 0.25);
  border-color: var(--line-blue);
}

.nav-link[aria-current="page"] {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
}

/* ---------- 移动端导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-blue);
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.nav-toggle:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.nav-toggle-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3125rem;
}

.nav-toggle-lines span {
  display: block;
  width: 1.125rem;
  height: 1px;
  background: currentColor;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(1) {
  transform: translateY(0.15625rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(2) {
  transform: translateY(-0.15625rem) rotate(-45deg);
}

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

  .site-nav {
    position: absolute;
    top: calc(100% + 0.625rem);
    left: 0;
    right: 0;
    display: none;
    margin-left: 0;
    padding: 0.625rem;
    background: rgba(16, 32, 58, 0.98);
    border: 1px solid var(--line-blue);
    border-radius: 0.875rem;
    box-shadow: var(--shadow-nav);
  }

  .site-nav[data-open] {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(58, 74, 90, 0.4);
    border-radius: 0.25rem;
  }

  .nav-list li:last-child .nav-link {
    border-bottom: 0;
  }
}

@media (max-width: 480px) {
  .round-badge {
    display: none;
  }

  .capsule-nav {
    padding-left: 0.625rem;
  }
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: var(--space-5);
  background: var(--deep-blue);
  border-top: 1px solid var(--line-blue);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 35%, var(--line-blue) 70%, var(--red) 100%);
  opacity: 0.5;
}

.site-footer::after {
  content: "YAXING DATA";
  position: absolute;
  right: -0.5rem;
  bottom: 2.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1;
  letter-spacing: 0.05em;
  color: rgba(58, 74, 90, 0.18);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.6fr;
  gap: var(--space-3);
  padding-top: var(--space-4);
  padding-bottom: var(--space-3);
}

.footer-col-brand {
  max-width: 24em;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-text {
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--gray-blue);
}

.footer-title {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(58, 74, 90, 0.6);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-links a {
  display: inline-block;
  padding: 0.15rem 0;
  font-size: var(--fs-small);
  color: var(--gray-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.4;
}

.contact-label {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(176, 183, 195, 0.55);
}

.contact-value {
  font-size: var(--fs-small);
  color: var(--cream);
  word-break: break-all;
}

.footer-bar {
  border-top: 1px solid rgba(58, 74, 90, 0.5);
  padding-block: 1rem;
}

.footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: rgba(176, 183, 195, 0.55);
}

/* ---------- 页脚响应式 ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .site-footer::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding-top: var(--space-3);
  }

  .footer-bar-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  font-family: var(--font-body);
  font-size: var(--fs-btn);
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--cream);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--line-blue);
  border-radius: 0;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--deep-blue);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--deep-blue);
}

.btn-ghost {
  border-color: var(--line-blue);
}

.btn-ghost:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

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

.btn-red:hover {
  background: transparent;
  color: var(--red);
}

/* ==========================================================================
   页面页头
   ========================================================================== */
.page-head {
  position: relative;
  padding-block: var(--space-3) var(--space-2);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--line-blue);
}

.page-subtitle {
  display: block;
  margin-bottom: 0.625rem;
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: var(--fs-title);
  line-height: var(--line-h-tight);
  color: var(--cream);
}

.page-intro {
  margin-top: 0.75rem;
  max-width: 44em;
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--gray-blue);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  color: var(--gray-blue);
}

.breadcrumb a {
  color: var(--gray-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--accent-blue);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(58, 74, 90, 0.8);
}

.breadcrumb li[aria-current="page"] {
  color: var(--gold);
}

/* ---------- 章节标签与大编号 ---------- */
.section-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.index-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: var(--fs-index);
  line-height: 1;
  color: rgba(212, 175, 55, 0.28);
  user-select: none;
}

/* ==========================================================================
   卡片
   ========================================================================== */
.card {
  position: relative;
  background: var(--card-blue);
  border: 1px solid var(--line-blue);
  border-radius: 0;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    border-color var(--transition-slow),
    transform var(--transition-slow);
}

.card:hover {
  border-color: rgba(212, 175, 55, 0.55);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--line-blue);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--cream);
}

.card-body {
  padding: 1.125rem;
}

.card-text {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--gray-blue);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.875rem;
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.card-link:hover {
  border-bottom-color: var(--accent-blue);
}

/* ==========================================================================
   内容目录（章节索引）
   ========================================================================== */
.chapter-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-blue);
}

.chapter-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.25rem 0.5rem;
  border-bottom: 1px solid var(--line-blue);
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.chapter-item:hover {
  background: rgba(58, 74, 90, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
}

.chapter-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1;
  color: rgba(212, 175, 55, 0.35);
  transition: color var(--transition-fast);
}

.chapter-item:hover .chapter-num {
  color: var(--gold);
}

.chapter-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--cream);
  transition: color var(--transition-fast);
}

.chapter-item:hover .chapter-title {
  color: var(--accent-blue);
}

.chapter-meta {
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--gray-blue);
}

@media (max-width: 640px) {
  .chapter-item {
    grid-template-columns: 3.5rem 1fr;
    gap: 0.75rem;
    padding: 1rem 0.25rem;
  }

  .chapter-meta {
    display: none;
  }

  .chapter-num {
    font-size: 2rem;
  }
}

/* ==========================================================================
   数据仪表盘组件
   ========================================================================== */
.stat-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(58, 74, 90, 0.35);
  font-size: var(--fs-small);
}

.stat-line:last-child {
  border-bottom: 0;
}

.stat-label {
  color: var(--gray-blue);
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: var(--fs-body);
  font-weight: 700;
  white-space: nowrap;
  color: var(--cream);
}

.stat-value.gold {
  color: var(--gold);
}

.stat-value.red {
  color: #ff6b77;
}

.stat-value.accent {
  color: var(--accent-blue);
}

.tag-chip {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  border: 1px solid var(--line-blue);
  font-size: 0.6875rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-blue);
}

.tag-chip.gold {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.5);
}

.tag-chip.red {
  color: #ff6b77;
  border-color: rgba(230, 57, 70, 0.5);
}

.tag-chip.accent {
  color: var(--accent-blue);
  border-color: rgba(0, 168, 232, 0.5);
}

/* ---------- 数据与图表占位 ---------- */
.data-block {
  position: relative;
  min-height: 9.5rem;
  padding: 1.25rem;
  background: var(--card-blue);
  border: 1px solid var(--line-blue);
}

.data-block[data-code]::before {
  content: attr(data-code);
  position: absolute;
  top: 0.625rem;
  right: 0.875rem;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: rgba(176, 183, 195, 0.5);
}

.chart-panel {
  position: relative;
  min-height: 13rem;
  padding: 1.25rem;
  background: var(--card-blue);
  border: 1px solid var(--line-blue);
}

.chart-panel-title {
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(58, 74, 90, 0.5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ==========================================================================
   图片容器
   ========================================================================== */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  min-height: 8rem;
  overflow: hidden;
  background: var(--card-blue);
  border: 1px solid var(--line-blue);
}

.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame[data-img-label]::after {
  content: attr(data-img-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-blue);
  background: linear-gradient(135deg, rgba(16, 32, 58, 0.65) 0%, rgba(16, 32, 58, 0.15) 100%);
}

.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

/* ==========================================================================
   网格
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ==========================================================================
   文章排版
   ========================================================================== */
.prose {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: rgba(245, 240, 230, 0.92);
}

.prose h2 {
  margin: 2.25rem 0 0.75rem;
  padding-left: 0.875rem;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--cream);
}

.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--gold);
}

.prose p {
  margin-bottom: 1rem;
}

.prose a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.prose ul,
.prose ol {
  margin-bottom: 1rem;
  padding-left: 1.375rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.375rem;
}

.prose strong {
  font-weight: 700;
  color: var(--gold);
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.125rem;
  background: rgba(58, 74, 90, 0.15);
  border-left: 3px solid var(--gold);
  color: var(--gray-blue);
}

.prose hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--line-blue);
}

.prose .table-wrap {
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.prose th,
.prose td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line-blue);
  text-align: left;
}

.prose th {
  background: var(--card-blue);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.prose td {
  color: var(--cream);
}

/* ==========================================================================
   分隔与留白
   ========================================================================== */
.divider-thin {
  height: 1px;
  margin-block: var(--space-4);
  border: 0;
  background: var(--line-blue);
}

.section-block {
  padding-block: var(--space-4);
}

.section-block-sm {
  padding-block: var(--space-3);
}

.section-block-lg {
  padding-block: var(--space-5);
}

/* ==========================================================================
   无障碍与性能
   ========================================================================== */
@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;
    transition-delay: 0ms !important;
  }

  .scroll-progress {
    transition: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .scroll-progress {
    display: none !important;
  }

  body {
    padding-top: 0;
    background: #fff;
    color: #000;
  }
}
