/* ==========================================================================
   博业体育 · 共享样式 /assets/site.css
   文字建筑 · 高原竞技 · 珠宝色分区
   ========================================================================== */

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

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

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

ul[class],
ol[class] { list-style: none; padding-left: 0; }

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

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

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

a { color: inherit; }

table { border-collapse: collapse; width: 100%; }

hr { border: 0; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 品牌主色 */
  --qingke: #2F6B4F;
  --qingke-deep: #1D4634;
  --qingke-soft: #4F8E6F;
  --snow: #F7F9F6;
  --mist: #E4EAE5;
  --ink: #16211C;
  --ink-soft: #4E5D55;
  --ink-faint: #7B8A82;

  /* 珠宝色分区 */
  --lake: #0E4A52;
  --indigo: #33285C;
  --wine: #7A2233;

  /* 经幡五色 */
  --flag-blue: #2F6BD8;
  --flag-red: #D8382F;
  --flag-yellow: #E8B21E;
  --flag-green: #3AA76D;

  /* 线条 */
  --line-light: rgba(22, 33, 28, .12);
  --line-strong: rgba(22, 33, 28, .24);
  --line-dark: rgba(247, 249, 246, .16);

  /* 字体 */
  --font-head: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 字号阶梯 */
  --fs-12: .75rem;
  --fs-15: .9375rem;
  --fs-19: 1.1875rem;
  --fs-24: 1.5rem;
  --fs-30: 1.875rem;
  --fs-38: 2.375rem;
  --fs-48: 3rem;
  --fs-60: 3.75rem;
  --fs-76: 4.75rem;

  /* 版式尺度 */
  --shell: 1440px;
  --gutter: clamp(16px, 3.4vw, 56px);
  --header-h: 88px;
  --header-h-solid: 64px;
  --radius: 2px;
}

