@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{
  --v:#6514ff;
  --m:#bf00ff;
  --ink:#1c1726;
  --ink2:#120e1b;
  --txt:#f3eeff;
  --dim:#b9aee0;
  --line:rgba(255,255,255,.14);
  --glass:rgba(255,255,255,.07);
  --pad:clamp(16px,4vw,44px);
}

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

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

body{
  margin:0;
  font-family:"DM Sans","Nunito",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.7;
  color:var(--txt);
  background:
    radial-gradient(1100px 620px at 88% -12%,rgba(101,20,255,.42),transparent 68%),
    radial-gradient(760px 520px at -10% 32%,rgba(191,0,255,.24),transparent 70%),
    var(--ink);
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:-48px;
  z-index:0;
  pointer-events:none;
  opacity:.38;
  background-image:radial-gradient(circle,rgba(191,0,255,.55) 1px,transparent 1.5px);
  background-size:26px 26px;
  animation:drift 30s linear infinite;
}

@keyframes drift{
  from{background-position:0 0}
  to{background-position:260px 260px}
}

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

/* ---------- 顶部 ---------- */

.top{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(18,14,27,.86);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line);
}

.bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px var(--pad) 8px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  text-decoration:none;
  color:var(--txt);
  font-family:"Nunito","DM Sans",sans-serif;
  font-weight:900;
  font-size:26px;
  letter-spacing:.01em;
  line-height:1;
}

.brand:hover .brand-txt{color:#dcc6ff}

.mark{
  width:40px;
  height:40px;
  object-fit:contain;
  display:block;
}

.cta-top,.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:11px 22px;
  font-family:"Nunito","DM Sans",sans-serif;
  font-weight:800;
  font-size:17px;
  color:#fff;
  text-decoration:none;
  background:linear-gradient(100deg,var(--v),var(--m));
  border:1px solid rgba(255,255,255,.28);
  border-radius:0;
  box-shadow:0 6px 0 rgba(0,0,0,.35);
  transition:transform .22s ease,box-shadow .22s ease,filter .22s ease;
}

.cta-top:hover,.btn:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 30px rgba(191,0,255,.5);
  filter:saturate(1.25) brightness(1.06);
}

.cta-top:active,.btn:active{transform:translateY(0);box-shadow:0 3px 0 rgba(0,0,0,.4)}

.bar2{padding:0 var(--pad) 12px}

.dd{position:relative;display:inline-block;width:100%}

.dd > summary{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:46px;
  padding:10px 22px;
  font-weight:800;
  font-size:16px;
  letter-spacing:.14em;
  color:var(--txt);
  background:var(--glass);
  border:1px solid var(--line);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  transition:background .22s ease,color .22s ease,border-color .22s ease;
}

.dd > summary::-webkit-details-marker{display:none}

.dd > summary::after{
  content:"";
  width:8px;
  height:8px;
  border-right:2px solid var(--m);
  border-bottom:2px solid var(--m);
  transform:rotate(45deg) translateY(-2px);
  transition:transform .22s ease,border-color .22s ease;
}

.dd > summary:hover{border-color:rgba(191,0,255,.6);color:#fff}

.dd[open] > summary{
  background:linear-gradient(100deg,var(--v),var(--m));
  border-color:rgba(255,255,255,.4);
  color:#fff;
}

.dd[open] > summary::after{
  border-color:#fff;
  transform:rotate(-135deg) translateY(-2px);
}

.dd-menu{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  z-index:60;
  width:100%;
  min-width:min(300px,86vw);
  margin:0;
  padding:10px;
  list-style:none;
  display:grid;
  gap:2px;
  background:rgba(24,18,36,.97);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  border:1px solid var(--line);
  box-shadow:0 26px 60px rgba(0,0,0,.55);
}

.dd-menu li{animation:rise .28s both}

.dd-menu li:nth-child(2){animation-delay:.03s}
.dd-menu li:nth-child(3){animation-delay:.06s}
.dd-menu li:nth-child(4){animation-delay:.09s}
.dd-menu li:nth-child(5){animation-delay:.12s}
.dd-menu li:nth-child(6){animation-delay:.15s}
.dd-menu li:nth-child(7){animation-delay:.18s}

.dd-menu a{
  display:flex;
  align-items:center;
  min-height:46px;
  padding:9px 14px;
  color:var(--txt);
  text-decoration:none;
  font-weight:700;
  border-left:3px solid transparent;
  transition:background .2s ease,border-color .2s ease,padding-left .2s ease,color .2s ease;
}

.dd-menu a:hover{
  background:rgba(191,0,255,.18);
  border-left-color:var(--m);
  padding-left:22px;
  color:#fff;
}

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

/* ---------- 主体 ---------- */

main{
  position:relative;
  z-index:1;
  display:block;
}

.hero{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:clamp(24px,5vw,64px);
  min-height:70vh;
  padding:clamp(28px,6vw,72px) var(--pad);
  border-bottom:1px solid var(--line);
}

.hero-art{
  position:relative;
  margin:0;
  height:clamp(200px,36vh,360px);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.22);
  background:linear-gradient(135deg,rgba(101,20,255,.62),rgba(191,0,255,.28) 62%,rgba(28,23,38,.9));
}

