@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Poiret+One&display=swap');

:root {
  --green: #87ff71;
  --cyan: #01cdfe;
  --ink: #192617;
  --pink: #ff71ce;
  --purple: #b967ff;
  --paper: #f2fff0;
  --serif: 'Poiret One', Georgia, 'Songti SC', serif;
  --sans: 'Didact Gothic', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  color: #dcf0d6;
  background-color: #101a13;
  background-image:
    radial-gradient(900px 520px at 88% -8%, rgba(255, 113, 206, .26), transparent 62%),
    radial-gradient(820px 480px at 4% 2%, rgba(1, 205, 254, .22), transparent 60%),
    linear-gradient(180deg, #16221a 0%, #101a13 55%, #0a110d 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: .65;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
}

img { max-width: 100%; }

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

/* 品牌条 */
.brandbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 18px 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(20px, 3.4vw, 26px);
  letter-spacing: .22em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  filter: hue-rotate(-10deg);
  box-shadow: 0 0 0 1px rgba(135, 255, 113, .7), 0 0 24px rgba(1, 205, 254, .55);
}

.brand-name { text-shadow: 0 0 16px rgba(1, 205, 254, .55); }

/* 顶部锚点条 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 19, 14, .9);
  border-top: 1px solid rgba(135, 255, 113, .22);
  border-bottom: 1px solid rgba(1, 205, 254, .32);
  backdrop-filter: blur(10px);
}

.navbar nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 12px;
}

.navbar ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.navbar a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  color: #bfe6c4;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.navbar a:hover,
.navbar a.on {
  color: var(--green);
  border-bottom-color: var(--green);
  text-shadow: 0 0 14px rgba(135, 255, 113, .8);
}

/* 首屏 */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 42px;
  max-width: 1180px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 18px 76px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--cyan), var(--green));
  filter: blur(.4px);
}

.hero-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--pink) 0%, var(--purple) 38%, #2b2149 62%, #0f2a24 100%);
  box-shadow: 0 0 0 1px rgba(135, 255, 113, .35), 0 26px 64px rgba(0, 0, 0, .55);
  animation: rise .9s cubic-bezier(.2, .8, .2, 1) both;
}

.hero-media::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24%;
  z-index: 3;
  width: 42%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #faffb8, var(--green));
  opacity: .8;
  filter: blur(2px);
  box-shadow: 0 0 70px rgba(255, 113, 206, .9);
}

.hero-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 44%;
  opacity: .62;
  transform-origin: bottom;
  transform: perspective(260px) rotateX(64deg);
  background-image:
    linear-gradient(90deg, rgba(1, 205, 254, .6) 1px, transparent 1px),
    linear-gradient(180deg, rgba(1, 205, 254, .6) 1px, transparent 1px);
  background-size: 44px 32px;
}

.hero-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: .92;
}

.hero-copy { text-align: center; }

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 3.9rem);
  line-height: 1.2;
  letter-spacing: .06em;
  color: var(--paper);
  text-shadow: 0 0 18px rgba(1, 205, 254, .85), 0 0 48px rgba(255, 113, 206, .55);
  animation: glitch-in 1s cubic-bezier(.2, .8, .2, 1) both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 28px;
  background: var(--green);
  color: #0e1a11;
  font-size: 16px;
  letter-spacing: .08em;
  text-decoration: none;
  box-shadow: 0 0 26px rgba(135, 255, 113, .45);
  transition: transform .2s, box-shadow .2s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(135, 255, 113, .7); }

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan), 0 0 20px rgba(1, 205, 254, .3);
}

/* 主区 */
.wrap {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 18px 44px;
}

.rail {
  position: sticky;
  top: 76px;
  align-self: start;
  padding: 18px 14px;
  border-radius: 28px;
  background: #1c2c21;
  box-shadow: inset 0 0 0 1px rgba(1, 205, 254, .18);
}

.rail-t {
  margin: 0 0 10px;
  padding-left: 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: .34em;
  color: var(--cyan);
}

.rail-t span { border-bottom: 1px solid rgba(1, 205, 254, .45); }

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 14px;
  color: #cbe4cb;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.rail-list a:hover,
.rail-list a.on {
  color: var(--green);
  background: rgba(135, 255, 113, .12);
}

.doc { min-width: 0; }

section { counter-reset: sec; }

section > article {
  counter-increment: sec;
  padding: 34px 0 12px;
  border-top: 1px solid rgba(135, 255, 113, .16);
  scroll-margin-top: 132px;
}

section > article:first-child { padding-top: 0; border-top: 0; }

