@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

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

:root {
  --neon: #69ff69;
  --cy: #00ffff;
  --ink: #172617;
  --void: #08120a;
  --line: rgba(105, 255, 105, 0.28);
  --dim: #a9c9b1;
  --chrome: linear-gradient(180deg, #ffffff 0%, #c9e8cf 28%, #7fae88 52%, #f4fff6 74%, #9dc6a6 100%);
  --pad: clamp(18px, 4vw, 56px);
}

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

body {
  margin: 0;
  background: var(--void);
  color: #e6ffe8;
  font: 400 17px/1.7 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 6%, rgba(0, 255, 255, 0.14), transparent 46%),
    radial-gradient(circle at 8% 88%, rgba(105, 255, 105, 0.12), transparent 50%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 62% 12%, #69ff69, transparent),
    radial-gradient(1.5px 1.5px at 82% 44%, #00ffff, transparent),
    radial-gradient(1.5px 1.5px at 38% 64%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 72% 82%, #69ff69, transparent);
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ---------- 顶栏：品牌独占一行，菜单行在下 ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 18, 10, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px var(--pad) 10px;
  text-decoration: none;
  color: var(--neon);
  font-weight: 800;
  font-size: clamp(1.05rem, 3vw, 1.28rem);
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-shadow: 0 0 18px rgba(105, 255, 105, 0.5);
}

.brand__mark {
  width: 28px;
  height: 28px;
}

.brand__word {
  border-bottom: 2px solid rgba(0, 255, 255, 0.55);
  padding-bottom: 2px;
}

.top__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--pad) 12px;
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--neon);
  border-radius: 0;
  background: transparent;
  color: var(--neon);
  font: 700 15px/1 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.3s ease;
}

.burger:hover,
.burger:focus-visible {
  background: var(--neon);
  color: var(--ink);
  box-shadow: 0 0 24px rgba(105, 255, 105, 0.65);
}

.burger__lines,
.burger__lines::before,
.burger__lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.burger__lines {
  position: relative;
}

.burger__lines::before,
.burger__lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger__lines::before {
  top: -6px;
}

.burger__lines::after {
  top: 6px;
}

.find {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 340px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(105, 255, 105, 0.06);
  color: #e6ffe8;
  font: 400 16px/1 'Plus Jakarta Sans', system-ui, sans-serif;
}

.find::placeholder {
  color: #8fb597;
}

.find:focus {
  outline: none;
  border-color: var(--cy);
  box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.25);
}

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

.veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 5vw, 60px) var(--pad);
  overflow-y: auto;
  background:
    radial-gradient(circle at 84% 8%, rgba(0, 255, 255, 0.2), transparent 55%),
    radial-gradient(circle at 12% 92%, rgba(105, 255, 105, 0.18), transparent 58%),
    linear-gradient(160deg, #0a1a0d, #06100a 62%);
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.5s;
}

.veil.is-open {
  transform: none;
  visibility: visible;
}

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

.veil__brand {
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--cy);
  text-shadow: 0 0 18px rgba(0, 255, 255, 0.6);
}

.veil__close {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--cy);
  border-radius: 0;
  background: transparent;
  color: var(--cy);
  font: 700 15px/1 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.veil__close:hover,
.veil__close:focus-visible {
  background: var(--cy);
  color: var(--ink);
}

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

.veil__nav li.is-off {
  display: none;
}

.veil__nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 0;
  color: #dcffe2;
  text-decoration: none;
  font-size: clamp(1.4rem, 5.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  border-bottom: 1px solid rgba(105, 255, 105, 0.14);
  transition: color 0.2s ease, padding-left 0.25s ease, text-shadow 0.3s ease;
}

.veil__nav a:hover,
.veil__nav a:focus-visible {
  color: var(--neon);
  padding-left: 10px;
  text-shadow: 0 0 22px rgba(105, 255, 105, 0.7);
}

.veil__foot {
  margin-top: auto;
  padding-top: 20px;
}

