@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;1,400&display=swap');

:root{
  --red:#ff0000;
  --pink:#ff1493;
  --ink:#261717;
  --deep:#140b0b;
  --paper:#f9eaee;
  --dim:rgba(249,234,238,.66);
  --line:rgba(255,255,255,.12);
  --r:18px;
}

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

html{
  background:var(--deep);
  color-scheme:dark;
  scroll-behavior:smooth;
  scroll-padding-top:1rem;
  scroll-padding-bottom:100px;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:16.5px;
  line-height:1.72;
  padding-bottom:94px;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:-30% -20%;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(36% 40% at 18% 22%,rgba(255,0,0,.55),rgba(255,0,0,0) 70%),
    radial-gradient(32% 34% at 82% 14%,rgba(255,20,147,.55),rgba(255,20,147,0) 70%),
    radial-gradient(46% 44% at 68% 84%,rgba(255,20,147,.4),rgba(255,20,147,0) 72%),
    conic-gradient(from 140deg at 50% 50%,rgba(255,0,0,.2),rgba(255,20,147,.26),rgba(255,255,255,.05),rgba(255,0,0,.2));
  background-size:200% 200%;
  filter:saturate(1.3) blur(20px);
  opacity:.8;
  mix-blend-mode:screen;
  animation:aurora 11s ease-in-out infinite alternate;
}

@keyframes aurora{
  from{transform:translate3d(-2%,-1%,0) scale(1.05)}
  to{transform:translate3d(2%,2%,0) scale(1.16)}
}

.hud,.stage,.foot{position:relative;z-index:1}

a{color:#ffd9e5}
a:focus-visible,button:focus-visible{outline:2px solid var(--pink);outline-offset:3px}

/* 底部固定条 */
.hud{
  position:fixed;
  left:0;right:0;bottom:0;z-index:30;
  display:flex;
  align-items:center;
  gap:.45rem;
  padding:.5rem .6rem calc(.5rem + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,rgba(30,17,17,.78),rgba(18,10,10,.97));
  border-top:1px solid rgba(255,20,147,.3);
  backdrop-filter:blur(14px) saturate(1.4);
}

.brand{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:44px;height:44px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,0,0,.55);
  background:radial-gradient(circle at 28% 18%,rgba(255,0,0,.75),rgba(255,20,147,.25));
  box-shadow:0 0 18px rgba(255,20,147,.5);
  color:#fff;
  text-decoration:none;
  font-size:12px;
  line-height:1;
}
.brand .mark-img{width:100%;height:100%;object-fit:cover;display:block}
.brand .mark-txt{font-weight:500;letter-spacing:.02em}

.dock{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  gap:.3rem;
  overflow-x:auto;
  scrollbar-width:none;
}
.dock::-webkit-scrollbar{display:none}

.dock p{
  margin:0;
  display:flex;
  align-items:center;
  gap:.25rem;
  flex:0 0 auto;
}
.dock p + p{padding-left:.4rem;border-left:1px dashed rgba(255,20,147,.45)}

