/* ============================================================
   海鸥赛事 · /assets/site.css
   共享外壳：reset / tokens / 中文排版 / 刊头 / 页脚 / 通用组件
   ============================================================ */

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

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

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

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

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

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

/* ---------- 2. Tokens ---------- */
:root {
  /* 品牌色 */
  --seagull: #F6F8F9;
  --mineral: #EFEBE2;
  --rock: #6B7075;
  --deep: #0B2C4D;
  --night: #061A2E;
  --cyan: #12E3C6;
  --coral: #FF6A45;
  --violet: #7A5CFF;
  --moss: #4F6B54;
  --clay: #C2734E;

  /* 语义 */
  --ink: var(--deep);
  --ink-soft: var(--rock);
  --line: rgba(11, 44, 77, 0.12);
  --line-strong: rgba(11, 44, 77, 0.24);
  --line-light: rgba(246, 248, 249, 0.14);
  --on-dark: rgba(246, 248, 249, 0.82);
  --on-dark-soft: rgba(246, 248, 249, 0.56);

  /* 字体 */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas,
    "Liberation Mono", "Noto Sans Mono CJK SC", monospace;

  /* 尺度 */
  --shell: 1200px;
  --shell-wide: 1440px;
  --shell-narrow: 760px;
  --gutter: clamp(20px, 4vw, 56px);

  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 420ms;
  --dur-fast: 200ms;
}

/* ---------- 3. 中文排版基底 ---------- */
body {
  background: var(--seagull);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }

strong, b { font-weight: 600; }

::selection { background: var(--cyan); color: var(--night); }

/* 焦点环 */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}

.shell--wide {
  width: min(100% - var(--gutter) * 2, var(--shell-wide));
  margin-inline: auto;
}

.shell--narrow {
  width: min(100% - var(--gutter) * 2, var(--shell-narrow));
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap, 24px);
}

.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-full { grid-column: 1 / -1; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .col-3 { grid-column: span 4; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 8; }
  .col-6 { grid-column: span 8; }
  .col-7 { grid-column: span 8; }
  .col-8 { grid-column: span 8; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: 1 / -1; }
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 200;
  transform: translate(-50%, -140%);
  background: var(--night);
  color: var(--seagull);
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--cta {
  background: var(--deep);
  color: var(--seagull);
}

.btn--cta:hover {
  background: var(--cyan);
  color: var(--night);
}

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

.btn--ghost:hover {
  border-color: var(--deep);
  background: rgba(11, 44, 77, 0.05);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 13px;
}

.on-dark .btn--ghost {
  color: var(--seagull);
  border-color: rgba(246, 248, 249, 0.3);
}

.on-dark .btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: transparent;
}

/* ---------- 7. 刊头 site-header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(246, 248, 249, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 300ms var(--ease), background 300ms var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 30%, var(--violet) 70%, transparent 100%);
  opacity: 0.55;
  pointer-events: none;
}

.site-header.is-condensed {
  background: rgba(246, 248, 249, 0.97);
  box-shadow: 0 18px 40px -32px rgba(6, 26, 46, 0.62);
}

.site-header__inner {
  width: min(100% - var(--gutter) * 2, var(--shell-wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  column-gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(22px, 3vw, 38px) 0;
  transition: padding 300ms var(--ease), align-items 300ms var(--ease);
}

/* 左上角轮次速览 */
.masthead__corner {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: var(--moss);
  white-space: nowrap;
  padding-bottom: 6px;
  max-width: 100%;
}

.masthead__corner::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(18, 227, 198, 0.18);
  flex: none;
}

/* 中央品牌 */
.masthead__brandwrap {
  text-align: center;
  min-width: 0;
}

.masthead__brand {
  display: inline-block;
  font-size: clamp(2.6rem, 7.2vw, 6.4rem);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--deep);
  text-decoration: none;
  transition: font-size 320ms var(--ease), letter-spacing 320ms var(--ease),
    color var(--dur-fast) var(--ease);
}

.masthead__brand:hover { color: var(--night); }

