/* ==========================================================================
   平博赛场 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 基础组件
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  /* 色彩 */
  --ink-900: #061B15;
  --ink-800: #0B2A21;
  --ink-700: #143B31;
  --cyan: #35F2C8;
  --cyan-soft: #7FF7DE;
  --orange: #FF7A2E;
  --violet: #8B6CFF;
  --mist: #DCEFE8;
  --sand: #F3EFE2;
  --muted: #94A69D;

  --line: rgba(148, 166, 157, 0.22);
  --line-soft: rgba(148, 166, 157, 0.13);
  --line-cyan: rgba(53, 242, 200, 0.34);
  --glass: rgba(220, 239, 232, 0.07);
  --glass-strong: rgba(220, 239, 232, 0.13);

  /* 形状 */
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --r-pill: 999px;

  /* 尺寸 */
  --header-h: 104px;
  --strip-h: 36px;
  --bar-h: 68px;

  /* 字体 */
  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --fs-100: 12px;
  --fs-200: 14px;
  --fs-300: 16px;
  --fs-400: 17px;
  --fs-500: clamp(18px, 1.4vw, 20px);
  --fs-600: clamp(22px, 2vw, 26px);
  --fs-700: clamp(28px, 3.2vw, 36px);
  --fs-800: clamp(36px, 5vw, 56px);
  --fs-900: clamp(44px, 7vw, 88px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scroll-padding-block-start: calc(var(--header-h) + 20px);
}

html.is-nav-locked { overflow: hidden; }

body {
  margin: 0;
  padding-block-start: var(--header-h);
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(900px 520px at 88% -8%, rgba(53, 242, 200, 0.13), transparent 62%),
    radial-gradient(760px 460px at 4% 2%, rgba(139, 108, 255, 0.12), transparent 58%),
    radial-gradient(680px 420px at 52% 104%, rgba(255, 122, 46, 0.07), transparent 60%);
  background-repeat: no-repeat;
  color: var(--sand);
  font-family: var(--font-body);
  font-size: var(--fs-300);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { display: block; }

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

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

strong, b { font-weight: 700; }

::selection { background: var(--cyan); color: var(--ink-900); }

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

/* ---------- 3. 排版与工具 ---------- */
.shell {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

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

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

.lede {
  max-width: 60ch;
  font-family: var(--font-serif);
  font-size: var(--fs-500);
  line-height: 1.65;
  color: var(--mist);
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-block-end: clamp(24px, 3vw, 40px);
}

.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-700);
  letter-spacing: 0.04em;
  line-height: 1.12;
  color: var(--sand);
}

.stack { display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 20px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(24px, 4vw, 48px);
  background: var(--line);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-size: var(--fs-200);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.link-arrow::after {
  content: "→";
  transition: transform 0.18s var(--ease);
}
.link-arrow:hover::after,
.link-arrow:focus-visible::after { transform: translateX(3px); }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--cyan); color: var(--ink-900); }
.btn--primary:hover { background: var(--cyan-soft); color: var(--ink-900); }

.btn--ghost {
  background: var(--glass);
  color: var(--mist);
  border-color: rgba(220, 239, 232, 0.24);
}
.btn--ghost:hover {
  background: var(--glass-strong);
  border-color: var(--line-cyan);
  color: var(--sand);
}

.btn--orange { background: var(--orange); color: var(--ink-900); }
.btn--orange:hover { background: #ff9460; color: var(--ink-900); }

.btn--quiet {
  background: transparent;
  color: var(--cyan);
  border-color: var(--line-cyan);
}
.btn--quiet:hover { background: rgba(53, 242, 200, 0.12); }

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: var(--ink-900);
  font-size: var(--fs-200);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--sand);
  outline-offset: 2px;
}

/* ---------- 6. 站点头部 ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 120;
  color: var(--sand);
  background: linear-gradient(
    180deg,
    rgba(6, 27, 21, 0.94) 0%,
    rgba(6, 27, 21, 0.62) 68%,
    rgba(6, 27, 21, 0.24) 100%
  );
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
  border-block-end: 1px solid rgba(53, 242, 200, 0.14);
  transition: background 0.24s var(--ease), border-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(6, 27, 21, 0.97);
  border-block-end-color: rgba(53, 242, 200, 0.3);
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, 0.95);
}

/* 6.1 轮次更新条 */
.update-strip {
  height: var(--strip-h);
  background: rgba(11, 42, 33, 0.62);
  border-block-end: 1px solid var(--line-soft);
  font-size: var(--fs-100);
}
.update-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 100%;
}
.update-strip__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
}
.update-strip__meta .mono { color: var(--mist); }
.update-strip__divider { color: rgba(148, 166, 157, 0.55); }
.update-strip__links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.update-strip__links a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-block-end: 1px solid transparent;
  padding-block-end: 1px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.update-strip__links a:hover,
