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

:root{
  --ink:#1c1726;
  --ink-2:#221b30;
  --ink-3:#150f1d;
  --p:#6514ff;
  --a:#bf00ff;
  --fg:#f4effc;
  --muted:#b6a8ce;
  --line:#382c4f;
  --pad:clamp(16px,4vw,40px);
}

*{box-sizing:border-box}

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

body{
  margin:0;
  background:var(--ink);
  color:var(--fg);
  font-family:"Space Grotesk",-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.75;
  overflow-x:hidden;
  letter-spacing:.01em;
}

body::before{
  content:"";
  position:fixed;
  inset:-25%;
  z-index:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(45deg,rgba(101,20,255,.13) 0 2px,transparent 2px 30px),
    repeating-linear-gradient(-45deg,rgba(191,0,255,.09) 0 2px,transparent 2px 48px);
  animation:drift 46s linear infinite;
}

@keyframes drift{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(-90px,90px,0)}
}

.topbar,
main,
footer{position:relative;z-index:1}

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

a{color:var(--a)}

.skip{
  position:absolute;
  left:-9999px;
  top:0;
  padding:10px 16px;
  background:var(--p);
  color:#fff;
  text-decoration:none;
  z-index:60;
}
.skip:focus{left:8px;top:8px}

/* 顶栏：品牌行 + 菜单行 */
.topbar{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(21,15,29,.94);
  border-bottom:2px solid var(--p);
  box-shadow:0 22px 44px -34px #000;
}

.brandrow{
  display:flex;
  align-items:center;
  padding:8px var(--pad) 6px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  text-decoration:none;
  color:var(--fg);
}

.brand .mark{
  width:32px;
  height:32px;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 0 8px rgba(191,0,255,.65));
}

.brandname{
  font-size:clamp(19px,2.4vw,24px);
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  line-height:1.2;
}

.brand:hover .brandname{color:var(--a)}

.menu{
  border-top:1px solid var(--line);
}

.menu-list{
  list-style:none;
  display:flex;
  gap:2px;
  margin:0;
  padding:0 calc(var(--pad) - 12px);
  overflow-x:auto;
  scrollbar-width:none;
}
.menu-list::-webkit-scrollbar{display:none}

.menu-list li{flex:0 0 auto}

.menu-list a{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:0 12px;
  font-size:16px;
  color:var(--muted);
  text-decoration:none;
  border-bottom:3px solid transparent;
  transition:color .22s ease,background-color .22s ease,border-color .22s ease;
}

.menu-list a::before{
  content:"";
  width:8px;
  height:8px;
  flex:0 0 auto;
  background:var(--p);
  transform:rotate(45deg);
  transition:background-color .22s ease,transform .22s ease;
}

.menu-list a:hover,
.menu-list a:focus-visible{
  color:#fff;
  background:rgba(191,0,255,.14);
  border-color:var(--a);
}
.menu-list a:hover::before{background:var(--a);transform:rotate(135deg)}

.num{
  font-size:12px;
  font-weight:600;
  letter-spacing:.14em;
  color:var(--a);
}

/* 主体：左栏 + 右正文 */
main{
  display:grid;
  grid-template-columns:248px minmax(0,1fr);
  gap:clamp(24px,4vw,56px);
  max-width:1200px;
  margin:0 auto;
  padding:40px var(--pad) 72px;
}

.rail{
  position:sticky;
  top:148px;
  align-self:start;
  border-left:3px solid var(--p);
  padding-left:18px;
}

.rail-h{
  margin:0;
  font-size:18px;
  font-weight:700;
  letter-spacing:.1em;
}

.subtitle{
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}
.rail .subtitle{margin:4px 0 14px}

.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  border-top:1px solid var(--line);
}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:4px 0 4px 12px;
  font-size:16px;
  color:var(--muted);
  text-decoration:none;
  border-bottom:1px solid var(--line);
  position:relative;
  transition:color .2s ease,padding-left .2s ease;
}
.rail-list a::before{
  content:"";
  position:absolute;
  left:0;
  width:4px;
  height:4px;
  background:var(--a);
}
.rail-list a:hover{color:#fff;padding-left:18px}

article{min-width:0}

/* 首屏 */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  align-items:center;
  gap:clamp(20px,4vw,48px);
  min-height:45vh;
  padding:8px 0 clamp(34px,5vw,52px);
  border-bottom:1px solid var(--line);
}

.hero::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-1px;
  width:min(52%,320px);
  height:12px;
  background:linear-gradient(90deg,var(--p),var(--a));
  clip-path:polygon(0 0,100% 100%,0 100%);
}

