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

:root{
  --ink:#1c1726;
  --vi:#6514ff;
  --mg:#bf00ff;
  --paper:#fff;
  --mist:#f6f1ff;
  --line:#e5dbfb;
  --r:18px;
  --shadow:0 26px 56px -32px rgba(28,23,38,.6);
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  max-width:100%;
  overflow-x:hidden;
}

body{
  margin:0;
  max-width:100%;
  font-family:"Space Grotesk","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.7;
  color:var(--ink);
  background-color:#fbf8ff;
  background-image:
    radial-gradient(circle at 6% 4%,rgba(101,20,255,.14),transparent 40%),
    radial-gradient(circle at 96% 2%,rgba(191,0,255,.13),transparent 36%),
    radial-gradient(circle at 50% 118%,rgba(101,20,255,.1),transparent 52%);
  background-attachment:fixed;
  overflow-x:hidden;
}

@supports (overflow:clip){
  html,body{ overflow-x:clip }
}

@media (prefers-reduced-motion: no-preference){
  body{ animation:drift 26s ease-in-out infinite alternate }
}

@keyframes drift{
  from{ background-position:0 0,0 0,0 0 }
  to{ background-position:2% 3%,-2% 2%,1% -2% }
}

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

a{ color:var(--vi) }
a:focus-visible,button:focus-visible,input:focus-visible{ outline:3px solid var(--mg); outline-offset:2px }

h1,h2,h3,h4{
  margin:0 0 .5em;
  font-weight:700;
  line-height:1.14;
  letter-spacing:-.015em;
  overflow-wrap:break-word;
}
p{ margin:0 0 1em }
hr{ border:0 }

