/* ==========================================================================
   星空赛场 · /assets/site.css
   共享层：reset、变量、中文排版、站点头部与页脚、通用组件
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --ink: #05080F;
  --panel: #0B1628;
  --panel-deep: #07101E;
  --orbit: #162B4A;
  --aqua: #2FE6C4;
  --blue: #5B8CFF;
  --orange: #FF7A45;
  --gold: #F6C85F;
  --silver: #A8B6C8;
  --paper: #F4F8FC;
  --body-text: #C7D3E2;

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --cut: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --cut-sm: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  --cut-lg: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);

  --header-h: 74px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

html {
  background-color: var(--ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-text);
  background-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 星空底纹：夜间看台星点 + 极光晕，只作背景层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 16%, rgba(244, 248, 252, .55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 9%, rgba(47, 230, 196, .5) 0 1px, transparent 1.7px),
    radial-gradient(circle at 34% 62%, rgba(244, 248, 252, .32) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 74%, rgba(91, 140, 255, .45) 0 1px, transparent 1.7px),
    radial-gradient(circle at 58% 34%, rgba(246, 200, 95, .35) 0 1px, transparent 1.5px),
    radial-gradient(1100px 620px at 82% -12%, rgba(47, 230, 196, .1), transparent 68%),
    radial-gradient(900px 560px at 6% 108%, rgba(91, 140, 255, .12), transparent 70%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--aqua); }

button { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  color: var(--paper);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: .02em;
}

p { max-width: 72ch; }

ul, ol { padding-left: 1.2em; }

::selection { background: rgba(47, 230, 196, .28); color: var(--paper); }

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

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  color: #03130F;
  background: var(--aqua);
  border-radius: 4px;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); color: #03130F; outline-offset: 2px; }

/* ============================ 站点头部 ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(5, 8, 15, .84);
  border-bottom: 1px solid var(--orbit);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header[data-stuck="true"] {
  background: rgba(5, 8, 15, .97);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .58);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 230, 196, .55), rgba(91, 140, 255, .4), transparent);
  pointer-events: none;
}

.scroll-meter {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-meter > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--aqua), var(--blue));
  transition: transform .12s linear;
}

.header-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  width: 100%;
  max-width: 1320px;
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 10px clamp(16px, 3vw, 36px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--paper);
}
.brand:hover { color: var(--paper); }

.brand-mark {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(47, 230, 196, .45);
  background: radial-gradient(circle at 50% 50%, rgba(47, 230, 196, .2), transparent 72%);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(91, 140, 255, .55);
  border-radius: 50%;
  transition: transform .5s var(--ease);
}
.brand-mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 12px rgba(47, 230, 196, .9);
}
.brand:hover .brand-mark::before { transform: rotate(140deg); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--paper);
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--silver);
  white-space: nowrap;
}

.header-orbit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}
.orbit-line {
  flex: 1 1 24px;
  min-width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 43, 74, 1) 18%, rgba(22, 43, 74, 1) 82%, rgba(47, 230, 196, .5));
}
.orbit-node {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, .16);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--orange);
  background: rgba(255, 122, 69, .09);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 69, .42);
  clip-path: var(--cut-sm);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--paper);
  background: rgba(244, 248, 252, .04);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--orbit);
  clip-path: var(--cut-sm);
  cursor: pointer;
  transition: color .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav-toggle:hover { color: var(--aqua); box-shadow: inset 0 0 0 1px rgba(47, 230, 196, .55); }
.nav-toggle:focus-visible { outline-offset: -3px; }

.nav-toggle-bars { display: flex; flex-direction: column; justify-content: center; gap: 3px; width: 16px; }
.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
}

/* 主导航 */
.primary-nav { display: flex; justify-content: flex-end; min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, .9vw, 10px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--silver);
  white-space: nowrap;
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 1px;
  background: var(--aqua);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s var(--ease);
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-link[aria-current="page"] { color: var(--aqua); }
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--aqua), var(--blue));
}
.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 8px rgba(47, 230, 196, .95);
}

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

/* ============================ 通用组件 ============================ */

.shell {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--aqua);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--aqua); }

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

.lede {
  max-width: 62ch;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.8;
  color: var(--body-text);
}

.muted { color: var(--silver); }

.h-display {
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.06;
  letter-spacing: .035em;
  font-weight: 800;
  color: var(--paper);
}

.h-section {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.25;
  letter-spacing: .025em;
  font-weight: 800;
  color: var(--paper);
}

