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

:root{
  --bg:#0d0d0d;
  --panel:#111015;
  --panel2:#0e0d12;
  --ink:#cfc6e0;
  --dim:#8d83a6;
  --pur:#8000ff;
  --mag:#ff00ff;
  --line:rgba(128,0,255,.28);
  --line2:rgba(255,0,255,.42);
}

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

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

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:17px/1.75 "Exo","Roboto Mono",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  overflow-x:hidden;
}

h1,h2,h3{font-family:"Exo",system-ui,"PingFang SC",sans-serif;line-height:1.2;letter-spacing:.02em}

a{color:inherit}
img{max-width:100%}
:focus-visible{outline:2px solid var(--mag);outline-offset:3px}

.scan{
  position:fixed;
  inset:0;
  z-index:70;
  pointer-events:none;
  background:repeating-linear-gradient(180deg,rgba(255,255,255,.045) 0 1px,rgba(0,0,0,0) 1px 3px);
  opacity:.7;
  mix-blend-mode:screen;
}

/* ---- 顶部两行 HUD ---- */
.hud{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(13,13,13,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line2);
  box-shadow:0 10px 34px rgba(0,0,0,.6);
}

.hud-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.55rem clamp(1rem,4vw,3rem);
  border-bottom:1px dashed rgba(128,0,255,.3);
}

.mark{
  display:inline-flex;
  align-items:center;
  gap:.65rem;
  min-height:44px;
  text-decoration:none;
}

.mark-glyph{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border:1px solid var(--line2);
  border-radius:6px;
  color:#fff;
  font:500 15px/1 "Roboto Mono",monospace;
  text-shadow:0 0 10px var(--mag);
  background:rgba(128,0,255,.16);
  clip-path:polygon(0 0,100% 0,100% 74%,74% 100%,0 100%);
}

.mark-glyph img{width:30px;height:30px;object-fit:cover;border-radius:6px}

.mark-name{
  font:700 clamp(1rem,2.4vw,1.35rem)/1 "Exo",sans-serif;
  letter-spacing:.06em;
  color:#fff;
  text-shadow:0 0 14px rgba(255,0,255,.6),0 0 30px rgba(128,0,255,.45);
}

.hud-tel{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 .95rem;
  font:500 13px/1 "Roboto Mono",monospace;
  letter-spacing:.16em;
  text-decoration:none;
  color:#f2e6ff;
  border:1px solid var(--line2);
  border-radius:10px;
  background:rgba(255,0,255,.1);
  white-space:nowrap;
}

.hud-tel:hover{background:rgba(255,0,255,.24);text-shadow:0 0 10px var(--mag)}

.hud-menu{
  display:flex;
  align-items:center;
  gap:.2rem;
  padding:.3rem clamp(.8rem,3.6vw,2.6rem) .4rem;
}

.clust{position:relative;display:flex;align-items:center}

.clust-key{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 .85rem;
  font:500 12px/1 "Roboto Mono",monospace;
  letter-spacing:.2em;
  color:#b3a6d4;
  border-bottom:1px solid transparent;
  cursor:default;
  white-space:nowrap;
}

.clust:hover .clust-key,
.clust:focus-within .clust-key{
  color:#fff;
  border-bottom-color:var(--mag);
  text-shadow:0 0 12px var(--mag);
}

.clust-list{
  position:absolute;
  top:100%;
  left:0;
  z-index:20;
  margin:0;
  padding:.4rem;
  list-style:none;
  display:grid;
  gap:2px;
  min-width:12rem;
  background:#121016;
  border:1px solid var(--line2);
  border-radius:10px;
  border-bottom:2px solid var(--mag);
  box-shadow:0 20px 44px rgba(0,0,0,.75),0 0 24px rgba(128,0,255,.25);
  opacity:0;
  visibility:hidden;
  transform:translateY(-8px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s;
}

.clust:hover .clust-list,
.clust:focus-within .clust-list{opacity:1;visibility:visible;transform:none}

.clust-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:0 .75rem;
  border-radius:8px;
  font-size:15px;
  text-decoration:none;
  color:#d8cdea;
  white-space:nowrap;
}

.clust-list a:hover,
.clust-list a:focus-visible{
  background:linear-gradient(90deg,rgba(128,0,255,.35),rgba(255,0,255,.12));
  color:#fff;
  text-shadow:0 0 10px var(--mag);
}

/* ---- Hero ---- */
.stage{display:block}

.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:clamp(1.4rem,4vw,3rem);
  min-height:calc(100vh - 7.6rem);
  padding:clamp(1.6rem,5vw,4.4rem) clamp(1rem,4vw,3.5rem);
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background-color:#0b0a0e;
  background-image:
    linear-gradient(rgba(128,0,255,.14) 1px,transparent 1px),
    linear-gradient(90deg,rgba(128,0,255,.14) 1px,transparent 1px),
    radial-gradient(70% 60% at 12% 90%,rgba(255,0,255,.18),transparent 70%);
  background-size:46px 46px,46px 46px,100% 100%;
}

