/* ==========================================================
   星空体育APP · 共享样式 /assets/site.css
   设计基因：星空数据终端 + 杂志报头 + 非对称仪表板
   ========================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --space-blue: #0B1D3A;
  --space-lift: #14335A;
  --nebula: #1E3A6E;
  --gold: #FFD700;
  --lime: #39FF14;
  --rock-gray: #7A7F8C;
  --moss: #8A9A5B;
  --terra: #C1704D;
  --cream: #F5F0E6;
  --ink: #0A0E1A;

  --text: #C9D4E6;
  --text-dim: #9AA7BC;
  --hairline: rgba(245, 240, 230, 0.09);
  --hairline-gold: rgba(255, 215, 0, 0.4);

  --header-font: "Montserrat ExtraBold", "Impact", "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body-font: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono-font: "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;

  --container-max: 1280px;
  --radius: 16px;
  --radius-sm: 10px;
  --t-fast: 150ms;
  --t-base: 250ms;
}

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

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

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--space-blue);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 16px;
  font-family: var(--header-font);
  font-weight: 800;
  line-height: 1.12;
  color: var(--cream);
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  margin: 0 0 16px;
}

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

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

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

address {
  font-style: normal;
}

button {
  cursor: pointer;
}

main {
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: #ffe566;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--space-blue);
}

::-webkit-scrollbar-thumb {
  background: var(--nebula);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--rock-gray);
}

::selection {
  background: rgba(255, 215, 0, 0.85);
  color: var(--ink);
}

/* ---------- 3. 可访问性与焦点 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 300;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top var(--t-fast) ease;
}

.skip-link:focus {
  top: 0;
  color: var(--ink);
  outline-offset: 0;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

[data-year] {
  font: inherit;
}

/* ---------- 4. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 200;
  background: linear-gradient(90deg, var(--gold), var(--lime));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  pointer-events: none;
}

/* ---------- 5. 布局容器与章节 ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow {
  max-width: 880px;
}

.section {
  padding: 80px 0;
}

.section--tight {
  padding: 48px 0;
}

.section--dark {
  background: var(--space-blue);
}

.section--lift {
  background:
    radial-gradient(90% 120% at 85% 0%, rgba(30, 58, 110, 0.55) 0%, transparent 60%),
    linear-gradient(180deg, var(--space-lift) 0%, var(--space-blue) 100%);
}

.section--light {
  background: var(--cream);
  color: var(--ink);
}

.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4,
.section--light h5,
.section--light h6 {
  color: var(--ink);
}

.section--light a:not(.btn) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(193, 112, 77, 0.55);
  text-underline-offset: 4px;
}

.section--light a:not(.btn):hover {
  color: var(--terra);
  text-decoration-color: var(--terra);
}

/* ---------- 6. 栅格 ---------- */
.grid {
  display: grid;
  gap: 28px;
}

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

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

.grid--asym {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: start;
}

/* ---------- 7. 顶部页眉 ---------- */
.site-header {
  position: relative;
  z-index: 80;
  overflow: hidden;
  background:
    radial-gradient(90% 130% at 86% -20%, rgba(30, 58, 110, 0.75) 0%, transparent 60%),
    radial-gradient(220% 100% at 100% 0%, rgba(255, 215, 0, 0.05) 0%, transparent 30%),
    linear-gradient(180deg, var(--space-lift) 0%, var(--space-blue) 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.12);
}

.header-datum {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.header-datum::before {
  content: "";
  position: absolute;
  top: 0;
  left: -4%;
  width: 46%;
  height: 100%;
  background: repeating-linear-gradient(115deg, rgba(255, 215, 0, 0.05) 0 1px, transparent 1px 12px);
  transform: skewX(-7deg);
  opacity: 0.8;
}

.header-datum::after {
  content: "";
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 52%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.7) 30%, var(--lime) 100%);
  transform: skewX(-11deg);
  transform-origin: right bottom;
  opacity: 0.7;
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 0 16px;
}

.masthead-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  text-decoration: none;
}

.masthead-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 12px 12px 12px 0;
  border: 1px solid rgba(255, 215, 0, 0.45);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.16), rgba(57, 255, 20, 0.05));
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
  flex: none;
}

.mark-star {
  position: absolute;
  top: -7px;
  right: -7px;
  font-size: 14px;
  line-height: 1;
  color: var(--lime);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.8);
}

.mark-core {
  font-family: var(--header-font);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  color: var(--gold);
  transform: skew(-6deg);
}

