/* ============================================================
   博鱼中心 · 博鱼CN官网  共享样式  /assets/site.css
   框架导航 + Bento 底板 + 深海/鱼跃双主色体系
   ============================================================ */

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

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

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

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

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

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

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 主色 */
  --deep-ink: #041C30;
  --deep-blue: #0B4A73;
  --sea-blue: #2E8FB0;
  --wave-cyan: #57C6C2;
  --leap-orange: #FF6B1A;
  --coral: #FF7A8A;
  --sand-gold: #E8C88A;
  --glass: rgba(255, 255, 255, 0.14);
  --paper: #F6F2EA;
  --ink: #14232E;
  --ink-soft: #55666F;

  /* 线 */
  --line-cyan: rgba(87, 198, 194, 0.28);
  --line-soft: rgba(246, 242, 234, 0.14);
  --line-ink: rgba(11, 74, 115, 0.16);

  /* 尺度 */
  --rail-w: 176px;
  --bar-h: 64px;
  --dock-h: 56px;
  --gap: clamp(16px, 2.2vw, 32px);
  --pad-x: clamp(18px, 4vw, 56px);
  --shell: 1320px;
  --radius: 14px;
  --radius-sm: 8px;

  /* 字体 */
  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: var(--font-display);
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 1024px) and (max-width: 1279px) {
  :root { --rail-w: 152px; }
}

/* ---------- 3. 基础与背景分区 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--deep-ink);
  background-image:
    radial-gradient(120% 78% at 88% -12%, rgba(46, 143, 176, 0.34), transparent 62%),
    radial-gradient(90% 62% at -12% 104%, rgba(87, 198, 194, 0.16), transparent 56%),
    linear-gradient(180deg, #041C30 0%, #06283F 46%, #041C30 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* 页面外框：细线 + 刻度，桌面专属 */
@media (min-width: 1024px) {
  body::after {
    content: "";
    position: fixed;
    inset: 12px 12px 12px calc(var(--rail-w) + 12px);
    border: 1px solid rgba(87, 198, 194, 0.16);
    border-radius: 4px;
    pointer-events: none;
    z-index: 45;
  }
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

@media (max-width: 1023.98px) {
  body { padding-top: var(--bar-h); }
}

#main-content {
  display: block;
  padding: clamp(20px, 3vw, 40px) var(--pad-x) clamp(40px, 6vw, 80px);
  scroll-margin-top: calc(var(--bar-h) + 16px);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
}

/* ---------- 4. 工具类 ---------- */
.visually-hidden {
  position: absolute !important;
  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;
}

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

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

::selection { background: var(--leap-orange); color: var(--deep-ink); }

/* ---------- 5. 排版 ---------- */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.display {
  margin: 0 0 0.4em;
  font-size: clamp(40px, 6.6vw, 88px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display strong,
.display b { font-weight: 900; }

.display em {
  font-style: normal;
  color: var(--leap-orange);
  font-weight: 900;
}

.index-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wave-cyan);
}

.index-label::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--line-cyan), transparent);
}

.index-label--onPaper { color: var(--deep-blue); }
.index-label--onPaper::after { background: linear-gradient(90deg, var(--line-ink), transparent); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.24s var(--ease), background-color 0.24s var(--ease),
    border-color 0.24s var(--ease), color 0.24s var(--ease);
}

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

