/* ===== 天行体育赛后归档CN Site Kit / 共享样式 ===== */

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

:root {
  --bg-deep: #0A192F;
  --bg-card: #112240;
  --bg-hover: #1D2F54;
  --accent-green: #3DFF9E;
  --accent-orange: #FF6B35;
  --text-main: #E6F1FF;
  --text-sub: #8892B0;
  --line: #233554;
  --grid-deep: #0B1E3B;
  --warn: #F4C95D;

  --rail-w: 280px;
  --mobile-header-h: 64px;
  --content-max: 1320px;

  --body-font: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono-font: "JetBrains Mono", "SF Mono", "Roboto Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-fast: 0.2s var(--ease);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(rgba(35, 53, 84, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 53, 84, 0.16) 1px, transparent 1px);
  background-size: 48px 48px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 18px;
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--accent-green);
  transition: color var(--ease-fast);
}

a:hover {
  color: var(--accent-orange);
}

ul, ol {
  padding-left: 1.4em;
}

[id] {
  scroll-margin-top: calc(var(--mobile-header-h) + 16px);
}

::selection {
  background: rgba(61, 255, 158, 0.3);
  color: var(--text-main);
}

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

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

/* ===== 布局容器 ===== */

.container, .page-wrap {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
}

.page-wrap {
  padding: 56px 32px 96px;
}

.section {
  padding: 72px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 40px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent-green);
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-orange);
}

.section-title {
  margin: 12px 0 10px;
}

.section-desc {
  color: var(--text-sub);
  font-size: 16px;
  max-width: 720px;
  line-height: 1.75;
}

.corridor {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.corridor-note {
  position: sticky;
  top: 32px;
  border-left: 2px solid var(--accent-orange);
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-sub);
}

.corridor-note p {
  margin: 0;
}

/* ===== 头部 ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 1000;
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(rgba(35, 53, 84, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 53, 84, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  border-right: 1px solid var(--line);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-orange), var(--accent-green));
  z-index: 2;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 1100;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--accent-green);
  color: #062019;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}

.skip-link:focus-visible {
  top: 16px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 1200;
  pointer-events: none;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(17, 34, 64, 0.92);
  color: var(--accent-green);
  font-size: 18px;
  cursor: pointer;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity var(--ease-fast),
    transform var(--ease-fast),
    visibility 0s 0.25s,
    border-color var(--ease-fast),
    background var(--ease-fast);
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity var(--ease-fast),
    transform var(--ease-fast),
    visibility 0s,
    border-color var(--ease-fast),
    background var(--ease-fast);
}

.back-top:hover {
  border-color: var(--accent-green);
  background: var(--bg-card);
}

.back-top-icon {
  line-height: 1;
}

.header-mobile {
  display: none;
}

.site-header-body {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 28px;
  overflow-y: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  border-radius: var(--radius-md);
}

.brand-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-orange), #D94B1A);
  color: var(--bg-deep);
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-cn {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-sub {
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-top: 3px;
}

.brand-rail {
  margin-bottom: 36px;
}

.site-nav {
  margin-top: 4px;
  margin-bottom: auto;
}

.nav-group + .nav-group {
  margin-top: 28px;
}

.nav-group-more {
  padding-top: 22px;
  border-top: 1px solid rgba(35, 53, 84, 0.7);
}

.nav-group-label {
  display: block;
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-sub);
  text-transform: uppercase;
  padding: 0 12px;
  margin-bottom: 8px;
  opacity: 0.75;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--text-sub);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition:
    background var(--ease-fast),
    color var(--ease-fast),
    border-color var(--ease-fast);
}

.nav-link:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: rgba(230, 241, 255, 0.08);
}

.nav-link[aria-current="page"] {
  background: rgba(61, 255, 158, 0.1);
  color: var(--accent-green);
  border-color: rgba(61, 255, 158, 0.35);
  font-weight: 700;
}

.nav-num {
  min-width: 26px;
  text-align: right;
  font-family: var(--mono-font);
  font-size: 11px;
  color: var(--accent-orange);
  opacity: 0.85;
}

.nav-link[aria-current="page"] .nav-num {
  color: var(--accent-green);
}

.rail-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(35, 53, 84, 0.7);
}

.header-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent-green);
  color: #062019;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition:
    background var(--ease-fast),
    transform var(--ease-fast),
    box-shadow var(--ease-fast);
}

.header-cta:hover {
  background: #2FE08A;
  color: #062019;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(61, 255, 158, 0.25);
}

.cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-deep);
}

.header-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(17, 34, 64, 0.7);
  border: 1px solid var(--line);
}

.status-pulse {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(61, 255, 158, 0.55);
  animation: archive-pulse 2s infinite;
}

.status-copy {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-sub);
}

@keyframes archive-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 255, 158, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(61, 255, 158, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 255, 158, 0);
  }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 16px 7px;
  cursor: pointer;
  color: var(--text-main);
  transition: border-color var(--ease-fast), background var(--ease-fast);
}

.nav-toggle:hover {
  border-color: var(--accent-green);
  background: rgba(61, 255, 158, 0.06);
}

.nav-toggle-line {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: background 0.2s;
}

.nav-toggle-line::before,
.nav-toggle-line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-main);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle-line::before {
  top: -6px;
}

.nav-toggle-line::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] {
  border-color: rgba(61, 255, 158, 0.5);
  background: rgba(61, 255, 158, 0.06);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-line::after {
  top: 0;
  background: var(--accent-green);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line::before {
  transform: rotate(45deg);
}

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

.nav-toggle-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-sub);
}

/* ===== 页脚 ===== */

