/* =========================================================================
   鸭博体育 · 全站共享样式  /assets/site.css
   堆叠画板 · 悬浮胶囊导航 · 切角面板 · 坐标编号 · 黑白高对比 + 活力黄锚点
   ========================================================================= */

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

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

h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 品牌色阶 */
  --yellow: #FFD226;
  --green: #0C2B25;
  --green-2: #17433A;
  --ice: #7FD8EA;
  --ice-2: #D6F1F7;
  --paper: #F6F7F2;
  --warm: #DCDFD5;
  --orange: #FF6B35;
  --ink: #3A4A46;
  --black: #0A0E0D;

  /* 版面节奏 */
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --cut: 16px;
  --pill: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --shadow-1: 0 2px 0 rgba(12, 43, 37, .05), 0 14px 30px -18px rgba(12, 43, 37, .45);
  --shadow-2: 0 2px 0 rgba(12, 43, 37, .08), 0 22px 44px -20px rgba(12, 43, 37, .55);

  /* 字体 */
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- 3. 中文排版基线 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--green);
}
h1 { font-size: clamp(30px, 5.2vw, 60px); }
h2 { font-size: clamp(24px, 3.4vw, 38px); }
h3 { font-size: clamp(18px, 2.2vw, 24px); letter-spacing: -.01em; }
h4 { font-size: clamp(16px, 1.6vw, 18px); letter-spacing: 0; }

strong, b { font-weight: 700; }

::selection { background: var(--yellow); color: var(--black); }

/* 等宽数字体系 */
.mono,
.num,
.score,
.timestamp,
.chapter-no,
.suggest-meta,
.footer-icp,
.footer-contact-val,
.coord,
.chapter-index-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 3px solid var(--ice);
  outline-offset: 3px;
  border-radius: 3px;
}
.panel-dark :focus-visible,
.panel-ink :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--yellow);
}

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

.skip-link {
  position: absolute;
  top: -120px;
  left: var(--gutter);
  z-index: 300;
  padding: 12px 20px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }
.skip-link:focus-visible { outline-color: var(--black); }