.masthead__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rock);
}

.masthead__season {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  background: rgba(122, 92, 255, 0.1);
  border: 1px solid rgba(122, 92, 255, 0.28);
  color: var(--violet);
  font-weight: 500;
}

.masthead__tagline { color: var(--rock); }

/* 右侧行动区 */
.masthead__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
  padding-bottom: 6px;
}

/* 收拢态 */
.site-header.is-condensed .site-header__inner {
  align-items: center;
  padding-block: 10px 0;
}

.site-header.is-condensed .masthead__corner {
  font-size: 10px;
  padding-bottom: 0;
}

.site-header.is-condensed .masthead__brand {
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.site-header.is-condensed .masthead__meta { display: none; }

.site-header.is-condensed .masthead__actions { padding-bottom: 0; }

/* ---------- 8. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--deep);
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.nav-toggle:hover { border-color: var(--deep); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background var(--dur-fast) var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-fast) var(--ease);
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

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

/* ---------- 9. 导航 ---------- */
.site-nav {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
  padding-block: 16px clamp(16px, 2vw, 26px);
  transition: padding 300ms var(--ease);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.9vw, 12px);
}

.site-nav__item { display: flex; }

.site-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--rock);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.site-nav__link:hover {
  background: var(--mineral);
  color: var(--deep);
}

.site-nav__link[aria-current="page"] {
  background: var(--deep);
  color: var(--seagull);
}

.site-nav__link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* 收拢态导航变胶囊组 */
.site-header.is-condensed .site-nav { padding-block: 10px 12px; }

.site-header.is-condensed .site-nav__list { gap: 6px; }

.site-header.is-condensed .site-nav__link {
  padding: 7px 15px;
  font-size: 13px;
  background: var(--mineral);
  color: var(--deep);
}

.site-header.is-condensed .site-nav__link:hover { background: #e4dfd4; }

.site-header.is-condensed .site-nav__link[aria-current="page"] {
  background: var(--night);
  color: var(--seagull);
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 8vw, 128px);
  background: var(--night);
  color: var(--seagull);
  padding-top: clamp(56px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 34%, var(--violet) 66%, transparent 100%);
  opacity: 0.6;
  pointer-events: none;
}

.site-footer__glow {
  position: absolute;
  right: -180px;
  top: -240px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 227, 198, 0.16), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.site-footer__inner {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.site-footer__logo {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--seagull);
}

.site-footer__position {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--on-dark);
}

.site-footer__season {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.8;
}

.site-footer__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 18px;
}

.site-footer__list li + li { margin-top: 11px; }

.site-footer__link {
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.site-footer__link:hover { color: var(--cyan); }

.site-footer__contact {
  grid-column: 1 / -1;
  margin-top: clamp(18px, 3vw, 34px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}

.site-footer__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 8px;
}

.site-footer__value {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(246, 248, 249, 0.9);
}

.site-footer__note {
  font-size: 13px;
  line-height: 1.75;
  color: var(--on-dark-soft);
}

.site-footer__legal {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin: clamp(32px, 4vw, 56px) auto 0;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--on-dark-soft);
}

/* ---------- 11. 章节头 ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
}

.section-eyebrow b {
  color: var(--violet);
  font-weight: 500;
}

.section-title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--deep);
}

.section-title--display {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.022em;
}

/* ---------- 12. 正文 ---------- */
.prose { max-width: 52em; }

.prose p { margin-bottom: 1.2em; }
.prose p:last-child { margin-bottom: 0; }

.prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.8em 0 0.6em;
}

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

.prose ol { list-style: decimal; }

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

.prose a {
  color: var(--deep);
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
}

/* 深色分区 */
.on-dark {
  background: var(--night);
  color: var(--seagull);
}

.on-dark .section-title,
.on-dark .section-title--display { color: var(--seagull); }

.on-dark .section-eyebrow { color: var(--cyan); opacity: 0.85; }

.on-dark .prose p { color: var(--on-dark); }

/* ---------- 13. 数据标签 / 版本标记 ---------- */
.data-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--mineral);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
}

