/* ============================================================
   云体育官网 · 共享外壳样式 /assets/site.css
   深空蓝底 · 夜间球场与数据控制室 · 非对称编辑部版式
   ============================================================ */

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

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

body {
  margin: 0;
  background: #0A1626;
  color: #E8EDF4;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 640px at 78% -8%, rgba(43, 231, 210, 0.11), transparent 62%),
    radial-gradient(900px 540px at 4% 98%, rgba(255, 122, 47, 0.10), transparent 64%),
    radial-gradient(760px 760px at 46% 44%, rgba(59, 91, 255, 0.07), transparent 70%);
}

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #0A1626;
  --ink-800: #101F33;
  --graphite: #2A3342;
  --white: #E8EDF4;
  --mist: #9AA9BD;
  --cyan: #2BE7D2;
  --orange: #FF7A2F;
  --indigo: #3B5BFF;
  --amber: #FFC24D;
  --cream: #F3EBDD;
  --cream-ink: #1A1410;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", "Courier New", monospace;

  --header-h: 88px;
  --header-h-scrolled: 72px;
  --rail-w: 76px;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;

  --ease: cubic-bezier(0.22, 0.6, 0.36, 1);
  --maxw: 1320px;
}

/* ---------- 3. 中文排版与基础文本 ---------- */
p {
  margin-bottom: 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

h1, h2, h3 {
  text-wrap: balance;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-stretch: 92%;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-stretch: 92%;
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

strong {
  font-weight: 700;
}

/* ---------- 4. 可访问性通用 ---------- */
:focus-visible {
  outline: 2px solid #2BE7D2;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--cyan);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
  transition: top 0.24s var(--ease);
}

.skip-link:focus {
  top: 14px;
}

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

/* ---------- 5. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.34s ease, box-shadow 0.34s ease, backdrop-filter 0.34s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(43, 231, 210, 0.5), transparent);
  transition: opacity 0.34s ease;
}

.site-header[data-scrolled] {
  background: rgba(16, 31, 51, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 44px -34px rgba(0, 0, 0, 0.95);
}

.site-header[data-scrolled]::after {
  opacity: 1;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: var(--header-h);
  padding-inline: 40px;
  display: flex;
  align-items: center;
  gap: 22px;
  transition: height 0.34s ease;
}

.site-header[data-scrolled] .header-inner {
  height: var(--header-h-scrolled);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--white);
}

.brand__mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, #2BE7D2 0%, #3B5BFF 100%);
  box-shadow: 0 0 0 1px rgba(43, 231, 210, 0.32), 0 12px 28px -14px rgba(43, 231, 210, 0.85);
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: 9px 7px;
  border: 1.5px solid rgba(10, 22, 38, 0.72);
  border-radius: 3px;
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 1.5px solid rgba(10, 22, 38, 0.72);
  border-radius: 50%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  font-stretch: 92%;
}

.brand__sub {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--mist);
}

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

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__item {
  flex: 0 0 auto;
}

.site-nav__link {
  display: block;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--mist);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav__link:hover {
  color: var(--white);
  background: rgba(232, 237, 244, 0.07);
}

.site-nav__link[aria-current="page"] {
  color: var(--ink-900);
  background: var(--cyan);
}

/* 头部工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-tools__link {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--graphite);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mist);
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.header-tools__link:hover {
  color: var(--cyan);
  border-color: rgba(43, 231, 210, 0.55);
  background: rgba(43, 231, 210, 0.07);
}

.lang-chip {
  padding-inline: 6px;
  font-size: 12.5px;
  color: rgba(154, 169, 189, 0.85);
  white-space: nowrap;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
  padding: 10px 16px;
  border: 1px solid var(--graphite);
  border-radius: 999px;
  background: rgba(16, 31, 51, 0.9);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.22s ease, color 0.22s ease;
}

.nav-toggle:hover {
  border-color: rgba(43, 231, 210, 0.6);
  color: var(--cyan);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: 50% 50%;
  transition: transform 0.26s var(--ease), opacity 0.2s ease;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 6. 左侧纵向频道轨道 ---------- */
.rail {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--rail-w);
  z-index: 58;
  display: none;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 22, 38, 0.62) 0%, rgba(10, 22, 38, 0.94) 100%);
  border-right: 1px solid rgba(42, 51, 66, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: width 0.34s var(--ease);
}

.rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(43, 231, 210, 0.7) 32%, rgba(255, 122, 47, 0.6) 68%, transparent);
}

.rail:hover,
.rail:focus-within {
  width: 172px;
}

