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

:root{
  --n:#69ff69;
  --c:#00ffff;
  --ink:#172617;
  --txt:#dff2e1;
  --dim:#9ec9a6;
  --edge:rgba(105,255,105,.26);
  --pane:linear-gradient(155deg, rgba(105,255,105,.14), rgba(0,255,255,.07) 58%, rgba(23,38,23,.55));
  --font:"Baloo 2","Comic Neue","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --wide:1180px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.65;
  color:var(--txt);
  background-color:#0b150c;
  background-image:
    radial-gradient(circle at 14% 6%, rgba(0,255,255,.16), transparent 44%),
    radial-gradient(circle at 86% 0%, rgba(105,255,105,.18), transparent 42%),
    radial-gradient(rgba(105,255,105,.15) 1px, transparent 1px);
  background-size:auto,auto,22px 22px;
  background-attachment:fixed,fixed,scroll;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
.skip{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- 顶栏 ---------- */
.bar{
  position:relative;
  z-index:20;
  background:linear-gradient(180deg, rgba(9,19,10,.96), rgba(9,19,10,.74));
  border-bottom:1px solid var(--edge);
  backdrop-filter:blur(10px);
}
.brandrow{display:flex;align-items:center;padding:10px clamp(14px,4vw,44px)}
.brand{
  display:inline-flex;align-items:center;gap:10px;min-height:44px;
  text-decoration:none;color:#eaffea;font-weight:700;font-size:1.18rem;letter-spacing:.05em;
}
.mark{
  width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
  font-size:15px;line-height:1;color:#08130a;
  background:linear-gradient(140deg,#ffffff,#c4ffc8 32%,#69ff69 58%,#00ffff);
  box-shadow:0 0 0 1px rgba(255,255,255,.55), 0 0 18px rgba(105,255,105,.6);
}
.navrow{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;
  padding:0 clamp(14px,4vw,44px) 12px;
}
nav p{display:flex;flex-wrap:wrap;gap:8px;margin:0}
nav a{
  display:inline-flex;align-items:center;gap:7px;min-height:42px;
  padding:9px 13px;border-radius:999px;text-decoration:none;font-size:16px;
  color:#d6f2d9;background:rgba(105,255,105,.07);border:1px solid rgba(105,255,105,.22);
  transition:color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
nav a:hover,nav a:focus-visible{
  color:#08130a;
  background:linear-gradient(140deg,#c9ffcd,#69ff69 52%,#00ffff);
  box-shadow:0 0 22px rgba(0,255,255,.55);
  transform:translateY(-1px);
}
nav a.on{
  color:#08130a;
  background:linear-gradient(140deg,#c9ffcd,#69ff69 52%,#00ffff);
  box-shadow:0 0 16px rgba(105,255,105,.5), inset 0 1px 0 rgba(255,255,255,.7);
}
.pip{width:7px;height:7px;border-radius:2px;background:currentColor;transform:rotate(45deg);box-shadow:0 0 8px currentColor}

.seek{display:flex;gap:6px;margin-left:auto}
.seek input{
  width:140px;min-height:42px;padding:8px 14px;font:inherit;font-size:16px;
  border-radius:999px;border:1px solid rgba(0,255,255,.34);
  background:rgba(0,255,255,.09);color:#eafcff;
  -webkit-appearance:none;appearance:none;
}
.seek input::placeholder{color:#8fb89a}
.seek input:focus{outline:none;border-color:var(--c);box-shadow:0 0 0 3px rgba(0,255,255,.22)}
.seek button{
  min-height:42px;min-width:46px;padding:8px 15px;font:inherit;font-size:16px;font-weight:600;
  border:0;border-radius:999px;cursor:pointer;color:#08130a;
  background:linear-gradient(140deg,#ffffff,#00ffff 58%,#69ff69);
  box-shadow:0 0 14px rgba(0,255,255,.35);
}
.seek button:hover{filter:brightness(1.08)}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;overflow:hidden;
  max-width:var(--wide);margin:0 auto;
  padding:36px clamp(16px,5vw,64px) 34px;
  min-height:45vh;
  display:flex;flex-direction:column;justify-content:center;
}
h1{
  margin:0 0 .35em;font-size:clamp(2.1rem,8.4vw,4.6rem);line-height:1.06;letter-spacing:.01em;
  background:linear-gradient(100deg,#ffffff 0%,var(--n) 34%,var(--c) 66%,#c6ffe4 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 14px rgba(105,255,105,.35)) drop-shadow(0 0 36px rgba(0,255,255,.2));
}
.lead{margin:0;max-width:46ch;color:var(--dim);font-size:clamp(1rem,2.1vw,1.12rem)}
.spark{position:absolute;width:56px;height:56px;pointer-events:none;opacity:.85}
.spark::before,.spark::after{content:"";position:absolute;inset:0;margin:auto;background:linear-gradient(var(--c),var(--n));box-shadow:0 0 10px var(--c)}
.spark::before{width:2px;height:100%}
.spark::after{height:2px;width:100%}
.s1{top:11%;right:13%;transform:rotate(18deg)}
.s2{bottom:14%;right:31%;width:28px;height:28px;transform:rotate(-12deg);opacity:.55}

/* ---------- 版心 ---------- */
.shell{
  display:grid;gap:24px;
  grid-template-columns:minmax(0,248px) minmax(0,1fr);
  grid-template-areas:"rail flow" "orb flow";
  grid-template-rows:auto 1fr;
  align-content:start;
  max-width:var(--wide);margin:0 auto;
  padding:8px clamp(16px,5vw,64px) 64px;
}

.rail{
  grid-area:rail;
  padding:16px 14px;border-radius:10px;
  background:var(--pane);border:1px solid var(--edge);
  box-shadow:0 14px 32px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12);
}
.rail small{display:block;font-size:13px;letter-spacing:.16em;color:var(--c)}
.rail h2{margin:2px 0 12px;font-size:1.12rem;color:#eaffea;text-shadow:0 0 14px rgba(105,255,105,.55)}
.rail ol{list-style:none;margin:0;padding:0;display:grid;gap:3px}
.rail a{
  display:flex;align-items:center;gap:9px;min-height:40px;padding:4px 6px;border-radius:8px;
  text-decoration:none;color:#cfe9d3;font-size:16px;
  transition:background .16s ease,color .16s ease;
}
.rail a b{font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--c);opacity:.9}
.rail a:hover,.rail a:focus-visible{background:rgba(0,255,255,.13);color:#ffffff}

.orb{
  grid-area:orb;margin:0;padding:0;height:186px;
  display:grid;place-items:center;border-radius:10px;
  border:1px dashed rgba(105,255,105,.24);
  background:radial-gradient(circle at 50% 42%, rgba(0,255,255,.18), rgba(23,38,23,0) 72%);
}
.ball{
  width:118px;height:118px;border-radius:50%;
  background:radial-gradient(circle at 32% 28%, #ffffff, #d8ffe2 17%, #69ff69 40%, #00ffff 63%, #0c2a20 100%);
  box-shadow:0 0 42px rgba(0,255,255,.45), inset -10px -12px 24px rgba(0,0,0,.45), inset 6px 6px 16px rgba(255,255,255,.5);
  animation:float 6.5s ease-in-out infinite;
}
@keyframes float{50%{transform:translateY(-10px) scale(1.03)}}

/* ---------- 正文 ---------- */
.flow{grid-area:flow;min-width:0}
.flow > div{
  position:relative;
  margin:0 0 22px;padding:22px clamp(16px,3vw,32px);
  border-radius:10px;border:1px solid var(--edge);
  background:var(--pane);
  box-shadow:0 16px 36px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.1);
  scroll-margin-top:1.2rem;
  transition:box-shadow .25s ease, transform .25s ease;
}
.flow > div:hover{box-shadow:0 20px 44px rgba(0,0,0,.55), 0 0 0 1px rgba(0,255,255,.35), inset 0 1px 0 rgba(255,255,255,.14);transform:translateY(-2px)}
.flow h2{
  margin:.15em 0 .55em;font-size:clamp(1.24rem,3.1vw,1.6rem);line-height:1.32;color:#f1fff2;
  text-shadow:0 0 16px rgba(0,255,255,.42);
}
.flow h2::before{
  content:"";display:inline-block;width:9px;height:9px;margin-right:10px;
  border-radius:2px;transform:rotate(45deg) translateY(-2px);
  background:linear-gradient(140deg,var(--n),var(--c));
  box-shadow:0 0 10px rgba(105,255,105,.95);
}
.flow h3{margin:1.1em 0 .4em;font-size:1.1rem;color:#e9ffec}
.flow p{margin:0 0 1em;color:#d9efdb}
.flow p:last-child{margin-bottom:0}
.flow ul,.flow ol{margin:0 0 1em;padding-left:1.35em}
.flow li{margin:.28em 0}
.flow a{color:var(--c);text-underline-offset:3px;text-decoration-color:rgba(0,255,255,.5)}
.flow a:hover{color:var(--n)}
.flow strong{color:#f2fff3}
.flow blockquote{
  margin:1em 0;padding:10px 16px;border-left:3px solid var(--n);
  background:rgba(105,255,105,.08);border-radius:0 10px 10px 0;color:#dff5e1;
}
.flow code{font-family:"Comic Neue",ui-monospace,monospace;background:rgba(0,255,255,.12);padding:1px 6px;border-radius:6px}

/* ---------- 页脚 ---------- */
footer{
  display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px;
  max-width:var(--wide);margin:0 auto;
  padding:34px clamp(16px,5vw,64px) 22px;
  border-top:1px solid var(--edge);
}
footer div{min-width:0}
.fname{margin:0 0 6px;font-weight:700;font-size:1.12rem;color:#eaffea;letter-spacing:.03em}
.fdesc{margin:0;max-width:40ch;color:var(--dim);font-size:16px}
.flink p{display:flex;flex-wrap:wrap;gap:6px;margin:0;justify-content:flex-end}
.flink a{
  display:inline-flex;align-items:center;min-height:40px;padding:6px 12px;font-size:16px;
  border-radius:999px;border:1px solid rgba(0,255,255,.24);color:#cfe9d3;text-decoration:none;
  transition:background .16s ease,color .16s ease;
}
.flink a:hover,.flink a:focus-visible{background:rgba(0,255,255,.14);color:#ffffff}
.copy{
  grid-column:1/-1;margin:4px 0 0;padding-top:14px;
  border-top:1px dashed rgba(105,255,105,.2);color:#8ec09a;font-size:16px;
}

/* ---------- 滚动显影 ---------- */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .55s ease, transform .55s ease}
.reveal.in{opacity:1;transform:none}

/* ---------- 断点 ---------- */
@media (min-width:861px){
  .bar{position:sticky;top:0}
  .flow > div{scroll-margin-top:150px}
}

@media (max-width:860px){
  .shell{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"flow" "rail" "orb";
    grid-template-rows:auto auto auto;
    padding-bottom:48px;
  }
  .hero{min-height:auto;padding-top:28px;padding-bottom:26px}
  .s1{top:8%;right:8%;width:40px;height:40px}
  .s2{display:none}
  .seek{flex:1 1 100%;margin-left:0}
  .seek input{flex:1;width:auto;min-width:0}
  .orb{height:150px}
  .ball{width:96px;height:96px}
  footer{grid-template-columns:minmax(0,1fr)}
  .flink p{justify-content:flex-start}
}

@media (max-width:420px){
  nav a{font-size:15px;padding:9px 11px}
  .flow > div{padding:18px 14px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .ball{animation:none}
  .reveal{opacity:1 !important;transform:none !important;transition:none !important}
  .flow > div{transition:none}
  .flow > div:hover{transform:none}
}

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