.hero::after{
  content:"";
  position:absolute;
  inset:auto -10% -30% auto;
  width:52%;
  height:70%;
  background:radial-gradient(closest-side,rgba(128,0,255,.25),transparent);
  pointer-events:none;
}

.hero-copy{position:relative;z-index:2;max-width:34rem}

.hero-copy > *{animation:rise .7s ease both}
.hero-copy > *:nth-child(2){animation-delay:.09s}
.hero-copy > *:nth-child(3){animation-delay:.18s}

.hero-h1{
  margin:0 0 1rem;
  font-size:clamp(2.1rem,5.4vw,4.4rem);
  font-weight:700;
  letter-spacing:.01em;
  color:#fff;
  text-shadow:0 0 18px rgba(255,0,255,.55),0 0 48px rgba(128,0,255,.5);
  animation:rise .7s ease both,flicker 7s 1.2s steps(1) infinite;
}

.hero-desc{
  margin:0 0 1.7rem;
  max-width:30rem;
  color:#b6aacf;
  font-size:1.02rem;
}

.hero-act{display:flex;flex-wrap:wrap;gap:.7rem}

.btn{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 1.35rem;
  font:500 15px/1 "Exo",sans-serif;
  letter-spacing:.08em;
  text-decoration:none;
  border-radius:10px;
  border:1px solid var(--line2);
  clip-path:polygon(0 0,100% 0,100% 70%,88% 100%,0 100%);
}

.btn-a{
  background:linear-gradient(120deg,var(--pur),var(--mag));
  color:#fff;
  box-shadow:0 0 26px rgba(255,0,255,.42);
}

.btn-a:hover{box-shadow:0 0 40px rgba(255,0,255,.7)}

.btn-b{color:#e7dcff;background:rgba(13,13,13,.6)}
.btn-b:hover{background:rgba(128,0,255,.24);text-shadow:0 0 10px var(--mag)}

.hero-art{
  position:relative;
  margin:0;
  min-height:clamp(18rem,52vh,32rem);
  z-index:1;
}

.art{
  position:absolute;
  display:block;
  overflow:hidden;
  border:1px solid var(--line2);
  border-radius:10px;
  background:#121016;
  box-shadow:0 0 34px rgba(128,0,255,.4);
}

.art.a{
  width:63%;
  aspect-ratio:3/4;
  top:0;
  left:0;
  border-bottom-width:2px;
  animation:float 9s ease-in-out infinite;
}

.art.b{
  width:55%;
  aspect-ratio:1/1;
  right:0;
  bottom:0;
  border-color:rgba(128,0,255,.7);
  animation:float 11s ease-in-out infinite reverse;
}

.art::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  background:repeating-linear-gradient(180deg,rgba(255,255,255,.06) 0 1px,transparent 1px 4px);
  pointer-events:none;
}

.art-img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.95) contrast(1.05)}

/* ---- 正文 + 右栏 ---- */
.stage-body{
  display:grid;
  grid-template-columns:minmax(0,1fr) 18.5rem;
  gap:clamp(1.4rem,4vw,3.2rem);
  align-items:start;
  max-width:1240px;
  margin:0 auto;
  padding:clamp(1.8rem,4vw,3.4rem) clamp(1rem,4vw,3rem) 3.4rem;
}

.prose{min-width:0}

.prose > div{
  position:relative;
  margin:0 0 clamp(1.1rem,2.6vw,1.9rem);
  padding:clamp(1.2rem,3vw,2rem);
  background:linear-gradient(180deg,var(--panel),var(--panel2));
  border:1px solid rgba(128,0,255,.22);
  border-bottom:2px solid var(--line2);
  border-radius:10px;
  scroll-margin-top:9.5rem;
}

.prose h2{
  margin:0 0 .3rem;
  font-size:clamp(1.35rem,2.5vw,1.85rem);
  color:#fff;
  padding-left:.7rem;
  border-left:3px solid var(--pur);
  text-shadow:0 0 14px rgba(128,0,255,.6);
}

.prose h3{
  margin:1.6rem 0 .3rem;
  font-size:1.1rem;
  color:#f4ebff;
  letter-spacing:.05em;
}

hr{
  height:1px;
  border:0;
  margin:.85rem 0 1.3rem;
  background:linear-gradient(90deg,var(--mag),rgba(128,0,255,.55),transparent);
}

