/* =========================================================
   K体育赛场 · /assets/site.css
   共享外壳：reset、变量、中文排版、头部、页脚、通用组件
   ========================================================= */

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

:root {
  /* 品牌色 */
  --c-orange: #C2572E;
  --c-sand: #F3D7B8;
  --c-cyan: #2E8E9A;
  --c-mist: #DFF3F2;
  --c-ink: #0B2B24;
  --c-field: #174D3E;
  --c-neon: #D9FF43;
  --c-mint: #7CF0C8;
  --c-paper: #FFF8ED;
  --c-char: #1A1F1B;
  --c-gray: #6E7770;
  --c-amber: #F2A65A;

  /* 边界与层次 */
  --c-line: rgba(26, 31, 27, .14);
  --c-line-soft: rgba(26, 31, 27, .08);
  --c-line-dark: rgba(255, 248, 237, .16);
  --c-paper-dim: rgba(255, 248, 237, .72);

  /* 字体栈 */
  --font-display: "Noto Sans SC Black", "Source Han Sans SC Heavy", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono ExtraBold", "JetBrains Mono", "Roboto Mono", "DIN Alternate", ui-monospace, SFMono-Regular, monospace;
  --font-note: "Noto Serif SC Light", "Noto Serif SC", Georgia, "Songti SC", serif;

  /* 形状与节奏 */
  --radius-lg: 34px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --header-h: 74px;
  --gutter: clamp(18px, 4.5vw, 72px);
  --shadow-panel: 0 18px 46px rgba(11, 43, 36, .12);
  --shadow-dark: 0 20px 54px rgba(11, 43, 36, .3);
  --ease: cubic-bezier(.22, .9, .3, 1);
}

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

body {
  margin: 0;
  background-color: var(--c-paper);
  color: var(--c-char);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--c-cyan); text-underline-offset: 3px; text-decoration-thickness: 1px; }

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

h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--c-char);
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 6vw, 76px); }
h2 { font-size: clamp(28px, 3.8vw, 50px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -.012em; }
h4 { font-size: 18px; letter-spacing: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 0; }

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

:focus-visible {
  outline: 3px solid var(--c-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--c-neon); }

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

/* ---------- 2. 基础布局工具 ---------- */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(52px, 7vw, 104px); }
.section--tight { padding-block: clamp(30px, 4vw, 56px); }

.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 34px);
  align-items: start;
  margin-bottom: clamp(24px, 3.4vw, 44px);
}

.section-index {
  font-family: var(--font-mono);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--c-orange);
  font-variant-numeric: tabular-nums;
}

.section-title { margin-bottom: .35em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-note);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--c-cyan);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.lead {
  max-width: 44ch;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.8;
  color: #3D443E;
}

.meta-note {
  font-family: var(--font-note);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--c-gray);
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 30px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- 3. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              color .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background-color: var(--c-orange);
  color: var(--c-paper);
  box-shadow: 0 10px 24px rgba(194, 87, 46, .3);
}
.btn--primary:hover { background-color: #A9481F; }

.btn--ghost {
  background-color: transparent;
  color: var(--c-field);
  border-color: rgba(23, 77, 62, .35);
}
.btn--ghost:hover { background-color: rgba(23, 77, 62, .08); }

.btn--neon {
  background-color: var(--c-neon);
  color: var(--c-ink);
}
.btn--neon:hover { box-shadow: 0 10px 26px rgba(217, 255, 67, .35); }

.btn--dark {
  background-color: var(--c-ink);
  color: var(--c-paper);
}
.btn--dark:hover { background-color: var(--c-field); }

.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ---------- 4. 面板 / 胶囊标签 ---------- */
.panel {
  position: relative;
  padding: clamp(22px, 3vw, 40px);
  background-color: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}
.panel--sand { background-color: var(--c-sand); border-color: rgba(194, 87, 46, .22); }
.panel--mist { background-color: var(--c-mist); border-color: rgba(46, 142, 154, .22); }
.panel--edge { border: 2px solid var(--c-orange); }
.panel--dark {
  background-color: var(--c-ink);
  color: var(--c-paper);
  border-color: rgba(217, 255, 67, .28);
  box-shadow: var(--shadow-dark);
}
.panel--dark h1, .panel--dark h2, .panel--dark h3, .panel--dark h4 { color: var(--c-paper); }
.panel--dark a { color: var(--c-neon); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border: 1px solid rgba(46, 142, 154, .28);
  border-radius: 999px;
  background-color: var(--c-mist);
  color: var(--c-field);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.pill--orange {
  background-color: rgba(194, 87, 46, .12);
  border-color: rgba(194, 87, 46, .32);
  color: #8E3D1D;
}
.pill--cyan {
  background-color: var(--c-mist);
  border-color: rgba(46, 142, 154, .3);
  color: #146B75;
}
.pill--neon {
  background-color: rgba(217, 255, 67, .18);
  border-color: rgba(217, 255, 67, .55);
  color: #3D5A00;
}
.pill--dark {
  background-color: var(--c-field);
  border-color: transparent;
  color: var(--c-paper);
}

/* ---------- 5. 面包屑 ---------- */
.breadcrumb { margin: 0 0 clamp(18px, 2.4vw, 28px); }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--c-gray);
}
.breadcrumb-item { display: flex; align-items: center; gap: 8px; }
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(110, 119, 112, .6);
}
.breadcrumb-link {
  color: var(--c-cyan);
  font-weight: 600;
  text-decoration: none;
}
.breadcrumb-link:hover { text-decoration: underline; }
.breadcrumb-current { color: var(--c-char); font-weight: 600; }

