:root{
  --ink:#001e3c;
  --mint:#99ffcc;
  --neon:#00ff41;
  --bg:#00121f;
  --text:#e2fbf0;
  --muted:#93b7ae;
  --line:rgba(153,255,204,.18);
  --r:10px;
  --sans:"Outfit","Work Sans",system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.72;
  color:var(--text);
  background:
    radial-gradient(circle at 88% 2%,rgba(0,255,65,.16),transparent 44%),
    radial-gradient(circle at 4% 62%,rgba(153,255,204,.13),transparent 46%),
    linear-gradient(162deg,#001e3c 0%,#00121f 56%,#000b15 100%);
  background-attachment:fixed;
  min-height:100vh;
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:radial-gradient(rgba(153,255,204,.18) 1px,transparent 1.5px);
  background-size:30px 30px;
  opacity:.5;
  -webkit-mask-image:radial-gradient(circle at 50% 26%,#000 0%,transparent 76%);
  mask-image:radial-gradient(circle at 50% 26%,#000 0%,transparent 76%);
}
img{max-width:100%;display:block}
a{color:var(--mint);text-decoration:none}
a:hover{color:#ffffff}
hr{
  border:0;
  height:1px;
  background:linear-gradient(90deg,var(--neon),rgba(153,255,204,.06));
  margin:14px 0;
}
:focus-visible{outline:2px solid var(--neon);outline-offset:3px;border-radius:8px}

.shell{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:252px minmax(0,1fr);
  min-height:100vh;
}

/* 左侧竖排导航 */
.rail{
  position:sticky;
  top:0;
  height:100vh;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:26px 12px 34px;
  border-right:1px solid var(--line);
  background:linear-gradient(180deg,rgba(0,58,96,.72),rgba(0,12,24,.95));
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
.brand{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:50px;
  padding:8px 10px;
  border-radius:var(--r);
  color:#fff;
  font-size:19px;
  font-weight:600;
  letter-spacing:.04em;
  line-height:1.3;
}
.brand:hover{background:rgba(0,255,65,.09)}
.brand-name{overflow-wrap:anywhere}
.mark{width:34px;height:34px;flex:0 0 34px;border-radius:12px;object-fit:cover}
.mark-fallback{
  background:radial-gradient(circle at 32% 30%,var(--mint),var(--neon) 62%,#009c58);
  box-shadow:0 0 22px rgba(0,255,65,.55);
  animation:breathe 6s ease-in-out infinite;
}
.find{padding:0 8px}
.find input{
  width:100%;
  min-height:44px;
  padding:0 12px;
  border-radius:var(--r);
  border:1px solid var(--line);
  background:rgba(0,20,36,.72);
  color:var(--text);
  font:inherit;
  font-size:16px;
}
.find input::placeholder{color:var(--muted)}
.find input:focus{border-color:var(--neon);background:rgba(0,32,58,.94)}
.menu-wrap{margin-top:2px}
.menu-wrap summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:46px;
  padding:10px 14px;
  border-radius:var(--r);
  border:1px dashed var(--line);
  color:var(--muted);
  font-size:16px;
  letter-spacing:.12em;
}
.menu-wrap summary::-webkit-details-marker{display:none}
.menu-wrap summary::after{
  content:"";
  width:9px;
  height:9px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
  transition:transform .25s ease;
}
.menu-wrap[open] summary::after{transform:rotate(225deg) translateY(-2px)}
.menu-wrap[open] summary{color:var(--mint);border-style:solid;border-color:rgba(0,255,65,.45)}

.menu,.side-menu{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:4px}
.menu a,.side-menu a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:10px 12px;
  border-radius:var(--r);
  border-left:2px solid transparent;
  color:var(--text);
  font-size:16px;
  line-height:1.35;
  transition:background .2s,color .2s,border-color .2s,transform .2s;
}
.menu a:hover,.side-menu a:hover{
  background:rgba(0,255,65,.1);
  border-left-color:var(--neon);
  color:var(--mint);
  transform:translateX(3px);
}
.dot{
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:radial-gradient(circle,var(--mint),rgba(0,255,65,.18));
  box-shadow:0 0 10px rgba(0,255,65,.85);
}
li.hide{display:none}

main{
  display:grid;
  grid-template-columns:minmax(140px,192px) minmax(0,1fr);
  gap:clamp(20px,3vw,44px);
  align-items:start;
  padding:clamp(20px,3vw,38px) clamp(16px,4vw,46px) 68px clamp(16px,3vw,34px);
}

/* 左侧目录 */
.side{
  position:sticky;
  top:28px;
  padding:18px 14px;
  border-radius:var(--r);
  border:1px solid var(--line);
  background:rgba(0,26,46,.62);
}
.side-title{
  margin:0;
  font-size:17px;
  font-weight:600;
  letter-spacing:.2em;
  color:var(--mint);
}
.side hr{margin:10px 0 2px}
.side-menu{margin-top:6px}
.side-menu a{min-height:44px}

/* 主内容 */
.doc{min-width:0}
article[id]{scroll-margin-top:26px}
.hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.06fr) minmax(0,.78fr);
  align-items:center;
  gap:clamp(18px,4vw,48px);
  min-height:100svh;
  padding:clamp(24px,4vw,58px);
  border-radius:18px;
  border:1px solid var(--line);
  overflow:hidden;
  background:
    radial-gradient(circle at 80% 20%,rgba(0,255,65,.22),transparent 52%),
    radial-gradient(circle at 14% 84%,rgba(153,255,204,.16),transparent 56%),
    linear-gradient(150deg,rgba(0,52,90,.72),rgba(0,15,28,.92));
}
.hero-short{min-height:auto;padding:clamp(22px,3vw,40px)}
.hero-copy{justify-self:center;max-width:36ch;text-align:center}
.hero h1{
  margin:0 0 14px;
  font-size:clamp(2rem,5vw,3.9rem);
  line-height:1.06;
  letter-spacing:-.02em;
  color:#fff;
  text-wrap:balance;
}
.hero-desc{
  margin:0 auto 22px;
  max-width:32ch;
  color:var(--muted);
  font-size:17px;
}
.hero-short .hero-desc{margin-bottom:0}
.hero-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:13px 30px;
  border-radius:999px;
  background:linear-gradient(120deg,var(--mint),var(--neon));
  color:#00202f;
  font-size:16px;
  font-weight:600;
  letter-spacing:.12em;
  box-shadow:0 0 34px rgba(0,255,65,.4);
  transition:transform .25s ease,box-shadow .25s ease;
}
.hero-cta:hover{color:#001c11;transform:translateY(-2px);box-shadow:0 0 50px rgba(0,255,65,.6)}

.hero-media{
  display:grid;
  width:100%;
  aspect-ratio:1/1.12;
  max-height:60svh;
  justify-self:center;
}
.cell{
  grid-area:1/1;
  width:100%;
  height:100%;
  overflow:hidden;
  border-radius:58% 42% 46% 54%/44% 52% 48% 56%;
  border:1px solid rgba(0,255,65,.38);
  background:
    radial-gradient(circle at 32% 26%,rgba(153,255,204,.5),rgba(0,255,65,.18) 46%,transparent 74%),
    linear-gradient(160deg,rgba(0,60,100,.9),rgba(0,16,30,.95));
  box-shadow:0 0 70px rgba(0,255,65,.24),inset 0 0 60px rgba(0,255,65,.16);
  animation:morph 16s ease-in-out infinite,breathe 7s ease-in-out infinite;
}
.cell img{width:100%;height:100%;object-fit:cover}
.cell-empty{position:relative}
.cell-empty::after{
  content:"";
  position:absolute;
  inset:18%;
  border-radius:50%;
  border:1px dashed rgba(153,255,204,.4);
  filter:blur(.4px);
}
.hero-media.rot .cell{opacity:0;transition:opacity .9s ease}
.hero-media.rot .cell.on{opacity:1}

section > article{
  position:relative;
  margin:0 0 20px;
  padding:clamp(20px,3vw,34px);
  border-radius:var(--r);
  border:1px solid var(--line);
  border-bottom:3px solid rgba(0,255,65,.45);
  background:linear-gradient(160deg,rgba(0,48,80,.55),rgba(0,18,32,.74));
  animation:rise .7s ease both;
}
section > article:nth-child(2){animation-delay:.05s}
section > article:nth-child(3){animation-delay:.1s}
section > article:nth-child(4){animation-delay:.15s}
section > article:nth-child(5){animation-delay:.2s}
section > article:nth-child(6){animation-delay:.25s}
section > article:nth-child(7){animation-delay:.3s}
section > article:nth-child(8){animation-delay:.35s}

section h2,section h3{
  margin:0 0 12px;
  line-height:1.22;
  letter-spacing:-.01em;
  color:var(--mint);
}
section h2{font-size:clamp(1.35rem,2.6vw,2rem)}
section h3{font-size:clamp(1.15rem,2vw,1.4rem);color:#c9ffe6}
section p{margin:0 0 14px}
section p:last-child{margin-bottom:0}
section ul,section ol{margin:0 0 14px;padding-left:1.25em}
section li{margin:.35em 0}
section strong{color:#fff}
section a{text-decoration:underline;text-decoration-color:rgba(0,255,65,.55);text-underline-offset:3px}
section blockquote{
  margin:0 0 14px;
  padding:12px 16px;
  border-left:3px solid var(--neon);
  border-radius:0 var(--r) var(--r) 0;
  background:rgba(0,255,65,.07);
  color:#d7ffee;
}
section table{width:100%;border-collapse:collapse;margin:0 0 14px;font-size:16px}
section th,section td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left}
section th{color:var(--mint);font-weight:600}
section code{
  font-size:16px;
  padding:2px 6px;
  border-radius:6px;
  background:rgba(0,255,65,.12);
  color:#ccffe4;
}

/* 页脚 */
.foot{
  grid-column:1/-1;
  padding:36px clamp(16px,4vw,46px) 44px;
  border-top:1px solid var(--line);
  background:linear-gradient(0deg,rgba(0,12,24,.92),transparent);
}
.foot-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:26px;
  max-width:980px;
}
.foot dl{margin:0}
.foot dt{
  margin-bottom:8px;
  color:var(--mint);
  font-size:16px;
  letter-spacing:.2em;
}
.foot dd{margin:0;color:var(--muted);font-size:16px;overflow-wrap:anywhere}
.foot-links{display:flex;flex-wrap:wrap;gap:2px 16px}
.foot-links a{display:inline-flex;align-items:center;min-height:40px;color:var(--muted)}
.foot-links a:hover{color:var(--mint)}
.copy{margin:26px 0 0;color:var(--muted);font-size:16px}

@keyframes breathe{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.045)}
}
@keyframes morph{
  0%,100%{border-radius:58% 42% 46% 54%/44% 52% 48% 56%}
  33%{border-radius:44% 56% 60% 40%/56% 42% 58% 44%}
  66%{border-radius:52% 48% 38% 62%/48% 60% 40% 52%}
}
@keyframes rise{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:none}
}

