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

*{box-sizing:border-box}

:root{
  --red:#ff0000;
  --pink:#ff1493;
  --ink:#261717;
  --text:#fbeeee;
  --muted:#e3c9cf;
  --line:rgba(255,255,255,.16);
  --line-soft:rgba(255,255,255,.09);
  --glass:rgba(255,255,255,.065);
  --rail:252px;
  --max:1180px;
}

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

body{
  margin:0;
  padding-left:var(--rail);
  min-height:100vh;
  color:var(--text);
  font-family:'Manrope',ui-sans-serif,system-ui,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.75;
  letter-spacing:.012em;
  overflow-x:hidden;
}

body.menu-open{overflow:hidden}

p{margin:0 0 1em}
p:last-child{margin-bottom:0}

a{color:inherit;text-decoration:none}

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

h1,h2,h3{
  font-family:'Syne','Manrope',ui-sans-serif,system-ui,'PingFang SC','Microsoft YaHei',sans-serif;
  font-weight:700;
  line-height:1.22;
  letter-spacing:-.015em;
  margin:0 0 .5em;
}

:focus-visible{
  outline:2px solid var(--pink);
  outline-offset:3px;
}

/* ---------- 极光底层 ---------- */

.aurora{
  position:fixed;
  inset:-30%;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(38% 40% at 22% 26%, rgba(255,0,0,.55), rgba(255,0,0,0) 66%),
    radial-gradient(44% 42% at 76% 30%, rgba(255,20,147,.5), rgba(255,20,147,0) 68%),
    radial-gradient(52% 46% at 50% 92%, rgba(255,20,147,.3), rgba(255,20,147,0) 70%),
    radial-gradient(34% 32% at 88% 80%, rgba(255,0,0,.34), rgba(255,0,0,0) 70%),
    conic-gradient(from 210deg at 60% 60%, rgba(255,0,0,.22), rgba(255,20,147,.22), rgba(255,0,0,.22));
  background-size:180% 180%;
  filter:blur(72px) saturate(1.25);
  opacity:.9;
  animation:auroraDrift 11s ease-in-out infinite alternate;
}

@keyframes auroraDrift{
  0%{transform:translate3d(-2%,-1%,0) scale(1);background-position:0% 20%}
  100%{transform:translate3d(3%,2%,0) scale(1.14);background-position:100% 80%}
}

/* ---------- 左侧固定竖排 ---------- */

.rail{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  z-index:40;
  width:var(--rail);
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:26px 20px 22px;
  border-right:1px solid var(--line-soft);
  background:linear-gradient(180deg, rgba(32,18,15,.9), rgba(38,23,23,.6));
  backdrop-filter:blur(14px) saturate(1.15);
}

.rail-top{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  font-family:'Syne',sans-serif;
  font-weight:700;
  font-size:19px;
  letter-spacing:.04em;
  line-height:1.2;
}

.brand-logo{
  width:34px;
  height:34px;
  border-radius:4px;
  object-fit:cover;
}

.brand-mark{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:4px;
  background:linear-gradient(140deg,var(--red),var(--pink));
  color:#fff;
  font-size:18px;
  line-height:1;
}

.brand-name{
  background:linear-gradient(96deg,#fff,var(--muted));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.rail-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 16px;
  border-radius:4px;
  background:linear-gradient(120deg,var(--red),var(--pink));
  color:#fff;
  font-weight:700;
  font-size:16px;
  letter-spacing:.02em;
  box-shadow:0 10px 26px rgba(255,20,147,.28);
  transition:transform .25s ease, box-shadow .25s ease;
}

.cta:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 32px rgba(255,0,0,.36);
}

.burger{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--glass);
  color:var(--text);
  font-family:inherit;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  backdrop-filter:blur(10px);
  transition:border-color .25s ease, background .25s ease;
}

.burger:hover{border-color:rgba(255,20,147,.7);background:rgba(255,20,147,.16)}

.burger-bars,
.burger-bars::before,
.burger-bars::after{
  display:block;
  width:16px;
  height:2px;
  border-radius:2px;
  background:currentColor;
}

.burger-bars{position:relative}

.burger-bars::before,
.burger-bars::after{
  content:"";
  position:absolute;
  left:0;
}

.burger-bars::before{top:-5px}
.burger-bars::after{top:5px}

/* ---------- 全屏遮罩菜单 ---------- */

.menu{
  position:fixed;
  inset:0;
  z-index:60;
  display:grid;
  place-items:center;
  padding:84px 22px;
  overflow:auto;
  opacity:0;
  pointer-events:none;
  transform:scale(1.03);
  transition:opacity .34s ease, transform .34s ease;
  background:
    radial-gradient(60% 55% at 30% 20%, rgba(255,0,0,.42), rgba(20,10,10,.92) 70%),
    radial-gradient(55% 55% at 78% 78%, rgba(255,20,147,.4), rgba(20,10,10,.94) 72%);
  backdrop-filter:blur(20px) saturate(1.2);
}

