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

:root{
  --neon:#87ff71;
  --cyan:#01cdfe;
  --pink:#ff71ce;
  --violet:#b967ff;
  --ink:#192617;
  --deep:#080e0b;
  --panel:rgba(25,38,23,.55);
  --line:rgba(135,255,113,.22);
  --text:#e3f7e5;
  --muted:#a5c2ab;
  --r:10px;
  --dockH:78px;
  --font:"IBM Plex Sans",system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --shadow:0 20px 46px -28px rgba(1,205,254,.65);
}

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

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

body{
  margin:0;
  min-height:100vh;
  font-family:var(--font);
  font-size:17px;
  font-weight:400;
  line-height:1.78;
  color:var(--text);
  background-color:var(--deep);
  background-image:
    radial-gradient(90% 60% at 12% -6%, rgba(1,205,254,.20), transparent 62%),
    radial-gradient(70% 50% at 92% 2%, rgba(255,113,206,.16), transparent 60%),
    radial-gradient(80% 60% at 50% 118%, rgba(185,103,255,.18), transparent 62%),
    linear-gradient(180deg,#0b1510 0%,#080e0b 58%,#0a0f14 100%);
  background-attachment:fixed;
  -webkit-font-smoothing:antialiased;
}

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

a{color:var(--cyan);text-decoration:none}
a:hover{color:var(--neon)}
img{max-width:100%}

/* ---------- 主体栅格：左侧目录栏 ---------- */
.stage{
  max-width:1120px;
  margin:0 auto;
  padding:26px 18px 34px;
  display:flex;
  align-items:flex-start;
  gap:26px;
}

.doc{
  flex:1 1 auto;
  min-width:0;
  order:1;
}

.rail{
  flex:0 0 226px;
  order:0;
  align-self:flex-start;
  position:sticky;
  top:22px;
  padding:18px 16px 12px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:linear-gradient(180deg,rgba(25,38,23,.78),rgba(10,17,12,.62));
  box-shadow:var(--shadow);
}

.rail-title{
  margin:0 0 4px;
  font-size:.95rem;
  font-weight:600;
  letter-spacing:.22em;
  color:var(--cyan);
  text-shadow:0 0 14px rgba(1,205,254,.4);
}

.rail-sub{
  margin:0 0 14px;
  font-size:.85rem;
  line-height:1.6;
  color:var(--muted);
  max-width:none;
}

.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  counter-reset:rail;
}

.rail-list li{
  counter-increment:rail;
  border-top:1px dashed rgba(135,255,113,.16);
}
.rail-list li:first-child{border-top:0}

.rail-list a{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-height:40px;
  padding:9px 0;
  font-size:.95rem;
  line-height:1.45;
  color:var(--text);
  border-radius:6px;
}
.rail-list a::before{
  content:counter(rail,decimal-leading-zero);
  font-size:.72rem;
  letter-spacing:.06em;
  color:var(--neon);
  opacity:.75;
  font-variant-numeric:tabular-nums;
}
.rail-list a:hover{color:var(--neon)}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:68vh;
  padding:34px 0 48px;
  overflow:hidden;
  background:radial-gradient(120% 78% at 14% 26%, rgba(255,113,206,.15), transparent 62%);
}

