:root{
  --ink:#001e3c;
  --ink-deep:#00121f;
  --mint:#99ffcc;
  --neon:#00ff41;
  --text:#e8fff5;
  --muted:#9dc4b6;
  --line:rgba(153,255,204,.2);
  --rail:264px;
  --ease:cubic-bezier(.2,.72,.24,1);
}
*,*::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);
  font-family:'Nunito Sans',"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.8;
  color:var(--text);
  background-color:var(--ink-deep);
  background-image:
    radial-gradient(62vw 62vw at 90% -8%,rgba(0,255,65,.14),transparent 62%),
    radial-gradient(50vw 50vw at 2% 34%,rgba(153,255,204,.12),transparent 60%),
    radial-gradient(74vw 48vw at 62% 106%,rgba(0,255,65,.1),transparent 64%),
    linear-gradient(158deg,#001d34,#00121f 58%,#001a2c);
  background-attachment:fixed;
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(closest-side at 24% 28%,rgba(153,255,204,.22),transparent 72%),
    radial-gradient(closest-side at 76% 64%,rgba(0,255,65,.18),transparent 70%);
  filter:blur(50px);
  opacity:.7;
  animation:breathe 18s ease-in-out infinite;
}
@keyframes breathe{
  0%,100%{transform:scale(1);opacity:.55}
  50%{transform:scale(1.14);opacity:.88}
}
img{max-width:100%;height:auto}
a{color:var(--mint)}
:focus-visible{outline:2px solid var(--neon);outline-offset:3px}

.skip{
  position:absolute;
  left:-9999px;
  top:0;
  padding:12px 16px;
  background:var(--neon);
  color:var(--ink);
  z-index:60;
  text-decoration:none;
}
.skip:focus{left:8px;top:8px}

/* ---------- 左侧竖排栏 ---------- */
.shell{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--rail);
  z-index:30;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:24px 20px 26px;
  border-right:1px solid var(--line);
  background:linear-gradient(185deg,rgba(0,30,60,.94),rgba(0,18,31,.9));
  backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);
}
.mark-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  text-decoration:none;
  border:1px solid rgba(153,255,204,.35);
  background:rgba(153,255,204,.08);
  transition:border-color .3s var(--ease),background .3s var(--ease);
}
.mark-link:hover{border-color:var(--neon);background:rgba(0,255,65,.16)}
.mark-img{display:block;width:42px;height:42px;object-fit:contain}
.mark{
  font-family:'Varela Round',system-ui,sans-serif;
  font-size:1.35rem;
  color:var(--mint);
}
.dock{margin-top:6px;flex:1 1 auto;min-height:0;overflow-y:auto}
.dock-p{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:0;
}
.dock-p a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 12px;
  color:var(--text);
  font-size:17px;
  text-decoration:none;
  border-left:2px solid transparent;
  transition:color .25s var(--ease),background .25s var(--ease),border-color .25s var(--ease);
}
.dock-p a:hover,.dock-p a:focus-visible{
  color:var(--mint);
  background:rgba(0,255,65,.1);
  border-left-color:var(--neon);
}
.call{margin:0}
.call a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 12px;
  font-family:'Varela Round',system-ui,sans-serif;
  font-size:17px;
  color:var(--ink);
  background:var(--mint);
  text-decoration:none;
  box-shadow:0 8px 22px rgba(0,255,65,.22);
  transition:background .3s var(--ease),transform .3s var(--ease);
}
.call a:hover{background:var(--neon);transform:translateY(-1px)}