/* ---------- 5. 布局容器与网格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell-narrow { max-width: 880px; }

.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-asym { grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr); }

@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-asym { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 6. 切角与形状系统 ---------- */
.cut {
  clip-path: polygon(0 0,
    calc(100% - var(--cut)) 0, 100% var(--cut),
    100% 100%,
    var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.cut-sm { --cut: 10px; }
.cut-lg { --cut: 28px; }

.speed-bar {
  height: 3px;
  background: repeating-linear-gradient(115deg,
    var(--yellow) 0 18px,
    transparent 18px 44px);
}

/* ---------- 7. 面板 / 画板 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 40px);
  background: var(--paper);
  border: 1px solid rgba(58, 74, 70, .14);
}
.panel-paper { background: var(--paper); }
.panel-ice {
  background: var(--ice-2);
  border-color: rgba(12, 43, 37, .12);
}
.panel-dark {
  background: var(--green);
  border-color: transparent;
  color: var(--paper);
}
.panel-ink {
  background: var(--black);
  border-color: transparent;
  color: var(--paper);
}
.panel-dark h1, .panel-dark h2, .panel-dark h3, .panel-dark h4,
.panel-ink h1, .panel-ink h2, .panel-ink h3, .panel-ink h4 {
  color: var(--paper);
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
    border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-brand {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}
.btn-brand:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--yellow);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(246, 247, 242, .4);
  color: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn-line {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}
.btn-line:hover {
  background: var(--green);
  color: var(--paper);
}

/* ---------- 9. 标签 / 胶囊筛选 ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(58, 74, 70, .22);
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease),
    background .2s var(--ease);
}
.chip:hover { border-color: var(--yellow); color: var(--green); }
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
  font-weight: 700;
}

/* ---------- 10. 章节头与坐标编号 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(12px, 2vw, 22px);
  margin-bottom: clamp(20px, 3vw, 34px);
}
.coord {
  padding: 4px 11px;
  background: var(--yellow);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 88% 100%, 0 100%);
}
.section-title { font-size: clamp(24px, 3.4vw, 38px); margin: 0; }
.section-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  opacity: .68;
}

/* ---------- 11. 图例色块 ---------- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  letter-spacing: .08em;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--ice);
  clip-path: polygon(0 0, 100% 0, 100% 66%, 66% 100%, 0 100%);
}
.legend-dot--yellow { background: var(--yellow); }
.legend-dot--orange { background: var(--orange); }
.legend-dot--paper { background: var(--paper); }

/* ---------- 12. 卡片 ---------- */
.card {
  position: relative;
  display: block;
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--paper);
  border: 1px solid rgba(58, 74, 70, .14);
  border-left: 4px solid var(--warm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
    border-left-color .22s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-left-color: var(--yellow);
}
.card-dark {
  background: var(--green-2);
  border-color: rgba(246, 247, 242, .12);
  color: var(--paper);
}
.card-dark h3, .card-dark h4 { color: var(--paper); }

/* ---------- 13. 横向滚动轨道 ---------- */
.track {
  display: flex;
  gap: clamp(12px, 2vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 6px 4px 22px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.track::-webkit-scrollbar { height: 6px; }
.track::-webkit-scrollbar-track { background: rgba(58, 74, 70, .1); }
.track::-webkit-scrollbar-thumb { background: var(--yellow); }
.track-item {
  flex: 0 0 clamp(236px, 30vw, 340px);
  scroll-snap-align: start;
}

/* ---------- 14. 图片容器（页面阶段放图） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--green-2);
  isolation: isolate;
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(158deg, rgba(255, 210, 38, .16), transparent 44%);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--3x4 { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame-cut {
  clip-path: polygon(0 0,
    calc(100% - 22px) 0, 100% 22px,
    100% 100%,
    0 100%);
}
.media-caption {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  opacity: .75;
}

/* ---------- 15. 数字 / 比分 / 时间戳 ---------- */
.timestamp {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--orange);
}
.score {
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 600;
  color: var(--green);
  letter-spacing: -.02em;
}
.panel-dark .score,
.panel-ink .score { color: var(--yellow); }

/* ---------- 16. 面包屑 ---------- */
.breadcrumb { margin: clamp(18px, 3vw, 32px) 0; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .06em;
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--yellow);
}
.breadcrumb-link { opacity: .75; }
.breadcrumb-link:hover {
  opacity: 1;
  color: var(--green);
  border-bottom: 2px solid var(--yellow);
}
.breadcrumb-current { font-weight: 700; color: var(--green); }

/* ---------- 17. 长文容器 ---------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.3em; }
.prose ul li {
  position: relative;
  margin-bottom: .5em;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: .72em;
  width: 9px;
  height: 3px;
  background: var(--yellow);
}
.prose ol {
  list-style: decimal;
  padding-left: 1.4em;
}
.prose ol li { margin-bottom: .5em; }
.prose a {
  font-weight: 500;
  border-bottom: 2px solid var(--yellow);
}
.prose a:hover {
  background: var(--yellow);
  color: var(--black);
}

/* ---------- 18. 章节坐标索引 + 显现 ---------- */
.chapter-index {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chapter-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink);
  transition: color .2s var(--ease), border-color .2s var(--ease),
    background .2s var(--ease);
}
.chapter-link:hover {
  color: var(--green);
  border-left-color: var(--yellow);
}
.chapter-link.is-active {
  color: var(--green);
  font-weight: 700;
  border-left-color: var(--yellow);
  background: rgba(255, 210, 38, .16);
}
.chapter-index-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--green);
  opacity: .6;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal.is-lit {
  opacity: 1;
  transform: none;
}

/* =========================================================================
   19. 头部 · 悬浮胶囊导航
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: clamp(10px, 1.6vw, 18px) var(--gutter) 0;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.header-shell {
  position: relative;
  max-width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  padding: 9px clamp(12px, 1.8vw, 18px);
  border: 2px solid transparent;
  border-radius: var(--pill);
  background: rgba(12, 43, 37, .95);
  box-shadow: 0 16px 34px -22px rgba(10, 14, 13, .88);
  transition: padding .26s var(--ease), border-color .26s var(--ease),
    background .26s var(--ease);
}
.site-header[data-shrunk] .header-shell {
  padding: 5px clamp(10px, 1.6vw, 16px);
  border-color: var(--yellow);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 3px 4px;
  border-radius: 12px;
}
.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: var(--yellow);
  clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 30% 100%, 0 70%);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 9px;
  background: var(--green);
  clip-path: polygon(0 0, 100% 0, 100% 36%, 36% 36%, 36% 100%, 0 100%);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}
.brand-name {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--paper);
  transition: color .2s var(--ease);
}
.brand-tagline {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ice);
}
.brand:hover .brand-name { color: var(--yellow); }

/* 导航胶囊 */
.nav-pill {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 clamp(10px, 1.1vw, 15px);
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  color: rgba(246, 247, 242, .86);
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .26s var(--ease);
}
.nav-link:hover { color: var(--ice); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] {
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
}
.nav-link[aria-current="page"]::after { display: none; }

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

/* 站内检索 */
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border: 2px solid var(--ice);
  border-radius: 50%;
  pointer-events: none;
  transition: border-color .2s var(--ease);
}
.search::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 50%;
  width: 7px;
  height: 2px;
  margin-top: 2px;
  background: var(--ice);
  transform: rotate(45deg);
  pointer-events: none;
  transition: background .2s var(--ease);
}
.search:focus-within::before { border-color: var(--yellow); }
.search:focus-within::after { background: var(--yellow); }

