@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Nunito:ital,wght@0,700;0,800;0,900;1,700&display=swap');

:root{
  --green:#87ff71;
  --cyan:#01cdfe;
  --ink:#192617;
  --pink:#ff71ce;
  --violet:#b967ff;
  --fg:#e9ffe4;
  --muted:#a9c6a2;
  --line:rgba(135,255,113,.26);
  --line-soft:rgba(135,255,113,.16);
  --card:rgba(255,255,255,.05);
  --r:28px;
  --font:"Nunito","DM Sans",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.7;
  color:var(--fg);
  background:
    radial-gradient(1100px 560px at 50% -12%, rgba(255,113,206,.30), transparent 62%),
    radial-gradient(900px 480px at 88% 8%, rgba(1,205,254,.22), transparent 62%),
    linear-gradient(180deg,#20321d 0%, var(--ink) 52%, #0e1a0c 100%);
  background-color:var(--ink);
  padding-bottom:96px;
  overflow-x:hidden;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:60;
  pointer-events:none;
  background:repeating-linear-gradient(180deg, rgba(255,255,255,.045) 0 1px, transparent 1px 4px);
  mix-blend-mode:screen;
  opacity:.55;
}

a{color:var(--cyan)}
a:focus-visible,
summary:focus-visible,
button:focus-visible{
  outline:3px solid var(--pink);
  outline-offset:3px;
  border-radius:8px;
}

/* —— 首屏 —— */
.hero{
  position:relative;
  overflow:hidden;
  min-height:70vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:20px;
  text-align:center;
  padding:84px 20px 64px;
  border-bottom:1px solid var(--line);
}

.hero::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:min(76vw,500px);
  aspect-ratio:1;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:linear-gradient(180deg,var(--pink) 0%,#ffb26b 46%,var(--violet) 100%);
  opacity:.55;
  filter:blur(1px);
  -webkit-mask-image:repeating-linear-gradient(180deg,#000 0 13px,transparent 13px 16px);
  mask-image:repeating-linear-gradient(180deg,#000 0 13px,transparent 13px 16px);
  animation:hueSpin 20s linear infinite;
}

.hero::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-2px;
  width:210%;
  height:40%;
  transform:translateX(-50%) perspective(320px) rotateX(63deg);
  transform-origin:bottom center;
  background:
    repeating-linear-gradient(90deg, rgba(1,205,254,.45) 0 2px, transparent 2px 46px),
    repeating-linear-gradient(0deg, rgba(255,113,206,.40) 0 2px, transparent 2px 46px);
  opacity:.55;
  pointer-events:none;
}

.ghost{
  position:absolute;
  left:50%;
  top:50%;
  z-index:1;
  margin:0;
  transform:translate(-50%,-50%);
  font-size:clamp(60px,21vw,190px);
  font-weight:900;
  letter-spacing:.06em;
  line-height:1;
  white-space:nowrap;
  color:transparent;
  -webkit-text-stroke:1.5px rgba(135,255,113,.45);
  text-stroke:1.5px rgba(135,255,113,.45);
  filter:drop-shadow(0 0 20px rgba(1,205,254,.45));
  pointer-events:none;
}

.hero h1{
  position:relative;
  z-index:4;
  margin:0;
  max-width:18ch;
  font-size:clamp(30px,7.4vw,64px);
  font-weight:900;
  line-height:1.18;
  letter-spacing:.02em;
  color:#fff;
  text-shadow:
    0 0 10px rgba(135,255,113,.85),
    0 0 34px rgba(1,205,254,.7),
    0 5px 0 rgba(12,22,10,.85);
  animation:glitch 6s ease-in-out infinite;
}

.lede{
  position:relative;
  z-index:4;
  margin:0;
  max-width:36ch;
  font-size:17px;
  color:#d8efd2;
}

.hero-jump{
  position:relative;
  z-index:4;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 28px;
  border-radius:999px;
  border:2px solid var(--green);
  color:var(--green);
  font-weight:900;
  text-decoration:none;
  background:rgba(135,255,113,.08);
  box-shadow:0 0 22px -6px rgba(135,255,113,.75);
  transition:transform .18s ease, background .18s ease, color .18s ease;
}
.hero-jump:hover{
  transform:translateY(-3px);
  background:var(--green);
  color:var(--ink);
}

/* —— 主体骨架 —— */
main{
  max-width:1180px;
  margin:0 auto;
  padding:46px 20px 72px;
}

.wrap{
  display:grid;
  grid-template-columns:272px minmax(0,1fr);
  gap:34px;
  align-items:start;
}

.side{
  grid-column:1;
  position:sticky;
  top:18px;
  min-width:0;
}

.side-card{
  background:rgba(255,255,255,.055);
  border:1px solid var(--line-soft);
  border-bottom:3px solid var(--cyan);
  border-radius:var(--r);
  padding:18px 20px 20px;
  margin-bottom:18px;
  box-shadow:0 22px 44px -34px #000;
}

.side-card h2{
  margin:0 0 12px;
  font-size:16px;
  font-weight:900;
  letter-spacing:.14em;
  color:var(--green);
}

.side-card h2 > span{
  display:inline-block;
  padding-bottom:3px;
  border-bottom:3px solid var(--pink);
}

.toc,
.rel{
  margin:0;
  padding:0;
  list-style:none;
  font-size:16px;
}
.toc li,
.rel li{
  animation:rise .5s ease both;
}
.toc li:nth-child(1){animation-delay:.04s}
.toc li:nth-child(2){animation-delay:.08s}
.toc li:nth-child(3){animation-delay:.12s}
.toc li:nth-child(4){animation-delay:.16s}
.toc li:nth-child(5){animation-delay:.20s}
.toc li:nth-child(6){animation-delay:.24s}
.toc li:nth-child(7){animation-delay:.28s}
.rel li:nth-child(1){animation-delay:.32s}
.rel li:nth-child(2){animation-delay:.36s}
.rel li:nth-child(3){animation-delay:.40s}

.toc a,
.rel a{
  display:block;
  min-height:40px;
  padding:9px 2px;
  color:var(--fg);
  text-decoration:none;
  font-weight:700;
  border-bottom:1px dashed rgba(135,255,113,.16);
  transition:color .16s ease, padding-left .16s ease;
}
.toc a:hover,
.rel a:hover{
  color:var(--green);
  padding-left:8px;
}

/* —— 正文容器 —— */
.doc{
  min-width:0;
  background:var(--card);
  border:1px solid var(--line-soft);
  border-bottom:3px solid var(--green);
  border-radius:var(--r);
  padding:10px 24px 30px;
  box-shadow:0 26px 60px -44px #000;
}

.doc-body{
  counter-reset:sec;
  animation:rise .6s ease both;
}

.doc-body > article{
  position:relative;
  padding:32px 0 28px;
  border-bottom:1px dashed rgba(135,255,113,.2);
  scroll-margin-top:26px;
  counter-increment:sec;
}
.doc-body > article:last-child{border-bottom:0}
.doc-body > article:target{
  background:linear-gradient(90deg, rgba(1,205,254,.10), transparent 70%);
  border-radius:18px;
}

.doc-body > article::before{
  content:counter(sec, decimal-leading-zero);
  position:absolute;
  right:0;
  top:4px;
  font-size:clamp(36px,7vw,62px);
  font-weight:900;
  line-height:1;
  color:rgba(1,205,254,.16);
  pointer-events:none;
}

.doc-body h2,
.doc-body h3{
  margin:0 0 14px;
  font-size:clamp(22px,3.6vw,30px);
  line-height:1.3;
  font-weight:900;
  color:#fff;
  text-shadow:0 0 16px rgba(135,255,113,.55);
}
.doc-body h2 > span,
.doc-body h3 > span{
  display:inline-block;
  padding-bottom:3px;
  border-bottom:3px solid var(--pink);
}

.doc-body p{margin:0 0 1em}
.doc-body p:last-child{margin-bottom:0}
.doc-body a{
  color:var(--cyan);
  text-decoration:underline;
  text-underline-offset:3px;
}
.doc-body a:hover{color:var(--green)}

.doc-body ul,
.doc-body ol{padding-left:1.3em; margin:0 0 1em}
.doc-body li{margin:.4em 0}
.doc-body strong{color:var(--green)}

.doc-body blockquote{
  margin:1em 0;
  padding:.3em 0 .3em 1em;
  border-left:4px solid var(--violet);
  color:var(--muted);
}

.doc-body img{
  display:block;
  max-width:100%;
  height:auto;
  border-radius:20px;
  border:1px solid var(--line-soft);
  margin:1em 0;
}

.doc-body time{color:var(--green); font-weight:800}

.doc-body table{
  width:100%;
  border-collapse:collapse;
  margin:1em 0;
  font-size:16px;
}
.doc-body th,
.doc-body td{
  padding:10px 12px;
  border-bottom:1px solid var(--line-soft);
  text-align:left;
}
.doc-body th{color:var(--green)}

.doc-body code{
  font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:15px;
  background:rgba(1,205,254,.14);
  border-radius:8px;
  padding:1px 6px;
}

/* —— 页脚 —— */
.foot{
  border-top:1px solid var(--line);
  background:linear-gradient(180deg, rgba(1,205,254,.08), rgba(255,113,206,.12));
  padding:44px 20px 36px;
}
.foot > *{
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
}

.cta{
  border:1px solid rgba(255,255,255,.18);
  border-radius:var(--r);
  padding:36px 22px;
  text-align:center;
  background:linear-gradient(120deg, rgba(255,113,206,.28), rgba(1,205,254,.24) 52%, rgba(135,255,113,.26));
  box-shadow:0 0 60px -34px rgba(255,113,206,.9);
}
.cta-line{
  margin:0 0 18px;
  font-size:clamp(24px,5.4vw,40px);
  font-weight:900;
  line-height:1.25;
  color:#fff;
  text-shadow:0 0 20px rgba(255,113,206,.85);
}
.cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 28px;
  border-radius:999px;
  background:var(--green);
  color:var(--ink);
  font-weight:900;
  font-size:17px;
  text-decoration:none;
  box-shadow:0 0 0 5px rgba(135,255,113,.2);
  transition:transform .18s ease, box-shadow .18s ease;
}
.cta-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 0 0 8px rgba(135,255,113,.28);
}

.cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  margin-top:34px;
  margin-bottom:24px;
  padding-bottom:22px;
  border-bottom:1px solid var(--line-soft);
}
.cols dl{margin:0; font-size:16px}
.cols dt{
  color:var(--green);
  font-weight:900;
  letter-spacing:.12em;
  margin-bottom:8px;
}
.cols dd{margin:0}
.cols dd a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 0;
  color:var(--fg);
  text-decoration:none;
  font-weight:700;
  transition:color .16s ease, transform .16s ease;
}
.cols dd a:hover{
  color:var(--cyan);
  transform:translateX(3px);
}

.base{
  text-align:center;
  font-size:16px;
  color:var(--muted);
}
.base p{margin:0}

/* —— 底部固定条 —— */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:80;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:8px;
  padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));
  background:rgba(13,24,11,.93);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  border-top:1px solid rgba(135,255,113,.38);
  box-shadow:0 -18px 44px -24px rgba(0,0,0,.95);
}

.dock .grp{position:relative; justify-self:start}
.dock .right{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}
.dock .right .grp{justify-self:auto}

.dock summary{
  list-style:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:44px;
  padding:0 13px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--green);
  font-weight:900;
  font-size:16px;
  cursor:pointer;
  transition:background .18s ease, color .18s ease;
}
.dock summary::-webkit-details-marker{display:none}
.dock summary::after{content:"＋"; font-size:14px; opacity:.85}
.dock .grp[open] summary{
  background:var(--green);
  color:var(--ink);
}
.dock summary:hover{background:rgba(135,255,113,.14)}