.masthead-text {
  display: flex;
  flex-direction: column;
}

.masthead-title {
  font-family: var(--header-font);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--cream);
  transition: color var(--t-fast) ease;
}

.masthead-tagline {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.masthead-brand:hover .masthead-mark {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.18);
}

.masthead-brand:hover .masthead-title {
  color: var(--gold);
}

.masthead-aside {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: end;
}

.masthead-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(57, 255, 20, 0.35);
  background: rgba(57, 255, 20, 0.07);
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.9);
}

.masthead-clock {
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* ---------- 8. 顶部导航 ---------- */
.site-nav {
  border-top: 1px solid var(--hairline);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: block;
  padding: 15px 22px;
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #c7d3e8;
  text-decoration: none;
  border-left: 1px solid var(--hairline);
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--lime));
  transition: right var(--t-base) ease;
}

.nav-link:hover {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.05);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  right: 22px;
}

.nav-link[aria-current="page"] {
  color: var(--gold);
}

/* ---------- 9. 导航开关 ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(245, 240, 230, 0.16);
  border-radius: 12px;
  color: var(--cream);
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--cream);
  transition: transform var(--t-base) ease, opacity var(--t-fast) ease, background-color var(--t-fast) ease;
}

.nav-toggle:hover .nav-toggle-line {
  background: var(--gold);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  background:
    radial-gradient(80% 140% at 12% 0%, rgba(30, 58, 110, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, #060b16 0%, var(--ink) 100%);
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  color: var(--text-dim);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px 32px 28px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline);
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 0 14px;
  border-radius: 12px 12px 12px 0;
  border: 1px solid rgba(255, 215, 0, 0.45);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.14), rgba(57, 255, 20, 0.05));
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
}

.footer-brand-name {
  margin: 0 0 8px;
  font-family: var(--header-font);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 0.03em;
  color: var(--cream);
}

.footer-trust {
  margin: 0;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
}

.footer-col-title {
  margin: 4px 0 16px;
  font-family: var(--mono-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-list li {
  margin-bottom: 10px;
}

.footer-list a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--t-fast) ease;
}

.footer-list a:hover {
  color: var(--gold);
}

.footer-address {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
}

.footer-support {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-top: 22px;
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--text-dim);
}

.footer-copy,
.footer-icp,
.footer-legal {
  margin: 0;
}

.footer-legal {
  margin-left: auto;
}

.footer-legal a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--t-fast) ease;
}

.footer-legal a:hover {
  color: var(--gold);
}

.footer-sep {
  margin: 0 6px;
  color: rgba(255, 215, 0, 0.45);
}

/* ---------- 11. 页头模板与面包屑 ---------- */
.page-head {
  padding: 56px 0 32px;
}

.page-title {
  margin: 0 0 12px;
  font-family: var(--header-font);
  font-weight: 800;
  font-size: clamp(34px, 5.6vw, 68px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cream);
}

.page-desc {
  margin: 0;
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dim);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--rock-gray);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(255, 215, 0, 0.5);
}

.breadcrumb a {
  color: var(--rock-gray);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold);
}

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

/* ---------- 12. 标题与标签系统 ---------- */
.heading-xl {
  margin: 0 0 16px;
  font-size: clamp(42px, 6.8vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--cream);
}

.heading-lg {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  color: var(--cream);
}

.heading-md {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.2;
  color: var(--cream);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-label::before {
  content: "";
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--lime));
}

.section--light .section-label {
  color: var(--ink);
}

.section--light .section-label::before {
  background: linear-gradient(90deg, var(--terra), var(--gold));
}

/* ---------- 13. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, box-shadow var(--t-fast) ease, transform var(--t-fast) ease;
}

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

.btn-gold:hover {
  background: #ffe566;
  color: var(--ink);
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 240, 230, 0.3);
}

.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.05);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ---------- 14. 卡片与玻璃层 ---------- */
.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: linear-gradient(160deg, rgba(20, 51, 90, 0.72), rgba(11, 29, 58, 0.96));
  transition: border-color var(--t-fast) ease, transform var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

.card:hover {
  border-color: var(--hairline-gold);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(5, 10, 20, 0.4);
}

.card--flat {
  padding: 0;
  overflow: hidden;
}

.card--light {
  background: var(--cream);
  color: var(--ink);
  border-color: rgba(10, 14, 26, 0.08);
}

.card--light h1,
.card--light h2,
.card--light h3,
.card--light h4,
.card--light h5,
.card--light h6 {
  color: var(--ink);
}

