/* =========================================================
   Home体育 / assets/site.css
   共享层：reset、变量、中文排版、页头、页脚、基础组件
   ========================================================= */

/* ---------- 01 reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}
body { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 02 设计变量 ---------- */
:root {
  --green-deep: #0B3B2E;
  --green-mid: #14563F;
  --green-turf: #1E7A57;
  --green-bright: #2FA277;
  --red-card: #E4542B;
  --red-text: #C43F1B;
  --orange-warm: #F2854A;
  --yellow: #FFD24A;
  --yellow-ink: #7A5600;
  --mist: #F1F6F3;
  --white: #FFFFFF;
  --ink: #0A2118;
  --ink-soft: #6E8A80;
  --rule: #22503F;

  --radius-panel: 24px;
  --radius-soft: 28px;
  --radius-pill: 999px;

  --shell-max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-min: 64px;

  --shadow-panel: 0 22px 44px -28px rgba(10, 33, 24, 0.5);
  --shadow-lift: 0 30px 60px -30px rgba(10, 33, 24, 0.55);

  --font-head: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Roboto Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 03 基础排版 ---------- */
body {
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(30px, 5vw, 52px); }
h2 { font-size: clamp(23px, 3.4vw, 36px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
p { margin: 0 0 0.9em; }
p:last-child { margin-bottom: 0; }
a { color: var(--red-text); text-underline-offset: 3px; }
a:hover { color: var(--red-card); }
strong, b { font-weight: 800; }
::selection { background: var(--yellow); color: var(--green-deep); }

/* ---------- 04 可达性 ---------- */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 8px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 140;
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--green-deep);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

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

/* ---------- 05 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section {
  position: relative;
  padding: clamp(28px, 5vw, 64px) 0;
}
.section--tight { padding: clamp(14px, 3vw, 32px) 0; }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin: 0 0 clamp(18px, 2.6vw, 30px);
  padding-left: 16px;
  border-left: 5px solid var(--red-card);
  border-radius: 3px;
  transition: border-color 0.24s ease;
}
.section__title { margin: 0; }
.section__desc {
  margin: 0;
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.section[data-active="true"] .section__head { border-left-color: var(--yellow); }
.section[data-active="true"] .section__title { color: var(--green-mid); }

.stack { display: flex; flex-direction: column; gap: clamp(18px, 2.6vw, 32px); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--asym { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--asym-rev { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.prose { max-width: 72ch; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.8; }
.prose h2 { margin: 1.6em 0 0.6em; }
.prose h3 { margin: 1.4em 0 0.5em; }
.prose ul, .prose ol { margin: 0 0 1em 1.2em; list-style: disc; }
.prose li { margin-bottom: 0.4em; }

/* ---------- 06 面板（堆叠画板） ---------- */
.panel {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(34, 80, 63, 0.22);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  padding: clamp(20px, 3vw, 34px);
}
.panel--mist { background: var(--mist); }
.panel--frame { border-radius: var(--radius-soft); }
.panel--dark {
  background: linear-gradient(150deg, var(--green-mid) 0%, var(--green-deep) 72%);
  border-color: rgba(47, 162, 119, 0.42);
  color: var(--mist);
  box-shadow: var(--shadow-lift);
}
.panel--dark h2, .panel--dark h3, .panel--dark h4 { color: var(--white); }
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px dashed rgba(34, 80, 63, 0.35);
}
.panel--dark .panel__head { border-bottom-color: rgba(241, 246, 243, 0.24); }
.panel__title { margin: 0; font-size: clamp(19px, 2.4vw, 26px); }
.panel__note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.panel--dark .panel__note { color: rgba(241, 246, 243, 0.68); }
.panel__body { font-size: 15.5px; }
.panel--dark .panel__body { color: rgba(241, 246, 243, 0.9); }

/* ---------- 07 标签与数字 ---------- */
.label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green-deep);
}
.num--key { color: var(--red-text); }
.num--warn { color: var(--red-text); }
.num--light { color: var(--yellow); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(34, 80, 63, 0.25);
  background: rgba(47, 162, 119, 0.14);
  color: var(--green-mid);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.chip--warn {
  background: rgba(228, 84, 43, 0.14);
  border-color: rgba(228, 84, 43, 0.32);
  color: var(--red-text);
}
.chip--key {
  background: rgba(255, 210, 74, 0.24);
  border-color: rgba(255, 210, 74, 0.65);
  color: var(--yellow-ink);
}

/* ---------- 08 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--green-mid);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--cta { background: var(--red-card); color: var(--white); }
.btn--cta:hover { background: #C9431D; color: var(--white); }
.btn--ghost {
  background: transparent;
  border-color: rgba(34, 80, 63, 0.45);
  color: var(--green-deep);
}
.btn--ghost:hover { background: rgba(47, 162, 119, 0.12); color: var(--green-deep); }
.btn--yellow { background: var(--yellow); color: var(--green-deep); }
.btn--yellow:hover { background: #FFDD70; color: var(--green-deep); }

/* ---------- 09 面包屑 ---------- */
.breadcrumb { padding: 18px 0 2px; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.breadcrumb__item { display: flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(34, 80, 63, 0.4);
}
.breadcrumb__link { color: var(--green-mid); text-decoration: none; }
.breadcrumb__link:hover { color: var(--red-text); text-decoration: underline; }
.breadcrumb__current { color: var(--ink-soft); }

/* ---------- 10 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: linear-gradient(150deg, var(--green-turf) 0%, var(--green-bright) 100%);
  isolation: isolate;
}
.media__img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.media--wide .media__img { aspect-ratio: 21 / 9; }
.media--tall .media__img { aspect-ratio: 4 / 5; }
.media__frame {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(11, 59, 46, 0) 34%, rgba(11, 59, 46, 0.82) 100%);
}
.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 20px;
  color: var(--white);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

/* ---------- 11 计数条与胶囊切换 ---------- */
.meter {
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(34, 80, 63, 0.14);
  overflow: hidden;
}
.meter__fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--green-bright), var(--yellow));
}
.meter__fill--warn { background: linear-gradient(90deg, var(--orange-warm), var(--red-card)); }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.tabs__btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(34, 80, 63, 0.3);
  background: var(--white);
  color: var(--green-mid);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.tabs__btn:hover { border-color: var(--green-bright); }
