:root {
  --bg: #0a0a0c;
  --bg-elevated: #121218;
  --bg-card: #16161f;
  --bg-soft: #1c1c28;
  --text: #f5f2f7;
  --text-muted: #a8a0b0;
  --line: rgba(255, 255, 255, 0.08);
  --pink: #ff2d7a;
  --magenta: #e0006e;
  --gold: #d4af37;
  --gold-soft: #f0d78c;
  --orange: #ffb020;
  --gradient: linear-gradient(135deg, #ffb020 0%, #ff2d7a 55%, #c4006a 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 176, 32, 0.18), rgba(255, 45, 122, 0.18));
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --nav-h: 64px;
  --ads-h: 0px;
  --dl-h: 0px;
  --container: 1120px;
  --font-display: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 45, 122, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(212, 175, 55, 0.08), transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--pink);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.35rem); }

p { margin: 0 0 1em; color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 45, 122, 0.12);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(255, 45, 122, 0.35);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

/* Sticky site ads (from myads.html) */
.site-ads-sticky {
  position: sticky;
  top: var(--nav-h);
  z-index: 999;
  background: rgba(18, 18, 24, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0.75rem 0.55rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: rgba(255, 255, 255, 0.25);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb [aria-current="page"] { color: var(--gold-soft); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.15) 0%, rgba(10, 10, 12, 0.55) 45%, rgba(10, 10, 12, 0.96) 100%),
    linear-gradient(90deg, rgba(10, 10, 12, 0.55), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 2.5rem;
  max-width: 720px;
}

.hero-brand {
  display: inline-block;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
}

.hero h1 {
  margin-bottom: 0.7rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(245, 242, 247, 0.88);
  max-width: 36em;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gradient);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(255, 45, 122, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--text) !important;
}

/* Sections */
.section {
  padding: 3.2rem 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.section-head p {
  margin-bottom: 0;
}

/* Ad / download block */
.download-panel {
  scroll-margin-top: calc(var(--nav-h) + var(--ads-h) + 12px);
  background: var(--gradient-soft);
  border: 1px solid rgba(255, 45, 122, 0.25);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin: 1.5rem 0 0;
}

.download-panel h2 {
  margin-bottom: 0.4rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 1rem 0.75rem;
  background: rgba(10, 10, 12, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
}

.app-card img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

.app-card .name {
  font-weight: 700;
  font-size: 0.92rem;
}

.app-card .badge {
  font-size: 0.72rem;
  color: var(--gold-soft);
}

.app-card .btn {
  width: 100%;
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Content layout 3:7 */
.content-row {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 2.25rem;
}

.content-row.reverse {
  grid-template-columns: 7fr 3fr;
}

.content-row.reverse .content-media {
  order: 2;
}

.content-row.reverse .content-body {
  order: 1;
}

.content-media {
  position: sticky;
  top: calc(var(--nav-h) + var(--ads-h) + 16px);
}

.content-media figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.content-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.content-media figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.content-body h2,
.content-body h3 {
  color: var(--text);
}

.content-body ul {
  margin: 0 0 1em;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.content-body li {
  margin-bottom: 0.4rem;
}

.content-body li::marker {
  color: var(--pink);
}

/* Cards grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 45, 122, 0.4);
}

.media-card .thumb {
  overflow: hidden;
  background: #0a0a0c;
  line-height: 0;
}

.media-card .thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.4s ease;
}

.media-card:hover .thumb img {
  transform: scale(1.02);
}

.media-card .meta {
  padding: 0.85rem;
}

.media-card h3 {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}

.media-card p {
  margin: 0;
  font-size: 0.82rem;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.artist-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 0.75rem 1.15rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.artist-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-3px);
}

.artist-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border: 2px solid rgba(255, 45, 122, 0.45);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.artist-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.artist-card p {
  margin: 0;
  font-size: 0.8rem;
}

.drama-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
}

.drama-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.drama-card .thumb {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.drama-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drama-card h3 {
  font-size: 0.88rem;
  margin: 0;
  padding: 0.7rem 0.65rem;
}

/* Feature chips */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.2rem 0;
}

.feature-item {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.feature-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--gold-soft);
}

.feature-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Article blocks */
.article-block {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  margin-bottom: 1.5rem;
}

.article-block h2,
.article-block h3 {
  margin-top: 1.25rem;
}

.article-block h2:first-child,
.article-block h3:first-child {
  margin-top: 0;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.seo-links a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 45, 122, 0.1);
  border: 1px solid rgba(255, 45, 122, 0.2);
  color: var(--text);
  font-size: 0.85rem;
}

.seo-links a:hover {
  background: rgba(255, 45, 122, 0.2);
  color: #fff;
}

/* Page header */
.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero .lead {
  max-width: 46rem;
  color: rgba(245, 242, 247, 0.85);
}

/* Legal / prose */
.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 2rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.prose h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.prose ul, .prose ol {
  color: var(--text-muted);
  padding-left: 1.2rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 3rem 0;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: #070709;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
}

.footer-col h3 {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  color: var(--gold-soft);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--pink); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content,
.download-panel,
.content-row,
.media-card,
.artist-card {
  animation: fadeUp 0.7s ease both;
}

.download-panel { animation-delay: 0.08s; }

/* Mobile */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(12, 12, 16, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem;
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
  }

  .nav-cta { display: none; }

  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-row,
  .content-row.reverse {
    grid-template-columns: 1fr;
  }

  .content-row.reverse .content-media,
  .content-row.reverse .content-body {
    order: initial;
  }

  .content-media {
    position: static;
  }

  .content-media img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
  }

  .card-grid,
  .artist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .drama-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* 移动端 Hero：图上文下，避免文案遮挡主视觉 */
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 220px;
    max-height: 42vh;
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .hero-media::after {
    background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 12, 0.55) 100%);
  }

  .hero-content {
    max-width: none;
    padding: 1.35rem 0 1.75rem;
    background: var(--bg);
  }

  .hero-lead {
    font-size: 0.95rem;
  }
}

@media (max-width: 520px) {
  :root {
    --nav-h: 58px;
  }

  #ads > div {
    width: calc(50% - 10px);
    max-width: 90px;
  }

  .hero-media {
    aspect-ratio: 4 / 3;
    max-height: 38vh;
  }

  .card-grid,
  .artist-grid,
  .drama-grid,
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }

  .app-card img {
    width: 52px;
    height: 52px;
  }
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