/* ---------- 3. 中文排版基线 ---------- */
body {
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4,
.display {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.measure { max-width: 38em; }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: .95;
}

.display {
  font-size: clamp(2.375rem, 1.5rem + 3.9vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}

/* ---------- 4. 可见焦点 / 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--flag-blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(47, 107, 216, .3);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. 容器与网格 ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 920px; }

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 104px);
}

.section--tight { padding-block: clamp(32px, 4.5vw, 64px); }

.section--lake    { background: var(--lake);    color: var(--snow); }
.section--indigo  { background: var(--indigo);  color: var(--snow); }
.section--wine    { background: var(--wine);    color: var(--snow); }
.section--mist    { background: var(--mist); }
.section--ink     { background: var(--ink);     color: var(--snow); }

.section--lake a,
.section--indigo a,
.section--wine a,
.section--ink a { color: var(--snow); }

.rule {
  height: 1px;
  border: 0;
  background: var(--line-light);
  margin-block: clamp(28px, 4vw, 56px);
}

.section--lake .rule,
.section--indigo .rule,
.section--wine .rule,
.section--ink .rule { background: var(--line-dark); }

/* ---------- 6. 通用文字构件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--qingke);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  transform: skewY(-14deg);
}

.section--lake .eyebrow,
.section--indigo .eyebrow,
.section--wine .eyebrow,
.section--ink .eyebrow { color: var(--flag-yellow); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: .1em;
  background: var(--mist);
  color: var(--ink-soft);
  border-left: 2px solid var(--qingke);
}

.tag--blue   { border-left-color: var(--flag-blue); }
.tag--red    { border-left-color: var(--flag-red); }
.tag--yellow { border-left-color: var(--flag-yellow); }
.tag--green  { border-left-color: var(--flag-green); }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color .16s ease, color .16s ease,
              border-color .16s ease, transform .16s ease;
}

.btn-primary {
  background: var(--qingke);
  color: var(--snow);
  border-color: var(--qingke);
}

.btn-primary:hover {
  background: var(--qingke-deep);
  border-color: var(--qingke-deep);
}

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

.btn-ghost:hover {
  background: rgba(22, 33, 28, .06);
  color: var(--ink);
  border-color: rgba(22, 33, 28, .42);
}

.btn:hover { transform: translateY(-1px); }

/* ---------- 8. 切角面板 ---------- */
.panel {
  position: relative;
  background: var(--snow);
  border: 1px solid var(--line-light);
  padding: clamp(20px, 3vw, 34px);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.panel--notch {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.panel--mist { background: var(--mist); }

.panel--lake   { background: var(--lake);   color: var(--snow); border-color: transparent; }
.panel--indigo { background: var(--indigo); color: var(--snow); border-color: transparent; }
.panel--wine   { background: var(--wine);   color: var(--snow); border-color: transparent; }

.panel--lake a,
.panel--indigo a,
.panel--wine a { color: var(--snow); }

/* ---------- 9. 图片容器（页面阶段放占位） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--mist);
  aspect-ratio: 16 / 10;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.62) contrast(1.06);
  transition: transform .4s ease, filter .4s ease;
}

.media-frame:hover img {
  transform: scale(1.02);
  filter: saturate(.85) contrast(1.08);
}

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

/* ---------- 10. 面包屑 / 正文 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-12);
  letter-spacing: .08em;
  color: var(--ink-faint);
}

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

.crumbs li + li::before {
  content: "/";
  color: var(--ink-faint);
  opacity: .6;
}

.crumbs a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .16s ease, color .16s ease;
}

.crumbs a:hover {
  color: var(--qingke);
  border-bottom-color: var(--qingke);
}

.prose { max-width: 38em; }

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

.prose h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.375rem);
  margin-top: 2em;
  padding-top: .6em;
  border-top: 1px solid var(--line-light);
}

.prose h3 { font-size: var(--fs-24); margin-top: 1.8em; }

.prose ul,
.prose ol {
  padding-left: 1.3em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li + li { margin-top: .4em; }

.prose blockquote {
  border-left: 3px solid var(--qingke);
  padding-left: 18px;
  color: var(--ink-soft);
  font-family: var(--font-head);
}

/* ==========================================================================
   11. 页头
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  color: var(--snow);
  background-color: transparent;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 28, 24, .74) 0%, rgba(18, 28, 24, .3) 58%, rgba(18, 28, 24, 0) 100%);
  transition: opacity .18s ease;
  pointer-events: none;
}

.site-header.is-solid {
  background-color: rgba(247, 249, 246, .97);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line-light), 0 18px 40px -34px rgba(22, 33, 28, .7);
}

.site-header.is-solid::before { opacity: 0; }

/* skip link */
.skip-link {
  position: absolute;
  top: 10px;
  left: var(--gutter);
  z-index: 200;
  padding: 10px 18px;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--ink);
  background: var(--snow);
  border: 2px solid var(--flag-blue);
  transform: translateY(-200%);
  transition: transform .16s ease;
}

.skip-link:focus { transform: translateY(0); }

/* 头部主体网格 */
.header-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  transition: min-height .18s ease;
}

.site-header.is-solid .header-shell { min-height: var(--header-h-solid); }

/* 品牌 */
.brand {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  background: var(--qingke);
  color: var(--snow);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.125rem;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: var(--fs-19);
  letter-spacing: .02em;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .26em;
  opacity: .62;
}

/* 胶囊导航 */
.nav-capsule {
  grid-column: 2;
  justify-self: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid rgba(247, 249, 246, .26);
  border-radius: 999px;
  background: rgba(247, 249, 246, .08);
  transition: background-color .18s ease, border-color .18s ease;
}

.nav-list a {
  display: block;
  padding: 8px 15px;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  color: inherit;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease;
}

.nav-list a:hover { background: rgba(247, 249, 246, .18); }

.nav-list a[aria-current="page"] {
  background: var(--qingke);
  color: var(--snow);
}

.nav-actions { display: none; }

/* 桌面动作区 */
.header-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header .btn-ghost {
  color: var(--snow);
  border-color: rgba(247, 249, 246, .45);
  background: transparent;
}

.site-header .btn-ghost:hover {
  color: var(--snow);
  background: rgba(247, 249, 246, .14);
  border-color: rgba(247, 249, 246, .85);
}

.site-header.is-solid .btn-ghost {
  color: var(--ink-soft);
  border-color: rgba(22, 33, 28, .2);
  background: transparent;
}

.site-header.is-solid .btn-ghost:hover {
  color: var(--ink);
  background: rgba(22, 33, 28, .05);
  border-color: rgba(22, 33, 28, .42);
}

.site-header.is-solid .nav-list {
  border-color: rgba(22, 33, 28, .14);
  background: rgba(22, 33, 28, .045);
}

.site-header.is-solid .nav-list a { color: var(--ink-soft); }

.site-header.is-solid .nav-list a:hover {
  background: rgba(22, 33, 28, .08);
  color: var(--ink);
}

.site-header.is-solid .nav-list a[aria-current="page"] {
  background: var(--qingke);
  color: var(--snow);
}

/* 移动端切换按钮 */
.nav-toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: inherit;
  border: 1px solid rgba(247, 249, 246, .45);
  border-radius: var(--radius);
  background: transparent;
  transition: border-color .16s ease, background-color .16s ease;
}

.nav-toggle:hover { background: rgba(247, 249, 246, .12); }

.site-header.is-solid .nav-toggle { border-color: rgba(22, 33, 28, .22); }
.site-header.is-solid .nav-toggle:hover { background: rgba(22, 33, 28, .06); }

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* 竖排数据索引 */
.header-index {
  display: none;
  position: fixed;
  right: clamp(10px, 1.6vw, 22px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 88;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

.header-index-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
  text-orientation: upright;
  opacity: .8;
}

.header-index-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-index-list a {
  display: block;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-decoration: none;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
  text-orientation: upright;
  border-right: 2px solid rgba(22, 33, 28, .12);
  transition: color .16s ease, border-color .16s ease;
}

.header-index-list a:hover,
.header-index-list a[aria-current="page"] {
  color: var(--qingke);
  border-right-color: var(--qingke);
}

/* 滚动进度条 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 3;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--flag-blue) 0%, var(--flag-green) 36%, var(--flag-yellow) 68%, var(--flag-red) 100%);
  transition: transform .1s linear;
}

/* ---------- 11a. 页头响应式 ---------- */
@media (max-width: 1180px) {
  .nav-list a { padding: 8px 11px; letter-spacing: .05em; }
  .header-actions .btn-ghost { display: none; }
}

@media (min-width: 1240px) {
  .site-header.is-solid .header-index {
    display: flex;
    pointer-events: auto;
  }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }

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

  .header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 12px;
  }

  .site-header.is-solid .header-shell { min-height: 60px; }

  .brand-tagline { display: none; }

  .header-actions { display: none; }

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

  .header-index { display: none !important; }

  .nav-capsule {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 89;
    display: none;
    overflow-y: auto;
    padding: clamp(24px, 6vw, 48px) var(--gutter) 64px;
    background: var(--ink);
    color: var(--snow);
    border-top: 1px solid rgba(247, 249, 246, .14);
  }

  .nav-capsule[data-open] {
    display: block;
    animation: navDrop .22s ease both;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .site-header.is-solid .nav-list {
    border: 0;
    background: none;
  }

  .nav-list li { border-bottom: 1px solid rgba(247, 249, 246, .13); }

  .nav-list a,
  .site-header.is-solid .nav-list a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 18px 0;
    font-family: var(--font-head);
    font-size: clamp(1.375rem, 5.4vw, 1.875rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
    border-radius: 0;
    color: var(--snow);
    background: none;
    white-space: normal;
  }

  .nav-list a::before {
    content: attr(data-idx);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .12em;
    color: var(--flag-yellow);
    opacity: .9;
  }

  .nav-list a:hover,
  .site-header.is-solid .nav-list a:hover {
    background: none;
    color: var(--flag-yellow);
  }

  .nav-list a[aria-current="page"],
  .site-header.is-solid .nav-list a[aria-current="page"] {
    background: none;
    color: var(--flag-green);
  }

  .nav-actions {
    display: grid;
    gap: 12px;
    margin-top: clamp(24px, 6vw, 40px);
  }

  .nav-actions .btn { width: 100%; padding: 15px 20px; }

  /* 打开目录时锁定墨岩页头 */
  html.nav-locked .site-header {
    background-color: var(--ink);
    color: var(--snow);
    box-shadow: none;
  }

  html.nav-locked .site-header::before { opacity: 0; }
  html.nav-locked .site-header .nav-toggle { border-color: rgba(247, 249, 246, .5); }
  html.nav-locked .brand-tagline { opacity: .6; }
}

@media (max-width: 520px) {
  .brand-mark { width: 34px; height: 34px; font-size: 1rem; }
  .brand-name { font-size: 1.0625rem; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   12. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--snow);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg,
      var(--flag-blue) 0 20%,
      var(--snow) 20% 40%,
      var(--flag-red) 40% 60%,
      var(--flag-green) 60% 80%,
      var(--flag-yellow) 80% 100%);
  z-index: 2;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 260px;
  background:
    linear-gradient(135deg, rgba(47, 107, 79, .26), transparent 62%),
    repeating-linear-gradient(114deg, rgba(247, 249, 246, .05) 0 1px, transparent 1px 52px);
  pointer-events: none;
  z-index: 0;
}