/* ---------- 主区骨架 ---------- */
.wrap{
  max-width:1160px;
  margin:0 auto;
  padding:32px 28px 64px;
}
.board{
  display:grid;
  grid-template-columns:minmax(0,1fr) 236px;
  gap:40px;
  align-items:start;
}
.sheet{min-width:0}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  overflow:hidden;
  min-height:45vh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-end;
  text-align:right;
  padding:44px 26px 26px;
  margin-bottom:26px;
  border:1px solid rgba(153,255,204,.24);
  background:
    radial-gradient(circle at 84% 18%,rgba(0,255,65,.18),transparent 58%),
    radial-gradient(circle at 16% 82%,rgba(153,255,204,.16),transparent 60%),
    rgba(0,30,60,.44);
}
.hero::after{
  content:attr(data-word);
  position:absolute;
  right:-2%;
  bottom:-4%;
  z-index:0;
  font-family:'Varela Round',system-ui,sans-serif;
  font-size:clamp(2.9rem,12vw,8.6rem);
  line-height:.82;
  letter-spacing:.03em;
  white-space:nowrap;
  color:var(--mint);
  opacity:.085;
  pointer-events:none;
  animation:drift 22s ease-in-out infinite;
}
@keyframes drift{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(-1.4%,1.2%,0)}
}
.hero h1{
  position:relative;
  z-index:2;
  margin:0;
  max-width:14ch;
  font-family:'Varela Round',system-ui,sans-serif;
  font-size:clamp(1.95rem,5.6vw,4rem);
  line-height:1.1;
  letter-spacing:.01em;
  color:#f4fff9;
  text-shadow:0 10px 34px rgba(0,18,31,.65);
}
.blob{
  position:absolute;
  z-index:1;
  filter:blur(16px);
  opacity:.55;
  pointer-events:none;
  animation:breathe 13s ease-in-out infinite;
}
.b1{
  width:170px;height:170px;
  left:-40px;top:-30px;
  border-radius:62% 38% 55% 45%/48% 58% 42% 52%;
  background:radial-gradient(circle at 34% 30%,rgba(0,255,65,.75),rgba(0,255,65,0) 72%);
}
.b2{
  width:120px;height:120px;
  right:34%;bottom:-24px;
  border-radius:45% 55% 40% 60%/58% 42% 58% 42%;
  background:radial-gradient(circle at 60% 40%,rgba(153,255,204,.8),rgba(153,255,204,0) 70%);
  animation-delay:-4s;
}
.b3{
  width:76px;height:76px;
  right:-16px;top:38%;
  border-radius:52% 48% 60% 40%/44% 56% 44% 56%;
  background:radial-gradient(circle at 40% 60%,rgba(0,255,65,.7),rgba(0,255,65,0) 70%);
  animation-delay:-8s;
}

