:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --ink-deep: #0b160c;
  --panel: #172c19;
  --rail: 272px;
  --chrome: linear-gradient(165deg, #ffffff 0%, #d9fff1 20%, #8fb6ab 44%, #ffffff 56%, #9cc4b1 74%, #eafff6 100%);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  padding-left: var(--rail);
  overflow-x: hidden;
  background:
    radial-gradient(58vw 48vw at 90% -8%, rgba(0, 255, 255, .16), transparent 62%),
    radial-gradient(52vw 58vw at 6% 104%, rgba(105, 255, 105, .14), transparent 66%),
    var(--ink-deep);
  color: #d8ffdd;
  font-family: "DM Sans", "Space Grotesk", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(105, 255, 105, .22) 1px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 92% 72% at 72% 0%, #000 6%, transparent 76%);
  mask-image: radial-gradient(ellipse 92% 72% at 72% 0%, #000 6%, transparent 76%);
}

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

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

/* ---- 左侧固定竖排导航 ---- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 20px 30px;
  overflow-y: auto;
  background: linear-gradient(180deg, #12200f 0%, #0a150b 72%);
  box-shadow:
    inset -1px 0 0 rgba(0, 255, 255, .3),
    inset -8px 0 36px -18px rgba(105, 255, 105, .5),
    0 0 40px rgba(0, 255, 255, .1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .02em;
  text-shadow: 0 0 16px rgba(0, 255, 255, .65);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(105, 255, 105, .8);
}

.brand-name {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.rail-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 14px;
  color: #c6ffd2;
  font-size: 17px;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .22s ease, color .22s ease, transform .22s ease;
  animation: slide-in .5s both;
  animation-delay: calc(var(--i, 0) * 55ms + 90ms);
}

.rail-link::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  opacity: .4;
  transition: opacity .22s ease, transform .22s ease;
}

.rail-link:hover,
.rail-link:focus-visible,
.rail-link.on {
  background: linear-gradient(90deg, rgba(0, 255, 255, .18), rgba(105, 255, 105, .09));
  color: #ffffff;
  transform: translateX(-3px);
}

.rail-link:hover::before,
.rail-link.on::before {
  opacity: 1;
  transform: scale(1.35);
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}

.rail-search {
  display: flex;
  gap: 5px;
  margin-top: auto;
  padding: 5px;
  border-radius: 999px;
  background: rgba(0, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 255, .35);
}

.rail-search input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #eafff0;
  font: inherit;
  font-size: 16px;
}

.rail-search input::placeholder { color: #87b996; }

.rail-search button {
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #08180a;
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  box-shadow: 0 0 18px rgba(105, 255, 105, .55);
  transition: transform .2s ease, box-shadow .2s ease;
}

.rail-search button:hover { transform: scale(1.05); box-shadow: 0 0 26px rgba(0, 255, 255, .8); }

/* ---- 主区 ---- */
.deck {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  padding: 34px clamp(18px, 4vw, 62px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 296px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  min-height: 45vh;
  padding: 6px 0 34px;
  border-bottom: 1px solid rgba(0, 255, 255, .3);
  box-shadow: 0 18px 34px -34px rgba(0, 255, 255, .9);
}

.hero-fig {
  position: relative;
  margin: 0;
  min-height: 32vh;
  border-radius: 24px 24px 64px 24px;
  overflow: hidden;
  background: var(--chrome);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .6),
    0 26px 46px -30px rgba(0, 255, 255, .95);
}

.hero-fig::after {
  content: "✦";
  position: absolute;
  top: 6px;
  right: 13px;
  font-size: 20px;
  color: #0d6a3a;
  opacity: .75;
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 32vh;
  object-fit: cover;
}

.hero-cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #0a2410;
  font-size: 16px;
}

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

.eyebrow {
  margin: 0 0 2px;
  color: var(--cyan);
  font-size: 16px;
  letter-spacing: .3em;
  text-shadow: 0 0 12px rgba(0, 255, 255, .6);
}

h1 {
  margin: .18em 0 .3em;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(31px, 4.6vw, 54px);
  line-height: 1.16;
  letter-spacing: .01em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(0, 255, 255, .5));
}

.hero-lead {
  max-width: 48ch;
  margin: 0 0 0 auto;
  color: #a9ffbf;
  font-size: 18px;
}

