/* ============================================================
   亚星赛场 · 共享站点样式 /assets/site.css
   设计母题：夜间赛场灯光 × 技术蓝图网格 × 复古出版展签
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌色 */
  --c-deep: #0B1F3A;
  --c-night: #071426;
  --c-cyan: #00E5FF;
  --c-orange: #FF6B35;
  --c-warm: #F5F7FA;
  --c-cream: #F3EBDD;
  --c-ink: #1C1410;
  --c-red: #D94F2B;
  --c-mist: #6FD9E8;
  --c-slate: #A9B7C6;

  /* 派生色 */
  --ink-soft: rgba(28, 20, 16, .72);
  --line-on-dark: rgba(0, 229, 255, .2);
  --line-on-light: rgba(28, 20, 16, .14);

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

  /* 尺寸 */
  --shell: 1240px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius-pill: 999px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-float: 0 18px 44px rgba(4, 12, 24, .42);
}

/* ---------- 2. 重置与基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
}

body { margin: 0; }

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

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

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-warm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---------- 3. 容器与节奏 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem);
}

.section--warm { background: var(--c-warm); color: var(--c-ink); }
.section--cream { background: var(--c-cream); color: var(--c-ink); }
.section--dark { background: var(--c-deep); color: var(--c-warm); }
.section--night { background: var(--c-night); color: var(--c-warm); }

.section-head {
  max-width: 70ch;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-red);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.section--dark .eyebrow,
.section--night .eyebrow { color: var(--c-cyan); }

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.12;
}

.section-lede {
  margin-top: .9rem;
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  color: var(--ink-soft);
  max-width: 64ch;
}

.section--dark .section-lede,
.section--night .section-lede { color: rgba(245, 247, 250, .76); }

.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

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

.btn--primary {
  background: var(--c-orange);
  color: var(--c-ink);
  box-shadow: 0 10px 26px rgba(255, 107, 53, .26);
}

.btn--primary:hover { background: #FF8256; }

.btn--ghost {
  background: transparent;
  color: var(--c-warm);
  border-color: rgba(245, 247, 250, .38);
}

.btn--ghost:hover { border-color: var(--c-cyan); color: var(--c-cyan); }

.btn--cyan {
  background: var(--c-cyan);
  color: var(--c-night);
  box-shadow: 0 10px 26px rgba(0, 229, 255, .22);
}

.btn--cyan:hover { background: #4DF0FF; }

.btn--sm { padding: .55rem 1rem; font-size: .85rem; }

/* ---------- 5. 标签 / 面包屑 / 媒体框 / 数据展签 / 正文 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .24rem .72rem;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-red);
  line-height: 1.4;
}

.tag--cyan { color: var(--c-mist); }
.tag--orange { color: var(--c-red); }
.tag--solid {
  background: var(--c-orange);
  border-color: transparent;
  color: var(--c-ink);
}

.breadcrumbs { padding-block: 1rem; }

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: rgba(169, 183, 198, .92);
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.breadcrumbs-item + .breadcrumbs-item::before {
  content: "/";
  color: rgba(169, 183, 198, .5);
}

.breadcrumbs-link {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.breadcrumbs-link:hover { color: var(--c-cyan); border-color: currentColor; }

.breadcrumbs-current { color: var(--c-warm); }

.breadcrumbs--on-light { color: var(--ink-soft); }
.breadcrumbs--on-light .breadcrumbs-item + .breadcrumbs-item::before { color: rgba(28, 20, 16, .35); }
.breadcrumbs--on-light .breadcrumbs-link:hover { color: var(--c-red); }
.breadcrumbs--on-light .breadcrumbs-current { color: var(--c-ink); }

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-on-dark);
  background:
    radial-gradient(600px 240px at 82% 0%, rgba(0, 229, 255, .18), transparent 66%),
    linear-gradient(150deg, #0B1F3A 0%, #071426 100%);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 229, 255, .1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 255, .1) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .7;
}

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

.data-plate {
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius-md);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  background: rgba(255, 255, 255, .58);
}

.section--dark .data-plate,
.section--night .data-plate {
  background: rgba(11, 31, 58, .55);
  border-color: var(--line-on-dark);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.data-plate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}

.data-plate-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-red);
}

.section--dark .data-plate-label,
.section--night .data-plate-label { color: var(--c-mist); }

.data-plate-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--c-deep);
}

.section--dark .data-plate-value,
.section--night .data-plate-value { color: var(--c-cyan); }

.data-plate-note {
  margin-top: .6rem;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.section--dark .data-plate-note,
.section--night .data-plate-note { color: rgba(169, 183, 198, .92); }

.prose {
  max-width: 70ch;
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin-top: 2em;
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.6em;
}

.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }

.prose a {
  color: var(--c-red);
  border-bottom: 1px solid currentColor;
}

.prose a:hover { color: var(--c-orange); }

/* ---------- 6. 头部：播报条 + 玻璃胶囊导航 ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -130%);
  z-index: 200;
  padding: .7rem 1.3rem;
  border-radius: 0 0 14px 14px;
  background: var(--c-orange);
  color: var(--c-ink);
  font-weight: 700;
  letter-spacing: .04em;
  transition: transform .2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  color: var(--c-warm);
}

.announce-bar {
  max-height: 60px;
  overflow: hidden;
  background: var(--c-night);
  border-bottom: 1px solid var(--line-on-dark);
  transition: max-height .3s var(--ease), opacity .3s var(--ease), border-color .3s var(--ease);
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 36px;
  padding-block: .32rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .07em;
  color: var(--c-slate);
}

.announce-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, .18);
  animation: announce-pulse 2.8s ease-in-out infinite;
}

@keyframes announce-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 229, 255, .16); }
  50% { box-shadow: 0 0 0 6px rgba(0, 229, 255, .05); }
}

.announce-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announce-tag {
  flex: none;
  margin-left: auto;
  padding: .1rem .6rem;
  border: 1px solid rgba(0, 229, 255, .4);
  border-radius: var(--radius-pill);
  color: var(--c-cyan);
  font-size: .64rem;
  letter-spacing: .2em;
}

.nav-shell {
  padding: clamp(.6rem, 1.4vw, 1rem) var(--gutter) 0;
  transition: padding .28s var(--ease);
}

.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.6vw, 1.2rem);
  max-width: var(--shell);
  margin-inline: auto;
  padding: .5rem .55rem .5rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 229, 255, .22);
  background: rgba(11, 31, 58, .82);
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: padding .28s var(--ease), background .28s var(--ease), border-color .28s var(--ease);
}

.brand {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: .1rem;
  padding-right: .4rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--c-warm);
  white-space: nowrap;
}

.brand-mark::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: .55rem;
  background: var(--c-orange);
  transform: rotate(45deg);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  color: var(--c-mist);
  white-space: nowrap;
  transition: opacity .2s var(--ease);
}

.nav-panel {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: .1rem;
}

.nav-item { display: flex; }

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: .5rem .78rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: .92rem;
  font-weight: 600;
  color: rgba(245, 247, 250, .84);
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.nav-link:hover {
  color: var(--c-warm);
  border-color: rgba(0, 229, 255, .55);
  transform: translateY(-1px);
}

.nav-link[aria-current="page"] {
  background: var(--c-cyan);
  border-color: transparent;
  color: var(--c-night);
  box-shadow: 0 6px 18px rgba(0, 229, 255, .28);
}

.nav-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: .45rem;
  margin-left: .35rem;
}

.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border: 1px solid rgba(0, 229, 255, .38);
  border-radius: var(--radius-pill);
  color: var(--c-warm);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

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

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

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

.nav-toggle-label { white-space: nowrap; }

/* 滚动收缩态 */
.site-header.is-condensed .announce-bar {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.site-header.is-condensed .nav-shell { padding-top: .35rem; }

.site-header.is-condensed .nav-bar {
  padding-block: .3rem;
  background: rgba(7, 20, 38, .92);
  border-color: rgba(0, 229, 255, .3);
}

.site-header.is-condensed .brand-tag { opacity: 0; }

.site-header.is-condensed .nav-link { padding-block: .38rem; }

/* ---------- 7. 页脚：蓝图网格 + 版权页层次 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--c-warm);
  border-top: 1px solid var(--line-on-dark);
  background:
    radial-gradient(900px 380px at 88% -12%, rgba(0, 229, 255, .18), transparent 64%),
    radial-gradient(620px 320px at 4% 106%, rgba(255, 107, 53, .12), transparent 62%),
    linear-gradient(180deg, #0B1F3A 0%, #071426 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 229, 255, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 255, .08) 1px, transparent 1px);
  background-size: 96px 96px;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, .95fr) minmax(0, .95fr) minmax(0, 1.35fr);
  gap: clamp(1.6rem, 3.4vw, 3.4rem);
  padding-bottom: clamp(2rem, 4vw, 3.2rem);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--c-warm);
}

.footer-logo::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--c-orange);
  transform: rotate(45deg);
}

.footer-summary {
  margin-top: 1rem;
  max-width: 38ch;
  font-size: .95rem;
  line-height: 1.7;
  color: rgba(245, 247, 250, .74);
}

.footer-stamp {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.15rem;
  padding: .32rem .8rem;
  border: 1px solid rgba(0, 229, 255, .3);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--c-mist);
}

.footer-stamp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-cyan);
}

.footer-col-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(0, 229, 255, .24);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-mist);
}

.footer-col-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-red);
}

.footer-list { display: grid; gap: .18rem; }

.footer-link {
  display: inline-flex;
  padding: .28rem 0;
  font-size: .95rem;
  color: rgba(245, 247, 250, .78);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}

.footer-link:hover {
  color: var(--c-cyan);
  border-color: rgba(0, 229, 255, .45);
  transform: translateX(3px);
}

.footer-contact-list {
  display: grid;
  gap: .9rem;
}

.footer-contact-item {
  display: grid;
  gap: .18rem;
}

.footer-contact-key {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(169, 183, 198, .92);
}

.footer-contact-value {
  font-size: .95rem;
  line-height: 1.55;
  color: var(--c-warm);
  word-break: break-word;
}

.footer-note {
  margin-top: 1rem;
  padding-left: .75rem;
  border-left: 2px solid var(--c-orange);
  font-size: .78rem;
  line-height: 1.6;
  color: rgba(169, 183, 198, .92);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .7rem 1.4rem;
  padding-block: 1.15rem 1.6rem;
  border-top: 1px solid rgba(245, 247, 250, .12);
  font-size: .78rem;
  color: var(--c-slate);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
}

.footer-legal-link {
  color: rgba(169, 183, 198, .96);
  border-bottom: 1px solid rgba(169, 183, 198, .32);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.footer-legal-link:hover {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
}

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: .06em;
  color: rgba(169, 183, 198, .92);
}

.footer-copy {
  font-family: var(--font-mono);
  letter-spacing: .04em;
  color: rgba(169, 183, 198, .92);
}

/* ---------- 8. 滚动辅助组件 ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 150;
  background: rgba(0, 229, 255, .12);
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-orange));
}

.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border: 1px solid rgba(0, 229, 255, .38);
  border-radius: var(--radius-pill);
  background: rgba(11, 31, 58, .94);
  color: var(--c-warm);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  box-shadow: var(--shadow-float);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
}

.toc-link {
  display: block;
  padding: .42rem 0 .42rem .9rem;
  border-left: 2px solid transparent;
  font-size: .9rem;
  color: rgba(169, 183, 198, .92);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.toc-link:hover { color: var(--c-cyan); }

.toc-link.is-active {
  color: var(--c-cyan);
  border-left-color: var(--c-cyan);
}

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

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

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .nav-panel {
    position: absolute;
    top: calc(100% + .55rem);
    left: 0;
    right: 0;
    z-index: 5;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    margin-left: 0;
    padding: .6rem;
    border: 1px solid rgba(0, 229, 255, .3);
    border-radius: 20px;
    background: rgba(7, 20, 38, .97);
    box-shadow: var(--shadow-float);
    max-height: min(70vh, calc(100dvh - 9rem));
    overflow-y: auto;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .nav-panel[data-open="true"] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    width: 100%;
  }

  .nav-item { display: block; }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: .75rem 1rem;
    border-radius: 14px;
    font-size: 1rem;
  }

  .nav-link[aria-current="page"] { border-radius: 14px; }

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

  .nav-cta-mobile {
    display: inline-flex;
    margin-top: .4rem;
  }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }

  .announce-tag { display: none; }
  .announce-inner { font-size: .7rem; letter-spacing: .04em; }

  .nav-bar { padding-left: .85rem; }
  .brand-tag { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    padding: .55rem .8rem;
    font-size: .68rem;
  }
}

@media (max-width: 620px) {
  .nav-cta { display: none; }
  .nav-toggle-label { display: none; }
}

/* ---------- 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;
    scroll-behavior: auto !important;
  }

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