.dock a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.5rem .62rem;
  border-radius:12px;
  color:#f6dfe7;
  font-size:.82rem;
  text-decoration:none;
  white-space:nowrap;
  transition:background .25s ease,color .25s ease;
}
.dock a:hover,.dock a:focus-visible{background:rgba(255,0,0,.2);color:#fff}

/* 舞台 */
.stage{
  max-width:1160px;
  margin:0 auto;
  padding:.9rem .85rem 1.4rem;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:1.1rem;
}

.doc{min-width:0}

/* 首屏 */
.hero{
  position:relative;
  min-height:45vh;
  display:grid;
  place-items:center;
  text-align:center;
  padding:1.5rem 1rem 1.7rem;
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(255,20,147,.28);
  background:radial-gradient(120% 90% at 50% 0%,rgba(255,0,0,.3),rgba(38,23,23,.88) 62%);
  box-shadow:0 22px 46px -26px rgba(255,20,147,.7);
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(66% 72% at 50% 52%,rgba(20,11,11,.86),rgba(20,11,11,.18) 72%);
}
.collage{position:absolute;inset:0;pointer-events:none}
.shot{
  position:absolute;
  width:42%;
  max-width:210px;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 16px 34px -18px #000;
  filter:saturate(1.2);
}
.shot-a{left:2%;top:6%;transform:rotate(-6deg);animation:driftA 12s ease-in-out infinite alternate}
.shot-b{right:2%;bottom:5%;transform:rotate(7deg);animation:driftB 12s ease-in-out infinite alternate}
@keyframes driftA{from{transform:rotate(-6deg) translateY(0)}to{transform:rotate(-3deg) translateY(10px)}}
@keyframes driftB{from{transform:rotate(7deg) translateY(0)}to{transform:rotate(4deg) translateY(-10px)}}

.lede{position:relative;z-index:2;max-width:34rem}

.hero h1{
  margin:0 0 .7rem;
  font-size:clamp(1.55rem,6.4vw,2.5rem);
  line-height:1.28;
  letter-spacing:-.02em;
  background:linear-gradient(100deg,#fff,var(--pink) 55%,var(--red));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 0 34px rgba(255,20,147,.35);
}

.sub{margin:0;color:var(--dim);font-size:.95rem;line-height:1.7}

.chips{
  margin:.9rem 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  justify-content:center;
}
.chip{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:.4rem .8rem;
  border-radius:999px;
  font-size:.78rem;
  text-decoration:none;
  color:#fff;
  border:1px solid rgba(255,20,147,.6);
  background:rgba(255,20,147,.16);
  box-shadow:0 0 16px rgba(255,0,0,.28) inset;
}
.chip:hover{background:rgba(255,0,0,.34)}

/* 正文区块 */
.doc > section{
  position:relative;
  margin:1rem 0;
  padding:1.15rem 1rem 1.25rem;
  border-radius:var(--r);
  border:1px solid rgba(255,255,255,.09);
  background:rgba(38,23,23,.7);
  backdrop-filter:blur(10px);
  box-shadow:0 24px 44px -34px #000;
  scroll-margin-top:1.1rem;
  transition:opacity .55s ease,transform .55s ease,box-shadow .3s ease;
}
.js .doc > section{opacity:0;transform:translateY(16px)}
.js .doc > section.in{opacity:1;transform:none}
.doc > section:hover{box-shadow:0 26px 50px -30px rgba(255,20,147,.45)}

.doc > .hero{
  padding:1.5rem 1rem 1.7rem;
  background:radial-gradient(120% 90% at 50% 0%,rgba(255,0,0,.3),rgba(38,23,23,.88) 62%);
  border-color:rgba(255,20,147,.28);
}

.doc h2{
  margin:.1rem 0 .55rem;
  font-size:1.24rem;
  line-height:1.42;
  letter-spacing:-.01em;
  color:#fff;
}
.doc h3{
  margin:1.2rem 0 .5rem;
  font-size:1.02rem;
  color:#ffe3ec;
}
.doc h2 + hr{
  height:2px;
  width:62px;
  margin:0 0 1rem;
  border:0;
  border-radius:2px;
  background:linear-gradient(90deg,var(--red),var(--pink));
  box-shadow:0 0 14px rgba(255,20,147,.85);
}
.doc hr{border:0;height:1px;margin:1.2rem 0;background:var(--line)}

.doc p{margin:0 0 .95rem}
.doc p:last-child{margin-bottom:0}
.doc ul,.doc ol{margin:0 0 1rem;padding-left:1.25rem}
.doc li{margin:.28rem 0}
.doc li::marker{color:var(--pink)}

.doc a{color:#ffd9e5;text-decoration:none;border-bottom:1px solid rgba(255,20,147,.6)}
.doc a:hover{color:#fff;border-bottom-color:var(--red)}

.doc strong{color:#fff}
.doc blockquote{
  margin:1rem 0;
  padding:.5rem 0 .5rem .9rem;
  border-left:3px solid var(--pink);
  background:rgba(255,20,147,.08);
  border-radius:0 12px 12px 0;
  color:#ffe8ef;
}
.doc code{
  font-family:inherit;
  font-size:.9em;
  padding:.1rem .35rem;
  border-radius:6px;
  background:rgba(255,255,255,.1);
}
.doc table{
  width:100%;
  display:block;
  overflow-x:auto;
  border-collapse:collapse;
  margin:0 0 1rem;
  font-size:.9rem;
}
.doc th,.doc td{border:1px solid var(--line);padding:.5rem .6rem;text-align:left}
.doc th{background:rgba(255,0,0,.16);color:#fff}

/* 右栏 */
.rail{
  padding:1rem .9rem 1.1rem;
  border-radius:var(--r);
  border:1px solid rgba(255,20,147,.32);
  background:rgba(28,16,16,.76);
  backdrop-filter:blur(10px);
  box-shadow:0 22px 44px -34px rgba(255,20,147,.6);
  align-self:start;
}
.rail h2{margin:0 0 .5rem;font-size:.98rem;letter-spacing:.04em;color:#fff}
.rail h2 + hr{
  height:2px;
  width:44px;
  margin:0 0 .7rem;
  border:0;
  border-radius:2px;
  background:linear-gradient(90deg,var(--red),var(--pink));
}
.rail ol{list-style:none;margin:0;padding:0;counter-reset:rail}
.rail li{counter-increment:rail}
.rail a{
  display:flex;
  align-items:center;
  gap:.55rem;
  min-height:42px;
  padding:.4rem .2rem;
  font-size:.88rem;
  text-decoration:none;
  color:#f6dfe7;
  border-bottom:1px dashed rgba(255,255,255,.12);
}
.rail li:last-child a{border-bottom:0}
.rail a::before{
  content:counter(rail,decimal-leading-zero);
  font-size:.7rem;
  color:var(--pink);
}
.rail a:hover{color:#fff}

/* 页脚 */
.foot{
  margin-top:1.4rem;
  padding:1.5rem .9rem 1.3rem;
  border-top:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg,rgba(20,11,11,.6),rgba(20,11,11,.95));
}
.foot-cols{
  max-width:1160px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr;
  gap:1.2rem;
}
.foot address{font-style:normal;display:flex;flex-direction:column;gap:.5rem}
.foot-brand{
  font-size:1rem;
  color:#fff;
  text-decoration:none;
  letter-spacing:.02em;
}
.foot-brand:hover{color:var(--pink)}
.foot-desc{display:block;color:var(--dim);font-size:.82rem;line-height:1.6;max-width:26rem}
.foot ul{list-style:none;margin:0;padding:0}
.foot ul li a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:.3rem 0;
  font-size:.85rem;
  color:#f0d5df;
  text-decoration:none;
  border-bottom:1px dashed rgba(255,255,255,.1);
}
.foot ul li:last-child a{border-bottom:0}
.foot ul li a:hover{color:#fff}
.foot-bar{
  max-width:1160px;
  margin:1.1rem auto 0;
  font-size:.75rem;
  color:rgba(249,234,238,.55);
  letter-spacing:.04em;
}

@media (max-width:979px){
  .doc > .hero{min-height:42vh}
}

@media (min-width:760px){
  body{font-size:17px}
  .foot-cols{grid-template-columns:1.5fr .8fr .8fr}
  .doc > section{padding:1.4rem 1.35rem 1.5rem}
  .doc > .hero{padding:2rem 1.5rem 2.2rem}
}

@media (min-width:980px){
  body{padding-bottom:88px}
  .stage{
    grid-template-columns:minmax(0,1fr) 264px;
    gap:1.7rem;
    padding:1.6rem 1.2rem 2rem;
    align-items:start;
  }
  .rail{position:sticky;top:1.4rem}
  .hud{padding:.55rem 1.1rem calc(.55rem + env(safe-area-inset-bottom))}
  .dock{justify-content:center}
  .dock a{font-size:.86rem;padding:.5rem .8rem}
  .dock .grp-more{
    position:absolute;
    bottom:calc(100% + 10px);
    left:50%;
    transform:translateX(-50%) translateY(8px);
    padding:.5rem .55rem;
    border:1px solid rgba(255,20,147,.4);
    border-left:1px solid rgba(255,20,147,.4);
    border-radius:16px;
    background:rgba(26,14,14,.96);
    backdrop-filter:blur(12px);
    box-shadow:0 22px 40px -22px #000;
    opacity:0;
    visibility:hidden;
    transition:opacity .25s ease,transform .25s ease,visibility .25s;
  }
  .dock:hover .grp-more,
  .dock:focus-within .grp-more{
    opacity:1;
    visibility:visible;
    transform:translateX(-50%) translateY(0);
  }
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body::before{animation:none}
  .shot-a,.shot-b{animation:none}
  .js .doc > section{opacity:1;transform:none;transition:none}
}

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