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

:root{
  --red:#ff0000;
  --pink:#ff1493;
  --ink:#261717;
  --fg:#faeeee;
  --muted:#d2b4b8;
  --line:rgba(255,20,147,.28);
  --edge:rgba(255,255,255,.07);
  --serif:"Libre Bodoni","Songti SC",Georgia,"Times New Roman",serif;
  --sans:"Public Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  --r:28px;
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  min-height:100vh;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.78;
  color:var(--fg);
  background:
    radial-gradient(58% 42% at 10% 6%, rgba(255,0,0,.30), transparent 62%),
    radial-gradient(52% 38% at 92% 18%, rgba(255,20,147,.26), transparent 64%),
    radial-gradient(80% 55% at 50% 104%, rgba(255,20,147,.18), transparent 72%),
    linear-gradient(165deg,#1e1111 0%,#261717 46%,#150d0d 100%);
  background-attachment:fixed;
}

.aurora{
  position:fixed;
  inset:-25%;
  z-index:0;
  pointer-events:none;
  opacity:.5;
  mix-blend-mode:screen;
  filter:blur(46px) saturate(1.3);
  background:
    conic-gradient(from 210deg at 30% 28%, rgba(255,0,0,.55), rgba(255,20,147,.34), rgba(255,120,70,.24), rgba(255,0,0,.55)),
    radial-gradient(42% 42% at 72% 62%, rgba(255,20,147,.55), transparent 72%);
  animation:aurora 11s ease-in-out infinite alternate;
}

@keyframes aurora{
  0%{transform:translate3d(-3%,-2%,0) scale(1) rotate(0)}
  50%{transform:translate3d(3%,2%,0) scale(1.12) rotate(8deg)}
  100%{transform:translate3d(-2%,4%,0) scale(1.05) rotate(-6deg)}
}

@keyframes slide{
  from{opacity:0;transform:translateX(-12px)}
  to{opacity:1;transform:none}
}

/* 左侧竖排刊头 */
.mast{
  position:fixed;
  inset:0 auto 0 0;
  width:274px;
  z-index:4;
  display:flex;
  flex-direction:column;
  padding-bottom:20px;
  overflow:auto;
  border-right:1px solid var(--edge);
  background:linear-gradient(185deg, rgba(30,17,17,.95), rgba(18,10,10,.9));
  backdrop-filter:blur(10px);
}

.strip{
  margin:0;
  padding:11px 22px;
  font-size:.74rem;
  letter-spacing:.2em;
  color:var(--muted);
  border-bottom:1px solid var(--edge);
  background:linear-gradient(90deg, rgba(255,0,0,.24), rgba(255,20,147,.12));
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:56px;
  padding:22px 20px 14px;
  text-decoration:none;
  color:var(--fg);
}

.brand-t{
  font-family:var(--serif);
  font-size:1.16rem;
  letter-spacing:.02em;
  padding-bottom:3px;
  border-bottom:2px solid var(--pink);
}

.mark{
  display:block;
  width:44px;
  height:44px;
  border-radius:12px;
  filter:drop-shadow(0 0 12px rgba(255,20,147,.6));
}

.nav{padding:6px 14px 0}

.nav>p{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:0;
}

.nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 10px;
  font-size:.96rem;
  color:var(--muted);
  text-decoration:none;
  border-radius:14px;
  border-left:2px solid transparent;
  animation:slide .55s both;
  transition:color .3s ease, background .3s ease, border-color .3s ease;
}

.nav a:nth-child(1){animation-delay:.03s}
.nav a:nth-child(2){animation-delay:.07s}
.nav a:nth-child(3){animation-delay:.11s}
.nav a:nth-child(4){animation-delay:.15s}
.nav a:nth-child(5){animation-delay:.19s}
.nav a:nth-child(6){animation-delay:.23s}
.nav a:nth-child(7){animation-delay:.27s}
.nav a:nth-child(8){animation-delay:.31s}
.nav a:nth-child(9){animation-delay:.35s}

.nav a:hover,.nav a[aria-current]{
  color:#fff;
  border-left-color:var(--pink);
  background:linear-gradient(90deg, rgba(255,20,147,.22), transparent);
}

.sep{
  height:1px;
  margin:8px 6px;
  background:linear-gradient(90deg, var(--line), transparent);
}

main{
  position:relative;
  z-index:1;
  margin-left:274px;
}

/* 首屏 */
.hero{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:70vh;
  padding:64px 26px;
  text-align:center;
  overflow:hidden;
}

.ghost{
  position:absolute;
  inset:0;
  z-index:-1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 3%;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(2.6rem,11vw,9rem);
  line-height:.94;
  letter-spacing:-.04em;
  text-align:center;
  word-break:break-word;
  color:transparent;
  -webkit-text-stroke:1px rgba(255,20,147,.42);
  opacity:.55;
  user-select:none;
}

.hero-in{max-width:44rem}

.hero-mark{
  display:flex;
  justify-content:center;
  margin-bottom:18px;
}

.mark-hero{
  width:96px;
  height:96px;
  border-radius:22px;
  filter:drop-shadow(0 0 22px rgba(255,20,147,.55));
}

