/* ==========================================================================
   homefield-tanqiuba.com.cn — /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

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

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

ul, ol { list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 600; }

:root {
  --c-night: #0A1310;
  --c-panel: #12211B;
  --c-turf-deep: #1E4634;
  --c-turf: #2F7A52;
  --c-turf-lit: #3D8F64;
  --c-ice: #E9F2EC;
  --c-mist: #9DB3A6;
  --c-gold: #C8A44D;
  --c-red: #D8402F;
  --c-yellow: #E5B52F;
  --c-grid: #25382F;

  --c-line: rgba(37, 56, 47, 0.92);
  --c-line-soft: rgba(37, 56, 47, 0.52);
  --c-line-faint: rgba(37, 56, 47, 0.3);
  --c-mist-faint: rgba(157, 179, 166, 0.62);

  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1360px;
  --gutter: 28px;
  --hdr-h: 76px;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  --t-fast: 0.18s;
  --t-mid: 0.32s;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

body {
  min-height: 100vh;
  background-color: var(--c-night);
  background-image:
    radial-gradient(920px 520px at 8% -8%, rgba(47, 122, 82, 0.2), transparent 68%),
    radial-gradient(760px 440px at 96% 0%, rgba(200, 164, 77, 0.07), transparent 70%),
    linear-gradient(to right, var(--c-line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--c-line-soft) 1px, transparent 1px);
  background-size: auto, auto, 104px 104px, 104px 104px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-position: center top, center top, center top, center top;
  color: var(--c-ice);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 入场：网格自上下扫过一次 */
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 30vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to bottom, rgba(47, 122, 82, 0) 0%, rgba(47, 122, 82, 0.12) 48%, rgba(47, 122, 82, 0) 100%);
  animation: grid-sweep 1s var(--ease) 0.1s both;
}

@keyframes grid-sweep {
  0%   { opacity: 0; transform: translateY(-30vh); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(105vh); }
}

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 5px;
}

::selection {
  background: rgba(47, 122, 82, 0.55);
  color: var(--c-ice);
}

/* ---------- 通用容器与栅格 ---------- */

.shell {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.rail {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-mist-faint);
  text-transform: uppercase;
}

.divider {
  height: 1px;
  border: 0;
  background: var(--c-line);
}

/* ---------- 跳转链接 ---------- */

.skip-link {
  position: absolute;
  left: 18px;
  top: -72px;
  z-index: 140;
  display: inline-block;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: var(--c-turf);
  color: var(--c-ice);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  transition: top var(--t-fast) var(--ease);
}

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

/* ==========================================================================
   头部
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--t-mid) var(--ease),
    border-color var(--t-mid) var(--ease),
    box-shadow var(--t-mid) var(--ease);
}

.site-header.is-solid {
  background-color: rgba(18, 33, 27, 0.97);
  border-bottom-color: var(--c-line);
  box-shadow: 0 22px 44px -30px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  width: 100%;
  max-width: var(--wrap);
  min-height: var(--hdr-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.header-lead {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 13px;
  border: 1px solid rgba(200, 164, 77, 0.45);
  background: linear-gradient(150deg, var(--c-turf-deep), var(--c-turf));
  color: var(--c-ice);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.brand-words {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--c-ice);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--c-mist-faint);
  text-transform: uppercase;
  white-space: nowrap;
}

/* 轮次读表 */
.round-readout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background-color: rgba(18, 33, 27, 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.round-readout-key { color: var(--c-mist-faint); }

.round-readout-val {
  color: var(--c-ice);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.round-readout-val.is-live {
  color: var(--c-gold);
  text-shadow: 0 0 14px rgba(200, 164, 77, 0.5);
}

.round-readout-div { color: rgba(157, 179, 166, 0.42); }

/* 主导航 */
.site-nav {
  justify-self: center;
}

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

.nav-item { position: relative; }

.nav-link {
  position: relative;
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  letter-spacing: 0.06em;
  color: var(--c-mist);
  transition:
    color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

.nav-link:hover {
  color: var(--c-ice);
  background-color: rgba(47, 122, 82, 0.16);
}

.nav-link[aria-current="page"] {
  color: var(--c-ice);
  background-color: rgba(47, 122, 82, 0.22);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-gold);
  transform: translateX(-50%);
}

/* 工具区 */
.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
}

.round-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background-color: rgba(10, 19, 16, 0.72);
}

