:root{
  --neon:#87ff71;
  --ice:#01cdfe;
  --ink:#192617;
  --sun:#ff71ce;
  --violet:#b967ff;
  --line:rgba(135,255,113,.22);
  --max:1180px;
}
*,*::before,*::after{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  background-color:#141d13;
  background-image:
    radial-gradient(900px 520px at 84% -8%, rgba(255,113,206,.42), transparent 62%),
    radial-gradient(720px 460px at 6% 2%, rgba(1,205,254,.30), transparent 60%),
    radial-gradient(1200px 720px at 50% 118%, rgba(185,103,255,.30), transparent 70%),
    linear-gradient(180deg,#21311d 0%,#192617 44%,#111a10 100%);
  background-attachment:fixed;
}
html::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:2;
  pointer-events:none;
  opacity:.5;
  background:repeating-linear-gradient(180deg,rgba(255,255,255,.05) 0 1px,transparent 1px 3px);
}
body{
  margin:0;
  color:#d9e9d4;
  font-family:'Public Sans',system-ui,-apple-system,'Segoe UI','Noto Sans SC',sans-serif;
  font-size:17px;
  line-height:1.75;
  overflow-x:hidden;
}
a{color:var(--ice)}
:focus-visible{outline:2px solid var(--neon);outline-offset:3px}
.skip{
  position:absolute;
  left:12px;
  top:8px;
  z-index:40;
  transform:translateY(-180%);
  background:var(--neon);
  color:#0f1a0e;
  padding:10px 14px;
  border-radius:8px;
  text-decoration:none;
  font-size:16px;
  transition:transform .18s ease;
}
.skip:focus{transform:none}

