/* ==========================================================================
   猫头鹰体育 · night-flight-maotouying.com.cn
   /assets/site.css — 共享外壳、基础组件与响应式规则
   ========================================================================== */

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

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

body { margin: 0; }

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

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

ul, ol { margin: 0; padding: 0; }

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

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

/* ---- 2. 设计令牌 ---- */
:root {
  --ink: #08150F;
  --panel: #101B18;
  --panel-2: #17362C;
  --panel-3: #0C1F19;
  --neon: #2FE3A8;
  --amber: #F3B32B;
  --violet: #6C46A8;
  --text: #EAF6F0;
  --muted: #93A8A0;
  --line: #2A4A3F;
  --alert: #FF6E4A;

  --shell-max: 1180px;
  --gutter: 20px;
  --gap: 24px;
  --header-h: 108px;

  --shadow: 10px 10px 0 rgba(0, 0, 0, .55);
  --shadow-sm: 5px 5px 0 rgba(0, 0, 0, .5);
  --shadow-neon: 9px 9px 0 rgba(47, 227, 168, .16);
  --radius: 3px;
  --ease: cubic-bezier(.22, .8, .3, 1);

  --font-cn: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---- 3. 基础排版 ---- */
body {
  font-family: var(--font-cn);
  font-size: 16.5px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 520px at 84% -6%, rgba(108, 70, 168, .30), transparent 62%),
    radial-gradient(760px 460px at 4% 6%, rgba(47, 227, 168, .10), transparent 60%),
    linear-gradient(rgba(147, 168, 160, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 168, 160, .05) 1px, transparent 1px);
  background-size: auto, auto, 68px 68px, 68px 68px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--text);
}

h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.35rem); }
h3 { font-size: clamp(1.12rem, 2.2vw, 1.45rem); line-height: 1.25; }
h4 { font-size: 1.05rem; line-height: 1.3; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--neon); }
a:hover { color: var(--neon); }

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

/* ---- 4. 布局骨架 ---- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--panel { background-color: var(--panel); }
.section--deep { background-color: var(--panel-2); }
.section--edge {
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 18px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.section-head__index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--amber);
  border: 2px solid var(--amber);
  padding: 3px 8px;
  line-height: 1.2;
}

.section-head__title {
  margin: 0;
  flex: 1 1 300px;
}

.section-head__note {
  margin: 0;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--muted);
  max-width: 46ch;
}

.page-head {
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: 30px;
}

.grid {
  display: grid;
  gap: var(--gap);
}

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

.stack { margin: 0; }
.stack > * + * { margin-top: var(--gap); }

.divider {
  height: 2px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--neon), var(--amber) 46%, transparent);
}

/* ---- 5. 头部外壳 ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  color: var(--text);
  background-color: transparent;
  border-bottom: 2px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.site-header[data-scrolled="true"],
.site-header[data-nav-open="true"] {
  background-color: rgba(12, 25, 20, .97);
  border-bottom-color: var(--line);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .45);
}

.header-rail { border-bottom: 1px solid rgba(42, 74, 63, .7); }

.header-rail__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

.rail-tag { color: var(--neon); }

.rail-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--neon);
  box-shadow: 0 0 0 0 rgba(47, 227, 168, .55);
  animation: rail-pulse 2.4s ease-out infinite;
}

@keyframes rail-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 227, 168, .55); }
  70% { box-shadow: 0 0 0 10px rgba(47, 227, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 227, 168, 0); }
}

.rail-note {
  margin-left: auto;
  text-align: right;
}

.header-main { position: relative; }

.header-main__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-block: 14px;
}

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

.brand:hover { color: var(--text); }

.brand__mark {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--violet) 0 30%, transparent 31%),
    radial-gradient(circle at 50% 50%, var(--panel-2) 0 100%);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid var(--amber);
  border-radius: 50%;
}

.brand__mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  background-color: var(--ink);
  border: 2px solid var(--neon);
  border-radius: 50%;
  z-index: 2;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.brand__sub {
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ---- 6. 导航 ---- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color .2s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background-color: var(--neon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s var(--ease);
}

.site-nav__link:hover { color: var(--neon); }
.site-nav__link:hover::after,
.site-nav__link:focus-visible::after { transform: scaleX(1); }

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

.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background-color: var(--amber);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 13px;
  background-color: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--neon);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle__label { letter-spacing: .04em; }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 120;
  padding: 10px 16px;
  background-color: var(--amber);
  color: #101B18;
  font-weight: 800;
  border: 2px solid #101B18;
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}

.skip-link:focus {
  top: 12px;
  color: #101B18;
}

/* ---- 7. 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.btn--solid {
  background-color: var(--neon);
  border-color: var(--neon);
  color: #06130F;
  box-shadow: var(--shadow-sm);
}

.btn--solid:hover {
  color: #06130F;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .55);
}

.btn--amber {
  background-color: var(--amber);
  border-color: var(--amber);
  color: #1A1204;
  box-shadow: var(--shadow-sm);
}

.btn--amber:hover {
  color: #1A1204;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .55);
}

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

.btn--ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
  background-color: rgba(47, 227, 168, .08);
}

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

/* ---- 8. 面包屑与正文容器 ---- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}

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

.breadcrumbs li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--neon); }
.breadcrumbs [aria-current="page"] { color: var(--amber); }

.prose {
  max-width: 68ch;
  font-size: 16.5px ;
  line-height: 1.8;
  color: var(--text);
}

.prose h2,
.prose h3 { margin: 1.6em 0 .6em; }

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

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

.prose strong { color: var(--neon); font-weight: 700; }

.prose a {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.7;
  color: var(--text);
  max-width: 60ch;
}

/* ---- 9. 面板与通用块 ---- */
.panel {
  position: relative;
  padding: 22px;
  background-color: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.panel--deep { background-color: var(--panel-2); }
.panel--flat { box-shadow: none; }

.panel--lift:hover,
.panel--lift:focus-within {
  transform: translate(-3px, -3px);
  border-color: var(--neon);
  box-shadow: var(--shadow-neon);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(42, 74, 63, .75);
}

.panel__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}

