@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap');

:root{
  --ink:#1a1a2e;
  --ink-deep:#101020;
  --red:#ff0000;
  --mag:#ff006e;
  --ice:#00ffff;
  --text:#f2eefb;
  --dim:#a8a4c2;
  --line:rgba(255,0,110,.26);
  --glass:rgba(255,255,255,.055);
  --max:1240px;
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  background:var(--ink-deep);
}

body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:'Space Grotesk',"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  letter-spacing:.015em;
  overflow-x:hidden;
  background-color:var(--ink);
  background-image:
    radial-gradient(900px 480px at 10% -8%,rgba(255,0,110,.22),transparent 70%),
    radial-gradient(760px 420px at 90% 2%,rgba(255,0,0,.16),transparent 72%),
    linear-gradient(rgba(255,0,110,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,0,110,.05) 1px,transparent 1px);
  background-size:auto,auto,64px 64px,64px 64px;
  background-attachment:fixed;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:70;
  pointer-events:none;
  opacity:.55;
  background:repeating-linear-gradient(180deg,rgba(255,255,255,.05) 0 1px,rgba(0,0,0,.12) 1px 3px);
}

img{max-width:100%;height:auto}

/* ---------- 顶部：品牌居中，菜单分列两侧 ---------- */

.masthead{
  position:relative;
  z-index:40;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,rgba(16,16,32,.96),rgba(26,26,46,.62));
}

.dock{max-width:var(--max);margin:0 auto;padding:.35rem .7rem}

.rail{
  list-style:none;
  display:flex;
  align-items:center;
  gap:.1rem;
  margin:0;
  padding:0;
}

.rail > li{flex:1 1 0;min-width:0}
.rail > li:nth-child(-n+4){text-align:right}
.rail > li:nth-child(n+6){text-align:left}
.rail-gap{flex:1 1 0}

.rail a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 .55rem;
  color:var(--dim);
  font-size:.93rem;
  letter-spacing:.08em;
  text-decoration:none;
  transition:color .18s ease,text-shadow .18s ease;
}
.rail a:hover,.rail a:focus-visible{color:#fff;text-shadow:0 0 10px var(--mag),0 0 22px rgba(255,0,110,.6)}

.rail-brand{flex:0 0 auto;text-align:center}
.rail-brand .brand{
  color:#fff;
  font-size:1.12rem;
  letter-spacing:.16em;
  text-shadow:0 0 6px var(--red),0 0 22px rgba(255,0,110,.75);
}

/* ---------- 二级粘性锚点条 ---------- */

.tape{
  position:sticky;
  top:0;
  z-index:50;
  overflow-x:auto;
  overflow-y:hidden;
  border-bottom:1px solid var(--line);
  background:rgba(16,16,32,.9);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  scrollbar-width:none;
}
.tape::-webkit-scrollbar{display:none}

.tape-list{
  list-style:none;
  display:flex;
  gap:.1rem;
  max-width:var(--max);
  margin:0 auto;
  padding:0 .6rem;
}

.tape-list a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 .55rem;
  color:var(--dim);
  font-size:.82rem;
  letter-spacing:.1em;
  white-space:nowrap;
  text-decoration:none;
  border-bottom:2px solid transparent;
  transition:color .18s ease,border-color .18s ease;
}
.tape-list a:hover,.tape-list a:focus-visible{color:#fff;border-bottom-color:var(--red)}

/* ---------- 主体栅格：正文左、侧栏右 ---------- */

.shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) 15.5rem;
  align-items:start;
  gap:1.6rem;
  max-width:var(--max);
  margin:0 auto;
  padding:0 .9rem 3.5rem;
}

.stage{min-width:0}

/* ---------- 首屏 ---------- */

.hero{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1.3rem;
  min-height:70vh;
  padding:1.6rem 0 3.2rem;
  text-align:center;
}

.hero-copy > *{
  opacity:0;
  transform:translateY(10px);
  animation:rise .7s ease forwards;
}
.hero-copy > *:nth-child(2){animation-delay:.1s}
.hero-copy > *:nth-child(3){animation-delay:.2s}

.kicker{
  margin:0 0 .5rem;
  color:var(--mag);
  font-size:.8rem;
  letter-spacing:.34em;
}

.hero h1{
  margin:0;
  font-size:clamp(1.9rem,5.2vw,3.5rem);
  line-height:1.14;
  letter-spacing:.02em;
  color:#fff;
}

.glitch{
  display:inline-block;
  text-shadow:0 0 8px rgba(255,0,0,.6),0 0 30px rgba(255,0,110,.45);
  animation:glitch 7s steps(1,end) infinite;
}

.lede{
  max-width:38rem;
  margin:.9rem auto 0;
  color:var(--dim);
  font-size:1rem;
  line-height:1.8;
}

.hero-art{
  position:relative;
  width:100%;
  max-width:44rem;
  margin:0;
  min-height:8rem;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--glass);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 0 0 1px rgba(255,0,110,.1),0 26px 60px -34px var(--mag);
}
.hero-art .hero-img,
.hero-art img{display:block;width:100%;height:auto;will-change:transform}

.hero-slash{
  position:absolute;
  left:0;
  right:0;
  bottom:.4rem;
  height:4px;
  background:linear-gradient(90deg,var(--red),var(--mag) 55%,transparent);
  transform:skewY(-1.1deg);
  box-shadow:0 0 18px rgba(255,0,110,.55);
}

/* ---------- 正文区块 ---------- */

.stage > section{
  position:relative;
  padding:2.4rem 0 1.9rem;
  border-top:1px solid rgba(255,255,255,.08);
}

