/* ==========================================================================
   金博体育 · 共享样式表 /assets/site.css
   堆叠面板 · 左右分置导航 · 战术板刻度语言
   ========================================================================== */

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

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

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

ul, ol { 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%; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--c-pulse);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 2. 变量 ---------- */
:root {
  --c-abyss: #061A2E;
  --c-abyss-deep: #04121F;
  --c-tactical: #0E2C4A;
  --c-float: #16497A;
  --c-orange: #FF6A1A;
  --c-orange-soft: #FF8340;
  --c-pulse: #B4FF3D;
  --c-gold: #C9A24B;
  --c-white: #E8EEF6;
  --c-mist: #9FB3C8;
  --c-red: #FF3B5C;
  --c-amber: #F7C948;
  --c-ink: #08131F;

  --font-display: "Archivo", "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --cut: 16px;
  --speed: .28s;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --line-float: 1px solid rgba(22, 73, 122, .8);
  --line-soft: 1px solid rgba(22, 73, 122, .45);
  --line-gold: 1px solid rgba(201, 162, 75, .45);
}

/* ---------- 3. 基底与中文排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-white);
  background-color: var(--c-abyss);
  background-image:
    radial-gradient(1100px 560px at 84% -10%, rgba(255, 106, 26, .10), transparent 62%),
    radial-gradient(900px 520px at 6% 14%, rgba(22, 73, 122, .30), transparent 60%),
    linear-gradient(rgba(22, 73, 122, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 73, 122, .16) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.005em;
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 900; }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
h4 { font-size: 19px; }

p { text-wrap: pretty; }

strong, b { font-weight: 700; color: var(--c-white); }

::selection {
  background: var(--c-pulse);
  color: var(--c-ink);
}

#main-content { scroll-margin-top: 96px; }

/* ---------- 4. 布局工具 ---------- */
.container {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 72px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  flex: none;
  background: var(--c-gold);
}

.lede {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-mist);
  max-width: 64ch;
}

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(20px, 3vw, 34px);
  background: linear-gradient(90deg, rgba(201, 162, 75, .55), rgba(22, 73, 122, .15) 62%, transparent);
}

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.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)); }
.grid--main { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }

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

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  text-align: right;
}

/* ---------- 5. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(6, 26, 46, .97), rgba(6, 26, 46, .88));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 75, .26);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 75, .7) 14%,
    rgba(22, 73, 122, .35) 62%, transparent);
  pointer-events: none;
}

.site-header__inner {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding: 12px var(--gutter);
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 34px);
  transition: min-height var(--speed) var(--ease), padding var(--speed) var(--ease);
}

.site-header[data-scrolled="true"] .site-header__inner {
  min-height: 58px;
  padding-block: 8px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -110px;
  z-index: 120;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-ink);
  background: var(--c-pulse);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 10px; }

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

.brand__mark {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  background: linear-gradient(140deg, var(--c-orange), var(--c-gold));
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  transition: transform var(--speed) var(--ease);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--c-abyss);
  clip-path: polygon(0 100%, 100% 0, 100% 26%, 26% 100%);
}

.brand:hover .brand__mark { transform: translateY(-2px); }

.brand__text { display: block; min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: .06em;
}

.brand__sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--c-mist);
  white-space: nowrap;
}

.site-header[data-scrolled="true"] .brand__sub { display: none; }

.site-nav { margin-left: auto; }

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

.site-nav__item { display: block; }

.site-nav__link {
  display: block;
  padding: 9px 15px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-mist);
  white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease),
    padding var(--speed) var(--ease), font-size var(--speed) var(--ease);
}

.site-nav__link:hover {
  color: var(--c-white);
  background: rgba(22, 73, 122, .58);
}

.site-nav__link[aria-current="page"] {
  color: var(--c-ink);
  font-weight: 800;
  background: var(--c-pulse);
}

.site-header[data-scrolled="true"] .site-nav__link {
  padding: 6px 13px;
  font-size: 14px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.header-quick {
  display: none;
  align-items: center;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--c-ink);
  background: var(--c-orange);
  white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background-color .2s var(--ease);
}

.header-quick:hover { background: var(--c-orange-soft); }

.site-header[data-scrolled="true"] .header-quick { display: inline-flex; }

.site-header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll-progress, 0));
  background: linear-gradient(90deg, var(--c-orange), var(--c-pulse));
  opacity: .9;
  pointer-events: none;
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--c-white);
  border: 1px solid rgba(201, 162, 75, .5);
  background: rgba(22, 73, 122, .3);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

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

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform var(--speed) 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);
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, var(--c-abyss) 0%, var(--c-abyss-deep) 100%);
  border-top: 1px solid rgba(201, 162, 75, .3);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background-image: repeating-linear-gradient(90deg,
    rgba(201, 162, 75, .55) 0 1px, transparent 1px 22px);
  opacity: .5;
  pointer-events: none;
}

.site-footer__grid {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(24px, 3vw, 40px);
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns: minmax(230px, 1.5fr) repeat(2, minmax(140px, 1fr)) minmax(250px, 1.5fr);
}

.footer-brand { display: grid; gap: 14px; align-content: start; }

.brand--footer .brand__name { font-size: 22px; }
.brand--footer .brand__sub { white-space: normal; }

.footer-brand__note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-mist);
  max-width: 34ch;
}

.footer-brand__stamp {
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(201, 162, 75, .85);
}

.footer-col { display: grid; gap: 14px; align-content: start; }

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.footer-col__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 75, .5), transparent);
}

.footer-col__list { display: grid; gap: 8px; }

.footer-link {
  position: relative;
  display: inline-block;
  padding-left: 0;
  font-size: 15px;
  color: var(--c-mist);
  transition: color var(--speed) var(--ease), padding-left var(--speed) var(--ease);
}

.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 7px;
  height: 1px;
  background: var(--c-pulse);
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}

.footer-link:hover {
  color: var(--c-pulse);
  padding-left: 13px;
}

.footer-link:hover::before { opacity: 1; }

.footer-col--info { gap: 10px; }

.footer-info__line {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-mist);
  word-break: break-word;
}

.footer-legal {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding: 18px var(--gutter) 30px;
  border-top: 1px solid rgba(22, 73, 122, .6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  font-size: 13px;
  color: var(--c-mist);
}

.footer-legal__icp { font-size: 12px; color: var(--c-mist); }

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-legal__link {
  color: var(--c-mist);
  transition: color var(--speed) var(--ease);
}

.footer-legal__link:hover { color: var(--c-pulse); }

.footer-legal__year { font-size: 12px; }

/* ---------- 7. 通用组件 ---------- */
/* 面板 */
.panel {
  position: relative;
  background-color: #0B2137;
  border: var(--line-float);
  padding: clamp(18px, 2.6vw, 28px);
}