.panel__body { font-size: 15.5px; line-height: 1.75; }

/* ---- 10. 数据单元 ---- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1;
  color: var(--neon);
}

.stat__value--amber { color: var(--amber); }

.stat__label {
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--muted);
}

.stat__delta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--amber);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--amber);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--neon);
  background-color: rgba(47, 227, 168, .07);
  border: 1px solid rgba(47, 227, 168, .35);
  border-radius: var(--radius);
}

.tag--amber {
  color: var(--amber);
  background-color: rgba(243, 179, 43, .07);
  border-color: rgba(243, 179, 43, .4);
}

.tag--alert {
  color: var(--alert);
  background-color: rgba(255, 110, 74, .08);
  border-color: rgba(255, 110, 74, .45);
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--muted);
}

.annotation {
  font-size: 12.5px;
  line-height: 1.65;
  letter-spacing: .08em;
  color: var(--muted);
}

.v-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--muted);
}

.rotate-note {
  display: inline-block;
  transform: rotate(-3deg);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--amber);
}

.list-index { list-style: none; }

.list-index li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(42, 74, 63, .7);
}

.list-index__no {
  flex: 0 0 auto;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--amber);
}

/* ---- 11. 分段切换标签 ---- */
.tabs { margin: 0; }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.tabs__tab {
  appearance: none;
  cursor: pointer;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  background-color: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}

.tabs__tab:hover {
  color: var(--text);
  border-color: var(--neon);
}

.tabs__tab[aria-selected="true"] {
  color: #06130F;
  background-color: var(--neon);
  border-color: var(--neon);
}

.tabs__panel { padding-top: 4px; }
.tabs__panel[hidden] { display: none; }

/* ---- 12. 图像容器基础规则 ---- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background-color: var(--panel-2);
  background-image:
    linear-gradient(rgba(147, 168, 160, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 168, 160, .12) 1px, transparent 1px),
    radial-gradient(120% 100% at 18% 0%, rgba(108, 70, 168, .42), transparent 62%),
    radial-gradient(100% 90% at 100% 100%, rgba(47, 227, 168, .14), transparent 62%);
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: #1A1204;
  background-color: var(--amber);
  border-radius: var(--radius);
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--text);
  background: linear-gradient(transparent, rgba(8, 21, 15, .94));
}

/* ---- 13. 页脚 ---- */
.site-footer {
  position: relative;
  background-color: var(--panel-3);
  border-top: 2px solid var(--line);
}

.footer-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--neon) 0 22%, var(--amber) 22% 40%, var(--violet) 40% 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .85fr .85fr .85fr 1.5fr;
  gap: 32px;
  padding-block: 52px 42px;
}

.footer-brand { max-width: 30ch; }

.brand--footer .brand__mark {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
}

.footer-brand__line {
  margin: 18px 0 6px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}

.footer-brand__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}

.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--amber);
}

.footer-links {
  display: grid;
  gap: 9px;
  list-style: none;
}

.footer-links a {
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}

.footer-links a:hover {
  color: var(--neon);
  padding-left: 4px;
}

.footer-contact {
  display: grid;
  gap: 12px;
  list-style: none;
}

.footer-contact__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
}

.footer-contact__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
}

.footer-contact__note {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--violet);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  background-color: rgba(8, 21, 15, .6);
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer-legal__item { color: var(--muted); }
.footer-copy { letter-spacing: .02em; }

.to-top {
  margin-left: auto;
  appearance: none;
  cursor: pointer;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--text);
  background-color: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}

.to-top:hover {
  color: var(--neon);
  border-color: var(--neon);
  transform: translateY(-2px);
}

/* ---- 14. 工具类与入场动效 ---- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .42s var(--ease), transform .42s var(--ease);
}

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

/* ---- 15. 响应式 ---- */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
  .footer-brand { grid-column: 1 / -1; max-width: 46ch; }
  .footer-col--contact { grid-column: 1 / -1; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (max-width: 980px) {
  :root { --header-h: 100px; }

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

  .site-nav {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    max-height: 0;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: max-height .34s var(--ease), opacity .22s var(--ease), margin-top .3s var(--ease), padding .3s var(--ease), border-color .3s var(--ease);
  }

  .site-nav[data-open] {
    max-height: min(78vh, 620px);
    margin-top: 12px;
    padding: 10px;
    overflow-y: auto;
    opacity: 1;
    background-color: var(--panel);
    border-color: var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .site-nav__link {
    display: block;
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid rgba(42, 74, 63, .6);
  }

  .site-nav__link::after { display: none; }

  .site-nav__link[aria-current="page"] {
    background-color: rgba(47, 227, 168, .08);
    box-shadow: inset 3px 0 0 var(--amber);
  }

  .site-nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    padding: 14px 2px 4px;
  }

  .site-nav__actions .btn { width: 100%; }
}

@media (max-width: 760px) {
  .header-rail__inner { font-size: 11px; }
  .rail-note { display: none; }
  .section-head { margin-bottom: 24px; }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; --gap: 18px; }

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

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    padding-block: 38px 30px;
  }

  .footer-brand,
  .footer-col--contact { grid-column: 1 / -1; }

  .footer-bottom__inner { flex-direction: column; align-items: flex-start; }
  .to-top { margin-left: 0; }

  .brand__sub { display: none; }
}

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

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

  .rail-pulse { animation: none; }

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