/* =========================================================
   亚星CN导航 · 共享样式表 /assets/site.css
   夜间竞技刊物：深空蓝连续画布 + 奶油阅读面板
   ========================================================= */

:root {
  --ink: #071A2F;
  --ink-deep: #04101F;
  --ink-2: #0B2440;
  --panel: #102F4F;
  --cream: #F4E9D4;
  --paper: #FFF7E8;
  --cyan: #35F0D0;
  --magenta: #FF3D8D;
  --gold: #F5B84B;
  --brown: #14100E;
  --mist: #A9B7C6;

  --line: rgba(169, 183, 198, 0.16);
  --line-strong: rgba(169, 183, 198, 0.3);
  --line-cyan: rgba(53, 240, 208, 0.28);

  --wrap: 1240px;
  --read: 720px;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-pill: 999px;

  --shadow-panel: 0 20px 46px -24px rgba(0, 0, 0, 0.9);
  --shadow-lift: 0 26px 56px -22px rgba(0, 0, 0, 0.95);

  --font-display: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

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

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 10% -8%, rgba(53, 240, 208, 0.10), transparent 62%),
    radial-gradient(900px 520px at 92% -4%, rgba(255, 61, 141, 0.10), transparent 64%),
    linear-gradient(rgba(169, 183, 198, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 183, 198, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  background-attachment: fixed, fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.55em;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.03em;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 6vw, 76px); letter-spacing: 0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 42px); }
h3 { font-size: clamp(19px, 2vw, 25px); letter-spacing: 0.02em; }
h4 { font-size: clamp(16px, 1.6vw, 19px); letter-spacing: 0.02em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--paper); }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.35em; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

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

::selection {
  background: rgba(53, 240, 208, 0.3);
  color: var(--paper);
}

/* ---------- Helpers ---------- */
.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.read { max-width: var(--read); }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--cyan);
  color: #04101F;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: #04101F; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 62%, var(--gold));
  z-index: 220;
  pointer-events: none;
  will-change: transform;
}

/* ---------- Header : 顶部状态条 ---------- */
.site-header {
  position: relative;
  z-index: 90;
}

.header-utility {
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line);
}

.header-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  flex-wrap: wrap;
  min-height: 40px;
  padding-block: 6px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.status-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
  animation: statusPulse 2.6s ease-out infinite;
}

.status-chip__text { white-space: nowrap; }

@keyframes statusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(53, 240, 208, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(53, 240, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 240, 208, 0); }
}

.header-utility__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mist);
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.header-utility__link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- Header : 刊头 ---------- */
.masthead {
  padding: clamp(24px, 4vw, 40px) 0 clamp(18px, 2.6vw, 26px);
  text-align: center;
}

.masthead__inner { display: block; }

.masthead__brand {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.masthead__mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--paper);
  text-shadow: 0 0 34px rgba(53, 240, 208, 0.22);
  transition: color 0.2s var(--ease);
}

.masthead__mark::after {
  content: "";
  display: block;
  width: 68px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

.masthead__brand:hover .masthead__mark { color: var(--cyan); }

.masthead__tagline {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--mist);
}

/* ---------- Header : 悬浮胶囊导航 ---------- */
.nav-dock {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(7, 26, 47, 0.97), rgba(7, 26, 47, 0.9));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-cyan);
  box-shadow: 0 14px 34px -26px rgba(0, 0, 0, 0.95);
}

.nav-dock__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-block: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  justify-self: start;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav-toggle__label { line-height: 1; }

.nav-list {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: block;
  padding: 9px 17px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  color: var(--mist);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  border-color: var(--line-cyan);
  background: rgba(53, 240, 208, 0.09);
  transform: translateY(-1px);
}