.hero::before{
  content:"";
  position:absolute;
  left:-30%;
  right:-30%;
  bottom:-4%;
  height:52%;
  opacity:.55;
  pointer-events:none;
  transform:perspective(300px) rotateX(64deg);
  transform-origin:bottom center;
  background-image:
    repeating-linear-gradient(180deg,rgba(1,205,254,.34) 0 1px,transparent 1px 26px),
    repeating-linear-gradient(90deg,rgba(135,255,113,.26) 0 1px,transparent 1px 54px);
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 58%,#000);
  mask-image:linear-gradient(180deg,transparent,#000 58%,#000);
}

.hero-copy{
  position:relative;
  z-index:2;
  padding-top:32px;
  max-width:34ch;
}

.badge{
  position:absolute;
  top:2px;
  left:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:50%;
  color:#0b1510;
  background:linear-gradient(140deg,var(--pink),var(--violet));
  box-shadow:0 0 0 4px rgba(255,113,206,.14),0 0 22px rgba(255,113,206,.5);
  animation:floaty 5.4s ease-in-out infinite;
}

.hero h1{
  margin:0 0 16px;
  font-size:clamp(2rem,6.4vw,3.15rem);
  font-weight:700;
  line-height:1.24;
  letter-spacing:.005em;
  color:var(--neon);
  background:linear-gradient(96deg,#ffffff 4%,var(--neon) 44%,var(--cyan) 82%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 0 26px rgba(135,255,113,.3);
}

.subtitle{
  margin:0 0 14px;
  max-width:54ch;
  font-size:1rem;
  line-height:1.72;
  color:var(--muted);
}

.hero-art{
  position:absolute;
  right:1%;
  top:15%;
  z-index:1;
  width:clamp(118px,25vw,190px);
  height:auto;
  opacity:.92;
  pointer-events:none;
  filter:drop-shadow(0 0 24px rgba(255,113,206,.45));
  transform:translate3d(0,var(--py,0px),0);
  will-change:transform;
}

.hero-img{
  aspect-ratio:1/1;
  object-fit:cover;
  border:1px solid var(--line);
  border-radius:16px;
}

/* ---------- 正文区块 ---------- */
.doc > article{
  position:relative;
  margin:22px 0;
  padding:24px 20px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--panel);
  box-shadow:var(--shadow);
  scroll-margin-block:26px;
}

.doc > article.hero{
  margin:0 0 6px;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
}

.doc h2{
  margin:0 0 12px;
  font-size:clamp(1.4rem,3.6vw,1.85rem);
  font-weight:600;
  line-height:1.32;
  letter-spacing:.01em;
  color:var(--neon);
  text-shadow:0 0 18px rgba(135,255,113,.26);
}

.doc h3{
  margin:22px 0 8px;
  font-size:1.12rem;
  font-weight:600;
  line-height:1.5;
  color:var(--cyan);
}

.doc p{margin:0 0 14px}
.doc strong{color:#ffffff}
.doc em{color:var(--neon);font-style:normal}

.doc ul,.doc ol{margin:0 0 16px;padding-left:1.3em}
.doc li{margin:0 0 8px}
.doc li::marker{color:var(--neon)}

.doc blockquote{
  margin:18px 0;
  padding:12px 16px;
  border-left:3px solid var(--cyan);
  border-radius:0 var(--r) var(--r) 0;
  background:rgba(1,205,254,.07);
  color:var(--muted);
}

.doc img{
  display:block;
  margin:16px 0;
  height:auto;
  border-radius:var(--r);
  box-shadow:var(--shadow);
}

.doc hr{
  height:1px;
  margin:22px 0;
  border:0;
  background:linear-gradient(90deg,transparent,var(--line),transparent);
}

/* ---------- 页脚 ---------- */
.site-foot{
  position:relative;
  margin-top:44px;
  padding:34px 18px calc(var(--dockH) + 26px);
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(8,14,11,.25),rgba(25,38,23,.78));
}

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

.foot-addr{font-style:normal}

.foot-name{
  display:inline-block;
  font-size:1.15rem;
  font-weight:600;
  letter-spacing:.05em;
  color:var(--neon);
  text-shadow:0 0 16px rgba(135,255,113,.38);
}

.foot-addr p{
  margin:10px 0 0;
  max-width:38ch;
  font-size:.95rem;
  line-height:1.7;
  color:var(--muted);
}

.foot-links{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:2px 14px;
  align-content:start;
}

.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:4px 0;
  font-size:.95rem;
  color:var(--text);
  border-bottom:1px solid transparent;
}
.foot-links a:hover{color:var(--cyan);border-color:rgba(1,205,254,.45)}