.stage > section:first-of-type{border-top:0}

section[id]{scroll-margin-top:6.6rem}

.stage h2,
.stage h3{
  margin:0 0 .9rem;
  color:#fff;
  line-height:1.3;
  letter-spacing:.01em;
}

.stage h2{font-size:clamp(1.35rem,2.9vw,1.95rem)}
.stage h3{font-size:clamp(1.1rem,2.2vw,1.35rem);color:#ffe9f2}

.stage h2::before{
  content:"";
  display:block;
  width:54px;
  height:3px;
  margin-bottom:.75rem;
  background:linear-gradient(90deg,var(--red),var(--mag));
  box-shadow:0 0 14px var(--mag);
}

.stage p{margin:0 0 1rem;color:#ddd9ee}
.stage strong{color:#fff}
.stage a{color:var(--mag);text-underline-offset:3px}
.stage a:hover{color:#fff;text-shadow:0 0 10px var(--mag)}

.stage ul,.stage ol{margin:0 0 1.1rem;padding-left:1.3rem;color:#ddd9ee}
.stage li{margin:.35rem 0}
.stage li::marker{color:var(--mag)}

.stage blockquote{
  margin:1.2rem 0;
  padding:.85rem 1.1rem;
  border-left:3px solid var(--red);
  border-radius:0 10px 10px 0;
  background:var(--glass);
  color:#efe9ff;
}
.stage blockquote p:last-child{margin-bottom:0}

.stage img{border-radius:10px;border:1px solid var(--line)}

.stage table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 1.2rem;
  font-size:.95rem;
}
.stage th,.stage td{
  padding:.55rem .6rem;
  border-bottom:1px solid rgba(255,255,255,.12);
  text-align:left;
}
.stage th{color:var(--mag);font-weight:700}

.stage hr{
  height:1px;
  margin:1.6rem 0;
  border:0;
  background:linear-gradient(90deg,var(--mag),transparent);
}

/* 滚动显现 */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .55s ease,transform .55s ease}
.reveal.in{opacity:1;transform:none}

/* ---------- 右侧栏 ---------- */

.side{
  position:sticky;
  top:3.4rem;
  padding:1rem .9rem 1.1rem;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--glass);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:0 0 0 1px rgba(255,0,110,.08),0 20px 46px -28px var(--mag);
}

.side-h{
  margin:0 0 .7rem;
  font-size:.85rem;
  letter-spacing:.32em;
  color:var(--mag);
}
.side-h span{display:inline-block}

.side-list{list-style:none;margin:0;padding:0;display:grid;gap:.1rem}

.side-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:.2rem .45rem;
  color:var(--dim);
  font-size:.93rem;
  text-decoration:none;
  border-left:2px solid transparent;
  transition:color .18s ease,border-color .18s ease,background .18s ease;
}
.side-list a:hover,.side-list a:focus-visible{
  color:#fff;
  border-left-color:var(--red);
  background:rgba(255,0,110,.1);
}

/* ---------- 页脚 ---------- */

.end{
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,0,110,.1),rgba(16,16,32,0));
}

.end-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:1rem;
  max-width:var(--max);
  margin:0 auto;
  padding:1.5rem .9rem;
}

.end-legal{color:var(--dim);font-size:.8rem;letter-spacing:.08em}

.end-word{
  margin:0;
  text-align:center;
  font-size:clamp(1.5rem,5vw,3.2rem);
  line-height:1;
  letter-spacing:.06em;
  color:transparent;
  -webkit-text-stroke:1px var(--mag);
  text-shadow:0 0 26px rgba(255,0,110,.35);
}

.end-nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.1rem}

.end-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 .5rem;
  color:var(--dim);
  font-size:.84rem;
  letter-spacing:.08em;
  text-decoration:none;
}
.end-nav a:hover,.end-nav a:focus-visible{color:#fff;text-shadow:0 0 10px var(--mag)}

/* ---------- 动效 ---------- */

@keyframes rise{
  to{opacity:1;transform:none}
}

@keyframes glitch{
  0%,90%,100%{
    transform:none;
    text-shadow:0 0 8px rgba(255,0,0,.6),0 0 30px rgba(255,0,110,.45);
  }
  91%{
    transform:skewX(-1.6deg) translateX(-2px);
    text-shadow:2px 0 var(--red),-2px 0 var(--ice),0 0 30px var(--mag);
  }
  93%{
    transform:skewX(1.3deg) translateX(2px);
    text-shadow:-2px 0 var(--red),2px 0 var(--ice);
  }
  95%{transform:none}
}

/* ---------- 断点 ---------- */

@media (max-width:940px){
  .shell{grid-template-columns:minmax(0,1fr);gap:1.2rem}
  .side{position:static;order:2}
}

@media (max-width:760px){
  .rail{flex-wrap:wrap;justify-content:center;gap:0}
  .rail > li{flex:1 1 auto;text-align:center}
  .rail > li:nth-child(-n+4),
  .rail > li:nth-child(n+6){text-align:center}
  .rail-gap{display:none}
  .rail-brand{flex:1 1 100%;order:-1}
  .rail-brand .brand{min-height:44px}
  .hero{min-height:auto;padding:1.4rem 0 2.4rem}
  .end-row{grid-template-columns:1fr;justify-items:center;text-align:center;gap:.5rem}
  .end-nav{justify-content:center}
  .stage > section{padding:2rem 0 1.6rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-copy > *{opacity:1;transform:none;animation-duration:.001ms;animation-iteration-count:1}
  .glitch{animation-duration:.001ms;animation-iteration-count:1}
  .reveal{opacity:1;transform:none;transition:none}
}

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