@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');

:root {
  color-scheme: dark;
  --black: #000000;
  --panel: #121212;
  --glass: rgba(16, 22, 34, 0.62);
  --line: rgba(84, 141, 255, 0.16);
  --line-soft: rgba(84, 141, 255, 0.08);
  --line-strong: rgba(84, 141, 255, 0.42);
  --txt: #e7edf7;
  --dim: #8b98ac;
  --neon: #4da3ff;
  --neon-2: #39e5b0;
  --gold: #e8c46a;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: 'IBM Plex Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: #000;
  color: var(--txt);
  font: 400 17px/1.8 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(880px 520px at 84% -8%, rgba(26, 70, 148, 0.26), transparent 62%),
    radial-gradient(680px 420px at -6% 104%, rgba(12, 120, 96, 0.13), transparent 60%);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 2px; }

header.site-top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topper {
  margin: 0;
  padding: 9px clamp(16px, 4vw, 44px);
  font: 500 12.5px/1 var(--mono);
  letter-spacing: 0.34em;
  color: #5f728c;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px clamp(16px, 4vw, 44px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: 600 15px/1.2 var(--mono);
  letter-spacing: 0.06em;
  color: #fff;
}
.brand-logo { width: 28px; height: 28px; filter: drop-shadow(0 0 9px rgba(77, 163, 255, 0.6)); }
.brand-mark { font: 700 18px/1 var(--mono); color: var(--neon); text-shadow: 0 0 12px rgba(77, 163, 255, 0.7); }
.brand:hover .brand-txt { text-shadow: 0 0 14px rgba(77, 163, 255, 0.6); }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 15px;
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--txt);
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.18em;
  cursor: pointer;
}
.menu-btn::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 5px 0 var(--neon), 0 -5px 0 var(--neon);
}
.menu-btn:hover { background: rgba(77, 163, 255, 0.16); }

.railbar {
  overflow-x: auto;
  border-top: 1px solid var(--line-soft);
  scrollbar-width: none;
}
.railbar::-webkit-scrollbar { height: 0; }
.railbar p {
  display: flex;
  margin: 0;
  padding: 0 clamp(6px, 2vw, 22px);
  min-height: 44px;
  align-items: stretch;
}
.railbar a {
  display: inline-flex;
  align-items: center;
  padding: 12px 13px;
  min-height: 44px;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.1em;
  color: #8fa0b8;
  border-right: 1px solid var(--line-soft);
  white-space: nowrap;
}
.railbar a:hover { color: #fff; background: rgba(77, 163, 255, 0.1); }
.railbar a[aria-current="true"] {
  color: var(--neon-2);
  box-shadow: inset 0 -2px 0 var(--neon-2);
  text-shadow: 0 0 10px rgba(57, 229, 176, 0.45);
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.veil.is-open { opacity: 1; visibility: visible; }
.veil-nav p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0 26px;
  max-height: 78vh;
  overflow: auto;
}
.veil-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 8px;
  font: 600 clamp(1.2rem, 5vw, 1.75rem)/1.4 var(--mono);
  letter-spacing: 0.02em;
  color: #c3d0e3;
  border-bottom: 1px solid var(--line);
}
.veil-nav a:hover { color: #fff; text-shadow: 0 0 16px rgba(77, 163, 255, 0.8); }
.veil-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 44px;
  padding: 0 17px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--txt);
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.16em;
  cursor: pointer;
}
.body-lock { overflow: hidden; }

main { position: relative; z-index: 1; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  min-height: 45vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 58px) clamp(18px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}

.hero-fig { margin: 0; will-change: transform; }
.hero-mark { width: 100%; height: auto; filter: drop-shadow(0 0 22px rgba(77, 163, 255, 0.25)); }
.hero-img { border-radius: 4px; border: 1px solid var(--line); filter: saturate(0.85) brightness(0.9); }

.hero-copy { text-align: right; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid rgba(57, 229, 176, 0.4);
  border-radius: 999px;
  background: rgba(57, 229, 176, 0.07);
  color: var(--neon-2);
  font: 500 12.5px/1 var(--mono);
  letter-spacing: 0.22em;
  text-shadow: 0 0 10px rgba(57, 229, 176, 0.5);
}
.hero h1 {
  margin: 14px 0 20px;
  font: 700 clamp(1.85rem, 6vw, 3.3rem)/1.16 var(--sans);
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 28px rgba(77, 163, 255, 0.22);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(77, 163, 255, 0.5);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(77, 163, 255, 0.22), rgba(77, 163, 255, 0.07));
  color: #dceaff;
  font: 600 14px/1 var(--mono);
  letter-spacing: 0.12em;
  text-shadow: 0 0 10px rgba(77, 163, 255, 0.45);
}
.hero-cta:hover { background: rgba(77, 163, 255, 0.3); }

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 46px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 52px) clamp(18px, 5vw, 60px) 68px;
}