.rail__list {
  display: grid;
  gap: 2px;
}

.rail__item {
  min-width: 0;
}

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 54px;
  padding-inline-start: 33px;
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.rail__link::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 3px;
  height: 26px;
  border-radius: 0 3px 3px 0;
  background: var(--cyan);
  transform: translateY(-50%) scaleY(0);
  transition: transform 0.24s var(--ease);
}

.rail__link:hover {
  color: var(--white);
  background: rgba(43, 231, 210, 0.06);
}

.rail__link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(43, 231, 210, 0.09);
}

.rail__link:hover::before,
.rail__link[aria-current="page"]::before {
  transform: translateY(-50%) scaleY(1);
}

.rail__dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
  transition: background 0.22s ease;
}

.rail__link[aria-current="page"] .rail__dot {
  background: var(--cyan);
}

.rail__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.24s ease, transform 0.24s var(--ease);
}

.rail:hover .rail__label,
.rail:focus-within .rail__label {
  opacity: 1;
  transform: none;
}

/* ---------- 7. 页脚窄带 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 112px;
  border-top: 1px solid var(--graphite);
  background: linear-gradient(180deg, rgba(16, 31, 51, 0.62) 0%, #101F33 42%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(43, 231, 210, 0));
}

.footer-strip__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 46px 40px 32px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 36px 32px;
}

.footer-brand__name {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-stretch: 92%;
  color: var(--white);
  transition: color 0.2s ease;
}

.footer-brand__name:hover {
  color: var(--cyan);
}

.footer-brand__line {
  margin-top: 10px;
  max-width: 26ch;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

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

.footer-nav__title {
  margin-bottom: 15px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.footer-nav__list {
  display: grid;
  gap: 9px;
}

.footer-nav__link {
  font-size: 14px;
  color: var(--mist);
  transition: color 0.2s ease;
}

.footer-nav__link:hover {
  color: var(--cyan);
}

.footer-meta {
  border-top: 1px solid rgba(42, 51, 66, 0.72);
  background: rgba(10, 22, 38, 0.55);
}

.footer-meta__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 40px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--mist);
}

.footer-meta__contact {
  margin: 0;
  flex: 1 1 340px;
}

.footer-meta__addr {
  margin: 0;
  flex: 0 1 auto;
}

.footer-meta__legal {
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: rgba(154, 169, 189, 0.9);
}

/* ---------- 8. 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 40px;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.col-main { grid-column: span 7; }
.col-aside { grid-column: span 3; }
.col-wide { grid-column: span 9; }
.col-full { grid-column: span 12; }

/* ---------- 9. 章节骨架 ---------- */
.section {
  padding-block: clamp(56px, 7vw, 96px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: 38px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cyan);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-stretch: 92%;
  color: var(--white);
}

.section__note {
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(43, 231, 210, 0.5), rgba(42, 51, 66, 0.9) 42%, rgba(42, 51, 66, 0));
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.btn--primary {
  background: var(--cyan);
  color: var(--ink-900);
  box-shadow: 0 16px 36px -20px rgba(43, 231, 210, 0.95);
}

.btn--primary:hover {
  background: #4DEEE1;
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--orange);
  color: #1A0E05;
  box-shadow: 0 16px 36px -20px rgba(255, 122, 47, 0.95);
}

.btn--accent:hover {
  background: #FF8D4C;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--graphite);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: rgba(43, 231, 210, 0.6);
  color: var(--cyan);
  transform: translateY(-2px);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  padding-top: 26px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mist);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--graphite);
}

.breadcrumb__link {
  color: var(--mist);
  transition: color 0.2s ease;
}

.breadcrumb__link:hover {
  color: var(--cyan);
}

.breadcrumb__current {
  color: var(--white);
}

/* ---------- 12. 基础组件 ---------- */
.card {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(42, 51, 66, 0.85);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, #101F33 0%, rgba(16, 31, 51, 0.7) 100%);
  transition: border-color 0.26s ease, transform 0.26s var(--ease), box-shadow 0.26s ease;
}

.card:hover {
  border-color: rgba(43, 231, 210, 0.42);
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -40px rgba(43, 231, 210, 0.9);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--white);
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
  white-space: nowrap;
}

.card__body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(43, 231, 210, 0.4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cyan);
  white-space: nowrap;
}

.tag--orange {
  border-color: rgba(255, 122, 47, 0.45);
  color: var(--orange);
}

.tag--muted {
  border-color: var(--graphite);
  color: var(--mist);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cyan);
}