.hero-art::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:3;
  background:linear-gradient(200deg,transparent 45%,rgba(18,14,27,.55));
  pointer-events:none;
}

.art-img{
  position:relative;
  z-index:2;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:saturate(1.15) contrast(1.05);
}

.blob{
  position:absolute;
  border-radius:50%;
  filter:blur(2px);
  opacity:.85;
}

.b1{
  width:180px;height:180px;
  left:-40px;top:-30px;
  background:radial-gradient(circle at 35% 35%,rgba(191,0,255,.95),rgba(101,20,255,.1) 70%);
  animation:float 9s ease-in-out infinite;
}

.b2{
  width:120px;height:120px;
  right:12%;bottom:-36px;
  background:radial-gradient(circle at 40% 40%,rgba(255,255,255,.55),rgba(191,0,255,.08) 70%);
  animation:float 12s ease-in-out infinite reverse;
}

.b3{
  width:70px;height:70px;
  right:8%;top:14%;
  border:2px solid rgba(255,255,255,.5);
  background:transparent;
  animation:float 7s ease-in-out infinite;
}

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

.hero-copy{text-align:right}

.hero-copy h1{
  margin:0 0 18px;
  font-family:"Nunito","DM Sans",sans-serif;
  font-weight:900;
  font-size:clamp(36px,6.4vw,68px);
  line-height:1.04;
  letter-spacing:-.02em;
  background:linear-gradient(104deg,#fff 8%,#e2d2ff 48%,var(--m) 96%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.lede{
  margin:0 0 26px auto;
  max-width:44ch;
  font-size:18px;
  color:var(--dim);
}

.btn.big{font-size:19px;padding:14px 34px;min-height:54px}

/* ---------- 正文 + 左侧栏 ---------- */

.flow{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,250px) minmax(0,1fr);
  gap:clamp(24px,5vw,64px);
  align-items:start;
  padding:clamp(32px,6vw,80px) var(--pad) clamp(40px,7vw,88px);
}

.rail{
  position:sticky;
  top:150px;
  padding:20px 18px;
  background:var(--glass);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  border:1px solid var(--line);
}

.rail h2{
  margin:0 0 12px;
  font-family:"Nunito","DM Sans",sans-serif;
  font-size:18px;
  font-weight:900;
  letter-spacing:.18em;
  color:#fff;
}

.rail hr{
  height:3px;
  width:44px;
  border:0;
  margin:0 0 16px;
  background:linear-gradient(90deg,var(--v),var(--m));
}

.rail-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:2px;
}

.rail-nav li{animation:rise .3s both}

.rail-nav li:nth-child(2){animation-delay:.04s}
.rail-nav li:nth-child(3){animation-delay:.08s}
.rail-nav li:nth-child(4){animation-delay:.12s}
.rail-nav li:nth-child(5){animation-delay:.16s}
.rail-nav li:nth-child(6){animation-delay:.2s}
.rail-nav li:nth-child(7){animation-delay:.24s}

.rail-nav a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:6px 10px;
  color:var(--dim);
  text-decoration:none;
  font-size:16px;
  font-weight:600;
  border-left:2px solid rgba(255,255,255,.16);
  transition:color .2s ease,border-color .2s ease,background .2s ease;
}

.rail-nav a:hover{
  color:#fff;
  border-left-color:var(--m);
  background:rgba(191,0,255,.14);
}

.prose{min-width:0}

.prose div{
  scroll-margin-top:160px;
  padding-bottom:clamp(30px,5vw,56px);
  margin-bottom:clamp(30px,5vw,56px);
  border-bottom:1px dashed rgba(255,255,255,.16);
}