/* ---------- 正文 ---------- */
.sheet > article{
  padding:38px 0;
  border-top:1px solid var(--line);
  scroll-margin-top:28px;
}
.sheet > article:first-of-type{border-top:0;padding-top:10px}
.sheet h2{
  margin:0 0 .6em;
  font-family:'Varela Round',system-ui,sans-serif;
  font-size:clamp(1.4rem,3.4vw,2.05rem);
  line-height:1.3;
  letter-spacing:.01em;
  color:#f2fff9;
}
.sheet h3{
  margin:1.5em 0 .5em;
  font-family:'Varela Round',system-ui,sans-serif;
  font-size:1.22rem;
  line-height:1.4;
  color:var(--mint);
}
.sheet h2 span,.sheet h3 span{
  background:linear-gradient(transparent 64%,rgba(0,255,65,.3) 64%);
  padding-bottom:2px;
}
.sheet p{margin:0 0 1.05em;max-width:70ch}
.sheet ul,.sheet ol{margin:0 0 1.2em;padding-left:1.25em;max-width:70ch}
.sheet li{margin:.4em 0}
.sheet a{
  color:var(--mint);
  text-underline-offset:3px;
  text-decoration-color:rgba(0,255,65,.65);
}
.sheet a:hover{color:var(--neon)}
.sheet blockquote{
  margin:1.5em 0;
  padding:16px 20px;
  border-left:3px solid var(--neon);
  background:rgba(153,255,204,.08);
  color:#f2fff9;
  max-width:70ch;
}
.sheet blockquote p:last-child{margin:0}
.sheet img{
  display:block;
  margin:1.4em 0;
  border:1px solid var(--line);
  box-shadow:0 18px 40px rgba(0,18,31,.5);
}
.sheet hr{border:0;border-top:1px solid var(--line);margin:2.2em 0}
.sheet table{
  width:100%;
  border-collapse:collapse;
  margin:1.4em 0;
  font-size:16px;
}
.sheet th,.sheet td{
  padding:10px 12px;
  border:1px solid var(--line);
  text-align:left;
}
.sheet th{background:rgba(153,255,204,.1);color:var(--mint)}
.sheet strong{color:#f4fff9}
.rv{opacity:0;transform:translateY(20px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.rv.in{opacity:1;transform:none}

/* ---------- 右侧侧栏 ---------- */
.notes{
  position:sticky;
  top:30px;
  padding:20px 18px;
  border:1px solid var(--line);
  background:linear-gradient(175deg,rgba(0,30,60,.7),rgba(0,18,31,.62));
  box-shadow:0 22px 50px rgba(0,12,22,.45);
}
.note-h{
  margin:0 0 .55em;
  font-family:'Varela Round',system-ui,sans-serif;
  font-size:1rem;
  letter-spacing:.14em;
  color:var(--mint);
}
.note-h + .note-links{margin-top:0}
.note-links{
  display:flex;
  flex-direction:column;
  margin:0 0 20px;
}
.note-links a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 0;
  font-size:16px;
  color:var(--text);
  text-decoration:none;
  border-bottom:1px dashed rgba(153,255,204,.16);
}
.note-links a:hover{color:var(--neon)}
.note-call{margin:0}
.note-call a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 14px;
  font-size:16px;
  color:var(--ink);
  background:var(--mint);
  text-decoration:none;
}
.note-call a:hover{background:var(--neon)}

/* ---------- 页脚 ---------- */
.foot{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px 24px;
  max-width:1160px;
  margin:0 auto;
  padding:34px 28px 42px;
  border-top:1px solid var(--line);
}
.foot p{margin:0;font-size:16px}
.f-brand{
  font-family:'Varela Round',system-ui,sans-serif;
  font-size:1.16rem;
  color:var(--mint);
  align-self:start;
}
.f-links{display:flex;flex-wrap:wrap;gap:2px 4px}
.f-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:6px 8px;
  color:var(--text);
  font-size:16px;
  text-decoration:none;
  border-bottom:1px solid transparent;
}
.f-links a:hover{color:var(--neon);border-bottom-color:var(--neon)}
.f-top a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:6px 12px;
  border:1px solid var(--line);
  color:var(--mint);
  font-size:16px;
  text-decoration:none;
}
.f-top a:hover{border-color:var(--neon);color:var(--neon)}
.foot small{
  grid-column:1/-1;
  text-align:center;
  color:var(--muted);
  font-size:16px;
  padding-top:10px;
  border-top:1px dashed rgba(153,255,204,.16);
}

/* ---------- 窄屏 ---------- */
@media (max-width:980px){
  .board{grid-template-columns:minmax(0,1fr)}
  .notes{position:static;order:2}
  .note-links{flex-direction:row;flex-wrap:wrap;gap:0 10px}
  .note-links a{border-bottom:0;padding:6px 0}
}
@media (max-width:860px){
  body{padding-left:0;padding-top:72px}
  .shell{
    inset:0 0 auto 0;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:8px 12px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .mark-link{width:40px;height:40px;flex:0 0 auto}
  .mark-img{width:36px;height:36px}
  .dock{flex:1 1 auto;margin:0;overflow-y:visible;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .dock-p{flex-direction:row;gap:4px}
  .dock-p a{
    padding:10px 12px;
    min-height:44px;
    white-space:nowrap;
    border-left:0;
    border-bottom:2px solid transparent;
  }
  .dock-p a:hover,.dock-p a:focus-visible{border-bottom-color:var(--neon)}
  .call{flex:0 0 auto;margin:0}
  .call a{min-height:40px;padding:8px 12px;font-size:16px}
  .wrap{padding:20px 16px 48px}
  .hero{min-height:42vh;padding:32px 18px 20px}
  .sheet > article{scroll-margin-top:84px}
  .foot{grid-template-columns:minmax(0,1fr);padding:26px 16px 34px}
  .foot small{text-align:left;padding-top:14px}
}
@media (max-width:420px){
  body{font-size:16px}
  .hero h1{font-size:1.95rem}
  .hero::after{font-size:3rem;opacity:.1}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body::before,.blob,.hero::after{animation:none}
  .rv{opacity:1;transform:none;transition:none}
  .call a:hover{transform:none}
}

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