/* ---- 正文 + 右侧栏 ---- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  align-items: start;
  gap: clamp(20px, 3vw, 44px);
  padding: 34px 0 56px;
}

.stage-main { min-width: 0; }

.stage-main > div,
.stage-main div[id] {
  position: relative;
  margin: 0 0 18px;
  padding: 26px clamp(18px, 2.6vw, 32px);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 22px 46px -40px #000;
  scroll-margin-top: 26px;
}

.stage-main div[id]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 4px;
  height: 26px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--neon), var(--cyan));
  box-shadow: 0 0 14px rgba(0, 255, 255, .8);
}

.stage-main h2 {
  margin: 0 0 12px;
  padding-left: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.35;
  color: #e9ffff;
  text-shadow: 0 0 14px rgba(0, 255, 255, .55);
}

.stage-main h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  color: var(--neon);
}

.stage-main p { margin: 0 0 14px; color: #cfe9d4; }
.stage-main ul,
.stage-main ol { margin: 0 0 16px; padding-left: 22px; color: #cfe9d4; }
.stage-main li { margin: 0 0 8px; }

.stage-main a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.stage-main img,
.stage-main figure {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.stage-main blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(0, 255, 255, .08);
  color: #d7fff0;
}

.stage-main pre {
  overflow-x: auto;
  padding: 14px;
  border-radius: 14px;
  background: #0a150b;
  color: #b7ffcd;
}

.stage-main table { width: 100%; border-collapse: collapse; }
.stage-main th,
.stage-main td { padding: 8px 10px; border-bottom: 1px solid rgba(105, 255, 105, .22); }

/* 右侧栏 */
.side {
  position: sticky;
  top: 26px;
  padding: 20px 16px;
  border-radius: 18px;
  background: #132513;
  box-shadow:
    inset 0 0 0 1px rgba(0, 255, 255, .24),
    0 0 30px -14px rgba(0, 255, 255, .8);
}

.side h2 {
  margin: 0 0 2px;
  font-size: 18px;
  color: #e9ffff;
  text-shadow: 0 0 12px rgba(0, 255, 255, .55);
}

.side .subtitle {
  margin: 0 0 12px;
  color: #8fe6a3;
  font-size: 16px;
  letter-spacing: .1em;
}

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

.side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 8px;
  border-radius: 12px;
  color: #c6ffd2;
  font-size: 16px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.side-link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  opacity: .5;
}

.side-link:hover,
.side-link.on {
  background: rgba(105, 255, 105, .12);
  color: #ffffff;
}

/* ---- 页脚 ---- */
.foot {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding: 38px clamp(18px, 4vw, 62px) 24px;
  background: linear-gradient(180deg, #0a150b, #112012);
  box-shadow: inset 0 1px 0 rgba(0, 255, 255, .28);
}

.foot-top { margin: 0 0 26px; }

.foot-form {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 255, 255, .13), rgba(105, 255, 105, .1));
  box-shadow: inset 0 0 0 1px rgba(0, 255, 255, .3);
}

.foot-form label {
  display: block;
  margin-bottom: 8px;
  color: #a7ffc0;
  font-size: 16px;
  letter-spacing: .18em;
}

.foot-row { display: flex; gap: 8px; }

.foot-row input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(6, 18, 7, .76);
  color: #eaffef;
  font: inherit;
  font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(105, 255, 105, .35);
}

.foot-row input::placeholder { color: #7ea98c; }

.foot-row button {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #08180a;
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  box-shadow: 0 0 20px rgba(0, 255, 255, .5);
  transition: transform .2s ease;
}

.foot-row button:hover { transform: scale(1.04); }

.foot-cols {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(105, 255, 105, .2);
}

.foot-logo {
  margin: 0 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot-brand address {
  margin: 0 0 10px;
  color: #93c7a3;
  font-size: 16px;
  font-style: normal;
  letter-spacing: .1em;
}

.foot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-quick-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #d3ffdc;
  font-size: 16px;
  text-decoration: none;
  background: rgba(105, 255, 105, .1);
  transition: background .2s ease, color .2s ease;
}

.foot-quick-link:hover { background: rgba(0, 255, 255, .22); color: #ffffff; }

.foot-nav dl { margin: 0; }

.foot-nav dt {
  color: var(--cyan);
  font-size: 16px;
  letter-spacing: .2em;
}

.foot-nav dd { margin: 2px 0; }

.foot-dd-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 4px;
  color: #d3ffdc;
  font-size: 16px;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.foot-dd-link:hover { color: var(--neon); transform: translateX(4px); }

.foot-base {
  padding-top: 18px;
  text-align: center;
}

.foot-base p {
  margin: 0;
  color: #7fb08f;
  font-size: 16px;
  letter-spacing: .06em;
}

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

  .rail {
    position: sticky;
    inset: 0;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    overflow: visible;
    box-shadow: inset 0 -1px 0 rgba(0, 255, 255, .32);
  }

  .brand { order: 1; font-size: 18px; }
  .rail-search { order: 2; margin-left: auto; margin-top: 0; max-width: 168px; }
  .rail-nav {
    order: 3;
    flex: 1 1 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .rail-nav ul { flex-direction: row; gap: 6px; }
  .rail-nav ul li { flex: 0 0 auto; }
  .rail-link {
    justify-content: center;
    min-height: 42px;
    padding: 8px 13px;
    white-space: nowrap;
    font-size: 16px;
  }
  .rail-link:hover { transform: none; }

  .deck { padding: 20px 14px 0; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-bottom: 24px;
    gap: 16px;
  }

  .hero-copy { order: 1; text-align: left; }
  .hero-fig { order: 2; min-height: 0; height: 176px; border-radius: 20px 20px 40px 20px; }
  .hero-img { min-height: 0; height: 176px; }
  .hero-lead { margin-left: 0; font-size: 17px; }
  .eyebrow { letter-spacing: .22em; }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 0 40px;
    gap: 22px;
  }

  .stage-main div[id] { scroll-margin-top: 122px; }
  .side { position: static; }

  .foot { padding: 28px 14px 20px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 420px) {
  .rail-search { max-width: 132px; }
  .rail-search button { padding: 0 12px; }
}

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

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