/* ==========================================================================
   奇博体育 / PULSE QIBO — /assets/site.css
   共享外壳 + 通用组件。页面专属布局由各页面 CSS 继续扩展。
   ========================================================================== */

/* 01. RESET
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

ul[class], ol[class] { list-style: none; padding: 0; }

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

button { font: inherit; color: inherit; background: none; border: 0; }

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

summary { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--teal); }

/* 02. 变量
   ========================================================================== */
:root {
  /* 色板 */
  --deep: #071A2F;
  --midnight: #0B2A45;
  --mist: #F4F7F8;
  --sand: #E9E1D2;
  --coral: #FF6B4A;
  --coral-deep: #C7401F;
  --teal: #2DE2C5;
  --teal-deep: #0E8F7D;
  --signal: #FFC857;
  --slate: #6E8AA3;
  --ink: #0A0E12;
  --white: #FFFFFF;

  /* 线条 */
  --line-light: rgba(10, 14, 18, 0.14);
  --line-light-soft: rgba(10, 14, 18, 0.08);
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-dark-soft: rgba(255, 255, 255, 0.07);

  /* 字体 */
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* 尺度 */
  --shell: 1240px;
  --shell-narrow: 860px;
  --gutter: 24px;
  --pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 03. 基础排版
   ========================================================================== */
body {
  min-height: 100vh;
  overflow-x: clip;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3, h4) {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.012em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

/* 04. 布局容器与网格
   ========================================================================== */
.container {
  width: min(100% - 40px, var(--shell));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 40px, var(--shell-narrow));
  margin-inline: auto;
}

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

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

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.section--dark { background: var(--deep); color: #DCE7F0; }
.section--sand { background: var(--sand); color: var(--ink); }
.section--mist { background: var(--mist); color: var(--ink); }

.section--dark :focus-visible { outline-color: var(--teal); }

.rule {
  height: 1px;
  border: 0;
  margin-block: 32px;
  background: var(--line-light);
}

.section--dark .rule { background: var(--line-dark); }

/* 05. 按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease);
}

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

.btn--primary { background: var(--coral); color: var(--ink); }
.btn--primary:hover { background: #FF8163; }

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

.btn--on-dark { background: transparent; border-color: var(--line-dark); color: var(--white); }
.btn--on-dark:hover { background: var(--teal); border-color: var(--teal); color: var(--deep); }

/* 06. 文字组件
   ========================================================================== */
.kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--coral);
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.sub-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.25;
}

.lede {
  max-width: 56ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.8;
  color: #35434F;
}

.section--dark .lede { color: #C3D2DF; }

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.9;
  color: #2C3945;
}

.prose > p + p { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; margin-bottom: 0.5em; font-size: clamp(22px, 2.6vw, 30px); }
.prose h3 { margin-top: 1.4em; margin-bottom: 0.4em; font-size: 19px; font-weight: 800; }
.prose ul, .prose ol { margin-block: 1em; padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--coral-deep); border-bottom: 1px solid currentColor; }

.aside-note {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate);
}

.section--dark .aside-note { color: #7F9BB4; }

/* 07. 章节头
   ========================================================================== */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 20px;
  padding-bottom: 16px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line-light);
}

.section--dark .section-head { border-bottom-color: var(--line-dark); }

.section-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--coral);
}

.section-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
}

.section-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  text-align: right;
}

/* 08. 卡片
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 24px;
  background: var(--white);
  border: 1px solid var(--line-light);
  color: var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--coral);
}

.card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(7, 26, 47, 0.09); }

.card--teal::before { background: var(--teal); }
.card--warn::before { background: var(--signal); }

.card--dark {
  background: var(--midnight);
  border-color: var(--line-dark);
  color: #DCE7F0;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.card__title { font-size: 20px; font-weight: 800; line-height: 1.3; }

.card__body { font-size: 14.5px; line-height: 1.75; color: #3C4A57; }

.card--dark .card__body { color: #B4C6D6; }

/* 09. 编辑部索引
   ========================================================================== */
.index-list {
  display: grid;
  border-top: 1px solid var(--line-light);
}

.index-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-light);
  transition: background-color 0.18s var(--ease), padding 0.18s var(--ease);
}

.index-item:hover { background: var(--sand); padding-inline: 14px; }

.index-item__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--coral-deep);
}

.index-item__label { font-size: 15.5px; font-weight: 600; }

