/* =========================================================
   196体育赛事 · 共享样式表 /assets/site.css
   深墨蓝底 + 荧光青 / 赛道橙 · Bento 数据面板粗野主义
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --bg: #070B1C;
  --panel: #0F1834;
  --panel-soft: #0A1226;
  --line: #1E3360;
  --line-soft: rgba(30, 51, 96, 0.55);
  --cyan: #2BF0CE;
  --orange: #FF6A2B;
  --purple: #8A5CFF;
  --white: #F3F7FF;
  --mist: #A8B8D8;
  --yellow: #FFC24B;
  --scrim: rgba(7, 11, 28, 0.72);
  --head-font: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body-font: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono-font: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1260px;
  --gutter: clamp(16px, 4vw, 44px);
  --bw: 2px;
  --shadow-hard: 7px 7px 0 0 #101B3D;
  --shadow-cyan: 7px 7px 0 0 rgba(43, 240, 206, 0.16);
  --shadow-orange: 7px 7px 0 0 rgba(255, 106, 43, 0.2);
  --ease: cubic-bezier(0.2, 0.85, 0.25, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: #070B1C;
}

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

ul, ol { list-style: none; }

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

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

button { cursor: pointer; }

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

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

[hidden] { display: none !important; }

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--body-font);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.75;
  color: var(--white);
  background-color: var(--bg);
  background-image:
    radial-gradient(920px 520px at 90% -8%, rgba(43, 240, 206, 0.1), transparent 62%),
    radial-gradient(760px 500px at 2% 6%, rgba(255, 106, 43, 0.1), transparent 60%),
    radial-gradient(680px 460px at 50% 104%, rgba(138, 92, 255, 0.09), transparent 64%),
    repeating-linear-gradient(0deg, rgba(30, 51, 96, 0.16) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(90deg, rgba(30, 51, 96, 0.16) 0 1px, transparent 1px 88px);
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--head-font);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

strong { font-weight: 800; color: var(--white); }

::selection { background: var(--cyan); color: #04121A; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 1px;
}

[id] { scroll-margin-top: clamp(110px, 18vh, 190px); }

/* ---------- 4. 布局容器 ---------- */
.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.section { padding: clamp(40px, 6vw, 88px) 0; }
.section--tight { padding: clamp(22px, 3.4vw, 52px) 0; }

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 38px);
}

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

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

.section-title { font-size: clamp(26px, 3.6vw, 46px); }
.section-lead {
  max-width: 40ch;
  color: var(--mist);
  font-size: clamp(15px, 1.1vw, 17px);
}

.divider { height: var(--bw); background: var(--line); margin: clamp(20px, 3vw, 36px) 0; }
.divider--dashed {
  height: 0;
  border-top: var(--bw) dashed var(--line);
  background: none;
}

/* ---------- 5. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: var(--bw) solid var(--white);
  background: transparent;
  color: var(--white);
  font-family: var(--head-font);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 rgba(243, 247, 255, 0.22);
}

.btn:active { transform: translate(0, 0); box-shadow: none; }

.btn-primary {
  background: var(--orange);
  border-color: #FFB79A;
  color: #170A03;
}

.btn-primary:hover { box-shadow: 6px 6px 0 0 rgba(255, 106, 43, 0.32); }

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

.btn-ghost:hover {
  background: rgba(43, 240, 206, 0.1);
  box-shadow: 6px 6px 0 0 rgba(43, 240, 206, 0.22);
}

.btn-sm { padding: 9px 15px; font-size: 13.5px; letter-spacing: 0.03em; }

/* ---------- 6. 页头：状态条 ---------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -120px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--cyan);
  color: #04121A;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 6px 6px 0 0 rgba(7, 11, 28, 0.6);
  transition: top 0.18s var(--ease);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: linear-gradient(180deg, #080D20 0%, #0A1128 62%, #0B1330 100%);
  border-bottom: var(--bw) solid var(--line);
  box-shadow: 0 8px 0 -5px rgba(43, 240, 206, 0.14);
}

.header-strip {
  background: #050A17;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
  text-transform: uppercase;
}

.strip-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 30px;
  padding: 4px 0;
}

.strip-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(43, 240, 206, 0.55);
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 240, 206, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(43, 240, 206, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 240, 206, 0); }
}

.strip-meta {
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strip-mono { color: var(--yellow); white-space: nowrap; }

/* ---------- 7. 页头：居中刊头 ---------- */
.masthead { padding: 12px 0; }

