:root {
  --bg: #0b0b0f;
  --bg-soft: #14141c;
  --bg-card: #1a1a24;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f7;
  --muted: #a8a8b8;
  --pink: #ff2d55;
  --pink-deep: #d4144a;
  --gold: #ffb020;
  --orange: #ff7a18;
  --grad: linear-gradient(135deg, #ffb020 0%, #ff2d55 55%, #c2185b 100%);
  --radius: 14px;
  --header-h: 58px;
  --sticky-ads-h: 86px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max: 1080px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--pink);
  text-decoration: none;
}

a:hover {
  color: #ff6b88;
  text-decoration: underline;
}

.container {
  width: min(100% - 28px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  background: #000;
  flex-shrink: 0;
}

.brand span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  padding: 6px 0;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.sticky-ads {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(16, 16, 22, 0.96);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sticky-ads.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-ads-inner {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 8px 10px;
  padding: 8px 0;
}

.sticky-ads a {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 25%;
  width: 25%;
  max-width: 88px;
  min-width: 0;
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
}

.sticky-ads a:hover {
  color: var(--text);
  text-decoration: none;
}

.sticky-ads img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #000 center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 15, 0.25) 0%, rgba(11, 11, 15, 0.78) 55%, rgba(11, 11, 15, 0.98) 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 45, 85, 0.28), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 48px 0 36px;
}

.hero-kicker {
  display: inline-block;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.25;
  max-width: 18ch;
}

.hero p {
  margin: 0 0 22px;
  color: #ddd;
  max-width: 36ch;
  font-size: 1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 45, 85, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding: 42px 0;
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.35;
}

.section-desc {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 62ch;
}

.ad-slot-top {
  position: relative;
  z-index: 2;
  background: rgba(16, 16, 22, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 4px 0 2px;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.ad-slot {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.ad-slot-top .ad-slot {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

/* 顶部广告图标与吸顶漂浮栏保持一致，强制一排四个 */
.ad-slot-top #ads {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 8px 10px;
  padding: 4px 0;
}

.ad-slot-top #ads > div {
  flex: 0 0 25%;
  width: 25%;
  min-width: 0;
  max-width: 88px;
}

.ad-slot-top #ads img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.ad-slot-top #ads .caption,
.ad-slot-top #ads figcaption {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 720px) {
  .ad-slot-top #ads {
    gap: 4px 6px;
    padding: 2px 0;
  }

  .ad-slot-top #ads > div {
    flex: 0 0 25%;
    width: 25%;
    max-width: none;
  }

  .ad-slot-top #ads img {
    width: 48px;
    height: 48px;
  }

  .sticky-ads-inner {
    gap: 4px 6px;
    padding: 6px 0;
  }

  .sticky-ads a {
    flex: 0 0 25%;
    width: 25%;
    max-width: none;
  }

  .sticky-ads img {
    width: 48px;
    height: 48px;
  }
}

.ratio-block {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 22px;
  align-items: start;
  margin: 28px 0;
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ratio-media {
  position: relative;
}

.ratio-media img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  background: #222;
}

.ratio-copy h2,
.ratio-copy h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.ratio-copy p {
  margin: 0 0 12px;
  color: #d7d7e0;
  font-size: 0.98rem;
}

.prose h2,
.prose h3 {
  line-height: 1.4;
  margin: 1.4em 0 0.6em;
}

.prose p {
  margin: 0 0 1em;
  color: #d8d8e2;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
  color: #d8d8e2;
}

.prose li {
  margin-bottom: 0.45em;
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 14px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 85, 0.35);
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #222;
}

.card-body {
  padding: 12px 12px 14px;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  line-height: 1.4;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.artist-card img {
  aspect-ratio: 1 / 1;
}

.drama-card img {
  aspect-ratio: 2 / 3;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 16px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.breadcrumb span {
  color: #666;
}

.page-hero {
  padding: 18px 0 8px;
}

.page-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0 28px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc a {
  display: inline-block;
  margin: 4px 12px 4px 0;
  color: #ddd;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: #09090d;
  padding: 36px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand p,
.site-footer p {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #ccc;
}

.copyright {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #777;
  font-size: 0.84rem;
  text-align: center;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.error-page h1 {
  font-size: clamp(2.4rem, 8vw, 4rem);
  margin: 0 0 8px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.highlight {
  color: var(--gold);
}

.keyword-box {
  margin: 20px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--pink);
  background: rgba(255, 45, 85, 0.06);
  border-radius: 0 12px 12px 0;
}

@media (max-width: 900px) {
  .ratio-block {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ratio-media img {
    aspect-ratio: 16 / 10;
    max-height: 280px;
    margin-inline: auto;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 12px;
  }

  .nav.open {
    display: flex;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 62vh;
  }


  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 32px 0;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 20px, var(--max));
  }

  .card-body h3 {
    font-size: 0.9rem;
  }
}
