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

:root{
  --neon:#87ff71;
  --cyan:#01cdfe;
  --ink:#192617;
  --pink:#ff71ce;
  --violet:#b967ff;
  --base:#08110d;
  --panel:rgba(15,28,21,.66);
  --line:rgba(135,255,113,.16);
  --cline:rgba(1,205,254,.22);
  --txt:#d9eede;
  --dim:#8fb4a3;
  --r:4px;
  --maxw:1180px;
  --shadow:0 14px 34px -18px rgba(0,0,0,.95), 0 0 0 1px rgba(1,205,254,.1);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:Inter,'Helvetica Neue',Arial,'PingFang SC','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.78;
  color:var(--txt);
  background:
    radial-gradient(1100px 560px at 12% -8%, rgba(1,205,254,.18), transparent 62%),
    radial-gradient(900px 520px at 88% 2%, rgba(255,113,206,.15), transparent 60%),
    var(--base);
  min-height:100vh;
  overflow-x:hidden;
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:90;
  pointer-events:none;
  background:repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
  mix-blend-mode:screen;
}
img{max-width:100%}

/* 顶栏 */
.top{
  position:sticky;
  top:0;
  z-index:40;
  background:linear-gradient(180deg, rgba(8,17,13,.96), rgba(8,17,13,.74));
  border-bottom:1px solid var(--line);
  box-shadow:0 10px 30px -22px rgba(1,205,254,.9);
}
.bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  max-width:var(--maxw);
  margin:0 auto;
  padding:.35rem 1rem;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  min-height:44px;
  font-size:1.05rem;
  font-weight:600;
  letter-spacing:.04em;
  color:#eafff2;
  text-decoration:none;
  text-shadow:0 0 14px rgba(135,255,113,.45);
}
.mark{
  width:10px;
  height:10px;
  border-radius:2px;
  background:linear-gradient(135deg, var(--neon), var(--cyan));
  box-shadow:0 0 12px rgba(135,255,113,.85);
  transform:rotate(45deg);
}
.stamp{
  margin:0;
  font-size:.78rem;
  letter-spacing:.28em;
  color:var(--dim);
}
.anchors{
  border-top:1px solid rgba(1,205,254,.14);
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
}
.anchors p{
  display:flex;
  align-items:center;
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 .55rem;
  white-space:nowrap;
}
.anchors a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.55rem .7rem;
  font-size:.94rem;
  color:var(--dim);
  text-decoration:none;
  border-radius:var(--r);
  transition:color .2s, background .2s;
}
.anchors a::before{
  content:"";
  width:6px;
  height:6px;
  margin-right:.5rem;
  border-radius:1px;
  background:var(--neon);
  box-shadow:0 0 8px rgba(135,255,113,.9);
}
.anchors a:hover,
.anchors a:focus-visible{
  color:#06120c;
  background:var(--neon);
}
.anchors a:hover::before,
.anchors a:focus-visible::before{background:#06120c;box-shadow:none}

/* 首屏 */
.hero{
  position:relative;
  isolation:isolate;
  display:grid;
  place-items:center;
  min-height:70vh;
  padding:4.5rem 1rem 5rem;
  overflow:hidden;
  text-align:center;
}
.hero img{
  position:absolute;
  inset:0;
  z-index:-2;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(1.15);
  animation:hue 26s linear infinite;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg, rgba(255,113,206,.42), rgba(185,103,255,.28) 38%, rgba(1,205,254,.26) 66%, #08110d 100%);
  transition:background .9s ease;
}
.hero[data-tone="1"]::before{
  background:linear-gradient(180deg, rgba(1,205,254,.42), rgba(185,103,255,.3) 40%, rgba(8,17,13,.9) 100%);
}
.hero[data-tone="2"]::before{
  background:linear-gradient(180deg, rgba(185,103,255,.44), rgba(135,255,113,.26) 46%, #08110d 100%);
}
.hero::after{
  content:"";
  position:absolute;
  left:-25%;
  right:-25%;
  bottom:0;
  z-index:-1;
  height:36%;
  opacity:.55;
  transform:perspective(320px) rotateX(66deg);
  transform-origin:bottom center;
  background-image:
    repeating-linear-gradient(180deg, rgba(135,255,113,.34) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(1,205,254,.3) 0 1px, transparent 1px 46px);
  -webkit-mask-image:linear-gradient(180deg, transparent, #000 62%);
  mask-image:linear-gradient(180deg, transparent, #000 62%);
}
.hero-copy{max-width:46rem}
.hero h1{
  margin:0 0 .9rem;
  font-size:clamp(1.85rem,6vw,3.9rem);
  font-weight:600;
  line-height:1.16;
  letter-spacing:.01em;
  color:#f4fff8;
  animation:glitch 5.5s steps(3,end) infinite;
}
.lede{
  margin:0 auto;
  max-width:34rem;
  font-size:1rem;
  color:#e2f6ea;
  text-shadow:0 1px 12px rgba(0,0,0,.6);
}
@keyframes hue{to{filter:hue-rotate(360deg) saturate(1.2)}}
@keyframes glitch{
  0%,100%{text-shadow:0 0 10px rgba(135,255,113,.65),0 0 34px rgba(1,205,254,.5),2px 0 0 rgba(255,113,206,.55),-2px 0 0 rgba(1,205,254,.5)}
  46%{text-shadow:0 0 12px rgba(135,255,113,.8),0 0 42px rgba(1,205,254,.55),-3px 0 0 rgba(255,113,206,.6),3px 0 0 rgba(1,205,254,.55)}
}

/* 主区 */
main{display:block}
.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:2rem;
  align-items:start;
  max-width:var(--maxw);
  margin:0 auto;
  padding:2.2rem 1rem 3rem;
}
.doc{min-width:0}
section{
  padding:1.6rem;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
section > article{
  padding:2.1rem 0;
  border-top:1px dashed rgba(1,205,254,.2);
  scroll-margin-top:7.5rem;
}
section > article:first-child{padding-top:.4rem;border-top:0}
section > article > :last-child{margin-bottom:0}
section h2{
  margin:0 0 .7rem;
  font-size:clamp(1.25rem,2.4vw,1.58rem);
  line-height:1.35;
  color:#f0fff5;
  text-shadow:0 0 16px rgba(135,255,113,.32);
}
section h3{
  margin:1.4rem 0 .5rem;
  font-size:1.08rem;
  line-height:1.45;
  color:#e8fff0;
}
section h4{margin:1.1rem 0 .4rem;font-size:1rem;color:var(--neon)}
section p{margin:0 0 1rem}
section strong{color:#f4fff8}
section ul,
section ol{margin:0 0 1rem;padding-left:1.35rem}
section li{margin:.35rem 0}
section a{
  color:var(--neon);
  text-decoration:underline;
  text-decoration-color:rgba(135,255,113,.45);
  text-underline-offset:3px;
}
section a:hover{color:var(--cyan)}
section blockquote{
  margin:1.2rem 0;
  padding:.7rem 1rem;
  border-left:3px solid var(--cyan);
  border-radius:0 var(--r) var(--r) 0;
  background:rgba(1,205,254,.08);
}
section table{
  display:block;
  width:100%;
  margin:1rem 0;
  border-collapse:collapse;
  overflow-x:auto;
  font-size:.95rem;
}
section th,
section td{padding:.55rem .7rem;border:1px solid var(--line);text-align:left}
section th{background:rgba(135,255,113,.1);color:#eaffef}
section img{margin:.6rem 0;border-radius:var(--r);box-shadow:var(--shadow)}
section code{
  padding:.1rem .35rem;
  font-size:.9em;
  background:rgba(1,205,254,.12);
  border-radius:2px;
}

/* 侧栏 */
.side{
  position:sticky;
  top:8rem;
  padding:1.1rem 1rem;
  background:linear-gradient(180deg, rgba(1,205,254,.1), rgba(15,28,21,.6));
  border:1px solid var(--cline);
  border-radius:var(--r);
  box-shadow:var(--shadow);
}
small{
  display:block;
  margin:0 0 .25rem;
  font-size:.75rem;
  letter-spacing:.2em;
  color:var(--cyan);
}
.side h2{margin:0 0 .7rem;font-size:1.08rem;color:#eafff2}
.side ol{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:n;
}
.side li{
  counter-increment:n;
  border-top:1px solid rgba(135,255,113,.12);
}
.side li:first-child{border-top:0}
.side a{
  display:flex;
  align-items:baseline;
  gap:.6rem;
  min-height:44px;
  padding:.6rem .1rem;
  font-size:.94rem;
  color:var(--txt);
  text-decoration:none;
}
.side a::before{
  content:counter(n,decimal-leading-zero);
  font-size:.72rem;
  letter-spacing:.06em;
  color:var(--neon);
}
.side a:hover{color:var(--neon)}

/* 页脚 */
footer{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1.2fr;
  gap:1.6rem 2rem;
  margin-top:2rem;
  padding:2.6rem max(1rem, calc((100% - var(--maxw)) / 2)) 1.6rem;
  background:linear-gradient(180deg, rgba(25,38,23,.86), #06100b);
  border-top:1px solid var(--line);
}
footer > article{min-width:0}
footer h2{margin:0 0 .6rem;font-size:1rem;color:#eafff2}
.f-desc{margin:.6rem 0 0;font-size:.9rem;color:var(--dim)}
.f-links{display:flex;flex-direction:column;margin:0}
.f-links a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  font-size:.93rem;
  color:var(--dim);
  text-decoration:none;
  border-bottom:1px solid rgba(135,255,113,.1);
}
.f-links a:hover{color:var(--neon)}
.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  margin-top:.35rem;
  padding:.5rem 1.5rem;
  font-weight:600;
  color:#06120c;
  text-decoration:none;
  border-radius:var(--r);
  background:linear-gradient(90deg, var(--neon), var(--cyan));
  box-shadow:0 0 26px rgba(135,255,113,.35);
}
.cta:hover{filter:brightness(1.1)}
.copy{
  grid-column:1 / -1;
  margin-top:.8rem;
  padding-top:.9rem;
  font-size:.84rem;
  color:var(--dim);
  border-top:1px solid rgba(1,205,254,.16);
}

/* 滚动揭示 */
.js .rv{opacity:0;transform:translateY(16px);transition:opacity .55s ease, transform .55s ease}
.js .rv.in{opacity:1;transform:none}

/* 断点 */
@media (max-width:1000px){
  .wrap{grid-template-columns:minmax(0,1fr)}
  .side{position:static;top:auto}
  footer{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  body{font-size:16px}
  .hero{min-height:64vh;padding:3.4rem 1rem 4rem}
  .stamp{display:none}
  section{padding:1.1rem}
  .wrap{padding:1.4rem .9rem 2.4rem;gap:1.4rem}
  footer{grid-template-columns:1fr;padding-top:2rem}
  .copy{margin-top:.4rem}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none !important;transition:none !important}
  .js .rv{opacity:1;transform:none}
}

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