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

:root{
  --p:#6514ff;
  --s:#bf00ff;
  --ink:#1c1726;
  --bg:#0f0b16;
  --panel:#191327;
  --panel2:#140f20;
  --line:#332a4d;
  --fg:#f4efff;
  --dim:#c3b6de;
  --ui:'Roboto',system-ui,-apple-system,'Segoe UI','Noto Sans SC',sans-serif;
  --head:'Newsreader',Georgia,'Songti SC','Noto Serif SC',serif;
}

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

html{scroll-behavior:smooth;overflow-x:hidden}

body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--ui);
  font-size:17px;
  line-height:1.78;
  -webkit-text-size-adjust:100%;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(115deg,rgba(101,20,255,.17) 0 2px,transparent 2px 48px),
    repeating-linear-gradient(65deg,rgba(191,0,255,.10) 0 2px,transparent 2px 78px);
  animation:drift 34s linear infinite;
}

@keyframes drift{
  from{background-position:0 0,0 0}
  to{background-position:-96px -152px,78px 156px}
}

img{max-width:100%;display:block;border-radius:0}
a{color:inherit}
h1,h2,h3{text-wrap:balance}

/* ---------- 顶栏：品牌行 + 菜单行 ---------- */
.masthead{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(15,11,22,.95);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.masthead::after{
  content:"";
  display:block;
  height:3px;
  background:linear-gradient(90deg,var(--p),var(--s) 55%,transparent);
}

.brandline{
  display:flex;
  align-items:center;
  padding:12px clamp(16px,4vw,40px) 0;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  text-decoration:none;
  font-family:var(--head);
  font-size:clamp(22px,5vw,30px);
  font-weight:700;
  letter-spacing:.01em;
  color:var(--fg);
}
.brand .mark{
  width:24px;
  height:24px;
  flex:0 0 auto;
  background:linear-gradient(135deg,var(--p),var(--s));
  transform:rotate(14deg);
  transition:transform 240ms ease;
}
.brand:hover .mark{transform:rotate(-8deg) scale(1.12)}
.brandname{white-space:nowrap}

.navline{
  display:flex;
  align-items:center;
  gap:12px;
  padding:4px clamp(16px,4vw,40px) 14px;
}

.pillmenu{flex:1 1 auto;min-width:0}

.pillmenu summary{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:0 20px;
  border:2px solid var(--line);
  border-radius:999px;
  font-size:16px;
  letter-spacing:.14em;
  color:var(--dim);
  transition:border-color 200ms,color 200ms,background 200ms;
}
.pillmenu summary::-webkit-details-marker{display:none}
.pillmenu summary::before{
  content:"";
  width:13px;
  height:9px;
  background:linear-gradient(90deg,var(--p),var(--s));
  clip-path:polygon(0 0,100% 0,50% 100%);
  transition:transform 240ms ease;
}
.pillmenu[open] summary::before{transform:rotate(180deg)}
.pillmenu summary:hover,
.pillmenu summary:focus-visible{border-color:var(--s);color:var(--fg);background:rgba(191,0,255,.12)}

.pilllist{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  list-style:none;
  margin:12px 0 2px;
  padding:0;
}
.pilllist a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 18px;
  border:2px solid #3a2f57;
  border-radius:999px;
  font-size:16px;
  text-decoration:none;
  color:var(--fg);
  transition:transform 200ms ease,background 200ms ease,border-color 200ms ease;
}
.pilllist a:hover,
.pilllist a:focus-visible{
  background:linear-gradient(120deg,var(--p),var(--s));
  border-color:transparent;
  transform:translateY(-3px);
}

.contact{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  max-width:36vw;
  padding:0 16px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:14px;
  letter-spacing:.02em;
  color:var(--dim);
  border:2px dashed var(--line);
  border-radius:999px;
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  z-index:1;
  min-height:68vh;
  display:grid;
  place-items:center;
  padding:clamp(38px,7vw,88px) clamp(16px,4vw,40px);
  overflow:hidden;
  isolation:isolate;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    radial-gradient(58% 62% at 50% 0%,rgba(191,0,255,.38),transparent 72%),
    radial-gradient(52% 54% at 50% 106%,rgba(101,20,255,.46),transparent 74%);
}
.hero::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  z-index:-1;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--line),transparent);
}