.veil__foot a {
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
}

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

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

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(78px, 14vh, 150px) var(--pad) 0;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: auto -14% 16% -14%;
  height: 62vh;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 26% 72%, rgba(105, 255, 105, 0.26), transparent 62%),
    radial-gradient(ellipse at 78% 38%, rgba(0, 255, 255, 0.24), transparent 58%);
  filter: blur(14px);
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__kicker {
  margin: 0 0 14px;
  color: var(--cy);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.hero__title {
  margin: 0 0 clamp(30px, 7vh, 70px);
  text-align: left;
  font-size: clamp(2.5rem, 10.5vw, 7.4rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.045em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(105, 255, 105, 0.4));
}

.hero__band {
  height: clamp(52px, 11vh, 112px);
  margin: 0 calc(var(--pad) * -1);
  background: linear-gradient(90deg, #69ff69, #00ffff 58%, #69ff69);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 0 60px rgba(0, 255, 255, 0.45);
}

/* ---------- 正文 + 右栏 ---------- */

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: clamp(24px, 5vw, 64px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 78px) var(--pad) clamp(44px, 7vw, 96px);
}

.main {
  min-width: 0;
}

.doc > div {
  position: relative;
  margin: 0 0 clamp(30px, 5vw, 56px);
  padding: 0 0 clamp(28px, 5vw, 52px);
  scroll-margin-top: 132px;
}

.doc > div::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--cy) 52%, transparent);
}

.doc > div::before {
  content: "";
  position: absolute;
  right: 2px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff, var(--cy) 62%, #0b3a3a);
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.8);
}

.doc h2 {
  margin: 0 0 0.55em;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: #f4fff6;
  text-shadow: 0 0 26px rgba(105, 255, 105, 0.28);
}

.doc h3 {
  margin: 1.6em 0 0.5em;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--neon);
}

.doc p {
  margin: 0 0 1.05em;
  max-width: 68ch;
  line-height: 1.85;
  color: #d8f4dc;
}

.doc ul,
.doc ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
  max-width: 68ch;
  line-height: 1.85;
  color: #d8f4dc;
}

.doc li {
  margin-bottom: 0.45em;
}

.doc li::marker {
  color: var(--cy);
}

.doc strong {
  color: #ffffff;
  background: linear-gradient(180deg, transparent 62%, rgba(0, 255, 255, 0.35) 62%);
}

.doc blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--cy);
  background: rgba(0, 255, 255, 0.06);
  color: #eaffee;
}

.doc blockquote p {
  margin: 0;
}

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

.subtitle {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--cy);
  letter-spacing: 0.16em;
}

/* ---------- 右栏 ---------- */

.rail {
  position: sticky;
  top: 122px;
  align-self: start;
  padding-top: 4px;
}

.rail__h {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f4fff6;
}

.rail__nav ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.rail__nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  color: #cfeeda;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.35;
  border-left: 2px solid rgba(105, 255, 105, 0.3);
  background: rgba(105, 255, 105, 0.04);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
}

.rail__nav a:hover,
.rail__nav a:focus-visible,
.rail__nav a[aria-current] {
  color: var(--neon);
  border-left-color: var(--cy);
  background: rgba(0, 255, 255, 0.1);
  box-shadow: inset 0 0 22px rgba(0, 255, 255, 0.16);
}

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

.foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(16px, 4vw, 44px);
  padding: clamp(28px, 5vw, 46px) var(--pad) clamp(24px, 4vw, 34px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(105, 255, 105, 0.06), transparent 80%);
}

.foot__brand a {
  display: inline-block;
  font-size: clamp(1.55rem, 4.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-decoration: none;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(0, 255, 255, 0.35));
}

.foot__copy {
  text-align: center;
}

.foot__copy p {
  margin: 0;
  font-size: 16px;
  color: var(--dim);
}

/* ---------- 动效 ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .veil {
    transition: none;
  }
}

/* ---------- 断点 ---------- */

@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .rail {
    position: static;
  }

  .doc > div {
    scroll-margin-top: 148px;
  }
}

@media (max-width: 640px) {
  .top__bar {
    flex-wrap: wrap;
  }

  .find {
    flex: 1 1 100%;
    max-width: none;
    order: 3;
  }

  .hero__title {
    letter-spacing: -0.04em;
  }

  .doc > div::before {
    display: none;
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 375px) {
  body {
    font-size: 16px;
  }

  .hero__kicker {
    letter-spacing: 0.24em;
  }
}

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