/* =========================================================
   site.css — 江南体育 共享外壳
   青黛夜底 / 雾蓝分栏 / 纸白面板 / 琥珀行动
   ========================================================= */

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

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

body { margin: 0; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

a { color: inherit; text-decoration: none; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #07141C;
  --night: #0B1F2A;
  --night-2: #0d2531;
  --mist: #6F95A8;
  --aqua: #31C8B8;
  --amber: #F2A33A;
  --amber-soft: #FFD9A0;
  --paper: #F7F2E8;
  --slate: #3D5661;
  --line: #8FA8B3;
  --alert: #C94F48;

  --paper-80: rgba(247, 242, 232, 0.8);
  --paper-70: rgba(247, 242, 232, 0.7);
  --paper-55: rgba(247, 242, 232, 0.55);
  --ink-76: rgba(7, 20, 28, 0.76);
  --ink-58: rgba(7, 20, 28, 0.58);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-ui: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --rail: 264px;
  --gutter: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --t-fast: 150ms;

  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 18px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(30px, 5vw, 64px); line-height: 1.12; }
h2 { font-size: clamp(24px, 3.2vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 28px); }
h4 { font-size: 20px; }

p { max-width: 40em; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.prose { max-width: 42em; }
.prose p { max-width: 36em; }
.prose p + p { margin-top: 1em; }
.prose h3 { margin-top: 1.6em; margin-bottom: 0.6em; }
.prose ul, .prose ol { margin: 1em 0; }
.prose li { max-width: 36em; padding-left: 1.2em; position: relative; }
.prose li + li { margin-top: 0.4em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--aqua);
}

.link-inline {
  color: var(--slate);
  text-decoration: underline;
  text-decoration-color: rgba(143, 168, 179, 0.7);
  text-underline-offset: 4px;
  transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease);
}
.link-inline:hover { color: var(--ink); text-decoration-color: var(--amber); }

/* ---------- 4. 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(49, 200, 184, 0.32);
  border-radius: 3px;
}

#main-content:focus { outline: none; }

.visually-hidden {
  position: absolute;
  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. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 140;
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-s);
  background-color: var(--amber);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 10px; }

/* ---------- 6. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-image: linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%);
  background-color: var(--night);
  color: var(--paper);
  border-bottom: 1px solid rgba(143, 168, 179, 0.3);
  box-shadow: 0 14px 30px -26px rgba(0, 0, 0, 0.92);
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background-image: linear-gradient(
    90deg,
    var(--aqua) 0%,
    var(--aqua) 30%,
    var(--amber) 30%,
    var(--amber) 52%,
    var(--mist) 52%,
    var(--mist) 100%
  );
}

.header-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, var(--rail)) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 14px var(--gutter);
}

/* 品牌窄栏 */
.brand-rail {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-l) 3px var(--radius-l) 3px;
  background-image: linear-gradient(150deg, var(--aqua) 0%, #1c8f86 100%);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(247, 242, 232, 0.35);
  transition: border-radius var(--t-fast) var(--ease);
}
.brand:hover .brand-mark { border-radius: 3px var(--radius-l) 3px var(--radius-l); }

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--paper-55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 移动端切换按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(247, 242, 232, 0.32);
  border-radius: var(--radius-s);
  background-color: rgba(143, 168, 179, 0.12);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav-toggle:hover { border-color: var(--aqua); background-color: rgba(49, 200, 184, 0.16); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--paper);
  transition: background-color var(--t-fast) var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--paper);
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(5px) rotate(45deg);
  background-color: var(--amber);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-5px) rotate(-45deg);
  background-color: var(--amber);
}

.nav-toggle-text { display: inline-block; }

/* 栏目导航 */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-width: 0;
}

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

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 12px;
  border-radius: var(--radius-s);
  color: var(--paper-70);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}
.nav-link:hover {
  color: var(--ink);
  background-color: var(--amber-soft);
  transform: translateY(-2px);
}
.nav-link[aria-current="page"] { color: var(--aqua); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--amber);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 20px;
  border-left: 1px solid rgba(143, 168, 179, 0.32);
}

