@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Patrick+Hand&display=swap');

:root {
  --neon: #87ff71;
  --cyan: #01cdfe;
  --ink: #192617;
  --pink: #ff71ce;
  --bg: #0b1410;
  --card: #14261c;
  --txt: #d8efdc;
  --dim: #9fd8b0;
  --rail: 252px;
  --font: 'Kalam', 'Patrick Hand', 'Kaiti SC', 'STKaiti', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--txt);
  overflow-x: hidden;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(255, 113, 206, .22), transparent 65%),
    radial-gradient(900px 640px at 6% 34%, rgba(1, 205, 254, .14), transparent 70%),
    linear-gradient(180deg, #101d15, #080f0b 62%, #0b1410);
  background-attachment: fixed, fixed, fixed;
}

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

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

/* ---------- 左侧竖排导航 ---------- */
.rail {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(16, 29, 21, .97), rgba(8, 15, 11, .95));
  border-bottom: 1px solid rgba(1, 205, 254, .3);
  backdrop-filter: blur(6px);
}

.rail-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--neon);
  text-decoration: none;
  text-shadow: 0 0 8px rgba(135, 255, 113, .65), 0 0 22px rgba(1, 205, 254, .45);
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 14px rgba(1, 205, 254, .55);
}

.rail-nav { order: 3; flex-basis: 100%; width: 100%; }
.rail-nav p { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

.rail-nav a {
  display: inline-block;
  min-height: 44px;
  padding: 9px 12px;
  font-size: 16px;
  line-height: 1.5;
  color: #c6f0ce;
  text-decoration: none;
  border-radius: 14px;
  background: rgba(135, 255, 113, .07);
  border: 1px solid rgba(1, 205, 254, .28);
  transition: color .2s, background .2s, box-shadow .2s;
}

.rail-nav a:hover,
.rail-nav a.on {
  color: #08130c;
  background: var(--neon);
  border-color: var(--neon);
  box-shadow: 0 0 18px rgba(135, 255, 113, .6);
}

.rail-cta {
  order: 2;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #08130c;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  box-shadow: 0 0 22px rgba(135, 255, 113, .45);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 84px 20px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #1d1030 0%, #6b2461 26%, #ff71ce 50%, #01cdfe 70%, #10281c 100%);
}

.hero-media { position: absolute; inset: -8% 0 0; z-index: -3; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
  filter: saturate(1.25) contrast(1.06) hue-rotate(-12deg);
  will-change: transform;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 50% 78%, rgba(255, 113, 206, .5), transparent 62%),
              linear-gradient(180deg, rgba(11, 20, 16, .35), rgba(11, 20, 16, .78));
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(760px, 92vw);
  height: min(760px, 92vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 205, 254, .38), rgba(135, 255, 113, .12) 45%, transparent 68%);
  filter: blur(2px);
  pointer-events: none;
}

.hero-floor {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 46vh;
  pointer-events: none;
  opacity: .55;
  background-image:
    linear-gradient(rgba(1, 205, 254, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 205, 254, .45) 1px, transparent 1px);
  background-size: 100% 44px, 66px 100%;
  transform: perspective(340px) rotateX(66deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, #000 12%, transparent 92%);
  -webkit-mask-image: linear-gradient(to top, #000 12%, transparent 92%);
}

.hero-inner { position: relative; z-index: 2; max-width: 900px; }

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 7.4vw, 78px);
  line-height: 1.16;
  letter-spacing: .07em;
  color: #f5fff2;
  text-shadow: 0 0 6px #87ff71, 0 0 22px #01cdfe, 0 0 52px #ff71ce;
}

.hero-jump { margin: 26px 0 0; }

.hero-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 24px;
  font-size: 16px;
  color: #eafff1;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(135, 255, 113, .8);
  background: rgba(11, 20, 16, .42);
  box-shadow: 0 0 18px rgba(1, 205, 254, .5) inset;
}

.hero-jump a:hover { background: rgba(135, 255, 113, .22); }

/* ---------- 主体 ---------- */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 20px 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.side {
  align-self: start;
  padding: 22px 22px 24px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 0 0 1px rgba(1, 205, 254, .22), 0 14px 44px rgba(0, 0, 0, .5);
}

.side h2 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.4;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(135, 255, 113, .6);
}