.masthead-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.masthead-rail {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.masthead-rail--end { align-items: flex-end; text-align: right; }

.rail-label { color: var(--mist); text-transform: uppercase; }
.rail-mono { color: var(--yellow); white-space: nowrap; }

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: center;
  padding: 4px 6px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  background: linear-gradient(140deg, #FF8B52 0%, var(--orange) 70%);
  color: #150703;
  font-family: var(--mono-font);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  border: var(--bw) solid #FFD2BC;
  box-shadow: 5px 5px 0 0 rgba(255, 106, 43, 0.28);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.brand-text { display: grid; gap: 2px; }

.brand-name {
  font-family: var(--head-font);
  font-weight: 900;
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--white);
}

.brand-tagline {
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.brand-link:hover .brand-name { color: var(--cyan); }
.brand-link:hover .brand-mark { box-shadow: 5px 5px 0 0 rgba(43, 240, 206, 0.32); }

/* ---------- 8. 页头：栏目条与滚动进度 ---------- */
.nav-bar {
  position: relative;
  background: rgba(8, 13, 32, 0.94);
  border-top: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.site-nav::-webkit-scrollbar { height: 4px; }
.site-nav::-webkit-scrollbar-thumb { background: var(--line); }

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.9vw, 14px);
  min-width: max-content;
  margin-inline: auto;
  padding: 6px 2px;
}

.nav-item { flex: 0 0 auto; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 12px;
  border: var(--bw) solid transparent;
  color: var(--white);
  font-family: var(--head-font);
  font-weight: 800;
  font-size: clamp(14px, 1.05vw, 16px);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
    background-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.nav-link:hover {
  color: var(--cyan);
  border-color: var(--line);
  background: var(--panel);
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(43, 240, 206, 0.07);
  box-shadow: 4px 4px 0 0 rgba(43, 240, 206, 0.2);
}

.nav-index {
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.nav-link:hover .nav-index { color: var(--orange); }
.nav-link[aria-current="page"] .nav-index { color: var(--orange); }

.nav-cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 9px 14px;
  background: var(--panel);
  border: var(--bw) solid var(--line);
  color: var(--white);
  font-family: var(--head-font);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.site-header[data-open] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: rgba(30, 51, 96, 0.65);
  overflow: hidden;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan) 55%, var(--orange) 100%);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  margin-top: clamp(40px, 7vw, 96px);
  background: #050A17;
  border-top: var(--bw) solid var(--line);
}

.footer-top { padding: clamp(34px, 5.5vw, 70px) 0 clamp(24px, 3.5vw, 40px); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(22px, 3vw, 44px);
}

.footer-brand { border-left: 3px solid var(--cyan); padding-left: 18px; }

.footer-brand-name {
  font-family: var(--head-font);
  font-weight: 900;
  font-size: clamp(21px, 2vw, 26px);
  letter-spacing: 0.02em;
  color: var(--white);
}

.footer-brand-line { margin-top: 6px; color: var(--cyan); font-size: 15px; font-weight: 700; }

.footer-brand-meta {
  margin-top: 10px;
  font-family: var(--mono-font);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--yellow);
}