.tabs__btn[aria-selected="true"] {
  background: var(--red-card);
  border-color: var(--red-card);
  color: var(--white);
}
.tabs__panel[hidden] { display: none; }

/* ---------- 12 进入视口动效 ---------- */
[data-reveal] { transition: opacity 0.32s ease, transform 0.32s ease; }
html.js [data-reveal] { opacity: 0; transform: translateY(16px); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   13 页头：左品牌 / 右栏目 + 进度
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--green-deep);
  color: var(--white);
  border-bottom: 1px solid rgba(47, 162, 119, 0.35);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  min-height: var(--header-min);
  padding: 10px clamp(16px, 3vw, 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--orange-warm) 100%);
  color: var(--green-deep);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  transition: width 0.24s ease, height 0.24s ease, font-size 0.24s ease;
}
.brand__text { display: flex; flex-direction: column; gap: 1px; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}
.brand__tagline {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: rgba(241, 246, 243, 0.72);
  overflow: hidden;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.site-header[data-compact="true"] .brand__mark {
  width: 32px;
  height: 32px;
  font-size: 17px;
  border-radius: 10px;
}
.site-header[data-compact="true"] .brand__tagline {
  opacity: 0;
  transform: translateY(-4px);
}
.brand--footer .brand__name { color: var(--white); }
.brand--footer .brand__mark { background: linear-gradient(135deg, var(--yellow) 0%, var(--red-card) 100%); }

.site-header__chapter {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}
.site-header__chapter-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(241, 246, 243, 0.52);
  white-space: nowrap;
}
.site-header__chapter-value {
  max-width: 260px;
  padding: 3px 12px;
  border: 1px solid rgba(255, 210, 74, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(255, 210, 74, 0.1);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  position: relative;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__item { display: block; }
.nav__item--legal { display: none; }
.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: rgba(241, 246, 243, 0.82);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.nav__link:hover {
  background: rgba(47, 162, 119, 0.2);
  color: var(--white);
}
.nav__link[aria-current="page"] {
  background: var(--red-card);
  border-color: var(--red-card);
  color: var(--white);
}
.nav__link--minor {
  color: rgba(241, 246, 243, 0.68);
  font-size: 13.5px;
}
.nav__cta { padding: 10px 20px; }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid rgba(241, 246, 243, 0.32);
  border-radius: var(--radius-pill);
  background: rgba(47, 162, 119, 0.18);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.nav__toggle-label { line-height: 1; }
.nav__toggle-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}
.nav__toggle-icon::before,
.nav__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow);
  transition: transform 0.22s ease;
}
.nav__toggle-icon::before { top: 0; }
.nav__toggle-icon::after { bottom: 0; }
.nav[data-open="true"] .nav__toggle-icon::before { transform: translateY(4px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle-icon::after { transform: translateY(-4px) rotate(-45deg); }

.progress {
  position: relative;
  height: 3px;
  background: rgba(34, 80, 63, 0.9);
  overflow: hidden;
}
.progress__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green-bright) 0%, var(--yellow) 60%, var(--red-card) 100%);
  transition: width 0.12s linear;
}

