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

:root {
  --ink: #001e3c;
  --deep: #00142a;
  --mint: #99ffcc;
  --neon: #00ff41;
  --paper: #eafff5;
  --body: #cfe9de;
  --muted: #8eb4a8;
  --line: rgba(153, 255, 204, .16);
  --line-soft: rgba(153, 255, 204, .09);
  --rail: 236px;
  --r: 4px;
}

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

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--body);
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 10% 6%, rgba(0, 255, 65, .17), transparent 44%),
    radial-gradient(circle at 90% 78%, rgba(153, 255, 204, .14), transparent 48%),
    radial-gradient(circle at 62% 16%, rgba(0, 255, 65, .07), transparent 36%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- 左侧固定导航 ---- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 26px 18px;
  background: linear-gradient(180deg, rgba(0, 20, 42, .97), rgba(0, 30, 60, .92));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(10px);
  z-index: 40;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(153, 255, 204, .45);
  background: radial-gradient(circle at 32% 28%, rgba(0, 255, 65, .28), rgba(0, 30, 60, .9) 70%);
  box-shadow: 0 0 0 5px rgba(153, 255, 204, .06), 0 8px 24px rgba(0, 0, 0, .45);
  color: var(--paper);
  text-decoration: none;
  padding: 5px;
  animation: breathe 8s ease-in-out infinite;
}

.brand-mark { width: 40px; height: 40px; border-radius: 50%; }

.brand-word {
  font-size: 11px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
  word-break: break-word;
  color: var(--mint);
}

.rail-nav { min-height: 0; overflow-y: auto; }
.rail-nav p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--body);
  text-decoration: none;
  border-radius: var(--r);
  border-left: 2px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .18s ease;
}

.rail-link:hover,
.rail-link:focus-visible {
  color: var(--paper);
  background: rgba(153, 255, 204, .1);
  border-left-color: var(--neon);
  transform: translateX(2px);
}

/* ---- 主区 ---- */
.stage {
  margin-left: var(--rail);
  padding: 0 clamp(18px, 4vw, 56px);
}

.doc-wrap { margin: 0; }

/* ---- 首屏 ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(26px, 5vw, 64px);
  padding: clamp(64px, 10vh, 120px) 0 clamp(80px, 12vh, 130px);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--neon), var(--mint) 42%, transparent 90%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 34%);
  opacity: .9;
}

.hero-copy { text-align: left; max-width: 34ch; }

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -.022em;
  font-weight: 700;
  color: var(--paper);
  text-wrap: balance;
}

.hero-sub {
  margin: 0 0 30px;
  font-size: 17px;
  line-height: 1.7;
  color: #a9d5c5;
  max-width: 46ch;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--mint), var(--neon));
  color: #002a1a;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 255, 65, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0, 255, 65, .3); }

.hero-art {
  position: relative;
  min-height: 300px;
  padding-bottom: 14%;
}

.hero-fig {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid rgba(153, 255, 204, .28);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .5);
  background: rgba(0, 20, 42, .8);
}

.hero-media { display: block; width: 100%; height: auto; }

.fig-a { width: min(76%, 320px); animation: float 11s ease-in-out infinite; }
.fig-b {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(58%, 232px);
  animation: float 13s ease-in-out infinite reverse;
}

/* ---- 左侧栏 + 正文 ---- */
.split {
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  padding: clamp(38px, 6vh, 72px) 0 clamp(50px, 8vh, 92px);
  border-top: 1px solid var(--line);
}

.side {
  position: sticky;
  top: 28px;
  align-self: start;
  font-size: 16px;
}

.side h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--mint);
}

.side hr {
  border: 0;
  height: 1px;
  margin: 10px 0 14px;
  background: linear-gradient(90deg, var(--neon), transparent);
}

.side-list { margin: 0; padding: 0; list-style: none; }

.side-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: #b9dfd1;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px dashed var(--line-soft);
  transition: color .2s ease, padding-left .2s ease;
}

.side-link:hover { color: var(--neon); padding-left: 4px; }

.page-h1 {
  margin: clamp(40px, 8vh, 84px) 0 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--paper);
}

.page-sub {
  margin: 0 0 26px;
  color: #a9d5c5;
  max-width: 60ch;
}

/* ---- 正文排版 ---- */
.doc { max-width: 70ch; }

.doc section {
  scroll-margin-top: 96px;
  padding-bottom: 22px;
  animation: rise .62s ease both;
}

