:root{
  --ink:#26171f;
  --mag:#ff0080;
  --vio:#ff00ff;
  --paper:#f7eef4;
  --rail:264px;
  --edge:rgba(255,0,128,.30);
  --edge-2:rgba(255,255,255,.16);
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  background:#1b1016;
}

body{
  margin:0;
  min-height:100vh;
  font-family:'Space Grotesk','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.72;
  letter-spacing:.01em;
  color:var(--paper);
  background:var(--ink);
  overflow-x:hidden;
  overflow-x:clip;
}

body::before{
  content:"";
  position:fixed;
  inset:-22%;
  z-index:-2;
  background:
    radial-gradient(46% 42% at 12% 16%,rgba(255,0,128,.55),transparent 70%),
    radial-gradient(42% 46% at 84% 6%,rgba(255,0,255,.44),transparent 72%),
    radial-gradient(52% 50% at 72% 80%,rgba(122,26,196,.45),transparent 74%),
    radial-gradient(38% 38% at 22% 90%,rgba(255,0,128,.30),transparent 70%),
    conic-gradient(from 210deg at 50% 50%,#2b1226,#3a0f33,#1b0f1a,#2b1226);
  filter:blur(20px) saturate(1.15);
  animation:drift 28s ease-in-out infinite alternate;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:66px 66px;
  -webkit-mask-image:radial-gradient(78% 62% at 50% 28%,#000 20%,transparent 100%);
  mask-image:radial-gradient(78% 62% at 50% 28%,#000 20%,transparent 100%);
}

@keyframes drift{
  0%{transform:translate3d(-2%,-1%,0) scale(1.04);filter:blur(20px) hue-rotate(0deg)}
  50%{transform:translate3d(2%,2%,0) scale(1.12);filter:blur(26px) hue-rotate(16deg)}
  100%{transform:translate3d(-1%,3%,0) scale(1.06);filter:blur(20px) hue-rotate(-12deg)}
}

@keyframes spin{to{transform:rotate(360deg)}}

a{color:inherit}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ---------- 左侧竖排导航 ---------- */

.rail{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--rail);
  z-index:60;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:26px 18px 24px;
  border-right:1px solid var(--edge);
  background:linear-gradient(180deg,rgba(38,23,31,.90),rgba(38,23,31,.62));
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  overflow-y:auto;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  flex:none;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.02em;
  padding:4px 2px 10px;
}

.mark{
  width:22px;
  height:22px;
  flex:none;
  border-radius:7px;
  background:conic-gradient(from 120deg,var(--mag),var(--vio),var(--mag));
  transform:rotate(-8deg) skewX(-8deg);
  animation:spin 18s linear infinite;
}

.brand-name{font-size:19px;line-height:1.2}

.rail-nav{flex:none}
.rail-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.rail-nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 12px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.04em;
  text-decoration:none;
  border:1px solid transparent;
  border-radius:14px;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.rail-nav a:hover,
.rail-nav a:focus-visible,
.rail-nav a.is-active{
  border-color:rgba(255,0,128,.62);
  background:rgba(255,0,128,.15);
  color:#fff;
  outline:none;
}

.cta{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 16px;
  border-radius:999px;
  background:linear-gradient(100deg,var(--mag),var(--vio));
  color:#1d0b15;
  font-size:16px;
  font-weight:700;
  letter-spacing:.08em;
  text-decoration:none;
  transform:skewX(-6deg);
  transition:filter .18s ease;
}
.cta:hover{filter:brightness(1.12)}

/* ---------- 主区 ---------- */

.stage{margin-left:var(--rail)}

.hero{
  position:relative;
  min-height:70vh;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:64px 46px 96px;
  overflow:hidden;
}

.hero-copy{max-width:min(820px,100%)}

h1{
  margin:0;
  font-size:clamp(2.05rem,5vw,4.25rem);
  line-height:1.02;
  letter-spacing:-.025em;
  font-weight:700;
  background:linear-gradient(96deg,#fff 10%,#ffd0e8 44%,#ff4fb4 74%,var(--vio) 96%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-wrap:balance;
  overflow-wrap:break-word;
}

.hero-mark{
  flex:none;
  width:clamp(112px,15vw,186px);
  height:auto;
  opacity:.92;
  animation:spin 30s linear infinite;
}

.hero-cut{
  position:absolute;
  left:-4%;
  right:-4%;
  bottom:0;
  height:58px;
  background:linear-gradient(90deg,rgba(255,0,128,.85),rgba(255,0,255,.55),rgba(255,0,128,.12));
  transform:skewY(-2.4deg);
  transform-origin:bottom left;
  opacity:.75;
}

.grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:34px;
  align-items:start;
  max-width:1240px;
  margin:0 auto;
  padding:6px 46px 96px;
}

/* ---------- 正文 ---------- */

.prose{min-width:0;max-width:74ch;overflow-wrap:break-word}

.prose > article{
  position:relative;
  margin:0 0 22px;
  padding:26px 26px 30px;
  border:1px solid var(--edge);
  border-radius:28px;
  background:rgba(20,11,17,.58);
  scroll-margin-top:28px;
  overflow:hidden;
}
.prose > article::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:linear-gradient(180deg,var(--mag),var(--vio));
  opacity:.9;
}
.prose > article:last-child{margin-bottom:0}

.prose h2{
  display:inline-block;
  position:relative;
  margin:0 0 16px;
  padding-bottom:9px;
  font-size:clamp(1.35rem,2.4vw,1.9rem);
  line-height:1.22;
  letter-spacing:-.012em;
}
.prose h2::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:6px;
  background:linear-gradient(90deg,var(--mag),var(--vio));
  transform:skewX(-26deg);
}

