@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

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

:root{
  --green:#69ff69;
  --cyan:#00ffff;
  --ink:#172617;
  --deep:#0b1410;
  --line:rgba(105,255,105,.26);
  --line-c:rgba(0,255,255,.26);
  --irid:linear-gradient(135deg,#69ff69 0%,#00ffff 46%,#d8fff0 62%,#69ff69 100%);
  --chrome:linear-gradient(160deg,#ffffff 0%,#c4d3c9 16%,#f6fffa 32%,#7d9486 50%,#eafff2 68%,#a8bcb0 84%,#ffffff 100%);
  --dock-h:78px;
  --pad:clamp(22px,5vw,58px);
}

html{
  scroll-behavior:smooth;
  background:#0b1410;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  padding-bottom:calc(var(--dock-h) + 26px);
  font-family:'Fira Code','Share Tech Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:1.0625rem;
  font-weight:400;
  line-height:1.8;
  color:#d9ffe4;
  overflow-x:hidden;
  background:
    radial-gradient(70vw 55vw at 88% -8%,rgba(0,255,255,.17),transparent 62%),
    radial-gradient(62vw 52vw at 4% 10%,rgba(105,255,105,.16),transparent 60%),
    linear-gradient(180deg,#172617 0%,#0b1410 52%,#172617 100%);
  background-repeat:no-repeat;
  background-attachment:fixed;
}

a{color:var(--green);text-decoration:none}
a:hover,a:focus-visible{color:var(--cyan)}
:focus-visible{outline:2px solid var(--cyan);outline-offset:3px;border-radius:4px}
img{max-width:100%}

/* ── 首屏 ── */
.hero{
  position:relative;
  isolation:isolate;
  min-height:100vh;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:clamp(26px,4vw,46px);
  padding:clamp(38px,8vw,92px) clamp(18px,5vw,40px) calc(var(--dock-h) + clamp(46px,8vw,84px));
  overflow:hidden;
  text-align:center;
}

.hero::after{
  content:"";
  position:absolute;
  left:-8%;right:-8%;bottom:-34px;
  height:clamp(54px,9vw,92px);
  background:var(--irid);
  transform:skewY(-2.6deg);
  box-shadow:0 0 46px rgba(0,255,255,.45);
  z-index:-1;
  opacity:.92;
}

.hero-copy{max-width:940px}

.hero h1{
  margin:0;
  font-size:clamp(2.5rem,8.6vw,5.4rem);
  line-height:1.04;
  letter-spacing:-.01em;
  font-weight:700;
  background:var(--irid);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 20px rgba(0,255,255,.5));
}

.hero .lead{
  margin:clamp(14px,2vw,22px) auto 0;
  max-width:42ch;
  font-size:clamp(1rem,2.1vw,1.1rem);
  color:#c6efd3;
}

.hero-media{
  width:min(744px,100%);
  padding:3px;
  border-radius:6px;
  background:var(--chrome);
  box-shadow:0 26px 60px rgba(0,0,0,.55),0 0 44px rgba(0,255,255,.3);
}

.hero-media img{
  display:block;
  width:100%;
  height:auto;
  max-height:44svh;
  object-fit:cover;
  border-radius:4px;
}

.chrome-orb{
  width:min(272px,56vw);
  aspect-ratio:1;
  margin:14px auto;
  border-radius:50%;
  background:radial-gradient(circle at 32% 28%,#ffffff 0%,#a9f0cb 20%,#00ffff 46%,#69ff69 68%,#143020 100%);
  box-shadow:inset -14px -18px 42px rgba(0,0,0,.5),0 0 56px rgba(0,255,255,.5);
}

.bubbles{position:absolute;inset:0;z-index:-1;pointer-events:none}
.bubbles i{
  position:absolute;
  border-radius:50%;
  background:radial-gradient(circle at 30% 26%,rgba(255,255,255,.95),rgba(0,255,255,.45) 44%,rgba(105,255,105,.08) 72%);
  box-shadow:0 0 28px rgba(0,255,255,.35);
  opacity:.5;
  animation:float 9s ease-in-out infinite;
}
.bubbles i:nth-child(1){width:112px;height:112px;left:5%;top:14%}
.bubbles i:nth-child(2){width:56px;height:56px;right:9%;top:22%;animation-delay:-2.5s}
.bubbles i:nth-child(3){width:34px;height:34px;left:16%;bottom:26%;animation-delay:-4s}
.bubbles i:nth-child(4){width:78px;height:78px;right:14%;bottom:20%;animation-delay:-1.2s}

@keyframes float{50%{transform:translateY(-18px)}}

/* ── 主区 ── */
main{position:relative;z-index:1}

.wrap{
  max-width:1168px;
  margin:0 auto;
  padding:var(--pad) clamp(16px,4vw,32px) calc(var(--pad) + 10px);
  display:grid;
  grid-template-columns:minmax(0,1fr) 236px;
  gap:clamp(24px,3.6vw,48px);
  align-items:start;
}

.doc{min-width:0}

.prose{font-size:1.0625rem}

.prose section{
  scroll-margin-top:22px;
  scroll-margin-bottom:calc(var(--dock-h) + 22px);
  padding-bottom:2.2rem;
  margin-bottom:2.2rem;
  border-bottom:1px dashed rgba(0,255,255,.22);
}
.prose section:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}

.prose h2{
  margin:0 0 .3rem;
  font-size:clamp(1.4rem,3.5vw,2rem);
  line-height:1.3;
  color:#f4fff8;
  text-shadow:0 0 16px rgba(105,255,105,.5);
}

.prose h3{
  margin:1.6rem 0 .4rem;
  font-size:1.16rem;
  color:var(--cyan);
}

.prose hr{
  height:3px;
  margin:.55rem 0 1.3rem;
  border:0;
  border-radius:3px;
  background:linear-gradient(90deg,var(--green),var(--cyan) 42%,transparent);
  box-shadow:0 0 12px rgba(0,255,255,.4);
}

.prose p{margin:0 0 1rem}
.prose ul,.prose ol{margin:0 0 1rem;padding-left:1.35rem}
.prose li{margin:.35rem 0}
.prose strong{color:#ffffff}
.prose h2 + hr{margin-top:.2rem}

/* ── 侧栏 ── */
.side{
  position:sticky;
  top:24px;
  padding:16px 14px 18px;
  border:1px solid var(--line-c);
  border-radius:4px;
  background:linear-gradient(180deg,rgba(0,255,255,.09),rgba(23,38,23,.66));
  box-shadow:0 16px 36px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.12);
}

.side h2{
  margin:0;
  font-size:.95rem;
  letter-spacing:.3em;
  color:var(--cyan);
  text-shadow:0 0 12px rgba(0,255,255,.6);
}

.side hr{
  height:2px;
  margin:.55rem 0 .9rem;
  border:0;
  border-radius:2px;
  background:linear-gradient(90deg,var(--cyan),transparent);
}

.side ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.side a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:4px 9px;
  border:1px solid transparent;
  border-radius:4px;
  font-size:1rem;
  color:#cdf6d9;
}
.side a:hover,.side a:focus-visible{
  background:rgba(105,255,105,.14);
  border-color:var(--line);
  color:#ffffff;
}

/* ── 页脚 ── */
footer{
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(0,255,255,.07),transparent 72%);
  padding:44px max(18px,calc((100% - 1120px) / 2)) 28px;
  display:grid;
  grid-template-columns:1.5fr 1fr auto;
  gap:30px;
  align-items:start;
}