.update-strip__links a:focus-visible {
  color: var(--cyan);
  border-block-end-color: var(--cyan);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulseGlow 2.8s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(53, 242, 200, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(53, 242, 200, 0); }
}

/* 6.2 主轴行 */
.header-bar { height: var(--bar-h); }
.header-bar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}
.brand__mark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  align-items: end;
  width: 28px;
  height: 28px;
}
.brand__mark span {
  display: block;
  border-radius: 2px;
  transition: height 0.3s var(--ease);
}
.brand__mark span:nth-child(1) { height: 44%; background: var(--violet); }
.brand__mark span:nth-child(2) { height: 100%; background: var(--cyan); }
.brand__mark span:nth-child(3) { height: 68%; background: var(--orange); }
.brand:hover .brand__mark span:nth-child(1) { height: 76%; }
.brand:hover .brand__mark span:nth-child(3) { height: 100%; }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--sand);
}
.brand__line {
  margin-block-start: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 主导航 */
.primary-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}
.primary-nav__head,
.primary-nav__foot { display: none; }

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.primary-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  color: var(--mist);
  font-size: var(--fs-200);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.18s var(--ease), background 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.primary-nav__list a:hover {
  color: var(--ink-900);
  background: var(--cyan);
}
.primary-nav__list a[aria-current="page"] {
  color: var(--cyan);
  background: rgba(53, 242, 200, 0.1);
  box-shadow: inset 0 0 0 1px rgba(53, 242, 200, 0.42);
}

/* 抽屉内标题与关闭键 */
.primary-nav__title {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--mist);
  cursor: pointer;
  font-size: 15px;
}
.nav-close:hover { border-color: var(--line-cyan); color: var(--cyan); }

/* 动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-inline-start: auto;
}
.header-actions__cta { padding-inline: 18px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-m);
  border: 1px solid rgba(220, 239, 232, 0.22);
  background: var(--glass);
  color: var(--sand);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--line-cyan); }
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

/* 抽屉内的路径捷径列表 */
.dock-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--glass);
  color: var(--mist);
  font-size: var(--fs-100);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}
.dock-link:hover,
.dock-link:focus-visible {
  background: rgba(53, 242, 200, 0.14);
  border-color: var(--line-cyan);
  color: var(--sand);
}
.dock-link__num {
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.12em;
}

/* 6.3 侧边路径捷径停靠 */
.shortcut-dock {
  display: none;
  position: fixed;
  inset-inline-end: 18px;
  inset-block-end: 24px;
  z-index: 110;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: var(--r-l);
  background: rgba(11, 42, 33, 0.82);
  border: 1px solid rgba(53, 242, 200, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 28px 60px -34px #000;
}
.shortcut-dock__label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  padding-inline-start: 6px;
}

/* 6.4 滚动进度 */
.scroll-progress {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 2px;
  background: rgba(53, 242, 200, 0.1);
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 62%, var(--orange));
  transition: width 0.12s linear;
}

/* 6.5 遮罩 */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(3, 12, 9, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--ease), visibility 0.24s var(--ease);
}
.site-header[data-nav-open] .nav-scrim {
  opacity: 1;
  visibility: visible;
}

/* ---------- 7. 站点页脚 ---------- */
.site-footer {
  position: relative;
  margin-block-start: clamp(56px, 8vw, 104px);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900) 78%);
  border-block-start: 1px solid var(--line);
  color: var(--mist);
  font-size: var(--fs-200);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), var(--orange), transparent);
  opacity: 0.5;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 48px);
}

.brand--footer .brand__name { font-size: 20px; }
.footer-brand__desc {
  max-width: 40ch;
  margin-block: 18px 22px;
  color: var(--muted);
  line-height: 1.8;
}
.footer-brand__cta { margin-block-start: 4px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.footer-col__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a {
  color: var(--mist);
  font-size: var(--fs-200);
  text-decoration: none;
  border-block-end: 1px solid transparent;
  padding-block-end: 1px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--cyan);
  border-block-end-color: var(--cyan);
}