.panel--cut {
  border: 0;
  background-color: #0B2137;
  background-image: linear-gradient(158deg, rgba(14, 44, 74, .92), rgba(6, 26, 46, .94));
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%,
    var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.panel--cut::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--c-gold), transparent);
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(201, 162, 75, .3);
}

.panel__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.panel__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--c-mist);
}

.panel__body { display: grid; gap: 14px; }

/* 悬浮仪表盘 */
.dashboard {
  position: relative;
  padding: 20px 22px;
  background-image: linear-gradient(160deg, rgba(14, 44, 74, .97), rgba(6, 26, 46, .97));
  background-color: #0B2137;
  border: 1px solid rgba(22, 73, 122, .95);
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, .95);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.dashboard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background-image: repeating-linear-gradient(90deg,
    rgba(180, 255, 61, .5) 0 1px, transparent 1px 16px);
  opacity: .7;
}

.dashboard:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 255, 61, .55);
}

/* 数据条 */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(22, 73, 122, .8);
  border: 1px solid rgba(22, 73, 122, .8);
}

.stat-strip > * {
  background: #0A1F36;
  padding: 16px 18px;
}

.stat { display: grid; gap: 6px; }

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
}

.stat__label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-mist);
}

.stat--up .stat__value { color: var(--c-pulse); }
.stat--down .stat__value { color: var(--c-red); }
.stat--key .stat__value { color: var(--c-orange); }

/* 胶囊 */
.chip-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 17px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-mist);
  background: rgba(22, 73, 122, .28);
  border: 1px solid rgba(22, 73, 122, .85);
  white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}

.chip:hover {
  color: var(--c-white);
  background: rgba(22, 73, 122, .6);
}

.chip--active,
.chip[aria-selected="true"] {
  color: var(--c-ink);
  background: var(--c-pulse);
  border-color: var(--c-pulse);
  font-weight: 800;
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--c-mist);
  border: 1px solid rgba(22, 73, 122, .9);
  border-radius: 2px;
  background: rgba(22, 73, 122, .22);
}

