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

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --deep: #0a1a11;
  --strip: 30px;
  --railw: 200px;
  --font-b: 'Baloo 2', 'Comic Neue', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-t: 'Comic Neue', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  padding-top: var(--strip);
  font-family: var(--font-t);
  font-size: 16.5px;
  line-height: 1.78;
  color: #d9f5e2;
  background-color: var(--deep);
  background-image:
    radial-gradient(1200px 620px at 88% -12%, rgba(0, 255, 255, 0.16), transparent 62%),
    radial-gradient(900px 540px at -5% 22%, rgba(105, 255, 105, 0.14), transparent 62%),
    radial-gradient(760px 720px at 50% 112%, rgba(0, 255, 255, 0.09), transparent 72%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

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

::selection {
  background: var(--neon);
  color: #06210f;
}

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

/* ---------- 顶部细条 ---------- */
.strip {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--strip);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  overflow: hidden;
  white-space: nowrap;
  z-index: 80;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  color: #b6ffd0;
  background: linear-gradient(90deg, #0d2818, #17462b 55%, #0d2818);
  border-bottom: 1px solid rgba(0, 255, 255, 0.35);
  box-shadow: 0 0 22px rgba(0, 255, 255, 0.18);
}

.strip span:nth-child(2n) {
  color: var(--cyan);
  letter-spacing: normal;
  opacity: 0.9;
}

.strip span:nth-child(odd) {
  opacity: 0.7;
}

/* ---------- 角落品牌图标 ---------- */
.brandmark {
  position: fixed;
  top: calc(var(--strip) + 14px);
  left: 14px;
  z-index: 76;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-b);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #062a12;
  text-decoration: none;
  background: linear-gradient(150deg, #e9fff0 0%, #69ff69 38%, #00ffff 100%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.85),
    0 0 18px rgba(105, 255, 105, 0.6),
    0 0 34px rgba(0, 255, 255, 0.35);
}

.brandmark img,
.brandmark svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ---------- 左侧竖排导航 ---------- */
.rail {
  position: fixed;
  top: calc(var(--strip) + 74px);
  left: 0;
  bottom: 0;
  width: var(--railw);
  padding: 6px 14px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 70;
  border-right: 1px solid rgba(0, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(13, 33, 21, 0.94), rgba(9, 22, 14, 0.97));
  box-shadow: inset -1px 0 0 rgba(105, 255, 105, 0.12);
}

.rail-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail-links a {
  display: block;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 4px;
  border: 1px solid transparent;
  color: #d3f6de;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.rail-links a:hover,
.rail-links a:focus-visible {
  color: #ffffff;
  border-color: rgba(105, 255, 105, 0.5);
  background: linear-gradient(180deg, rgba(105, 255, 105, 0.16), rgba(0, 255, 255, 0.1));
  text-shadow: 0 0 14px rgba(105, 255, 105, 0.8);
}

/* ---------- 布局骨架 ---------- */
main {
  margin-left: var(--railw);
  min-height: 60vh;
}

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

section[id] {
  scroll-margin-top: 70px;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--strip));
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 40px 0 56px;
}

.hero-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 0;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: clamp(72px, 17vw, 210px);
  line-height: 0.92;
  white-space: nowrap;
  letter-spacing: 0.02em;
  color: rgba(105, 255, 105, 0.075);
  text-shadow: 0 0 60px rgba(0, 255, 255, 0.28);
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 640px;
  padding: 0 8px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: clamp(34px, 6.4vw, 66px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffffff 0%, #d6fff4 28%, #69ff69 60%, #00ffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(0, 255, 255, 0.45);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}

.hero-desc {
  margin: 16px auto 0;
  max-width: 520px;
  font-size: 16.5px;
  line-height: 1.8;
  color: #c8ffdb;
}

.hero-cue {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 26px;
  min-height: 46px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-family: var(--font-b);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #05260f;
  text-decoration: none;
  background: linear-gradient(180deg, #f0fff5 0%, #a4ffc0 26%, #69ff69 62%, #00d8c4 100%);
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.9),
    inset 0 -3px 8px rgba(0, 120, 90, 0.35),
    0 0 20px rgba(105, 255, 105, 0.55);
}

.hero-cue:hover {
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.9),
    0 0 30px rgba(0, 255, 255, 0.7);
}

.shot {
  position: absolute;
  z-index: 2;
  width: clamp(104px, 15vw, 186px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid rgba(0, 255, 255, 0.55);
  box-shadow:
    0 0 0 4px rgba(105, 255, 105, 0.14),
    0 18px 42px rgba(0, 0, 0, 0.6);
}

.shot-1 {
  top: 9%;
  left: 2%;
  transform: rotate(-6deg);
}

.shot-2 {
  bottom: 9%;
  right: 2%;
  transform: rotate(5deg);
}

/* ---------- 正文区 + 侧栏 ---------- */
.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 262px;
  gap: 26px;
  align-items: start;
  padding: 48px 0 64px;
  border-top: 1px dashed rgba(105, 255, 105, 0.22);
}

.prose {
  min-width: 0;
}

