:root {
  --bg: #0a0a0c;
  --bg-elevated: #141418;
  --bg-card: #1a1a20;
  --text: #f5f5f7;
  --text-muted: #a8a8b3;
  --pink: #ff2d55;
  --orange: #ffb800;
  --magenta: #c2185b;
  --gradient: linear-gradient(135deg, #ffb800 0%, #ff2d55 55%, #c2185b 100%);
  --border: rgba(255, 255, 255, 0.08);
  --nav-h: 58px;
  --ads-h: 72px;
  --ads-h-mobile: 140px;
  --radius: 12px;
  --max: 1100px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--ads-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ff8aa0;
  text-decoration: none;
}

a:hover {
  color: var(--orange);
}

ul {
  padding-left: 1.2em;
}

.container {
  width: min(100% - 28px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 6px 0;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

/* myads sticky bar under nav + content top slot */
.site-ads-sticky {
  position: sticky;
  top: var(--nav-h);
  z-index: 999;
  background: rgba(20, 20, 24, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  padding: 2px 10px 6px;
}

.site-ads-sticky:empty,
.site-ads-top:empty {
  display: none !important;
}

.site-ads-top {
  display: block;
  margin: 14px 0 10px;
  padding: 12px 10px;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at top right, rgba(255, 45, 85, 0.18), transparent 55%),
    var(--bg-elevated);
  border: 1px solid rgba(255, 45, 85, 0.25);
  scroll-margin-top: calc(var(--nav-h) + var(--ads-h) + 12px);
}

.site-ads-sticky .applist,
.site-ads-top .applist {
  margin: 0 auto;
  max-width: var(--max);
}

.site-ads-sticky figure,
.site-ads-top figure {
  margin: 0;
}

/* Hero: image full-bleed on top, copy below (no overlay) */
.hero {
  position: relative;
  display: block;
  overflow: hidden;
  background: #1a0510;
}

.hero-media {
  width: 100%;
  line-height: 0;
  background: #1a0510;
}

.hero-media img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 18px 0 22px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  line-height: 1.35;
  max-width: 20em;
}

.hero p {
  margin: 0 0 16px;
  color: #e8e8ee;
  max-width: 36em;
  font-size: 0.98rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  color: #fff;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0 4px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb span {
  color: var(--text);
}

/* Sections */
.section {
  padding: 28px 0;
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
}

.section-desc {
  margin: 0 0 18px;
  color: var(--text-muted);
  max-width: 48em;
}

/* 3:7 media + text */
.media-row {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.media-row.reverse {
  grid-template-columns: 7fr 3fr;
}

.media-row.reverse .media-img {
  order: 2;
}

.media-row.reverse .media-body {
  order: 1;
}

.media-img {
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.media-img img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.media-body h2,
.media-body h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.media-body p {
  margin: 0 0 12px;
  color: #d8d8e0;
}

.media-body p:last-child {
  margin-bottom: 0;
}

/* Cards grids */
.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-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #000;
}

/* Latest video covers: show full poster without cropping */
#videos .card img,
.video-card img {
  aspect-ratio: auto;
  max-height: none;
  object-fit: contain;
  background: #0d0d10;
}

.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(--text-muted);
  font-size: 0.86rem;
}

.artist-card img {
  aspect-ratio: 1;
  object-fit: cover;
}

.drama-card img {
  aspect-ratio: 3 / 4;
}

/* Article / SEO prose */
.prose {
  color: #dcdce4;
}

.prose h2 {
  margin: 1.6em 0 0.6em;
  font-size: 1.3rem;
  color: var(--text);
}

.prose h3 {
  margin: 1.3em 0 0.5em;
  font-size: 1.1rem;
  color: var(--text);
}

.prose p {
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.35em;
}

.keyword-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.keyword-box a,
.keyword-box span {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.12);
  border: 1px solid rgba(255, 45, 85, 0.25);
  color: #ffc0cb;
  font-size: 0.82rem;
}

.faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

/* Error pages */
.error-page {
  min-height: 55vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 40px 0;
}

.error-page h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin: 0 0 10px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  background: #070709;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.site-footer h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1rem;
}

.site-footer a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.site-footer a:hover {
  color: var(--orange);
}

.copyright {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-size: 0.82rem;
}

/* Mobile */
@media (max-width: 900px) {
  .download-grid,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Keep image:text ≈ 3:7; reverse rows put image on the right */
  .media-row {
    grid-template-columns: 3fr 7fr;
  }

  .media-row.reverse {
    grid-template-columns: 7fr 3fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 12px;
    gap: 2px;
  }

  .nav.open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .media-row,
  .media-row.reverse {
    grid-template-columns: 3fr 7fr;
    gap: 12px;
    padding: 12px;
  }

  /* Mobile: keep 图3 : 文7, image always on the left */
  .media-row.reverse .media-img,
  .media-row.reverse .media-body {
    order: initial;
  }

  .media-img img {
    aspect-ratio: 9 / 16;
  }

  .media-body h2,
  .media-body h3 {
    font-size: 1.05rem;
  }

  html {
    scroll-padding-top: calc(var(--nav-h) + var(--ads-h-mobile) + 12px);
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    padding: 14px 0 18px;
  }

  .hero h1 {
    font-size: 1.25rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  body {
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .site-ads-sticky {
    padding: 2px 6px 4px;
  }
}
