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

:root{
  --red:#ff0000;
  --mag:#ff1493;
  --ink:#261717;
  --bg:#170e10;
  --fg:#f9efef;
  --dim:#c9b0b6;
  --soft:#e2ccd0;
  --line:rgba(255,20,147,.22);
  --card:rgba(58,30,34,.55);
  --r:4px;
  --bar:66px;
}

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

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

body{
  margin:0;
  background:transparent;
  color:var(--fg);
  font-family:Roboto,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.72;
  letter-spacing:.01em;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

body::before{
  content:"";
  position:fixed;
  inset:-25%;
  z-index:-2;
  background:
    radial-gradient(42% 36% at 16% 18%, rgba(255,0,0,.55), transparent 68%),
    radial-gradient(46% 40% at 84% 12%, rgba(255,20,147,.5), transparent 68%),
    radial-gradient(52% 46% at 72% 88%, rgba(122,20,72,.55), transparent 72%),
    conic-gradient(from 200deg at 50% 50%, #261717, #481321, #261717, #5b1332, #261717);
  background-size:170% 170%,170% 170%,170% 170%,200% 200%;
  filter:saturate(1.28) blur(4px);
  animation:aurora 11s ease-in-out infinite alternate;
  opacity:.9;
  pointer-events:none;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(23,14,16,.35) 0%,rgba(23,14,16,.8) 62%,rgba(23,14,16,.94) 100%);
}

@keyframes aurora{
  0%{background-position:0% 30%,100% 10%,70% 100%,0% 50%;transform:scale(1)}
  50%{background-position:30% 0%,70% 40%,40% 70%,30% 50%;transform:scale(1.06)}
  100%{background-position:60% 60%,20% 80%,90% 20%,60% 50%;transform:scale(1.02)}
}

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

a{color:var(--mag)}

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

/* ---- top bar ---- */
.topbar{
  position:fixed;
  inset:0 0 auto 0;
  z-index:60;
  background:rgba(24,13,16,.74);
  backdrop-filter:blur(16px) saturate(1.5);
  -webkit-backdrop-filter:blur(16px) saturate(1.5);
  border-bottom:1px solid var(--line);
  box-shadow:0 12px 34px -26px #ff1493;
}

.bar-in{
  max-width:1160px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:12px;
  padding:9px 16px;
  min-height:var(--bar);
}

.mark{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:var(--r);
  background:linear-gradient(135deg,var(--red),var(--mag));
  box-shadow:0 0 20px rgba(255,20,147,.55);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:17px;
  letter-spacing:.04em;
}

.mark-img{width:32px;height:32px;object-fit:contain;border-radius:2px;display:block}

.jump{flex:1 1 auto;min-width:0}

.jump ul{
  display:flex;
  align-items:center;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
  overflow-x:auto;
  scrollbar-width:none;
}

.jump ul::-webkit-scrollbar{display:none}

.jump a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 12px;
  border-radius:var(--r);
  color:var(--dim);
  font-size:16px;
  white-space:nowrap;
  text-decoration:none;
  transition:color .25s ease,background-color .25s ease;
}