.collage{position:absolute;inset:0;z-index:-1;pointer-events:none}
.shot{
  position:absolute;
  object-fit:cover;
  filter:grayscale(1) contrast(1.18);
  mix-blend-mode:luminosity;
  opacity:.6;
}
.shot.a{
  width:min(38vw,300px);
  height:min(46vh,340px);
  left:2%;
  top:7%;
  transform:rotate(-5deg);
}
.shot.b{
  width:min(32vw,240px);
  height:min(38vh,290px);
  right:2%;
  bottom:6%;
  transform:rotate(6deg);
}

.herocopy{
  position:relative;
  z-index:1;
  max-width:44rem;
  text-align:center;
  animation:rise 620ms cubic-bezier(.2,.75,.3,1) both;
}

.hero h1{
  margin:0 0 18px;
  font-family:var(--head);
  font-weight:700;
  font-size:clamp(32px,7.4vw,68px);
  line-height:1.06;
  letter-spacing:-.015em;
  color:#fff;
  text-shadow:0 12px 40px rgba(101,20,255,.55);
}

.herodesc{
  margin:0 auto;
  max-width:38ch;
  font-size:17px;
  color:#ddd2f4;
}

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

/* ---------- 主体：左侧 aside + 右侧正文 ---------- */
main{position:relative;z-index:1}

.wrap{
  display:grid;
  grid-template-columns:232px minmax(0,1fr);
  gap:clamp(26px,4vw,56px);
  max-width:1200px;
  margin:0 auto;
  padding:clamp(40px,6vw,76px) clamp(16px,4vw,40px) clamp(28px,5vw,56px);
}

.rail{
  position:sticky;
  top:148px;
  align-self:start;
}
.railtag{
  margin:0 0 14px;
  font-size:13px;
  letter-spacing:.22em;
  color:var(--s);
}
.raillist{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
  border-top:2px solid var(--line);
}
.raillist a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:4px 2px;
  border-bottom:1px solid var(--line);
  font-size:16px;
  color:var(--dim);
  text-decoration:none;
  transition:color 200ms,padding-left 200ms,border-color 200ms;
}
.raillist a:hover,
.raillist a:focus-visible{
  color:var(--fg);
  padding-left:10px;
  border-bottom-color:var(--s);
}

.sheet{min-width:0}

.prose section{
  position:relative;
  scroll-margin-top:156px;
  margin:0 0 48px;
  padding:clamp(22px,4vw,42px);
  background:linear-gradient(180deg,var(--panel),var(--panel2));
  border-left:6px solid var(--p);
  box-shadow:0 22px 48px -32px rgba(0,0,0,.95),0 12px 34px -26px rgba(101,20,255,.85);
  overflow-wrap:break-word;
}
.prose section::after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  right:0;
  height:3px;
  background:linear-gradient(90deg,var(--p),var(--s) 48%,transparent);
}
.prose section:last-child{margin-bottom:0}

.prose h2{
  margin:0 0 10px;
  font-family:var(--head);
  font-size:clamp(26px,4.6vw,38px);
  line-height:1.14;
  font-weight:700;
  color:#fff;
}
.prose h3{
  margin:32px 0 8px;
  font-family:var(--head);
  font-size:clamp(21px,3.2vw,26px);
  line-height:1.25;
  color:#fff;
}
.prose h2 + hr{
  height:5px;
  border:0;
  margin:0 0 22px;
  background:linear-gradient(90deg,var(--p),var(--s) 46%,transparent);
}
.prose h3 + hr{
  height:4px;
  border:0;
  margin:0 0 16px;
  background:linear-gradient(90deg,var(--s),transparent 70%);
}
.prose hr{
  height:5px;
  border:0;
  margin:26px 0;
  background:linear-gradient(90deg,var(--p),var(--s) 46%,transparent);
}