/* ---------- 6. 图片容器（页面阶段放占位） ---------- */
.img-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(11, 43, 36, .14);
  border-radius: var(--radius-md);
  background-color: var(--c-ink);
  background-image:
    radial-gradient(120% 90% at 12% 8%, rgba(194, 87, 46, .26), transparent 62%),
    linear-gradient(152deg, #12352C 0%, #0B2B24 55%, #174D3E 100%);
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 248, 237, .16) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: .35;
}
.img-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--band { aspect-ratio: 21 / 9; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--tall { aspect-ratio: 3 / 4; }

.img-caption {
  display: block;
  margin-top: 10px;
  font-family: var(--font-note);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--c-gray);
}

/* ---------- 7. 横向数据带基础 ---------- */
.data-strip {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  border-radius: var(--radius-md);
  background-color: var(--c-ink);
}
.data-strip-track {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  width: max-content;
}
.data-strip-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.6vw, 20px);
  font-variant-numeric: tabular-nums;
  color: var(--c-paper);
  white-space: nowrap;
}
.data-strip-key {
  font-family: var(--font-note);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--c-paper-dim);
}

/* ---------- 8. 章节侧栏链接 + 显现 ---------- */
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-gray);
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.section-link:hover { color: var(--c-field); background-color: rgba(46, 142, 154, .1); }
.section-link[aria-current="true"] {
  color: #8E3D1D;
  background-color: rgba(194, 87, 46, .13);
  font-weight: 700;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   9. HEADER
   ========================================================= */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 999px;
  background-color: var(--c-paper);
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(11, 43, 36, .35);
  transform: translateY(-260%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--c-paper);
  background-color: transparent;
  background-image: linear-gradient(180deg,
      rgba(11, 43, 36, .92) 0%,
      rgba(11, 43, 36, .64) 56%,
      rgba(11, 43, 36, .06) 100%);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck {
  background-color: var(--c-ink);
  background-image: none;
  box-shadow: 0 14px 34px rgba(11, 43, 36, .3);
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 38px);
  min-height: var(--header-h);
}

/* 品牌组合 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--c-paper);
  text-decoration: none;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background-image: linear-gradient(145deg, var(--c-orange), var(--c-amber));
  box-shadow: inset 0 0 0 1.5px rgba(255, 248, 237, .42), 0 8px 18px rgba(194, 87, 46, .35);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 9px 8px;
  border-radius: 5px;
  background-color: var(--c-ink);
  transform: skewX(-16deg);
}
.brand-mark::after {
  content: "";
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--c-neon);
  box-shadow: 0 0 12px rgba(217, 255, 67, .9);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.brand-tag {
  margin-top: 3px;
  font-family: var(--font-note);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--c-paper-dim);
}

/* 导航 */
.nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 30px);
  min-width: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  margin: 0;
  padding: 0;
}
.nav-item { list-style: none; }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255, 248, 237, .82);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background-color: var(--c-neon);
  transition: right .25s var(--ease), background-color .2s var(--ease);
}
.nav-link:hover { color: var(--c-paper); }
.nav-link:hover::after { right: 0; }
.nav-link[aria-current="page"] { color: var(--c-neon); }
.nav-link[aria-current="page"]::after { right: 0; background-color: var(--c-orange); }

.nav-meta { display: none; }

