/* =========================================================
   365在线指南 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================= */

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

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

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

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

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

::selection {
  background: #F2C230;
  color: #14110F;
}

/* ---------- 2. 变量 ---------- */
:root {
  --clay: #C4562B;
  --clay-deep: #8E3A1C;
  --lake: #1F6E6B;
  --lake-soft: #7FB3AE;
  --lemon: #F2C230;
  --ink-green: #10231F;
  --paper: #FBF7F0;
  --sand: #EFE6D8;
  --ink: #14110F;
  --line: #C9BFB1;

  --muted: #5B544B;
  --muted-soft: #8D8375;

  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --gutter: clamp(18px, 4vw, 56px);
  --maxw: 1200px;
  --section-gap: clamp(56px, 9vw, 120px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-card: 0 20px 40px -28px rgba(20, 17, 15, .5);
}

/* ---------- 3. 基础中文排版 ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.005em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

strong, b { font-weight: 800; }

a { transition: color .2s var(--ease); }

[id] { scroll-margin-top: 140px; }

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

.visually-hidden {
  position: absolute;
  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;
}

/* ---------- 4. 布局基础 ---------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
}

.prose {
  max-width: 38em;
  font-size: 17px;
  line-height: 1.95;
  color: var(--muted);
}

.prose p + p { margin-top: 1.05em; }
.prose strong { color: var(--ink); }

.prose a {
  color: var(--clay-deep);
  border-bottom: 2px solid rgba(196, 86, 43, .32);
}
.prose a:hover { border-bottom-color: var(--clay); }

.grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 32px);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.grid--stagger > *:nth-child(even) { transform: translateY(clamp(10px, 2vw, 24px)); }

/* ---------- 5. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  padding: 12px 24px;
  background: var(--ink-green);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 0 0 16px 16px;
  transition: top .22s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 6. 刊头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}

.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background:
    linear-gradient(90deg,
      var(--clay) 0 40%,
      var(--lemon) 40% 47%,
      var(--lake) 47% 100%);
}

.site-header[data-stuck] {
  box-shadow: 0 18px 34px -30px rgba(20, 17, 15, .8);
  background: rgba(251, 247, 240, .97);
}

.header__bar {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
  display: grid;
  gap: 14px;
  align-items: center;
  padding: 16px 0 14px;
  grid-template-columns: 1fr;
  grid-template-areas:
    "batch"
    "brand"
    "tools";
}

.header__batch {
  grid-area: batch;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay-deep);
  line-height: 1;
}

.header__batch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lemon);
  box-shadow: 0 0 0 3px rgba(242, 194, 48, .28);
  flex: none;
}

.brand {
  grid-area: brand;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
  padding: 2px 4px;
}

.brand__word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
  line-height: 1;
  letter-spacing: .03em;
  color: var(--ink);
  transition: color .2s var(--ease);
}

.brand:hover .brand__word { color: var(--clay); }

.brand__sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .38em;
  line-height: 1;
  color: var(--lake);
  text-transform: uppercase;
}

.header__tools {
  grid-area: tools;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

/* 搜索胶囊 */
.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  background: var(--sand);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

.searchbox:focus-within {
  background: #fff;
  border-color: var(--lake);
  box-shadow: 0 0 0 4px rgba(242, 194, 48, .38);
}

.searchbox__icon {
  position: relative;
  flex: none;
  width: 13px;
  height: 13px;
  border: 2px solid var(--lake);
  border-radius: 50%;
}

.searchbox__icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 2px;
  height: 7px;
  border-radius: 2px;
  background: var(--lake);
  transform: rotate(-45deg);
}

.searchbox__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: none;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1;
  color: var(--ink);
  appearance: none;
}

.searchbox__input::-webkit-search-decoration,
.searchbox__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.searchbox__input::placeholder { color: var(--muted-soft); }
.searchbox__input:focus { outline: none; }

/* 索引按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--ink-green);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  position: relative;
  overflow: hidden;
  transition: background .2s var(--ease), transform .2s var(--ease);
}

.nav-toggle:hover { background: var(--lake); }
.nav-toggle:active { transform: scale(.97); }

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

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

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }

.nav-toggle__label { line-height: 1; }

/* 栏目行 */
.header__navrow {
  position: relative;
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
  padding-bottom: 0;
}

.primary-nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 120;
  padding: 10px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 60px -34px rgba(20, 17, 15, .65);
}

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

.primary-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.primary-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease);
}

.primary-nav__link::after {
  content: "↗";
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--line);
}

.primary-nav__link:hover { background: var(--sand); }

.primary-nav__link[aria-current="page"] {
  background: var(--sand);
  color: var(--clay-deep);
}