.hero-copy{min-width:0}

.hero h1{
  margin:0 0 14px;
  font-size:clamp(2.2rem,5.6vw,3.9rem);
  line-height:1.1;
  font-weight:700;
  letter-spacing:-.01em;
  text-transform:uppercase;
  background:linear-gradient(100deg,#fff 12%,var(--a) 62%,var(--p) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:var(--fg);
}

.hero-sub{
  margin:0;
  max-width:46ch;
  font-size:17px;
}

.hero-art{
  margin:0;
  width:100%;
  min-height:180px;
  aspect-ratio:4/3;
  box-shadow:0 26px 54px -30px rgba(0,0,0,.95);
  overflow:hidden;
  background:var(--ink-2);
}

.hero-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-plate{
  position:relative;
  background:
    radial-gradient(circle at 72% 26%,rgba(101,20,255,.85),transparent 62%),
    radial-gradient(circle at 24% 78%,rgba(191,0,255,.7),transparent 64%),
    var(--ink-2);
  border:2px solid var(--line);
}
.hero-plate .slash{
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,transparent 46%,rgba(255,255,255,.22) 46.5%,transparent 47%);
}
.hero-plate .slash-b{transform:rotate(180deg)}

/* 正文块 */
.body{
  display:grid;
  gap:clamp(28px,4vw,48px);
  margin-top:clamp(30px,4vw,52px);
  max-width:74ch;
}

.body > div{
  scroll-margin-top:150px;
  padding:clamp(20px,3vw,36px);
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.014));
  border-left:4px solid var(--a);
  box-shadow:0 20px 44px -28px rgba(0,0,0,.95);
  transition:box-shadow .24s ease,transform .24s ease,border-color .24s ease;
}

.body > div:hover{
  transform:translateY(-3px);
  border-color:var(--p);
  box-shadow:0 28px 54px -26px rgba(101,20,255,.55);
}

.body h2{
  margin:0 0 14px;
  font-size:clamp(1.45rem,2.9vw,1.95rem);
  line-height:1.22;
  letter-spacing:.01em;
}

.body h3{
  margin:24px 0 10px;
  font-size:19px;
  line-height:1.35;
}

.body p{margin:0 0 14px}
.body p:last-child{margin-bottom:0}
.body ul,.body ol{margin:0 0 14px;padding-left:22px}
.body li{margin:6px 0}
.body blockquote{
  margin:18px 0;
  padding:2px 0 2px 16px;
  border-left:3px solid var(--p);
  color:var(--muted);
}
.body img{
  display:block;
  margin:18px 0;
  box-shadow:0 20px 40px -28px #000;
}
.body a{
  color:var(--a);
  text-underline-offset:3px;
  transition:color .2s ease;
}
.body a:hover{color:#fff}
.body strong{color:#fff}

/* 页脚 */
footer{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:6px 28px;
  padding:18px var(--pad);
  background:var(--ink-3);
  border-top:2px solid var(--a);
}

footer div{margin:0}
footer p{
  margin:0;
  font-size:16px;
  color:var(--muted);
  letter-spacing:.06em;
}

.foot-links ol{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:2px 16px;
  margin:0;
  padding:0;
}

.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  color:var(--muted);
  text-decoration:none;
  transition:color .2s ease;
}
.foot-links a:hover{color:var(--a)}

@media (max-width:900px){
  .topbar{position:static}
  main{
    grid-template-columns:minmax(0,1fr);
    gap:26px;
    padding-top:26px;
  }
  .rail{
    position:static;
    border-left:0;
    border-top:3px solid var(--p);
    padding:14px 0 0;
  }
  .rail-list{display:flex;flex-wrap:wrap;gap:2px 12px;border-top:0}
  .rail-list a{min-height:40px;padding:4px 10px 4px 10px;border-bottom:0;border:1px solid var(--line)}
  .rail-list a::before{position:static;width:6px;height:6px;order:2;margin-left:8px}
  .rail-list a:hover{padding-left:10px;border-color:var(--a)}
  .hero{min-height:0;padding-bottom:36px}
  .body > div{scroll-margin-top:20px}
}

@media (max-width:640px){
  body{font-size:17px}
  .hero{
    grid-template-columns:minmax(0,1fr);
    gap:24px;
    padding-top:4px;
  }
  .hero-art{aspect-ratio:16/10;min-height:0}
  .hero::after{width:60%}
  .brandname{letter-spacing:.1em}
  footer{justify-content:flex-start}
  .foot-links{width:100%}
  .body > div{padding:18px 16px}
}

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

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