.dock menu{
  position:absolute;
  left:0;
  bottom:calc(100% + 14px);
  margin:0;
  padding:8px;
  min-width:172px;
  list-style:none;
  background:#16270f;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 20px 46px -22px #000;
  animation:rise .22s ease both;
}
.dock .right menu{
  left:auto;
  right:0;
}
.dock menu li{margin:0}
.dock menu a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:6px 13px;
  border-radius:14px;
  color:var(--fg);
  text-decoration:none;
  font-weight:700;
  font-size:16px;
  transition:background .16s ease, color .16s ease;
}
.dock menu a:hover{
  background:rgba(135,255,113,.16);
  color:var(--green);
}

.brand{
  justify-self:center;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 10px;
  font-size:clamp(16px,4vw,17px);
  font-weight:900;
  letter-spacing:.04em;
  color:#fff;
  text-decoration:none;
  text-shadow:0 0 12px rgba(135,255,113,.9), 0 0 26px rgba(1,205,254,.6);
  white-space:nowrap;
}

.contact{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 14px;
  border-radius:999px;
  background:var(--cyan);
  color:var(--ink);
  font-weight:900;
  font-size:16px;
  text-decoration:none;
  box-shadow:0 0 20px -6px rgba(1,205,254,.9);
  transition:transform .18s ease;
}
.contact:hover{transform:translateY(-2px)}

/* —— 动效 —— */
@keyframes rise{
  from{opacity:0; transform:translateY(14px)}
  to{opacity:1; transform:translateY(0)}
}
@keyframes hueSpin{
  0%{filter:hue-rotate(0deg)}
  50%{filter:hue-rotate(28deg)}
  100%{filter:hue-rotate(0deg)}
}
@keyframes glitch{
  0%,88%,100%{
    text-shadow:
      0 0 10px rgba(135,255,113,.85),
      0 0 34px rgba(1,205,254,.7),
      0 5px 0 rgba(12,22,10,.85);
  }
  90%{
    text-shadow:
      -3px 0 0 rgba(255,113,206,.9),
      3px 0 0 rgba(1,205,254,.9),
      0 5px 0 rgba(12,22,10,.85);
  }
  94%{
    text-shadow:
      3px 0 0 rgba(255,113,206,.9),
      -3px 0 0 rgba(1,205,254,.9),
      0 5px 0 rgba(12,22,10,.85);
  }
}

/* —— 断点 —— */
@media (max-width:900px){
  .wrap{grid-template-columns:minmax(0,1fr); gap:22px}
  .side{position:static; grid-column:auto}
  .side-card{margin-bottom:14px}
  .hero{min-height:66vh; padding:70px 18px 54px}
  main{padding:32px 16px 56px}
  .doc{padding:6px 16px 22px}
  .dock{gap:4px; padding-left:8px; padding-right:8px}
  .dock summary{padding:0 11px}
  .contact{padding:0 12px}
  .brand{padding:0 6px}
}

@media (max-width:560px){
  .cols{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
  }
  .cols dd a{font-size:16px}
  .cta{padding:28px 16px}
}

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

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