.footer-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(52px, 7vw, 96px) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}

.footer-summary {
  margin-top: 18px;
  max-width: 26em;
  font-size: var(--fs-15);
  line-height: 1.85;
  color: rgba(247, 249, 246, .74);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(22px, 3vw, 32px);
  padding: 12px 22px;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--ink);
  background: var(--flag-yellow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background-color .16s ease, transform .16s ease;
}

.footer-cta:hover {
  background: #F2C94F;
  transform: translateY(-1px);
}

.footer-main {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(247, 249, 246, .5);
  border-bottom: 1px solid var(--line-dark);
}

.footer-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  font-size: var(--fs-15);
  text-decoration: none;
  color: rgba(247, 249, 246, .86);
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}

.footer-list a:hover {
  color: var(--snow);
  border-bottom-color: var(--flag-green);
}

.footer-contact {
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--line-dark);
}

.footer-contact-title {
  margin-bottom: 14px;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(247, 249, 246, .5);
}

.footer-contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px clamp(20px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact-list li {
  display: grid;
  grid-template-columns: 3.6em minmax(0, 1fr);
  gap: 10px;
  font-size: var(--fs-15);
  line-height: 1.7;
  color: rgba(247, 249, 246, .86);
  word-break: break-word;
}

.footer-contact-key {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--flag-green);
  padding-top: 3px;
}

.footer-legal {
  position: relative;
  z-index: 1;
  margin-top: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line-dark);
}

.footer-legal-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 22px var(--gutter) 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  font-size: var(--fs-12);
  letter-spacing: .05em;
  color: rgba(247, 249, 246, .58);
}

.footer-copy { margin: 0; }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal-links a {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(247, 249, 246, .28);
  transition: color .16s ease, border-color .16s ease;
}

.footer-legal-links a:hover {
  color: var(--snow);
  border-bottom-color: var(--flag-yellow);
}

@media (max-width: 980px) {
  .footer-shell { grid-template-columns: 1fr; }
  .footer-summary { max-width: 40em; }
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact-list { grid-template-columns: 1fr; }
  .footer-legal-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   13. 入场与递减动效
   ========================================================================== */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s ease, transform .4s ease;
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .footer-cta:hover { transform: none; }

  .media-frame:hover img { transform: none; }
}

/* 窄屏整体防溢出 */
@media (max-width: 480px) {
  .display { font-size: clamp(2rem, 8.6vw, 2.75rem); }
  .eyebrow { letter-spacing: .14em; }
}