.glass {
  border: 1px solid rgba(245, 240, 230, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(20, 51, 90, 0.55), rgba(11, 29, 58, 0.4));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- 15. 数据组件 ---------- */
.data-block {
  font-family: var(--mono-font);
  color: var(--text);
}

.data-score {
  display: block;
  font-family: var(--mono-font);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--lime);
}

.data-score--gold {
  color: var(--gold);
}

.data-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rock-gray);
}

.mono {
  font-family: var(--mono-font);
}

/* ---------- 16. 媒体容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--nebula), var(--space-lift));
  isolation: isolate;
}

.media img,
.media video,
.media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.09), transparent 36%, rgba(57, 255, 20, 0.07));
  mix-blend-mode: screen;
  pointer-events: none;
}

.media--landscape {
  aspect-ratio: 16 / 9;
}

.media--portrait {
  aspect-ratio: 3 / 4;
}

.media--tall {
  aspect-ratio: 4 / 5;
}

.media--wide {
  aspect-ratio: 21 / 9;
}

/* ---------- 17. 提示与表格 ---------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-size: 14px;
  line-height: 1.7;
}

.notice::before {
  content: "!";
  font-family: var(--mono-font);
  font-weight: 700;
  line-height: 1.4;
  margin-top: 1px;
}

.notice--info {
  background: rgba(30, 58, 110, 0.4);
  border-color: rgba(255, 215, 0, 0.35);
  color: #dce6f5;
}

.notice--info::before {
  color: var(--gold);
}

.notice--warn {
  background: rgba(193, 112, 77, 0.14);
  border-color: rgba(193, 112, 77, 0.5);
  color: #e8d3c6;
}

.notice--warn::before {
  color: var(--terra);
}

.notice--ok {
  background: rgba(57, 255, 20, 0.08);
  border-color: rgba(57, 255, 20, 0.35);
  color: #d2e8cf;
}

.notice--ok::before {
  color: var(--lime);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--hairline);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono-font);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.table-wrap th {
  padding: 12px 16px;
  text-align: left;
  background: rgba(30, 58, 110, 0.5);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.table-wrap td {
  padding: 12px 16px;
  border-top: 1px solid var(--hairline);
  color: var(--text);
  white-space: nowrap;
}

.table-wrap tbody tr:hover td {
  background: rgba(255, 215, 0, 0.04);
}

.section--light .table-wrap {
  border-color: rgba(10, 14, 26, 0.15);
}

.section--light .table-wrap th {
  background: rgba(10, 14, 26, 0.06);
  color: var(--ink);
}

.section--light .table-wrap td {
  border-color: rgba(10, 14, 26, 0.08);
  color: var(--ink);
}

/* ---------- 18. 装饰纹理 ---------- */
.data-lines {
  position: relative;
}

.data-lines::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 20px,
    rgba(255, 215, 0, 0.045) 20px 22px,
    transparent 22px 48px,
    rgba(57, 255, 20, 0.035) 48px 49px,
    transparent 49px 72px
  );
}

.data-lines > * {
  position: relative;
  z-index: 1;
}

/* ---------- 19. 响应式规则 ---------- */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

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

@media (max-width: 880px) {
  .masthead {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 16px 0 12px;
  }

  .masthead-title {
    font-size: 22px;
  }

  .masthead-tagline {
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .masthead-aside {
    display: none;
  }

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

  .site-nav {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-top-color: transparent;
    transition: max-height var(--t-base) ease, opacity var(--t-fast) ease;
  }

  .site-nav[data-open] {
    max-height: 480px;
    opacity: 1;
    border-top-color: var(--hairline);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 16px;
  }

  .nav-link {
    padding: 14px 8px;
    border-left: none;
    border-bottom: 1px solid var(--hairline);
  }

  .nav-link::after {
    left: 8px;
  }

  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after {
    right: 8px;
  }

  .grid--2,
  .grid--3,
  .grid--asym {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner,
  .footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-legal {
    margin-left: 0;
  }

  .page-head {
    padding: 40px 0 24px;
  }
}

/* ---------- 20. 动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .nav-link::after,
  .nav-toggle-line {
    transition: none !important;
  }

  .card:hover,
  .btn:hover,
  .btn-gold:hover,
  .btn-ghost:hover,
  .masthead-brand:hover .masthead-mark,
  .masthead-brand:hover .masthead-title {
    transform: none;
    box-shadow: none;
  }
}