h1{
  margin:0;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.9rem,5.2vw,3.3rem);
  line-height:1.24;
  letter-spacing:-.01em;
  background:linear-gradient(92deg,#fff 10%,#ffc9dd 48%,var(--pink) 96%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* 正文 + 右侧栏 */
.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 302px;
  gap:38px;
  align-items:start;
  max-width:1200px;
  margin:0 auto;
  padding:0 34px 80px;
}

section{min-width:0}

section .mast-t{
  margin:0;
  font-family:var(--serif);
  font-weight:500;
  font-size:1.06rem;
  letter-spacing:.32em;
  text-align:center;
  color:var(--muted);
}

.rule{
  border:0;
  height:2px;
  margin:14px 0 30px;
  background:linear-gradient(90deg,transparent,rgba(255,20,147,.75),transparent);
}

.rule-s{margin:10px 0 14px}

section div{
  position:relative;
  margin:0 0 26px;
  padding:30px 30px 34px;
  border:1px solid var(--edge);
  border-bottom:2px solid rgba(255,20,147,.45);
  border-radius:var(--r);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.014));
  scroll-margin-top:30px;
}

section div::after{
  content:"";
  position:absolute;
  left:30px;
  right:30px;
  bottom:-2px;
  height:2px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--red),var(--pink));
  opacity:.85;
}

section h2{
  margin:0 0 12px;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.4rem,2.6vw,1.85rem);
  line-height:1.34;
  color:#fff;
}

section h3{
  margin:26px 0 10px;
  font-size:1.12rem;
  font-weight:600;
  color:#ffd9e6;
}

section p{margin:0 0 16px}
section ul,section ol{margin:0 0 18px;padding-left:1.2em}
section li{margin:0 0 8px}
section strong{color:#fff}
section a{color:#ffa6cd;text-decoration:underline;text-underline-offset:3px}
section a:hover{color:#fff}

section img{
  max-width:100%;
  height:auto;
  margin:10px 0;
  border-radius:18px;
}

section blockquote{
  margin:18px 0;
  padding:14px 18px;
  border-left:3px solid var(--pink);
  border-radius:0 18px 18px 0;
  background:rgba(255,20,147,.08);
  color:#ffe6ef;
}

section div>h2:first-child{margin-top:0}

.rail{
  position:sticky;
  top:26px;
  align-self:start;
  padding:22px 20px;
  border:1px solid var(--edge);
  border-bottom:2px solid rgba(255,20,147,.5);
  border-radius:var(--r);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  backdrop-filter:blur(8px);
}

.rail h3{
  margin:0;
  font-family:var(--serif);
  font-weight:500;
  font-size:1rem;
  letter-spacing:.18em;
  color:var(--muted);
}

.rail a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:6px 2px;
  font-size:.92rem;
  color:var(--muted);
  text-decoration:none;
  border-bottom:1px dashed rgba(255,20,147,.22);
  transition:color .3s ease, padding .3s ease;
}

.rail a:last-child{border-bottom:0}
.rail a:hover{color:#fff;padding-left:6px}

/* 页脚 */
.foot{
  position:relative;
  z-index:1;
  margin-left:274px;
  padding:40px 24px 54px;
  text-align:center;
  color:var(--muted);
  border-top:1px solid var(--edge);
  background:linear-gradient(180deg, rgba(21,13,13,0), rgba(21,13,13,.75));
}

.foot p{
  margin:0 0 6px;
  font-family:var(--serif);
  font-size:1.05rem;
  color:#ffe4ef;
}

.foot small{
  display:block;
  max-width:44rem;
  margin:0 auto;
  font-size:.85rem;
  line-height:1.7;
}

.totop{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:5;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 18px;
  font-size:.9rem;
  color:var(--fg);
  text-decoration:none;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,20,147,.16);
  backdrop-filter:blur(6px);
}

/* 滚动浮现 */
.reveal{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}

.reveal.on{
  opacity:1;
  transform:none;
}

@media (max-width:900px){
  .mast{
    position:static;
    width:auto;
    height:auto;
    border-right:0;
    border-bottom:1px solid var(--edge);
    padding-bottom:10px;
    overflow:visible;
  }

  .strip{
    padding:9px 16px;
    font-size:.7rem;
    letter-spacing:.13em;
  }

  .brand{
    min-height:52px;
    padding:12px 16px 6px;
  }

  .nav{padding:0 8px 8px}

  .nav>p{
    flex-direction:row;
    flex-wrap:wrap;
    gap:4px;
  }

  .nav a{
    min-height:44px;
    padding:10px 12px;
    border-left:0;
    border-bottom:2px solid transparent;
    border-radius:12px;
  }

  .nav a:hover,.nav a[aria-current]{
    border-left:0;
    border-bottom-color:var(--pink);
    background:linear-gradient(180deg, rgba(255,20,147,.2), transparent);
  }

  .sep{display:none}

  main,.foot{margin-left:0}

  .hero{
    min-height:64vh;
    padding:44px 18px;
  }

  .wrap{
    grid-template-columns:1fr;
    gap:26px;
    padding:0 18px 56px;
  }

  .rail{position:static;order:2}

  section div{
    padding:22px 18px 26px;
    border-radius:22px;
    scroll-margin-top:16px;
  }

  section div::after{left:18px;right:18px}

  .totop{right:14px;bottom:14px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .aurora,.nav a{animation:none}
  .reveal{opacity:1;transform:none;transition:none}
}

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