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

:root{
  --red:#ff0000;
  --pink:#ff1493;
  --ink:#261717;
  --cream:#fff4ef;
  --dim:rgba(255,244,239,.7);
  --line:rgba(255,244,239,.14);
  --r:28px;
}

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

html{
  background:var(--ink);
  scroll-behavior:smooth;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:"Plus Jakarta Sans",system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--cream);
  background:transparent;
}

body::before{
  content:"";
  position:fixed;
  inset:-25% -25% -25% -25%;
  z-index:0;
  pointer-events:none;
  background-image:
    radial-gradient(38% 34% at 20% 24%, rgba(255,0,0,.62), rgba(255,0,0,0) 70%),
    radial-gradient(42% 38% at 82% 18%, rgba(255,20,147,.55), rgba(255,20,147,0) 72%),
    radial-gradient(46% 40% at 46% 92%, rgba(255,120,70,.34), rgba(255,120,70,0) 72%);
  background-size:170% 170%;
  filter:saturate(1.2);
  animation:aurora 10s ease-in-out infinite alternate;
}

@keyframes aurora{
  0%{background-position:0% 0%,100% 12%,50% 100%;transform:scale(1)}
  100%{background-position:22% 16%,76% 4%,42% 84%;transform:scale(1.09)}
}

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

a{color:inherit}

/* ============ 顶栏：品牌行 / 菜单行 ============ */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(38,23,23,.88);
  border-bottom:1px solid var(--line);
}
.navtoggle{
  position:absolute;
  width:1px;height:1px;
  opacity:0;
  pointer-events:none;
}
.bar-top{padding:15px clamp(16px,4vw,44px) 4px}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  text-decoration:none;
  color:#fff;
  font-weight:700;
  font-size:19px;
  letter-spacing:.16em;
}
.brand .logo{border-radius:9px;display:block}
.brand-word{
  background:linear-gradient(100deg,#ff6b6b,var(--pink) 62%,#ffd8c8);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.bar-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 clamp(16px,4vw,44px) 13px;
}
.burger{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:8px 20px;
  border-radius:999px;
  border:1px solid rgba(255,244,239,.34);
  background:rgba(255,244,239,.07);
  color:#fff;
  font-size:16px;
  line-height:1;
  cursor:pointer;
  user-select:none;
}
.burger-lines{
  display:block;
  position:relative;
  width:18px;height:12px;
}
.burger-lines::before,
.burger-lines::after{
  content:"";
  position:absolute;
  left:0;
  width:100%;height:2px;
  border-radius:2px;
  background:currentColor;
  transition:transform .3s ease;
}
.burger-lines::before{top:1px}
.burger-lines::after{bottom:1px}
.cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 22px;
  border-radius:999px;
  background:linear-gradient(100deg,var(--red),var(--pink));
  color:#fff;
  font-weight:600;
  font-size:16px;
  text-decoration:none;
  box-shadow:0 8px 26px rgba(255,20,147,.28);
}

.navtoggle:checked ~ .bar-bottom .burger-lines::before{transform:translateY(5px) rotate(45deg)}
.navtoggle:checked ~ .bar-bottom .burger-lines::after{transform:translateY(-5px) rotate(-45deg)}

