:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --ink-deep: #0b140b;
  --paper: #102010;
  --line: rgba(105, 255, 105, 0.16);
  --text: #d6ecd8;
  --text-soft: #9dc3a6;
  --mono: 'Fira Code', 'Courier New', monospace;
  --sans: 'Fira Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --chrome: linear-gradient(135deg, #eafff0, #69ff69 32%, #00ffff 62%, #b6ffd9);
  --r: 18px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 12% -6%, rgba(0, 255, 255, 0.16), transparent 62%),
    radial-gradient(760px 460px at 92% 8%, rgba(105, 255, 105, 0.14), transparent 60%),
    radial-gradient(700px 700px at 50% 120%, rgba(0, 255, 255, 0.1), transparent 65%),
    var(--ink-deep);
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

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

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

/* ---------- 顶栏 ---------- */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(14px, 4vw, 32px);
  background: linear-gradient(180deg, rgba(9, 17, 10, 0.94), rgba(9, 17, 10, 0.62));
  border-bottom: 1px solid rgba(105, 255, 105, 0.26);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(105, 255, 105, 0.65);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.8));
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.5);
  background: linear-gradient(145deg, rgba(0, 255, 255, 0.2), rgba(105, 255, 105, 0.14));
  color: #e7ffed;
  font-family: var(--mono);
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 22px -14px var(--cyan);
}

.burger-bar,
.burger-bar::before {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(105, 255, 105, 0.9);
}

.burger-bar::before {
  content: "";
  transform: translateY(6px);
}

