@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #000000;
  --panel: #0b0d12;
  --panel-2: #121212;
  --ink: #f3f6ff;
  --dim: #97a1b6;
  --body-ink: #c7d0e0;
  --line: #1f232c;
  --line-hot: #2b47a8;
  --blue: #2b5cff;
  --neon: #7fb0ff;
  --glow: 0 0 10px rgba(127, 176, 255, 0.42);
  --r: 10px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: #000;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--neon);
}

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

/* ---------- 顶栏 ---------- */
.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #000;
  border-bottom: 1px solid var(--line);
}

.mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--neon);
  background: #05070c;
  transition: color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mark-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 8px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.ico {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-hot);
  border-radius: var(--r);
  background: linear-gradient(180deg, #182a63, #0b1330);
  color: #dce6ff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: var(--glow);
  transition: background 0.2s ease, color 0.2s ease;
}

/* ---------- 粘性锚点条 ---------- */
.jump {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.jump::-webkit-scrollbar {
  display: none;
}

.jump a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #06080d;
  color: var(--dim);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.jump b {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.jump a[aria-current] {
  border-color: var(--line-hot);
  color: var(--ink);
  background: #0d1224;
}

.jump a[aria-current] b {
  color: var(--neon);
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 22px;
  align-items: center;
  min-height: 45vh;
  padding: 22px 16px 26px;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background-color: #06070a;
  background-image: radial-gradient(circle at 1px 1px, #1b2133 1px, transparent 0);
  background-size: 14px 14px;
}

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

.hero-copy {
  text-align: right;
  min-width: 0;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(27px, 5.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: #fff;
  text-shadow: var(--glow);
}

.hero-lede {
  margin: 0 0 16px;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.7;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line-hot);
  border-radius: var(--r);
  background: #0b1024;
  color: #dbe6ff;
  font-weight: 600;
  text-decoration: none;
  text-shadow: var(--glow);
  transition: background 0.2s ease, border-color 0.2s ease;
}

/* ---------- 主体 ---------- */
main {
  display: block;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 16px 56px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

/* ---------- 侧栏 ---------- */
.rail {
  position: sticky;
  top: 68px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  padding: 14px 12px;
}

.rail small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--blue);
  margin-bottom: 4px;
}

.rail h2 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.rail a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 6px;
  border-radius: 8px;
  color: var(--dim);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.rail a span {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue);
}

/* ---------- 正文 ---------- */
.body {
  min-width: 0;
}

.prose {
  min-width: 0;
}

.prose > section {
  scroll-margin-top: 108px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.prose > section:first-child {
  border-top: 0;
  padding-top: 0;
}

.prose h2 {
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--blue);
  font-size: clamp(22px, 3.2vw, 31px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #fff;
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 20px;
  line-height: 1.35;
  color: #dbe4ff;
}

.prose p {
  margin: 0 0 15px;
  color: var(--body-ink);
}

.prose ul,
.prose ol {
  margin: 0 0 15px;
  padding-left: 22px;
  color: var(--body-ink);
}

.prose li {
  margin: 6px 0;
}

.prose a {
  color: var(--neon);
  text-underline-offset: 3px;
}

.prose strong {
  color: #fff;
}

.prose blockquote {
  margin: 20px 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r) var(--r) 0;
  background: #080a10;
  color: #c3ccdd;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.prose code {
  font-size: 0.94em;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101319;
}

.prose img {
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

/* ---------- 页脚 ---------- */
footer {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 26px;
  padding: 38px 16px 22px;
  border-top: 1px solid var(--line);
  background: #04050a;
}

.f-word {
  margin: 0;
  font-size: clamp(34px, 10vw, 92px);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow: 0 0 18px rgba(127, 176, 255, 0.18);
}

footer dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
  margin: 0;
}

footer dt {
  grid-column: 1 / -1;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--blue);
  margin-bottom: 6px;
}

footer dd {
  margin: 0;
}

footer dd a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--dim);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.18s ease;
}

.f-end {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--dim);
  font-size: 16px;
}

.f-end p {
  margin: 0;
}

.f-end a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--neon);
  text-decoration: none;
}

/* ---------- 交互微动效 ---------- */
@media (hover: hover) {
  .mark:hover {
    color: #fff;
    border-color: var(--line-hot);
    box-shadow: 0 0 12px rgba(127, 176, 255, 0.32);
  }

  .nav a:hover {
    color: var(--ink);
    background: #0e1219;
  }

  .cta:hover {
    background: linear-gradient(180deg, #2540a0, #101a42);
    color: #fff;
  }

  .jump a:hover {
    border-color: var(--line-hot);
    color: var(--ink);
  }

  .hero-btn:hover {
    background: #16204a;
    border-color: var(--neon);
  }

  .rail a:hover {
    color: var(--ink);
    background: #0e1219;
  }

  footer dd a:hover {
    color: var(--ink);
  }

  .f-end a:hover {
    border-color: var(--line-hot);
    color: #fff;
  }
}

/* ---------- 入场错落 ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .prose > section {
    animation: rise 0.45s both;
  }

  .prose > section:nth-child(1) { animation-delay: 0.02s; }
  .prose > section:nth-child(2) { animation-delay: 0.06s; }
  .prose > section:nth-child(3) { animation-delay: 0.1s; }
  .prose > section:nth-child(4) { animation-delay: 0.14s; }
  .prose > section:nth-child(5) { animation-delay: 0.18s; }
  .prose > section:nth-child(6) { animation-delay: 0.22s; }
  .prose > section:nth-child(n + 7) { animation-delay: 0.26s; }

  .rail li {
    animation: rise 0.4s both;
  }

  .rail li:nth-child(1) { animation-delay: 0.03s; }
  .rail li:nth-child(2) { animation-delay: 0.06s; }
  .rail li:nth-child(3) { animation-delay: 0.09s; }
  .rail li:nth-child(4) { animation-delay: 0.12s; }
  .rail li:nth-child(5) { animation-delay: 0.15s; }
  .rail li:nth-child(6) { animation-delay: 0.18s; }
  .rail li:nth-child(n + 7) { animation-delay: 0.21s; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 719px) {
  .bar {
    padding: 9px 12px;
    gap: 8px;
  }

  .mark {
    width: 42px;
    height: 42px;
  }

  .cta {
    padding: 0 13px;
    font-size: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 0;
    padding: 18px 16px 22px;
  }

  .hero-copy {
    order: -1;
  }

  .hero h1 {
    margin-bottom: 10px;
  }

  .hero-media {
    aspect-ratio: 16 / 9;
  }

  .wrap {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px 44px;
  }

  .rail {
    position: static;
  }

  .rail ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .rail a {
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .prose > section {
    scroll-margin-top: 96px;
    padding: 22px 0;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 16px 20px;
  }

  footer dl {
    grid-template-columns: 1fr 1fr;
  }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

button[aria-expanded]{min-width:44px;min-height:44px}
