@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Jost:wght@300;400;500;600;700&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --green:   #87ff71;
  --cyan:    #01cdfe;
  --dark:    #192617;
  --purple:  #b967ff;
  --pink:    #ff71ce;
  --bg:      #0a0f0a;
  --bg2:     #111811;
  --text:    #d4f5d0;
  --text-dim:#7ab87a;
  --nav-w:   220px;
  --nav-w-sm:60px;
  --font-head: 'Bodoni Moda', 'Georgia', serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --radius:  0px;
  --glow-g:  0 0 8px #87ff71, 0 0 24px #87ff7166;
  --glow-c:  0 0 8px #01cdfe, 0 0 24px #01cdfe66;
  --glow-p:  0 0 8px #b967ff, 0 0 24px #b967ff66;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
}
body { font-family: var(--font-body); line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--green); }
ul, ol { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.2; }
button { cursor: pointer; font-family: var(--font-body); }
input { font-family: var(--font-body); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   VP BODY
   ============================================================ */
.vp-body {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
}

/* scanlines */
.vp-scanlines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
}

/* dot grid bg */
.vp-grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(135,255,113,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ============================================================
   SIDE NAV
   ============================================================ */
.sidenav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--nav-w);
  background: rgba(10, 15, 10, 0.92);
  border-right: 1px solid rgba(135,255,113,0.2);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width var(--transition), transform var(--transition);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.sidenav-brand {
  padding: 24px 16px 16px;
  border-bottom: 1px solid rgba(135,255,113,0.12);
  flex-shrink: 0;
}

.brand-link { display: block; }
.nav-logo-img { height: 36px; width: auto; }
.nav-logo-text {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: var(--glow-g);
  letter-spacing: 0.04em;
}

.sidenav-search {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(135,255,113,0.08);
  position: relative;
  flex-shrink: 0;
}
.nav-search-input {
  width: 100%;
  background: rgba(135,255,113,0.06);
  border: 1px solid rgba(135,255,113,0.25);
  color: var(--text);
  padding: 7px 32px 7px 10px;
  font-size: 0.85rem;
  outline: none;
  border-radius: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav-search-input:focus {
  border-color: var(--green);
  box-shadow: var(--glow-g);
}
.nav-search-input::placeholder { color: var(--text-dim); }
.search-icon {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: 1rem; pointer-events: none;
}

.nav-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}
.nav-list::-webkit-scrollbar { width: 3px; }
.nav-list::-webkit-scrollbar-thumb { background: rgba(135,255,113,0.2); }

.nav-list > li { counter-increment: nav-counter; }
.nav-list { counter-reset: nav-counter; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color var(--transition), background var(--transition), padding-left var(--transition);
  position: relative;
  min-height: 44px;
  white-space: nowrap;
  overflow: hidden;
}
.nav-link::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--green);
  opacity: 0;
  transition: opacity var(--transition);
  box-shadow: var(--glow-g);
}
.nav-link:hover {
  color: var(--green);
  background: rgba(135,255,113,0.07);
  padding-left: 22px;
}
.nav-link:hover::before { opacity: 1; }
.nav-icon {
  color: var(--cyan);
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: color var(--transition), text-shadow var(--transition);
}
.nav-link:hover .nav-icon {
  color: var(--green);
  text-shadow: var(--glow-g);
}
.nav-label { flex: 1; }

/* hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  position: absolute;
  top: 16px; right: -48px;
  width: 40px; height: 40px;
  background: rgba(10,15,10,0.92);
  border: 1px solid rgba(135,255,113,0.3);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 101;
  padding: 8px;
}
.toggle-bar {
  display: block; width: 20px; height: 2px;
  background: var(--green);
  box-shadow: var(--glow-g);
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   PAGE WRAP
   ============================================================ */
.page-wrap {
  margin-left: var(--nav-w);
  min-height: 100vh;
  position: relative;
  z-index: 1;
  transition: margin-left var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #1a0533 0%, #0d1f0d 40%, #001820 100%);
}