.search-input {
  width: clamp(150px, 17vw, 220px);
  height: 38px;
  padding: 0 14px 0 34px;
  border: 1px solid rgba(214, 241, 247, .3);
  border-radius: var(--pill);
  background: rgba(10, 14, 13, .55);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .02em;
  transition: width .26s var(--ease), border-color .2s var(--ease),
    background .2s var(--ease);
}
.search-input::placeholder { color: rgba(214, 241, 247, .55); }
.search-input:hover { border-color: rgba(127, 216, 234, .6); }
.search-input:focus {
  outline: none;
  width: clamp(190px, 22vw, 280px);
  border-color: var(--yellow);
  background: rgba(10, 14, 13, .82);
}
.search-input:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: var(--pill);
}
.search-input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }

.search-suggest {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 120;
  width: min(320px, 78vw);
  padding: 8px;
  border: 1px solid var(--green-2);
  border-radius: 16px;
  background: var(--green);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .72);
}
.suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--paper);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.suggest-item:hover,
.suggest-item:focus-visible {
  background: var(--green-2);
  color: var(--yellow);
}
.suggest-meta {
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ice);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(127, 216, 234, .45);
  border-radius: var(--pill);
  background: transparent;
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease),
    background .2s var(--ease);
}
.nav-toggle:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.nav-toggle[aria-expanded="true"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: width .22s var(--ease);
}
.nav-toggle-bar:nth-child(2) { width: 72%; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { width: 100%; }
.nav-toggle-text { white-space: nowrap; }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 3px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(127, 216, 234, .16);
}
.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- 头部响应式 ---------- */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .header-tools { margin-left: auto; }
  .nav-pill {
    order: 5;
    flex: 1 0 100%;
    justify-content: flex-start;
    display: none;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(214, 241, 247, .18);
  }
  .nav-pill[data-open] { display: flex; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
  }
  .nav-link {
    width: 100%;
    height: auto;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 15px;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    background: rgba(255, 210, 38, .14);
    color: var(--yellow);
    box-shadow: inset 3px 0 0 var(--yellow);
  }
}

@media (max-width: 900px) {
  .header-tools { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
  .search { flex: 0 1 auto; min-width: 0; }
  .search-input { width: clamp(120px, 30vw, 190px); }
  .search-input:focus { width: clamp(150px, 40vw, 240px); }
}

@media (max-width: 600px) {
  .header-shell { gap: 8px; padding: 8px 10px; }
  .brand-tagline { display: none; }
  .brand-name { font-size: 15px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-mark::before { inset: 7px; }
  .search-input {
    width: clamp(84px, 26vw, 130px);
    padding-left: 28px;
    font-size: 12px;
  }
  .search-input:focus { width: clamp(110px, 40vw, 180px); }
  .search::before { left: 11px; }
  .search::after { left: 19px; }
  .nav-toggle {
    width: 40px;
    justify-content: center;
    padding: 0;
  }
  .nav-toggle-text { display: none; }
}

/* =========================================================================
   20. 页脚
   ========================================================================= */
.site-footer {
  margin-top: clamp(56px, 9vw, 140px);
  padding: clamp(36px, 5vw, 72px) var(--gutter) 22px;
  background: var(--green);
  color: var(--paper);
}

.footer-board {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.5fr);
  gap: clamp(26px, 4vw, 60px);
  padding: clamp(24px, 3.4vw, 46px);
  background: var(--green-2);
}

.footer-lead { min-width: 0; }
.footer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--ice);
}
.footer-title {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--paper);
}
.footer-note {
  max-width: 34ch;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(246, 247, 242, .72);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.footer-col { min-width: 0; }
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--paper);
}
.footer-col-title::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 100% 66%, 66% 100%, 0 100%);
}
.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-link {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  color: rgba(246, 247, 242, .78);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-link:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.footer-contact {
  max-width: var(--shell);
  margin: clamp(22px, 3vw, 36px) auto 0;
  padding: 26px 0 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px clamp(20px, 3vw, 44px);
  border-top: 1px solid rgba(214, 241, 247, .16);
  border-bottom: 1px solid rgba(214, 241, 247, .16);
}
.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  font-size: 14px;
}
.footer-contact-key {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--ice);
}
.footer-contact-val {
  font-size: 13px;
  color: var(--paper);
  word-break: break-word;
}
.footer-contact-val--wide {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0;
}

.footer-base {
  max-width: var(--shell);
  margin-inline: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12.5px;
  color: rgba(246, 247, 242, .6);
}
.footer-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-copy [data-year] { color: var(--yellow); }
.footer-icp {
  font-size: 12.5px;
  letter-spacing: .04em;
}

@media (max-width: 1024px) {
  .footer-board { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .footer-cols { gap: 22px 16px; }
  .footer-note { max-width: none; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- 21. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .btn:hover,
  .card:hover { transform: none; }
  .track { scroll-snap-type: none; }
}