.orbit-rule {
  height: 1px;
  border: 0;
  margin-block: clamp(24px, 4vw, 48px);
  background: linear-gradient(90deg, rgba(47, 230, 196, .65), rgba(91, 140, 255, .35) 45%, transparent);
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(14px, 2vw, 24px); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--panel);
  border: 1px solid var(--orbit);
  min-width: 0;
}
.panel--cut {
  border: 0;
  clip-path: var(--cut-lg);
  box-shadow: inset 0 0 0 1px rgba(22, 43, 74, 1);
}
.panel--focus {
  background: linear-gradient(158deg, rgba(47, 230, 196, .14), rgba(11, 22, 40, .94) 58%);
  border-color: rgba(47, 230, 196, .34);
}
.panel--focus.panel--cut { box-shadow: inset 0 0 0 1px rgba(47, 230, 196, .34); }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(22, 43, 74, .95);
}
.panel-title {
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.35;
  color: var(--paper);
}
.panel-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--aqua);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  white-space: nowrap;
  color: var(--blue);
  background: rgba(91, 140, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(91, 140, 255, .36);
}
.badge--aqua {
  color: var(--aqua);
  background: rgba(47, 230, 196, .1);
  box-shadow: inset 0 0 0 1px rgba(47, 230, 196, .36);
}
.badge--gold {
  color: var(--gold);
  background: rgba(246, 200, 95, .1);
  box-shadow: inset 0 0 0 1px rgba(246, 200, 95, .38);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  border: 0;
  color: var(--paper);
  background: transparent;
  clip-path: var(--cut);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s var(--ease);
}
.btn:focus-visible { outline-offset: -3px; }
.btn--primary {
  color: #03130F;
  background: var(--aqua);
  box-shadow: 0 10px 24px rgba(47, 230, 196, .16);
}
.btn--primary:hover { color: #03130F; background: #59f0d5; transform: translateX(1px); }
.btn--ghost {
  color: var(--paper);
  background: rgba(244, 248, 252, .03);
  box-shadow: inset 0 0 0 1px rgba(168, 182, 200, .34);
}
.btn--ghost:hover {
  color: var(--aqua);
  background: rgba(47, 230, 196, .08);
  box-shadow: inset 0 0 0 1px rgba(47, 230, 196, .6);
}
.btn--sm { padding: 7px 13px; font-size: 12.5px; letter-spacing: .04em; }
.btn--block { width: 100%; }

/* 响应式图片容器（页面阶段放入 img/svg 占位） */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--orbit);
  background-color: var(--panel-deep);
  background-image:
    linear-gradient(118deg, rgba(47, 230, 196, .1), transparent 46%),
    linear-gradient(300deg, rgba(91, 140, 255, .13), transparent 56%),
    repeating-linear-gradient(90deg, rgba(22, 43, 74, .55) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(22, 43, 74, .45) 0 1px, transparent 1px 64px);
}
.media-frame img,
.media-frame svg { width: 100%; height: 100%; object-fit: cover; }
.media-frame::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-left: 1px solid rgba(47, 230, 196, .7);
  border-top: 1px solid rgba(47, 230, 196, .7);
  pointer-events: none;
}
.media-frame::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 26px;
  height: 26px;
  border-right: 1px solid rgba(91, 140, 255, .6);
  border-bottom: 1px solid rgba(91, 140, 255, .6);
  pointer-events: none;
}
.media-frame__label {
  position: absolute;
  left: 12px;
  bottom: 11px;
  z-index: 1;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--aqua);
  background: rgba(5, 8, 15, .74);
  box-shadow: inset 0 0 0 1px rgba(47, 230, 196, .3);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }

/* 面包屑 */
.breadcrumbs { margin-top: clamp(18px, 3vw, 30px); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; color: var(--silver); }
.breadcrumbs li + li::before { content: "/"; color: rgba(168, 182, 200, .4); }
.breadcrumbs a { color: var(--silver); }
.breadcrumbs a:hover { color: var(--aqua); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* 章节索引 */
.toc { position: relative; }
.toc-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--orbit);
}
.toc-link {
  display: block;
  margin-left: -1px;
  padding: 8px 0 8px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--silver);
  border-left: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.toc-link:hover {
  color: var(--paper);
  border-left-color: rgba(47, 230, 196, .5);
  background: linear-gradient(90deg, rgba(47, 230, 196, .08), transparent);
}
.toc-link[aria-current="true"] {
  color: var(--aqua);
  border-left-color: var(--aqua);
  background: linear-gradient(90deg, rgba(47, 230, 196, .1), transparent);
}

/* 数据表 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table caption {
  padding-bottom: 10px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--silver);
}
.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(22, 43, 74, .9);
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--aqua);
  background: rgba(11, 22, 40, .72);
  white-space: nowrap;
}
.data-table td { color: var(--body-text); }
.data-table tbody tr:hover td { background: rgba(47, 230, 196, .05); color: var(--paper); }
.data-table tbody tr[data-highlight="true"] td { color: var(--gold); }

/* 进入视口显现 */
html[data-reveal-ready="true"] .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .6s var(--ease) var(--reveal-delay, 0s),
    transform .6s var(--ease) var(--reveal-delay, 0s);
}
html[data-reveal-ready="true"] .reveal.is-visible { opacity: 1; transform: none; }

