:root {
  --bg: #0b0b0c;
  --bg-elevated: #141416;
  --bg-soft: #1c1c20;
  --bg-card: #18181b;
  --primary: #e60012;
  --primary-dark: #b8000e;
  --accent-start: #ff9a3c;
  --accent-mid: #ff5c7a;
  --accent-end: #ff2d6f;
  --gradient: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  --text: #f7f7f8;
  --text-muted: #a8a8b0;
  --text-dim: #7a7a84;
  --border: #2c2c32;
  --nav-h: 64px;
  --ad-h: 72px;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    "Source Han Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--ad-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;
  border: 0;
}

a {
  color: var(--accent-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-start);
}

ul,
ol {
  padding-left: 1.25rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
}

h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  position: relative;
  padding-bottom: 0.55rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient);
}

h3 {
  font-size: 1.15rem;
  color: #fff;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  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-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

/* 来自 myads.html 的粘性广告区：固定在导航栏下方 */
.site-ads-sticky {
  position: sticky;
  top: var(--nav-h);
  z-index: 999;
  background: rgba(20, 20, 22, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.35rem 0.75rem 0.55rem;
}

.site-ads-sticky .applist-title {
  color: #f0f0f0;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0.15rem 0 0.2rem;
}

.site-ads-sticky #ads figcaption,
.site-ads-sticky #ads .caption {
  color: #b8b8c0 !important;
}

.site-ads-sticky #ads {
  margin: 6px 0 2px;
}

.site-ads-sticky figure {
  margin: 0;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: block;
  background: #12060a;
  overflow: visible;
}

.hero-media {
  line-height: 0;
  background: #1a0508;
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-copy {
  background: linear-gradient(180deg, #1a0a10 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 1.75rem 0 2.25rem;
  max-width: 720px;
}

.hero-brand {
  display: inline-block;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.hero-lead {
  color: #ddd;
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 45, 111, 0.35);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ===== Sections ===== */
.section {
  padding: 2.75rem 0;
}

.section-alt {
  background: var(--bg-elevated);
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head p {
  max-width: 52rem;
}

/* 3:7 ratio blocks */
.split-37 {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

.split-37.reverse {
  grid-template-columns: 7fr 3fr;
}

.split-37.reverse .split-media {
  order: 2;
}

.split-37.reverse .split-body {
  order: 1;
}

.split-media {
  position: sticky;
  top: calc(var(--nav-h) + var(--ad-h) + 16px);
}

.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.split-media.landscape img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.split-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}

.split-body p:last-child {
  margin-bottom: 0;
}

/* Cards grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}

.media-card:hover {
  border-color: var(--accent-mid);
  transform: translateY(-2px);
}

.media-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #0a0a0a;
}

/* 最新视频封面为 16:9，完整显示不裁切 */
.card-grid.video-grid .media-card img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
}

.media-card .card-body {
  padding: 0.85rem 0.9rem 1rem;
}

.media-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.media-card p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-dim);
}

.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(--border);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
}

.artist-card img {
  width: 110px;
  height: 110px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: var(--gradient);
  padding: 2px;
}

.artist-card h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.artist-card p {
  font-size: 0.8rem;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--text-dim);
}

.breadcrumb a {
  color: var(--text-muted);
}

.page-hero {
  padding: 1.5rem 0 0.5rem;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.prose {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  margin: 1.25rem 0 2rem;
}

.prose h2 {
  margin-top: 1.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose li {
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

/* Feature mini grid */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

.feature-strip figure {
  margin: 0;
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.feature-strip img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.feature-strip img[src*="logo"] {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #111;
  padding: 1rem;
}

.feature-strip figcaption {
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* SEO keyword chips */
.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}

.keyword-cloud span,
.keyword-cloud a {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #080809;
  padding: 2.5rem 0 1.5rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-brand img {
  height: 42px;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
}

.footer-col h3 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 3rem 0;
}

.error-page .code {
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
}

.toc h2 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.toc ul {
  margin: 0;
  columns: 2;
  gap: 1.5rem;
}

.toc a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.highlight {
  color: #fff;
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .split-37,
  .split-37.reverse {
    grid-template-columns: 1fr;
  }

  .split-37.reverse .split-media,
  .split-37.reverse .split-body {
    order: initial;
  }

  .split-media {
    position: static;
  }

  .split-media img {
    max-height: 420px;
    width: auto;
    margin-inline: auto;
  }

  .card-grid,
  .artist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .toc ul {
    columns: 1;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 56px;
    --ad-h: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 0.85rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-bar {
    flex-wrap: wrap;
    min-height: var(--nav-h);
  }

  .hero-content {
    padding: 1.25rem 0 1.75rem;
  }

  .hero-brand {
    font-size: 1.55rem;
  }

  .hero h1 {
    font-size: 1.25rem;
  }

  .hero-lead {
    font-size: 0.92rem;
  }

  .card-grid,
  .artist-grid,
  .feature-strip {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid.video-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-body,
  .prose {
    padding: 1.1rem;
  }

  .site-ads-sticky #ads>div {
    width: 72px;
  }
}

@media (max-width: 400px) {
  .card-grid:not(.video-grid),
  .artist-grid {
    grid-template-columns: 1fr;
  }
}