.nav-link[aria-current="page"] {
  color: #04101F;
  font-weight: 800;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 8px 22px -14px rgba(53, 240, 208, 0.95);
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 21px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: #181005;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px -14px rgba(245, 184, 75, 0.95);
  transition: transform 0.16s var(--ease), filter 0.16s var(--ease);
}
.nav-cta:hover {
  color: #181005;
  transform: translateY(-2px);
  filter: brightness(1.07);
}
.nav-cta:active { transform: translateY(0) scale(0.98); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 13px 25px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease);
}

.btn--gold {
  background: var(--gold);
  color: #181005;
  box-shadow: 0 12px 28px -14px rgba(245, 184, 75, 0.9);
}
.btn--gold:hover {
  color: #181005;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(245, 184, 75, 0.95);
}

.btn--cyan {
  background: var(--cyan);
  color: #04101F;
  box-shadow: 0 12px 28px -14px rgba(53, 240, 208, 0.85);
}
.btn--cyan:hover { color: #04101F; transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.btn:active { transform: translateY(0) scale(0.985); }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-cyan);
  background: rgba(53, 240, 208, 0.12);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  white-space: nowrap;
}

.tag--magenta {
  background: rgba(255, 61, 141, 0.13);
  border-color: rgba(255, 61, 141, 0.34);
  color: var(--magenta);
}

.tag--gold {
  background: rgba(245, 184, 75, 0.14);
  border-color: rgba(245, 184, 75, 0.36);
  color: var(--gold);
}

.tag--mist {
  background: rgba(169, 183, 198, 0.1);
  border-color: rgba(169, 183, 198, 0.28);
  color: var(--mist);
}

/* ---------- Panels : 堆叠画板 ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 38px);
  box-shadow: var(--shadow-panel);
}

.panel--flat {
  background: var(--ink-2);
  box-shadow: none;
}

.panel--data {
  background:
    linear-gradient(160deg, rgba(53, 240, 208, 0.07), transparent 55%),
    var(--panel);
}

.panel--slant {
  border-radius: var(--r-lg) var(--r-lg) 6px var(--r-lg);
}

.panel--cream {
  background: var(--cream);
  color: var(--brown);
  border-color: rgba(20, 16, 14, 0.12);
  box-shadow: 0 24px 54px -30px rgba(0, 0, 0, 0.7);
}

.panel--cream h1,
.panel--cream h2,
.panel--cream h3,
.panel--cream h4 { color: var(--brown); }

.panel--cream a { color: #A01050; }
.panel--cream a:hover { color: #6B0B36; }

/* ---------- Section head ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.section-head h2,
.section-head h3 { margin: 0; }

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.panel--cream .section-index { color: #A01050; }

.section-index::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  flex: none;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: clamp(18px, 2.4vw, 28px) 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin: 0 0.7em;
  color: rgba(169, 183, 198, 0.45);
}

.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.breadcrumb a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- Prose ---------- */
.prose {
  font-size: clamp(16px, 1.1vw, 18px);
  font-weight: 400;
  line-height: 1.85;
  max-width: var(--read);
}

.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }

.prose h2 { margin-top: 1.6em; font-size: clamp(24px, 2.6vw, 32px); }
.prose h3 { margin-top: 1.4em; }

.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }

.prose blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--cyan);
  background: rgba(53, 240, 208, 0.07);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(169, 183, 198, 0.16);
}