.doc section + section { padding-top: 26px; border-top: 1px solid var(--line-soft); }

.doc h2 {
  margin: 34px 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.72rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--paper);
}

.doc h3 {
  margin: 26px 0 6px;
  font-size: 1.14rem;
  line-height: 1.4;
  color: var(--paper);
}

.doc hr {
  border: 0;
  height: 2px;
  width: 68px;
  margin: 0 0 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon), rgba(153, 255, 204, .1));
}

.doc p { margin: 0 0 16px; }

.doc ul,
.doc ol { margin: 0 0 18px; padding-left: 1.25em; }
.doc li { margin: 0 0 8px; }

.doc a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--neon); }

.doc strong { color: var(--paper); }

.doc blockquote {
  margin: 22px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--neon);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(0, 255, 65, .06);
  color: #d8f4e9;
}

.doc figure { margin: 22px 0; }
.doc figure img { border-radius: var(--r); display: block; }
.doc figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }

.doc table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
  margin: 0 0 20px;
}

.doc th,
.doc td {
  padding: 9px 12px;
  border: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.doc th { background: rgba(153, 255, 204, .08); color: var(--paper); }

.doc code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 15px;
  background: rgba(153, 255, 204, .12);
  padding: 1px 5px;
  border-radius: 3px;
}

.doc time { font-size: 15px; color: var(--muted); }

/* ---- 页脚 ---- */
.foot { margin-left: var(--rail); }

.foot-cta {
  padding: clamp(42px, 7vh, 80px) clamp(18px, 4vw, 56px) 26px;
  background: linear-gradient(135deg, rgba(0, 255, 65, .11), rgba(153, 255, 204, .03) 60%, transparent);
  border-top: 1px solid var(--line);
}

.foot-cta h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--paper);
}

.foot-cta hr {
  border: 0;
  height: 2px;
  width: 88px;
  margin: 14px 0 20px;
  background: linear-gradient(90deg, var(--neon), transparent);
}

.foot-up {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: var(--mint);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(153, 255, 204, .4);
}

.foot-up:hover { color: var(--neon); }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 56px);
}

.foot-cols dl { margin: 0; }

.foot-cols dt {
  font-size: 14px;
  letter-spacing: .16em;
  color: var(--mint);
  margin-bottom: 6px;
}

.foot-cols dd { margin: 0; }

.foot-brand { color: var(--paper); font-weight: 600; padding-top: 10px; }

.foot-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  color: #b9dfd1;
  font-size: 16px;
  text-decoration: none;
}

.foot-link:hover { color: var(--neon); }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px clamp(18px, 4vw, 56px) 30px;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--muted);
}

.foot-top { margin-left: auto; }

/* ---- 动效 ---- */
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 5px rgba(153, 255, 204, .06), 0 8px 24px rgba(0, 0, 0, .45); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 9px rgba(0, 255, 65, .1), 0 10px 30px rgba(0, 255, 65, .2); }
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

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

.side-list li { animation: rise .5s ease both; }
.side-list li:nth-child(2) { animation-delay: .05s; }
.side-list li:nth-child(3) { animation-delay: .1s; }
.side-list li:nth-child(4) { animation-delay: .15s; }
.side-list li:nth-child(5) { animation-delay: .2s; }
.side-list li:nth-child(6) { animation-delay: .25s; }
.side-list li:nth-child(7) { animation-delay: .3s; }

/* ---- 移动端 ---- */
@media (max-width: 900px) {
  body { padding-top: 70px; }

  .rail {
    inset: 0 0 auto 0;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    overflow-y: hidden;
  }

  .brand { width: 48px; height: 48px; }

  .rail-nav { flex: 1 1 auto; overflow: visible; }
  .rail-nav p { flex-direction: row; gap: 2px; }

  .rail-link {
    min-height: 44px;
    padding: 10px 10px;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

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

  .stage { margin-left: 0; }
  .foot { margin-left: 0; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 22px 0 46px;
    gap: 26px;
  }

  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }

  .hero-art {
    display: flex;
    gap: 12px;
    min-height: 0;
    padding-bottom: 0;
  }

  .fig-a { width: 58%; }
  .fig-b { position: static; width: 42%; }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 30px;
  }

  .side { position: static; }
  .side-list { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .side-link { border-bottom: 0; }

  .doc, .hero-sub { max-width: none; }
  .doc table { font-size: 15px; }

  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .doc h2 { font-size: 1.28rem; }
}

@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}
