:root{
  --ink:#192617;
  --ink-2:#20301f;
  --ink-3:#16210f;
  --neon:#87ff71;
  --cyan:#01cdfe;
  --pink:#ff71ce;
  --violet:#b967ff;
  --paper:#e9f5e4;
  --dim:rgba(233,245,228,.70);
  --line:rgba(1,205,254,.24);
  --hair:rgba(135,255,113,.18);
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  scroll-padding-top:84px;
}

body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:Inter,-apple-system,"Segoe UI",system-ui,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:16.5px;
  line-height:1.65;
  letter-spacing:.004em;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:
    radial-gradient(120% 74% at 82% -10%, rgba(255,113,206,.30), transparent 62%),
    radial-gradient(94% 62% at 8% 4%, rgba(185,103,255,.22), transparent 58%),
    linear-gradient(180deg,#1b2130 0%,var(--ink) 46%,#111b12 100%);
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.26;
  background:repeating-linear-gradient(180deg,rgba(25,38,23,0) 0 2px,rgba(0,0,0,.6) 2px 3px);
}

a{color:var(--neon);text-underline-offset:3px}
img{max-width:100%;height:auto;display:block}

h1,h2,h3,h4{
  font-weight:700;
  letter-spacing:-.022em;
  line-height:1.2;
  color:#f2fcec;
}

p{margin:0 0 16px}

/* 顶栏 */
.topbar{
  position:sticky;
  top:0;
  z-index:40;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  padding:9px 16px;
  background:rgba(20,32,15,.92);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(8px);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:4px 2px;
  color:var(--neon);
  font-size:21px;
  font-weight:700;
  letter-spacing:-.02em;
  text-decoration:none;
  text-shadow:0 0 14px rgba(135,255,113,.55);
}

.brand .dot{
  width:9px;
  height:9px;
  background:var(--cyan);
  box-shadow:0 0 10px var(--cyan);
}

.find{
  display:flex;
  margin-left:auto;
  min-width:0;
  flex:0 1 240px;
}

.find-input{
  flex:1 1 auto;
  min-width:0;
  height:44px;
  padding:0 11px;
  border:0;
  background:#22331f;
  color:var(--paper);
  font:inherit;
  font-size:16px;
  border-radius:0;
}

.find-input::placeholder{color:rgba(233,245,228,.46)}

.find-go{
  height:44px;
  padding:0 15px;
  border:0;
  background:var(--cyan);
  color:#062019;
  font:inherit;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  border-radius:0;
}

.find-go:hover{background:#5ee0ff}

.burger{
  min-height:44px;
  padding:0 18px;
  border:1px solid var(--neon);
  background:transparent;
  color:var(--neon);
  font:inherit;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  border-radius:0;
}

.burger:hover{background:rgba(135,255,113,.14)}

/* 遮罩菜单 */
.veil{
  position:fixed;
  inset:0;
  z-index:60;
  display:flex;
  justify-content:flex-end;
  background:rgba(8,16,8,.86);
  backdrop-filter:blur(6px);
  visibility:hidden;
  opacity:0;
  transition:opacity .26s ease,visibility .26s ease;
}

.veil.on{visibility:visible;opacity:1}

.drawer{
  width:min(86vw,360px);
  height:100%;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:16px;
  background:linear-gradient(180deg,#1f2f1d,#121c12);
  border-left:1px solid var(--line);
  transform:translateX(14px);
  transition:transform .28s ease;
}

.veil.on .drawer{transform:none}

.drawer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:10px;
  border-bottom:1px solid var(--hair);
}

.drawer-brand{
  margin:0;
  font-size:19px;
  font-weight:700;
  color:var(--neon);
  text-shadow:0 0 12px rgba(135,255,113,.5);
}

.shut{
  min-height:44px;
  padding:0 16px;
  border:1px solid var(--cyan);
  background:transparent;
  color:var(--cyan);
  font:inherit;
  font-size:16px;
  cursor:pointer;
  border-radius:0;
}

.drawer-nav ul,
.rail-nav ul{
  list-style:none;
  margin:0;
  padding:0;
}

.drawer-nav a{
  display:flex;
  align-items:center;
  min-height:48px;
  padding:6px 4px;
  border-bottom:1px solid var(--hair);
  color:var(--paper);
  font-size:18px;
  font-weight:500;
  text-decoration:none;
}

.drawer-nav a:hover{color:var(--neon);padding-left:10px;transition:padding .16s ease}

/* 主区 */
.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 248px;
  gap:36px;
  align-items:start;
  max-width:1120px;
  margin:0 auto;
  padding:0 20px 64px;
}

.stage{min-width:0}
article{min-width:0}

[id]{scroll-margin-top:86px}

/* Hero */
.hero{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:22px;
  min-height:45vh;
  padding:30px 0 26px;
  overflow:hidden;
  text-align:right;
}

.hero-copy{
  position:relative;
  z-index:2;
  min-width:0;
  flex:1 1 260px;
}

.hero h1{
  margin:0 0 12px;
  font-size:clamp(30px,5.4vw,56px);
  line-height:1.12;
  letter-spacing:-.035em;
  text-shadow:0 0 24px rgba(1,205,254,.38);
}

.lede{
  margin:0 0 0 auto;
  max-width:32em;
  color:var(--dim);
  font-size:17px;
}

