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

:root{
  --bg:#0b1710;
  --ink:#172617;
  --neon:#69ff69;
  --cyan:#00ffff;
  --pink:#ff69b4;
  --paper:#e7ffe7;
  --muted:#a9c9ae;
  --line:rgba(105,255,105,.26);
  --r:28px;
  --chrome:linear-gradient(150deg,#f6fff8 0%,#b7d8c0 20%,#ffffff 40%,#8db69a 58%,#eafff0 76%,#9dc4a8 100%);
}

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

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:'Plus Jakarta Sans',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.78;
  color:var(--paper);
  background:
    radial-gradient(860px 460px at 6% -8%, rgba(105,255,105,.20), transparent 66%),
    radial-gradient(760px 420px at 104% 2%, rgba(0,255,255,.17), transparent 64%),
    radial-gradient(720px 560px at 50% 116%, rgba(255,105,180,.12), transparent 70%),
    var(--bg);
  overflow-x:hidden;
  padding-bottom:7.5rem;
}

a{color:var(--neon)}
img{max-width:100%}
:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}

/* 角标品牌 */
.brand-chip{
  position:fixed;
  top:14px;
  left:14px;
  z-index:80;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--chrome);
  border:2px solid rgba(0,255,255,.72);
  box-shadow:0 0 0 3px rgba(105,255,105,.16),0 0 24px rgba(0,255,255,.5);
  text-decoration:none;
  color:#0b1710;
  animation:chipPulse 5s ease-in-out infinite;
  transition:transform .3s ease;
}
.brand-chip:hover{transform:translateY(-2px) scale(1.06)}
.chip-img{width:32px;height:32px;border-radius:50%;object-fit:cover;display:block}
.chip-star{font-size:22px;line-height:1;color:#0d3a1c}

@keyframes chipPulse{
  0%,100%{box-shadow:0 0 0 3px rgba(105,255,105,.16),0 0 20px rgba(0,255,255,.45)}
  50%{box-shadow:0 0 0 7px rgba(105,255,105,.09),0 0 34px rgba(0,255,255,.78)}
}

/* 骨架 */
.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 268px;
  gap:0 40px;
  align-items:start;
  max-width:1120px;
  margin:0 auto;
  padding:0 20px;
}

main{padding-bottom:1rem}

/* 首屏 */
.hero{
  grid-column:1 / -1;
  position:relative;
  display:flex;
  align-items:flex-end;
  min-height:70vh;
  padding:8rem 0 2.8rem;
  border-bottom:1px solid var(--line);
  overflow:hidden;
}
.hero::before{
  content:"01";
  position:absolute;
  right:-2%;
  bottom:-8%;
  font-size:clamp(8rem,26vw,19rem);
  font-weight:700;
  line-height:1;
  letter-spacing:-.06em;
  color:transparent;
  -webkit-text-stroke:1.5px rgba(0,255,255,.24);
  transform:translate3d(0,calc(var(--par,0px) * -0.6),0);
  pointer-events:none;
}
.hero-inner{position:relative;z-index:1;max-width:760px}
.hero h1{
  margin:0;
  max-width:17ch;
  font-size:clamp(2.3rem,7.2vw,4.5rem);
  line-height:1.16;
  font-weight:700;
  letter-spacing:-.02em;
  color:#f4fff4;
  text-shadow:0 0 22px rgba(105,255,105,.55),0 0 62px rgba(0,255,255,.34);
}
.hero-desc{
  margin:1.5rem 0 0;
  max-width:46ch;
  font-size:1.02rem;
  color:var(--muted);
}