.footer-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding-block: clamp(24px, 3vw, 34px);
  border-block-start: 1px solid var(--line-soft);
  border-block-end: 1px solid var(--line-soft);
}
.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin: 0;
}
.footer-contact__row dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-contact__row dd {
  margin-block-start: 5px;
  font-size: var(--fs-200);
  color: var(--sand);
  overflow-wrap: anywhere;
}
.footer-contact__note {
  font-size: var(--fs-100);
  line-height: 1.85;
  color: var(--muted);
  max-width: 54ch;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  font-size: var(--fs-100);
  color: var(--muted);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.footer-legal a {
  color: var(--mist);
  text-decoration: none;
  border-block-end: 1px solid transparent;
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--cyan);
  border-block-end-color: var(--cyan);
}
.footer-copy { margin: 0; }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--mist);
  font-size: var(--fs-100);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease),
    color 0.18s var(--ease);
}
.to-top:hover {
  border-color: var(--line-cyan);
  background: rgba(53, 242, 200, 0.12);
  color: var(--cyan);
}

/* ---------- 8. 内容容器组件 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: var(--ink-800);
  color: var(--mist);
}
.panel--glass {
  background: linear-gradient(150deg, rgba(220, 239, 232, 0.13), rgba(220, 239, 232, 0.04));
  border-color: rgba(220, 239, 232, 0.2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.panel--solid { background: var(--ink-700); }
.panel--accent {
  border-color: var(--line-cyan);
  box-shadow: inset 0 0 0 1px rgba(53, 242, 200, 0.08), 0 30px 60px -46px rgba(53, 242, 200, 0.6);
}
.panel--paper {
  background: var(--sand);
  border-color: rgba(6, 27, 21, 0.14);
  color: var(--ink-800);
}
.panel--paper .prose { color: var(--ink-800); }
.panel--paper .prose h2,
.panel--paper .prose h3,
.panel--paper .prose strong { color: var(--ink-900); }
.panel--paper .prose a { color: #0e6b52; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-cyan);
  background: rgba(53, 242, 200, 0.12);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.tag--orange {
  border-color: rgba(255, 122, 46, 0.42);
  background: rgba(255, 122, 46, 0.14);
  color: var(--orange);
}
.tag--violet {
  border-color: rgba(139, 108, 255, 0.45);
  background: rgba(139, 108, 255, 0.16);
  color: #bcaaff;
}
.tag--muted {
  border-color: rgba(148, 166, 157, 0.3);
  background: rgba(148, 166, 157, 0.12);
  color: var(--muted);
}

.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-block: 11px;
  border-block-end: 1px dashed var(--line);
}
.data-row:last-child { border-block-end: 0; }
.data-row__label { font-size: var(--fs-200); color: var(--muted); }
.data-row__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-300);
  line-height: 1.3;
  color: var(--sand);
}
.data-row__value--accent { color: var(--cyan); }

/* 8.1 Bento 网格 */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.bento__item { grid-column: span 12; min-width: 0; }

@media (min-width: 760px) {
  .bento__item--3 { grid-column: span 3; }
  .bento__item--4 { grid-column: span 4; }
  .bento__item--5 { grid-column: span 5; }
  .bento__item--6 { grid-column: span 6; }
  .bento__item--7 { grid-column: span 7; }
  .bento__item--8 { grid-column: span 8; }
  .bento__item--9 { grid-column: span 9; }
}

/* 8.2 图片容器 */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-m);
  background: linear-gradient(140deg, var(--ink-700), var(--ink-900));
  isolation: isolate;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(53, 242, 200, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 242, 200, 0.15) 1px, transparent 1px);
  background-size: 46px 46px;
  mix-blend-mode: screen;
  opacity: 0.32;
  pointer-events: none;
}
.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--tall { aspect-ratio: 2 / 3; }

.media__caption {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 2;
  padding: 14px 16px;
  font-size: var(--fs-100);
  color: var(--mist);
  background: linear-gradient(180deg, transparent, rgba(6, 27, 21, 0.94));
}
.media__play {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  translate: -50% -50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(53, 242, 200, 0.62);
  background: rgba(6, 27, 21, 0.62);
  color: var(--cyan);
  font-size: 13px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* 8.3 面包屑 */
.breadcrumb {
  font-size: var(--fs-100);
  color: var(--muted);
  margin-block-end: 18px;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: rgba(148, 166, 157, 0.5);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--sand); }

