@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root{
  --ink:#001e3c;
  --ink-deep:#000f22;
  --mint:#99ffcc;
  --neon:#00ff41;
  --txt:#e2f8ee;
  --dim:rgba(226,248,238,.64);
  --line:rgba(153,255,204,.16);
  --glass:rgba(2,30,54,.52);
  --rad:10px;
  --nav:104px;
}

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

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

body{
  margin:0;
  padding-left:var(--nav);
  font-family:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI','Noto Sans SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.78;
  color:var(--txt);
  background:var(--ink-deep);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

body::before{
  content:"";
  position:fixed;
  inset:-8%;
  z-index:-1;
  background:
    radial-gradient(42vw 42vw at 10% 6%,rgba(153,255,204,.17),transparent 62%),
    radial-gradient(38vw 38vw at 92% 24%,rgba(0,255,65,.13),transparent 60%),
    radial-gradient(64vw 60vw at 46% 104%,rgba(0,255,65,.10),transparent 66%),
    linear-gradient(158deg,#001e3c 0%,#00152c 52%,#000a18 100%);
  filter:blur(2px);
  animation:breathe 19s ease-in-out infinite alternate;
}

@keyframes breathe{
  0%{transform:scale(1) translate3d(0,0,0);opacity:.82}
  100%{transform:scale(1.09) translate3d(0,-1.4%,0);opacity:1}
}

img{display:block;max-width:100%;height:auto}
a{color:var(--mint);text-decoration:none}
p{margin:0 0 16px}
.sr{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* 左侧竖排导航 */
.nv-bar{
  position:fixed;
  left:0;top:0;
  z-index:40;
  width:var(--nav);
  height:100vh;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:14px 10px 20px;
  background:rgba(0,17,36,.74);
  backdrop-filter:blur(16px);
  border-right:1px solid var(--line);
}

.brand{
  position:relative;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;height:46px;
  margin:0 auto 8px;
  border-radius:14px;
  border:1px solid var(--line);
  background:linear-gradient(140deg,rgba(153,255,204,.22),rgba(0,255,65,.07));
  transition:transform .35s cubic-bezier(.2,.7,.3,1),box-shadow .35s ease;
}
.brand::after{
  content:"";
  width:13px;height:13px;
  border-radius:50% 50% 50% 7px;
  background:var(--neon);
  box-shadow:0 0 16px rgba(0,255,65,.85);
  animation:pulse 5s ease-in-out infinite;
}
.brand--img::after{display:none}
.brand-img{width:24px;height:24px;object-fit:contain}
.brand:hover{transform:scale(1.07);box-shadow:0 0 22px rgba(0,255,65,.35)}

@keyframes pulse{
  0%,100%{transform:scale(.85);border-radius:50% 50% 50% 7px}
  50%{transform:scale(1.15);border-radius:7px 50% 50% 50%}
}

.nv{
  list-style:none;
  margin:0;padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
  overflow-y:auto;
  overflow-x:hidden;
}
.nv a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 8px;
  border-radius:8px;
  border-left:2px solid transparent;
  color:var(--dim);
  font-size:16px;
  line-height:1.25;
  transition:color .25s ease,background .25s ease,border-color .25s ease,transform .25s ease;
}
.nv a:hover,.nv a.is-on{
  color:#f0fff8;
  background:rgba(153,255,204,.11);
  border-left-color:var(--neon);
  transform:translateX(2px);
}

/* 首屏 */
.hero{
  position:relative;
  min-height:100vh;
  min-height:100svh;
  display:flex;
  align-items:center;
  overflow:hidden;
  padding:96px 44px 128px;
  clip-path:polygon(0 0,100% 0,100% 89%,0 100%);
}
.hero-img{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;height:100%;
  object-fit:cover;
  opacity:.4;
  animation:breathe 24s ease-in-out infinite alternate;
}
.hero-fill{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(60vw 50vw at 88% 20%,rgba(0,255,65,.2),transparent 62%),
    linear-gradient(102deg,rgba(0,15,34,.95) 6%,rgba(0,30,60,.76) 54%,rgba(0,255,65,.12) 100%);
}
.hero-in{
  position:relative;
  z-index:2;
  max-width:780px;
}
.kicker{
  margin:0 0 16px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.24em;
  color:var(--neon);
}
.hero h1{
  margin:0 0 20px;
  font-size:clamp(2.1rem,5.2vw,3.9rem);
  line-height:1.12;
  font-weight:800;
  letter-spacing:-.022em;
  color:#fdfffe;
  text-shadow:0 8px 34px rgba(0,10,20,.62);
}
.hero .lede{
  margin:0;
  max-width:54ch;
  font-size:18px;
  color:rgba(226,248,238,.82);
}
.hero::after{
  content:"";
  position:absolute;
  left:0;bottom:0;
  z-index:3;
  width:100%;height:9px;
  background:linear-gradient(90deg,var(--neon),var(--mint),rgba(153,255,204,0));
}

/* 主体 */
main{padding:64px 44px 76px}

.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 268px;
  gap:34px;
  align-items:start;
  max-width:1180px;
  margin:0 auto;
}

.body{min-width:0}
.prose{min-width:0}

.prose > section{
  position:relative;
  overflow:hidden;
  margin:0 0 26px;
  padding:32px 30px 34px;
  border:1px solid var(--line);
  border-radius:var(--rad);
  background:var(--glass);
  backdrop-filter:blur(12px);
  scroll-margin-top:26px;
  transition:border-color .35s ease,box-shadow .35s ease;
}
.prose > section::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:3px;
  background:linear-gradient(180deg,var(--neon),rgba(153,255,204,.08));
}
.prose > section:hover{
  border-color:rgba(153,255,204,.32);
  box-shadow:0 12px 40px rgba(0,10,22,.45);
}

