:root{
  --ink:#0d0d0d;
  --p:#8000ff;
  --m:#ff00ff;
  --g:#39ff9b;
  --fg:#ece7f7;
  --dim:#a89ac0;
  --line:rgba(128,0,255,.38);
  --r:18px;
  --mono:ui-monospace,"SFMono-Regular",Menlo,Consolas,"Noto Sans SC",monospace;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:
    radial-gradient(900px 480px at 88% -8%,rgba(255,0,255,.15),transparent 70%),
    radial-gradient(760px 420px at 4% 2%,rgba(128,0,255,.17),transparent 72%),
    var(--ink);
  color:var(--fg);
  font-family:"Noto Sans SC",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.78;
  letter-spacing:.01em;
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:60;
  pointer-events:none;
  background:repeating-linear-gradient(180deg,rgba(255,255,255,.05) 0 1px,rgba(0,0,0,0) 1px 3px);
  opacity:.5;
}
img{max-width:100%;height:auto}
:focus-visible{outline:2px solid var(--m);outline-offset:2px}
a{color:#e9c8ff}

.top,.rail,.grid,.foot{width:min(1180px,100% - 28px);margin-inline:auto}

/* 顶栏 */
.top{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding:14px 0 10px;
  border-bottom:1px solid var(--line);
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:2px 6px;
  color:#fff;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.06em;
}
.glyph{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border:1px solid var(--m);
  border-radius:9px;
  transform:rotate(45deg);
  box-shadow:inset 0 0 14px rgba(255,0,255,.6),0 0 14px rgba(128,0,255,.5);
  overflow:hidden;
}
.tiny-img{width:22px;height:22px;object-fit:contain;transform:rotate(-45deg)}
.brand-name{
  font-size:1.06rem;
  text-shadow:0 0 12px rgba(255,0,255,.65);
  animation:glitch 7s infinite steps(1,end);
}
@keyframes glitch{
  0%,91%,100%{transform:none}
  92%{transform:skewX(-7deg) translateX(-1px)}
  94%{transform:skewX(6deg) translateX(2px)}
  96%{transform:skewX(-3deg) translateX(-2px)}
  98%{transform:none}
}

.find{
  flex:1 1 150px;
  min-width:130px;
  max-width:300px;
  display:flex;
  border:1px solid var(--line);
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.03);
}
.find input{
  flex:1;
  min-width:0;
  border:0;
  background:none;
  color:var(--fg);
  font:inherit;
  font-size:16px;
  padding:10px 14px;
}
.find button{
  border:0;
  min-height:42px;
  padding:0 16px;
  background:linear-gradient(140deg,var(--p),var(--m));
  color:#fff;
  font:inherit;
  font-size:16px;
  cursor:pointer;
}
.find:focus-within{border-color:var(--m);box-shadow:0 0 16px rgba(255,0,255,.45)}

.primary{flex:1 0 100%;order:3;min-width:0}
.dock{display:flex;align-items:center;gap:8px;min-width:0}
.dock summary{
  list-style:none;
  cursor:pointer;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--m);
  font-family:var(--mono);
  font-size:16px;
  letter-spacing:.14em;
}
.dock summary::-webkit-details-marker{display:none}
.dock summary::after{content:"▾";margin-left:6px;font-size:.8em}
.dock[open] summary::after{content:"▴"}
.dock menu{
  display:flex;
  gap:4px;
  margin:0;
  padding:0;
  list-style:none;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:thin;
}
.dock menu li{flex:0 0 auto}
.dock menu a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:6px 10px;
  border:1px solid transparent;
  border-radius:8px;
  color:var(--dim);
  text-decoration:none;
  font-size:16px;
  white-space:nowrap;
}
.dock menu a:hover,.dock menu a:focus-visible{
  color:#fff;
  border-color:var(--m);
  box-shadow:0 0 12px rgba(255,0,255,.4);
}

