@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

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

:root {
  --ink: #001e3c;
  --ink-2: #02294c;
  --ink-3: #04375c;
  --mint: #99ffcc;
  --neon: #00ff41;
  --txt: #d8f5e8;
  --line: rgba(153, 255, 204, 0.22);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --r: 4px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(920px 520px at 84% -10%, rgba(0, 255, 65, 0.15), transparent 62%),
    radial-gradient(720px 440px at 4% 6%, rgba(153, 255, 204, 0.11), transparent 66%);
  background-repeat: no-repeat;
  color: var(--txt);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

body.lock { overflow: hidden; }

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

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

.nav-toggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px clamp(10px, 3vw, 28px);
  background: rgba(0, 30, 60, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topnav-a { grid-column: 1; min-width: 0; }
.topnav-b { grid-column: 1; }
.brand { grid-column: 2; }
.topbar-end { grid-column: 3; }

.topnav ul {
  display: flex;
  justify-content: flex-start;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topnav-b ul { justify-content: flex-end; }

.topnav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 9px;
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--mint);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.topnav a:hover {
  background: rgba(153, 255, 204, 0.14);
  color: #f2fff9;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  min-height: 44px;
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f2fff9;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.topbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--mint);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mint);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.menu-btn:hover {
  background: var(--mint);
  color: var(--ink);
}

/* ---------- 全屏遮罩菜单 ---------- */

.veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 16px;
  padding: 16px clamp(16px, 5vw, 52px) 40px;
  overflow: auto;
  background: linear-gradient(180deg, rgba(0, 30, 60, 0.985), rgba(0, 18, 38, 0.995));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s;
}

.nav-toggle:checked ~ .veil {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.veil-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.veil-brand {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #f2fff9;
}

.veil-close {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--mint);
  cursor: pointer;
}

.veil-close:hover { border-color: var(--neon); color: var(--neon); }

.find {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.find-lbl {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--neon);
}

.find-in {
  flex: 1 1 200px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink-2);
  color: #f2fff9;
  font-family: var(--sans);
  font-size: 16px;
}

.find-in::placeholder { color: rgba(216, 245, 232, 0.45); }

.find-btn {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r);
  background: var(--neon);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.find-btn:hover { background: var(--mint); }

.veil-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.veil-nav li + li { border-top: 1px solid rgba(153, 255, 204, 0.14); }

.veil-nav a {
  display: flex;
  align-items: center;
  min-height: 54px;
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--mint);
  text-decoration: none;
}

.veil-nav a:hover { color: var(--neon); }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 96px clamp(18px, 6vw, 44px) 118px;
  overflow: hidden;
  text-align: center;
}

.cell {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 62% 38% 47% 53% / 52% 44% 56% 48%;
  filter: blur(38px);
  opacity: 0.5;
  animation: breathe 13s ease-in-out infinite;
}

.blob-a {
  width: 54vw;
  height: 54vw;
  max-width: 580px;
  max-height: 580px;
  left: -10%;
  top: -8%;
  background: radial-gradient(circle at 42% 42%, rgba(0, 255, 65, 0.55), transparent 68%);
}

.blob-b {
  width: 46vw;
  height: 46vw;
  right: -8%;
  top: 16%;
  background: radial-gradient(circle at 58% 40%, rgba(153, 255, 204, 0.5), transparent 66%);
  animation-delay: -4s;
}

.blob-c {
  width: 38vw;
  height: 38vw;
  left: 30%;
  bottom: -16%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 255, 65, 0.32), transparent 70%);
  animation-delay: -8s;
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1) translate3d(0, 0, 0);
    border-radius: 62% 38% 47% 53% / 52% 44% 56% 48%;
  }
  50% {
    transform: scale(1.12) translate3d(0, -14px, 0);
    border-radius: 44% 56% 63% 37% / 43% 53% 47% 57%;
  }
}

.hero::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -38px;
  height: 92px;
  z-index: -1;
  background: linear-gradient(90deg, var(--mint), var(--neon));
  transform: skewY(-1.8deg);
  box-shadow: 0 18px 60px -22px rgba(0, 255, 65, 0.55);
}

.hero-copy {
  max-width: 940px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2rem, 6.6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: #f2fff9;
  text-wrap: balance;
  text-shadow: 0 10px 44px rgba(0, 20, 42, 0.7);
}

.lede {
  max-width: 48ch;
  margin: 22px auto 0;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(216, 245, 232, 0.86);
}