.primary-nav__link[aria-current="page"]::after { color: var(--clay); }

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--clay), var(--lemon));
  transition: width .12s linear;
}

/* ---------- 7. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--clay);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.btn:hover {
  background: var(--clay-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 26px -16px rgba(142, 58, 28, .8);
}

.btn:active { transform: translateY(0); }

.btn--lake { background: var(--lake); }
.btn--lake:hover { background: #175452; box-shadow: 0 16px 26px -16px rgba(31, 110, 107, .8); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}

.btn--sand {
  background: var(--sand);
  color: var(--clay-deep);
  border-color: transparent;
}
.btn--sand:hover { background: #E3D6C1; box-shadow: none; }

.btn__arrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
}

[data-ripple] { position: relative; overflow: hidden; }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(242, 194, 48, .42);
  transform: scale(0);
  pointer-events: none;
  animation: ripple-out .58s var(--ease) forwards;
}

@keyframes ripple-out {
  to { transform: scale(2.6); opacity: 0; }
}

/* ---------- 8. 章节与标签 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clay-deep);
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--clay);
  flex: none;
}

.section-title {
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  line-height: 1.12;
}

.index-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--clay);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--sand);
  color: var(--clay-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.6;
}

.tag--lake {
  background: rgba(127, 179, 174, .24);
  border-color: rgba(31, 110, 107, .3);
  color: #14514F;
}

.tag--lemon {
  background: rgba(242, 194, 48, .3);
  border-color: rgba(242, 194, 48, .55);
  color: #7A5D00;
}

/* ---------- 9. 卡片 ---------- */
.card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  transition: transform .26s var(--ease), border-color .26s var(--ease), box-shadow .26s var(--ease);
}

.card--sand {
  background: var(--sand);
  border-color: transparent;
}

.card--accent::after {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 5px;
  border-radius: 0 5px 5px 0;
  background: var(--clay);
}

.index-card {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px);
  padding-left: clamp(26px, 3.6vw, 38px);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}

.index-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 5px;
  border-radius: 0 5px 5px 0;
  background: var(--clay);
  transition: background .25s var(--ease);
}

.index-card:hover {
  transform: translateY(-4px);
  border-color: var(--clay);
  box-shadow: var(--shadow-card);
}

.index-card:hover::before { background: var(--lemon); }

.index-card__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--clay);
  line-height: 1.4;
}

.index-card__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.28;
}

.index-card__desc {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumbs { padding: 22px 0 0; }

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted-soft);
}

.breadcrumbs__list li { display: inline-flex; align-items: center; }

.breadcrumbs__list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.breadcrumbs a:hover { color: var(--clay); }

/* ---------- 11. 可展开索引组 ---------- */
.index-group {
  overflow: hidden;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.index-group + .index-group { margin-top: 12px; }

.index-group[open] {
  background: #fff;
  border-color: var(--clay);
}

.index-group__trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
  transition: background .2s var(--ease);
}

.index-group__trigger::-webkit-details-marker { display: none; }
.index-group__trigger::marker { content: ""; }
.index-group__trigger:hover { background: var(--sand); }

.index-group__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--clay);
}

.index-group__icon {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--clay-deep);
  font-size: 13px;
  line-height: 1;
  transition: transform .28s var(--ease), background .2s var(--ease), color .2s var(--ease);
}

.index-group[open] .index-group__icon {
  transform: rotate(90deg);
  background: var(--lemon);
  color: #3A2B00;
}

.index-group__body {
  padding: 2px 22px 20px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 12. 图片容器基础规则 ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(112deg, rgba(31, 110, 107, .09) 0 10px, transparent 10px 26px),
    linear-gradient(160deg, var(--sand), #E7DCCA);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--tall { aspect-ratio: 3 / 4; }

.img-frame--contour {
  background:
    repeating-radial-gradient(circle at 20% 110%, rgba(196, 86, 43, .12) 0 2px, transparent 2px 14px),
    var(--sand);
}

/* ---------- 13. 显现动效 ---------- */
[data-reveal-armed] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

[data-reveal-armed][data-reveal-shown] {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: var(--section-gap);
  background: var(--ink-green);
  color: #DCD5C8;
  border-radius: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) 0 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 84% 0%, rgba(127, 179, 174, .17), transparent 62%),
    repeating-linear-gradient(90deg, rgba(251, 247, 240, .035) 0 1px, transparent 1px 64px);
}

.footer__inner {
  position: relative;
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
  padding: clamp(38px, 6vw, 72px) 0 28px;
}

.footer__grid {
  display: grid;
  gap: clamp(30px, 4vw, 46px);
  grid-template-columns: 1fr;
}

.footer__col { min-width: 0; }