/* 阅读进度光带 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background-color: rgba(143, 168, 179, 0.18);
}

.scroll-meter-bar {
  display: block;
  width: 0;
  height: 100%;
  background-image: linear-gradient(90deg, var(--aqua) 0%, var(--amber) 100%);
  transition: width 90ms linear;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.btn--amber {
  background-color: var(--amber);
  color: var(--ink);
  box-shadow: 0 8px 18px -12px rgba(242, 163, 58, 0.95);
}
.btn--amber:hover {
  background-color: var(--amber-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -14px rgba(242, 163, 58, 1);
}

.btn--ghost {
  background-color: transparent;
  color: var(--paper);
  border-color: rgba(247, 242, 232, 0.4);
}
.btn--ghost:hover {
  background-color: rgba(247, 242, 232, 0.12);
  border-color: var(--aqua);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn--outline {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--slate);
}
.btn--outline:hover {
  background-color: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn--dark {
  background-color: var(--ink);
  color: var(--paper);
}
.btn--dark:hover {
  background-color: var(--slate);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* ---------- 8. 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--wide { max-width: 1440px; }
.shell--tight { max-width: 880px; }

.section { padding-block: 64px; }
.section--tight { padding-block: 40px; }

.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--lg { display: flex; flex-direction: column; gap: 40px; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* ---------- 9. 章节标题 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--slate);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--amber);
}
.eyebrow--light { color: var(--aqua); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.3;
}

.section-lead {
  max-width: 34em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-76);
}

/* ---------- 10. 堆叠面板 ---------- */
.panel {
  position: relative;
  padding: 32px;
  border: 1px solid rgba(61, 86, 97, 0.18);
  border-radius: var(--radius-l) var(--radius-s) var(--radius-l) var(--radius-s);
  background-color: var(--paper);
  transition: transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}
.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(49, 200, 184, 0.5);
  box-shadow: 0 20px 36px -28px rgba(7, 20, 28, 0.72);
}

.panel--dark {
  background-image: linear-gradient(160deg, var(--night) 0%, #123543 100%);
  background-color: var(--night);
  border-color: rgba(143, 168, 179, 0.3);
  color: var(--paper);
}
.panel--dark .panel__title { color: var(--paper); }
.panel--dark .panel__body { color: var(--paper-80); }

.panel--mist {
  background-color: rgba(111, 149, 168, 0.12);
  border-color: rgba(111, 149, 168, 0.4);
}

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

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.panel__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.panel__body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-76);
}

.panel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(143, 168, 179, 0.32);
}

/* ---------- 11. 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(111, 149, 168, 0.35);
  border-radius: 999px;
  background-color: rgba(111, 149, 168, 0.16);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
  white-space: nowrap;
}
.tag--aqua {
  background-color: rgba(49, 200, 184, 0.14);
  border-color: rgba(49, 200, 184, 0.45);
  color: #146c66;
}
.tag--amber {
  background-color: rgba(242, 163, 58, 0.18);
  border-color: rgba(242, 163, 58, 0.5);
  color: #7a4c05;
}
.tag--alert {
  background-color: rgba(201, 79, 72, 0.14);
  border-color: rgba(201, 79, 72, 0.4);
  color: #8f322d;
}
.tag--on-dark {
  background-color: rgba(49, 200, 184, 0.16);
  border-color: rgba(49, 200, 184, 0.5);
  color: var(--aqua);
}

/* ---------- 12. 面包屑 ---------- */
.breadcrumb { padding-block: 20px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--slate);
}
.breadcrumb-list li { display: inline-flex; align-items: center; }
.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}
.breadcrumb-list a {
  color: var(--slate);
  text-decoration: underline;
  text-decoration-color: rgba(143, 168, 179, 0.6);
  text-underline-offset: 3px;
  transition: color var(--t-fast) var(--ease);
}
.breadcrumb-list a:hover { color: var(--ink); }
.breadcrumb-list [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- 13. 纵向步骤轨道 ---------- */
.step-track {
  position: relative;
  display: flex;
  flex-direction: column;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding-block: 20px;
}
.step::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(143, 168, 179, 0.35);
}
.step:first-child::before { top: 28px; }
.step:last-child::before { bottom: calc(100% - 28px); }

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--ink);
  color: var(--aqua);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.step__body { padding-top: 6px; }

.step__title {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.step__text {
  max-width: 36em;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-76);
}

/* ---------- 14. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  min-height: 160px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-l) var(--radius-s) var(--radius-l) var(--radius-s);
  background-image: linear-gradient(140deg, var(--night) 0%, var(--slate) 60%, var(--mist) 100%);
  background-color: var(--night);
}
.media > img,
.media > .media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 168, 179, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 168, 179, 0.22) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.65;
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--skew { clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); border-radius: 0; }

.media__tag {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 14px;
  padding: 5px 10px;
  border-radius: 3px;
  background-color: rgba(7, 20, 28, 0.84);
  color: var(--aqua);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

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

/* ---------- 15. 赛程标签切换 ---------- */
.tabs { display: flex; flex-direction: column; gap: 24px; }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tabs__tab {
  padding: 8px 16px;
  border: 1px solid rgba(61, 86, 97, 0.28);
  border-radius: 999px;
  background-color: transparent;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  transition: background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}