.btn--primary:hover { background: #FF8340; border-color: #FF8340; transform: translateY(-2px); }

.btn--ghost {
  background: var(--glass);
  border-color: var(--line-cyan);
  color: var(--paper);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(87, 198, 194, 0.18);
  border-color: var(--wave-cyan);
  transform: translateY(-2px);
}

.btn--small { padding: 6px 13px; font-size: 12px; }
.btn--block { width: 100%; }

/* ---------- 7. 头部 / 框架导航 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 130;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--leap-orange);
  color: var(--deep-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.site-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(87, 198, 194, 0.16);
  pointer-events: none;
  z-index: 95;
}

.site-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--wave-cyan), var(--leap-orange));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: var(--rail-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 18px 96px;
  background: linear-gradient(180deg, #041C30 0%, #062A44 50%, #04202F 100%);
  border-right: 1px solid var(--line-cyan);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 100%;
  background-image: repeating-linear-gradient(to bottom, rgba(232, 200, 138, 0.5) 0 1px, transparent 1px 16px);
  opacity: 0.45;
  pointer-events: none;
}

.rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  text-decoration: none;
  color: var(--paper);
}

.brand__mark {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.brand__sub {
  font-size: 12px;
  line-height: 1.3;
  color: rgba(246, 242, 234, 0.66);
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--sand-gold);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line-cyan);
  border-radius: 999px;
  background: var(--glass);
  color: var(--paper);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.nav-toggle:hover { border-color: var(--wave-cyan); background: rgba(87, 198, 194, 0.16); }

.nav-toggle__bars {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--wave-cyan);
  transition: transform 0.26s var(--ease), top 0.26s var(--ease);
}

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

.site-header[data-open] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

.nav-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}

.nav { min-width: 0; }

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: rgba(246, 242, 234, 0.74);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.nav__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--sand-gold);
  opacity: 0.85;
}

.nav__label { min-width: 0; }

.nav__link:hover {
  color: #FFFFFF;
  background: rgba(87, 198, 194, 0.12);
  border-left-color: var(--wave-cyan);
}

.nav__link[aria-current="page"] {
  color: #FFFFFF;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(255, 107, 26, 0.28), rgba(255, 107, 26, 0));
  border-left-color: var(--leap-orange);
}

.nav__link[aria-current="page"] .nav__num { color: var(--leap-orange); opacity: 1; }

.rail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-actions__title {
  margin: 0 0 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wave-cyan);
}

.rail-track {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(246, 242, 234, 0.55);
}

.rail-track__value { font-size: 12px; color: var(--wave-cyan); }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 7vw, 96px);
  padding: clamp(32px, 5vw, 64px) var(--pad-x) calc(var(--dock-h) + 32px);
  background: linear-gradient(180deg, #041C30 0%, #062A44 58%, #041C30 100%);
  border-top: 1px solid var(--line-cyan);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 8px;
  background-image: repeating-linear-gradient(90deg, rgba(232, 200, 138, 0.5) 0 1px, transparent 1px 22px);
  opacity: 0.5;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--shell);
  margin-inline: auto;
}

.footer-brand__name {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.footer-brand__name a { text-decoration: none; color: inherit; }
.footer-brand__name a:hover { color: var(--leap-orange); }

.footer-brand__tag {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--sand-gold);
}

.footer-brand__note {
  margin: 0;
  max-width: 30em;
  font-size: 14px;
  color: rgba(246, 242, 234, 0.62);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.footer-col__num {
  font-size: 11px;
  font-weight: 400;
  color: var(--sand-gold);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-list--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: rgba(246, 242, 234, 0.74);
  text-decoration: none;
  transition: color 0.22s var(--ease);
}

.footer-link:hover { color: var(--leap-orange); }

.footer-link__num {
  font-size: 10px;
  color: rgba(87, 198, 194, 0.8);
}

.footer-contact {
  max-width: var(--shell);
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(246, 242, 234, 0.82);
}

.contact-line__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sea-blue);
  min-width: 64px;
}

.contact-line__value { min-width: 0; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line-cyan);
  border-radius: 999px;
  background: rgba(87, 198, 194, 0.12);
  color: var(--paper);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.copy-btn:hover { background: rgba(87, 198, 194, 0.22); border-color: var(--wave-cyan); }

.copy-btn__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--wave-cyan);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--shell);
  margin: clamp(24px, 4vw, 44px) auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: rgba(246, 242, 234, 0.58);
}

.footer-legal__line { margin: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid rgba(232, 200, 138, 0.4);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--sand-gold);
  white-space: nowrap;
}

.badge--ghost {
  border-color: var(--line-cyan);
  color: rgba(246, 242, 234, 0.72);
}

.footer-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  height: var(--dock-h);
  min-height: var(--dock-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(14px, 3vw, 28px);
  background: rgba(4, 28, 48, 0.94);
  border-top: 1px solid var(--line-cyan);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--paper);
}

.footer-dock__text {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: rgba(246, 242, 234, 0.72);
}

.footer-dock__spacer { flex: 1 1 auto; }

.dock-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--line-cyan);
  border-radius: 999px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.dock-link:hover { border-color: var(--wave-cyan); background: rgba(87, 198, 194, 0.16); transform: translateY(-1px); }

.dock-link--primary {
  background: var(--leap-orange);
  border-color: var(--leap-orange);
  color: var(--deep-ink);
}

.dock-link--primary:hover { background: #FF8340; border-color: #FF8340; }

/* ---------- 9. 通用组件 ---------- */
.section { padding-block: clamp(28px, 4.6vw, 60px); }

.section + .section { border-top: 1px solid var(--line-soft); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

.section-head__title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.section-head__title strong { font-weight: 800; }

.section-head__note {
  margin: 0;
  max-width: 32em;
  font-size: 14px;
  color: rgba(246, 242, 234, 0.62);
}

.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--tight { gap: 12px; }

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

.bento > * { grid-column: span 12; }

.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--deep-blue);
}