/* ---------- 内容与侧栏 ---------- */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  align-items: start;
  gap: clamp(26px, 4vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 70px) clamp(18px, 4vw, 32px) 72px;
}

.stream { min-width: 0; }

.stream section {
  padding-bottom: 34px;
  margin-bottom: 38px;
  border-bottom: 1px dashed var(--line);
  scroll-margin-top: 96px;
  animation: rise 0.5s ease both;
}

.stream section:nth-child(2) { animation-delay: 0.05s; }
.stream section:nth-child(3) { animation-delay: 0.1s; }
.stream section:nth-child(4) { animation-delay: 0.15s; }
.stream section:nth-child(n + 5) { animation-delay: 0.2s; }
.stream section:last-child { border-bottom: 0; margin-bottom: 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.stream small {
  display: block;
  margin-bottom: 0.55em;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--neon);
}

.stream h2 {
  margin: 0.15em 0 0.6em;
  font-family: var(--mono);
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: #f2fff9;
}

.stream h3 {
  margin: 1.6em 0 0.5em;
  font-family: var(--mono);
  font-size: 1.14rem;
  line-height: 1.4;
  color: var(--mint);
}

.stream h4 {
  margin: 1.4em 0 0.4em;
  font-size: 1rem;
  color: var(--mint);
}

.stream p { margin: 0 0 1.1em; }

.stream a {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-color: rgba(153, 255, 204, 0.45);
  text-underline-offset: 3px;
}

.stream a:hover { color: var(--neon); }

.stream ul,
.stream ol { margin: 0 0 1.2em; padding-left: 1.25em; }

.stream li { margin: 0.35em 0; }

.stream blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--neon);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(153, 255, 204, 0.07);
}

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

.stream table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 1.2em 0;
  border-collapse: collapse;
  font-size: 0.94rem;
}

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

.stream th {
  background: rgba(153, 255, 204, 0.09);
  font-family: var(--mono);
  font-size: 0.84rem;
}

.stream img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.stream figure { margin: 1.4em 0; }

.stream figcaption {
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(216, 245, 232, 0.68);
}

.stream code {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0, 255, 65, 0.12);
  font-family: var(--mono);
  font-size: 0.92em;
}

.stream pre {
  overflow-x: auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(0, 20, 42, 0.7);
}

.stream pre code { background: none; padding: 0; }

.rail {
  position: sticky;
  top: 92px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(0, 255, 65, 0.08), rgba(0, 30, 60, 0.55));
  box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.9);
}

.rail small {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--neon);
}

.rail-h {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 1.05rem;
  color: #f2fff9;
}

.rail-list { margin: 0; padding: 0; list-style: none; }

.rail-list li + li { border-top: 1px solid rgba(153, 255, 204, 0.14); }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--txt);
  text-decoration: none;
}

.rail-list a:hover { color: var(--neon); }

/* ---------- 页脚 ---------- */

.foot {
  margin-top: 24px;
  padding: clamp(34px, 5vw, 58px) clamp(18px, 4vw, 32px) 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 255, 65, 0.1), rgba(0, 18, 38, 0.92) 34%);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto 42px;
  padding: clamp(20px, 4vw, 36px);
  border-radius: var(--r);
  background: linear-gradient(120deg, var(--mint), var(--neon));
  color: var(--ink);
  box-shadow: 0 26px 60px -32px rgba(0, 255, 65, 0.65);
}

.cta small {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  color: rgba(0, 30, 60, 0.72);
}

.cta h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 4.4vw, 2.5rem);
  line-height: 1.12;
  color: var(--ink);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.cta-btn:hover {
  background: #013158;
  transform: translateY(-2px);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.addr {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-style: normal;
}

.addr-brand {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #f2fff9;
}

.addr-host {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(216, 245, 232, 0.62);
}

.foot-list { margin: 0; padding: 0; list-style: none; }

.foot-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--txt);
  text-decoration: none;
}

.foot-list a:hover { color: var(--neon); }

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 34px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.copy {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(216, 245, 232, 0.6);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  color: rgba(216, 245, 232, 0.76);
  text-decoration: none;
}

.foot-links a:hover { color: var(--neon); }

/* ---------- 自适应 ---------- */

@media (max-width: 1080px) {
  .topnav-a,
  .topnav-b { display: none; }
}

@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; order: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .addr { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { min-height: 64vh; padding: 76px 18px 100px; }
  .hero::after { height: 72px; bottom: -30px; }
  .lede { margin-top: 16px; font-size: 16px; }
  .cta { align-items: flex-start; }
  .foot-grid { gap: 16px; }
  .foot-bar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

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