/* 顶栏 */
.top{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px clamp(14px,3vw,32px);
  border-bottom:1px solid var(--line);
  background:rgba(20,29,19,.84);
  backdrop-filter:blur(10px);
}
.mark{
  flex:none;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid rgba(1,205,254,.55);
  background:radial-gradient(circle at 30% 20%,rgba(255,113,206,.5),rgba(25,38,23,.95));
  box-shadow:0 0 16px rgba(1,205,254,.45);
  color:#eaffe0;
  text-decoration:none;
  font-family:'Libre Bodoni',Georgia,serif;
  font-size:1.1rem;
  line-height:1;
}
.mark img{width:28px;height:28px;border-radius:50%;object-fit:cover;display:block}
.nav{flex:1;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.nav ol{display:flex;gap:2px;list-style:none;margin:0;padding:0}
.nav a{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  padding:11px 12px;
  min-height:44px;
  border-radius:8px;
  color:#c9dfc3;
  font-size:16px;
  text-decoration:none;
}
.nav a::before{
  content:"";
  width:7px;
  height:7px;
  flex:none;
  transform:rotate(45deg);
  background:linear-gradient(135deg,var(--neon),var(--ice));
  box-shadow:0 0 8px rgba(1,205,254,.8);
}
.nav a:hover,.nav a:focus-visible{
  color:#0f1a0e;
  background:linear-gradient(135deg,var(--neon),var(--ice));
  box-shadow:0 0 18px rgba(135,255,113,.45);
}
.nav a:hover::before,.nav a:focus-visible::before{background:#0f1a0e;box-shadow:none}
.contact{
  flex:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:44px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,113,206,.6);
  color:#ffd9f2;
  font-size:16px;
  text-decoration:none;
  box-shadow:0 0 14px rgba(255,113,206,.32);
}
.contact:hover{background:rgba(255,113,206,.16)}

/* 头部大标题 */
.hero{
  position:relative;
  overflow:hidden;
  min-height:45vh;
  max-width:var(--max);
  margin:0 auto;
  padding:clamp(30px,6vw,56px) clamp(18px,4vw,48px) clamp(38px,6vw,64px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-end;
  text-align:right;
}
.hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-6px;
  height:170px;
  background-image:
    linear-gradient(rgba(135,255,113,.32) 1px,transparent 1px),
    linear-gradient(90deg,rgba(1,205,254,.26) 1px,transparent 1px);
  background-size:46px 46px;
  transform:perspective(320px) rotateX(62deg);
  transform-origin:bottom center;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 62%);
  mask-image:linear-gradient(180deg,transparent,#000 62%);
  opacity:.55;
  pointer-events:none;
}
.ghost{
  position:absolute;
  left:clamp(12px,3vw,40px);
  top:clamp(14px,4vw,40px);
  z-index:0;
  font-family:'Libre Bodoni',Georgia,serif;
  font-size:clamp(2.6rem,10vw,6.6rem);
  line-height:1;
  letter-spacing:.02em;
  color:transparent;
  -webkit-text-stroke:1px rgba(1,205,254,.42);
  opacity:.75;
  animation:hue 12s linear infinite;
  pointer-events:none;
}
@keyframes hue{
  0%{filter:hue-rotate(0deg)}
  50%{filter:hue-rotate(28deg)}
  100%{filter:hue-rotate(0deg)}
}
.hero h1{
  position:relative;
  z-index:1;
  margin:0 0 16px;
  max-width:17ch;
  font-family:'Libre Bodoni',Georgia,serif;
  font-weight:600;
  font-size:clamp(2.4rem,7.5vw,5rem);
  line-height:1.04;
  letter-spacing:-.015em;
  color:#f3ffe9;
  text-shadow:0 0 18px rgba(135,255,113,.5),0 0 48px rgba(1,205,254,.32);
}
.hero .lead{
  position:relative;
  z-index:1;
  margin:0;
  max-width:48ch;
  font-size:1.02rem;
  color:#b9cfb3;
}

/* 正文骨架 */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 clamp(18px,4vw,48px) 72px;
}
.stage{
  display:grid;
  grid-template-columns:minmax(0,1fr) 268px;
  gap:clamp(22px,3.5vw,48px);
  align-items:start;
}
.prose{min-width:0}
.prose article{
  scroll-margin-top:96px;
  margin:0 0 22px;
  padding:clamp(20px,3vw,32px);
  border:1px solid var(--line);
  border-radius:10px;
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.014));
  box-shadow:0 20px 44px -30px rgba(1,205,254,.6);
}
.prose h2{
  margin:0 0 12px;
  font-family:'Libre Bodoni',Georgia,serif;
  font-weight:600;
  font-size:clamp(1.5rem,3.2vw,2.15rem);
  line-height:1.2;
  color:#eaffe0;
  text-shadow:0 0 16px rgba(1,205,254,.35);
}
.prose h3{
  margin:22px 0 10px;
  font-family:'Public Sans',system-ui,sans-serif;
  font-weight:600;
  font-size:1.12rem;
  color:#d9f4d0;
  letter-spacing:.01em;
}
.prose p{margin:0 0 16px}
.prose p:last-child{margin-bottom:0}
.prose ul,.prose ol{margin:0 0 18px;padding-left:1.25em}
.prose li{margin:6px 0}
.prose a{color:var(--ice);text-underline-offset:3px}
.prose a:hover{color:var(--neon)}
.prose strong{color:#f1ffe8}
.prose img{max-width:100%;height:auto;border-radius:10px;border:1px solid var(--line);display:block;margin:0 0 16px}
.prose blockquote{
  margin:0 0 18px;
  padding:6px 0 6px 16px;
  border-left:3px solid var(--neon);
  color:#bcd8b5;
}
.prose table{width:100%;border-collapse:collapse;margin:0 0 18px;font-size:16px}
.prose th,.prose td{border:1px solid var(--line);padding:10px 12px;text-align:left}
.prose th{background:rgba(135,255,113,.08);color:#eaffe0}
.prose hr{border:0;border-top:1px solid var(--line);margin:26px 0}
.prose code{
  font-family:ui-monospace,'SFMono-Regular',Menlo,monospace;
  font-size:.94em;
  background:rgba(1,205,254,.14);
  padding:.1em .35em;
  border-radius:4px;
}

/* 右侧栏 */
.rail{
  position:sticky;
  top:84px;
  padding:18px 16px 8px;
  border:1px solid var(--line);
  border-radius:10px;
  background:linear-gradient(180deg,rgba(255,113,206,.09),rgba(1,205,254,.05));
  box-shadow:0 22px 44px -30px rgba(255,113,206,.8);
}
.rail-h{
  margin:0 0 4px;
  font-family:'Libre Bodoni',Georgia,serif;
  font-size:1.32rem;
  font-weight:600;
  color:#eaffe0;
}
.rail .subtitle{
  margin:0 0 14px;
  font-size:16px;
  letter-spacing:.16em;
  color:var(--ice);
}
.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  counter-reset:railc;
}
.rail-list li{counter-increment:railc;transition:transform .45s ease,opacity .45s ease}
.rail-list a{
  position:relative;
  display:block;
  min-height:44px;
  padding:11px 0 11px 30px;
  border-bottom:1px dashed rgba(135,255,113,.16);
  color:#c7dcc1;
  font-size:16px;
  text-decoration:none;
}
.rail-list li:last-child a{border-bottom:0}
.rail-list a::before{
  content:counter(railc,decimal-leading-zero);
  position:absolute;
  left:0;
  top:13px;
  font-family:'Libre Bodoni',Georgia,serif;
  font-size:13px;
  color:var(--ice);
  letter-spacing:.06em;
}
.rail-list a:hover,.rail-list a:focus-visible{color:var(--neon)}

/* 页脚 */
footer{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:end;
  gap:18px;
  padding:38px clamp(18px,4vw,48px) 32px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(1,205,254,.06),rgba(255,113,206,.12));
}
footer .fcopy{margin:0;color:#a9bfa4;font-size:16px}
footer .fbig{
  margin:0;
  justify-self:center;
  text-align:center;
  font-family:'Libre Bodoni',Georgia,serif;
  font-size:clamp(1.9rem,5.6vw,3.4rem);
  line-height:1.05;
  color:#f3ffe9;
  text-shadow:0 0 22px rgba(255,113,206,.5);
}
footer .flinks{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:4px 16px;
  justify-content:flex-end;
}
footer .flinks a{
  display:inline-block;
  min-height:40px;
  padding:8px 0;
  color:#cfe8c8;
  font-size:16px;
  text-decoration:none;
  border-bottom:1px solid transparent;
}
footer .flinks a:hover{color:var(--neon);border-color:var(--neon)}

/* 入场动效 */
.js .reveal{opacity:0;transform:translateY(16px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.3,1)}
.js .reveal.in{opacity:1;transform:none}

@media (max-width:860px){
  .stage{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;order:2}
  .hero{min-height:auto;padding-top:34px;padding-bottom:44px}
  .hero h1{max-width:100%}
  footer{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;gap:10px}
  footer .fbig{order:-1}
  footer .flinks{justify-content:center}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .reveal{opacity:1;transform:none;transition:none}
  .ghost{animation:none}
}

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