/* ---------- 全屏菜单 ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 84px 18px 40px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 255, 255, 0.24), transparent 52%),
    radial-gradient(circle at 84% 84%, rgba(105, 255, 105, 0.22), transparent 55%),
    rgba(7, 13, 7, 0.97);
}

.veil.open { opacity: 1; visibility: visible; }

.veil ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  width: 100%;
  max-width: 540px;
}

.veil a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  color: #eafff0;
  font-family: var(--mono);
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  transition: border-color 0.2s, background 0.2s;
}

.veil a:hover,
.veil a:focus-visible {
  border-color: rgba(0, 255, 255, 0.45);
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.16), transparent);
}

.veil .idx {
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  padding: 96px clamp(16px, 5vw, 64px) 88px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.85) 0 1.5px, transparent 2px),
    radial-gradient(circle at 78% 14%, rgba(0, 255, 255, 0.9) 0 1.5px, transparent 2px),
    radial-gradient(circle at 62% 78%, rgba(105, 255, 105, 0.85) 0 1.5px, transparent 2px),
    radial-gradient(circle at 30% 68%, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 58%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.5px);
  opacity: 0.8;
}

.hero-copy {
  position: relative;
  z-index: 2;
  justify-self: center;
  max-width: 34ch;
  text-align: center;
}

.hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--mono);
  font-size: clamp(1.7rem, 5.4vw, 3.1rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: #f1fff4;
  text-shadow: 0 0 22px rgba(105, 255, 105, 0.5), 0 0 46px rgba(0, 255, 255, 0.32);
}

.hero-desc {
  margin: 0 auto;
  max-width: 32ch;
  font-size: clamp(0.98rem, 2.4vw, 1.1rem);
  line-height: 1.75;
  color: var(--text-soft);
}

.hero-media {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(400px, 78vw);
  aspect-ratio: 1 / 1;
  padding: 10px;
  border-radius: 52% 46% 54% 48% / 48% 54% 46% 52%;
  background: conic-gradient(from 140deg, #69ff69, #00ffff, #e9fff1, #69ff69);
  filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.42));
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: #0d1a0d;
  filter: saturate(1.08) contrast(1.04);
}

.hero-orb {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(circle at 32% 26%, #f4fff7, #69ff69 38%, #0d4a35 76%, #00ffff);
  animation: bob 7s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
}

.hero-slash {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -6vh;
  height: 14vh;
  transform: rotate(-4deg);
  background: linear-gradient(90deg, var(--cyan), var(--neon) 62%, rgba(105, 255, 105, 0));
  opacity: 0.42;
  pointer-events: none;
}

/* ---------- 主体 ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  align-items: start;
  gap: clamp(20px, 3vw, 42px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(14px, 4vw, 32px) 72px;
}

.paper { min-width: 0; }

.paper > section {
  position: relative;
  scroll-margin-top: 92px;
  margin-top: clamp(18px, 3vw, 28px);
  padding: clamp(20px, 3.2vw, 34px);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(158deg, rgba(23, 38, 23, 0.94), rgba(11, 22, 13, 0.94));
  box-shadow: 0 24px 46px -32px rgba(0, 255, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.paper > section::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--neon), var(--cyan));
  opacity: 0.8;
}

.paper > .lede {
  margin-top: 0;
  border-color: rgba(0, 255, 255, 0.34);
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.18), rgba(105, 255, 105, 0.1) 62%, rgba(23, 38, 23, 0.9));
  box-shadow: 0 22px 44px -26px rgba(0, 255, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.paper h2 {
  margin: 0.1em 0 0.55em;
  font-family: var(--mono);
  font-size: clamp(1.15rem, 2.7vw, 1.55rem);
  line-height: 1.42;
  color: #eaffee;
  text-shadow: 0 0 16px rgba(105, 255, 105, 0.35);
}

.paper h3 {
  margin: 1.4em 0 0.4em;
  font-family: var(--mono);
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  line-height: 1.5;
  color: var(--cyan);
}

.paper .subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #bddfc4;
}

.paper p,
.paper li {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text);
}

.paper p { margin: 0 0 1em; }
.paper p:last-child { margin-bottom: 0; }

.paper ul,
.paper ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.paper li { margin: 0.35em 0; }
.paper li::marker { color: var(--neon); }

.paper a {
  color: var(--cyan);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

.paper strong { color: #f2fff5; }

.paper img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 255, 0.28);
}

.paper blockquote {
  margin: 1.2em 0;
  padding: 0.9em 1.1em;
  border-radius: 14px;
  border: 1px solid rgba(105, 255, 105, 0.26);
  background: linear-gradient(140deg, rgba(105, 255, 105, 0.12), transparent);
  color: #d9f7de;
}

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

/* ---------- 右侧栏 ---------- */
.rail {
  position: sticky;
  top: 86px;
  padding: 16px;
  border-radius: var(--r);
  border: 1px solid rgba(0, 255, 255, 0.3);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.12), rgba(23, 38, 23, 0.92));
  box-shadow: 0 22px 44px -30px var(--cyan), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.rail-title {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--neon);
  text-transform: none;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.55rem;
  border-radius: 11px;
  text-decoration: none;
  font-size: 0.95rem;
  color: #d9f2dd;
  border: 1px solid transparent;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  border-color: rgba(105, 255, 105, 0.4);
  background: rgba(105, 255, 105, 0.1);
  color: #f2fff5;
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 24px;
  border-top: 1px solid rgba(105, 255, 105, 0.26);
  background: linear-gradient(180deg, rgba(11, 22, 13, 0.4), rgba(5, 10, 5, 0.96));
  padding: 28px clamp(14px, 4vw, 32px) 32px;
}

.foot-row {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.foot-brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 6.6vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(0, 255, 255, 0.34));
}

.foot-nav dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.7rem;
  margin: 0;
}

.foot-nav dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  opacity: 0.85;
}

.foot-nav dd { margin: 0; }

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.35rem;
  font-size: 0.92rem;
  text-decoration: none;
  color: #cfe8d4;
}

.foot-nav a:hover,
.foot-nav a:focus-visible { color: var(--neon); }

.foot-copy {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #7fa98a;
}

/* ---------- 动效 ---------- */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 92px 18px 76px;
  }
  .hero-media { width: min(280px, 68vw); order: 2; }
  .hero-copy { order: 1; }
  .hero-slash { bottom: -4vh; height: 10vh; }
  .foot-row { justify-content: flex-start; }
  .foot-brand { order: -1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-orb { animation: none; }
  .veil { transition: none; }
}

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