.menu.is-open{
  opacity:1;
  pointer-events:auto;
  transform:none;
}

.menu p{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  max-width:860px;
  margin:0;
}

.menu a{
  display:inline-flex;
  align-items:center;
  min-height:52px;
  padding:14px 22px;
  border:1px solid var(--line);
  border-radius:4px;
  background:rgba(255,255,255,.07);
  font-family:'Syne',sans-serif;
  font-size:clamp(17px,2.2vw,23px);
  font-weight:600;
  letter-spacing:.01em;
  transition:border-color .22s ease, background .22s ease, transform .22s ease;
}

.menu a:hover{
  border-color:rgba(255,20,147,.8);
  background:rgba(255,20,147,.2);
  transform:translateY(-2px);
}

/* ---------- hero ---------- */

.hero{
  position:relative;
  isolation:isolate;
  min-height:70vh;
  display:flex;
  align-items:center;
  padding:clamp(88px,12vh,140px) clamp(20px,5vw,64px) clamp(44px,7vh,72px);
  overflow:hidden;
}

.ghost{
  position:absolute;
  left:-2vw;
  bottom:-1.5vw;
  z-index:-1;
  margin:0;
  font-family:'Syne',sans-serif;
  font-size:clamp(68px,17vw,210px);
  font-weight:700;
  line-height:.82;
  letter-spacing:-.04em;
  white-space:nowrap;
  background:linear-gradient(100deg,var(--red),var(--pink) 70%,#ffd7e6);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  opacity:.24;
  pointer-events:none;
}

.hero-copy{max-width:min(56ch,44vw)}

.hero h1{
  font-size:clamp(29px,4.4vw,52px);
  margin:0;
  background:linear-gradient(150deg,#fff 30%,#ffc9dd 78%,var(--pink));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero-media{
  position:absolute;
  right:clamp(16px,6vw,84px);
  top:50%;
  transform:translateY(-50%);
  width:min(36vw,400px);
  display:grid;
  z-index:-1;
}

.hero-media .shot{
  grid-area:1 / 1;
  width:100%;
  height:auto;
  aspect-ratio:3 / 4;
  object-fit:cover;
  border-radius:4px;
  border:1px solid var(--line);
  box-shadow:0 26px 60px rgba(0,0,0,.55);
}

.hero-media .shot-a{
  transform:rotate(-5deg) translate(-16px,-14px);
  opacity:.92;
}

.hero-media .shot-b{transform:rotate(4deg) translate(22px,26px)}

/* ---------- 正文骨架 ---------- */

.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 292px;
  gap:clamp(24px,4vw,52px);
  align-items:start;
  max-width:var(--max);
  margin:0 auto;
  padding:0 clamp(16px,4vw,48px);
}

.stream{min-width:0}

.prose > article{
  margin:0 0 22px;
  padding:clamp(20px,3vw,34px);
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--glass);
  backdrop-filter:blur(16px) saturate(1.15);
  box-shadow:0 18px 44px rgba(0,0,0,.24);
}

.prose > article:last-child{margin-bottom:0}

.prose h2{
  font-size:clamp(21px,2.6vw,29px);
  margin-bottom:.35em;
}

.prose h3{
  font-size:clamp(18px,2vw,22px);
  margin-top:1.4em;
}

.prose .subtitle,
.prose .subhead,
.prose .desc,
.prose .lead{
  margin:-.1em 0 1.1em;
  color:var(--muted);
  font-size:16px;
  letter-spacing:.02em;
}

.prose p{font-size:17px}

.prose ul,
.prose ol{
  margin:0 0 1.1em;
  padding-left:1.3em;
}

.prose li{margin-bottom:.45em}

.prose strong{color:#fff}

.prose a{
  color:#ffc7dd;
  border-bottom:1px solid rgba(255,20,147,.5);
}

.prose a:hover{color:#fff;border-bottom-color:#fff}

.prose img{
  border-radius:4px;
  border:1px solid var(--line);
  margin:1em 0;
}

.prose blockquote{
  margin:1.2em 0;
  padding:.2em 0 .2em 1em;
  border-left:2px solid var(--pink);
  color:var(--muted);
}

article[id]{scroll-margin-top:96px}

/* ---------- 右侧栏 ---------- */

.railside{
  position:sticky;
  top:26px;
  padding:22px 20px;
  border:1px solid var(--line);
  border-radius:4px;
  background:rgba(255,255,255,.05);
  backdrop-filter:blur(14px) saturate(1.1);
}

.railside-head{
  font-size:17px;
  letter-spacing:.14em;
  margin:0 0 14px;
  color:#fff;
}

.toc{
  list-style:none;
  margin:0;
  padding:0;
  counter-reset:toc;
}

.toc li{
  counter-increment:toc;
  border-top:1px solid var(--line-soft);
}

.toc li:first-child{border-top:0}

.toc a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:9px 0;
  font-size:16px;
  color:var(--muted);
  transition:color .2s ease, padding-left .2s ease;
}

.toc a::before{
  content:counter(toc,decimal-leading-zero);
  font-family:'Syne',sans-serif;
  font-size:12px;
  letter-spacing:.1em;
  color:rgba(255,20,147,.9);
}

.toc a:hover{color:#fff;padding-left:5px}

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

.foot{
  position:relative;
  margin-top:clamp(46px,8vw,88px);
  padding:clamp(28px,5vw,58px) 0 26px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,20,147,.1), rgba(38,23,23,.72));
}