/* 顶部细条 */
.ticker{ background:var(--ink); color:#fff }
.ticker p{
  margin:0;
  padding:8px 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-size:16px;
  letter-spacing:.24em;
  text-indent:.24em;
}
.tick-dot{
  width:9px; height:9px; border-radius:50%;
  background:var(--mg);
  box-shadow:0 0 0 4px rgba(191,0,255,.25);
  flex:0 0 auto;
  text-indent:0;
}

/* 页头 */
.masthead{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  padding:13px clamp(14px,3vw,28px);
  background:#fff;
  border-bottom:2px solid var(--ink);
  max-width:100%;
}
.mark{
  width:46px; height:46px;
  flex:0 0 auto;
  display:grid; place-items:center;
  border-radius:14px;
  background:linear-gradient(135deg,var(--vi),var(--mg));
  color:#fff; font-weight:700; font-size:22px;
  text-decoration:none;
  box-shadow:0 12px 24px -12px rgba(101,20,255,.9);
  transition:transform .22s ease;
}
.mark:hover{ transform:rotate(-6deg) }
.mark img{ width:100%; height:100%; object-fit:cover; border-radius:14px }

.pills{ flex:1 1 auto; min-width:0; max-width:100% }
.pills p{
  display:flex; gap:8px;
  margin:0; padding:3px 0;
  max-width:100%;
  overflow-x:auto;
  scrollbar-width:none;
}
.pills p::-webkit-scrollbar{ display:none }
.pills a{
  display:inline-flex; align-items:center;
  min-height:40px;
  padding:9px 15px;
  border:2px solid var(--ink);
  border-radius:999px;
  color:var(--ink);
  font-size:16px; font-weight:600;
  text-decoration:none;
  white-space:nowrap;
  transition:background .22s ease,color .22s ease,transform .22s ease,border-color .22s ease;
}
.pills a:hover{ background:var(--vi); border-color:var(--vi); color:#fff; transform:translateY(-2px) }
.pills a:last-child{ background:var(--ink); color:#fff }
.pills a:last-child:hover{ background:var(--mg); border-color:var(--mg) }

/* 二级粘性锚点条 */
.subbar{
  position:sticky; top:0; z-index:40;
  max-width:100%;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  border-bottom:2px solid var(--ink);
}
.subbar p{
  display:flex; gap:8px;
  margin:0;
  padding:8px clamp(14px,3vw,28px);
  max-width:100%;
  overflow-x:auto;
  scrollbar-width:none;
}
.subbar p::-webkit-scrollbar{ display:none }
.subbar a{
  display:inline-flex; align-items:center;
  min-height:40px;
  padding:8px 14px;
  border-radius:999px;
  border:2px solid transparent;
  color:var(--ink);
  font-size:16px; font-weight:500;
  text-decoration:none;
  white-space:nowrap;
  transition:background .2s ease,color .2s ease;
}
.subbar a:hover{ background:var(--mist); border-color:var(--vi); color:var(--vi) }

/* 主视区 */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  align-items:center;
  gap:clamp(28px,5vw,64px);
  min-height:45vh;
  padding:clamp(30px,5.4vw,62px) clamp(18px,4vw,56px);
  overflow:hidden;
  max-width:100%;
}
.hero::before{
  content:"";
  position:absolute;
  top:-30%; right:-8%;
  width:min(58vw,760px); height:170%;
  background:linear-gradient(140deg,var(--vi),var(--mg));
  opacity:.13;
  clip-path:polygon(0 0,100% 0,84% 100%,16% 100%);
  transform:rotate(-13deg);
  pointer-events:none;
}
.hero-copy{ position:relative; z-index:1; text-align:right; min-width:0 }
.hero-copy h1{
  font-size:clamp(32px,6.2vw,62px);
  line-height:1.05;
  letter-spacing:-.03em;
  margin-bottom:.34em;
  text-wrap:balance;
}
.lede{
  font-size:18px;
  color:#4a3f5c;
  max-width:36ch;
  margin-left:auto;
  margin-bottom:0;
}

.hero-art{
  position:relative;
  z-index:1;
  margin:0;
  min-height:240px;
  min-width:0;
  display:grid;
  place-items:center;
}
.stripe{
  position:absolute;
  top:16%; left:-12%;
  width:124%; height:14px;
  background:var(--ink);
  opacity:.92;
  transform:rotate(-9deg) translateY(calc(var(--py,0px) * -.55));
}
.blob{
  position:absolute;
  left:2%; bottom:4%;
  width:min(76%,300px);
  aspect-ratio:1;
  border-radius:46% 54% 52% 48% / 52% 44% 56% 48%;
  background:
    radial-gradient(circle at 32% 26%,rgba(255,255,255,.95),rgba(255,255,255,.22) 44%,transparent 64%),
    linear-gradient(150deg,var(--vi),var(--mg));
  box-shadow:var(--shadow);
  transform:translateY(calc(var(--py,0px) * -1));
}
@media (prefers-reduced-motion: no-preference){
  .blob{ animation:morph 18s ease-in-out infinite alternate }
}
@keyframes morph{
  from{ border-radius:46% 54% 52% 48% / 52% 44% 56% 48% }
  to{ border-radius:56% 44% 42% 58% / 42% 58% 42% 58% }
}
.hero-img{
  position:relative;
  width:min(60%,240px);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  transform:translateY(calc(var(--py,0px) * -.8));
}

/* 正文区 */
.stage{
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  align-items:start;
  gap:clamp(22px,3.4vw,42px);
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(18px,4vw,40px) clamp(48px,7vw,80px);
}

.rail{
  position:sticky;
  top:92px;
  min-width:0;
  background:var(--paper);
  border-radius:var(--r);
  padding:20px 20px 12px;
  box-shadow:var(--shadow),0 0 0 1px var(--line);
}
.rail h2{ font-size:18px; letter-spacing:.06em; margin-bottom:10px }
.rail hr{
  width:46px; height:4px;
  background:linear-gradient(90deg,var(--vi),var(--mg));
  margin:0 0 12px;
  border-radius:3px;
}
.rail-list{ margin:0; min-width:0 }
.rail-list a{
  display:block;
  padding:10px 2px;
  min-height:44px;
  border-bottom:1px dashed var(--line);
  color:var(--ink);
  font-size:16px;
  text-decoration:none;
  overflow-wrap:break-word;
  transition:color .2s ease,padding-left .2s ease;
}
.rail-list a:hover{ color:var(--vi); padding-left:8px }

.content{
  background:var(--paper);
  border-radius:var(--r);
  padding:clamp(22px,3.4vw,46px);
  box-shadow:var(--shadow),0 0 0 1px var(--line);
  min-width:0;
  max-width:100%;
  overflow-x:hidden;
  overflow-wrap:break-word;
  word-break:break-word;
}
@supports (overflow:clip){
  .content{ overflow-x:clip }
}

.content div{
  padding-bottom:clamp(24px,3vw,38px);
  margin-bottom:clamp(24px,3vw,38px);
  border-bottom:2px dashed var(--line);
  scroll-margin-top:104px;
  min-width:0;
}
.content div:last-child{ border-bottom:0; margin-bottom:0; padding-bottom:0 }

.content h2{ font-size:clamp(22px,3vw,31px); letter-spacing:-.02em; margin:0 0 .5em }
.content h3{ font-size:20px; margin:1.4em 0 .45em }
.content h4{ font-size:18px; margin:1.2em 0 .4em }
.content p{ margin:0 0 1.05em }
.content ul,.content ol{ margin:0 0 1.1em; padding-left:1.3em }
.content li{ margin:.32em 0 }
.content strong{ font-weight:700 }
.content a{ text-decoration-thickness:2px; text-underline-offset:3px; overflow-wrap:break-word }
.content figure{ margin:0 0 1.2em; max-width:100% }
.content figure img{ border-radius:14px; max-width:100% }
.content blockquote{
  margin:0 0 1.2em;
  padding:14px 20px;
  border-left:6px solid var(--mg);
  background:var(--mist);
  border-radius:0 14px 14px 0;
}
.content blockquote p:last-child{ margin-bottom:0 }
.content hr{
  width:66px; height:4px;
  margin:0 0 1.1em;
  border-radius:3px;
  background:linear-gradient(90deg,var(--vi),var(--mg));
}
.content table{
  display:block;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  border-collapse:collapse;
  margin:0 0 1.2em;
  font-size:16px;
}
.content th,.content td{ border:1px solid var(--line); padding:10px 12px; text-align:left }
.content th{ background:var(--mist) }
.content pre{ overflow-x:auto; max-width:100%; padding:14px 16px; background:var(--mist); border-radius:14px }
.content code{ overflow-wrap:break-word }

/* 页脚 */
.foot{
  background:linear-gradient(120deg,#2b1156,var(--ink) 58%);
  color:#fff;
  text-align:center;
  padding:clamp(32px,5vw,54px) clamp(18px,4vw,40px) 26px;
  max-width:100%;
}
.foot-sub{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  max-width:430px;
  margin:0 auto 26px;
}
.foot-mail{
  flex:1 1 210px;
  min-width:0;
  min-height:48px;
  padding:0 16px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.36);
  background:rgba(255,255,255,.08);
  color:#fff;
  font:inherit;
  font-size:16px;
}
.foot-mail::placeholder{ color:rgba(255,255,255,.62) }
.foot-go{
  min-height:48px;
  padding:0 26px;
  border:0;
  border-radius:999px;
  cursor:pointer;
  background:linear-gradient(120deg,var(--vi),var(--mg));
  color:#fff;
  font:inherit;
  font-weight:700;
  font-size:16px;
  transition:transform .2s ease,filter .2s ease;
}
.foot-go:hover{ transform:translateY(-2px); filter:brightness(1.12) }
.foot-go:disabled{ opacity:.75; cursor:default; transform:none }
.foot-sig{ margin:0 0 6px; font-size:16px; letter-spacing:.02em; overflow-wrap:break-word }
.foot small{ font-size:16px }
.foot small a{
  display:inline-block;
  padding:8px 4px;
  color:#fff;
  text-decoration:none;
  border-bottom:2px solid rgba(255,255,255,.5);
}

/* 滚动浮现 */
.js-anim .reveal{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .55s ease,transform .55s cubic-bezier(.2,.7,.3,1);
}
.js-anim .reveal.in{ opacity:1; transform:none }

/* 移动端 */
@media (max-width:820px){
  .hero{
    grid-template-columns:minmax(0,1fr);
    min-height:0;
    gap:24px;
    padding-top:26px;
    padding-bottom:34px;
  }
  .hero-copy{ order:1; text-align:left }
  .hero-art{ order:2; min-height:180px }
  .lede{ margin-left:0 }
  .stage{ grid-template-columns:minmax(0,1fr); gap:20px }
  .rail{ position:static; padding:16px 16px 10px }
  .rail hr{ width:36px }
  .rail-list{ display:flex; gap:8px; overflow-x:auto; padding-bottom:6px; scrollbar-width:none }
  .rail-list::-webkit-scrollbar{ display:none }
  .rail-list a{
    border:2px solid var(--line);
    border-radius:999px;
    padding:9px 14px;
    min-height:44px;
    white-space:nowrap;
    display:inline-flex;
    align-items:center;
  }
  .rail-list a:hover{ padding-left:14px }
}

@media (max-width:720px){
  .masthead{ gap:11px; padding:10px 14px }
  .pills{ flex:1 1 100% }
  .subbar p{ padding:7px 14px }
}

@media (max-width:480px){
  .hero{ padding-left:14px; padding-right:14px }
  .stage{ padding-left:14px; padding-right:14px }
  .content{ padding:18px 15px }
  .content table{ font-size:15px }
  .content th,.content td{ padding:8px 10px }
  .foot-sub{ flex-direction:column; align-items:stretch }
  .foot-mail{ flex:1 1 auto; width:100% }
  .foot-go{ width:100% }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto }
  body{ animation:none }
  .blob{ animation:none }
  .js-anim .reveal{ opacity:1; transform:none; transition:none }
}

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