/* 正文 */
.content-panel{grid-column:1;min-width:0}
.prose{padding-top:.4rem}
.prose section{
  padding:2.4rem 0;
  border-top:1px solid rgba(105,255,105,.14);
  scroll-margin-top:6rem;
}
.prose section:first-child{border-top:0;padding-top:2rem}
.prose h2{
  margin:0 0 .55rem;
  font-size:clamp(1.5rem,3.4vw,2rem);
  line-height:1.32;
  letter-spacing:-.01em;
  color:#eaffea;
  text-shadow:0 0 18px rgba(105,255,105,.28);
}
.prose h3{
  margin:1.8rem 0 .4rem;
  font-size:1.2rem;
  line-height:1.5;
  color:var(--cyan);
}
.prose p{margin:0 0 1.05rem;color:#d6eed9}
.prose a{color:var(--neon);text-underline-offset:3px}
.prose a:hover{color:#fff}
.prose hr{
  border:0;
  height:1px;
  margin:.85rem 0 1.4rem;
  background:linear-gradient(90deg,var(--cyan),rgba(0,255,255,0));
}
.prose ul,.prose ol{padding-left:1.35rem;margin:0 0 1.1rem}
.prose li{margin:.4rem 0}
.prose li::marker{color:var(--neon)}
.prose img{display:block;height:auto;border-radius:18px;box-shadow:0 12px 30px rgba(0,0,0,.4)}
.prose blockquote{
  margin:1.3rem 0;
  padding:.95rem 1.15rem;
  border-left:3px solid var(--neon);
  border-radius:0 18px 18px 0;
  background:rgba(105,255,105,.07);
  color:#dff7e2;
}
.prose table{width:100%;border-collapse:collapse;font-size:.96rem;margin:0 0 1.2rem}
.prose th,.prose td{
  padding:.6rem .45rem;
  text-align:left;
  border-bottom:1px solid rgba(105,255,105,.22);
}
.prose th{color:var(--cyan)}
.prose strong{color:#fff}
.prose code{
  padding:.1rem .35rem;
  border-radius:8px;
  background:rgba(0,255,255,.1);
  font-size:.92em;
}

/* 右侧栏 */
.rail{
  grid-column:2;
  position:sticky;
  top:86px;
  margin-top:1.8rem;
  padding:1.1rem 1.1rem 1.3rem;
  border-radius:var(--r);
  border:1px solid var(--line);
  background:linear-gradient(168deg,rgba(23,38,23,.96),rgba(11,23,16,.97));
  box-shadow:0 18px 42px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.07);
}
.rail h2{
  margin:0 0 .5rem;
  font-size:1.02rem;
  letter-spacing:.04em;
  color:var(--neon);
}
.rail hr{
  border:0;
  height:1px;
  margin:0 0 .7rem;
  background:linear-gradient(90deg,var(--cyan),rgba(0,255,255,0));
}
.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
}
.rail-list li a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.4rem .15rem;
  font-size:.98rem;
  color:#cfe9d3;
  text-decoration:none;
  border-bottom:1px dashed rgba(0,255,255,.16);
  transition:color .22s ease,padding-left .22s ease;
}
.rail-list li:last-child a{border-bottom:0}
.rail-list li a:hover{color:#fff;padding-left:.5rem;text-shadow:0 0 14px rgba(0,255,255,.7)}
.rail-top{
  display:inline-block;
  margin-top:.9rem;
  padding:.55rem .85rem;
  min-height:42px;
  border-radius:999px;
  border:1px solid rgba(0,255,255,.42);
  background:rgba(0,255,255,.08);
  color:var(--cyan);
  font-size:.92rem;
  text-decoration:none;
  transition:background .22s ease,transform .22s ease;
}
.rail-top:hover{background:rgba(0,255,255,.18);transform:translateY(-1px)}

/* 悬浮菜单 */
.dock{position:fixed;right:14px;bottom:88px;z-index:90}
.dock-btn{
  list-style:none;
  display:grid;
  place-items:center;
  width:64px;
  height:64px;
  border-radius:50%;
  background:var(--chrome);
  border:2px solid rgba(105,255,105,.7);
  color:#0b1710;
  font-size:1rem;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 0 0 3px rgba(0,255,255,.12),0 0 26px rgba(105,255,105,.55);
  transition:transform .26s ease;
}
.dock-btn::-webkit-details-marker{display:none}
.dock-btn:hover{transform:scale(1.06)}
.dock[open] .dock-btn{background:linear-gradient(150deg,#69ff69,#00ffff);color:#08160d}
.dock-menu{
  position:absolute;
  right:0;
  bottom:78px;
  width:min(76vw,272px);
  margin:0;
  padding:.6rem;
  list-style:none;
  border-radius:22px;
  border:1px solid rgba(0,255,255,.42);
  background:rgba(12,24,16,.97);
  box-shadow:0 24px 54px rgba(0,0,0,.6);
}
.dock-menu li a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.5rem .8rem;
  border-radius:14px;
  color:#dbffdf;
  font-size:.98rem;
  text-decoration:none;
  transition:background .2s ease,color .2s ease;
}
.dock-menu li a:hover{background:rgba(105,255,105,.16);color:#fff}

/* 页脚 */
.foot{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:95;
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.5rem .85rem;
  background:linear-gradient(180deg,rgba(13,26,17,.9),rgba(8,17,11,.99));
  border-top:1px solid rgba(0,255,255,.3);
}
.foot-brand{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:50%;
  background:var(--chrome);
  color:#0b1710;
  text-decoration:none;
}
.foot-nav{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  gap:.1rem;
  overflow-x:auto;
  scrollbar-width:none;
}
.foot-nav::-webkit-scrollbar{display:none}
.foot-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:.35rem .55rem;
  border-radius:10px;
  color:#cfe9d3;
  font-size:.95rem;
  white-space:nowrap;
  text-decoration:none;
  transition:background .2s ease,color .2s ease;
}
.foot-nav a:hover{color:#fff;background:rgba(0,255,255,.14)}
.foot-host{
  flex:0 0 auto;
  font-size:.78rem;
  color:#7ea98a;
  white-space:nowrap;
}
.foot-copy{
  flex:0 0 auto;
  margin:0;
  font-size:.78rem;
  color:#9fc7a9;
  white-space:nowrap;
}

/* 断点 */
@media (max-width:900px){
  .wrap{grid-template-columns:minmax(0,1fr);gap:0}
  .hero{grid-column:1}
  .content-panel{grid-column:1}
  .rail{
    grid-column:1;
    position:static;
    margin:2.4rem 0 1.6rem;
  }
}

@media (max-width:560px){
  body{font-size:16px;padding-bottom:7rem}
  .wrap{padding:0 16px}
  .hero{min-height:62vh;padding-top:6.5rem}
  .hero::before{font-size:clamp(7rem,34vw,12rem);opacity:.9}
  .foot-host{display:none}
  .dock{bottom:82px;right:12px}
  .dock-btn{width:58px;height:58px;font-size:.95rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .brand-chip,.dock-btn{animation:none}
  *,*::before,*::after{
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
  }
}

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