html.js .prose > section{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .62s ease,transform .62s cubic-bezier(.2,.7,.3,1);
}
html.js .prose > section.in{opacity:1;transform:none}
html.js .prose > section:nth-child(2n).in{transition-delay:.06s}

.prose h2{
  margin:0 0 16px;
  font-size:clamp(1.34rem,2.3vw,1.85rem);
  line-height:1.32;
  font-weight:800;
  letter-spacing:-.012em;
  color:#f4fffb;
}
.prose h2 > span{
  display:inline-block;
  padding-bottom:7px;
  background:linear-gradient(90deg,var(--mint),rgba(0,255,65,.16)) left bottom/100% 2px no-repeat;
}
.prose h3{
  margin:26px 0 10px;
  font-size:1.16rem;
  line-height:1.42;
  font-weight:700;
  color:#eafff6;
}
.prose h3 > span{color:var(--mint)}
.prose p{color:rgba(226,248,238,.87)}
.prose ul,.prose ol{margin:0 0 18px;padding-left:22px}
.prose li{margin:0 0 8px}
.prose li::marker{color:var(--neon)}
.prose a{
  border-bottom:1px solid rgba(153,255,204,.45);
  transition:color .2s ease,border-color .2s ease;
}
.prose a:hover{color:#d6ffee;border-bottom-color:var(--neon)}
.prose strong{color:#f4fffb}
.prose blockquote{
  margin:0 0 18px;
  padding:12px 18px;
  border-left:3px solid var(--neon);
  border-radius:0 8px 8px 0;
  background:rgba(0,255,65,.06);
}
.prose img{margin:0 0 18px;border-radius:8px}
.prose hr{border:0;height:1px;background:var(--line);margin:24px 0}

/* 右侧栏 */
.rail{
  position:sticky;
  top:26px;
  display:grid;
  gap:16px;
}
.rail-box{
  padding:20px 18px;
  border:1px solid var(--line);
  border-radius:var(--rad);
  background:linear-gradient(168deg,rgba(153,255,204,.15),rgba(0,20,42,.62));
  backdrop-filter:blur(12px);
}
.rail-box h2{
  margin:0 0 12px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.1em;
  color:#eafff6;
}
.rail-box h2 > span{
  display:inline-block;
  padding-bottom:5px;
  background:linear-gradient(90deg,var(--neon),transparent) left bottom/100% 2px no-repeat;
}
.rail-list{
  list-style:none;
  margin:0;padding:0;
  display:grid;
  gap:2px;
  counter-reset:rail;
}
.rail-list li{counter-increment:rail}
.rail-list a{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-height:40px;
  padding:9px 6px;
  border-radius:8px;
  color:var(--dim);
  font-size:16px;
  line-height:1.3;
  transition:color .22s ease,background .22s ease;
}
.rail-list a::before{
  content:counter(rail,decimal-leading-zero);
  font-size:16px;
  font-variant-numeric:tabular-nums;
  color:rgba(153,255,204,.55);
}
.rail-list a:hover{color:#f0fff8;background:rgba(153,255,204,.1)}

/* 页脚 */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:16px 28px;
  padding:26px 44px 30px;
  border-top:1px solid var(--line);
  background:rgba(0,17,36,.72);
  backdrop-filter:blur(14px);
}
.foot-brand{display:flex;align-items:center}
.foot-brand .logo{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:8px;
  color:#f0fff8;
  font-weight:800;
  letter-spacing:.04em;
  transition:border-color .25s ease,box-shadow .25s ease;
}
.foot-brand .logo:hover{border-color:var(--neon);box-shadow:0 0 18px rgba(0,255,65,.28)}
.foot-nav{flex:1 1 280px}
.foot-list{
  list-style:none;
  margin:0;padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:2px;
}
.foot-list a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 10px;
  border-radius:8px;
  color:var(--dim);
  font-size:16px;
  transition:color .22s ease,background .22s ease;
}
.foot-list a:hover{color:#f0fff8;background:rgba(153,255,204,.1)}
.foot-form{flex:0 1 auto}
.sub{display:flex;align-items:center;gap:8px}
.sub label{font-size:16px;color:var(--dim)}
.sub input{
  width:168px;height:40px;
  padding:0 12px;
  font:inherit;
  font-size:16px;
  color:var(--txt);
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(0,15,34,.72);
}
.sub input:focus{outline:2px solid rgba(0,255,65,.5);outline-offset:1px}
.sub button{
  height:40px;
  padding:0 16px;
  font:inherit;
  font-size:16px;
  color:#eafff6;
  cursor:pointer;
  border:1px solid rgba(0,255,65,.5);
  border-radius:8px;
  background:linear-gradient(120deg,rgba(0,255,65,.22),rgba(153,255,204,.16));
  transition:background .25s ease,color .25s ease;
}
.sub button:hover{background:var(--neon);color:#001e3c}
.foot-cr{margin-left:auto;color:var(--dim);font-size:16px}
.foot-cr p{margin:0}

/* 断点 */
@media (max-width:1080px){
  .wrap{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;order:2}
  .rail-box{display:grid;gap:0}
}

@media (max-width:860px){
  body{padding-left:0;padding-top:62px}
  .nv-bar{
    width:100%;
    height:auto;
    flex-direction:row;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    overflow-x:auto;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .brand{margin:0;width:44px;height:44px;border-radius:12px}
  .nv{flex-direction:row;gap:2px;overflow:visible}
  .nv a{
    white-space:nowrap;
    min-height:44px;
    padding:11px 12px;
    border-left:0;
    border-bottom:2px solid transparent;
    border-radius:8px 8px 0 0;
  }
  .nv a:hover,.nv a.is-on{border-left:0;border-bottom-color:var(--neon);transform:none}
  .hero{min-height:92vh;min-height:92svh;padding:78px 20px 104px}
  .hero::after{height:7px}
  main{padding:36px 16px 52px}
  .prose > section{padding:24px 18px 26px;scroll-margin-top:78px}
  .rail{margin-top:4px}
  .foot{padding:20px 16px 26px;gap:14px}
  .foot-cr{margin-left:0;flex:1 1 100%}
  .foot-form{flex:1 1 100%}
  .sub{flex-wrap:wrap}
  .sub input{flex:1 1 140px;width:auto}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  body::before,.hero-img,.brand::after{animation:none}
  *{transition:none!important}
  html.js .prose > section{opacity:1;transform:none}
}

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