/* ==========================================================================
   凯云体育 · 共享站点样式 /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, li, figure, blockquote, dl, dd, hr {
  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; cursor: pointer; }

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

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --blue-900: #08203A;
  --blue-700: #0F3557;
  --blue-400: #2E6C9E;
  --green-600: #0E9E6E;
  --green-200: #8FE3C0;
  --orange-500: #FF6A2B;
  --orange-100: #FFE0D2;
  --mist: #F3F7FA;
  --paper: #FFFFFF;
  --ink: #16232F;
  --stone: #5B6E7E;
  --line: #D6E2EB;

  --ink-on-dark: #EAF2F8;
  --ink-on-dark-soft: #A9C2D6;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --header-h: 76px;
  --w-max: 1240px;
  --w-narrow: 820px;

  --ease: cubic-bezier(.22, .61, .36, 1);

  --shadow-soft: 0 8px 24px rgba(8, 32, 58, .06);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.01em;
}

p { text-wrap: pretty; }

strong { font-weight: 800; }

main { display: block; }

#main-content { scroll-margin-top: calc(var(--header-h) + 16px); }
#main-content:focus { outline: none; }

::selection {
  background: var(--green-600);
  color: #04231A;
}

/* 通用焦点态 */
:where(a, button, [tabindex], summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
}

.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;
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 300;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--orange-500);
  color: #2A0C00;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: top .2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { top: 12px; }

/* ---------- 5. 布局容器 ---------- */
.container,
.header-inner,
.footer-inner {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.container--narrow { max-width: var(--w-narrow); }

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

.section--dark { background: var(--blue-900); color: var(--ink-on-dark); }
.section--deep { background: var(--blue-700); color: var(--ink-on-dark); }
.section--mist { background: var(--mist); color: var(--ink); }
.section--paper { background: var(--paper); color: var(--ink); }

.section--dark .chapter-lead,
.section--deep .chapter-lead { color: var(--ink-on-dark-soft); }

.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin-block: clamp(24px, 4vw, 40px);
}
.section--dark .rule,
.section--deep .rule { background: rgba(214, 226, 235, .18); }

/* 网格 */
.grid-7-5,
.grid-8-4,
.grid-5-7,
.grid-3 {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
  grid-template-columns: 1fr;
}

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

/* ---------- 6. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--ink-on-dark);
  background:
    linear-gradient(180deg, rgba(8, 32, 58, .94) 0%, rgba(8, 32, 58, .68) 74%, rgba(8, 32, 58, .26) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color .32s var(--ease), box-shadow .32s var(--ease), -webkit-backdrop-filter .32s var(--ease);
}

.site-header[data-scrolled="true"] {
  background: rgba(8, 32, 58, .97);
  box-shadow: 0 1px 0 rgba(143, 227, 192, .18), 0 12px 32px rgba(8, 32, 58, .22);
}

.site-header[data-compact="true"] { --header-h: 60px; background: var(--blue-900); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  min-height: var(--header-h);
  transition: min-height .32s var(--ease);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding-block: 8px;
  border-radius: var(--radius-sm);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--green-600);
  color: #04231A;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: transform .32s var(--ease), background-color .24s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); background: var(--green-200); }

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

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--green-200);
}

/* 主导航 */
.primary-nav { margin-inline: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.4vw, 22px);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 4px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(234, 242, 248, .82);
  transition: color .24s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-600);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible { color: #FFFFFF; }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: #FFFFFF; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* 头部右侧 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(143, 227, 192, .42);
  background: rgba(14, 158, 110, .16);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--green-200);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 0 rgba(14, 158, 110, .5);
  animation: kaiyun-pulse 2.6s var(--ease) infinite;
}

@keyframes kaiyun-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(14, 158, 110, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(14, 158, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 158, 110, 0); }
}

/* 目录开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(234, 242, 248, .34);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-on-dark);
  transition: border-color .24s var(--ease), background-color .24s var(--ease);
}
.nav-toggle:hover { border-color: var(--green-200); background: rgba(143, 227, 192, .12); }

.nav-toggle-bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .24s var(--ease);
}
.site-header[data-open="true"] .nav-toggle-bars span:first-child { transform: translateY(3px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* 滚动进度轨 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--green-600) 0%, var(--green-200) 58%, var(--orange-500) 100%);
  border-radius: 0 3px 3px 0;
  pointer-events: none;
  transition: transform .12s linear;
}

/* ---------- 7. 按钮与胶囊 ---------- */
.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-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.3;
  transition: background-color .24s var(--ease), color .24s var(--ease),
              border-color .24s var(--ease), transform .24s var(--ease);
}

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