.site-footer {
  position: relative;
  padding: 56px 0 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-orange));
  opacity: 0.7;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

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

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

.footer-brand {
  margin-bottom: 18px;
}

.footer-about {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
  max-width: 480px;
}

.footer-promise {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(61, 255, 158, 0.07);
  border: 1px solid rgba(61, 255, 158, 0.2);
  color: var(--accent-green);
  font-size: 13px;
  line-height: 1.6;
}

.footer-heading {
  margin: 0 0 18px;
  font-family: var(--mono-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-main);
}

.footer-nav-list,
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--ease-fast), padding-left var(--ease-fast);
}

.footer-nav-list a:hover {
  color: var(--accent-green);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-orange);
}

.contact-value {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-sub);
  word-break: break-all;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-sub);
}

.footer-copy {
  margin: 0;
}

.footer-icp {
  margin: 0;
  font-family: var(--mono-font);
  font-size: 12px;
}

/* ===== 基础组件 ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--ease-fast),
    box-shadow var(--ease-fast),
    background var(--ease-fast),
    color var(--ease-fast),
    border-color var(--ease-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent-green);
  color: #062019;
}

.btn-primary:hover {
  background: #2FE08A;
  color: #062019;
  box-shadow: 0 12px 24px rgba(61, 255, 158, 0.22);
}

.btn-accent {
  background: var(--accent-orange);
  color: #1A0A04;
}

.btn-accent:hover {
  background: #FF8555;
  color: #1A0A04;
  box-shadow: 0 12px 24px rgba(255, 107, 53, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: none;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.breadcrumbs {
  margin-bottom: 24px;
}

.breadcrumbs-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--text-sub);
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs-item + .breadcrumbs-item::before {
  content: "/";
  color: var(--line);
  margin-right: 8px;
}

.breadcrumbs-item a {
  color: var(--text-sub);
  text-decoration: none;
}

.breadcrumbs-item a:hover {
  color: var(--accent-green);
}

.breadcrumbs-item[aria-current="page"] {
  color: var(--text-main);
  font-weight: 600;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition:
    transform var(--ease-fast),
    border-color var(--ease-fast),
    box-shadow var(--ease-fast);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 255, 158, 0.5);
  box-shadow: 0 18px 40px rgba(2, 12, 27, 0.45);
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}

.card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sub);
  margin: 0;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--bg-hover);
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.pill-success {
  color: var(--accent-green);
  background: rgba(61, 255, 158, 0.08);
  border-color: rgba(61, 255, 158, 0.3);
}

.pill-hot {
  color: var(--accent-orange);
  background: rgba(255, 107, 53, 0.08);
  border-color: rgba(255, 107, 53, 0.3);
}

.pill-warn {
  color: var(--warn);
  background: rgba(244, 201, 93, 0.08);
  border-color: rgba(244, 201, 93, 0.3);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  position: relative;
  padding: 0 0 36px 30px;
  border-left: 1px solid var(--line);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(61, 255, 158, 0.18);
}

.timeline-item:nth-child(even)::before {
  background: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18);
}

.timeline-date {
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
}

.timeline-title {
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0 8px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.65;
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.tab-btn {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-sub);
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color var(--ease-fast),
    color var(--ease-fast),
    background var(--ease-fast);
}

.tab-btn:hover {
  border-color: var(--accent-green);
  color: var(--text-main);
}

.tab-btn.is-active,
.tab-btn[aria-selected="true"] {
  background: rgba(61, 255, 158, 0.1);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 96px;
}

.toc-link {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  color: var(--text-sub);
  font-size: 14px;
  text-decoration: none;
  transition:
    color var(--ease-fast),
    border-color var(--ease-fast),
    background var(--ease-fast);
}

.toc-link:hover {
  color: var(--text-main);
  border-left-color: var(--line);
  background: rgba(17, 34, 64, 0.5);
}

.toc-link.is-active {
  color: var(--accent-green);
  border-left-color: var(--accent-green);
  background: rgba(61, 255, 158, 0.05);
}

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--grid-deep);
  aspect-ratio: 16 / 9;
}

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

.media-frame-r43 {
  aspect-ratio: 4 / 3;
}

.media-frame-r11 {
  aspect-ratio: 1 / 1;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-sub);
}

.media-placeholder::before {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(61, 255, 158, 0.07);
  border: 1px solid rgba(61, 255, 158, 0.35);
  box-shadow: inset 0 0 16px rgba(61, 255, 158, 0.08);
}

.caption {
  margin-top: 10px;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-sub);
}

.frame-stage {
  position: relative;
  padding: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(17, 34, 64, 0.72), rgba(10, 25, 47, 0.92));
  overflow: hidden;
}

.frame-stage::before,
.frame-stage::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  pointer-events: none;
}

.frame-stage::before {
  top: 0;
  left: 0;
  border-top: 3px solid var(--accent-green);
  border-left: 3px solid var(--accent-green);
  border-top-left-radius: var(--radius-lg);
}

.frame-stage::after {
  right: 0;
  bottom: 0;
  border-right: 3px solid var(--accent-orange);
  border-bottom: 3px solid var(--accent-orange);
  border-bottom-right-radius: var(--radius-lg);
}

.stat-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.stat-badge .stat-value {
  font-family: var(--mono-font);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent-green);
  font-variant-numeric: tabular-nums;
}

.stat-badge .stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-sub);
}

.data-num,
.mono {
  font-family: var(--mono-font);
  font-variant-numeric: tabular-nums;
}

.hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.text-green {
  color: var(--accent-green);
}

.text-orange {
  color: var(--accent-orange);
}

.text-sub {
  color: var(--text-sub);
}

/* ===== 桌面断点 ===== */