.foot-in{
  max-width:var(--max);
  margin:0 auto;
  padding:0 clamp(16px,4vw,48px);
}

.foot-cta{
  padding:clamp(24px,4vw,44px);
  border:1px solid rgba(255,20,147,.35);
  border-radius:4px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(255,0,0,.34), rgba(255,0,0,0) 70%),
    radial-gradient(70% 110% at 100% 100%, rgba(255,20,147,.32), rgba(255,20,147,0) 72%);
  backdrop-filter:blur(14px) saturate(1.2);
}

.foot-head{
  font-size:clamp(24px,3.4vw,38px);
  margin:0 0 .3em;
}

.foot .subtitle{
  color:var(--muted);
  font-size:16px;
  margin:0 0 1.4em;
  max-width:52ch;
}

.cta-big{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:13px 28px;
  border-radius:4px;
  background:linear-gradient(120deg,var(--red),var(--pink));
  color:#fff;
  font-weight:700;
  font-size:17px;
  box-shadow:0 14px 34px rgba(255,0,0,.3);
  transition:transform .25s ease, box-shadow .25s ease;
}

.cta-big:hover{transform:translateY(-3px);box-shadow:0 20px 42px rgba(255,20,147,.4)}

.foot-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  margin-top:34px;
}

.foot-addr{
  font-style:normal;
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:16px;
  color:var(--muted);
}

.addr-name{
  font-family:'Syne',sans-serif;
  font-size:19px;
  font-weight:700;
  color:#fff;
  letter-spacing:.03em;
}

.foot-links{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:4px 20px;
  justify-content:flex-end;
}

.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 0;
  font-size:16px;
  color:var(--muted);
  border-bottom:1px solid transparent;
  transition:color .2s ease, border-color .2s ease;
}

.foot-links a:hover{color:#fff;border-bottom-color:var(--pink)}

.foot-base{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:26px;
  padding-top:16px;
  border-top:1px solid var(--line-soft);
  font-size:16px;
  color:var(--muted);
}

.foot-base p{margin:0}

.to-top a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 0;
  color:var(--muted);
}

.to-top a:hover{color:#fff}

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

.rv{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .7s ease, transform .7s ease;
}

.rv.in{
  opacity:1;
  transform:none;
}

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

@media (max-width:900px){
  body{padding-left:0;padding-top:66px}

  .rail{
    width:100%;
    height:66px;
    bottom:auto;
    flex-direction:row;
    align-items:center;
    padding:10px 14px;
    border-right:0;
    border-bottom:1px solid var(--line-soft);
  }

  .rail-top{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    width:100%;
    gap:8px;
  }

  .rail-actions{gap:8px}

  .brand{font-size:17px}

  .cta{padding:10px 12px}

  .burger{padding:10px 12px}

  .hero{
    flex-direction:column;
    align-items:flex-start;
    min-height:0;
    padding:34px 18px 30px;
  }

  .hero-copy{max-width:100%}

  .ghost{
    font-size:clamp(58px,24vw,120px);
    opacity:.2;
  }

  .hero-media{
    position:static;
    transform:none;
    width:100%;
    display:flex;
    gap:12px;
    margin-top:26px;
    z-index:0;
  }

  .hero-media .shot{
    flex:1 1 0;
    width:50%;
    transform:none;
    aspect-ratio:4 / 5;
  }

  .hero-media .shot-a{transform:rotate(-3deg)}
  .hero-media .shot-b{transform:rotate(3deg) translateY(10px)}

  .wrap{
    grid-template-columns:minmax(0,1fr);
    padding:0 16px;
  }

  .railside{
    position:static;
    order:2;
    margin-top:26px;
  }

  article[id]{scroll-margin-top:80px}

  .foot-cols{grid-template-columns:1fr;gap:18px}

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

  .foot-base{flex-wrap:wrap}
}

@media (max-width:420px){
  .brand-name{font-size:16px}
  .ghost{font-size:56px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .aurora{animation:none}
  .rv{opacity:1;transform:none;transition:none}
  .cta,.cta-big,.burger,.menu a,.toc a{transition:none}
}

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