/* ============ 全屏菜单 ============ */
.menu{
  position:fixed;
  inset:0;
  z-index:60;
  padding:104px clamp(20px,6vw,64px) 48px;
  background:rgba(38,23,23,.95);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  opacity:0;
  visibility:hidden;
  transform:translateY(-14px);
  transition:opacity .35s ease,transform .35s ease,visibility .35s;
  overflow-y:auto;
}
.navtoggle:checked ~ .menu{
  opacity:1;
  visibility:visible;
  transform:none;
}
.menu ul{
  list-style:none;
  margin:0 auto;
  padding:0;
  max-width:760px;
  display:grid;
  gap:4px;
}
.menu li{opacity:0;transform:translateX(-14px)}
.navtoggle:checked ~ .menu li{animation:slidein .45s ease forwards}
.menu li:nth-child(1){animation-delay:.05s}
.menu li:nth-child(2){animation-delay:.1s}
.menu li:nth-child(3){animation-delay:.15s}
.menu li:nth-child(4){animation-delay:.2s}
.menu li:nth-child(5){animation-delay:.25s}
.menu li:nth-child(6){animation-delay:.3s}
.menu li:nth-child(7){animation-delay:.35s}
@keyframes slidein{to{opacity:1;transform:none}}
.menu a{
  display:flex;
  align-items:center;
  min-height:56px;
  padding:14px 4px;
  font-size:clamp(20px,4.6vw,28px);
  font-weight:600;
  letter-spacing:-.01em;
  text-decoration:none;
  color:var(--cream);
  border-bottom:1px solid var(--line);
}
.menu a:hover{color:#fff;background:linear-gradient(90deg,rgba(255,20,147,.22),transparent)}

body:has(.navtoggle:checked){overflow:hidden}

/* ============ 主区 ============ */
main{position:relative;z-index:1}

.hero{
  min-height:70vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:clamp(48px,12vw,96px) clamp(18px,5vw,44px);
}
.hero h1{
  margin:0;
  max-width:14em;
  font-size:clamp(36px,8.4vw,84px);
  font-weight:700;
  line-height:1.1;
  letter-spacing:-.02em;
  background:linear-gradient(108deg,#ff5a5a,var(--pink) 46%,#ffdccb);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 8px 34px rgba(255,20,147,.32));
}
.hero-desc{
  margin:26px 0 0;
  max-width:44ch;
  font-size:clamp(16px,2.2vw,19px);
  line-height:1.7;
  color:var(--dim);
}

.wrap{
  position:relative;
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:264px minmax(0,1fr);
  gap:clamp(22px,4vw,54px);
  align-items:start;
  padding:0 clamp(16px,4vw,44px) clamp(56px,8vw,96px);
}

/* 左侧栏 */
.rail{
  position:sticky;
  top:126px;
  padding:24px 20px 20px;
  border-radius:var(--r);
  background:rgba(255,244,239,.07);
}
.rail-title{
  margin:0;
  font-size:18px;
  font-weight:700;
  letter-spacing:.1em;
}
.subtitle{
  margin:8px 0 0;
  font-size:16px;
  line-height:1.6;
  color:rgba(255,244,239,.6);
}
.rail-list{
  list-style:none;
  margin:18px 0 0;
  padding:0;
  display:grid;
  gap:2px;
}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:8px 10px;
  border-radius:14px;
  font-size:16px;
  text-decoration:none;
  color:rgba(255,244,239,.8);
}
.rail-list a:hover{
  background:linear-gradient(90deg,rgba(255,0,0,.34),rgba(255,20,147,.18));
  color:#fff;
}

/* 正文 */
.prose{min-width:0}
.prose > div{
  border-radius:var(--r);
  background:rgba(255,244,239,.055);
  padding:clamp(20px,4.4vw,46px);
  margin:0 0 clamp(16px,3vw,30px);
  animation:rise .7s ease both;
}
.prose > div:nth-child(1){animation-delay:.02s}
.prose > div:nth-child(2){animation-delay:.08s}
.prose > div:nth-child(3){animation-delay:.14s}
.prose > div:nth-child(4){animation-delay:.2s}
.prose > div:nth-child(5){animation-delay:.26s}
.prose > div:nth-child(6){animation-delay:.32s}
.prose > div:nth-child(7){animation-delay:.38s}
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

.prose h2{
  margin:0 0 14px;
  font-size:clamp(22px,4vw,32px);
  line-height:1.25;
  letter-spacing:-.01em;
  background:linear-gradient(100deg,#fff4ef,#ffb9d6);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.prose h3{
  margin:26px 0 10px;
  font-size:clamp(18px,2.6vw,22px);
  line-height:1.35;
  color:#ffd9e6;
}
.prose p{margin:0 0 16px}
.prose p:last-child{margin-bottom:0}
.prose ul,.prose ol{margin:0 0 16px;padding-left:1.35em}
.prose li{margin:0 0 8px}
.prose a{color:#ff9ecb;text-underline-offset:3px}
.prose a:hover{color:#fff}
.prose figure{margin:0 0 20px}
.prose figure img{border-radius:22px;display:block}
.prose figcaption{margin-top:8px;font-size:15px;color:rgba(255,244,239,.58)}
.prose blockquote{
  margin:20px 0;
  padding:16px 22px;
  border-radius:22px;
  background:linear-gradient(120deg,rgba(255,0,0,.2),rgba(255,20,147,.16));
  font-size:18px;
}
.prose blockquote p:last-child{margin-bottom:0}
.prose strong{color:#fff}
.prose code{
  font-size:15px;
  padding:2px 7px;
  border-radius:8px;
  background:rgba(255,244,239,.12);
}
.prose hr{
  border:0;
  height:1px;
  margin:26px 0;
  background:var(--line);
}

div[id],main[id]{scroll-margin-top:128px}

/* ============ 页脚 ============ */
.foot{
  position:relative;
  z-index:1;
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px 28px;
  padding:46px clamp(16px,4vw,44px) 58px;
  border-top:1px solid var(--line);
}
.foot p{
  margin:0;
  font-size:16px;
  line-height:1.6;
  color:rgba(255,244,239,.66);
}
.f-brand{
  color:#fff !important;
  font-weight:700;
  letter-spacing:.14em;
}
.f-cr{
  grid-column:1 / -1;
  padding-top:10px;
  font-size:15px;
  color:rgba(255,244,239,.42);
}

/* ============ 断点 ============ */
@media (max-width:900px){
  .wrap{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;order:-1}
  .hero{min-height:auto;padding-top:clamp(44px,13vw,72px);padding-bottom:clamp(36px,9vw,56px)}
}
@media (max-width:640px){
  body{font-size:16.5px}
  .hero h1{font-size:clamp(32px,9.6vw,48px)}
  .foot{grid-template-columns:repeat(2,minmax(0,1fr));padding-bottom:44px}
  .menu{padding-top:96px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body::before{animation:none}
  .prose > div,
  .menu li{animation:none !important;opacity:1;transform:none}
  .menu{transition:opacity .01s linear,visibility .01s linear}
  .burger-lines::before,.burger-lines::after{transition:none}
}

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