/* 8.4 长文排版 */
.prose {
  max-width: 68ch;
  font-size: var(--fs-300);
  line-height: 1.85;
  color: var(--mist);
}
.prose h2 {
  margin: 1.9em 0 0.6em;
  font-family: var(--font-serif);
  font-size: var(--fs-600);
  font-weight: 600;
  line-height: 1.35;
  color: var(--sand);
}
.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: var(--fs-500);
  font-weight: 700;
  color: var(--sand);
}
.prose p { margin-block-end: 1.1em; }
.prose ul,
.prose ol { margin-block-end: 1.1em; padding-inline-start: 1.35em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-block-end: 0.5em; }
.prose a { color: var(--cyan); }
.prose strong { color: var(--sand); }
.prose > :first-child { margin-block-start: 0; }

/* 8.5 分段切换 */
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--glass);
}
.tab {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.tab:hover { color: var(--sand); }
.tab[aria-selected="true"],
.tab.is-active {
  background: var(--cyan);
  color: var(--ink-900);
}
.tabpanel[hidden] { display: none; }
.tabpanel.is-anim { animation: tabIn 0.22s var(--ease) both; }
@keyframes tabIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* 8.6 滚动渐显 */
[data-reveal] { opacity: 1; }
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 9. 响应式 ---------- */
@media (min-width: 1180px) {
  .shortcut-dock { display: flex; }
}

@media (max-width: 1023px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-meta { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 899px) {
  :root {
    --header-h: 96px;
    --strip-h: 34px;
    --bar-h: 62px;
  }

  .shell { width: min(1240px, calc(100% - 32px)); }

  .update-strip__links { display: none; }
  .update-strip__meta { gap: 7px; overflow: hidden; }
  .update-strip__meta > span:last-child { overflow: hidden; text-overflow: ellipsis; }

  .header-bar__inner { gap: 12px; }
  .brand__line { display: none; }
  .brand__name { font-size: 16px; letter-spacing: 0.12em; }
  .brand__mark { width: 24px; height: 24px; }

  .header-actions__cta { display: none; }
  .nav-toggle { display: inline-flex; }

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

  .primary-nav {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    display: block;
    max-height: 84vh;
    overflow-y: auto;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(20, 59, 49, 0.99), rgba(6, 27, 21, 0.99));
    border-block-start: 1px solid rgba(53, 242, 200, 0.3);
    border-radius: var(--r-l) var(--r-l) 0 0;
    box-shadow: 0 -34px 90px -44px #000;
    transform: translateY(105%);
    transition: transform 0.26s var(--ease);
  }
  .primary-nav[data-open] { transform: translateY(0); }

  .primary-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block-end: 14px;
    margin-block-end: 12px;
    border-block-end: 1px solid var(--line-soft);
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .primary-nav__list li { border-block-end: 1px solid var(--line-soft); }
  .primary-nav__list li:last-child { border-block-end: 0; }
  .primary-nav__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 12px;
    border-radius: 0;
    font-size: var(--fs-500);
    font-weight: 600;
  }
  .primary-nav__list a::after {
    content: "↗";
    font-size: 13px;
    color: var(--muted);
  }
  .primary-nav__list a:hover {
    background: rgba(53, 242, 200, 0.12);
    color: var(--cyan);
    box-shadow: none;
  }
  .primary-nav__list a[aria-current="page"] {
    background: rgba(53, 242, 200, 0.08);
    box-shadow: inset 2px 0 0 var(--cyan);
    border-radius: 0;
  }

  .primary-nav__foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-block-start: 22px;
    padding-block-start: 18px;
    border-block-start: 1px solid var(--line-soft);
  }
  .primary-nav__foot-title {
    margin: 0 0 4px;
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .primary-nav__foot .dock-link {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 14px;
    border-radius: var(--r-m);
    font-size: var(--fs-200);
  }

  .footer-nav { gap: 22px; }
}

@media (max-width: 639px) {
  :root { --fs-300: 16px; --fs-400: 16px; }

  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
  .tabs { width: 100%; }
  .tab { flex: 1 1 auto; padding-inline: 12px; }
}

/* ---------- 10. 可访问性与动效降级 ---------- */
@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;
    scroll-behavior: auto !important;
  }
  .pulse-dot { animation: none; box-shadow: 0 0 0 3px rgba(53, 242, 200, 0.22); }
  .primary-nav { transition: none; }
  .js-ready [data-reveal] { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
  .link-arrow:hover::after { transform: none; }
}

@media print {
  .site-header,
  .shortcut-dock,
  .nav-scrim,
  .to-top { display: none !important; }
  body { padding-block-start: 0; background: #fff; color: #000; }
  .site-footer { background: none; color: #000; }
}
