@charset "utf-8";

:root{
  --neon:#69ff69;
  --cyan:#00ffff;
  --ink:#172617;
  --bg:#08110a;
  --panel:rgba(19,37,22,.72);
  --panel-2:rgba(26,51,32,.85);
  --text:#e8ffec;
  --muted:#a9cdb4;
  --r:28px;
  --gloss:linear-gradient(135deg,#f4fff4,#8cffbd 32%,#00ffff 66%,#69ff69);
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:"Be Vietnam Pro","Noto Sans",system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.7;
  color:var(--text);
  background:
    radial-gradient(900px 620px at 88% -8%,rgba(0,255,255,.16),transparent 62%),
    radial-gradient(760px 560px at -6% 18%,rgba(105,255,105,.14),transparent 60%),
    var(--bg);
  background-attachment:fixed;
  padding-bottom:96px;
  overflow-x:hidden;
}

img{display:block;max-width:100%;height:auto}
a{color:var(--cyan)}
p{margin:0 0 1em}
:focus-visible{outline:2px solid var(--neon);outline-offset:3px;border-radius:12px}

hr{
  border:0;
  height:1px;
  margin:10px 0 0;
  background:linear-gradient(90deg,var(--neon),var(--cyan) 62%,transparent);
}

/* ---------- 底部固定胶囊条 ---------- */
.bar{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:8px;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));
  background:linear-gradient(180deg,rgba(10,22,13,.55),rgba(8,17,10,.96) 62%);
  border-top:1px solid rgba(105,255,105,.28);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.bar-nav{
  display:flex;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.bar-nav::-webkit-scrollbar{display:none}
.bar-nav p{display:flex;gap:7px;margin:0}
.bar-nav--l p{margin-right:auto}
.bar-nav--r p{margin-left:auto}

.pill{
  display:inline-block;
  padding:9px 14px;
  border:1px solid rgba(105,255,105,.32);
  border-radius:999px;
  font-size:16px;
  line-height:1.5;
  white-space:nowrap;
  text-decoration:none;
  color:#c9ffd6;
  background:linear-gradient(160deg,rgba(105,255,105,.14),rgba(0,255,255,.08));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22);
  transition:transform .18s ease,box-shadow .18s ease,color .18s ease;
}
.pill:hover,.pill:focus-visible{
  color:#08110a;
  background:var(--gloss);
  transform:translateY(-2px);
  box-shadow:0 0 0 1px rgba(105,255,105,.6),0 8px 20px rgba(0,255,255,.35);
}

.brand{
  font-size:17px;
  font-weight:700;
  letter-spacing:.02em;
  white-space:nowrap;
  padding:8px 12px;
  border-radius:999px;
  text-decoration:none;
  background:var(--gloss);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 0 10px rgba(0,255,255,.5));
}

/* ---------- 满屏英雄区 ---------- */
.hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  min-height:calc(100svh - 16px);
  padding:0 0 13vh;
  overflow:hidden;
  clip-path:polygon(0 0,100% 0,100% 90%,0 100%);
  background:
    linear-gradient(140deg,#0c2013,#04222b 55%,#0e2c18),
    var(--bg);
}

.hero-media{position:absolute;inset:0;z-index:0}
.hero-img{
  width:100%;height:100%;
  object-fit:cover;
  opacity:.55;
  filter:saturate(1.15) contrast(1.05);
}
.hero-mask{
  position:absolute;inset:0;z-index:1;
  background:
    linear-gradient(200deg,rgba(0,255,255,.22),transparent 46%,rgba(8,17,10,.94) 88%),
    linear-gradient(90deg,rgba(105,255,105,.16),transparent 55%);
}
.hero::after{
  content:"✦";
  position:absolute;
  top:calc(56px + 3vw);
  right:7%;
  z-index:1;
  font-size:clamp(26px,5vw,52px);
  line-height:1;
  color:#eaffff;
  opacity:.85;
  filter:drop-shadow(0 0 16px var(--cyan));
}