/* 锚点条 */
.rail{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(13,13,13,.94);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.rail ol{
  display:flex;
  gap:6px;
  margin:0;
  padding:8px 0;
  list-style:none;
  overflow-x:auto;
  counter-reset:rl;
  scrollbar-width:thin;
}
.rail li{counter-increment:rl;flex:0 0 auto;animation:rise .5s both}
.rail a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:42px;
  padding:6px 12px;
  border:1px dashed rgba(128,0,255,.45);
  border-radius:4px;
  color:var(--dim);
  text-decoration:none;
  font-size:16px;
  white-space:nowrap;
}
.rail a::before{
  content:counter(rl,decimal-leading-zero);
  font-family:var(--mono);
  font-size:13px;
  color:var(--p);
}
.rail a:hover,.rail a:focus-visible{
  color:#fff;
  border-style:solid;
  border-color:var(--m);
  box-shadow:0 0 14px rgba(255,0,255,.4);
}
.rail li:nth-child(1){animation-delay:.02s}
.rail li:nth-child(2){animation-delay:.06s}
.rail li:nth-child(3){animation-delay:.1s}
.rail li:nth-child(4){animation-delay:.14s}
.rail li:nth-child(5){animation-delay:.18s}
.rail li:nth-child(6){animation-delay:.22s}
.rail li:nth-child(7){animation-delay:.26s}
@keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* 主体栅格 */
.grid{display:grid;gap:24px;padding:24px 0 8px}
.main,.doc{min-width:0}

.hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  gap:16px;
  min-height:45vh;
  padding:24px 4px 26px;
  border-bottom:1px solid var(--line);
  margin-bottom:24px;
}
.hero-txt{flex:1;min-width:0;text-align:right;position:relative;z-index:2}
.hero h1{
  margin:0 0 12px;
  font-size:clamp(1.8rem,5.8vw,3.1rem);
  line-height:1.26;
  color:#fff;
  text-shadow:0 0 18px rgba(255,0,255,.6),0 0 44px rgba(128,0,255,.55);
}
.lead{
  margin:0 0 0 auto;
  max-width:44ch;
  color:var(--dim);
  font-size:16px;
}
.ghost{
  position:absolute;
  right:0;
  bottom:-8%;
  margin:0;
  z-index:0;
  font-family:var(--mono);
  font-weight:700;
  font-size:clamp(2.6rem,15vw,8.5rem);
  line-height:1;
  letter-spacing:-.05em;
  color:rgba(128,0,255,.14);
  white-space:nowrap;
  pointer-events:none;
  will-change:transform;
}
.hero-mark{
  flex:0 0 auto;
  width:60px;
  height:60px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,0,255,.55);
  border-radius:16px;
  background:rgba(128,0,255,.12);
  box-shadow:0 0 26px rgba(128,0,255,.55),inset 0 0 20px rgba(255,0,255,.3);
  position:relative;
  z-index:2;
}
.mark-img{width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 0 8px rgba(255,0,255,.85))}
.ring{width:26px;height:26px;border-radius:50%;border:2px solid var(--m);box-shadow:0 0 16px var(--m)}

