:root {
  --ink: #080a18;
  --panel: rgba(17, 20, 45, 0.76);
  --panel-strong: rgba(16, 19, 43, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8f7ff;
  --muted: #b8bad3;
  --accent: #ff5fb7;
  --accent-2: #5fe7ff;
  --accent-3: #8c72ff;
  --accent-soft: rgba(255, 95, 183, 0.16);
  --max: 1160px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--accent-3) 22%, transparent), transparent 34rem),
    radial-gradient(circle at 90% 15%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30rem),
    linear-gradient(158deg, #080a16 0%, #0e1127 52%, #080a18 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a { color: inherit; text-decoration: none; }

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.detail-nav {
  position: sticky;
  top: 14px;
  z-index: 30;
  width: min(var(--max), calc(100% - 40px));
  margin: 14px auto 0;
  padding: 11px 13px 11px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 10, 24, .76);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 52px rgba(0,0,0,.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0b0d1d;
  background: linear-gradient(135deg, #ffe58f, var(--accent) 58%, var(--accent-3));
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 36%, transparent);
  transform: rotate(-4deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,.07);
}

.home-link {
  color: #101224 !important;
  font-weight: 850;
  background: var(--text) !important;
}

.detail-hero {
  min-height: 690px;
  padding: 80px 0 72px;
  display: grid;
  grid-template-columns: 1.05fr .8fr;
  align-items: center;
  gap: clamp(44px, 7vw, 90px);
}

.breadcrumb {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9295b4;
  font-size: 12px;
}

.breadcrumb a:hover { color: var(--text); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--accent-2) 84%, white);
  background: color-mix(in srgb, var(--accent-2) 9%, transparent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #72ffc0;
  box-shadow: 0 0 0 5px rgba(114,255,192,.1), 0 0 18px rgba(114,255,192,.6);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: .5; transform: scale(.82); } }

.hero-kicker {
  margin: 22px 0 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 92px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 950;
}

h1 span {
  display: block;
  padding-top: 8px;
  color: transparent;
  background: linear-gradient(95deg, var(--accent-2), var(--accent-3) 48%, var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.hero-meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.meta-chip {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d8d9e9;
  background: rgba(255,255,255,.04);
  font-size: 12px;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.button {
  min-height: 50px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  font-weight: 850;
  transition: transform .2s ease, border-color .2s ease;
}

.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.3); }

.button-primary {
  color: #0a0c1d;
  border: 0;
  background: linear-gradient(135deg, #ffe58f, var(--accent));
  box-shadow: 0 14px 38px color-mix(in srgb, var(--accent) 22%, transparent);
}

.button-secondary { background: rgba(255,255,255,.05); }

.detail-poster-wrap { position: relative; }

.detail-poster-glow {
  position: absolute;
  inset: 10% 0 -4%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  filter: blur(62px);
  opacity: .24;
}

.detail-poster {
  position: relative;
  min-height: 510px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 75% 14%, color-mix(in srgb, var(--accent) 54%, white), transparent 9rem),
    linear-gradient(145deg, color-mix(in srgb, var(--accent-3) 58%, #171a3b), #121630 52%, color-mix(in srgb, var(--accent) 30%, #171026));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.detail-poster::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -95px;
  top: 80px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255,255,255,.025), inset 0 0 76px color-mix(in srgb, var(--accent-2) 15%, transparent);
}

.poster-code {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #e8e7f7;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
}

.poster-symbol {
  position: absolute;
  inset: 68px 10px 92px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.88);
  font-size: 250px;
  line-height: 1;
  filter: drop-shadow(0 28px 34px rgba(0,0,0,.25));
  transform: rotate(-8deg);
}

.poster-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
}

.poster-caption small {
  color: var(--accent-2);
  font-weight: 900;
  letter-spacing: .13em;
}

.poster-caption strong {
  margin-top: 6px;
  display: block;
  font-size: 27px;
  letter-spacing: -.03em;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(14px);
}

.info-item {
  min-height: 104px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

.info-item:last-child { border-right: 0; }
.info-item span { color: #8f92b0; font-size: 11px; letter-spacing: .1em; }
.info-item strong { font-size: 15px; }

section { padding: 96px 0; }

.section-head {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-kicker {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.07;
  letter-spacing: -.045em;
}

.section-note {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
}

.story-card, .quote-card {
  min-height: 360px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
}

.story-card h3 {
  margin: 0 0 22px;
  max-width: 680px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -.04em;
}

.story-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.9;
}

.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 18rem),
    linear-gradient(145deg, color-mix(in srgb, var(--accent-3) 15%, transparent), rgba(255,255,255,.035));
}

