@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Rubik:wght@300;400;500;600;700&display=swap');

:root{
  --green:#87ff71;
  --cyan:#01cdfe;
  --pink:#ff71ce;
  --violet:#b967ff;
  --ink:#192617;
  --bg:#0b110d;
  --txt:#e4ffe9;
  --dim:#a8c6b2;
  --line:rgba(135,255,113,.26);
  --card:rgba(19,29,22,.84);
  --radius:18px;
}

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

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

body{
  margin:0;
  font-family:"Rubik","Nunito Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--txt);
  background-color:var(--bg);
  background-image:
    radial-gradient(110% 70% at 50% -18%, rgba(1,205,254,.30), rgba(1,205,254,0) 62%),
    radial-gradient(80% 55% at 92% 2%, rgba(255,113,206,.20), rgba(255,113,206,0) 64%),
    linear-gradient(180deg,#0b110d 0%,#0f1a13 42%,#0b110d 100%);
  background-attachment:fixed;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:5;
  pointer-events:none;
  background:repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
  mix-blend-mode:screen;
  opacity:.65;
}

img{max-width:100%}

a{color:var(--cyan);text-decoration:none;transition:color .18s ease}
a:hover{color:var(--green)}

:focus-visible{outline:2px solid var(--green);outline-offset:3px}

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

/* ---------- 顶部导航 ---------- */
.bar{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(11,17,13,.86);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}

.barIn{
  max-width:1180px;
  margin:0 auto;
  padding:10px clamp(14px,3vw,24px);
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
}

.drawer{position:relative;justify-self:start}

.drawer summary{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:8px 16px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:16px;
  letter-spacing:.08em;
  color:var(--green);
  background:rgba(135,255,113,.07);
  transition:background .2s ease,border-color .2s ease,transform .2s ease,color .2s ease;
}

.drawer summary::-webkit-details-marker{display:none}
.drawer summary::marker{content:""}

.drawer summary::before{
  content:"";
  width:16px;
  height:2px;
  background:currentColor;
  box-shadow:0 -5px 0 currentColor,0 5px 0 currentColor;
}

.drawer summary:hover,
.drawer summary:focus-visible{
  background:rgba(135,255,113,.16);
  border-color:var(--green);
  transform:translateY(-1px);
}

.drawer[open] summary{
  background:rgba(1,205,254,.16);
  border-color:var(--cyan);
  color:var(--cyan);
}

.drop{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  margin:0;
  padding:10px;
  min-width:min(78vw,278px);
  list-style:none;
  background:rgba(12,20,15,.97);
  border:1px solid var(--green);
  border-radius:var(--radius);
  box-shadow:0 0 26px rgba(135,255,113,.18),0 18px 40px rgba(0,0,0,.55);
}

.drop li + li{margin-top:2px}

.drop a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 12px;
  border-radius:10px;
  font-size:16px;
  color:var(--txt);
  transition:background .18s ease,color .18s ease,padding-left .18s ease;
}

.drop a:hover{
  padding-left:18px;
  color:var(--green);
  background:linear-gradient(90deg,rgba(135,255,113,.2),rgba(1,205,254,.1));
}

.brand{
  justify-self:center;
  font-weight:600;
  font-size:clamp(15px,2.4vw,20px);
  letter-spacing:.08em;
  color:#fff;
  white-space:nowrap;
  text-shadow:0 0 10px rgba(1,205,254,.8),0 0 26px rgba(255,113,206,.45);
}

.cta{
  justify-self:end;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 16px;
  border-radius:999px;
  font-size:16px;
  font-weight:600;
  color:#0b110d;
  background:linear-gradient(120deg,var(--green),var(--cyan));
  transition:filter .2s ease,transform .2s ease;
}

.cta:hover{
  color:#0b110d;
  filter:hue-rotate(-22deg) saturate(1.15);
  transform:translateY(-1px);
}

.cta--ghost{background:none}