/* 正文区 */
.doc > div{
  padding:clamp(18px,3.2vw,30px);
  border:1px solid var(--line);
  border-radius:var(--r);
  background:linear-gradient(155deg,rgba(128,0,255,.12),rgba(255,255,255,.022) 46%,rgba(13,13,13,.62));
  box-shadow:0 22px 48px -32px rgba(128,0,255,.95);
  margin-bottom:22px;
  scroll-margin-top:82px;
}
.doc > div:nth-of-type(2n){
  background:linear-gradient(155deg,rgba(255,0,255,.1),rgba(255,255,255,.022) 46%,rgba(13,13,13,.62));
}
.doc > div.flash{
  box-shadow:0 0 0 1px var(--m),0 0 32px rgba(255,0,255,.55);
}
.doc h2{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin:0 0 14px;
  font-size:clamp(1.22rem,3.4vw,1.6rem);
  line-height:1.42;
  color:#fff;
  scroll-margin-top:82px;
}
.doc h2::before{
  content:"";
  flex:0 0 auto;
  width:9px;
  height:9px;
  border:1px solid var(--m);
  transform:rotate(45deg);
  box-shadow:0 0 10px var(--m);
}
.doc h2 > span{text-shadow:0 0 14px rgba(255,0,255,.5)}
.doc h3{
  margin:22px 0 10px;
  font-size:1.08rem;
  line-height:1.5;
  color:#fff;
}
.doc h3 > span{text-shadow:0 0 12px rgba(128,0,255,.8)}
.doc p{margin:0 0 14px}
.doc ul,.doc ol{margin:0 0 14px;padding-left:1.2em}
.doc li{margin-bottom:8px}
.doc a{color:#f0d4ff;text-underline-offset:3px;text-decoration-color:var(--m)}
.doc a:hover{color:#fff}
.doc strong{color:#fff}
.doc blockquote{
  margin:0 0 14px;
  padding:10px 14px;
  border-left:2px solid var(--m);
  background:rgba(255,0,255,.07);
}
.doc img{border-radius:12px;border:1px solid var(--line)}

/* 侧栏 */
.side{display:grid;gap:16px;min-width:0}
.panel{
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:16px 16px 8px;
  background:rgba(255,255,255,.026);
  box-shadow:0 18px 40px -32px rgba(255,0,255,.95);
}
.panel h2{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 10px;
  font-size:1rem;
  color:#fff;
}
.panel h2::before{content:"▚";color:var(--m);font-size:.85em}
.panel h2 > span{text-shadow:0 0 12px rgba(255,0,255,.65)}
.side-list{list-style:none;margin:0;padding:0}
.side-list li{border-top:1px dashed rgba(128,0,255,.3);animation:rise .5s both}
.side-list a{
  display:block;
  min-height:42px;
  padding:9px 2px;
  color:var(--dim);
  text-decoration:none;
  font-size:16px;
}
.side-list a:hover,.side-list a:focus-visible{color:#fff;text-shadow:0 0 12px rgba(255,0,255,.75)}
.jump{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  margin-bottom:8px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:8px;
  color:#fff;
  text-decoration:none;
  font-size:16px;
}
.jump:hover{border-color:var(--m);box-shadow:0 0 14px rgba(255,0,255,.45)}

/* 页脚 */
.foot{
  margin-top:34px;
  padding:26px 0 18px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(128,0,255,.1),transparent 62%);
}
.foot-grid{display:grid;gap:20px}
.f-brand{
  margin:0 0 6px;
  color:#fff;
  font-weight:700;
  letter-spacing:.08em;
  text-shadow:0 0 14px rgba(255,0,255,.6);
}
.foot address{font-style:normal;color:var(--dim);font-size:16px}
.foot h3{margin:0 0 8px;font-size:.96rem;color:#fff}
.foot h3 > span{font-family:var(--mono);font-size:13px;letter-spacing:.18em;color:var(--p)}
.foot ul{list-style:none;margin:0;padding:0}
.foot ul li{animation:rise .5s both}
.foot ul a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  color:var(--dim);
  text-decoration:none;
  font-size:16px;
}
.foot ul a:hover,.foot ul a:focus-visible{color:#fff;text-shadow:0 0 12px rgba(255,0,255,.7)}
.sub{
  display:flex;
  max-width:290px;
  border:1px solid var(--line);
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.03);
}
.sub input{
  flex:1;
  min-width:0;
  border:0;
  background:none;
  color:var(--fg);
  font:inherit;
  font-size:16px;
  padding:10px 14px;
}
.sub button{
  border:0;
  min-height:42px;
  padding:0 14px;
  background:linear-gradient(140deg,var(--p),var(--m));
  color:#fff;
  font:inherit;
  font-size:16px;
  cursor:pointer;
}
#sub-out{display:block;margin-top:8px;min-height:1.6em;font-size:16px;color:var(--g)}
.cr{
  margin:22px 0 0;
  padding-top:14px;
  border-top:1px dashed rgba(128,0,255,.3);
  text-align:center;
  color:var(--dim);
  font-size:16px;
}

@media (min-width:620px){
  .hero-mark{width:78px;height:78px;border-radius:20px}
  .mark-img{width:52px;height:52px}
  .ring{width:32px;height:32px}
}
@media (min-width:760px){
  .foot-grid{grid-template-columns:1.4fr 1fr 1fr 1.3fr;gap:24px}
}
@media (min-width:880px){
  .primary{flex:1 1 auto;order:0}
  .dock menu a{padding:6px 9px}
}
@media (min-width:940px){
  .grid{grid-template-columns:minmax(0,1fr) 292px;align-items:start;padding-top:28px}
  .side{position:sticky;top:70px}
  .hero{padding-top:30px;padding-bottom:30px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none !important;transition:none !important}
}

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