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

:root{
  --ink:#261717;
  --ink-deep:#1b1010;
  --red:#ff0000;
  --pink:#ff1493;
  --cream:#fff2ee;
  --dim:#e0c6c1;
  --mute:#b79c98;
  --line:rgba(255,255,255,.14);
  --r:18px;
}

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

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

body{
  margin:0;
  padding:0 0 110px;
  font-family:Barlow,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.62;
  color:var(--cream);
  background:var(--ink);
  overflow-x:hidden;
}

h1,h2,h3,h4,h5{
  margin:0;
  font-family:"Barlow Condensed",Barlow,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-weight:700;
  line-height:1.12;
  letter-spacing:.015em;
}

p{margin:0}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
ol,ul{margin:0;padding:0;list-style:none}

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

/* ---------- 极光背景 ---------- */
.aurora{
  position:fixed;
  inset:-18% -25% -12%;
  z-index:0;
  pointer-events:none;
  opacity:.72;
  filter:saturate(1.35);
}
.aurora span{
  position:absolute;
  display:block;
  border-radius:50%;
  mix-blend-mode:screen;
  filter:blur(78px);
  background-size:200% 200%;
  animation:flow 10s ease-in-out infinite;
}
.aurora span:nth-child(1){
  width:72vw;height:72vw;left:-14vw;top:-14vw;
  background:conic-gradient(from 40deg,#ff0000,#ff1493,#40140f,#ff0000);
  animation-duration:11s;
}
.aurora span:nth-child(2){
  width:58vw;height:58vw;right:-16vw;top:20vh;
  background:radial-gradient(circle at 35% 30%,#ff1493,#5a0a2e 62%,rgba(0,0,0,0) 74%);
  animation-duration:9s;
}
.aurora span:nth-child(3){
  width:84vw;height:52vw;left:4vw;bottom:-12vh;
  background:conic-gradient(from 200deg,#40140f,#ff0000,#ff1493,#40140f);
  animation-duration:12s;
}
@keyframes flow{
  0%{transform:translate3d(0,0,0) scale(1);background-position:0% 50%}
  50%{transform:translate3d(3%,-4%,0) scale(1.12);background-position:100% 50%}
  100%{transform:translate3d(0,0,0) scale(1);background-position:0% 50%}
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  min-height:44vh;
  padding:44px 24px 30px;
  border-bottom:1px solid var(--line);
}
.hero-in{
  display:grid;
  grid-template-columns:1.12fr .88fr;
  gap:34px;
  align-items:center;
  width:100%;
  max-width:1120px;
  margin:0 auto;
}
.badge{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 16px;
  border-radius:999px;
  background:linear-gradient(100deg,var(--red),var(--pink));
  color:#fff;
  font-size:16px;
  font-weight:600;
  letter-spacing:.14em;
  animation:bob 6s ease-in-out infinite;
}
@keyframes bob{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-5px)}
}
.hero h1{
  margin:16px 0 14px;
  font-size:clamp(2.05rem,6.2vw,3.9rem);
  line-height:1.04;
  letter-spacing:0;
  color:#fff;
  background:linear-gradient(96deg,#ffffff 22%,#ffd7c8 58%,#ff1493 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.hero-desc{
  max-width:48ch;
  color:var(--dim);
  font-size:17px;
}
.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  margin-top:22px;
  padding:0 28px;
  border-radius:999px;
  background:linear-gradient(100deg,var(--red),var(--pink));
  color:#fff;
  font-size:17px;
  font-weight:600;
  letter-spacing:.1em;
  box-shadow:0 16px 38px -18px rgba(255,0,0,.95);
}
.hero-art{
  position:relative;
  overflow:hidden;
  aspect-ratio:5/4;
  border-radius:22px;
  background:radial-gradient(circle at 28% 18%,#ff1493,#ff0000 44%,#4a1010 92%);
  box-shadow:0 30px 70px -32px rgba(255,20,147,.85);
}
.hero-art::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(140deg,rgba(255,255,255,.3),rgba(255,255,255,0) 58%);
  mix-blend-mode:screen;
}
.hero-img{width:100%;height:100%;object-fit:cover}

/* ---------- 主体骨架 ---------- */
.shell{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:224px minmax(0,1fr);
  gap:40px;
  align-items:start;
  max-width:1180px;
  margin:0 auto;
  padding:38px 24px 0;
}
.rail{position:sticky;top:20px}
.rail-nav ol{display:flex;flex-direction:column;gap:6px}
.rail-nav li{animation:rise .5s ease backwards}
.rail-nav li:nth-child(1){animation-delay:.03s}
.rail-nav li:nth-child(2){animation-delay:.07s}
.rail-nav li:nth-child(3){animation-delay:.11s}
.rail-nav li:nth-child(4){animation-delay:.15s}
.rail-nav li:nth-child(5){animation-delay:.19s}
.rail-nav li:nth-child(6){animation-delay:.23s}
.rail-nav li:nth-child(7){animation-delay:.27s}
@keyframes rise{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}
.rail-nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  color:var(--dim);
  font-size:16px;
  transition:background .25s ease,color .25s ease,transform .25s ease;
}
.rail-nav a:hover,
.rail-nav a:focus-visible{
  background:linear-gradient(100deg,rgba(255,0,0,.72),rgba(255,20,147,.72));
  color:#fff;
  transform:translateX(3px);
}