.side .subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dim);
}

.prose { min-width: 0; }

.prose section {
  margin: 0 0 24px;
  padding: 26px 22px 10px;
  border-radius: 28px;
  background: var(--card);
  scroll-margin-top: 132px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, .34);
}

.prose h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.35;
  letter-spacing: .02em;
  color: #ecfff1;
  text-shadow: 0 0 14px rgba(1, 205, 254, .55);
}

.prose h2 + p { color: #9fd8ff; font-size: 17px; }

.prose h3 {
  margin: 22px 0 10px;
  font-size: 19px;
  color: var(--neon);
}

.prose p { margin: 0 0 16px; line-height: 1.9; color: var(--txt); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.25em; }
.prose li { margin: .45em 0; line-height: 1.8; }
.prose strong { color: var(--neon); }
.prose a { color: var(--cyan); text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; border-radius: 22px; display: block; }

.prose blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--neon);
  border-radius: 4px 20px 20px 4px;
  background: rgba(135, 255, 113, .08);
}

.prose blockquote p { margin: 0; }

/* ---------- 页脚 ---------- */
footer {
  margin-top: 40px;
  padding: 46px 22px 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background: linear-gradient(180deg, #0e1a13, #060c08);
  border-top: 1px solid rgba(1, 205, 254, .28);
}

.f-cta { margin: 0; }

.f-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 28px;
  font-size: 18px;
  font-weight: 700;
  color: #0b1410;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  box-shadow: 0 0 26px rgba(255, 113, 206, .38);
}

.f-brand {
  margin: 0;
  font-size: 18px;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(135, 255, 113, .55);
}

.f-links { margin: 0; }
.f-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 2px;
  color: #bfe8c8;
  text-decoration: none;
}

footer small {
  display: block;
  margin-top: 6px;
  padding-top: 16px;
  font-size: 15px;
  color: #8fb69a;
  border-top: 1px solid rgba(135, 255, 113, .16);
}

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: neon 5.6s ease-in-out infinite; }

  .prose section { animation: rise .6s cubic-bezier(.2, .7, .3, 1) both; }
  .prose section:nth-child(1) { animation-delay: .04s; }
  .prose section:nth-child(2) { animation-delay: .1s; }
  .prose section:nth-child(3) { animation-delay: .16s; }
  .prose section:nth-child(4) { animation-delay: .22s; }
  .prose section:nth-child(5) { animation-delay: .28s; }
  .prose section:nth-child(6) { animation-delay: .34s; }
  .prose section:nth-child(7) { animation-delay: .4s; }
  .prose section:nth-child(n+8) { animation-delay: .46s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes neon {
  0%, 100% { text-shadow: 0 0 6px #87ff71, 0 0 22px #01cdfe, 0 0 52px #ff71ce; }
  48% { text-shadow: 0 0 4px #87ff71, 0 0 14px #01cdfe, 0 0 30px #ff71ce; }
  52% { text-shadow: 0 0 8px #ff71ce, 0 0 26px #87ff71, 0 0 58px #01cdfe; }
}

/* ---------- 宽屏：左栏固定 ---------- */
@media (min-width: 900px) {
  body { padding-left: var(--rail); }

  .rail {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--rail);
    padding: 28px 20px 24px;
    border-bottom: 0;
    border-right: 1px solid rgba(1, 205, 254, .26);
    overflow-y: auto;
  }

  .rail-top {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 18px;
    min-height: 100%;
  }

  .rail-nav { order: 2; }
  .rail-nav a { width: auto; }

  .rail-cta { order: 3; margin: 8px 0 0; justify-content: center; margin-top: auto; }

  .hero { padding: 100px 40px; }

  main {
    grid-template-columns: 262px minmax(0, 1fr);
    gap: 32px;
    padding: 64px 28px 8px;
  }

  .side { position: sticky; top: 30px; }

  .prose section { padding: 32px 30px 12px; scroll-margin-top: 40px; }

  footer {
    grid-template-columns: 1.5fr 1fr 1fr;
    align-items: start;
    gap: 24px;
    padding: 56px calc(28px + 2vw) 34px;
  }

  .f-links { text-align: right; }
  footer small { grid-column: 1 / -1; }
}

@media (min-width: 1200px) {
  .prose section { padding: 36px 38px 14px; }
}

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