footer section:last-child{
  grid-column:1 / -1;
  margin-top:6px;
  padding-top:16px;
  border-top:1px solid var(--line);
  text-align:center;
  font-size:.92rem;
  color:#9fc4ac;
}

footer .mark{
  margin:0 0 .6rem;
  font-size:1.5rem;
  font-weight:700;
  letter-spacing:.1em;
  background:var(--chrome);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
}

footer .f-desc{margin:0;max-width:34ch;font-size:.95rem;color:#a9cfb6}
footer h3{margin:0 0 .5rem;font-size:.85rem;letter-spacing:.28em;color:var(--cyan)}
footer ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
footer li a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:2px 6px;
  border-radius:4px;
  font-size:1rem;
  color:#cdf6d9;
}

.to-top{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 22px;
  border-radius:999px;
  background:var(--chrome);
  color:#0b1f13;
  font-weight:700;
  letter-spacing:.1em;
  box-shadow:0 10px 24px rgba(0,255,255,.34),inset 0 -2px 0 rgba(0,0,0,.22);
}
.to-top:hover,.to-top:focus-visible{color:#0b1f13;transform:translateY(-2px)}

/* ── 底部固定条 ── */
.dock{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  padding:6px 10px calc(6px + env(safe-area-inset-bottom));
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(23,38,23,.84),rgba(8,16,11,.96));
  backdrop-filter:blur(14px) saturate(1.4);
  box-shadow:0 -14px 44px rgba(0,255,255,.16),inset 0 1px 0 rgba(255,255,255,.08);
}