.hero-grid-layer {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(135,255,113,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135,255,113,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(600px) rotateX(30deg) scaleY(1.5);
  transform-origin: bottom center;
  opacity: 0.7;
}

.hero-deco-layer {
  position: absolute; inset: 0; pointer-events: none;
}

.hero-deco-card {
  position: absolute;
  border: 1px solid;
  opacity: 0.6;
}
.hero-deco-a {
  width: 260px; height: 340px;
  top: 8%; right: 12%;
  border-color: var(--cyan);
  box-shadow: inset 0 0 40px rgba(1,205,254,0.12), 0 0 30px rgba(1,205,254,0.2);
  background: linear-gradient(135deg, rgba(1,205,254,0.05), rgba(185,103,255,0.08));
  animation: float-a 7s ease-in-out infinite;
}
.hero-deco-b {
  width: 180px; height: 220px;
  top: 22%; right: 6%;
  border-color: var(--pink);
  box-shadow: inset 0 0 30px rgba(255,113,206,0.1), 0 0 20px rgba(255,113,206,0.15);
  background: linear-gradient(135deg, rgba(255,113,206,0.05), rgba(135,255,113,0.05));
  animation: float-b 9s ease-in-out infinite;
}
.hero-deco-dot-grid {
  position: absolute;
  bottom: 60px; left: 60px;
  width: 120px; height: 120px;
  background-image: radial-gradient(circle, rgba(135,255,113,0.4) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  padding: 40px 32px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: var(--glow-c);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px rgba(135,255,113,0.5), 0 0 60px rgba(135,255,113,0.2);
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

.hero-cta {
  display: inline-block;
  padding: 13px 36px;
  background: transparent;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-shadow: var(--glow-g);
  box-shadow: 0 0 16px rgba(135,255,113,0.25), inset 0 0 16px rgba(135,255,113,0.05);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  min-height: 48px;
  line-height: 1.6;
}
.hero-cta:hover {
  background: rgba(135,255,113,0.12);
  color: #fff;
  box-shadow: 0 0 32px rgba(135,255,113,0.5), inset 0 0 24px rgba(135,255,113,0.1);
}

/* ============================================================
   SCROLL TARGETS
   ============================================================ */
div[id] { scroll-margin-top: 20px; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content { padding: 0; }

.content-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto 1fr;
  gap: 0;
  min-height: 100vh;
  position: relative;
}

/* aside left */
.content-aside {
  grid-column: 1;
  grid-row: 1 / 3;
  border-right: 1px solid rgba(135,255,113,0.12);
  position: sticky;
  top: 0;
  align-self: start;
  padding: 40px 0;
  max-height: 100vh;
  overflow-y: auto;
}
.aside-inner { padding: 0 20px; }
.aside-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--green);
  text-shadow: var(--glow-g);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}
.content-aside hr,
.footer-subscribe hr {
  border: none;
  border-top: 1px solid rgba(135,255,113,0.3);
  margin-bottom: 16px;
  box-shadow: 0 0 6px rgba(135,255,113,0.15);
}
.aside-nav-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.aside-link {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 6px 8px;
  border-left: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  min-height: 40px;
  line-height: 1.5;
  display: flex;
  align-items: center;
}
.aside-link:hover {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(1,205,254,0.05);
}
.aside-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--purple);
  border: 1px solid var(--purple);
  padding: 3px 10px;
  text-shadow: var(--glow-p);
  box-shadow: 0 0 8px rgba(185,103,255,0.2);
}

/* figure decoration */
.content-figure {
  grid-column: 2;
  grid-row: 1;
  height: 220px;
  background: linear-gradient(135deg, rgba(185,103,255,0.06) 0%, rgba(1,205,254,0.06) 100%);
  border-bottom: 1px solid rgba(135,255,113,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.figure-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 160px;
  height: 160px;
}
.figure-neon-ring {
  position: absolute;
  width: 140px; height: 140px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(1,205,254,0.3), inset 0 0 20px rgba(1,205,254,0.1);
  animation: pulse-ring 4s ease-in-out infinite;
}
.figure-pixel-block {
  background: rgba(10,15,10,0.85);
  border: 1.5px solid var(--green);
  padding: 14px 20px;
  position: relative;
  z-index: 1;
  box-shadow: var(--glow-g);
}
.figure-pixel-block span {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: var(--glow-g);
  letter-spacing: 0.12em;
}

/* content body */
.content-body {
  grid-column: 2;
  grid-row: 2;
  padding: 48px 56px 80px;
}

/* ============================================================
   CONTENT BODY PROSE (page.content 里的各 div)
   ============================================================ */
.content-body h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--green);
  text-shadow: 0 0 12px rgba(135,255,113,0.35);
  margin-top: 64px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.content-body h2:first-child { margin-top: 0; }

.content-body hr {
  border: none;
  border-top: 1px solid rgba(135,255,113,0.25);
  margin: 0 0 28px;
  box-shadow: 0 0 8px rgba(135,255,113,0.12);
}

.content-body h3 {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--cyan);
  text-shadow: var(--glow-c);
  margin-top: 40px;
  margin-bottom: 12px;
}

.content-body p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 18px;
  max-width: 72ch;
}

.content-body ul, .content-body ol {
  padding-left: 20px;
  margin-bottom: 18px;
  list-style: disc;
}
.content-body ol { list-style: decimal; }
.content-body li {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 6px;
  font-size: 0.975rem;
}

.content-body a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(1,205,254,0.3);
  transition: color var(--transition), border-color var(--transition);
}
.content-body a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.content-body div {
  padding: 40px 0;
  border-bottom: 1px solid rgba(135,255,113,0.08);
}
.content-body div:last-child { border-bottom: none; }

.content-body strong { color: var(--green); font-weight: 600; }
.content-body em { color: var(--pink); font-style: italic; }

.content-body blockquote {
  border-left: 2px solid var(--purple);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(185,103,255,0.05);
  color: var(--text-dim);
  font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: rgba(8,12,8,0.97);
  border-top: 1px solid rgba(135,255,113,0.15);
  position: relative;
}

.footer-brand-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px 56px 40px;
  border-bottom: 1px solid rgba(135,255,113,0.08);
}