.tag--orange { color: var(--c-orange); border-color: rgba(255, 106, 26, .6); background: rgba(255, 106, 26, .1); }
.tag--pulse { color: var(--c-pulse); border-color: rgba(180, 255, 61, .5); background: rgba(180, 255, 61, .08); }
.tag--gold { color: var(--c-gold); border-color: rgba(201, 162, 75, .55); background: rgba(201, 162, 75, .08); }
.tag--red { color: var(--c-red); border-color: rgba(255, 59, 92, .55); background: rgba(255, 59, 92, .1); }
.tag--amber { color: var(--c-amber); border-color: rgba(247, 201, 72, .55); background: rgba(247, 201, 72, .1); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--c-white);
  background: rgba(22, 73, 122, .28);
  border: 1px solid rgba(201, 162, 75, .5);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .18s var(--ease), background-color .2s var(--ease),
    color .2s var(--ease), border-color .2s var(--ease);
}

.btn:hover { transform: translateY(-2px); background: rgba(22, 73, 122, .6); }
.btn:active { transform: translateY(0); }

.btn--primary {
  color: var(--c-ink);
  background: var(--c-orange);
  border-color: var(--c-orange);
}

.btn--primary:hover { background: var(--c-orange-soft); }

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

.btn--pulse:hover { background: #c6ff66; }

.btn--ghost {
  color: var(--c-white);
  background: transparent;
  border-color: rgba(22, 73, 122, .95);
}

.btn--ghost:hover { background: rgba(22, 73, 122, .45); }

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

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--c-mist);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(201, 162, 75, .7);
}

.breadcrumb a { color: var(--c-mist); transition: color var(--speed) var(--ease); }
.breadcrumb a:hover { color: var(--c-pulse); }
.breadcrumb [aria-current="page"] { color: var(--c-white); }

/* 图片容器 */
.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0E2C4A, #061A2E);
  border: 1px solid rgba(22, 73, 122, .7);
}

.media img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--cinema { aspect-ratio: 21 / 9; }

.media--cut {
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  border: 0;
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--c-mist);
  background: linear-gradient(0deg, rgba(6, 26, 46, .94), transparent);
}

/* 轨迹装饰 */
.trajectory {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.trajectory::before {
  content: "";
  position: absolute;
  left: -40%;
  top: 38%;
  width: 180%;
  height: 1px;
  transform: rotate(-18deg);
  background: linear-gradient(90deg, transparent, rgba(180, 255, 61, .45) 50%, transparent);
}

.trajectory::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: 22%;
  width: 46%;
  height: 1px;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 106, 26, .5));
}

/* ---------- 8. 动效 ---------- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease) var(--reveal-delay, 0ms),
    transform .6s var(--ease) var(--reveal-delay, 0ms);
}

html[data-motion="on"] .reveal {
  opacity: 0;
  transform: translateY(24px);
}

html[data-motion="on"] .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-8, .col-4 { grid-column: span 12; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  body { font-size: 15.5px; }

  .site-header__inner {
    min-height: 64px;
    padding-block: 10px;
    gap: 12px;
  }

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    display: block;
    padding: 0 var(--gutter);
    background: linear-gradient(180deg, rgba(14, 44, 74, .99), rgba(6, 26, 46, .99));
    border-bottom: 1px solid rgba(201, 162, 75, .35);
    box-shadow: 0 24px 40px -30px rgba(0, 0, 0, .95);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .3s var(--ease), visibility .3s var(--ease),
      padding .3s var(--ease);
  }

  .site-nav[data-open="true"] {
    max-height: min(74vh, 520px);
    overflow-y: auto;
    visibility: visible;
    padding: 14px var(--gutter) 22px;
  }

  .site-nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    align-items: stretch;
  }

  .site-nav__link,
  .site-header[data-scrolled="true"] .site-nav__link {
    padding: 13px 14px;
    font-size: 15px;
    background: rgba(22, 73, 122, .35);
    border: 1px solid rgba(22, 73, 122, .8);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  }

  .site-nav__link[aria-current="page"] { background: var(--c-pulse); }

  .site-header[data-scrolled="true"] .header-quick { display: none; }

  .dashboard { padding: 16px 18px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }

  h1 { font-size: clamp(28px, 8vw, 34px); }
  h2 { font-size: clamp(21px, 6.4vw, 26px); }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .grid--main { grid-template-columns: minmax(0, 1fr); }
  .col-8, .col-4 { grid-column: span 1; }

  .brand__sub { display: none; }
  .site-header[data-scrolled="true"] .brand__name { font-size: 17px; }

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

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

  .stat-strip > * { padding: 14px 16px; }
}

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

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

  html[data-motion="on"] .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .dashboard:hover,
  .btn:hover,
  .brand:hover .brand__mark { transform: none; }

  .site-header__progress { transition: none; }
}
