/* ==========================================================================
   亿德赛事入口 · 共享样式 / assets/site.css
   骨架：技术蓝图网格 + 计时牌等宽数字 + 玻璃胶囊浮岛
   ========================================================================== */

/* 1. 变量
   ========================================================================== */
:root {
  --ink: #041E19;
  --ink-2: #072E26;
  --glass: rgba(247, 255, 253, 0.08);
  --cyan: #35F0D0;
  --cyan-deep: #0BBFA8;
  --orange: #FF8A3D;
  --orange-soft: #FFB37A;
  --grey: #B9C6C4;
  --white: #F5FFFC;
  --line: #2A4A43;
  --line-soft: rgba(53, 240, 208, 0.18);
  --on-accent: #06231D;

  --sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Roboto Mono", "Liberation Mono", monospace;

  --maxw: 1240px;
  --r-pill: 999px;
  --r-card: 14px;
  --pad-x: clamp(16px, 3vw, 28px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    radial-gradient(1000px 620px at 6% -12%, rgba(53, 240, 208, 0.10), transparent 62%),
    radial-gradient(860px 540px at 98% 2%, rgba(255, 138, 61, 0.075), transparent 60%),
    linear-gradient(rgba(42, 74, 67, 0.30) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 74, 67, 0.30) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-attachment: fixed, fixed, fixed, fixed;
  background-position: center top, center top, left top, left top;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

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

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

a { color: var(--cyan); text-underline-offset: 4px; }

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

/* 3. 排版
   ========================================================================== */
h1, .h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h2, .h2 {
  font-size: clamp(23px, 3.2vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.005em;
}

h4, .h4 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

strong { color: var(--white); }

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

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.75;
  color: rgba(245, 255, 252, 0.82);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 4. 焦点与跳转
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--cyan);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.16s var(--ease);
}

.skip-link:focus { top: 0; }

#main-content {
  display: block;
  scroll-margin-top: 118px;
}

/* 5. 头部浮岛
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 14px var(--pad-x) 0;
}

.header-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(4, 30, 25, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  box-shadow:
    0 22px 44px -30px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(247, 255, 253, 0.07);
}

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

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(53, 240, 208, 0.45);
  border-radius: 9px;
  background: linear-gradient(155deg, rgba(53, 240, 208, 0.22), rgba(255, 138, 61, 0.16));
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.brand-mark::before {
  content: "";
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow:
    0 5px 0 var(--orange),
    0 -5px 0 rgba(245, 255, 252, 0.55);
}

.brand:hover .brand-mark {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 240, 208, 0.14);
}

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

.brand-name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  color: var(--grey);
}

/* 导航 */
.nav {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  color: rgba(245, 255, 252, 0.78);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--cyan);
  background: rgba(53, 240, 208, 0.08);
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  border-color: rgba(53, 240, 208, 0.7);
  background: rgba(53, 240, 208, 0.16);
  box-shadow: inset 0 0 0 1px rgba(53, 240, 208, 0.12);
}

/* 右侧 CTA */
.header-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 179, 122, 0.45);
  border-radius: var(--r-pill);
  background: var(--orange);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.header-cta:hover {
  background: var(--orange-soft);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.18);
}

/* 状态灯 */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 240, 208, 0.16);
  vertical-align: middle;
}

.status-dot--live {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.2);
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--glass);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

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

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.site-header[data-open] .nav-toggle {
  border-color: rgba(255, 138, 61, 0.6);
  color: var(--orange);
}

.site-header[data-open] .nav-toggle-bars { background: transparent; }

.site-header[data-open] .nav-toggle-bars::before {
  background: var(--orange);
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-bars::after {
  background: var(--orange);
  transform: translateY(-5px) rotate(-45deg);
}

/* 移动面板内的 CTA（桌面隐藏） */
.nav-foot { display: none; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(255, 179, 122, 0.45);
  border-radius: 14px;
  background: var(--orange);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.nav-cta:hover { background: var(--orange-soft); }

.nav-note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--grey);
}

/* 滚动进度尺 */
.header-progress {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  height: 2px;
  margin: 6px auto 0;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(42, 74, 67, 0.6);
}

.header-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-deep) 52%, var(--orange) 100%);
  transition: transform 0.12s linear;
}

