/* ===== 变量与重置 ===== */
:root {
  --ink: #0A1E3F;
  --ink-deep: #071633;
  --ink-soft: #14294A;
  --cyan: #00D4FF;
  --orange: #FF6A00;
  --gold: #FFB400;
  --cloud: #F2F4F8;
  --graphite: #212833;
  --white: #FFFFFF;
  --mist: #DCE6F2;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --shadow-card: 0 12px 36px rgba(7, 22, 51, 0.08);
  --font-head: Georgia, "Noto Serif SC", "Songti SC", serif;
  --font-body: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--cloud);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { text-wrap: pretty; }
ul, ol { list-style: none; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--orange); }
button { font: inherit; background: none; border: 0; }
img, svg, canvas { display: block; max-width: 100%; }
::selection { background: var(--cyan); color: var(--ink); }
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 布局工具 ===== */
.container-x {
  width: 100%;
  max-width: 1380px;
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 40px);
}
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 28px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-index {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  color: var(--orange);
  white-space: nowrap;
  padding-bottom: 6px;
}
.section-title { flex: 0 0 100%; order: 2; }
.section-desc { max-width: 520px; color: inherit; opacity: 0.85; order: 3; }
.section-dark { background: var(--ink); color: var(--mist); }
.section-dark .section-title { color: var(--white); }
.section-cloud { background: var(--cloud); }
.section-ink { background: var(--ink-deep); color: var(--mist); }
.grid { display: grid; gap: 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)); }
.card {
  background: var(--white);
  border: 1px solid rgba(10, 30, 63, 0.06);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(7, 22, 51, 0.13); }
@media (max-width: 991px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
#main-content { scroll-margin-top: 84px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), #ff8a3d);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(255, 106, 0, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255, 106, 0, 0.38); color: var(--white); }
.btn-ghost { background: transparent; border-color: rgba(0, 212, 255, 0.45); color: var(--cyan); }
.btn-ghost:hover { background: rgba(0, 212, 255, 0.12); border-color: var(--cyan); color: var(--cyan); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 26px rgba(255, 180, 0, 0.22); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255, 180, 0, 0.32); color: var(--ink); }

/* ===== 标签与数据组件 ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  background: rgba(0, 212, 255, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.28);
}
.tag-gold { background: rgba(255, 180, 0, 0.1); color: var(--gold); border-color: rgba(255, 180, 0, 0.35); }
.tag-orange { background: rgba(255, 106, 0, 0.12); color: var(--orange); border-color: rgba(255, 106, 0, 0.4); }
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: rgba(220, 230, 242, 0.08);
  border: 1px solid rgba(220, 230, 242, 0.16);
  border-radius: var(--radius-md);
  padding: 10px 16px;
}
.chip strong { font-size: 1.25rem; color: var(--orange); }
.coord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  white-space: nowrap;
}
.coord::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.6);
}
.legend {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(220, 230, 242, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.18);
}
.legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--mist); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px rgba(0, 212, 255, 0.4); }
.legend-dot.orange { background: var(--orange); box-shadow: 0 0 6px rgba(255, 106, 0, 0.4); }
.legend-dot.gold { background: var(--gold); box-shadow: 0 0 6px rgba(255, 180, 0, 0.4); }
.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.4), rgba(255, 106, 0, 0.4), transparent);
  margin-block: 32px;
}
.data-watermark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 12rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 212, 255, 0.22);
  user-select: none;
  pointer-events: none;
}
.data-grid {
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.blink { animation: scoreBling 1.6s ease-in-out infinite; }
@keyframes scoreBling { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ===== 面包屑与页面头图 ===== */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.8125rem; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; font-family: var(--font-mono); color: var(--cyan); opacity: 0.7; margin-inline: 6px; }
.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--gold); }
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 6vw, 70px);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.22), transparent 66%);
  right: -120px;
  top: -190px;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .breadcrumb { margin-bottom: 20px; }
.page-hero h1 { color: var(--white); margin: 14px 0 12px; }
.page-hero .lead { max-width: 560px; color: var(--mist); margin-bottom: 24px; }

/* ===== 头部 ===== */
.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 300;
  display: inline-block;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 30, 63, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.16);
}
.header-bar { height: 72px; }
.header-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding-inline: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; min-width: 0; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 auto; }
.brand-svg { width: 100%; height: 100%; }
.brand-svg .b-rect { fill: var(--ink-deep); stroke: var(--cyan); stroke-width: 1.4; }
.brand-svg .b-orbit { fill: none; stroke: var(--orange); stroke-width: 2.4; }
.brand-svg .b-core { fill: var(--gold); }
.brand-svg .b-axis { fill: none; stroke: var(--cyan); stroke-width: 1.4; stroke-linecap: round; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 0.9375rem; font-weight: 800; letter-spacing: 0.03em; color: var(--white); white-space: nowrap; }
.brand-tag { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.2em; color: var(--cyan); white-space: nowrap; }
.command-bar { margin-left: auto; }
.command-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: min(360px, 26vw);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(220, 230, 242, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.22);
  color: var(--mist);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.command-search:hover { border-color: var(--cyan); background: rgba(0, 212, 255, 0.08); color: var(--mist); }