/* ---------- 容器 ---------- */
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(14px,3vw,24px);
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:center;
  gap:clamp(18px,4vw,42px);
  min-height:45vh;
  padding:26px 0 42px;
}

.hero::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-34%;
  height:78%;
  z-index:0;
  pointer-events:none;
  opacity:.5;
  background-image:
    linear-gradient(rgba(1,205,254,.4) 1px,transparent 1px),
    linear-gradient(90deg,rgba(1,205,254,.4) 1px,transparent 1px);
  background-size:46px 46px;
  transform:perspective(330px) rotateX(63deg);
  transform-origin:bottom center;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 45%);
  mask-image:linear-gradient(180deg,transparent,#000 45%);
}

.hero::after{
  content:"";
  position:absolute;
  left:-6%;
  right:-6%;
  bottom:0;
  height:7px;
  z-index:2;
  background:linear-gradient(90deg,var(--green),var(--cyan),var(--violet),var(--pink));
  transform:skewY(-1.4deg);
  box-shadow:0 0 22px rgba(1,205,254,.6);
}

.heroArtBox,
.heroCopy{position:relative;z-index:1}

.heroArtBox{
  display:block;
  margin:0;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:linear-gradient(160deg,rgba(1,205,254,.16),rgba(255,113,206,.16));
}

.heroArtBox img{
  display:block;
  width:100%;
  height:auto;
  filter:saturate(1.08) hue-rotate(-6deg);
  transition:transform .5s ease,filter .5s ease;
}

.hero:hover .heroArtBox img{
  transform:scale(1.035);
  filter:saturate(1.18) hue-rotate(6deg);
}

.heroCopy{text-align:right}

.heroCopy h1{
  margin:0;
  font-size:clamp(1.85rem,5vw,3.3rem);
  line-height:1.18;
  font-weight:700;
  color:#f4fff7;
  text-shadow:
    0 0 8px rgba(135,255,113,.8),
    0 0 22px rgba(1,205,254,.55),
    0 0 48px rgba(255,113,206,.35);
  animation:glow 5s ease-in-out infinite;
}

@keyframes glow{
  0%,100%{text-shadow:0 0 8px rgba(135,255,113,.8),0 0 22px rgba(1,205,254,.5),0 0 46px rgba(255,113,206,.3)}
  50%{text-shadow:0 0 10px rgba(1,205,254,.9),0 0 30px rgba(255,113,206,.55),0 0 60px rgba(185,103,255,.4)}
}

/* ---------- 正文 + 侧栏 ---------- */
.doc{
  display:grid;
  grid-template-columns:minmax(0,1fr) 292px;
  gap:clamp(22px,4vw,42px);
  align-items:start;
  padding:40px 0 68px;
}

.prose{
  min-width:0;
  max-width:70ch;
  font-size:17px;
}

.prose section + section{
  margin-top:8px;
  padding-top:28px;
  border-top:1px dashed rgba(135,255,113,.2);
}

.prose h2{
  position:relative;
  margin:0 0 8px;
  padding-left:17px;
  font-size:clamp(1.28rem,2.6vw,1.75rem);
  line-height:1.32;
  font-weight:600;
  color:#f4fff7;
  text-shadow:0 0 12px rgba(1,205,254,.5);
}

.prose h2::before{
  content:"";
  position:absolute;
  left:0;
  top:.3em;
  bottom:.3em;
  width:6px;
  border-radius:3px;
  background:linear-gradient(180deg,var(--green),var(--cyan));
  box-shadow:0 0 12px rgba(135,255,113,.6);
}

.prose h3{
  margin:22px 0 6px;
  font-size:1.08rem;
  color:var(--green);
  letter-spacing:.02em;
}

.subtitle{
  margin:0 0 16px;
  color:var(--cyan);
  font-size:.95rem;
  letter-spacing:.03em;
}

