:root{
  --bg:#071018;
  --surface:#0c1828;
  --surface-2:#132238;
  --ink:#e8f4f8;
  --muted:#7fa3bc;
  --line:#1e3a5c;
  --mint:#6ee7d8;
  --mint-light:#a7f3ec;
  --mint-deep:#34d399;
  --mint-glow:rgba(110,231,216,.12);
  --midnight:#040a10;
  --rail-w:256px;
  --max:840px;
  --shadow:0 22px 54px rgba(0,0,0,.62);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Source Han Sans SC","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:
    radial-gradient(880px 400px at 8% 0%,rgba(110,231,216,.09),transparent 55%),
    radial-gradient(600px 300px at 92% 12%,rgba(52,211,153,.07),transparent 48%),
    var(--bg);
  line-height:1.9;
}
a{color:var(--mint-light)}
a:hover{color:var(--mint)}
img{max-width:100%;height:auto;display:block}

.top-strip{
  background:linear-gradient(92deg,var(--midnight),var(--surface));
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-size:.81rem;
  padding:.44rem 1rem;
  display:flex;justify-content:space-between;align-items:center;gap:.75rem;
}
.top-strip b{color:var(--mint-light);font-weight:600}

.rail-shell{display:flex;min-height:calc(100vh - 35px)}
.rail{
  width:var(--rail-w);
  flex-shrink:0;
  background:var(--surface);
  border-right:1px solid var(--line);
  position:sticky;top:0;height:calc(100vh - 35px);
  overflow-y:auto;
  display:flex;flex-direction:column;
}
.rail-brand{
  padding:1.4rem 1.15rem 1.05rem;
  border-bottom:1px solid var(--line);
}
.rail-brand a{display:flex;align-items:center;gap:.72rem;text-decoration:none;color:inherit}
.rail-brand img{width:44px;height:44px;border-radius:11px;border:1px solid var(--line)}
.rail-brand b{display:block;font-size:1.04rem;color:var(--mint-light)}
.rail-brand span{font-size:.73rem;color:var(--muted)}
.rail-nav{flex:1;padding:.7rem 0}
.rail-nav section{padding:0 .8rem;margin-bottom:.45rem}
.rail-nav h3{
  margin:0 0 .32rem;padding:0 .38rem;
  font-size:.67rem;text-transform:uppercase;letter-spacing:.11em;
  color:var(--muted);font-weight:600;
}
.rail-nav a{
  display:block;padding:.5rem .72rem;margin:.1rem 0;
  border-radius:9px;text-decoration:none;color:var(--ink);font-size:.89rem;
  border-left:3px solid transparent;
}
.rail-nav a:hover,.rail-nav a.active{
  background:var(--mint-glow);color:var(--mint-light);
  border-left-color:var(--mint);
}
.rail-nav a.btn-rail{
  margin:.48rem .8rem 0;background:var(--mint-deep);color:var(--midnight);
  font-weight:700;text-align:center;border-left:none;
}
.rail-nav a.btn-rail:hover{background:var(--mint);color:var(--midnight)}
.rail-foot{
  padding:1rem 1.15rem;border-top:1px solid var(--line);
  font-size:.75rem;color:var(--muted);
}
.rail-foot a{display:block;margin:.22rem 0;color:var(--muted);font-size:.77rem}

.rail-main{flex:1;min-width:0;background:var(--bg)}
.rail-content{
  max-width:calc(var(--max) + 4rem);
  margin:0 auto;padding:1.45rem clamp(1rem,3vw,2rem) 3rem;
}

.rail-toggle{
  display:none;position:fixed;bottom:1.2rem;right:1.2rem;z-index:50;
  width:54px;height:54px;border-radius:15px;border:none;
  background:var(--mint-deep);color:var(--midnight);cursor:pointer;
  box-shadow:var(--shadow);font-size:1.28rem;line-height:1;
}
.rail-overlay{display:none}

.ads-slot{margin-bottom:1.2rem}
.ads-wrap{margin:0;padding:.75rem 1rem 1rem;border:1px solid var(--line);border-radius:13px;background:var(--surface-2)}
.ads-head{margin:0;padding:0}
.applist-title{text-align:center;color:var(--muted);font-size:.91rem;margin:0 0 .52rem}
#applist{width:100%}
#ads{display:flex!important;justify-content:center;align-items:flex-start;flex-wrap:wrap;gap:12px;margin:0;padding:0;background:transparent}
#ads>div{display:flex!important;flex-direction:column;align-items:center;width:72px!important;min-width:72px;flex:0 0 72px}
#ads figure{margin:0;padding:0;width:72px;display:flex;flex-direction:column;align-items:center}
#ads a{display:block;width:65px;height:65px;border-radius:14px;overflow:hidden;text-decoration:none}
#ads img{width:65px!important;height:65px!important;object-fit:cover!important;border-radius:14px;display:block!important;border:0;background:#0f2038}
#ads figcaption,#ads .caption{display:block;width:72px;margin-top:6px;font-size:11px!important;line-height:1.2;color:var(--muted);text-align:center;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}