.round-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 9px;
  color: var(--c-mist);
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.round-btn:hover {
  background-color: var(--c-turf);
  color: var(--c-ice);
}

.round-switch-val {
  min-width: 46px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-ice);
  font-variant-numeric: tabular-nums;
}

.tool-search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: var(--r-pill);
  background-color: var(--c-turf);
  color: var(--c-ice);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background-color var(--t-fast) var(--ease);
}

.tool-search:hover { background-color: var(--c-turf-lit); }

.tool-search-icon { font-size: 14px; line-height: 1; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  color: var(--c-ice);
  transition:
    border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

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

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: 0 0 auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform var(--t-fast) var(--ease),
    top var(--t-fast) var(--ease);
}

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

.site-header[data-open="true"] .nav-toggle-bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

.nav-toggle-text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

/* 下沿轮次刻度条 */
.round-ruler {
  position: relative;
  height: 2px;
  max-width: var(--wrap);
  margin: 0 auto;
  background-color: rgba(37, 56, 47, 0.72);
  background-image: repeating-linear-gradient(
    to right,
    rgba(157, 179, 166, 0.32) 0 1px,
    transparent 1px 14px
  );
  opacity: 0.85;
}

.round-ruler-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(to right, var(--c-turf), var(--c-gold));
  box-shadow: 0 0 12px rgba(200, 164, 77, 0.45);
  transition: width 0.12s linear;
}

/* ==========================================================================
   页脚
   ========================================================================== */

.site-footer {
  position: relative;
  margin-top: 104px;
  border-top: 1px solid var(--c-line);
  background-color: var(--c-panel);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(47, 122, 82, 0.85) 22%,
    rgba(200, 164, 77, 0.75) 50%,
    rgba(47, 122, 82, 0.85) 78%,
    transparent
  );
  opacity: 0.6;
}

.footer-shell {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 52px var(--gutter) 0;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 36px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--c-line);
}

.footer-note {
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-mist);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 30px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--c-line);
}

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

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--c-mist-faint);
  text-transform: uppercase;
}

.footer-col-title::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 2px;
  background-color: var(--c-turf);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  font-size: 14.5px;
  color: var(--c-mist);
  transition: color var(--t-fast) var(--ease);
}

.footer-list a:hover { color: var(--c-ice); }

.footer-contact {
  display: grid;
  gap: 13px;
}

.footer-contact-row {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.footer-contact dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(157, 179, 166, 0.68);
}

.footer-contact dd {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-ice);
  overflow-wrap: anywhere;
}

.footer-bottom {
  padding: 22px 0 32px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(157, 179, 166, 0.75);
}

.footer-sep {
  color: rgba(37, 56, 47, 1);
  color: rgba(157, 179, 166, 0.35);
}

/* ==========================================================================
   通用组件
   ========================================================================== */

/* 面包屑 */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 26px 0 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--c-mist-faint);
}

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

.crumbs li + li::before {
  content: "/";
  color: rgba(157, 179, 166, 0.35);
}

.crumbs a { color: var(--c-mist); }
.crumbs a:hover { color: var(--c-ice); }
.crumbs [aria-current="page"] { color: var(--c-gold); }

/* 正文容器 */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(233, 242, 236, 0.9);
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  margin-top: 1.8em;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-ice);
}

.prose h3 {
  margin-top: 1.5em;
  font-size: 18px;
  font-weight: 600;
  color: var(--c-ice);
}

.prose a {
  color: var(--c-gold);
  border-bottom: 1px solid rgba(200, 164, 77, 0.42);
}

.prose ul, .prose ol { display: grid; gap: 0.5em; }

.prose li {
  position: relative;
  padding-left: 1.25em;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 9px;
  height: 1px;
  background-color: var(--c-turf);
}