.btn--primary {
  background: var(--green-600);
  color: #04231A;
}
.btn--primary:hover,
.btn--primary:focus-visible { background: var(--green-200); color: #04231A; }

.btn--ghost {
  border-color: rgba(234, 242, 248, .42);
  color: var(--ink-on-dark);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(143, 227, 192, .14);
  border-color: var(--green-200);
  color: #FFFFFF;
}

.btn--orange {
  background: var(--orange-500);
  color: #2A0C00;
}
.btn--orange:hover,
.btn--orange:focus-visible { background: var(--orange-100); color: #2A0C00; }

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--stone);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background-color .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease);
}
.pill:hover { border-color: var(--green-600); color: var(--green-600); }
.pill[aria-pressed="true"],
.pill--active {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #04231A;
  font-weight: 800;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  background: var(--orange-100);
  color: #9A3A10;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.tag--green { background: rgba(14, 158, 110, .14); color: #0A6E4F; }
.tag--on-dark { background: rgba(143, 227, 192, .16); color: var(--green-200); }

/* ---------- 8. 章节单元 ---------- */
.chapter {
  display: grid;
  gap: clamp(14px, 2vw, 26px);
  align-content: start;
}

.chapter-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--orange-500);
}

.chapter-title {
  font-size: clamp(40px, 7.5vw, 96px);
  font-weight: 200;
  line-height: .96;
  letter-spacing: -.03em;
}

.chapter-lead {
  max-width: 38ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--stone);
}

.color-band {
  height: 10px;
  width: min(100%, 520px);
  border-radius: var(--radius-pill);
  margin-block: clamp(24px, 4vw, 40px);
}
.color-band--green { background: var(--green-600); }
.color-band--orange { background: var(--orange-500); }
.color-band--inset { margin-left: clamp(24px, 6vw, 96px); }

/* ---------- 9. 卡片 ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card--lift:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 158, 110, .42);
  box-shadow: var(--shadow-soft);
}

.card--dark {
  background: var(--blue-700);
  border-color: rgba(143, 227, 192, .22);
  color: var(--ink-on-dark);
}

.card--signal { box-shadow: inset 3px 0 0 var(--orange-500); }

.card--offset { margin-inline-start: clamp(0px, 3vw, 48px); }

.card-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--orange-500);
}

.card-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}

.card-text { font-size: 15px; line-height: 1.8; color: var(--stone); }
.card--dark .card-text { color: var(--ink-on-dark-soft); }

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

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--green-600);
}
.stat-value--lg { font-size: clamp(32px, 5vw, 64px); }
.section--dark .stat-value,
.section--deep .stat-value { color: var(--green-200); }

.stat-label {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--stone);
}
.section--dark .stat-label,
.section--deep .stat-label { color: var(--ink-on-dark-soft); }

/* ---------- 11. 折叠组 ---------- */
.disclosure {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  overflow: hidden;
  transition: border-color .24s var(--ease), box-shadow .24s var(--ease);
}
.disclosure + .disclosure { margin-top: 12px; }

.disclosure.is-open {
  border-color: rgba(14, 158, 110, .5);
  box-shadow: var(--shadow-soft);
}

.disclosure-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
}

.disclosure-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--orange-500);
  flex: 0 0 auto;
}

.disclosure-title {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--ink);
}

.disclosure-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.disclosure-icon::before,
.disclosure-icon::after {
  content: "";
  position: absolute;
  background: var(--green-600);
  border-radius: 2px;
  transition: transform .24s var(--ease);
}
.disclosure-icon::before { left: 0; right: 0; top: 7px; height: 2px; }
.disclosure-icon::after { top: 0; bottom: 0; left: 7px; width: 2px; }
.disclosure.is-open .disclosure-icon::after { transform: rotate(90deg); }

.disclosure-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background: var(--mist);
  transition: max-height .24s var(--ease), opacity .24s var(--ease),
              background-color .24s var(--ease), visibility 0s linear .24s;
}
.disclosure.is-open .disclosure-panel {
  max-height: min(72vh, 720px);
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  background: var(--paper);
  transition: max-height .24s var(--ease), opacity .24s var(--ease),
              background-color .24s var(--ease), visibility 0s linear 0s;
}

.disclosure-body {
  padding: 2px 20px 22px;
  max-width: 38em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--stone);
}

/* ---------- 12. 图片容器 ---------- */
.figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(140deg, var(--blue-700) 0%, var(--blue-900) 100%);
  border: 1px solid var(--line);
}
.figure--on-dark { border-color: rgba(143, 227, 192, .22); }