.stat--orange .stat__num {
  color: var(--orange);
}

.stat--amber .stat__num {
  color: var(--amber);
}

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

.media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(42, 51, 66, 0.8);
  border-radius: var(--radius-md);
  background:
    radial-gradient(120% 90% at 70% 0%, rgba(43, 231, 210, 0.16), transparent 60%),
    linear-gradient(150deg, #101F33 0%, #0A1626 100%);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 38, 0) 40%, rgba(10, 22, 38, 0.55) 100%);
  pointer-events: none;
}

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

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }

.aside-note {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--mist);
}

.aside-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: var(--cyan);
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed rgba(42, 51, 66, 0.95);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--mist);
}

.paper {
  padding: clamp(26px, 4vw, 54px);
  border-radius: var(--radius-lg);
  background: var(--cream);
  color: var(--cream-ink);
}

.paper h2,
.paper h3,
.paper h4 {
  color: var(--cream-ink);
}

.paper a {
  color: #8A3A0B;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.paper .eyebrow {
  color: #8A3A0B;
}

.paper .eyebrow::before {
  background: #8A3A0B;
}

.paper .aside-note {
  color: rgba(26, 20, 16, 0.72);
}

.paper .aside-note::before {
  background: var(--orange);
}

.prose {
  max-width: 74ch;
  font-size: 17px;
  line-height: 1.8;
}

.prose p {
  margin-bottom: 1.2em;
}

.prose h2 {
  margin: 2.1em 0 0.7em;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
}

.prose h3 {
  margin: 1.8em 0 0.6em;
  font-size: 20px;
}

.prose ul,
.prose ol {
  margin-bottom: 1.2em;
  padding-left: 1.3em;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: 0.5em;
}

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

.prose blockquote {
  margin: 1.8em 0;
  padding: 18px 24px;
  border-left: 3px solid var(--orange);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 122, 47, 0.08);
  color: var(--white);
}

.paper .prose,
.paper .prose p,
.paper .prose li {
  color: var(--cream-ink);
}

.paper .prose a {
  color: #8A3A0B;
}

/* ---------- 13. 动效协议 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ---------- 14. 头部/页脚响应式 ---------- */
@media (max-width: 1179px) {
  .header-tools {
    display: none;
  }
}

@media (max-width: 1079px) {
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    width: min(348px, 84vw);
    margin-inline-start: 0;
    padding: 104px 22px 40px;
    overflow-y: auto;
    border-left: 1px solid rgba(42, 51, 66, 0.9);
    background: #101F33;
    box-shadow: -34px 0 66px -44px rgba(0, 0, 0, 0.95);
    transform: translateX(102%);
    transition: transform 0.36s var(--ease);
  }

  .site-nav[data-open] {
    transform: translateX(0);
  }

  .site-nav__list {
    display: grid;
    gap: 6px;
  }

  .site-nav__item {
    width: 100%;
  }

  .site-nav__link {
    padding: 15px 18px;
    border-radius: 12px;
    font-size: 16.5px;
  }

  .site-nav__link[aria-current="page"] {
    color: var(--ink-900);
  }

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

@media (max-width: 900px) {
  .header-inner {
    height: 76px;
    padding-inline: 26px;
    gap: 14px;
  }

  .site-header[data-scrolled] .header-inner {
    height: 64px;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand__sub {
    display: none;
  }

  .nav-toggle__text {
    display: none;
  }

  .container {
    padding-inline: 24px;
  }

  .footer-strip__inner {
    padding: 38px 26px 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-meta__inner {
    padding: 16px 26px 24px;
  }

  .grid-12 {
    gap: 20px;
  }

  .col-main,
  .col-aside,
  .col-wide,
  .col-full {
    grid-column: span 12;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 88px;
  }

  .header-inner {
    padding-inline: 18px;
  }

  .container {
    padding-inline: 18px;
  }

  .footer-strip__inner {
    grid-template-columns: 1fr;
    padding: 32px 18px 24px;
  }

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

  .footer-meta__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px 22px;
  }

  .site-footer {
    margin-top: 80px;
  }

  .card {
    padding: 20px;
  }
}

/* ---------- 15. 桌面端为纵向轨道让位 ---------- */
@media (min-width: 1200px) {
  body {
    padding-left: var(--rail-w);
  }

  .rail {
    display: flex;
  }

  .site-header {
    left: var(--rail-w);
  }
}

/* ---------- 16. 降低动效 ---------- */
@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;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-progress {
    transition: none !important;
  }

  .rail {
    transition: none !important;
  }
}