.footer__brand {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: .03em;
  line-height: 1.1;
  color: var(--paper);
  transition: color .2s var(--ease);
}

.footer__brand:hover { color: var(--lemon); }

.footer__claim {
  margin-top: 12px;
  font-size: 13.5px;
  letter-spacing: .22em;
  color: var(--lake-soft);
  line-height: 1.6;
}

.footer__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lake-soft);
  line-height: 1.4;
}

.footer__list {
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.6;
}

.footer__list a {
  display: inline-block;
  position: relative;
  color: #DCD5C8;
  padding-bottom: 2px;
}

.footer__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--lemon);
  transition: width .26s var(--ease);
}

.footer__list a:hover { color: var(--paper); }
.footer__list a:hover::after { width: 100%; }

.footer__contact {
  display: grid;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.footer__contact-item {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.footer__contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lake-soft);
  line-height: 1.6;
}

.footer__contact-value {
  color: var(--paper);
  font-weight: 600;
  word-break: break-word;
}

.footer__note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.8;
  color: #A7A196;
}

.searchbox--footer {
  margin-top: 20px;
  width: 100%;
  background: rgba(251, 247, 240, .06);
  border-color: rgba(201, 191, 177, .32);
}

.searchbox--footer .searchbox__icon { border-color: var(--lake-soft); }
.searchbox--footer .searchbox__icon::after { background: var(--lake-soft); }
.searchbox--footer .searchbox__input { color: var(--paper); }
.searchbox--footer .searchbox__input::placeholder { color: #9C968B; }

.searchbox--footer:focus-within {
  background: rgba(251, 247, 240, .11);
  border-color: var(--lemon);
  box-shadow: 0 0 0 3px rgba(242, 194, 48, .26);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: 22px;
  border-top: 1px solid rgba(201, 191, 177, .22);
  font-size: 12.5px;
  color: #9C968B;
}

.footer__legal {
  font-family: var(--font-mono);
  letter-spacing: .06em;
  line-height: 1.7;
}

.footer__batch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 191, 177, .28);
  background: rgba(251, 247, 240, .07);
  font-size: 12px;
  letter-spacing: .06em;
  color: #DCD5C8;
  line-height: 1.4;
}

.footer__batch-num {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--lemon);
  color: #3A2B00;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}

/* ---------- 15. 平板 ---------- */
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 16. 桌面 ---------- */
@media (min-width: 900px) {
  .header__bar {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "batch brand tools";
    gap: 20px;
    padding: 20px 0 10px;
  }

  .header__batch { justify-self: start; }

  .header__tools {
    width: auto;
    justify-self: end;
    justify-content: flex-end;
    gap: 8px;
  }

  .searchbox {
    flex: 0 0 auto;
    width: clamp(210px, 22vw, 300px);
  }

  .header__navrow {
    overflow: hidden;
    max-height: 92px;
    padding-bottom: 8px;
    transition: max-height .34s var(--ease), opacity .3s var(--ease), padding-bottom .34s var(--ease);
  }

  .primary-nav {
    display: block;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .primary-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(4px, 1.4vw, 22px);
  }

  .primary-nav__link {
    display: block;
    position: relative;
    padding: 9px 6px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
  }

  .primary-nav__link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--lemon);
    transform: translateX(-50%);
    transition: width .26s var(--ease), background .26s var(--ease);
  }

  .primary-nav__link:hover {
    background: none;
    color: var(--clay-deep);
  }

  .primary-nav__link:hover::after { width: 74%; }

  .primary-nav__link[aria-current="page"] {
    background: none;
    color: var(--clay-deep);
  }

  .primary-nav__link[aria-current="page"]::after {
    width: 74%;
    background: var(--clay);
  }

  /* 滚动收缩态 */
  .nav-toggle { display: none; }

  .site-header[data-stuck] .header__bar { padding: 10px 0 8px; }

  .site-header[data-stuck] .brand__word { font-size: clamp(1.25rem, 2vw, 1.5rem); }
  .site-header[data-stuck] .brand__sub { opacity: 0; }

  .site-header[data-stuck]:not([data-nav-open]) .header__navrow {
    max-height: 0;
    padding-bottom: 0;
    opacity: 0;
  }

  .site-header[data-stuck][data-nav-open] .header__navrow {
    max-height: 70vh;
    padding-bottom: 8px;
    opacity: 1;
  }

  .site-header[data-stuck] .nav-toggle { display: inline-flex; }

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

@media (min-width: 1000px) {
  .footer__grid { grid-template-columns: 1.45fr 1fr 1fr 1.3fr; }
}

/* ---------- 17. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

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

  .btn:hover,
  .index-card:hover,
  .nav-toggle:active { transform: none; }
}
