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

:root {
  --neo: #87ff71;
  --cyan: #01cdfe;
  --ink: #192617;
  --deep: #0f1a13;
  --paper: #e3f8dc;
  --dim: #9dc0a8;
  --rail: 170px;
  --radius: 28px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Quicksand', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--paper);
  background:
    radial-gradient(120% 78% at 84% -12%, #2c4a31 0%, #192617 46%, var(--deep) 100%) fixed;
  letter-spacing: .01em;
}

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

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(1, 205, 254, .085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 205, 254, .085) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(125% 92% at 50% 0%, #000 8%, transparent 76%);
  mask-image: radial-gradient(125% 92% at 50% 0%, #000 8%, transparent 76%);
}

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

/* ---------- 左侧竖排导轨 ---------- */

.rail {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: var(--rail);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 14px;
  overflow-y: auto;
  background: linear-gradient(180deg,
    rgba(1, 205, 254, .16) 0%,
    rgba(135, 255, 113, .07) 42%,
    rgba(15, 26, 19, .92) 100%);
  border-right: 1px solid rgba(1, 205, 254, .3);
  box-shadow: 8px 0 44px rgba(0, 0, 0, .45);
  scrollbar-width: thin;
}

.mark {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--neo), var(--cyan));
  color: #0e1a12;
  text-decoration: none;
  box-shadow: 0 0 22px rgba(135, 255, 113, .48);
  transition: transform .3s ease, box-shadow .3s ease;
}

.mark:hover {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 0 36px rgba(1, 205, 254, .72);
}

.mark-txt {
  font-family: 'Caveat', cursive;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.mark-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.rail-eyebrow {
  display: block;
  margin: 6px 0 0;
  padding-left: 5px;
  font-family: 'Caveat', cursive;
  font-size: 1.18rem;
  letter-spacing: .16em;
  color: var(--cyan);
  line-height: 1.2;
}

.rail-title {
  margin: 0 0 4px;
  padding-left: 5px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .3em;
  color: #eaffdf;
  text-shadow: 0 0 14px rgba(135, 255, 113, .6);
}

.rail-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: rail;
}

.rail-nav li { counter-increment: rail; }

.rail-link {
  display: block;
  padding: 11px 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #cfe9c9;
  font-size: 1rem;
  line-height: 1.32;
  text-decoration: none;
  transition: background .25s, color .25s, transform .25s, border-color .25s;
}

.rail-link::before {
  content: counter(rail, decimal-leading-zero);
  margin-right: 6px;
  font-family: 'Caveat', cursive;
  font-size: .98rem;
  letter-spacing: .06em;
  color: rgba(1, 205, 254, .85);
}

.rail-link:hover,
.rail-link:focus-visible {
  background: rgba(135, 255, 113, .13);
  border-color: rgba(135, 255, 113, .38);
  color: var(--neo);
  transform: translateX(4px);
  text-shadow: 0 0 12px rgba(135, 255, 113, .8);
}

/* ---------- 主体 ---------- */

main {
  position: relative;
  z-index: 1;
  margin-left: var(--rail);
}

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 56px);
  padding: clamp(30px, 5vw, 68px) clamp(18px, 3.4vw, 56px) clamp(26px, 4vw, 48px);
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 62vh;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(178deg, var(--neo) 0%, var(--cyan) 46%, var(--ink) 100%);
  box-shadow:
    0 0 64px rgba(1, 205, 254, .26),
    inset 0 0 90px rgba(18, 27, 20, .5);
}

.hero-art::after {
  content: "";
  position: absolute;
  left: -22%;
  right: -22%;
  bottom: -4%;
  height: 50%;
  background-image:
    linear-gradient(rgba(255, 255, 255, .5) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .5) 2px, transparent 2px);
  background-size: 42px 26px;
  transform: perspective(230px) rotateX(62deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 46%);
  mask-image: linear-gradient(180deg, transparent, #000 46%);
  opacity: .68;
}

.sun {
  position: absolute;
  left: 26%;
  top: 14%;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fffbe0, var(--neo) 42%, rgba(135, 255, 113, 0) 74%);
}

.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 26, 19, .5) 1.6px, transparent 1.7px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(90% 60% at 50% 96%, #000, transparent 72%);
  mask-image: radial-gradient(90% 60% at 50% 96%, #000, transparent 72%);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 4.3vw, 3.25rem);
  line-height: 1.24;
  letter-spacing: .01em;
  color: #f4ffee;
  text-shadow:
    0 0 26px rgba(1, 205, 254, .62),
    0 0 64px rgba(135, 255, 113, .36);
}

.lede {
  margin: 0 auto 26px;
  max-width: 34ch;
  color: #b7d8bf;
  font-size: 1rem;
  line-height: 1.78;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 26px;
  border-radius: 999px;
  background: linear-gradient(96deg, var(--neo), var(--cyan));
  color: #0d1a12;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 0 26px rgba(135, 255, 113, .45);
  transition: transform .25s, box-shadow .25s, filter .25s;
}

.cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 42px rgba(1, 205, 254, .74);
  filter: hue-rotate(-16deg);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 48px) 24px;
}