.prose div:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}

.prose h2{
  margin:0 0 16px;
  font-family:"Nunito","DM Sans",sans-serif;
  font-size:clamp(26px,3.8vw,40px);
  font-weight:900;
  line-height:1.14;
  letter-spacing:-.01em;
  color:#fff;
}

.prose h3{
  margin:30px 0 12px;
  font-size:clamp(20px,2.4vw,24px);
  font-weight:800;
  line-height:1.3;
  color:#f0e8ff;
}

.prose h2 + hr,
.prose h3 + hr{
  height:4px;
  width:clamp(64px,14vw,116px);
  border:0;
  margin:0 0 24px;
  background:linear-gradient(90deg,var(--v),var(--m));
}

.prose p{margin:0 0 16px;color:#ded6f4}

.prose a{color:#dcc6ff;text-decoration:underline;text-underline-offset:3px}
.prose a:hover{color:#fff}

.prose ul,.prose ol{margin:0 0 18px;padding-left:24px;color:#ded6f4}
.prose li{margin-bottom:9px}
.prose li::marker{color:var(--m);font-weight:800}

.prose strong{color:#fff}

.prose blockquote{
  margin:24px 0;
  padding:16px 20px;
  border-left:4px solid var(--m);
  background:rgba(101,20,255,.16);
  color:#f0e8ff;
}

.prose blockquote p:last-child{margin-bottom:0}

.prose figure{
  margin:24px 0;
  padding:0;
  border:1px solid var(--line);
  background:var(--glass);
}

.prose figure img{display:block;width:100%;height:auto}

.prose figcaption{
  padding:10px 14px;
  font-size:16px;
  color:var(--dim);
  border-top:1px solid var(--line);
}

.prose table{
  width:100%;
  border-collapse:collapse;
  margin:20px 0;
  font-size:16px;
}

.prose th,.prose td{
  border:1px solid var(--line);
  padding:10px 12px;
  text-align:left;
  vertical-align:top;
}

.prose th{background:rgba(191,0,255,.16);color:#fff}

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

footer{
  position:relative;
  z-index:1;
  padding:clamp(32px,6vw,64px) var(--pad) 26px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(101,20,255,.22),rgba(18,14,27,0) 62%),var(--ink2);
}

.foot-cta{
  display:grid;
  justify-items:start;
  margin-bottom:clamp(26px,5vw,46px);
  padding:clamp(24px,5vw,46px);
  border:1px solid rgba(255,255,255,.2);
  background:linear-gradient(120deg,rgba(191,0,255,.26),rgba(101,20,255,.12));
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}

.foot-cta h2{
  margin:0 0 14px;
  font-family:"Nunito","DM Sans",sans-serif;
  font-size:clamp(26px,5vw,46px);
  font-weight:900;
  line-height:1.1;
  color:#fff;
}

.foot-cta hr{
  height:4px;
  width:86px;
  border:0;
  margin:0 0 22px;
  background:linear-gradient(90deg,var(--v),var(--m));
}

.foot-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 20px;
  font-size:16px;
  color:var(--dim);
}

footer address{
  font-style:normal;
  font-family:"Nunito","DM Sans",sans-serif;
  font-weight:900;
  font-size:20px;
  color:#fff;
}

.foot-links{
  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:42px;
  color:var(--dim);
  text-decoration:none;
  transition:color .2s ease;
}

.foot-links a:hover{color:#fff}

.copy{margin:0}

/* ---------- 窄屏 ---------- */

@media (max-width:900px){
  .hero{
    grid-template-columns:1fr;
    min-height:0;
    gap:18px;
    padding-top:18px;
  }

  .hero-art{order:-1;height:140px}

  .hero-copy{text-align:left}

  .lede{margin-left:0;font-size:17px}

  .flow{
    grid-template-columns:1fr;
    gap:24px;
  }

  .rail{position:static}

  .rail-nav ul{grid-template-columns:1fr 1fr;gap:2px 8px}

  .dd-menu{
    position:static;
    width:100%;
    min-width:0;
    margin-top:10px;
    box-shadow:none;
  }

  .prose div{scroll-margin-top:170px}

  .foot-row{justify-content:flex-start}
}

@media (max-width:480px){
  .brand{font-size:22px}
  .cta-top{padding:11px 16px;font-size:16px}
  .rail-nav ul{grid-template-columns:1fr}
}

@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}
