/* ==========================================================================
   乐享指南 — /assets/site.css
   共享外壳：重置 / 变量 / 中文字体排版 / 页头 / 页脚 / 通用组件
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ice: #E8F1F8;
  --ice-deep: #A8C6DA;
  --ink: #0B2A3B;
  --mist: #F7FAFC;
  --orange: #F26B3A;
  --yellow: #FFC94D;
  --green: #1F4A43;
  --grey: #6B7C8A;
  --black: #101820;

  --line: rgba(11, 42, 59, 0.14);
  --line-strong: rgba(11, 42, 59, 0.34);
  --line-on-dark: rgba(232, 241, 248, 0.22);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;

  --shell: 1360px;
  --gutter: 28px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--ice);
  background-image:
    linear-gradient(to right, rgba(11, 42, 59, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 42, 59, 0.055) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

a, button, summary {
  -webkit-tap-highlight-color: transparent;
}

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

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- 3. 中文排版基线 ---------- */
.display {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(48px, 8.2vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
}

.heading-lg {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

.heading-md {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.annotation {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--grey);
}

.vert-note {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--grey);
  margin: 0;
}

.coord {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.rule {
  height: 1px;
  width: 100%;
  margin: 0;
  border: 0;
  background: var(--line-strong);
}

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.shell--narrow {
  max-width: 820px;
}

.section {
  padding: clamp(48px, 6vw, 84px) 0 0;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
}

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

.section__title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.section__note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--grey);
}

.grid {
  display: grid;
  gap: 20px;
}

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

/* ---------- 5. 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--yellow);
  box-shadow: 0 14px 26px -20px rgba(11, 42, 59, 0.9);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ice-deep);
  border-color: var(--ink);
  color: var(--ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.tag:hover {
  background: var(--ice-deep);
  border-color: var(--ink);
}

.tag--accent {
  background: var(--orange);
  border-color: var(--orange);
  color: #FFFFFF;
}

.tag--accent:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--yellow);
}

.tag--warm {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.tag--warm:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--yellow);
}

.tag--quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--grey);
}

/* ---------- 6. 卡片与面板 ---------- */
.card {
  position: relative;
  display: block;
  padding: 26px 24px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--mist);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(225deg, var(--ice) 0 50%, transparent 50%);
  pointer-events: none;
}

.card:hover {
  border-color: var(--ink);
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -28px rgba(11, 42, 59, 0.85);
}

.card--offset {
  margin-top: 28px;
}

.card__tag {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.card__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
}

.card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--grey);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

.surface {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--mist);
}

.surface--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ice);
}

.surface--ink .card__text,
.surface--ink .annotation {
  color: rgba(232, 241, 248, 0.68);
}

.surface--accent {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

/* ---------- 7. 正文与面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--grey);
}

.breadcrumb a {
  color: var(--grey);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.breadcrumb a:hover {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

.breadcrumb__sep {
  color: var(--ice-deep);
}

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

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.78;
}

.prose p {
  margin: 0 0 1.15em;
}

.prose h2 {
  margin: 2em 0 0.6em;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.22;
}

.prose h3 {
  margin: 1.7em 0 0.5em;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.prose ul,
.prose ol {
  margin: 0 0 1.15em;
  padding-left: 1.3em;
}

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

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.prose code {
  padding: 1px 6px;
  background: var(--ice-deep);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--orange);
  color: var(--grey);
}

/* ---------- 8. 表格与折叠 ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.6;
  background: var(--mist);
}

.table th,
.table td {
  padding: 11px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  background: var(--ice-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.table tbody tr:hover {
  background: #FFFFFF;
}

.accordion {
  border-top: 1px solid var(--line-strong);
}

.accordion__item {
  border-bottom: 1px solid var(--line-strong);
}

.accordion__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 4px;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.accordion__btn::-webkit-details-marker {
  display: none;
}

.accordion__btn::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 19px;
  line-height: 1;
  color: var(--orange);
}

.accordion__item[open] .accordion__btn::after {
  content: "–";
}

.accordion__panel {
  padding: 0 4px 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}

.accordion__panel p:last-child {
  margin-bottom: 0;
}

/* ---------- 9. 图文容器（供页面阶段放置图片/SVG 占位） ---------- */
.figure {
  margin: 0;
}

.figure__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--mist);
}