/* 复制 */
.copy-value {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--paper);
  overflow-wrap: anywhere;
  user-select: all;
}
.copy-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--silver);
  background: rgba(244, 248, 252, .04);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--orbit);
  cursor: pointer;
  transition: color .2s ease, box-shadow .2s ease, background .2s ease;
}
.copy-btn:hover { color: var(--aqua); box-shadow: inset 0 0 0 1px rgba(47, 230, 196, .55); }
.copy-btn.is-copied {
  color: var(--gold);
  background: rgba(246, 200, 95, .1);
  box-shadow: inset 0 0 0 1px rgba(246, 200, 95, .5);
}

/* ============================ 站点页脚 ============================ */

.site-footer {
  position: relative;
  margin-top: clamp(60px, 9vw, 120px);
  border-top: 1px solid var(--orbit);
  background: linear-gradient(180deg, rgba(11, 22, 40, .7), rgba(5, 8, 15, 1) 58%);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 230, 196, .6), rgba(91, 140, 255, .45), transparent);
  pointer-events: none;
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding: clamp(36px, 6vw, 64px) clamp(18px, 4vw, 40px) 24px;
}

.footer-col { min-width: 0; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--paper);
}
.footer-brand:hover { color: var(--aqua); }
.footer-brand .brand-mark { flex-basis: 36px; width: 36px; height: 36px; }
.footer-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--paper);
}

.footer-tagline {
  max-width: 34ch;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--body-text);
}
.footer-meta {
  max-width: 36ch;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  line-height: 1.9;
  color: rgba(168, 182, 200, .86);
}
.footer-legal {
  display: inline-block;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--silver);
  box-shadow: inset 0 0 0 1px var(--orbit);
  clip-path: var(--cut-sm);
}

.footer-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--aqua);
  border-bottom: 1px solid rgba(22, 43, 74, .95);
}
.footer-links + .footer-title { margin-top: 26px; }

.footer-links {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--silver);
  transition: color .2s ease;
}
.footer-link::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: .6;
}
.footer-link:hover { color: var(--aqua); }

.footer-note {
  max-width: 36ch;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--silver);
}
.footer-note--dim {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 11.5px;
  color: rgba(168, 182, 200, .72);
}

.footer-contact {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-row {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(22, 43, 74, .95);
}
.contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--aqua);
}
.contact-val { font-size: 13.5px; line-height: 1.6; color: var(--paper); overflow-wrap: anywhere; }

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(22, 43, 74, .85);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--silver);
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--paper);
  background: rgba(11, 22, 40, .94);
  border: 0;
  clip-path: var(--cut-sm);
  box-shadow: inset 0 0 0 1px rgba(47, 230, 196, .35), 0 12px 28px rgba(0, 0, 0, .5);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, color .2s ease, box-shadow .2s ease;
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--aqua); box-shadow: inset 0 0 0 1px var(--aqua), 0 12px 28px rgba(0, 0, 0, .5); }
.to-top:focus-visible { outline-offset: -3px; }
.to-top-icon {
  width: 8px;
  height: 8px;
  border-left: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.to-top-label { white-space: nowrap; }

/* ============================ 响应式 ============================ */

@media (max-width: 1080px) {
  :root { --header-h: 66px; }

  .header-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .header-orbit { display: none; }
  .nav-toggle { display: inline-flex; justify-self: end; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px clamp(16px, 4vw, 32px) 22px;
    background: linear-gradient(180deg, #0B1628 0%, #070D19 100%);
    border-bottom: 1px solid var(--orbit);
    box-shadow: 0 26px 44px rgba(0, 0, 0, .58);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .primary-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li + li { border-top: 1px solid rgba(22, 43, 74, .8); }
  .nav-link {
    display: block;
    padding: 14px 4px;
    font-size: 15px;
    color: var(--paper);
  }
  .nav-link::after {
    left: 4px;
    right: auto;
    bottom: 9px;
    width: 20px;
  }
  .nav-link[aria-current="page"]::before {
    top: 50%;
    left: auto;
    right: 8px;
    margin-left: 0;
    transform: translateY(-50%);
  }

  .nav-mobile-extra {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--orbit);
  }
}

@media (max-width: 900px) {
  .footer-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; line-height: 1.72; }

  .brand-mark { flex-basis: 34px; width: 34px; height: 34px; }
  .brand-name { font-size: 16px; letter-spacing: .12em; }
  .brand-sub { display: none; }

  .footer-shell {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 20px;
  }
  .footer-col--brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .to-top { padding: 9px 12px; }
  .to-top-label { display: none; }
  .to-top-icon { width: 10px; height: 10px; }
}

@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;
  }
  html[data-reveal-ready="true"] .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .brand:hover .brand-mark::before { transform: none; }
  .btn--primary:hover { transform: none; }
}