.prose p{margin:.85em 0}
.prose ul,.prose ol{margin:.85em 0;padding-left:1.15em}
.prose li{margin:.35em 0}
.prose li::marker{color:var(--green)}
.prose a{border-bottom:1px solid rgba(1,205,254,.45)}
.prose a:hover{border-bottom-color:var(--green)}
.prose strong{color:#fff;font-weight:600}
.prose blockquote{
  margin:1.1em 0;
  padding:12px 18px;
  border-left:3px solid var(--pink);
  border-radius:0 var(--radius) var(--radius) 0;
  background:rgba(255,113,206,.09);
  color:#ffe9f8;
}
.prose figure{margin:1.1em 0}
.prose img{border-radius:var(--radius);border:1px solid var(--line)}
.prose table{width:100%;border-collapse:collapse;font-size:.95rem}
.prose th,.prose td{border:1px solid var(--line);padding:8px 10px;text-align:left}

.prose section > ul > li{animation:rise .5s ease both}
.prose section > ul > li:nth-child(2){animation-delay:.05s}
.prose section > ul > li:nth-child(3){animation-delay:.1s}
.prose section > ul > li:nth-child(4){animation-delay:.15s}
.prose section > ul > li:nth-child(5){animation-delay:.2s}
.prose section > ul > li:nth-child(6){animation-delay:.25s}

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

/* ---------- 侧栏 ---------- */
.rail{
  position:sticky;
  top:92px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px 18px;
  background:var(--card);
  box-shadow:0 0 0 1px rgba(1,205,254,.08) inset;
}

.rail h2{
  margin:0 0 5px;
  font-size:1.05rem;
  letter-spacing:.06em;
  color:var(--green);
  text-shadow:0 0 12px rgba(135,255,113,.6);
}

.rail .subtitle{
  margin:0 0 14px;
  font-size:.84rem;
  line-height:1.65;
  color:var(--dim);
}

.jump{
  margin:0;
  padding:10px 0 0;
  list-style:none;
  border-top:1px solid var(--line);
}

.jump li{animation:rise .45s ease both}
.jump li:nth-child(2){animation-delay:.04s}
.jump li:nth-child(3){animation-delay:.08s}
.jump li:nth-child(4){animation-delay:.12s}
.jump li:nth-child(5){animation-delay:.16s}
.jump li:nth-child(6){animation-delay:.2s}
.jump li:nth-child(7){animation-delay:.24s}

.jump a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 9px;
  border-radius:10px;
  font-size:15px;
  color:var(--txt);
  transition:background .18s ease,color .18s ease,transform .18s ease;
}

.jump a:hover{
  color:var(--cyan);
  background:rgba(1,205,254,.12);
  transform:translateX(3px);
}

/* ---------- 页脚 ---------- */
.foot{
  border-top:1px solid var(--line);
  background:rgba(9,14,11,.92);
}

.footIn{
  max-width:1180px;
  margin:0 auto;
  padding:14px clamp(14px,3vw,24px);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:6px 20px;
  font-size:15px;
  color:var(--dim);
}

.foot address{
  font-style:normal;
  letter-spacing:.07em;
  color:var(--green);
  text-shadow:0 0 10px rgba(135,255,113,.5);
}

.foot ul{
  display:flex;
  flex-wrap:wrap;
  gap:2px 16px;
  margin:0;
  padding:0;
  list-style:none;
}

.foot a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--dim);
}

.foot a:hover{color:var(--cyan)}

.cr{margin:0;font-size:14px;letter-spacing:.04em}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .doc{grid-template-columns:1fr}
  .rail{position:static;order:2}
}

@media (max-width:720px){
  .hero{
    grid-template-columns:1fr;
    min-height:0;
    padding:18px 0 34px;
    gap:16px;
  }
  .heroCopy{text-align:left}
  .heroArtBox img{max-height:38vh;object-fit:cover}
}

@media (max-width:520px){
  body{font-size:16px}
  .brand{font-size:15px;letter-spacing:.03em}
  .drawer summary,.cta{font-size:15px;padding:8px 13px}
  .prose{font-size:16px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001s!important;
    animation-delay:0s!important;
    transition-duration:.001s!important;
  }
}

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