section h2 {
  margin: .1em 0 .55em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  line-height: 1.36;
  letter-spacing: .05em;
  color: #f0ffe9;
  text-shadow: 0 0 20px rgba(1, 205, 254, .4);
}

section h2::before {
  content: "0" counter(sec);
  display: block;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .44em;
  color: var(--green);
  text-shadow: 0 0 12px rgba(135, 255, 113, .85);
}

section h2 span {
  background: linear-gradient(180deg, transparent 64%, rgba(255, 113, 206, .34) 64%);
}

section h3 {
  margin: 1.4em 0 .5em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: .05em;
  color: var(--cyan);
}

section h3 span { border-bottom: 1px dashed rgba(1, 205, 254, .5); }

section p { margin: 0 0 1.15em; color: #dcf0d6; }

section ul, section ol { margin: 0 0 1.2em; padding-left: 1.25em; color: #dcf0d6; }

section li { margin: .35em 0; }

section a {
  color: var(--cyan);
  text-underline-offset: 4px;
  text-decoration-color: rgba(1, 205, 254, .55);
}

section a:hover { color: var(--green); text-decoration-color: rgba(135, 255, 113, .8); }

section blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--pink);
  border-radius: 0 24px 24px 0;
  background: rgba(255, 113, 206, .08);
  color: #f0e2ec;
}

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

section img { height: auto; border-radius: 22px; }

section figure { margin: 1.6em 0; }

section table { width: 100%; border-collapse: collapse; font-size: 16px; }

section td, section th {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(1, 205, 254, .25);
  text-align: left;
}

section code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(1, 205, 254, .14);
  font-size: 16px;
}

section pre {
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: 20px;
  background: #0c1611;
  box-shadow: inset 0 0 0 1px rgba(1, 205, 254, .25);
}

/* 页脚 */
.foot {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.15fr;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 18px 28px;
  border-top: 1px solid rgba(1, 205, 254, .28);
}

.foot p { margin: 0; font-size: 16px; color: #b7d2b9; }

.f-brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .24em;
  color: var(--green);
  text-shadow: 0 0 18px rgba(135, 255, 113, .45);
}

.f-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 10px;
  margin: 0 2px;
  border-radius: 14px;
  color: #b7d2b9;
  font-size: 16px;
  text-decoration: none;
}

.f-nav a:hover { color: var(--green); background: rgba(135, 255, 113, .1); }

.f-sub { display: flex; align-items: center; gap: 8px; }

.si {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(1, 205, 254, .45);
  border-radius: 24px;
  background: rgba(10, 18, 13, .85);
  color: #e8f8e4;
  font-family: inherit;
  font-size: 16px;
}

.si:focus { outline: 2px solid var(--green); outline-offset: 2px; }

.sb {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 24px;
  background: var(--cyan);
  color: #0c1a12;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(1, 205, 254, .4);
}

.f-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 16px;
  letter-spacing: .08em;
  color: #8fae91;
}

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

@keyframes glitch-in {
  0% { opacity: 0; transform: translateY(16px); text-shadow: -5px 0 var(--pink), 5px 0 var(--cyan); }
  55% { opacity: 1; transform: translateY(2px); text-shadow: -3px 0 var(--pink), 3px 0 var(--cyan); }
  100% { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .wrap {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 40px;
  }

  .rail {
    top: 54px;
    z-index: 40;
    padding: 10px 12px;
    border-radius: 22px;
  }

  .rail-t { margin-bottom: 8px; padding-left: 4px; font-size: 15px; letter-spacing: .28em; }

  .rail-list {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .rail-list a { padding: 6px 12px; border-radius: 16px; background: rgba(135, 255, 113, .07); }

  .foot { grid-template-columns: 1fr; gap: 14px; padding-top: 32px; }
  .f-nav { display: flex; flex-wrap: wrap; margin: -4px -2px; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 24px;
    padding: 18px 18px 60px;
  }

  .hero-media { aspect-ratio: 16 / 9; max-height: 34vh; border-radius: 24px; }
  .hero-copy h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .hero-copy { order: 0; }
  .hero-cta { margin-top: 20px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .brandbar { padding: 14px 16px 8px; }
  .hero { padding: 12px 16px 52px; }
  .wrap, .foot { padding-left: 16px; padding-right: 16px; }
  .foot p { font-size: 16px; }
  .f-sub { flex-wrap: wrap; }
  .si { flex: 1 1 100%; }
  .sb { flex: 1 1 100%; }
  section > article { scroll-margin-top: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

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