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

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

:root {
  --ink: #192617;
  --ink-deep: #0e170c;
  --neon: #87ff71;
  --cyan: #01cdfe;
  --pink: #ff71ce;
  --violet: #b967ff;
  --paper: #e7f6e2;
  --line: rgba(135, 255, 113, 0.24);
  --line-soft: rgba(1, 205, 254, 0.16);
  --pad: clamp(16px, 5vw, 64px);
  --face: 'Figtree', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lock { overflow: hidden; }

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  font-family: var(--face);
  font-size: 17px;
  line-height: 1.68;
  color: var(--paper);
  background:
    radial-gradient(70% 46% at 50% -8%, rgba(1, 205, 254, 0.14), transparent 68%),
    repeating-linear-gradient(90deg, rgba(135, 255, 113, 0.05) 0 1px, transparent 1px 64px),
    var(--ink);
  background-attachment: fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  opacity: 0.5;
}

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

/* ---------- 顶部 ---------- */
.top {
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, var(--ink-deep), #172a13);
  border-bottom: 1px solid var(--line-soft);
}

.mt {
  position: fixed;
  top: -120px;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.marquee {
  overflow: hidden;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(1, 205, 254, 0.55);
}

.marquee p {
  margin: 0;
  display: flex;
  padding: 7px 0;
  white-space: nowrap;
  animation: slide 30s linear infinite;
}

.marquee span { display: block; padding-right: 2.6em; }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px var(--pad);
}

.nav p { margin: 0; display: flex; flex-wrap: wrap; gap: 0 12px; }

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 6px;
  font-size: 15.5px;
  color: rgba(231, 246, 226, 0.88);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav a:hover,
.nav a:focus-visible { color: var(--neon); text-shadow: 0 0 14px rgba(135, 255, 113, 0.85); }

.nav-r p { justify-content: flex-end; }

.brand {
  margin: 0;
  font-size: clamp(15px, 2.1vw, 21px);
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.brand a {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 14px rgba(1, 205, 254, 0.75), 0 0 34px rgba(255, 113, 206, 0.5);
}

.burger {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  min-width: 48px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  background: rgba(135, 255, 113, 0.06);
}

.burger span { display: block; width: 20px; height: 2px; background: var(--neon); transition: transform 0.25s ease; }
.burger em { font-style: normal; font-size: 14px; line-height: 1; color: var(--neon); }

.mt:checked ~ .bar .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mt:checked ~ .bar .burger span:nth-child(2) { opacity: 0; }
.mt:checked ~ .bar .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 全屏遮罩菜单 ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 72px 24px;
  overflow: auto;
  background:
    radial-gradient(80% 60% at 20% 110%, rgba(255, 113, 206, 0.35), transparent 62%),
    linear-gradient(160deg, rgba(14, 23, 12, 0.98), rgba(40, 24, 52, 0.98));
  transform: translateY(-102%);
  transition: transform 0.42s cubic-bezier(0.72, 0, 0.2, 1);
}

.mt:checked ~ .veil { transform: translateY(0); }

.veil-close {
  position: absolute;
  top: 18px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 15px;
  color: var(--neon);
  cursor: pointer;
}

.nav-v p { display: grid; gap: 2px; text-align: center; }

.nav-v a {
  min-height: 48px;
  justify-content: center;
  font-size: clamp(19px, 4vw, 26px);
  color: #fff;
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
}

.nav-v a:hover { border-bottom-color: var(--neon); }

/* ---------- 粘性锚点条 ---------- */
.dock {
  position: sticky;
  top: 0;
  z-index: 12;
  background: rgba(12, 21, 11, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.dock p {
  margin: 0;
  display: flex;
  gap: 2px;
  padding: 0 var(--pad);
  overflow-x: auto;
  scrollbar-width: none;
}

.dock p::-webkit-scrollbar { display: none; }

.dock a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 13px;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  color: rgba(231, 246, 226, 0.72);
  border-bottom: 2px solid transparent;
}

.dock a:hover,
.dock a:focus-visible { color: var(--neon); border-bottom-color: var(--neon); background: rgba(135, 255, 113, 0.07); }

/* ---------- 主区 ---------- */
.flow { position: relative; z-index: 1; }

.flow > article:not(.hero) {
  padding: clamp(40px, 7vw, 82px) var(--pad);
  border-bottom: 2px solid rgba(135, 255, 113, 0.16);
  scroll-margin-top: 60px;
}

.flow > article:not(.hero):nth-of-type(even) { background: rgba(1, 205, 254, 0.035); }

.flow h1 { font-size: clamp(2.5rem, 8.6vw, 6.4rem); }

.flow h2 {
  margin: 0 0 0.6em;
  font-size: clamp(1.55rem, 3.6vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 0 22px rgba(1, 205, 254, 0.35);
}

.flow h3 {
  margin: 1.5em 0 0.5em;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.3;
  color: #fff;
}

.flow h2 > span,
.flow h3 > span,
.coda h2 > span {
  position: relative;
  display: inline-block;
}

.flow h2 > span::after,
.coda h2 > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon), var(--cyan) 55%, transparent);
}