.index-item__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.section--dark .index-list,
.section--dark .index-item { border-color: var(--line-dark); }
.section--dark .index-item__label { color: #E4EDF4; }
.section--dark .index-item:hover { background: rgba(255, 255, 255, 0.05); }

/* 10. 折叠条目
   ========================================================================== */
.fold { border-bottom: 1px solid var(--line-light); }

.fold__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.fold__summary::-webkit-details-marker { display: none; }

.fold__summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--coral);
  transition: transform 0.2s var(--ease);
}

.fold[open] .fold__summary::after { content: "–"; }

.fold__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.fold__body {
  max-width: 68ch;
  padding: 0 0 24px;
  font-size: 15px;
  line-height: 1.85;
  color: #3A4854;
}

/* 11. 粘性目录
   ========================================================================== */
.toc {
  position: sticky;
  top: 124px;
  padding-left: 18px;
  border-left: 2px solid var(--line-light);
}

.toc__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

.toc__list { display: grid; gap: 10px; }

.toc a {
  position: relative;
  display: block;
  padding-left: 14px;
  font-size: 13.5px;
  color: var(--slate);
  transition: color 0.2s var(--ease);
}

.toc a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  background: currentColor;
  opacity: 0.5;
}

.toc a:hover { color: var(--ink); }

.toc a.is-active { color: var(--ink); font-weight: 700; }

.toc a.is-active::before {
  top: 0.35em;
  width: 2px;
  height: 1em;
  background: var(--coral);
  opacity: 1;
}

/* 12. 筛选标签
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 8px 15px;
  border: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

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

.filter-btn[aria-pressed="true"] {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--white);
}

/* 13. 状态标签
   ========================================================================== */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate);
}

.status-chip--ok {
  color: var(--teal-deep);
  border-color: rgba(14, 143, 125, 0.4);
  background: rgba(45, 226, 197, 0.14);
}

.status-chip--warn {
  color: #8A6100;
  border-color: rgba(255, 200, 87, 0.6);
  background: rgba(255, 200, 87, 0.2);
}

.status-chip--alert {
  color: var(--coral-deep);
  border-color: rgba(199, 64, 31, 0.4);
  background: rgba(255, 107, 74, 0.14);
}

/* 14. 图像容器
   ========================================================================== */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--midnight);
  border: 1px solid var(--line-light);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}

.media-frame:hover img { transform: translate(3px, -3px); filter: contrast(1.05); }

.media-frame--ratio { aspect-ratio: 16 / 10; }

.media-frame--slant {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 86% 100%, 0 100%);
}

.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 12px;
  background: var(--deep);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B4C6D6;
}

/* 15. 面包屑
   ========================================================================== */
.crumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

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

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

.crumb__item + .crumb__item::before {
  content: "/";
  color: var(--coral);
}

.crumb__link { color: var(--slate); }
.crumb__link:hover { color: var(--ink); }

/* 16. 返回顶部
   ========================================================================== */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--deep);
  border: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
    visibility 0.24s var(--ease);
}

.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }

/* 17. 跳转链接
   ========================================================================== */
.skip-link {
  position: fixed;
  top: -90px;
  left: 12px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  transition: top 0.2s var(--ease);
}

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

/* 18. 头部外壳
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(180deg, rgba(7, 26, 47, 0.99), rgba(7, 26, 47, 0.94));
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.status-rail {
  background: var(--midnight);
  border-bottom: 1px solid var(--line-dark-soft);
}

.status-rail__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100% - 40px, var(--shell));
  margin-inline: auto;
  min-height: 34px;
  padding-block: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.status-rail__inner::-webkit-scrollbar { display: none; }

.status-rail__label {
  flex: none;
  padding-right: 14px;
  border-right: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--teal);
}

.status-list { display: flex; align-items: center; gap: 18px; }

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
}

.status-item__name { color: var(--white); font-weight: 700; }
.status-item__meta { color: var(--slate); }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--slate);
  box-shadow: 0 0 0 3px rgba(110, 138, 163, 0.18);
}

.status-dot--ok { background: var(--teal); box-shadow: 0 0 0 3px rgba(45, 226, 197, 0.18); }
.status-dot--warn { background: var(--signal); box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.18); }
.status-dot--alert { background: var(--coral); box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.2); }

.status-rail__more {
  flex: none;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--teal);
  border-bottom: 1px dashed rgba(45, 226, 197, 0.5);
  white-space: nowrap;
}

.status-rail__more:hover { color: var(--white); border-bottom-color: var(--white); }

.status-rail__time {
  flex: none;
  padding-left: 16px;
  border-left: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--slate);
  white-space: nowrap;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 40px, var(--shell));
  margin-inline: auto;
  padding-block: 13px;
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  transition: background-color 0.2s var(--ease);
}

.brand:hover .brand__mark { background: var(--teal); }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }

.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.brand__latin {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--slate);
}

/* 导航浮岛 */
.nav-island {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(11, 42, 69, 0.92);
  border: 1px solid var(--line-dark);
  border-radius: var(--pill);
}

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

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #D3E0EB;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.nav-link[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 107, 74, 0.14);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  background: var(--coral);
}