.footer-note {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.footer-col { display: grid; align-content: start; gap: 12px; }

.footer-col-title {
  font-family: var(--mono-font);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

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

.footer-item { font-size: 15px; line-height: 1.6; color: var(--mist); }

.footer-link {
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer-link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.footer-label {
  display: block;
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(168, 184, 216, 0.75);
}

.footer-value {
  display: block;
  color: var(--white);
  font-size: 14.5px;
  word-break: break-word;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0 30px;
  background: rgba(7, 11, 28, 0.6);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.legal-line { color: var(--mist); }
.legal-mono { color: var(--yellow); }

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 80;
  display: grid;
  place-items: center;
  gap: 0;
  width: 56px;
  height: 56px;
  background: var(--panel);
  border: var(--bw) solid var(--cyan);
  color: var(--cyan);
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  box-shadow: 5px 5px 0 0 rgba(43, 240, 206, 0.2);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s linear,
    background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.to-top[data-visible] { opacity: 1; visibility: visible; transform: translateY(0); }

.to-top:hover { background: var(--cyan); color: #04121A; }

.to-top-mark { font-size: 16px; line-height: 1; }
.to-top-text { font-size: 10px; line-height: 1; }

/* ---------- 10. Bento 网格与卡片 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.bento-item {
  position: relative;
  grid-column: span 6;
  padding: clamp(18px, 2vw, 28px);
  background: var(--panel);
  border: var(--bw) solid var(--line);
  box-shadow: var(--shadow-hard);
}

.bento-item--focus {
  background: linear-gradient(150deg, #12204A 0%, var(--panel) 68%);
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.bento-item--cyan { border-color: var(--cyan); box-shadow: var(--shadow-cyan); }
.bento-item--orange { border-color: var(--orange); box-shadow: var(--shadow-orange); }

.card {
  position: relative;
  display: block;
  padding: clamp(16px, 1.8vw, 24px);
  background: var(--panel);
  border: var(--bw) solid var(--line);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translate(-3px, -3px);
  border-color: var(--cyan);
  box-shadow: 6px 6px 0 0 rgba(43, 240, 206, 0.18);
}

.card-title {
  font-family: var(--head-font);
  font-weight: 800;
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--white);
}

.card-text { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--mist); }

.card-meta {
  display: block;
  margin-top: 14px;
  font-family: var(--mono-font);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--yellow);
  text-transform: uppercase;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: rgba(138, 92, 255, 0.14);
  color: #CDB9FF;
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip--cyan { background: rgba(43, 240, 206, 0.12); color: var(--cyan); border-color: rgba(43, 240, 206, 0.45); }
.chip--orange { background: rgba(255, 106, 43, 0.14); color: #FFC3A6; border-color: rgba(255, 106, 43, 0.5); }
.chip--purple { background: rgba(138, 92, 255, 0.16); color: #CDB9FF; border-color: rgba(138, 92, 255, 0.55); }

.metric { display: grid; gap: 4px; align-content: start; }

.metric-value {
  font-family: var(--mono-font);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan);
}

.metric-unit {
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.metric-label { font-size: 13px; color: var(--mist); }

/* ---------- 11. 横向滚动条带 ---------- */
.band {
  overflow-x: auto;
  overflow-y: hidden;
  border-top: var(--bw) solid var(--line);
  border-bottom: var(--bw) solid var(--line);
  background: var(--panel-soft);
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.band::-webkit-scrollbar { height: 6px; }
.band::-webkit-scrollbar-thumb { background: var(--line); }

.band-track { display: flex; align-items: stretch; min-width: max-content; }

.band-item {
  flex: 0 0 auto;
  padding: 16px 24px;
  border-right: 1px solid var(--line);
  font-family: var(--mono-font);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
  scroll-snap-align: start;
}

.band-item strong { color: var(--cyan); }

/* ---------- 12. 正文与面包屑 ---------- */
.prose { max-width: 38ch; }

.prose > * + * { margin-top: 1.05em; }

.prose h2,
.prose h3 { color: var(--white); }

.prose h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-top: 1.7em;
  padding-top: 0.7em;
  border-top: var(--bw) solid var(--line);
}

.prose h3 { font-size: clamp(18px, 1.7vw, 22px); margin-top: 1.4em; }

.prose p,
.prose li { color: var(--mist); }

.prose ul > li { position: relative; padding-left: 20px; }
.prose ul > li + li { margin-top: 0.5em; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 2px;
  background: var(--cyan);
}

.breadcrumb {
  background: rgba(15, 24, 52, 0.45);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.breadcrumb-item { display: inline-flex; align-items: center; gap: 8px; }

.breadcrumb-item:not(:first-child)::before { content: "/"; color: #2B4A85; }

.breadcrumb-item a { color: var(--mist); }
.breadcrumb-item a:hover { color: var(--cyan); }
.breadcrumb-current { color: var(--white); }

/* ---------- 13. 图像容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #12204A 0%, #0B1226 100%);
  border: var(--bw) solid var(--line);
  box-shadow: var(--shadow-hard);
}

.media-frame > img,
.media-frame > picture > img,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame::before,
.media-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.media-frame::before {
  left: 0;
  top: 0;
  border-left: 3px solid var(--cyan);
  border-top: 3px solid var(--cyan);
}

.media-frame::after {
  right: 0;
  bottom: 0;
  border-right: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
}

.media-frame--flat { box-shadow: none; }
.media-frame--tall { min-height: clamp(240px, 38vh, 440px); }

.media-frame--placeholder {
  display: grid;
  place-items: center;
  min-height: clamp(180px, 26vw, 320px);
  padding: 22px;
  color: var(--mist);
  font-family: var(--mono-font);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

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

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
}

.media-caption {
  margin-top: 8px;
  font-family: var(--mono-font);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ---------- 14. 章节目录与返回定位 ---------- */
.toc {
  background: var(--panel);
  border: var(--bw) solid var(--line);
  padding: 16px 18px;
}

.toc-title {
  font-family: var(--mono-font);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.toc-list { display: grid; gap: 2px; }

.toc-link {
  display: block;
  padding: 7px 10px;
  border-left: 3px solid transparent;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
    background-color 0.16s var(--ease);
}

.toc-link:hover { color: var(--white); background: rgba(43, 240, 206, 0.06); }

.toc-link[aria-current="true"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(43, 240, 206, 0.08);
}

.toc-link[aria-current="true"] .nav-index { color: var(--orange); }

/* ---------- 15. 入场显现 ---------- */
[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; }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .masthead-rail .rail-mono { font-size: 10.5px; }
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
  .footer-col--contact { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .header-strip { display: none; }

  .masthead { padding: 9px 0; }
  .masthead-inner { grid-template-columns: 1fr; gap: 8px; }
  .masthead-rail { display: none; }
  .brand-link { justify-self: center; gap: 11px; }
  .brand-mark { width: 46px; height: 46px; font-size: 16px; }

  .nav-inner { min-height: 52px; gap: 10px; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: 72vh;
    overflow-y: auto;
    padding: 10px var(--gutter) 16px;
    background: #0A1226;
    border-top: var(--bw) solid var(--line);
    border-bottom: var(--bw) solid var(--line);
    box-shadow: 0 16px 0 -4px rgba(7, 11, 28, 0.75);
  }

  .site-header[data-open] .site-nav {
    display: block;
    animation: nav-in 0.2s var(--ease) both;
  }

  @keyframes nav-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    margin-inline: 0;
    padding: 0;
  }

  .nav-link {
    width: 100%;
    padding: 13px 8px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--cyan);
    border-bottom-color: rgba(43, 240, 206, 0.5);
    box-shadow: none;
  }

  .nav-cta { margin-left: auto; }

  .span-4, .span-6, .span-8 { grid-column: span 12; }
  .bento-item { grid-column: span 12; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-col--contact { grid-column: auto; }
  .footer-brand { padding-left: 14px; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 19px; }
  .brand-tagline { font-size: 10px; letter-spacing: 0.1em; }
  .btn-sm { padding: 8px 12px; font-size: 12.5px; }
  .to-top { width: 48px; height: 48px; }
  .footer-bottom-inner { font-size: 11.5px; }
  .band-item { padding: 13px 18px; }
}

/* ---------- 17. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .pulse-dot { animation: none; box-shadow: 0 0 0 3px rgba(43, 240, 206, 0.25); }
  .to-top { transition: opacity 0.001ms linear, visibility 0.001ms linear; }
}
