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

:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --bg: #1b0f10;
  --card: #2b1818;
  --txt: #f5e7e9;
  --mut: #d0aab3;
  --rail: 198px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--txt);
  font-family: 'Nunito Sans', 'Rubik', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 0, 0, 0.55), transparent 42%),
    radial-gradient(circle at 76% 18%, rgba(255, 20, 147, 0.5), transparent 46%),
    radial-gradient(circle at 58% 82%, rgba(255, 20, 147, 0.34), transparent 52%),
    radial-gradient(circle at 12% 88%, rgba(255, 0, 0, 0.3), transparent 48%),
    conic-gradient(from 200deg at 55% 45%, #ff0000, #ff1493, #3a1a20, #ff0000);
  background-size: 190% 190%;
  filter: blur(58px) saturate(1.25);
  opacity: 0.62;
  mix-blend-mode: screen;
  animation: drift 11s ease-in-out infinite alternate;
}

@keyframes drift {
  0% { background-position: 0% 0%; transform: scale(1); }
  50% { background-position: 60% 40%; transform: scale(1.06); }
  100% { background-position: 100% 100%; transform: scale(1.02); }
}

a { color: inherit; }

.brand {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(140deg, var(--red), var(--pink));
  box-shadow: 0 8px 22px rgba(255, 20, 147, 0.35);
}

.brand img { display: block; max-width: 100%; height: auto; }

.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 84px 14px 22px;
  background: rgba(30, 17, 18, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
}

.rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #f0d7dc;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.rail-mark {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(140deg, var(--red), var(--pink));
  opacity: 0.85;
}

.rail-link:hover,
.rail-link:focus-visible {
  background: rgba(255, 20, 147, 0.18);
  color: #fff;
  outline: none;
}

.rail-link.is-on {
  background: rgba(255, 20, 147, 0.26);
  color: #fff;
}

main { margin-left: var(--rail); }

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 26px 40px;
}

.stage {
  grid-column: 1 / -1;
}

.hero {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  min-height: clamp(440px, 70vh, 620px);
  padding: 74px 30px 60px;
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -20% -50% -20%;
  height: 90%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 20, 147, 0.5), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(130deg, rgba(255, 0, 0, 0.95), rgba(255, 20, 147, 0.95));
  box-shadow: 0 10px 26px rgba(255, 0, 0, 0.28);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.hero h1 {
  position: relative;
  z-index: 2;
  max-width: 18em;
  margin: 0;
  font-family: 'Rubik', 'Nunito Sans', system-ui, sans-serif;
  font-size: clamp(31px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: #fff;
}

.lead {
  position: relative;
  z-index: 2;
  max-width: 32em;
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.8;
  color: #ebc9d1;
}

.hero-art {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  width: 168px;
  height: auto;
  opacity: 0.9;
  will-change: transform;
}

.stream {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.stream article {
  scroll-margin-top: 92px;
  padding: 24px 26px;
  border-radius: 10px;
  background: var(--card);
}

.stream h2 {
  margin: 0 0 6px;
  font-family: 'Rubik', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.stream h2 + hr,
.side h2 + hr {
  height: 2px;
  margin: 0 0 16px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--pink) 60%, rgba(255, 20, 147, 0));
}

.stream h3 {
  margin: 20px 0 8px;
  font-size: 18px;
  color: #ffe3ea;
}

.stream p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.85;
  color: #edd6da;
}

.stream p:last-child { margin-bottom: 0; }

.stream ul,
.stream ol {
  margin: 0 0 14px;
  padding-left: 1.3em;
}

.stream li {
  margin-bottom: 8px;
  color: #edd6da;
}

.stream strong { color: #fff; }

.side {
  position: sticky;
  top: 26px;
  align-self: start;
  padding: 20px 18px;
  border-radius: 10px;
  background: var(--card);
}

.side h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--pink);
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 0;
  font-size: 16px;
  line-height: 1.4;
  color: #edcfd6;
  text-decoration: none;
  transition: color 0.2s ease, padding 0.2s ease;
}

.side-list a:hover {
  color: #fff;
  padding-left: 5px;
}

.foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 20px;
  margin-left: var(--rail);
  padding: 30px 26px 34px;
  background: rgba(24, 13, 14, 0.72);
}

.foot dl { margin: 0; }

.foot dt {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--pink);
}

.foot dt a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: 16px;
  letter-spacing: 0;
  color: #f0d8dd;
  text-decoration: none;
}

.foot dd {
  margin: 0;
  min-height: 1px;
}

.foot dd a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: 16px;
  color: #e3c5cc;
  text-decoration: none;
}

.foot a:hover { color: #fff; }

.foot-nav dl dd {
  height: 1px;
  margin: 0 0 6px;
  background: linear-gradient(90deg, rgba(255, 20, 147, 0.4), transparent);
}

.copy {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  font-size: 14px;
  text-align: center;
  color: #bd9aa2;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.68, 0.32, 1);
}

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

@media (max-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }

  .brand {
    top: 8px;
    left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .rail {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    flex-direction: row;
    gap: 2px;
    padding: 8px 10px 8px 60px;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(26, 14, 15, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 20, 147, 0.18);
  }

  .rail-link {
    min-height: 40px;
    padding: 8px 11px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.04);
    font-size: 16px;
  }

  .rail-mark { display: none; }

  main { margin-left: 0; padding-top: 64px; }

  .wrap { padding: 14px 14px 30px; gap: 12px; }

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

  .badge { top: 14px; left: 14px; padding: 6px 12px; }

  .hero-art {
    position: relative;
    right: auto;
    bottom: auto;
    order: 3;
    width: 118px;
    margin-top: 4px;
  }

  .stream article { padding: 20px 17px; }

  .foot {
    grid-template-columns: 1fr 1fr;
    margin-left: 0;
    padding: 24px 16px 30px;
  }

  .copy { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  body::before,
  .badge-dot { animation: none; }

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

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