@media (max-width:900px){
  body{font-size:16px}
  .shell{grid-template-columns:1fr}
  .rail{
    position:sticky;
    top:0;
    z-index:30;
    height:auto;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
    padding:10px 14px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .brand{grid-column:1;grid-row:1;padding:4px 2px;min-height:44px}
  .find{grid-column:1/-1;grid-row:2;padding:0}
  .menu-wrap{grid-column:2;grid-row:1;position:relative;margin:0}
  .menu-wrap summary{min-height:44px;padding:8px 12px;border-style:solid}
  .menu-wrap .menu{
    position:absolute;
    right:0;
    top:calc(100% + 8px);
    width:min(76vw,280px);
    margin:0;
    padding:8px;
    max-height:70svh;
    overflow-y:auto;
    border-radius:var(--r);
    border:1px solid var(--line);
    background:#012a49;
    box-shadow:0 22px 54px rgba(0,0,0,.55);
  }
  main{grid-template-columns:1fr;padding:18px 16px 48px}
  .doc{order:1}
  .side{order:2;position:static;margin-top:26px}
  .hero{grid-template-columns:1fr;min-height:auto;padding:24px 18px 30px;border-radius:14px}
  .hero-short{padding:22px 18px}
  .hero-copy{max-width:100%}
  .hero-desc{margin-bottom:18px}
  .hero-media{margin-top:16px;aspect-ratio:1/.92;max-height:44svh}
  .foot-cols{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:22px}
}

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