/* 头部右侧 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
}
.header-meta {
  font-family: var(--font-note);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--c-paper-dim);
  white-space: nowrap;
}
.header-cta { flex: 0 0 auto; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 14px;
  border: 1px solid rgba(255, 248, 237, .28);
  border-radius: 999px;
  background-color: rgba(255, 248, 237, .1);
  color: var(--c-paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.nav-toggle:hover { background-color: rgba(255, 248, 237, .18); }
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-toggle-bars span {
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* 顶部进度线 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  pointer-events: none;
}
.header-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 0 3px 3px 0;
  background-image: linear-gradient(90deg, var(--c-orange), var(--c-amber) 45%, var(--c-neon));
  transition: width .12s linear;
}

/* =========================================================
   10. FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-block: clamp(46px, 6vw, 84px) 30px;
  background-color: var(--c-ink);
  color: var(--c-paper);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: min(70vw, 760px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(46, 142, 154, .3), transparent 62%);
}
.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background-image: linear-gradient(90deg, var(--c-orange), var(--c-amber) 45%, var(--c-cyan));
}

.footer-shell { position: relative; z-index: 1; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.5fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(26px, 3.5vw, 44px);
  border-bottom: 1px solid var(--c-line-dark);
}

.footer-brand-line {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--c-paper);
}
.footer-tagline {
  margin: 0 0 16px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-paper-dim);
}
.footer-service {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 5px 14px;
  border: 1px solid rgba(217, 255, 67, .4);
  border-radius: 999px;
  background-color: rgba(217, 255, 67, .1);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-neon);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 32px);
}
.footer-col { min-width: 0; }
.footer-col-title {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--c-neon);
}
.footer-links { display: grid; gap: 9px; margin: 0; padding: 0; }
.footer-link {
  display: inline-block;
  font-size: 14.5px;
  color: rgba(255, 248, 237, .78);
  text-decoration: none;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.footer-link:hover { color: var(--c-neon); transform: translateX(3px); }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(24px, 4vw, 52px);
  margin-top: clamp(22px, 3vw, 34px);
  padding: 18px 22px;
  border: 1px solid var(--c-line-dark);
  border-radius: 24px;
  background-color: rgba(255, 248, 237, .06);
}
.footer-contact-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.footer-contact-label {
  font-family: var(--font-note);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(255, 248, 237, .55);
}
.footer-contact-value {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--c-paper);
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(20px, 2.6vw, 30px);
  padding-top: 18px;
  border-top: 1px solid var(--c-line-dark);
  font-size: 13px;
  color: rgba(255, 248, 237, .6);
}
.footer-note { margin: 0; max-width: 62ch; }
.footer-legal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--c-paper-dim);
}

/* =========================================================
   11. 响应式
   ========================================================= */
@media (max-width: 1180px) {
  .header-meta { display: none; }
}

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

  .header-shell { gap: 10px; }
  .brand-tag { display: none; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; }

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

  .nav {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    top: auto;
    z-index: 120;
    display: block;
    flex: none;
    margin: 0;
    padding: 18px 18px 22px;
    border: 1px solid rgba(255, 248, 237, .14);
    border-radius: 26px;
    background-color: var(--c-ink);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(100% + 30px));
    transition: transform .34s var(--ease), opacity .24s var(--ease), visibility .34s var(--ease);
  }
  .nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link {
    display: block;
    padding: 12px 12px;
    border-radius: 12px;
    font-size: 17px;
  }
  .nav-link::after { display: none; }
  .nav-link:hover { background-color: rgba(255, 248, 237, .08); }
  .nav-link[aria-current="page"] {
    padding-left: 16px;
    background-color: rgba(217, 255, 67, .1);
  }

  .nav-meta {
    display: block;
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--c-line-dark);
    font-family: var(--font-note);
    font-size: 12.5px;
    letter-spacing: .04em;
    color: rgba(255, 248, 237, .6);
  }

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

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

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

  .section-head { gap: 12px; }
  .section-index { font-size: 30px; }
  .panel { padding: 20px; border-radius: 24px; }
  .img-frame { border-radius: 16px; }
  .btn { padding: 12px 20px; }
  .btn--sm { padding: 9px 16px; font-size: 13.5px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-contact { flex-direction: column; gap: 12px; border-radius: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   12. 降低动效
   ========================================================= */
@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;
  }

  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .btn:hover { transform: none; }
  .footer-link:hover { transform: none; }
  .nav-link:hover::after { right: 100%; }
  .nav-link[aria-current="page"]::after { right: 0; }
}