.jump a:hover,
.jump a.on{color:#fff;background:rgba(255,20,147,.18)}

.jump li.off{display:none}

.find{flex:0 0 auto}

.find input{
  width:148px;
  height:42px;
  padding:0 12px;
  border-radius:var(--r);
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:var(--fg);
  font:inherit;
  font-size:16px;
  outline:none;
  transition:border-color .25s ease,box-shadow .25s ease;
}

.find input::placeholder{color:#a98e93}

.find input:focus{
  border-color:var(--mag);
  box-shadow:0 0 0 3px rgba(255,20,147,.22);
}

/* ---- main ---- */
main{
  max-width:1160px;
  margin:0 auto;
  padding:calc(var(--bar) + 26px) 16px 40px;
}

.hero{
  position:relative;
  min-height:45vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding:16px 0 34px;
}

.hero h1{
  margin:0 0 14px;
  font-size:clamp(2.15rem,7.4vw,4.5rem);
  line-height:1.1;
  font-weight:700;
  letter-spacing:-.028em;
  background:linear-gradient(96deg,#ffffff 8%,#ffd3df 38%,var(--red) 72%,var(--mag) 96%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 10px 34px rgba(255,20,147,.28));
}

.lead{
  margin:0;
  max-width:60ch;
  color:var(--soft);
  font-size:1.04rem;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
  padding:0;
  align-self:flex-start;
}

.chip{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:6px 14px;
  border-radius:var(--r);
  font-size:15px;
  color:#ffd9e5;
  background:rgba(255,0,0,.18);
  border:1px solid rgba(255,0,0,.4);
  box-shadow:0 12px 26px -18px rgba(255,0,0,.9);
  animation:float 9s ease-in-out infinite alternate;
}

.chip-alt{
  color:#ffd6ea;
  background:rgba(255,20,147,.16);
  border-color:rgba(255,20,147,.42);
  animation-delay:-4.5s;
}

@keyframes float{
  from{transform:translateY(-4px)}
  to{transform:translateY(5px)}
}

/* ---- content body ---- */
.body{padding-bottom:18px}

.body > div{
  position:relative;
  margin:0 0 22px;
  padding:26px 22px 24px;
  border-radius:var(--r);
  background:linear-gradient(160deg,rgba(74,36,42,.62),rgba(38,23,25,.78));
  border:1px solid rgba(255,20,147,.16);
  box-shadow:0 20px 40px -30px rgba(255,0,0,.85),inset 0 1px 0 rgba(255,255,255,.05);
  scroll-margin-top:calc(var(--bar) + 24px);
}

.body > div::before{
  content:"";
  position:absolute;
  left:0;
  top:20px;
  bottom:20px;
  width:3px;
  border-radius:3px;
  background:linear-gradient(180deg,var(--red),var(--mag));
  opacity:.85;
}

.body h2{
  margin:0 0 10px;
  font-size:clamp(1.36rem,3.6vw,1.92rem);
  line-height:1.32;
  font-weight:700;
  letter-spacing:-.01em;
  color:#fff;
}

.body h3{
  margin:22px 0 8px;
  font-size:1.12rem;
  color:#ffd8e4;
}

.body p{margin:0 0 12px;color:var(--soft)}
.body p:last-child{margin-bottom:0}

.body h2 + p.subtitle,
.body h2 + p.subhead,
.body h2 + p.desc,
.body h2 + p.lead,
.body h3 + p.subtitle{
  margin:-4px 0 16px;
  color:#ff8ec4;
  font-size:.97rem;
  letter-spacing:.05em;
}

.body ul,
.body ol{margin:0 0 14px;padding-left:1.25em;color:var(--soft)}
.body li{margin:0 0 8px}
.body li::marker{color:var(--mag)}

.body strong{color:#fff}

.body a{
  color:#ffb3d6;
  text-decoration:underline;
  text-decoration-color:rgba(255,20,147,.55);
  text-underline-offset:3px;
}

.body a:hover{color:#fff;text-decoration-color:var(--red)}

.body blockquote{
  margin:0 0 14px;
  padding:10px 16px;
  border-left:3px solid var(--red);
  border-radius:var(--r);
  background:rgba(255,0,0,.08);
  color:#ffe3ea;
}

.body table{
  width:100%;
  margin:0 0 14px;
  border-collapse:collapse;
  font-size:16px;
}

.body th,
.body td{
  padding:9px 10px;
  border-bottom:1px solid rgba(255,255,255,.1);
  text-align:left;
  color:var(--soft);
}

.body th{color:#fff;background:rgba(255,20,147,.12)}

.body figure{margin:0 0 16px}
.body figcaption{font-size:15px;color:var(--dim);margin-top:6px}

/* ---- back to top ---- */
.totop{
  position:fixed;
  right:14px;
  bottom:18px;
  z-index:55;
  min-height:44px;
  padding:11px 16px;
  border-radius:var(--r);
  border:1px solid var(--line);
  background:rgba(42,20,25,.88);
  color:#fff;
  font:inherit;
  font-size:16px;
  cursor:pointer;
  backdrop-filter:blur(8px);
  box-shadow:0 14px 32px -18px #000;
  opacity:0;
  transform:translateY(12px);
  pointer-events:none;
  transition:opacity .3s ease,transform .3s ease;
}

.totop.show{opacity:1;transform:none;pointer-events:auto}
.totop:hover{border-color:var(--mag)}

/* ---- footer ---- */
footer{
  max-width:1160px;
  margin:0 auto;
  padding:42px 16px 54px;
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  border-top:1px solid var(--line);
}

.foot-brand{margin:0}

.huge{
  display:block;
  font-size:clamp(2rem,8.4vw,3.5rem);
  font-weight:700;
  line-height:1.04;
  letter-spacing:-.035em;
  background:linear-gradient(100deg,var(--red),var(--mag) 62%,#ff7ab8);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.foot-note{
  display:block;
  margin-top:10px;
  max-width:46ch;
  color:var(--dim);
  font-size:.95rem;
}

.foot-links{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:2px 16px;
  align-content:flex-start;
}

.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--dim);
  font-size:16px;
  text-decoration:none;
  border-bottom:1px solid transparent;
}

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

.copy{
  grid-column:1/-1;
  display:block;
  padding-top:12px;
  border-top:1px dashed rgba(255,255,255,.1);
  text-align:center;
  color:#a98e93;
  font-size:.86rem;
}

/* ---- responsive ---- */
@media (max-width:700px){
  :root{--bar:112px}
  .bar-in{flex-wrap:wrap;padding-bottom:8px}
  .find{order:2;margin-left:auto}
  .jump{order:3;flex-basis:100%}
  .jump ul{padding-bottom:2px}
  .find input{width:132px}
  main{padding-top:calc(var(--bar) + 18px)}
  .body > div{padding:22px 18px}
  .body > div::before{top:16px;bottom:16px}
}

@media (min-width:800px){
  footer{grid-template-columns:1.6fr 1fr;align-items:start}
  .body > div{padding:32px 30px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,
  *::before,
  *::after{animation:none!important;transition:none!important}
}

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