/* 6. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(720px 340px at 90% 0%, rgba(255, 138, 61, 0.09), transparent 62%),
    radial-gradient(620px 320px at 4% 100%, rgba(53, 240, 208, 0.07), transparent 64%),
    linear-gradient(180deg, rgba(7, 46, 38, 0.92), rgba(4, 30, 25, 0.99));
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), rgba(53, 240, 208, 0.12) 46%, var(--orange));
}

.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 68px) var(--pad-x) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.85fr));
  gap: clamp(24px, 3.4vw, 48px);
}

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

.footer-kicker {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--orange);
}

.footer-brand {
  display: inline-block;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

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

.footer-line {
  max-width: 34ch;
  margin: 10px 0 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey);
}

.footer-cta { margin-top: 2px; }

.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
}

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

.footer-links a {
  display: inline-block;
  border-bottom: 1px solid transparent;
  color: var(--grey);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

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

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--grey);
}

.footer-legal {
  font-family: var(--mono);
  letter-spacing: 0.06em;
  color: rgba(185, 198, 196, 0.9);
}

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

.footer-contact .mono { color: var(--white); }

.footer-sep {
  margin: 0 6px;
  opacity: 0.45;
}

.footer-copy {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* 7. 布局容器
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: clamp(36px, 5.5vw, 76px);
}

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

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

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.index-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(53, 240, 208, 0.35);
  border-radius: 6px;
  background: rgba(53, 240, 208, 0.1);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.divider {
  height: 1px;
  margin: clamp(24px, 4vw, 40px) 0;
  border: 0;
  background: linear-gradient(90deg, var(--line), rgba(42, 74, 67, 0));
}

.grid {
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
}

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

/* 8. 按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn--primary {
  background: var(--orange);
  border-color: rgba(255, 179, 122, 0.5);
  color: var(--on-accent);
  box-shadow: 0 14px 32px -18px rgba(255, 138, 61, 0.85);
}

.btn--primary:hover {
  background: var(--orange-soft);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.18);
}

.btn--ghost {
  background: rgba(247, 255, 253, 0.06);
  border-color: var(--line);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(53, 240, 208, 0.08);
}

.btn--quiet {
  background: transparent;
  border-color: rgba(53, 240, 208, 0.4);
  color: var(--cyan);
}

.btn--quiet:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* 9. 筛选 chip
   ========================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(247, 255, 253, 0.05);
  color: var(--grey);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.chip:hover {
  border-color: rgba(53, 240, 208, 0.6);
  color: var(--white);
}

.chip[aria-pressed="true"],
.chip.is-active {
  border-color: var(--cyan);
  background: rgba(53, 240, 208, 0.16);
  color: var(--cyan);
}

/* 10. 卡片族
   ========================================================================== */
.card {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: linear-gradient(165deg, rgba(7, 46, 38, 0.92), rgba(4, 30, 25, 0.95));
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}

.card:hover {
  border-color: rgba(53, 240, 208, 0.55);
  box-shadow: 0 22px 44px -32px rgba(53, 240, 208, 0.55);
}

.card--glass {
  background: var(--glass);
  border-color: rgba(247, 255, 253, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.card--data {
  background: rgba(4, 30, 25, 0.62);
  border-color: rgba(53, 240, 208, 0.24);
}

.card[data-index]::before {
  content: attr(data-index);
  position: absolute;
  top: 10px;
  right: 13px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(185, 198, 196, 0.5);
}

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

.card-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--white);
}

.card-text {
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(185, 198, 196, 0.94);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

.card-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--orange);
}

/* 11. 数字与状态
   ========================================================================== */
.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--grey);
}

.stat-delta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--orange);
}

/* 12. 面包屑
   ========================================================================== */
.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--grey);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li:not(:first-child)::before {
  content: "/";
  color: rgba(42, 74, 67, 1);
}

.breadcrumb a {
  color: var(--grey);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

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

.breadcrumb [aria-current="page"] { color: var(--white); }

/* 13. 正文长文
   ========================================================================== */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(245, 255, 252, 0.86);
}

.prose h2,
.prose h3 {
  margin-top: 1.9em;
  margin-bottom: 0.6em;
  color: var(--white);
}

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

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

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

.prose strong { color: var(--white); font-weight: 700; }

/* 14. 图片容器基础规则
   ========================================================================== */
.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: linear-gradient(165deg, rgba(7, 46, 38, 0.96), rgba(4, 30, 25, 0.98));
}

.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.06);
  transition: transform 0.22s var(--ease);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 30, 25, 0.04), rgba(4, 30, 25, 0.58));
}

.media:hover > img { transform: scale(1.02); }

.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--band { aspect-ratio: 21 / 9; }

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

/* 15. 响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-link { padding: 8px 11px; font-size: 13.5px; }
  .header-cta { padding: 10px 14px; font-size: 12.5px; }
}

@media (max-width: 960px) {
  .site-header { padding: 10px 12px 0; }

  #main-content { scroll-margin-top: 96px; }

  .header-bar {
    gap: 10px;
    padding: 7px 8px 7px 12px;
  }

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

  .header-cta { display: none; }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(4, 30, 25, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 34px 60px -34px rgba(0, 0, 0, 0.95);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

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

  .nav-link[aria-current="page"] { border-radius: 14px; }

  .nav-foot {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

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

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

@media (max-width: 760px) {
  body {
    background-attachment: scroll, scroll, scroll, scroll;
    background-size: auto, auto, 48px 48px, 48px 48px;
  }

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

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

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

  .footer-meta { gap: 6px 16px; }

  .footer-copy { margin-left: 0; }

  .prose { font-size: 16px; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: 10px 12px; }
  .header-progress { margin-top: 5px; }
}

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

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

  .header-progress-bar { transition: none; }
  .media:hover > img { transform: none; }
}