.doc-head{margin-bottom:1.7rem;padding-bottom:1.2rem;border-bottom:1px solid var(--line)}
.doc-head h1{
  margin:0 0 .62rem;font-size:clamp(1.52rem,3.4vw,2.05rem);
  line-height:1.34;color:var(--mint-light);
}
.doc-head .lede{color:var(--muted);font-size:1.01rem;margin:0;max-width:58ch}
.doc-meta{display:flex;flex-wrap:wrap;gap:.48rem;margin-top:.82rem}
.doc-meta span{
  font-size:.77rem;padding:.26rem .62rem;border-radius:999px;
  background:var(--surface-2);border:1px solid var(--line);color:var(--mint);
}

.prose h2{
  margin:1.95rem 0 .72rem;font-size:1.26rem;color:var(--mint-light);
  padding-left:.72rem;border-left:3px solid var(--mint);
}
.prose h3{margin:1.3rem 0 .48rem;font-size:1.04rem;color:var(--mint)}
.prose p{margin:0 0 1rem;color:#b0c8da}
.prose ul,.prose ol{margin:0 0 1rem;padding-left:1.32rem;color:#b0c8da}
.prose li{margin-bottom:.34rem}

.figure-row{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(258px,1fr));
  gap:.95rem;margin:1.2rem 0 1.45rem;
}
.figure-row figure{
  margin:0;background:var(--surface);border:1px solid var(--line);
  border-radius:13px;overflow:hidden;
}
.figure-row img{width:100%;aspect-ratio:16/10;object-fit:cover}
.figure-row figcaption{padding:.62rem .82rem;font-size:.81rem;color:var(--muted)}

.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(198px,1fr));gap:.82rem;margin:.95rem 0 1.45rem}
.card{
  background:var(--surface);border:1px solid var(--line);border-radius:13px;
  padding:.95rem 1.05rem;
}
.card h3{margin:0 0 .38rem;font-size:.97rem;color:var(--mint)}
.card p{margin:0;font-size:.87rem;color:var(--muted);line-height:1.64}

.mint-band{
  background:linear-gradient(128deg,rgba(110,231,216,.11),rgba(52,211,153,.06));
  border:1px solid rgba(110,231,216,.26);border-radius:15px;
  padding:1.22rem 1.32rem;margin:1.45rem 0;
}
.mint-band h2{margin:0 0 .48rem;font-size:1.09rem;border:none;padding:0;color:var(--mint-light)}
.mint-band p{margin:0;color:#b0c8da}

.price-strip{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(138px,1fr));
  gap:.72rem;margin:.95rem 0;
}
.price-strip figure{margin:0;text-align:center}
.price-strip img{border-radius:11px;border:1px solid var(--line)}
.price-strip figcaption{font-size:.77rem;color:var(--muted);margin-top:.38rem}

.outlinks{
  display:flex;flex-wrap:wrap;gap:.62rem;margin:1.45rem 0;
}
.outlinks a{
  padding:.52rem .98rem;border-radius:999px;text-decoration:none;
  background:var(--surface-2);border:1px solid var(--line);
  color:var(--mint);font-size:.87rem;
}
.outlinks a:hover{border-color:var(--mint);background:var(--mint-glow)}

.faq details{
  background:var(--surface);border:1px solid var(--line);border-radius:11px;
  padding:.72rem .98rem;margin-bottom:.52rem;
}
.faq summary{cursor:pointer;font-weight:600;color:var(--mint-light)}
.faq p{margin:.52rem 0 0;font-size:.91rem;color:var(--muted)}

.site-footer{
  margin-top:2.45rem;padding-top:1.45rem;border-top:1px solid var(--line);
  font-size:.83rem;color:var(--muted);
}
.footer-links{display:flex;flex-wrap:wrap;gap:.62rem .98rem;margin-bottom:.72rem}
.footer-links a{color:var(--muted);text-decoration:none}
.footer-links a:hover{color:var(--mint)}

.page-simple .doc-head h1{font-size:1.62rem}
.simple-card{
  background:var(--surface);border:1px solid var(--line);border-radius:13px;
  padding:1.32rem 1.45rem;
}
.simple-card h2{font-size:1.06rem;color:var(--mint);margin:1.2rem 0 .48rem}
.simple-card h2:first-child{margin-top:0}
.simple-card p{color:#b0c8da;margin:0 0 .82rem}

.error-page{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  padding:2rem;background:var(--bg);
}
.error-box{
  max-width:430px;text-align:center;background:var(--surface);
  border:1px solid var(--line);border-radius:17px;padding:2rem;
}
.error-box h1{font-size:3rem;margin:0;color:var(--mint);line-height:1}
.error-box p{color:var(--muted)}
.cta{
  display:inline-block;padding:.62rem 1.22rem;border-radius:999px;
  text-decoration:none;font-weight:700;margin-top:.48rem;
}
.cta-primary{background:var(--mint-deep);color:var(--midnight)}
.cta-primary:hover{background:var(--mint);color:var(--midnight)}

@media (max-width:900px){
  .rail{
    position:fixed;left:0;top:35px;z-index:45;height:calc(100vh - 35px);
    transform:translateX(-100%);transition:transform .27s ease;
    box-shadow:var(--shadow);
  }
  .rail.open{transform:translateX(0)}
  .rail-overlay{
    display:none;position:fixed;inset:35px 0 0 0;background:rgba(0,0,0,.56);z-index:44;
  }
  .rail-overlay.show{display:block}
  .rail-toggle{display:flex;align-items:center;justify-content:center}
  .rail-shell{display:block}
  .rail-content{padding-top:.95rem}
}