.prose--on-cream { color: var(--brown); }
.prose--on-cream blockquote {
  border-left-color: var(--magenta);
  background: rgba(255, 61, 141, 0.08);
}
.panel--cream .prose code { background: rgba(20, 16, 14, 0.1); }

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid--split-brand { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.grid--split-wide { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

/* ---------- Media frame ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: clamp(14px, 2vw, 22px);
  background:
    radial-gradient(120% 90% at 12% 8%, rgba(53, 240, 208, 0.20), transparent 56%),
    radial-gradient(110% 90% at 92% 100%, rgba(255, 61, 141, 0.20), transparent 60%),
    linear-gradient(150deg, var(--panel), var(--ink-2));
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 247, 232, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 247, 232, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.5;
  z-index: 1;
}

.media-frame > img,
.media-frame > picture > img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame > picture {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}

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

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  margin: 0;
  padding: 26px 20px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(4, 16, 31, 0.9));
}

/* ---------- Slant rule ---------- */
.slant-rule {
  height: clamp(26px, 4.6vw, 58px);
  margin-block: clamp(36px, 5.6vw, 76px);
  background: linear-gradient(90deg, rgba(53, 240, 208, 0.22), rgba(255, 61, 141, 0.16) 55%, rgba(245, 184, 75, 0.18));
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
  border-radius: 2px;
}

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
}

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

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  padding-top: clamp(48px, 6vw, 76px);
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(53, 240, 208, 0.10), transparent 62%),
    linear-gradient(180deg, var(--ink-deep), var(--ink-2) 62%, var(--ink));
  border-top: 1px solid var(--line-cyan);
  color: var(--mist);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 44px 36px;
  align-items: start;
  padding-bottom: clamp(32px, 4vw, 48px);
}

.footer-brand__mark {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.14em;
  color: var(--paper);
}

.footer-brand__mark::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

.footer-brand__desc {
  max-width: 34em;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-brand__cta { margin-top: 2px; }

.footer-col__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.footer-list a {
  color: var(--mist);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.footer-list a:hover {
  color: var(--paper);
  border-bottom-color: var(--magenta);
}

.footer-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.footer-contact__row--block { align-items: flex-start; }

.footer-contact__label {
  flex: none;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--paper);
  word-break: break-all;
}

.copy-btn {
  padding: 3px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-cyan);
  background: rgba(53, 240, 208, 0.08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
              border-color 0.16s var(--ease);
}
.copy-btn:hover {
  background: var(--cyan);
  color: #04101F;
  border-color: var(--cyan);
}
.copy-btn[data-done="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #181005;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  padding-block: 22px 30px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(169, 183, 198, 0.78);
}

.footer-legal__copy,
.footer-legal__icp { margin: 0; }

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal__links a {
  color: rgba(169, 183, 198, 0.86);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.footer-legal__links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- To top ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 30px);
  bottom: clamp(14px, 2.4vw, 30px);
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-cyan);
  background: rgba(16, 47, 79, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
              visibility 0.22s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease);
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

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

.to-top__arrow { font-size: 14px; line-height: 1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav-link { padding: 9px 13px; font-size: 13px; }
  .nav-cta { padding: 9px 16px; font-size: 13px; }
}

@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--split,
  .grid--split-brand,
  .grid--split-wide { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

/* 移动导航：胶囊折叠为下拉面板 */
@media (max-width: 880px) {
  html { scroll-padding-top: 84px; }

  .nav-dock__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 9px;
  }

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

  .nav-list {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 120;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid var(--line-cyan);
    background: var(--ink-2);
    box-shadow: var(--shadow-lift);
    max-height: min(70vh, 460px);
    overflow-y: auto;
  }

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

  .nav-toggle[aria-expanded="true"] {
    border-color: var(--cyan);
    color: var(--cyan);
  }

  .nav-link {
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 15px;
    text-align: left;
  }

  .nav-link[aria-current="page"] { box-shadow: none; }

  .nav-cta { padding: 10px 18px; font-size: 14px; }

  .header-utility__inner { justify-content: flex-start; gap: 6px 16px; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }

  .panel { padding: clamp(20px, 4.5vw, 28px); border-radius: 20px; }

  .footer-grid { gap: 34px 24px; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 10px; }

  .to-top { padding: 10px 15px; font-size: 11px; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 26px, var(--wrap)); }
  body { font-size: 15.5px; }

  .masthead__tagline { letter-spacing: 0.16em; text-indent: 0.16em; }
  .status-chip { font-size: 11px; letter-spacing: 0.1em; }
  .header-utility__link { font-size: 11px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .footer-legal__links { gap: 8px 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .status-chip__dot { animation: none; }
}