.flow p { margin: 0 0 1em; max-width: 70ch; color: rgba(231, 246, 226, 0.9); }

.flow ul,
.flow ol { max-width: 68ch; padding-left: 1.2em; margin: 0 0 1em; }

.flow li { margin: 0.4em 0; }

.flow blockquote {
  margin: 1.4em 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--cyan);
  color: rgba(231, 246, 226, 0.86);
}

.flow img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border-bottom: 3px solid rgba(135, 255, 113, 0.5);
}

.flow a:hover { text-shadow: 0 0 12px rgba(135, 255, 113, 0.8); }

.flow hr { border: 0; border-top: 1px dashed var(--line-soft); margin: 2em 0; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: clamp(76px, 12vw, 150px) var(--pad) clamp(60px, 9vw, 110px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(130% 82% at 12% 112%, rgba(255, 113, 206, 0.5), transparent 58%),
    radial-gradient(96% 72% at 88% -12%, rgba(1, 205, 254, 0.42), transparent 62%),
    linear-gradient(180deg, #131f0f 0%, #1e3119 58%, #2b1a36 100%);
  scroll-margin-top: 60px;
}

.hero-copy { position: relative; z-index: 2; }

.hero h1 {
  margin: 0;
  max-width: 20ch;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow:
    0 0 20px rgba(1, 205, 254, 0.6),
    0 0 52px rgba(255, 113, 206, 0.5),
    0 7px 0 rgba(135, 255, 113, 0.16);
}

.hero-art {
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-art .sun {
  position: absolute;
  left: 50%;
  bottom: 36%;
  width: min(52vw, 330px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  opacity: 0.82;
  background: linear-gradient(180deg, #ffe66d, var(--pink) 46%, var(--violet));
  box-shadow: 0 0 90px rgba(255, 113, 206, 0.62);
}

.hero-art .horizon {
  position: absolute;
  inset: auto 0 0 0;
  height: 54%;
  transform: perspective(300px) rotateX(63deg) scale(1.6);
  transform-origin: bottom center;
  background:
    linear-gradient(180deg, rgba(25, 38, 23, 0) 0%, rgba(25, 38, 23, 0.92) 82%),
    repeating-linear-gradient(90deg, rgba(135, 255, 113, 0.55) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(1, 205, 254, 0.5) 0 1px, transparent 1px 28px);
}

.badge {
  position: absolute;
  right: var(--pad);
  top: clamp(20px, 7vw, 76px);
  margin: 0;
  z-index: 3;
}

.badge a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--neon);
  text-decoration: none;
  background: rgba(25, 38, 23, 0.6);
  backdrop-filter: blur(4px);
}

.pulse {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

/* ---------- 尾块 ---------- */
.coda {
  display: grid;
  grid-template-columns: 1fr minmax(196px, 268px);
  align-items: start;
  gap: clamp(22px, 4vw, 52px);
  padding: clamp(36px, 6vw, 68px) var(--pad);
  border-bottom: 2px solid rgba(135, 255, 113, 0.2);
}

.coda-art {
  position: relative;
  margin: 0;
  height: 130px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.85;
  border-bottom: 3px solid var(--neon);
  background:
    linear-gradient(180deg, rgba(25, 38, 23, 0) 0%, rgba(25, 38, 23, 0.75) 100%),
    linear-gradient(100deg, var(--pink), var(--violet) 48%, var(--cyan));
}

.coda-art span {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 100%;
  background: rgba(25, 38, 23, 0.5);
}

.coda-art span:nth-child(1) { left: 25%; }
.coda-art span:nth-child(2) { left: 50%; }
.coda-art span:nth-child(3) { left: 75%; }

.coda-nav {
  margin: 0;
  padding-left: clamp(14px, 2vw, 24px);
  border-left: 1px solid var(--line);
}

.coda-nav h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: var(--neon);
}

.coda-nav p { margin: 0; display: grid; gap: 1px; }

.coda-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
  font-size: 15.5px;
  color: rgba(231, 246, 226, 0.8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.coda-nav a:hover { color: var(--neon); border-bottom-color: var(--line); }

/* ---------- 页脚 ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 26px var(--pad) 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: rgba(231, 246, 226, 0.7);
}

.foot p { margin: 0; }
.foot small { font-size: 15px; }

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
  color: var(--neon);
  text-decoration: none;
}

/* ---------- 揭示动效 ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee p, .pulse { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .veil { transition: none; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .bar { grid-template-columns: 1fr auto; }
  .nav-l, .nav-r { display: none; }
  .brand { grid-column: 1; justify-self: start; }
  .burger { grid-column: 2; }

  .hero { min-height: 62vh; padding-top: clamp(88px, 18vw, 120px); }
  .badge { top: 14px; right: 16px; }
  .hero-art { height: 42%; }

  .coda { grid-template-columns: 1fr; }
  .coda-nav { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 18px; }
  .coda-nav p { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
}

@media (min-width: 901px) {
  .dock p { justify-content: center; }
}

@media (max-width: 420px) {
  body { font-size: 16.5px; }
  .coda-nav p { grid-template-columns: 1fr; }
}

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