.prose p{margin:0 0 1rem;color:#c2b7d8}
.prose ul,.prose ol{margin:0 0 1.1rem;padding-left:1.2rem;color:#c2b7d8}
.prose li{margin:.3rem 0}
.prose strong{color:#fff}
.prose a{color:#ff86f7;text-decoration-color:rgba(255,0,255,.5)}
.prose a:hover{color:#fff;text-shadow:0 0 10px var(--mag)}
.prose img{border-radius:10px;border:1px solid var(--line);height:auto}
.prose blockquote{
  margin:0 0 1.1rem;
  padding:.2rem 0 .2rem 1rem;
  border-left:3px solid var(--mag);
  color:#ada2c6;
}
.prose code,.prose pre{font-family:"Roboto Mono",monospace;font-size:.92em}
.prose pre{
  overflow-x:auto;
  padding:.9rem;
  border-radius:10px;
  border:1px solid var(--line);
  background:#08080b;
}

/* ---- 右栏 ---- */
.rail{
  position:sticky;
  top:9rem;
  padding-left:1.1rem;
  border-left:1px solid var(--line);
}

.rail-h{
  margin:0;
  font-size:1.05rem;
  color:#fff;
  letter-spacing:.08em;
  text-shadow:0 0 12px rgba(255,0,255,.5);
}

.rail-list{list-style:none;margin:0 0 1rem;padding:0}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 .2rem;
  text-decoration:none;
  color:#cdc0e6;
  border-bottom:1px dashed rgba(128,0,255,.24);
}

.rail-list a:hover{color:#fff;text-shadow:0 0 10px var(--mag)}

.rail-top{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font:500 12px/1 "Roboto Mono",monospace;
  letter-spacing:.18em;
  text-decoration:none;
  color:#ff9bf8;
  border-bottom:1px solid var(--mag);
}

/* ---- 页脚 ---- */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.6rem 1.8rem;
  padding:1.5rem clamp(1rem,4vw,3rem);
  border-top:1px solid var(--line2);
  background:#0a0a0c;
}

.foot-mark a{
  display:inline-block;
  font:700 clamp(1.5rem,3.6vw,2.4rem)/1.1 "Exo",sans-serif;
  letter-spacing:.03em;
  color:#fff;
  text-decoration:none;
  text-shadow:0 0 18px rgba(128,0,255,.8),0 0 40px rgba(255,0,255,.35);
}

.foot-nav{margin-left:auto}

.foot-nav dl{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:0 .7rem;
  margin:0;
}

.foot-nav dt{
  font:400 11.5px/1 "Roboto Mono",monospace;
  letter-spacing:.16em;
  color:#7d7396;
}

.foot-nav dd{margin:0}

.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 .15rem;
  font-size:14px;
  text-decoration:none;
  color:#c9bce2;
  border-bottom:1px solid transparent;
}

.foot-nav a:hover{color:#fff;border-bottom-color:var(--mag)}

.foot-legal{
  flex:1 0 100%;
  text-align:center;
  font:400 12.5px/1.7 "Roboto Mono",monospace;
  letter-spacing:.12em;
  color:#6f6688;
}

/* ---- 动效 ---- */
.js .prose > div{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .55s ease,transform .55s ease;
}

.js .prose > div.in{opacity:1;transform:none}

@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

@keyframes flicker{
  0%,86%,100%{text-shadow:0 0 18px rgba(255,0,255,.55),0 0 48px rgba(128,0,255,.5)}
  88%{text-shadow:3px 0 0 rgba(255,0,255,.9),-3px 0 0 rgba(128,0,255,.85),0 0 24px rgba(255,0,255,.6)}
  92%{text-shadow:-2px 0 0 rgba(255,0,255,.85),2px 0 0 rgba(128,0,255,.9),0 0 30px rgba(128,0,255,.7)}
}

@keyframes float{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(0,-14px,0)}
}

/* ---- 移动端 ---- */
@media (max-width:900px){
  .hud{position:static}

  .hud-menu{
    gap:.15rem;
    padding:.25rem .6rem .45rem;
    overflow-x:auto;
    scrollbar-width:thin;
  }

  .clust{position:static;gap:.15rem}
  .clust-key{min-height:40px;padding:0 .4rem;font-size:11.5px;letter-spacing:.12em}
  .clust-list{
    position:static;
    display:flex;
    gap:.15rem;
    min-width:0;
    padding:0;
    background:none;
    border:0;
    border-radius:0;
    box-shadow:none;
    opacity:1;
    visibility:visible;
    transform:none;
  }
  .clust-list a{min-height:40px;padding:0 .55rem;font-size:14px}

  .hero{
    grid-template-columns:1fr;
    min-height:0;
    padding-top:1.8rem;
    background-size:34px 34px,34px 34px,100% 100%;
  }
  .hero-h1{font-size:clamp(2rem,9vw,3rem)}
  .hero-art{min-height:56vw}
  .art.a{width:62%}
  .art.b{width:52%}

  .stage-body{grid-template-columns:1fr;padding-top:1.6rem}

  .rail{
    position:static;
    padding-left:0;
    padding-top:1rem;
    border-left:0;
    border-top:1px solid var(--line);
  }

  .prose > div{scroll-margin-top:1rem;padding:1.1rem}

  .foot-nav{margin-left:0}
  .foot-legal{text-align:left}
}

@media (max-width:420px){
  body{font-size:16.5px}
  .hero-act .btn{flex:1 1 auto;justify-content:center;padding:0 1rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .js .prose > div{opacity:1;transform:none}
}

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