.foot-copy{
  max-width:1120px;
  margin:26px auto 0;
  padding-top:18px;
  border-top:1px dashed rgba(135,255,113,.16);
  text-align:center;
  font-size:.88rem;
  color:var(--muted);
}

/* ---------- 底部固定导航条 ---------- */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:30;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 12px calc(9px + env(safe-area-inset-bottom,0px));
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(11,21,16,.8),rgba(8,14,11,.97));
  backdrop-filter:blur(12px);
  box-shadow:0 -14px 34px rgba(0,0,0,.5);
}

.dock-brand{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  margin-right:4px;
  padding:0 11px 0 4px;
  font-size:1rem;
  font-weight:600;
  letter-spacing:.06em;
  color:var(--neon);
  border-right:1px solid rgba(135,255,113,.18);
}
.dock-brand:hover{color:var(--neon)}

.dock-logo{
  display:block;
  width:26px;
  height:26px;
  border-radius:8px;
}

.dock-glitch{animation:flicker 4.6s ease-in-out infinite}

.dock-list{
  display:flex;
  align-items:center;
  gap:2px;
  flex:1 1 auto;
  min-width:0;
  margin:0;
  overflow-x:auto;
  scrollbar-width:none;
}
.dock-list::-webkit-scrollbar{display:none}
.dock-list dt{flex:0 0 auto;margin:0}

.dock-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:44px;
  padding:0 10px;
  border:1px solid transparent;
  border-radius:var(--r);
  font-size:.95rem;
  color:var(--text);
  white-space:nowrap;
  transition:color .2s ease,background .2s ease,border-color .2s ease;
}
.dock-link:hover{color:var(--neon);background:rgba(135,255,113,.08);border-color:var(--line)}

.dock-ico{display:inline-flex;opacity:.8}
.dock-link.is-active{
  color:#08110c;
  background:linear-gradient(140deg,var(--neon),var(--cyan));
  border-color:transparent;
  box-shadow:0 0 18px rgba(135,255,113,.42);
}
.dock-link.is-active .dock-ico{opacity:1}

/* ---------- 动效 ---------- */
@keyframes rise{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:translateY(0)}
}

@keyframes floaty{
  0%,100%{transform:translateY(0) rotate(-3deg)}
  50%{transform:translateY(-7px) rotate(3deg)}
}

@keyframes flicker{
  0%,100%{text-shadow:0 0 10px rgba(135,255,113,.5),1px 0 0 rgba(1,205,254,.55),-1px 0 0 rgba(255,113,206,.5)}
  50%{text-shadow:0 0 18px rgba(135,255,113,.85),2px 0 0 rgba(1,205,254,.6),-2px 0 0 rgba(255,113,206,.6)}
}

.reveal.in{animation:rise .7s cubic-bezier(.22,.7,.3,1) both}
.foot-grid > *{animation:none}
.foot-grid > .reveal-in,
.foot-grid > *{}

/* ---------- 断点 ---------- */
@media (max-width:880px){
  .stage{
    flex-direction:column;
    gap:18px;
    padding:18px 14px 28px;
  }
  .doc{order:1;width:100%}
  .rail{
    order:2;
    position:static;
    width:100%;
    flex:1 1 auto;
    padding:16px 14px 6px;
  }
  .rail-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:14px;
  }
  .rail-list li{border-top:0;border-bottom:1px dashed rgba(135,255,113,.16)}
  .hero{min-height:62vh;padding-top:24px}
  .hero-art{top:5%;right:-6px;width:114px;opacity:.6}
  .hero-copy{max-width:26ch}
  .foot-grid{grid-template-columns:1fr;gap:18px}
  .foot-links{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:460px){
  body{font-size:16px}
  .dock{gap:6px;padding-left:8px;padding-right:8px}
  .dock-brand{padding:0 8px 0 2px}
  .dock-link{padding:0 8px}
  .hero-copy{max-width:none}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal.in{animation:none}
  .badge,.dock-glitch{animation:none}
  .hero-art{transform:none}
  .dock-link{transition:none}
}

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