.hero-art{
  position:relative;
  z-index:2;
  flex:0 0 auto;
  width:132px;
  height:132px;
  overflow:hidden;
  background:linear-gradient(180deg,var(--pink),var(--violet) 52%,var(--cyan));
  box-shadow:0 0 40px rgba(255,113,206,.35);
}

.hero-art::after{
  content:"";
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(180deg,rgba(20,32,15,0) 0 6px,rgba(20,32,15,.55) 6px 8px);
}

.sun{
  position:absolute;
  inset:14px;
  border-radius:50%;
  background:linear-gradient(180deg,#fff0a8,var(--pink) 55%,var(--violet));
  filter:saturate(1.15);
}

.hero-frame{position:absolute;inset:0}

.hero-img{
  width:132px;
  height:132px;
  object-fit:cover;
  filter:saturate(1.1) contrast(1.05);
}

.ghost{
  position:absolute;
  left:-.04em;
  bottom:-.22em;
  z-index:1;
  font-size:clamp(96px,25vw,290px);
  line-height:.78;
  font-weight:700;
  letter-spacing:-.06em;
  color:transparent;
  -webkit-text-stroke:2px rgba(135,255,113,.20);
  pointer-events:none;
  user-select:none;
  will-change:transform;
}

/* 正文 */
article > section{
  padding:36px 0;
  border-top:1px solid var(--line);
}

article > section:nth-child(even){
  background:linear-gradient(90deg,rgba(1,205,254,.05),transparent 70%);
}

article h2{
  margin:0 0 14px;
  font-size:clamp(21px,2.7vw,29px);
}

article h2 > span,
.rail-h > span{
  position:relative;
  display:inline-block;
  padding-left:17px;
}

article h2 > span::before,
.rail-h > span::before{
  content:"";
  position:absolute;
  left:0;
  top:.16em;
  bottom:.12em;
  width:6px;
  background:linear-gradient(180deg,var(--neon),var(--cyan));
  box-shadow:0 0 12px rgba(1,205,254,.6);
}

article h3{
  margin:26px 0 10px;
  font-size:20px;
  color:var(--cyan);
}

article p{color:#d9e9d3}
article strong{color:var(--neon);font-weight:600}
article em{color:var(--cyan);font-style:normal}

article ul,
article ol{margin:0 0 18px;padding-left:20px;color:#d9e9d3}
article li{margin:0 0 8px}
article li::marker{color:var(--neon)}

article blockquote{
  margin:22px 0;
  padding:14px 18px;
  background:var(--ink-2);
  border-left:5px solid var(--cyan);
  color:#dff0da;
}

article blockquote p:last-child{margin:0}

article a{color:var(--neon)}

article img{margin:18px 0;background:var(--ink-2)}

article figure{margin:18px 0}

article figcaption{font-size:16px;color:var(--dim)}

article table{width:100%;border-collapse:collapse;margin:18px 0;font-size:16px}
article th,
article td{padding:9px 11px;border:1px solid var(--hair);text-align:left}
article th{background:var(--ink-2);color:var(--neon)}

/* 侧栏 */
.rail{
  position:sticky;
  top:78px;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:16px 14px 18px;
  background:var(--ink-2);
  box-shadow:inset 0 3px 0 0 var(--neon);
}

.rail-h{
  margin:0;
  font-size:16px;
  letter-spacing:.02em;
  color:var(--paper);
}

.rail-nav a{
  display:block;
  min-height:40px;
  padding:9px 6px;
  border-bottom:1px dashed rgba(135,255,113,.16);
  color:var(--dim);
  font-size:16px;
  text-decoration:none;
}

.rail-nav a:hover{color:var(--neon);background:rgba(135,255,113,.08)}

.rail-back{margin:0}
.rail-back a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:4px 6px;
  font-size:16px;
  text-decoration:none;
}
.rail-back a:hover{color:var(--cyan)}

/* 页脚 */
.foot{
  border-top:1px solid var(--line);
  background:var(--ink-3);
  padding:22px 20px 28px;
}

.foot-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  max-width:1120px;
  margin:0 auto;
}

.foot dl{margin:0}
.foot dt{
  margin:0 0 6px;
  font-size:16px;
  font-weight:600;
  letter-spacing:.06em;
  color:var(--cyan);
}
.foot dd{margin:0;font-size:16px;color:var(--dim)}
.foot dd a{
  display:flex;
  align-items:center;
  min-height:40px;
  color:var(--dim);
  text-decoration:none;
}
.foot dd a:hover{color:var(--neon)}

.foot-end{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  max-width:1120px;
  margin:18px auto 0;
  padding-top:14px;
  border-top:1px solid var(--hair);
}

.copy{margin:0;font-size:16px;color:var(--dim)}

.totop{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 6px;
  font-size:16px;
  text-decoration:none;
}

@media (max-width:900px){
  .wrap{grid-template-columns:minmax(0,1fr);gap:26px}
  .rail{position:static}
  .ghost{font-size:clamp(88px,30vw,200px)}
}

@media (max-width:640px){
  body{font-size:16px}
  .topbar{padding:8px 12px;gap:8px}
  .find{order:3;flex:1 1 100%;margin-left:0}
  .brand{flex:1 1 auto}
  .wrap{padding:0 14px 50px;gap:22px}
  .hero{min-height:45vh;gap:16px;padding:22px 0 20px;justify-content:flex-start;text-align:right}
  .hero-art,
  .hero-img{width:96px;height:96px}
  .hero-copy{flex:1 1 190px}
  .foot-grid{gap:12px}
  .foot-end{flex-wrap:wrap}
}

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

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