.card__text {
  margin: 0;
  max-width: 34em;
  font-size: 15px;
  color: var(--ink-soft);
}

.card--glass {
  background: var(--glass);
  border-color: var(--line-cyan);
  color: var(--paper);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card--glass .card__title { color: var(--paper); }
.card--glass .card__text { color: rgba(246, 242, 234, 0.7); }

.card--deep {
  background: linear-gradient(150deg, #062A44, #041C30);
  border-color: var(--line-cyan);
  color: var(--paper);
}

.card--deep .card__title { color: var(--paper); }
.card--deep .card__text { color: rgba(246, 242, 234, 0.7); }

.card--link {
  display: block;
  text-decoration: none;
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease);
}

.card--link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(4, 28, 48, 0.7);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(87, 198, 194, 0.35);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--wave-cyan);
  background: rgba(87, 198, 194, 0.18);
}

.tag--orange { color: #FFB07A; background: rgba(255, 107, 26, 0.16); border-color: rgba(255, 107, 26, 0.42); }
.tag--coral { color: #FFB3BD; background: rgba(255, 122, 138, 0.18); border-color: rgba(255, 122, 138, 0.42); }
.tag--sand { color: var(--sand-gold); background: rgba(232, 200, 138, 0.16); border-color: rgba(232, 200, 138, 0.4); }
.tag--dark { color: var(--deep-blue); background: rgba(11, 74, 115, 0.1); border-color: rgba(11, 74, 115, 0.24); }

.breadcrumb { margin: 0 0 20px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(246, 242, 234, 0.6);
}

.breadcrumb__list a { color: var(--wave-cyan); text-decoration: none; }
.breadcrumb__list a:hover { color: var(--leap-orange); }
.breadcrumb__sep { color: rgba(246, 242, 234, 0.3); }
.breadcrumb__list [aria-current="page"] { color: var(--sand-gold); }

.prose {
  padding: clamp(20px, 3vw, 38px);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.prose h2 { color: var(--deep-blue); font-size: clamp(20px, 2.2vw, 28px); }
.prose h3 { color: var(--deep-blue); font-size: 18px; }
.prose p, .prose li { max-width: 36em; font-size: 17px; line-height: 1.75; }
.prose a { color: var(--deep-blue); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--leap-orange); }
.prose small, .prose .note { color: var(--ink-soft); font-size: 14px; }
.prose ul, .prose ol { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.prose ol { list-style: decimal; }

.figure {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius);
  background: linear-gradient(140deg, #062A44 0%, #0B4A73 55%, #041C30 100%);
}

.figure img,
.figure video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--16x9 { aspect-ratio: 16 / 9; }
.figure--4x3 { aspect-ratio: 4 / 3; }
.figure--1x1 { aspect-ratio: 1 / 1; }
.figure--3x4 { aspect-ratio: 3 / 4; }
.figure--wide { aspect-ratio: 21 / 9; }

.figure--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(87, 198, 194, 0.14) 0 2px, transparent 2px 14px);
}

.figure__layer {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(4, 28, 48, 0.88), rgba(4, 28, 48, 0));
}