.rail {
  position: sticky;
  top: 152px;
  align-self: start;
  padding: 15px 13px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 4px;
  backdrop-filter: blur(12px);
}
.rail-h {
  margin: 0 0 10px;
  font: 500 12.5px/1 var(--mono);
  letter-spacing: 0.28em;
  color: #6f8099;
}
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; counter-reset: rail; }
.rail li a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 7px 6px;
  border-radius: 3px;
  font: 400 14.5px/1.45 var(--sans);
  color: #9fb0c6;
}
.rail li a::before {
  counter-increment: rail;
  content: counter(rail, decimal-leading-zero);
  font: 500 11.5px/1 var(--mono);
  color: #4a5e7a;
}
.rail li a:hover { color: #fff; background: rgba(77, 163, 255, 0.1); }
.rail-top { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.rail-top a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.14em;
  color: #93a9c4;
}
.rail-top a:hover { color: #fff; }

.content-main { min-width: 0; }
.content-main > h2 {
  margin: 0 0 8px;
  font: 600 clamp(1.2rem, 3.4vw, 1.65rem)/1.3 var(--sans);
  letter-spacing: -0.01em;
  color: #fff;
}
.subtitle {
  margin: 0 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
  font: 400 13.5px/1.75 var(--mono);
  letter-spacing: 0.05em;
  color: #7d8ea6;
}

.content-main section {
  scroll-margin-top: 156px;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.content-main section:first-of-type { border-top: 0; padding-top: 6px; }
.content-main section:nth-of-type(2) { animation-delay: 0.05s; }
.content-main section:nth-of-type(3) { animation-delay: 0.1s; }
.content-main section:nth-of-type(4) { animation-delay: 0.15s; }
.content-main section:nth-of-type(5) { animation-delay: 0.2s; }
.content-main section:nth-of-type(6) { animation-delay: 0.25s; }
.content-main section:nth-of-type(7) { animation-delay: 0.3s; }

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

.content-main p { margin: 0 0 1em; }
.content-main h2 {
  margin: 1.3em 0 0.55em;
  font: 600 clamp(1.12rem, 3.2vw, 1.45rem)/1.35 var(--sans);
  letter-spacing: -0.01em;
  color: #fff;
}
.content-main h3 { margin: 1.2em 0 0.4em; font: 600 1.05rem/1.55 var(--sans); color: #cfdcf0; }
.content-main ul,
.content-main ol { margin: 0 0 1em; padding-left: 1.35em; }
.content-main li { margin: 0.32em 0; }
.content-main strong { color: #fff; }
.content-main a {
  color: #8dc3ff;
  text-decoration: underline;
  text-decoration-color: rgba(141, 195, 255, 0.42);
  text-underline-offset: 3px;
}
.content-main blockquote {
  margin: 1.2em 0;
  padding: 12px 16px;
  border-left: 2px solid var(--neon-2);
  border-radius: 0 4px 4px 0;
  background: rgba(57, 229, 176, 0.05);
  color: #c6d6cf;
}

footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 22px 20px;
  padding: 52px clamp(18px, 5vw, 60px) 36px;
  border-top: 1px solid var(--line);
  background: linear-gradient(#000, #04070c);
}
footer p { margin: 0; }
footer .brand-xl {
  grid-column: 1 / -1;
  margin-bottom: 6px;
  font: 700 clamp(2rem, 9.5vw, 4.6rem)/1 var(--mono);
  letter-spacing: -0.05em;
  color: #fff;
  text-shadow: 0 0 32px rgba(77, 163, 255, 0.32);
}
footer .f-col { display: flex; flex-direction: column; gap: 1px; }
footer .f-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 3px 0;
  font: 400 14.5px/1.5 var(--sans);
  color: #93a4ba;
}
footer .f-col a:hover { color: #fff; }
footer .f-top {
  grid-column: 3 / 5;
  justify-self: end;
  align-self: center;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
footer .f-top a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.18em;
  color: #9fb6d4;
}
footer .f-top a:hover { color: var(--neon); }
footer .copy {
  grid-column: 1 / 3;
  align-self: center;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font: 400 12.5px/1.6 var(--mono);
  letter-spacing: 0.08em;
  color: #5b6c84;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 30px;
  }
  .hero-copy { text-align: left; }
  .hero-fig { order: 2; max-width: 190px; justify-self: end; }
  .content-shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .rail ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
  footer { grid-template-columns: 1fr 1fr; }
  footer .brand-xl { grid-column: 1 / -1; }
  footer .copy { grid-column: 1 / -1; border-top: 0; }
  footer .f-top { grid-column: 1 / -1; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .content-main section { animation: none; }
  .veil { transition: none; }
}

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