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

:root {
  --g: #00ff80;
  --b: #0000ff;
  --w: #ffffff;
  --ink: #e9fff4;
  --font: "Outfit", "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background-color: #000;
  background-image: radial-gradient(rgba(0, 255, 128, .13) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -.01em;
}

img { max-width: 100%; }

a:focus-visible,
button:focus-visible {
  outline: 3px dashed var(--g);
  outline-offset: 3px;
}

/* ---------- 顶栏 ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #000;
  border-bottom: 3px solid var(--g);
}

.bar-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px;
}

.bar-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.bar-list--l { justify-content: flex-end; }
.bar-list--r { justify-content: flex-start; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  border: 2px solid var(--g);
  border-radius: 999px;
  color: var(--g);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.pill:hover {
  background: var(--g);
  color: #000;
}

.brand {
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--g);
  color: #000;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  background: var(--b);
  color: #fff;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 2px solid var(--w);
  border-radius: 999px;
  background: var(--b);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cta:hover {
  background: var(--g);
  border-color: #000;
  color: #000;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 4px solid var(--g);
  background-image: radial-gradient(rgba(0, 0, 255, .55) 1px, transparent 1px);
  background-size: 26px 26px;
}

.hero-fig {
  position: absolute;
  inset: -10% 0;
  margin: 0;
  background-image: radial-gradient(rgba(0, 0, 255, .9) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(.78);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .72) 45%, rgba(0, 0, 0, .32) 100%);
}

.hero-txt {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 9vh;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--g);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .34em;
}

.hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.5rem, 10vw, 6.4rem);
  line-height: .94;
  letter-spacing: -.03em;
  text-shadow: 6px 6px 0 var(--b);
}

.hero-desc {
  max-width: 42ch;
  margin: 0 0 26px;
  color: #ccffe6;
  font-size: 18px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 26px;
  border: 3px solid #fff;
  border-radius: 4px;
  background: var(--g);
  box-shadow: 9px 9px 0 var(--b);
  color: #000;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.hero-btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 5px 5px 0 var(--b);
}

/* ---------- 主区 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 34px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 16px 10px;
}

.prose { min-width: 0; }

.prose article {
  padding: 30px 0 44px;
  border-top: 3px solid var(--g);
  scroll-margin-top: 112px;
}

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

.prose h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  line-height: 1.12;
  text-shadow: 4px 4px 0 var(--b);
}

.prose h3 {
  margin: 26px 0 10px;
  color: var(--g);
  font-size: 1.2rem;
}

.prose h4 {
  margin: 20px 0 8px;
  color: #fff;
  font-size: 1.05rem;
}

.prose p {
  max-width: 66ch;
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  max-width: 66ch;
  padding-left: 1.3em;
}

.prose li { margin: .35em 0; }

.prose a {
  color: var(--g);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:hover {
  background: var(--g);
  color: #000;
  text-decoration: none;
}

.prose strong {
  padding: 0 4px;
  background: rgba(0, 0, 255, .6);
  color: #fff;
}

.prose figure {
  margin: 24px 0;
  overflow: hidden;
  border: 3px solid var(--g);
  border-radius: 4px;
  background: #0a0a0a;
}

.prose figure img {
  display: block;
  width: 100%;
  height: auto;
}

.prose figcaption {
  padding: 8px 10px;
  border-top: 2px solid var(--g);
  color: #9fe8c4;
  font-size: 14px;
}

.prose blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  border-left: 8px solid var(--b);
  background: #06061a;
}

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

.prose table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 9px 11px;
  border: 2px solid var(--g);
  text-align: left;
}

.prose th {
  background: var(--b);
  color: #fff;
}

.prose code {
  padding: 1px 5px;
  border: 1px solid #333;
  background: #111;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
}

.prose hr {
  margin: 28px 0;
  border: 0;
  border-top: 3px dashed #1d3d2c;
}

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 3px solid var(--g);
  border-radius: 4px;
  background: #050505;
}

.side-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--g);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .32em;
}

.side-h {
  margin: 0 0 14px;
  color: #fff;
  font-size: 22px;
}

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

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 4px;
  background: var(--b);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.side-list a:hover {
  background: var(--g);
  color: #000;
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 4px solid var(--g);
  background: #000;
}

.foot-call {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 26px;
}

.foot-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 16px;
  border-radius: 4px;
  background: var(--g);
  color: #000;
  font-size: clamp(22px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
  text-decoration: none;
}

.foot-cta:hover {
  background: var(--b);
  color: #fff;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 16px 18px;
  border-bottom: 2px solid #173024;
}

.foot dt {
  margin-bottom: 6px;
  color: var(--g);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .26em;
}

.foot dd { margin: 0; }

.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}

.foot dd a:hover {
  color: var(--g);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.copy {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 16px;
  color: #6f8a7c;
  font-size: 14px;
}

/* ---------- 小屏 ---------- */
@media (max-width: 860px) {
  .bar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand {
    order: 1;
    flex: 1;
    text-align: center;
  }

  .cta { order: 2; }

  .bar-list {
    order: 3;
    flex: 1 0 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .bar-list--l,
  .bar-list--r { justify-content: center; }

  .pill {
    min-height: 40px;
    padding: 7px 11px;
    font-size: 14px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 22px;
  }

  .side {
    position: static;
    order: -1;
  }

  .hero-txt { padding-bottom: 7vh; }

  .hero-desc { font-size: 17px; }

  .prose article { scroll-margin-top: 190px; }

  .foot-cols { gap: 12px; }

  .foot dd a { font-size: 14px; }
}

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

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