@media (min-width: 960px) {
  #main-content,
  .site-footer {
    margin-left: var(--rail-w);
  }

  [id] {
    scroll-margin-top: 24px;
  }
}

/* ===== 平板及以下断点 ===== */

@media (max-width: 959px) {
  #main-content {
    margin-left: 0;
    padding-top: var(--mobile-header-h);
  }

  .site-header {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--mobile-header-h);
    border-right: none;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 25, 47, 0.98);
    background-image: none;
  }

  .site-header::before {
    display: none;
  }

  .header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px 0 20px;
  }

  .header-mobile .brand-badge {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 17px;
  }

  .header-mobile .brand-cn {
    font-size: 14px;
  }

  .header-mobile .brand-sub {
    font-size: 9px;
  }

  .site-header-body {
    position: fixed;
    top: var(--mobile-header-h);
    left: 0;
    bottom: 0;
    width: min(340px, 86vw);
    height: auto;
    max-height: none;
    padding: 28px 20px 24px;
    background: rgba(10, 25, 47, 0.98);
    border-right: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(2, 12, 27, 0.45);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0s 0.3s;
  }

  .site-header-body[data-open] {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s var(--ease), visibility 0s;
  }

  .brand-rail {
    display: none;
  }

  .site-nav {
    margin-top: 8px;
  }

  .container {
    padding: 0 24px;
  }

  .page-wrap {
    padding: 40px 24px 72px;
  }

  .section {
    padding: 56px 0;
  }

  .corridor {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .corridor-note {
    position: static;
  }

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

  .frame-stage {
    padding: 32px;
  }

  .site-footer {
    padding-top: 40px;
  }

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

  .footer-about-col {
    grid-column: 1 / -1;
  }

  .footer-inner {
    padding: 0 24px;
  }
}

/* ===== 手机断点 ===== */

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

  .grid {
    gap: 16px;
  }

  .page-wrap {
    padding: 32px 20px 64px;
  }

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

  .footer-about-col {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .toc {
    position: static;
  }

  .frame-stage {
    padding: 24px;
  }
}

/* ===== 减弱动态效果 ===== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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