.icon-search { width: 16px; height: 16px; flex: 0 0 auto; color: var(--cyan); }
.command-placeholder { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-key {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 180, 0, 0.14);
  border: 1px solid rgba(255, 180, 0, 0.32);
  color: var(--gold);
  white-space: nowrap;
}
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
}
.status-chip i {
  font-style: normal;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(0, 212, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}
.nav-toggle {
  display: none;
  position: relative;
  z-index: 5;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(220, 230, 242, 0.06);
  border-radius: 14px;
  cursor: pointer;
}
.toggle-line { display: block; width: 20px; height: 2px; background: var(--cyan); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 导航 ===== */
.site-nav { z-index: 90; }
.nav-panel { min-height: 0; overflow: hidden; }
.nav-list { counter-reset: navIndex; display: flex; }
.nav-item { width: 100%; }
.nav-link {
  counter-increment: navIndex;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--mist);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.nav-link::before {
  content: "0" counter(navIndex);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  opacity: 0.75;
}
.nav-link:hover { background: rgba(0, 212, 255, 0.12); color: var(--white); }
.nav-link[aria-current="page"] {
  background: rgba(255, 106, 0, 0.16);
  border-color: rgba(255, 106, 0, 0.38);
  color: var(--white);
}
.nav-link[aria-current="page"]::before { color: var(--orange); opacity: 1; }
.nav-rail-foot { display: none; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(220, 230, 242, 0.08); gap: 12px; }
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  background: var(--ink-deep);
  color: var(--mist);
  overflow: hidden;
  border-top: 1px solid rgba(0, 212, 255, 0.18);
}
.site-footer::before {
  content: "BOAO";
  position: absolute;
  right: -16px;
  bottom: -34px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(110px, 22vw, 240px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(0, 212, 255, 0.035);
  pointer-events: none;
}
.footer-main { position: relative; z-index: 1; }
.footer-col { min-width: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
  gap: 48px 40px;
  padding-block: clamp(56px, 8vw, 88px) 48px;
}
.footer-brand-col { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.brand-footer .brand-name { color: var(--white); }
.footer-trust { max-width: 280px; font-size: 0.9375rem; line-height: 1.75; color: var(--mist); }
.footer-legend { margin-top: 2px; }
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-links li + li { margin-top: 10px; }
.footer-links a {
  position: relative;
  display: inline-block;
  color: var(--mist);
  font-size: 0.875rem;
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.footer-links a:hover { color: var(--cyan); transform: translateX(3px); }
.footer-links a:hover::after { transform: scaleX(1); }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact li { display: flex; flex-direction: column; gap: 2px; }
.footer-contact .label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.75;
}
.footer-contact a { color: var(--mist); font-size: 0.875rem; }
.footer-contact a:hover { color: var(--cyan); }
.footer-address { font-size: 0.875rem; line-height: 1.6; max-width: 220px; }
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(220, 230, 242, 0.1);
  padding-block: 18px;
}
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 0.8125rem; color: rgba(220, 230, 242, 0.72); }
.footer-bottom-inner p { margin: 0; }
.to-top {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.32);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease;
}
.to-top:hover { background: var(--cyan); color: var(--ink); transform: translateY(-2px); }

/* ===== 桌面端：左侧命令导轨 ===== */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .command-bar { margin-inline: auto; }
  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    bottom: 0;
    width: 132px;
    display: flex;
    flex-direction: column;
    padding: 22px 12px 18px;
    background: var(--ink-deep);
    border-right: 1px solid rgba(0, 212, 255, 0.16);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .nav-list { flex-direction: column; gap: 4px; min-height: 0; }
  .nav-link { flex-direction: column; align-items: flex-start; padding: 12px 14px; font-size: 0.8125rem; line-height: 1.3; }
  .nav-link::before { margin-bottom: 3px; }
  .nav-rail-foot { display: flex; flex-direction: column; }
  #main-content { margin-left: 132px; }
  .site-footer { margin-left: 132px; }
}

/* ===== 移动端：下拉导航 ===== */
@media (max-width: 959px) {
  .header-bar { height: 64px; }
  .header-bar-inner { padding-inline: 16px; gap: 10px; }
  .nav-toggle { display: flex; }
  .command-bar { margin-left: auto; }
  .command-search {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 14px;
    border-color: rgba(0, 212, 255, 0.28);
  }
  .command-placeholder, .command-key { display: none; }
  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: grid;
    grid-template-rows: 0fr;
    background: var(--ink-deep);
    border-bottom: 1px solid rgba(0, 212, 255, 0.22);
    box-shadow: 0 24px 42px rgba(7, 22, 51, 0.4);
    transition: grid-template-rows 0.34s ease;
  }
  .site-nav[data-open] { grid-template-rows: 1fr; }
  .nav-panel { padding-inline: 16px; }
  .site-nav[data-open] .nav-panel { padding-block: 8px 18px; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-link { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 16px; font-size: 0.9375rem; }
  .nav-link::before { flex: 0 0 auto; }
  .nav-link::after { content: "→"; font-family: var(--font-mono); font-size: 0.75rem; color: var(--cyan); opacity: 0; transition: opacity 0.2s ease; }
  .nav-link:hover::after, .nav-link[aria-current="page"]::after { opacity: 1; }
}
@media (max-width: 559px) {
  .status-chip { display: none; }
}

/* ===== 页脚响应式 ===== */
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .to-top { margin-left: 0; }
}

/* ===== 显现动效 ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .blink, .status-chip i { animation: none; }
}