.figure__caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.figure__caption--onDark { color: rgba(246, 242, 234, 0.62); }

.tick-rule {
  height: 8px;
  border: 0;
  margin: 0;
  background-image: repeating-linear-gradient(90deg, rgba(232, 200, 138, 0.5) 0 1px, transparent 1px 22px);
}

.wave-rule {
  height: 12px;
  border: 0;
  margin: 0;
  background-image: radial-gradient(circle at 6px 12px, transparent 5px, rgba(87, 198, 194, 0.4) 5px 6px, transparent 6px);
  background-size: 12px 12px;
  background-repeat: repeat-x;
}

/* ---------- 10. 揭示动效 ---------- */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
}

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

/* ---------- 11. 响应式 ---------- */
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
}

@media (min-width: 1024px) {
  .nav__list { display: flex; flex-direction: column; column-gap: 0; }
  .nav-panel { flex: 1 1 auto; }
  .rail-actions { margin-top: auto; }
  .footer-grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); }
  .footer-dock { left: var(--rail-w); }
}

@media (max-width: 1023.98px) {
  .site-header {
    right: 0;
    bottom: auto;
    width: auto;
    height: auto;
    display: block;
    padding: 0;
    overflow: visible;
    background: linear-gradient(180deg, rgba(4, 28, 48, 0.98), rgba(4, 28, 48, 0.93));
    border-right: 0;
    border-bottom: 1px solid var(--line-cyan);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

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

  .rail-top {
    min-height: var(--bar-h);
    padding: 0 18px;
  }

  .brand { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
  .brand__mark { font-size: 15px; }
  .brand__sub { font-size: 11px; }
  .brand__tag { font-size: 10px; letter-spacing: 0.24em; }

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

  .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #041C30, #062A44);
    border-bottom: 1px solid var(--line-cyan);
    transition: max-height 0.32s var(--ease);
  }

  .site-header[data-open] .nav-panel {
    max-height: min(78vh, 620px);
    overflow-y: auto;
  }

  .nav-panel > .nav,
  .nav-panel > .rail-actions { padding-inline: 18px; }

  .nav-panel > .nav { padding-block: 14px 4px; }
  .nav-panel > .rail-actions { padding-block: 0 22px; }

  .nav__list { gap: 0; }

  .nav__link {
    padding: 13px 4px;
    border-left: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    font-size: 15px;
  }

  .nav__link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(255, 107, 26, 0.2), transparent 70%);
    border-left: 0;
    padding-left: 10px;
  }

  .rail-actions { margin-top: 16px; }

  .site-footer::before { opacity: 0.35; }
}

@media (max-width: 899.98px) {
  .footer-dock .badge { display: none; }
}

@media (max-width: 639.98px) {
  .footer-dock__text { display: none; }
  .footer-dock__spacer { display: none; }
  .footer-dock { justify-content: space-between; gap: 8px; }
  .dock-link { padding: 6px 12px; font-size: 12px; }
  .contact-line__label { min-width: 100%; }
}

/* ---------- 12. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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

  .site-progress__bar { transition: none !important; }
  .nav-panel { transition: none !important; }
}