.prose strong { color: var(--c-ice); font-weight: 600; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition:
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.btn--primary {
  background-color: var(--c-turf);
  color: var(--c-ice);
}

.btn--primary:hover { background-color: var(--c-turf-lit); }

.btn--ghost {
  border-color: rgba(200, 164, 77, 0.5);
  color: var(--c-gold);
}

.btn--ghost:hover { background-color: rgba(200, 164, 77, 0.12); }

.btn--quiet {
  border-color: var(--c-line);
  color: var(--c-mist);
}

.btn--quiet:hover {
  border-color: var(--c-turf);
  color: var(--c-ice);
}

.btn--arrow::after {
  content: "\2192";
  font-family: var(--font-mono);
  transition: transform var(--t-fast) var(--ease);
}

.btn--arrow:hover::after { transform: translateX(4px); }

/* 胶囊筛选 */
.chip-set {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background-color: rgba(10, 19, 16, 0.55);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-mist);
  transition:
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.chip:hover {
  border-color: var(--c-turf);
  color: var(--c-ice);
}

.chip[aria-pressed="true"],
.chip.is-active {
  background-color: var(--c-turf);
  border-color: var(--c-turf);
  color: var(--c-ice);
}

/* 展签标签 */
.plate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mist);
}

.plate::before {
  content: "";
  width: 16px;
  height: 1px;
  flex: 0 0 auto;
  background-color: var(--c-gold);
  opacity: 0.85;
}

.plate-id { color: var(--c-gold); }
.plate-sep { color: rgba(157, 179, 166, 0.42); }
.plate-name { color: var(--c-mist); }

/* 模块四件套 */
.mod {
  position: relative;
  padding-top: 34px;
}

.mod-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-line);
}

.mod-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--c-ice);
}

.mod-sub {
  max-width: 56ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--c-mist);
}

.mod-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--c-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--c-mist-faint);
}

/* 卡片 */
.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background-image: linear-gradient(160deg, rgba(18, 33, 27, 0.96), rgba(10, 19, 16, 0.9));
  transition:
    border-color var(--t-mid) var(--ease),
    transform var(--t-mid) var(--ease);
}

.card:hover {
  border-color: rgba(47, 122, 82, 0.75);
  transform: translateY(-2px);
}

.card--gold { border-color: rgba(200, 164, 77, 0.42); }

/* 记分牌数字 */
.num {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--c-ice);
}

.num--xl {
  font-size: clamp(48px, 7vw, 88px);
  text-shadow: 0 0 26px rgba(233, 242, 236, 0.28);
}

.num--lg {
  font-size: clamp(30px, 4vw, 46px);
  text-shadow: 0 0 18px rgba(233, 242, 236, 0.22);
}

.num--live { color: var(--c-ice); }

/* 图片容器 */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background-color: var(--c-panel);
}

.figure-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-image: linear-gradient(150deg, var(--c-turf-deep), var(--c-night));
}

.figure-media > img,
.figure-media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.figure-cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--c-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-mist-faint);
}

/* 显现动画（仅在 JS 就绪后启用，未启用时内容默认可见） */
.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-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1200px) {
  .nav-link { padding: 9px 11px; font-size: 14px; }
  .round-readout { display: none; }
}

@media (max-width: 980px) {
  :root { --hdr-h: 68px; --gutter: 20px; }

  html { scroll-padding-top: 84px; }

  .header-shell {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    justify-self: stretch;
    max-height: calc(100vh - var(--hdr-h) - 4px);
    overflow-y: auto;
    padding: 14px var(--gutter) 24px;
    background-color: rgba(18, 33, 27, 0.99);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 34px 52px -32px rgba(0, 0, 0, 0.95);
  }

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

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

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

  .nav-link[aria-current="page"]::after {
    left: 14px;
    bottom: 9px;
    transform: none;
  }

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

  .tool-search { display: none; }
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
}

@media (max-width: 640px) {
  :root { --r-lg: 22px; }

  body { font-size: 15.5px; }
  body::after { display: none; }

  .brand-mark { width: 34px; height: 34px; border-radius: 11px; font-size: 18px; }
  .brand-name { font-size: 16px; letter-spacing: 0.12em; }
  .brand-tag { display: none; }

  .round-switch-val { min-width: 40px; }

  .grid-12 { gap: 18px; }

  .prose { font-size: 16px; }

  .site-footer { margin-top: 72px; }
  .footer-shell { padding-top: 40px; }
  .footer-brand { margin-bottom: 28px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { padding-bottom: 26px; }
}

/* ==========================================================================
   动效降级
   ========================================================================== */

@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;
  }

  body::after { display: none; }

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

  .round-ruler-fill { transition: none !important; }
}