.prose section {
  position: relative;
  margin: 0 0 22px;
  padding: clamp(18px, 2.6vw, 32px);
  border-radius: 4px;
  border: 1px solid rgba(105, 255, 105, 0.2);
  background:
    linear-gradient(160deg, rgba(28, 60, 39, 0.62), rgba(12, 30, 19, 0.78));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.prose section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, var(--neon), var(--cyan), transparent);
  opacity: 0.7;
}

.prose small,
.side small {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  letter-spacing: 0.28em;
  line-height: 1.5;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
}

.prose h2 {
  margin: 0 0 14px;
  font-family: var(--font-b);
  font-size: clamp(22px, 3.1vw, 31px);
  font-weight: 700;
  line-height: 1.32;
  color: #eaffef;
  text-shadow: 0 0 18px rgba(0, 255, 255, 0.32);
}

.prose h3 {
  margin: 22px 0 10px;
  font-family: var(--font-b);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.4;
  color: #d8ffe4;
}

.prose p {
  margin: 0 0 15px;
  color: #d8f4e2;
  line-height: 1.85;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 15px;
  padding-left: 1.3em;
}

.prose li {
  margin: 0.4em 0;
  line-height: 1.8;
}

.prose li::marker {
  color: var(--neon);
}

.prose a {
  color: var(--neon);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: #ffffff;
  text-decoration-style: solid;
}

.prose strong {
  color: #f2fff6;
}

.prose blockquote {
  margin: 0 0 16px;
  padding: 10px 16px;
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  background: rgba(0, 255, 255, 0.07);
  color: #d6f7e4;
}

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

.prose code {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.94em;
  color: #b7ffcd;
  background: rgba(0, 0, 0, 0.4);
}

.prose img {
  display: block;
  margin: 6px 0 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 255, 0.35);
}

.prose table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  font-size: 0.97em;
}

.prose th,
.prose td {
  padding: 8px 10px;
  border: 1px solid rgba(105, 255, 105, 0.25);
  text-align: left;
}

.prose th {
  color: #eaffef;
  background: rgba(105, 255, 105, 0.1);
}

.prose hr {
  margin: 22px 0;
  border: 0;
  border-top: 1px dashed rgba(0, 255, 255, 0.35);
}

/* ---------- 右侧栏 ---------- */
.side {
  position: sticky;
  top: calc(var(--strip) + 16px);
  padding: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 255, 0.28);
  background: linear-gradient(160deg, rgba(24, 56, 36, 0.9), rgba(11, 27, 18, 0.94));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.side-h {
  margin: 0 0 10px;
  font-family: var(--font-b);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #eaffef;
}

.side-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 16px;
  color: #cef8dc;
  text-decoration: none;
  border-bottom: 1px dashed rgba(105, 255, 105, 0.2);
  transition: background 0.18s ease, color 0.18s ease;
}

.side-links a:last-child {
  border-bottom: 0;
}

.side-links a:hover,
.side-links a:focus-visible {
  color: #ffffff;
  background: rgba(0, 255, 255, 0.12);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-left: var(--railw);
  padding: 42px clamp(16px, 3vw, 34px) 26px;
  border-top: 1px solid rgba(0, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(9, 23, 14, 0.92), rgba(22, 52, 33, 0.96));
  box-shadow: 0 -1px 0 rgba(105, 255, 105, 0.16);
}

.foot-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 26px;
  max-width: 1120px;
  margin: 0 auto;
}

.foot dl {
  margin: 0;
}

.foot dt {
  margin-bottom: 10px;
  font-family: var(--font-b);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #b8ffcd;
}

.foot dd {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.75;
  color: #a9d9ba;
}

.foot-nav a {
  display: block;
  min-height: 40px;
  padding: 6px 0;
  color: #d3f6de;
  text-decoration: none;
}

.foot-nav a:hover,
.foot-nav a:focus-visible,
.foot-top a:hover,
.foot-top a:focus-visible {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(105, 255, 105, 0.85);
}

.foot-top a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 14px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 255, 0.4);
  color: var(--cyan);
  text-decoration: none;
  background: rgba(0, 255, 255, 0.08);
}

.foot-base {
  max-width: 1120px;
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px dashed rgba(105, 255, 105, 0.22);
  text-align: center;
  font-size: 14.5px;
  color: #94c6a6;
}

.foot-base p {
  margin: 0;
}

/* ---------- 滚动显现 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 960px) {
  .rail {
    position: sticky;
    top: var(--strip);
    left: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    padding: 8px 10px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.25);
    z-index: 65;
  }

  .brandmark {
    position: sticky;
    top: var(--strip);
    left: auto;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    font-size: 19px;
    z-index: 66;
  }

  .rail-links {
    flex-direction: row;
    gap: 4px;
  }

  .rail-links a {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 10px 12px;
  }

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

  .doc {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 0 46px;
  }

  .side {
    position: static;
    order: 2;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 44px;
  }

  .shot {
    opacity: 0.9;
  }
}

@media (max-width: 620px) {
  .hero-word {
    font-size: clamp(56px, 19vw, 120px);
  }

  .shot-1 {
    top: 4%;
    left: 0;
    width: 92px;
  }

  .shot-2 {
    bottom: 4%;
    right: 0;
    width: 92px;
  }

  .foot-cols {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-word,
  .shot {
    transition: none;
  }
}

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