.hero-copy{
  position:relative;
  z-index:2;
  width:100%;
  padding:0 clamp(20px,6vw,64px);
  text-align:right;
}

.hero h1{
  margin:0 0 18px;
  font-size:clamp(2rem,6.4vw,4.2rem);
  line-height:1.1;
  letter-spacing:-.01em;
  font-weight:700;
  background:linear-gradient(135deg,#ffffff,#cbffd9 34%,var(--cyan) 70%,var(--neon));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 6px 26px rgba(0,255,255,.35));
}

.lede{
  margin:0 0 0 auto;
  max-width:30em;
  font-size:17px;
  color:#d3f0dd;
  text-shadow:0 2px 16px rgba(8,17,10,.92);
}

/* ---------- 主区：左栏 + 正文 ---------- */
main{
  display:grid;
  grid-template-columns:212px minmax(0,1fr);
  gap:clamp(20px,3vw,44px);
  align-items:start;
  max-width:1180px;
  margin:0 auto;
  padding:56px clamp(16px,4vw,40px) 72px;
}

.rail{
  position:sticky;
  top:28px;
  padding:20px 18px 24px;
  border-radius:var(--r);
  background:var(--panel);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.rail h2{
  margin:0;
  font-size:16px;
  font-weight:600;
  letter-spacing:.16em;
  color:var(--neon);
  text-shadow:0 0 12px rgba(105,255,105,.45);
}
.rail ol{
  list-style:none;
  margin:14px 0 0;
  padding:0;
}
.rail a{
  display:block;
  padding:9px 0;
  font-size:16px;
  line-height:1.6;
  text-decoration:none;
  color:#d6ffe1;
  border-bottom:1px dashed rgba(105,255,105,.2);
  transition:color .16s ease,padding-left .16s ease;
}
.rail li:last-child a{border-bottom:0}
.rail a:hover,.rail a:focus-visible{
  color:var(--cyan);
  padding-left:6px;
}

.doc{min-width:0}

.prose-wrap article{
  margin-bottom:22px;
  padding:clamp(20px,3vw,34px);
  border-radius:var(--r);
  background:var(--panel);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
  scroll-margin-top:24px;
  overflow-wrap:break-word;
}
.prose-wrap article:last-child{margin-bottom:0}

.prose-wrap h2{
  margin:0;
  font-size:clamp(1.35rem,2.6vw,1.85rem);
  line-height:1.3;
  font-weight:700;
  color:#f0fff4;
}
.prose-wrap h3{
  margin:22px 0 0;
  font-size:1.12rem;
  line-height:1.4;
  color:#d6ffdf;
}
.prose-wrap p{margin:14px 0;color:#e2ffe8}
.prose-wrap ul,.prose-wrap ol{padding-left:1.3em;margin:14px 0}
.prose-wrap li{margin:.45em 0}
.prose-wrap a{
  color:var(--cyan);
  text-decoration:none;
  border-bottom:1px solid rgba(0,255,255,.5);
}
.prose-wrap a:hover{border-bottom-color:var(--neon);color:var(--neon)}
.prose-wrap strong{color:#ffffff}
.prose-wrap blockquote{
  margin:18px 0;
  padding:6px 0 6px 16px;
  border-left:3px solid var(--neon);
  color:#c9f4d6;
}
.prose-wrap table{width:100%;border-collapse:collapse;margin:16px 0;font-size:16px}
.prose-wrap th,.prose-wrap td{
  padding:10px 12px;
  text-align:left;
  border-bottom:1px solid rgba(105,255,105,.22);
}
.prose-wrap figure{margin:16px 0}
.prose-wrap figure img{border-radius:20px}
.prose-wrap code{
  font-family:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  font-size:15px;
  padding:1px 6px;
  border-radius:8px;
  background:rgba(0,255,255,.12);
  color:#b9fff0;
}

/* ---------- 快捷卡片 ---------- */
.quick{margin-top:26px}
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(196px,1fr));
  gap:14px;
}
.card{
  display:block;
  padding:20px 18px;
  border-radius:var(--r);
  text-decoration:none;
  color:inherit;
  background:linear-gradient(155deg,rgba(105,255,105,.16),rgba(0,255,255,.1));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16);
  transition:transform .2s ease,box-shadow .2s ease;
}
.card:hover,.card:focus-visible{
  transform:translateY(-4px) scale(1.01);
  box-shadow:0 10px 26px rgba(0,255,255,.22),inset 0 1px 0 rgba(255,255,255,.3);
}
.card-t{
  display:block;
  font-size:17px;
  font-weight:600;
  color:#f2fff5;
}
.card-d{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin-top:6px;
  font-size:16px;
  line-height:1.6;
  color:var(--muted);
}

/* ---------- 页脚 ---------- */
.foot{
  max-width:1180px;
  margin:0 auto;
  padding:64px clamp(16px,4vw,40px) 30px;
}
.bigmark{
  margin:0 0 30px;
  font-size:clamp(2.2rem,13vw,6.6rem);
  line-height:.92;
  font-weight:700;
  letter-spacing:-.02em;
  background:linear-gradient(120deg,var(--neon),var(--cyan) 56%,#f2fff2);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 8px 24px rgba(0,255,255,.22));
}
.foot-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.foot dl{margin:0}
.foot dt{
  font-size:16px;
  letter-spacing:.14em;
  color:var(--neon);
  margin-bottom:4px;
}
.foot dd{margin:0}
.foot dd a{
  display:inline-block;
  padding:8px 0;
  font-size:16px;
  color:#d6ffe1;
  text-decoration:none;
}
.foot dd a:hover,.foot dd a:focus-visible{color:var(--cyan)}
.copy{
  margin:32px 0 0;
  font-size:16px;
  color:#78a887;
}

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference){
  html.js-ready .stagger > *{opacity:0}
  html.js-ready .stagger.ready > *{
    animation:rise .55s cubic-bezier(.2,.7,.3,1) forwards;
  }
  html.js-ready .stagger.ready > *:nth-child(2){animation-delay:.06s}
  html.js-ready .stagger.ready > *:nth-child(3){animation-delay:.12s}
  html.js-ready .stagger.ready > *:nth-child(4){animation-delay:.18s}
  html.js-ready .stagger.ready > *:nth-child(5){animation-delay:.24s}
  html.js-ready .stagger.ready > *:nth-child(6){animation-delay:.3s}
  html.js-ready .stagger.ready > *:nth-child(7){animation-delay:.36s}
  .hero h1{animation:rise .8s cubic-bezier(.2,.7,.3,1) both}
  .lede{animation:rise .9s cubic-bezier(.2,.7,.3,1) .12s both}
}

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

/* ---------- 窄屏 ---------- */
@media (max-width:760px){
  body{padding-bottom:108px}
  .bar{padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));gap:6px}
  .pill{padding:8px 11px;font-size:16px}
  .brand{font-size:16px;padding:6px 8px}
  .hero{min-height:calc(100svh - 8px);padding-bottom:16vh}
  .hero h1{font-size:clamp(1.9rem,9.5vw,3rem)}
  .hero-copy{padding:0 20px}
  main{
    grid-template-columns:minmax(0,1fr);
    gap:22px;
    padding:32px 16px 56px;
  }
  .rail{position:static;padding:18px 16px 20px}
  .rail ol{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
  .rail a{padding:9px 0}
  .cards{grid-template-columns:1fr 1fr;gap:12px}
  .card{padding:16px 14px}
  .foot{padding:48px 16px 24px}
  .foot-cols{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
}

@media (max-width:400px){
  .cards{grid-template-columns:1fr}
}

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