.tabs__tab:hover {
  border-color: var(--slate);
  color: var(--ink);
}
.tabs__tab[aria-selected="true"] {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--aqua);
}

.tabs__panel { animation: none; }
.tabs__panel[hidden] { display: none !important; }

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 64px;
  background-image: linear-gradient(180deg, var(--night) 0%, var(--ink) 100%);
  background-color: var(--ink);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background-image: linear-gradient(
    90deg,
    var(--amber) 0%,
    var(--amber) 22%,
    var(--aqua) 22%,
    var(--aqua) 46%,
    var(--mist) 46%,
    var(--mist) 100%
  );
}

.footer-frame {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 48px;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 64px var(--gutter) 40px;
}

.footer-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  color: var(--paper);
  transition: color var(--t-fast) var(--ease);
}
.footer-brand:hover { color: var(--aqua); }

.footer-line {
  max-width: 26em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--paper-70);
}

.footer-note {
  max-width: 28em;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--paper-55);
}

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

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

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: var(--aqua);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  font-size: 15px;
  line-height: 1.6;
  color: var(--paper-80);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.footer-links a:hover {
  color: var(--paper);
  border-bottom-color: var(--amber);
}

.footer-contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  font-size: 14px;
  line-height: 1.7;
}
.footer-contact dt {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--paper-55);
}
.footer-contact dd {
  margin: 0;
  color: rgba(247, 242, 232, 0.88);
  overflow-wrap: anywhere;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 20px var(--gutter) 40px;
  border-top: 1px solid rgba(143, 168, 179, 0.28);
}

.footer-legal {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(247, 242, 232, 0.6);
}

.footer-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}
.footer-mini-links a {
  color: var(--paper-70);
  transition: color var(--t-fast) var(--ease);
}
.footer-mini-links a:hover { color: var(--amber); }

/* ---------- 17. 响应式：平板与移动 ---------- */
@media (max-width: 1180px) {
  .site-nav { gap: 16px; }
  .nav-link { padding: 9px 10px; font-size: 13px; }
  .nav-link[aria-current="page"]::after { left: 10px; right: 10px; }
  .nav-actions { padding-left: 14px; }
}

@media (max-width: 960px) {
  .header-frame {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 18px;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 2;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    padding: 16px 18px 24px;
    background-image: linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%);
    background-color: var(--night);
    border-bottom: 1px solid rgba(143, 168, 179, 0.32);
    box-shadow: 0 22px 36px -26px rgba(0, 0, 0, 0.85);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 170ms var(--ease), transform 170ms var(--ease), visibility 170ms;
  }
  .site-nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

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

  .nav-link {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 6px;
  }
  .nav-link[aria-current="page"] { background-color: rgba(49, 200, 184, 0.12); }
  .nav-link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 8px;
    bottom: 8px;
    width: 3px;
    height: auto;
  }

  .nav-actions {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid rgba(143, 168, 179, 0.28);
  }
  .nav-actions .btn { flex: 1; }

  .grid-12 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-12 {
    grid-column: span 6;
  }

  .footer-frame {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 48px 20px 32px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px 36px;
  }

  .shell { padding-inline: 20px; }
  .section { padding-block: 48px; }
}

@media (max-width: 640px) {
  .brand-tag { display: none; }
  .brand-mark { width: 34px; height: 34px; font-size: 16px; }
  .brand-name { font-size: 17px; }

  .grid-12 { grid-template-columns: minmax(0, 1fr); }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-12 {
    grid-column: span 1;
  }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-mini-links { gap: 14px; }

  .panel { padding: 22px; }
  .panel__title { font-size: 19px; }

  .section { padding-block: 40px; }
  .section-head { margin-bottom: 24px; }

  .step {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding-block: 16px;
  }
  .step__num { width: 48px; height: 48px; font-size: 19px; }
  .step::before { left: 23px; }
  .step:first-child::before { top: 22px; }
  .step:last-child::before { bottom: calc(100% - 22px); }
  .step__body { padding-top: 2px; }

  .btn { padding: 10px 16px; }
}

/* ---------- 18. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .panel:hover,
  .btn:hover,
  .btn--amber:hover,
  .btn--ghost:hover,
  .btn--outline:hover,
  .btn--dark:hover,
  .nav-link:hover {
    transform: none;
  }

  .site-nav { transform: none; }
}