.prose p{margin:0 0 18px}
.prose p:last-child{margin-bottom:0}
.prose ul,.prose ol{margin:0 0 18px;padding-left:1.25em}
.prose li{margin:0 0 10px}
.prose li::marker{color:var(--s)}

.prose a{color:#dcc4ff;text-decoration:underline;text-decoration-color:var(--s);text-underline-offset:3px}
.prose a:hover{color:#fff;text-decoration-color:#fff}

.prose img{width:100%;height:auto;margin:22px 0}
.prose figure{margin:22px 0}
.prose figcaption{font-size:15px;color:var(--dim);margin-top:8px}
.prose blockquote{
  margin:22px 0;
  padding:16px 20px;
  border-left:4px solid var(--s);
  background:rgba(191,0,255,.1);
  font-size:17px;
}
.prose strong{color:#fff}

/* 列表错位入场 */
.js .prose section{opacity:0;transform:translateY(20px)}
.js .prose section.seen{
  opacity:1;
  transform:none;
  transition:opacity 460ms ease,transform 520ms cubic-bezier(.2,.75,.3,1);
}
.js .prose section.seen:nth-child(2){transition-delay:60ms}
.js .prose section.seen:nth-child(3){transition-delay:120ms}
.js .prose section.seen:nth-child(4){transition-delay:180ms}
.js .prose section.seen:nth-child(5){transition-delay:240ms}
.js .prose section.seen:nth-child(6){transition-delay:300ms}
.js .prose section.seen:nth-child(7){transition-delay:360ms}

/* ---------- 页脚 ---------- */
.foot{
  position:relative;
  z-index:1;
  margin-top:clamp(32px,6vw,64px);
  padding:clamp(46px,8vw,84px) clamp(16px,4vw,40px) 34px;
  background:linear-gradient(125deg,var(--p),var(--s));
  color:#fff;
  text-align:center;
}
.footcta{
  margin:0;
  font-family:var(--head);
  font-size:clamp(30px,7.4vw,56px);
  line-height:1.06;
  font-weight:700;
  letter-spacing:-.01em;
}
.foot small{
  display:block;
  margin-top:16px;
  font-size:15px;
  opacity:.94;
}
.foot a{
  display:inline-block;
  min-height:44px;
  padding:8px 4px;
  color:#fff;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.65);
}
.foot a:hover{border-bottom-color:#fff}

/* ---------- 窄屏 ---------- */
@media (max-width:820px){
  .wrap{
    grid-template-columns:minmax(0,1fr);
    gap:26px;
    padding-top:30px;
  }
  .rail{position:static}
  .railtag{margin-bottom:10px}
  .raillist{
    flex-direction:row;
    gap:8px;
    border-top:0;
    overflow-x:auto;
    padding:2px 0 6px;
    scrollbar-width:none;
  }
  .raillist::-webkit-scrollbar{display:none}
  .raillist li{flex:0 0 auto}
  .raillist a{
    min-height:44px;
    padding:0 14px;
    border:2px solid var(--line);
    border-radius:999px;
  }
  .raillist a:hover{padding-left:14px;border-color:var(--s)}

  .pilllist{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:6px;
    margin-top:10px;
    scrollbar-width:none;
  }
  .pilllist::-webkit-scrollbar{display:none}
  .pilllist li{flex:0 0 auto}

  .contact{max-width:32vw;font-size:13px;padding:0 12px}

  .hero{min-height:66vh}
  .shot.a{width:44vw;height:34vh;left:-4%;top:4%}
  .shot.b{width:38vw;height:28vh;right:-4%;bottom:4%}
  .prose section{margin-bottom:34px;border-left-width:5px}
}

@media (max-width:420px){
  body{font-size:16px}
  .herodesc{font-size:16px}
  .contact{display:none}
}

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

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