.quote-mark {
  color: var(--accent-2);
  font-size: 68px;
  line-height: .8;
  opacity: .7;
}

.quote-card blockquote {
  margin: 28px 0;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.5;
  letter-spacing: -.025em;
  font-weight: 750;
}

.quote-card cite { color: var(--muted); font-size: 12px; font-style: normal; }

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.chapter-card {
  min-height: 370px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.chapter-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 38%, rgba(255,255,255,.2));
  background: rgba(255,255,255,.065);
}

.chapter-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-2) 65%, white);
  outline-offset: 4px;
}

.chapter-visual {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--chapter-a), var(--chapter-b));
}

.chapter-visual::before {
  content: attr(data-symbol);
  position: absolute;
  right: -10px;
  bottom: -32px;
  color: rgba(255,255,255,.8);
  font-size: 140px;
  line-height: 1;
  transform: rotate(-10deg);
}

.chapter-visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
}

.chapter-number {
  margin: 18px 2px 8px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.chapter-card h3 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.chapter-card p { margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.chapter-more {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ececff;
  font-size: 12px;
  font-weight: 850;
}

.chapter-more span:last-child {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0b0d1d;
  background: var(--text);
  transition: transform .2s ease;
}

.chapter-card:hover .chapter-more span:last-child { transform: translate(2px, -2px); }

.program-panel {
  padding: 16px 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.045);
}

.program-row {
  padding: 24px 4px;
  display: grid;
  grid-template-columns: 110px 90px 1fr auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.program-row:last-child { border-bottom: 0; }
.program-date { color: var(--accent-2); font-size: 13px; font-weight: 850; }
.program-time { color: #9295b1; font-size: 12px; }
.program-title { font-weight: 850; }
.program-desc { margin-top: 5px; color: var(--muted); font-size: 12px; }
.program-state { padding: 7px 10px; border-radius: 999px; color: #9affd0; background: rgba(109,255,188,.1); font-size: 11px; font-weight: 850; }

.next-panel {
  padding: clamp(34px, 6vw, 68px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 96% 20%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 20rem),
    radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 24rem),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.next-panel h2 { max-width: 760px; }
.next-panel p { margin: 16px 0 0; color: var(--muted); }
.next-arrow { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: #0b0d1d; background: var(--text); font-size: 28px; font-weight: 900; transition: transform .2s ease; }
.next-panel:hover .next-arrow { transform: translate(4px, -4px); }

footer { padding: 38px 0 46px; color: #8e91ad; font-size: 12px; }
.footer-inner { padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }

.noscript {
  width: min(700px, calc(100% - 40px));
  margin: 60px auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

@media (max-width: 920px) {
  .nav-links a:not(.home-link) { display: none; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-poster-wrap { width: min(580px, 100%); margin: 0 auto; }
  .info-strip { grid-template-columns: repeat(2, 1fr); }
  .info-item:nth-child(2) { border-right: 0; }
  .info-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .story-grid { grid-template-columns: 1fr; }
  .chapter-grid { grid-template-columns: repeat(2, 1fr); }
  .program-row { grid-template-columns: 90px 70px 1fr; }
  .program-state { grid-column: 3; justify-self: start; }
}

@media (max-width: 620px) {
  .shell, .detail-nav { width: min(100% - 24px, var(--max)); }
  .detail-nav { top: 8px; margin-top: 8px; }
  .home-link { padding: 9px 12px !important; }
  .detail-hero { min-height: 0; padding: 62px 0 50px; }
  h1 { font-size: clamp(50px, 15vw, 70px); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .detail-poster { min-height: 430px; border-radius: 26px; }
  .poster-symbol { font-size: 205px; }
  .info-strip { grid-template-columns: 1fr; }
  .info-item { min-height: 88px; border-right: 0; border-bottom: 1px solid var(--line); }
  .info-item:last-child { border-bottom: 0; }
  section { padding: 74px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .story-card, .quote-card { min-height: 0; padding: 28px 22px; }
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-card { min-height: 0; }
  .program-panel { padding: 8px 20px; }
  .program-row { grid-template-columns: 72px 1fr; gap: 11px; }
  .program-time { grid-column: 1; }
  .program-copy { grid-column: 2; grid-row: 1 / span 2; }
  .program-state { grid-column: 2; }
  .next-panel { grid-template-columns: 1fr; padding: 30px 24px; }
  .next-arrow { width: 62px; height: 62px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