.prose h3{
  margin:24px 0 8px;
  font-size:1.12rem;
  line-height:1.4;
  letter-spacing:.01em;
}

.prose p{margin:0 0 14px}
.prose ul,.prose ol{margin:0 0 14px;padding-left:22px}
.prose li{margin:6px 0}
.prose strong,.prose b{color:#fff}
.prose a{
  color:#ff8ecb;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.prose a:hover{color:#fff}
.prose article > :last-child{margin-bottom:0}
.prose blockquote{
  margin:0 0 14px;
  padding:12px 18px;
  border-left:4px solid var(--vio);
  background:rgba(255,0,255,.08);
  border-radius:0 16px 16px 0;
}

/* ---------- 右侧便签 ---------- */

.side{
  position:sticky;
  top:28px;
  padding:24px;
  border:1px solid var(--edge-2);
  border-radius:28px;
  background:rgba(255,255,255,.045);
  overflow:hidden;
}

.side-title{
  margin:0 0 10px;
  font-size:1.24rem;
  line-height:1.26;
  letter-spacing:-.01em;
}

.side .subtitle{
  margin:0;
  font-size:16px;
  line-height:1.66;
  color:#ecd9e6;
}

.side-blob{
  display:block;
  margin-top:22px;
  height:132px;
  border-radius:22px;
  background:conic-gradient(from 200deg,var(--mag),var(--vio),#5c1d92,var(--mag));
  filter:blur(3px);
  opacity:.82;
}

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

.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px 30px;
  padding:34px 46px 42px;
  border-top:1px solid var(--edge);
  background:rgba(15,8,13,.62);
}

.foot-brand{display:flex;flex-direction:column;gap:8px;min-width:170px}
.foot-key{margin:0;font-size:16px;color:#c6aec0}

.foot-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:4px 18px;
}
.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  text-decoration:none;
  color:#f0dfe9;
}
.foot-nav a:hover{color:#ff6fbe}

.foot-form{display:flex;gap:8px;flex-wrap:wrap}
.foot-form input{
  flex:1 1 130px;
  min-width:0;
  min-height:44px;
  padding:0 14px;
  font:inherit;
  font-size:16px;
  color:#fff;
  border:1px solid rgba(255,255,255,.24);
  border-radius:14px;
  background:rgba(255,255,255,.06);
}
.foot-form input::placeholder{color:#a98fa1}
.foot-form button{
  min-height:44px;
  padding:0 20px;
  font:inherit;
  font-size:16px;
  font-weight:700;
  color:#1d0b15;
  border:0;
  border-radius:14px;
  background:linear-gradient(100deg,var(--mag),var(--vio));
  cursor:pointer;
}
.foot-form button:hover{filter:brightness(1.12)}

.foot-legal{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-left:auto;
  text-align:right;
}
.foot-legal p{margin:0;font-size:16px;color:#c6aec0}
.foot-legal a{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  min-height:40px;
  font-size:16px;
  color:#fff;
  text-decoration:none;
}
.foot-legal a:hover{color:#ff6fbe}

/* ---------- 滚动显现 ---------- */

.reveal-on .prose > article{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .55s ease,transform .6s cubic-bezier(.2,.7,.2,1);
}
.reveal-on .prose > article.in{opacity:1;transform:none}

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

@media (max-width:940px){
  .rail{
    position:sticky;
    inset:auto;
    top:0;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:9px 14px;
    border-right:0;
    border-bottom:1px solid var(--edge);
    overflow:visible;
    z-index:70;
  }
  .brand{padding:0;gap:8px}
  .brand-name{font-size:16px;white-space:nowrap}
  .mark{width:18px;height:18px}

  .rail-nav{
    flex:1 1 auto;
    min-width:0;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
  }
  .rail-nav::-webkit-scrollbar{display:none}
  .rail-nav ul{flex-direction:row;gap:6px}
  .rail-nav a{
    white-space:nowrap;
    padding:0 12px;
    border-radius:999px;
    border-color:rgba(255,255,255,.18);
  }

  .cta{
    margin-top:0;
    flex:none;
    min-height:44px;
    padding:0 14px;
  }

  .stage{margin-left:0}

  .hero{min-height:52vh;padding:34px 18px 58px;gap:14px}
  .hero-mark{width:88px}
  .hero-cut{height:44px}

  .grid{grid-template-columns:minmax(0,1fr);gap:20px;padding:6px 16px 68px}

  .side{position:static;order:2;padding:20px;border-radius:24px}
  .side-blob{height:104px}

  .prose > article{padding:20px 18px 24px;border-radius:24px;scroll-margin-top:82px}

  .foot{padding:26px 18px 34px}
  .foot-legal{margin-left:0;text-align:left}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body::before{animation:none}
  .mark,.hero-mark{animation:none}
  .reveal-on .prose > article{opacity:1;transform:none;transition:none}
}

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