.data-chip--cyan {
  background: rgba(18, 227, 198, 0.16);
  color: #0a6f61;
}

.on-dark .data-chip {
  background: rgba(18, 227, 198, 0.14);
  color: var(--cyan);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(122, 92, 255, 0.12);
  border: 1px solid rgba(122, 92, 255, 0.3);
  color: var(--violet);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.tag--clay {
  background: rgba(194, 115, 78, 0.12);
  border-color: rgba(194, 115, 78, 0.32);
  color: #9c5738;
}

/* ---------- 14. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--moss);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.breadcrumb li { display: inline-flex; align-items: center; }

.breadcrumb li::after {
  content: "/";
  margin: 0 10px;
  color: rgba(79, 107, 84, 0.5);
}

.breadcrumb li:last-child::after { content: ""; margin: 0; }

.breadcrumb a { text-decoration: none; color: inherit; }
.breadcrumb a:hover { color: var(--deep); }

/* ---------- 15. 图片容器基础 ---------- */
.figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mineral);
  isolation: isolate;
}

.figure__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(140deg, var(--mineral) 0%, #e3e7ea 100%);
}

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

.figure__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__frame[data-placeholder]::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 14% 12%, rgba(18, 227, 198, 0.26), transparent 56%),
    radial-gradient(90% 80% at 86% 86%, rgba(122, 92, 255, 0.2), transparent 62%),
    repeating-linear-gradient(112deg, rgba(11, 44, 77, 0.06) 0 1px, transparent 1px 24px);
}

.figure__caption {
  padding: 14px 22px;
  background: var(--seagull);
  color: var(--rock);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.on-dark .figure__caption {
  background: rgba(246, 248, 249, 0.06);
  color: var(--on-dark-soft);
}

/* ---------- 16. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  will-change: opacity, transform;
}

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

/* ---------- 17. 响应式：刊头 / 页脚 ---------- */
@media (max-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 92px; }

  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 14px;
    padding-block: 12px;
  }

  .masthead__corner { display: none; }

  .masthead__brandwrap {
    grid-column: 1;
    text-align: left;
  }

  .masthead__brand {
    font-size: clamp(1.5rem, 6.4vw, 1.95rem);
    font-weight: 400;
    letter-spacing: -0.015em;
  }

  .masthead__meta { display: none; }

  .masthead__actions {
    grid-column: 3;
    padding-bottom: 0;
  }

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

  .site-header.is-condensed .site-header__inner { padding-block: 10px; }
  .site-header.is-condensed .masthead__brand { font-size: clamp(1.4rem, 6vw, 1.8rem); }

  .site-nav {
    display: none;
    width: 100%;
    margin: 0;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    background: var(--night);
    padding: 6px var(--gutter) calc(26px + env(safe-area-inset-bottom, 0px));
    box-shadow: inset 0 1px 0 rgba(18, 227, 198, 0.28);
  }

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

  .site-header.is-condensed .site-nav { padding-block: 6px 26px; }

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

  .site-nav__item { display: block; }

  .site-nav__link,
  .site-header.is-condensed .site-nav__link {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 2px;
    border-radius: 0;
    border-bottom: 1px solid rgba(246, 248, 249, 0.1);
    background: transparent;
    color: var(--seagull);
    font-size: 1.05rem;
  }

  .site-nav__link::before {
    content: attr(data-index);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--moss);
    flex: none;
  }

  .site-nav__link:hover,
  .site-header.is-condensed .site-nav__link:hover {
    background: transparent;
    color: var(--cyan);
  }

  .site-nav__link[aria-current="page"],
  .site-header.is-condensed .site-nav__link[aria-current="page"] {
    background: transparent;
    color: var(--cyan);
  }

  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__legal { flex-direction: column; gap: 8px; }
}

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

  .btn { padding: 11px 18px; }
  .btn--sm { padding: 8px 14px; font-size: 12.5px; }

  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__contact { grid-template-columns: 1fr; }
}

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

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

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

  .btn:hover { transform: none; }
}