.doc {
  font-size: 1.04rem;
  line-height: 1.86;
  color: #dcefdc;
  padding-bottom: 28px;
}

.doc article {
  padding: 46px 0 10px;
  border-top: 1px dashed rgba(135, 255, 113, .3);
  scroll-margin-top: 96px;
}

.doc article:first-of-type {
  border-top: 0;
  padding-top: 10px;
}

.doc h2 {
  margin: .12em 0 .55em;
  font-size: clamp(1.42rem, 2.5vw, 1.95rem);
  line-height: 1.32;
  color: #f1ffea;
  text-shadow: 0 0 20px rgba(1, 205, 254, .45);
}

.doc h3 {
  margin: 1.6em 0 .5em;
  font-size: 1.16rem;
  line-height: 1.4;
  color: var(--neo);
}

.doc small {
  display: block;
  margin-bottom: 4px;
  font-family: 'Caveat', cursive;
  font-size: 1.22rem;
  letter-spacing: .17em;
  line-height: 1.2;
  color: var(--cyan);
}

.doc p { margin: 0 0 1.15em; }

.doc ul,
.doc ol {
  margin: 0 0 1.15em;
  padding-left: 1.4em;
}

.doc li { margin: .4em 0; }

.doc li::marker { color: var(--cyan); }

.doc a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(1, 205, 254, .5);
  text-underline-offset: 3px;
}

.doc a:hover { color: var(--neo); }

.doc strong { color: #f4ffee; }

.doc blockquote {
  margin: 1.5em 0;
  padding: .2em 0 .2em 1.05em;
  border-left: 3px solid var(--cyan);
  color: #b6e0c1;
}

.doc img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(1, 205, 254, .3);
}

.doc time {
  font-family: 'Caveat', cursive;
  font-size: 1.08rem;
  letter-spacing: .06em;
  color: var(--cyan);
}

.doc code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .94em;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(1, 205, 254, .14);
  color: #d6ffe9;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: .98rem;
}

.doc th,
.doc td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(135, 255, 113, .22);
  text-align: left;
}

/* ---------- 页脚 ---------- */

.foot {
  position: relative;
  z-index: 1;
  margin-left: var(--rail);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 34px;
  padding: 30px clamp(16px, 3vw, 48px);
  border-top: 1px solid rgba(1, 205, 254, .3);
  background: linear-gradient(180deg, rgba(1, 205, 254, .06), rgba(0, 0, 0, .22));
}

.foot-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 560px;
}

.mark-sm {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.mark-sm .mark-txt { font-size: 26px; }

.foot-desc {
  margin: 0;
  max-width: 30ch;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dim);
}

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

.sub-input {
  min-width: 0;
  width: 150px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(1, 205, 254, .42);
  background: rgba(10, 20, 14, .66);
  color: #e8ffe4;
  font-family: inherit;
  font-size: 1rem;
}

.sub-input::placeholder { color: #7fa88c; }

.sub-btn {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--neo);
  color: #0e1a12;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .22s, box-shadow .22s;
}

.sub-btn:hover {
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(1, 205, 254, .55);
}

.foot-nav ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 2px;
  margin: 0;
  padding: 0;
}

.foot-link {
  display: block;
  padding: 11px 10px;
  border-radius: 10px;
  font-size: 1rem;
  color: #bfe0c6;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.foot-link:hover {
  background: rgba(135, 255, 113, .12);
  color: var(--neo);
}

.copy {
  margin: 0;
  font-family: 'Caveat', cursive;
  font-size: 1.12rem;
  letter-spacing: .08em;
  color: #7fa88c;
}

/* ---------- 滚动显现 ---------- */

@keyframes rise {
  from { opacity: .22; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .doc article {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 26%;
    }
  }
}

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

/* ---------- 窄屏 ---------- */

@media (max-width: 960px) {
  .rail {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    overflow-y: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(1, 205, 254, .35);
    background: rgba(18, 32, 26, .95);
    backdrop-filter: blur(12px);
  }

  .mark { width: 40px; height: 40px; border-radius: 13px; }
  .mark-txt { font-size: 25px; }
  .rail-eyebrow { display: none; }

  .rail-title {
    margin: 0;
    padding: 0 4px 0 6px;
    font-size: 1rem;
    letter-spacing: .16em;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .rail-nav {
    margin-left: auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .rail-nav::-webkit-scrollbar { display: none; }

  .rail-nav ol {
    flex-direction: row;
    gap: 2px;
    counter-reset: none;
  }

  .rail-link {
    white-space: nowrap;
    padding: 11px 13px;
  }

  .rail-link:hover { transform: none; }
  .rail-link::before { display: none; }

  main,
  .foot { margin-left: 0; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 26px;
    gap: 24px;
  }

  .hero-art {
    order: -1;
    width: 100%;
    aspect-ratio: 16 / 11;
    max-height: 44vh;
  }

  .doc article { scroll-margin-top: 78px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.15rem); }
  .hero-art { aspect-ratio: 16 / 13; }

  .wrap { padding-left: 14px; padding-right: 14px; }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .foot-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .sub { width: 100%; }
  .sub-input { flex: 1 1 auto; width: auto; }
  .foot-desc { max-width: 100%; }
}

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