.footer-logo { margin-bottom: 16px; }
.footer-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 36ch;
  margin-bottom: 16px;
}
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact-item { font-size: 0.82rem; color: var(--text-dim); }

.footer-subscribe-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--cyan);
  text-shadow: var(--glow-c);
  margin-bottom: 10px;
}
.subscribe-form {
  display: flex;
  gap: 0;
  margin-top: 4px;
}
.sub-input {
  flex: 1;
  background: rgba(135,255,113,0.05);
  border: 1px solid rgba(135,255,113,0.25);
  border-right: none;
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.875rem;
  outline: none;
  min-height: 44px;
  transition: border-color var(--transition);
}
.sub-input:focus { border-color: var(--green); }
.sub-input::placeholder { color: var(--text-dim); }
.sub-btn {
  background: rgba(135,255,113,0.12);
  border: 1px solid var(--green);
  color: var(--green);
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 44px;
  letter-spacing: 0.06em;
  text-shadow: var(--glow-g);
  transition: background var(--transition), box-shadow var(--transition);
}
.sub-btn:hover {
  background: rgba(135,255,113,0.2);
  box-shadow: var(--glow-g);
}

.footer-links-section {
  padding: 32px 56px;
  border-bottom: 1px solid rgba(135,255,113,0.06);
}
.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-nav-list a {
  font-size: 0.82rem;
  color: var(--text-dim);
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
  padding: 4px 0;
}
.footer-nav-list a:hover { color: var(--green); }

.footer-bottom-section {
  padding: 24px 56px;
  text-align: center;
}
.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.footer-note {
  font-size: 0.75rem;
  color: rgba(122,184,122,0.45);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float-a {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1.5deg); }
}
@keyframes pulse-ring {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* stagger list animation */
.nav-list > li {
  opacity: 0;
  transform: translateX(-12px);
  animation: slide-in 0.5s forwards;
}
.nav-list > li:nth-child(1) { animation-delay: 0.05s; }
.nav-list > li:nth-child(2) { animation-delay: 0.10s; }
.nav-list > li:nth-child(3) { animation-delay: 0.15s; }
.nav-list > li:nth-child(4) { animation-delay: 0.20s; }
.nav-list > li:nth-child(5) { animation-delay: 0.25s; }
.nav-list > li:nth-child(6) { animation-delay: 0.30s; }
.nav-list > li:nth-child(7) { animation-delay: 0.35s; }
@keyframes slide-in {
  to { opacity: 1; transform: translateX(0); }
}

/* glitch on hero title hover */
.hero-title:hover {
  animation: glitch 0.4s steps(2) forwards;
}
@keyframes glitch {
  0%   { text-shadow: 0 0 20px rgba(135,255,113,0.5), 2px 0 0 rgba(255,113,206,0.6), -2px 0 0 rgba(1,205,254,0.6); }
  33%  { text-shadow: 0 0 20px rgba(135,255,113,0.5), -2px 0 0 rgba(255,113,206,0.6), 2px 0 0 rgba(1,205,254,0.6); }
  66%  { text-shadow: 0 0 20px rgba(135,255,113,0.5), 3px 0 0 rgba(185,103,255,0.5), -3px 0 0 rgba(135,255,113,0.5); }
  100% { text-shadow: 0 0 20px rgba(135,255,113,0.5), 0 0 60px rgba(135,255,113,0.2); }
}

/* hue-rotate ambient */
.hero-deco-a { animation: float-a 7s ease-in-out infinite, hue-cycle 18s linear infinite; }
@keyframes hue-cycle {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

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

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (max-width: 1024px) {
  :root { --nav-w: 180px; }
  .content-body { padding: 40px 36px 60px; }
  .footer-brand-section { gap: 32px; padding: 40px 36px 32px; }
  .footer-links-section, .footer-bottom-section { padding: 24px 36px; }
}

/* ============================================================
   RESPONSIVE — mobile
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-w: 0px; }

  .sidenav {
    transform: translateX(-240px);
    width: 240px;
  }
  .sidenav.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }

  .page-wrap { margin-left: 0; }

  .hero-title { font-size: 2rem; }
  .hero-deco-a, .hero-deco-b { display: none; }
  .hero-content { padding: 32px 20px; }

  .content-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }
  .content-aside {
    grid-column: 1;
    grid-row: 2;
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid rgba(135,255,113,0.12);
    padding: 24px 0;
  }
  .content-figure {
    grid-column: 1;
    grid-row: 1;
    height: 140px;
  }
  .content-body {
    grid-column: 1;
    grid-row: 3;
    padding: 32px 20px 56px;
  }

  .footer-brand-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 20px 28px;
  }
  .footer-links-section { padding: 20px; }
  .footer-bottom-section { padding: 20px; }
  .subscribe-form { flex-direction: column; }
  .sub-input { border-right: 1px solid rgba(135,255,113,0.25); }
  .footer-nav-list { gap: 6px 16px; }

  .hero-cta { display: block; width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .hero-eyebrow { font-size: 0.7rem; }
  .content-body h2 { font-size: 1.4rem; }
  .content-body p { font-size: 0.95rem; }
}

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