.dock ul{
  list-style:none;
  margin:0 auto;
  padding:0;
  max-width:1168px;
  display:flex;
  align-items:center;
  gap:6px;
}

.dock a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 14px;
  border:1px solid rgba(105,255,105,.32);
  border-radius:999px;
  font-size:1rem;
  letter-spacing:.03em;
  color:#cdf6d9;
  background:linear-gradient(180deg,rgba(105,255,105,.15),rgba(0,255,255,.06));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18);
  transition:transform .18s ease,box-shadow .18s ease,color .18s ease;
}
.dock a:hover,.dock a:focus-visible{
  color:#ffffff;
  transform:translateY(-2px);
  box-shadow:0 0 0 1px var(--cyan),0 10px 22px rgba(0,255,255,.32);
}

.dock .brand{
  margin:0 auto;
  padding:0 14px;
  font-size:1rem;
  font-weight:700;
  letter-spacing:.22em;
  color:#ffffff;
  text-shadow:0 0 14px rgba(105,255,105,.85);
  white-space:nowrap;
}

.dock .cta a{
  border-color:transparent;
  background:var(--irid);
  color:#0b1f13;
  font-weight:700;
  box-shadow:0 0 18px rgba(105,255,105,.5),inset 0 -2px 0 rgba(0,0,0,.22);
}
.dock .cta a:hover,.dock .cta a:focus-visible{color:#0b1f13}

.dock li{animation:rise .5s ease both}
.dock li:nth-child(2){animation-delay:.05s}
.dock li:nth-child(3){animation-delay:.1s}
.dock li:nth-child(4){animation-delay:.15s}
.dock li:nth-child(5){animation-delay:.2s}
.dock li:nth-child(6){animation-delay:.25s}
.dock li:nth-child(7){animation-delay:.3s}
.dock li:nth-child(8){animation-delay:.35s}

@keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* ── 滚动出现 ── */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}

/* ── 窄屏 ── */
@media (max-width:900px){
  :root{--dock-h:62px}
  .wrap{grid-template-columns:minmax(0,1fr)}
  .side{position:static}
  .side ul{grid-template-columns:1fr 1fr;gap:4px}
  footer{grid-template-columns:1fr 1fr}
  footer section:last-child{grid-column:1 / -1}
  footer .f-brand{grid-column:1 / -1}
  .dock ul{
    overflow-x:auto;
    scrollbar-width:none;
    justify-content:flex-start;
  }
  .dock ul::-webkit-scrollbar{display:none}
  .dock .brand{order:-1;margin:0 8px 0 0;padding:0 12px 0 4px;border-right:1px solid var(--line)}
  .dock a{padding:0 12px;white-space:nowrap}
}

@media (max-width:520px){
  :root{--pad:clamp(20px,7vw,32px)}
  .side ul{grid-template-columns:1fr}
  footer{grid-template-columns:1fr;gap:22px}
  .hero::after{bottom:-26px}
  .prose section{padding-bottom:1.7rem;margin-bottom:1.7rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .bubbles i,.dock li{animation:none}
  .reveal{opacity:1;transform:none;transition:none}
  .dock a,.to-top{transition:none}
}

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