.figure__frame > img,
.figure__frame > svg,
.figure__frame > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__frame::before,
.figure__frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--orange);
  pointer-events: none;
}

.figure__frame::before {
  top: 8px;
  left: 8px;
  border-right: 0;
  border-bottom: 0;
}

.figure__frame::after {
  right: 8px;
  bottom: 8px;
  border-top: 0;
  border-left: 0;
}

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

.figure__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--grey);
}

/* ---------- 10. Skip link ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 999;
  padding: 12px 20px;
  border: 1.5px solid var(--yellow);
  background: var(--ink);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

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

/* ---------- 11. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.site-header[data-scrolled] {
  background: rgba(232, 241, 248, 0.95);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 16px 30px -30px rgba(11, 42, 59, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: var(--shell);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
}

.site-header__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.site-header__mark::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  background: var(--yellow);
}

.site-header__brand:hover .site-header__mark {
  background: var(--orange);
  border-color: var(--orange);
  color: #FFFFFF;
}

.site-header__brandtext {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-header__name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.site-header__tagline {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--grey);
}

/* --- 主导航 --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: navi;
}

.site-nav__item {
  margin: 0;
}

.site-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.site-nav__link::before {
  counter-increment: navi;
  content: "0" counter(navi);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--grey);
  transition: color 0.18s var(--ease);
}

.site-nav__link:hover {
  border-bottom-color: var(--orange);
}

.site-nav__link:hover::before {
  color: var(--orange);
}

.site-nav__link[aria-current="page"] {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.site-nav__link[aria-current="page"]::before {
  color: var(--orange);
}

.site-nav__cta {
  padding: 10px 18px;
}

/* --- 移动端开关 --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--ink);
  color: var(--yellow);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 16px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.site-header[data-open] .nav-toggle__bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* --- 阅读进度 --- */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  margin-top: clamp(64px, 8vw, 112px);
  background: var(--green);
  color: var(--ice);
  border-top: 1px solid var(--green);
}

.site-footer__inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px var(--gutter) 26px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-on-dark);
}

.site-footer__brand {
  min-width: 0;
}

.site-footer__brandline {
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.site-footer__note {
  margin: 0;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(232, 241, 248, 0.62);
}

.site-footer__nav {
  min-width: 0;
}

.site-footer__label {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--yellow);
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  color: rgba(232, 241, 248, 0.88);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.site-footer__link:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.site-footer__contact {
  min-width: 0;
}

.site-footer__line {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(232, 241, 248, 0.86);
  word-break: break-word;
}

.site-footer__line--muted {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(232, 241, 248, 0.5);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(232, 241, 248, 0.55);
}

.site-footer__icp {
  color: rgba(232, 241, 248, 0.72);
}

.site-footer :focus-visible {
  outline-color: var(--yellow);
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1100px) {
  .site-nav {
    gap: 18px;
  }
  .site-nav__list {
    gap: 14px;
  }
  .site-nav__link {
    font-size: 12px;
  }
  .site-header__tagline {
    display: none;
  }
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 20px;
    --header-h: 66px;
  }

  body {
    background-size: 56px 56px;
  }

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

  .site-header__inner {
    gap: 16px;
  }

  .site-header__name {
    font-size: 18px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 6px var(--gutter) 22px;
    background: var(--mist);
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 26px 40px -34px rgba(11, 42, 59, 0.9);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__item {
    border-bottom: 1px solid var(--line);
  }

  .site-nav__link {
    display: flex;
    width: 100%;
    padding: 15px 4px;
    font-size: 15px;
    border-bottom: 0;
  }

  .site-nav__link[aria-current="page"] {
    padding-left: 14px;
    border-bottom: 0;
    box-shadow: inset 3px 0 0 var(--orange);
    background: rgba(242, 107, 58, 0.07);
  }

  .site-nav__cta {
    width: 100%;
    margin-top: 18px;
  }

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

  .card--offset {
    margin-top: 0;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__contact {
    grid-column: auto;
  }

  .site-footer__inner {
    padding-top: 44px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

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

  .section__note {
    margin-left: 0;
    width: 100%;
  }

  .card {
    padding: 22px 18px 20px;
  }

  .site-footer__links {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------- 14. 动效降级 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .card:hover {
    transform: none;
  }
}