.nav-link--cta {
  margin-left: 6px;
  padding-inline: 18px;
  background: var(--coral);
  color: var(--ink);
  font-weight: 800;
}

.nav-link--cta:hover { background: #FF8163; color: var(--ink); }

.nav-link--cta[aria-current="page"] { background: var(--coral); color: var(--ink); }
.nav-link--cta[aria-current="page"]::after { display: none; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid var(--line-dark);
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.site-header[data-open] .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }
.site-header[data-open] .nav-toggle { border-color: var(--teal); color: var(--teal); }

/* 阅读进度 */
.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
}

.scroll-rail__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* 19. 页脚外壳
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--coral);
  background-color: var(--deep);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    rgba(255, 255, 255, 0) 1px 88px
  );
  color: #C2D2DF;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 48px;
  padding-block: clamp(40px, 6vw, 72px) 40px;
}

.footer-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal);
}

.footer-claim {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--white);
}

.footer-contact {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  font-size: 13.5px;
}

.footer-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.footer-contact__key {
  min-width: 48px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.footer-contact__val { color: #DFE9F1; }

.copy-chip {
  padding: 3px 10px;
  border: 1px dashed rgba(45, 226, 197, 0.45);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--teal);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.copy-chip:hover { background: rgba(45, 226, 197, 0.12); }

.copy-chip[data-copied] {
  background: var(--teal);
  border-style: solid;
  border-color: var(--teal);
  color: var(--deep);
}

.footer-note {
  max-width: 44ch;
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--signal);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--slate);
}

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

.footer-col__title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
}

.footer-col__list { display: grid; gap: 11px; }

.footer-col__link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  color: #C2D2DF;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-col__link:hover { color: var(--white); border-bottom-color: var(--teal); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.footer-legal { color: #92AAC0; }

.footer-wordmark {
  padding: 0 18px 14px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(54px, 15vw, 200px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.03em;
  text-align: right;
  color: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  user-select: none;
}

/* 20. 显现动效
   ========================================================================== */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* 21. 响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 980px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-3, .span-4 { grid-column: span 3; }
  .span-6, .span-8, .span-12 { grid-column: span 6; }

  .section-head {
    grid-template-columns: auto 1fr;
    row-gap: 10px;
  }
  .section-note { grid-column: 2; text-align: left; }

  .toc { position: static; }
}

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

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

  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(78vw, 300px);
    display: none;
    padding: 12px;
    background: var(--midnight);
    border: 1px solid var(--line-dark);
    border-radius: 22px;
    box-shadow: 0 26px 50px rgba(4, 14, 26, 0.55);
  }

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

  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }

  .nav-link { padding: 12px 14px; border-radius: 14px; font-size: 15px; }

  .nav-link[aria-current="page"] { background: rgba(255, 107, 74, 0.12); box-shadow: inset 2px 0 0 var(--coral); }
  .nav-link[aria-current="page"]::after { display: none; }

  .nav-link--cta { margin-left: 0; margin-top: 6px; text-align: center; }

  .status-rail__time { display: none; }
}

@media (max-width: 760px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .footer-wordmark { text-align: left; }
}

@media (max-width: 640px) {
  .grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .span-3, .span-4, .span-6, .span-8, .span-12 { grid-column: span 4; }

  .container, .container--narrow, .header-bar, .status-rail__inner {
    width: min(100% - 28px, var(--shell));
  }

  .brand__latin { letter-spacing: 0.22em; }
  .brand__name { font-size: 16px; }

  .status-rail__more { display: none; }

  .footer-base { flex-direction: column; align-items: flex-start; gap: 6px; }

  .to-top { right: 14px; bottom: 14px; padding: 9px 13px; }
}

/* 22. 降级动效
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .media-frame:hover img { transform: none; }
  .btn:hover, .card:hover, .nav-link:hover { transform: none; }
}