.figure-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(.68) contrast(1.04);
}
.figure--wide .figure-img { aspect-ratio: 21 / 9; }
.figure--portrait .figure-img { aspect-ratio: 4 / 5; }
.figure--square .figure-img { aspect-ratio: 1 / 1; }

.figure-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(8, 32, 58, .8);
  color: var(--green-200);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
}

/* ---------- 13. 面包屑 ---------- */
.breadcrumb { font-size: 12px; letter-spacing: .08em; }

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

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--stone);
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--line);
}

.breadcrumb-link {
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.breadcrumb-link:hover { color: var(--green-600); border-color: currentColor; }

.breadcrumb-item[aria-current="page"] { color: var(--ink); font-weight: 700; }

.breadcrumb--on-dark { color: var(--ink-on-dark-soft); }
.breadcrumb--on-dark .breadcrumb-item { color: var(--ink-on-dark-soft); }
.breadcrumb--on-dark .breadcrumb-item + .breadcrumb-item::before { color: rgba(214, 226, 235, .32); }
.breadcrumb--on-dark .breadcrumb-link:hover { color: var(--green-200); }
.breadcrumb--on-dark .breadcrumb-item[aria-current="page"] { color: #FFFFFF; }

/* ---------- 14. 内页卷首 ---------- */
.page-head {
  background: var(--blue-900);
  color: var(--ink-on-dark);
  padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -40%;
  width: 60%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(143, 227, 192, .18);
  pointer-events: none;
}

.page-head-inner { display: grid; gap: clamp(16px, 2vw, 24px); position: relative; z-index: 1; }

.page-head-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 200;
  letter-spacing: -.03em;
  line-height: 1.02;
}

.page-head-lead {
  max-width: 40ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-on-dark-soft);
}

.page-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--green-200);
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--blue-900);
  color: #C7D8E5;
  padding-top: clamp(48px, 7vw, 88px);
  margin-top: 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 62%;
  background: linear-gradient(90deg, var(--green-600) 0 58%, var(--orange-500) 58% 100%);
  border-radius: 0 0 6px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .footer-grid { grid-template-columns: 1.5fr .8fr .9fr 1.15fr; }
}

.footer-brand .brand { margin-bottom: 16px; }
.brand--footer .brand-name { color: #FFFFFF; }

.footer-tagline {
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.8;
  color: #9FB8CA;
}

.footer-hours {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--green-200);
}

.footer-col-title {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--green-200);
}

.footer-list { display: grid; gap: 10px; }

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: #C7D8E5;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible { color: #FFFFFF; border-color: var(--orange-500); }

.footer-contact { gap: 14px; }

.contact-item { display: grid; gap: 2px; }

.contact-label {
  font-size: 11px;
  letter-spacing: .16em;
  color: #7E9AB0;
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #DCE9F2;
  overflow-wrap: anywhere;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-block: 20px 28px;
  border-top: 1px solid rgba(214, 226, 235, .16);
  font-size: 12px;
  letter-spacing: .06em;
  color: #8FA9BD;
}

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

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

.footer-legal-link {
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-legal-link:hover,
.footer-legal-link:focus-visible { color: var(--green-200); border-color: currentColor; }

/* ---------- 16. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .42s var(--ease), transform .42s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

html:not(.js) [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ---------- 17. 响应式：头部与通用 ---------- */
@media (max-width: 1119px) {
  .status-pill { display: none; }
  .header-actions { gap: 8px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    margin: 0;
    padding-inline: clamp(16px, 4vw, 40px);
    background: var(--blue-900);
    border-bottom: 1px solid rgba(143, 227, 192, .2);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .32s var(--ease), visibility 0s linear .32s;
  }

  .site-header[data-open="true"] .primary-nav {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    visibility: visible;
    transition: max-height .32s var(--ease), visibility 0s linear 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 8px 24px;
  }

  .nav-link {
    display: block;
    padding: 16px 4px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid rgba(214, 226, 235, .14);
  }

  .nav-link::after { display: none; }

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

  .header-actions { margin-left: auto; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
}

@media (max-width: 560px) {
  .btn--cta { display: none; }
  .brand-sub { font-size: 10px; letter-spacing: .16em; }
  .brand-name { font-size: 15px; }
}

@media (max-width: 719px) {
  .footer-meta { justify-content: flex-start; }
}

/* ---------- 18. 减弱动效 ---------- */
@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;
  }

  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .status-dot { animation: none; }
  .btn:hover, .card--lift:hover, .brand:hover .brand-mark { transform: none; }
}