main{min-width:0}
article{min-width:0;overflow-wrap:break-word}

article > div{
  margin-bottom:22px;
  padding:26px 26px 30px;
  border-radius:var(--r);
  background:rgba(255,255,255,.055);
  scroll-margin-top:24px;
}
article > div.intro{
  background:linear-gradient(118deg,rgba(255,0,0,.26),rgba(255,20,147,.14) 70%,rgba(255,255,255,.05));
}
article > div.intro h2{font-size:clamp(1.5rem,3.4vw,2.1rem)}
.subtitle{
  margin-top:8px;
  color:#ffb9cf;
  font-size:16px;
  letter-spacing:.14em;
}
article h2{
  margin-bottom:12px;
  font-size:clamp(1.42rem,3.2vw,2rem);
}
article h3{
  margin:20px 0 8px;
  font-size:clamp(1.15rem,2.4vw,1.42rem);
  color:#ffd0e0;
}
article p{color:#eddcd8;margin:12px 0}
article ul,article ol{padding-left:1.25em;color:#eddcd8;list-style:disc}
article ol{list-style:decimal}
article li{margin:8px 0;line-height:1.6}
article a{color:#ff7ab0;text-decoration:underline;text-underline-offset:3px}
article strong{color:#fff}
article blockquote{
  margin:16px 0;
  padding:12px 18px;
  border-left:3px solid var(--pink);
  background:rgba(255,20,147,.08);
  border-radius:0 12px 12px 0;
}
article img{border-radius:14px;margin:14px 0}
article table{width:100%;border-collapse:collapse;margin:14px 0;font-size:16px}
article th,article td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left}

.js article > div{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .55s ease,transform .55s ease;
}
.js article > div.in{opacity:1;transform:none}

/* ---------- 页脚 ---------- */
.foot{
  position:relative;
  z-index:1;
  margin-top:30px;
  padding:46px 24px 34px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(38,23,23,0),rgba(18,9,9,.88));
}
.foot-mark{
  max-width:1120px;
  margin:0 auto 28px;
  font-family:"Barlow Condensed",Barlow,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:clamp(2.5rem,12.5vw,6.2rem);
  font-weight:700;
  line-height:.9;
  letter-spacing:-.01em;
  color:#fff;
  background:linear-gradient(96deg,var(--red),var(--pink) 58%,#ffb0d4);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.foot nav{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:26px;
  max-width:1120px;
  margin:0 auto;
}
.foot dl{margin:0;min-width:0}
.foot dt{
  margin-bottom:8px;
  font-family:"Barlow Condensed",Barlow,"PingFang SC",sans-serif;
  font-size:16px;
  font-weight:600;
  letter-spacing:.2em;
  color:var(--pink);
}
.foot dd{margin:0}
.foot dd a{
  display:flex;
  align-items:center;
  min-height:44px;
  font-size:16px;
  color:var(--mute);
  transition:color .2s ease;
  overflow-wrap:anywhere;
}
.foot dd a:hover,
.foot dd a:focus-visible{color:#fff}
.foot-copy{
  max-width:1120px;
  margin:26px auto 0;
  padding-top:18px;
  border-top:1px solid var(--line);
  text-align:center;
  font-size:16px;
  color:var(--mute);
}

/* ---------- 底部固定条 ---------- */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:30;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 16px calc(8px + env(safe-area-inset-bottom));
  background:rgba(30,17,17,.94);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-top:1px solid var(--line);
}
.dock-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:14px;
  background:linear-gradient(120deg,var(--red),var(--pink));
  color:#fff;
  font-family:"Barlow Condensed","PingFang SC",sans-serif;
  font-size:22px;
  font-weight:700;
}
.dock-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  min-width:84px;
  padding:0 20px;
  border:0;
  border-radius:14px;
  background:rgba(255,255,255,.1);
  color:#fff;
  font-family:inherit;
  font-size:16px;
  letter-spacing:.14em;
  cursor:pointer;
  transition:background .25s ease;
}
.dock-btn[aria-expanded="true"]{background:linear-gradient(120deg,var(--red),var(--pink))}
.dock-menu{
  position:fixed;
  left:0;
  right:0;
  bottom:66px;
  z-index:29;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px 16px;
  max-height:62vh;
  overflow-y:auto;
  padding:18px 16px;
  background:rgba(20,11,11,.97);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-top:1px solid var(--line);
  transform:translateY(12px);
  opacity:0;
  visibility:hidden;
  transition:opacity .28s ease,transform .28s ease,visibility .28s;
}
.dock-menu.open{opacity:1;visibility:visible;transform:none}
.dock-col{min-width:0}
.dock-grp{
  margin-bottom:6px;
  font-family:"Barlow Condensed","PingFang SC",sans-serif;
  font-size:16px;
  font-weight:600;
  letter-spacing:.2em;
  color:var(--pink);
}
.dock-menu a{
  display:flex;
  align-items:center;
  min-height:44px;
  font-size:16px;
  color:var(--cream);
  border-bottom:1px solid rgba(255,255,255,.07);
  overflow-wrap:anywhere;
}
.dock-menu a:hover,
.dock-menu a:focus-visible{color:#ffa8cc}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .hero{min-height:0;padding:32px 20px 24px}
  .hero-in{grid-template-columns:1fr;gap:20px}
  .hero-art{aspect-ratio:16/9;max-height:210px}
  .shell{grid-template-columns:1fr;gap:18px;padding:20px 20px 0}
  .rail{position:static}
  .rail-nav ol{flex-direction:row;flex-wrap:wrap;gap:8px}
  .rail-nav a{min-height:40px;padding:0 12px;border-radius:999px;font-size:16px}
  .foot nav{gap:16px}
}

@media (max-width:560px){
  body{font-size:16px}
  .hero{padding:24px 16px 20px}
  .hero h1{margin:12px 0 10px}
  .hero-art{aspect-ratio:16/8;max-height:160px}
  .cta{margin-top:18px;width:100%}
  .shell{padding:16px 16px 0}
  article > div{padding:20px 18px 24px}
  .foot{padding:34px 16px 26px}
  .foot nav{gap:10px}
  .dock-menu{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .aurora span,.badge,.rail-nav li{animation:none}
  .js article > div{opacity:1;transform:none;transition:none}
}

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