/* =========================================================
   14 页脚
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 7vw, 88px);
  background: var(--green-deep);
  color: var(--mist);
  border-top: 1px solid rgba(47, 162, 119, 0.4);
  border-radius: 32px 32px 0 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 12px;
  left: clamp(16px, 4vw, 48px);
  right: clamp(16px, 4vw, 48px);
  height: 6px;
  background: repeating-linear-gradient(90deg, rgba(47, 162, 119, 0.55) 0 2px, transparent 2px 14px);
  opacity: 0.7;
  pointer-events: none;
}
.site-footer__inner {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) var(--gutter) 26px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr);
  gap: clamp(28px, 4vw, 56px);
}
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__line {
  max-width: 34ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(241, 246, 243, 0.72);
}
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
}
.footer-col { min-width: 0; }
.footer-col__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(241, 246, 243, 0.22);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--yellow);
}
.footer-col__list { display: flex; flex-direction: column; gap: 9px; }
.footer-col__link {
  display: inline-block;
  font-size: 14.5px;
  color: rgba(241, 246, 243, 0.86);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer-col__link:hover {
  color: var(--yellow);
  transform: translateX(3px);
}

.site-footer__contact {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 1px dashed rgba(241, 246, 243, 0.22);
}
.contact__title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--yellow);
}
.contact__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(47, 162, 119, 0.3);
  border-radius: 16px;
  background: rgba(47, 162, 119, 0.12);
}
.contact__item--wide { width: 100%; }
.contact__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(241, 246, 243, 0.62);
  white-space: nowrap;
}
.contact__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  line-height: 1.5;
  color: var(--white);
  word-break: break-all;
}
.copy-btn {
  padding: 5px 12px;
  border: 1px solid rgba(255, 210, 74, 0.5);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.copy-btn:hover { background: rgba(255, 210, 74, 0.16); }
.copy-btn[data-copied="true"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--green-deep);
}
.contact__note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(241, 246, 243, 0.6);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 18px;
  border-top: 1px solid rgba(241, 246, 243, 0.16);
}
.site-footer__copy,
.site-footer__icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(241, 246, 243, 0.6);
}

/* ---------- 15 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 210, 74, 0.5);
  border-radius: var(--radius-pill);
  background: var(--green-deep);
  color: var(--yellow);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
}
.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* =========================================================
   16 响应式
   ========================================================= */
@media (max-width: 1100px) {
  .site-header__chapter { display: none; }
}

@media (max-width: 960px) {
  .grid--asym,
  .grid--asym-rev,
  .grid--three { grid-template-columns: minmax(0, 1fr); }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .site-header__bar { justify-content: space-between; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }

  .nav__list {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid rgba(47, 162, 119, 0.45);
    border-radius: 26px;
    background: linear-gradient(160deg, var(--green-mid) 0%, var(--green-deep) 100%);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
  }
  .nav[data-open="true"] .nav__list {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__item--legal {
    display: block;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(241, 246, 243, 0.2);
  }
  .nav__link {
    width: 100%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
  }
  .nav__link[aria-current="page"] { border-radius: 16px; }

  .to-top { bottom: 84px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__item { width: 100%; }
  .site-footer__legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .site-footer__nav { grid-template-columns: minmax(0, 1fr); }
  .nav__toggle-label { display: none; }
}

/* ---------- 17 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .btn:hover,
  .footer-col__link:hover { transform: none; }
}
