/* 糖心Vlog官网 - mobile-first video platform theme */
:root {
  --bg: #0b0b0f;
  --bg-elevated: #14141c;
  --bg-card: #1a1a24;
  --bg-soft: #1f1f2c;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f7f4f8;
  --text-muted: #a9a4b3;
  --text-dim: #7d7788;
  --pink: #ff2d6a;
  --magenta: #f00084;
  --purple: #8e2de2;
  --orange: #ff4b2b;
  --mint: #7dceb8;
  --accent: var(--pink);
  --gradient: linear-gradient(110deg, #8e2de2 0%, #f00084 48%, #ff4b2b 100%);
  --gradient-soft: linear-gradient(135deg, rgba(142, 45, 226, 0.25), rgba(240, 0, 132, 0.18), rgba(255, 75, 43, 0.12));
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 64px;
  --ads-sticky-z: 90;
  --container: 1100px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Outfit", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(142, 45, 226, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(240, 0, 132, 0.14), transparent 50%),
    linear-gradient(180deg, #0d0d14 0%, var(--bg) 40%, #09090d 100%);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ff7aa8;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffd0e0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(1.7rem, 5vw, 2.55rem); }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.85rem); }
h3 { font-size: clamp(1.12rem, 2.8vw, 1.35rem); }

p { margin: 0 0 1rem; color: var(--text-muted); }

ul, ol { color: var(--text-muted); padding-left: 1.2rem; }

.container {
  width: min(100% - 1.5rem, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  background: rgba(11, 11, 15, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  width: auto;
  height: 34px;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: rgba(14, 14, 20, 0.97);
  border-bottom: 1px solid var(--line);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  padding: 0.75rem 0 1rem;
}

.site-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.7rem 1.25rem;
  color: var(--text);
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 45, 106, 0.12);
  color: #ff9fbe;
}

/* Sticky ads under nav */
.site-ads-sticky {
  position: sticky;
  top: var(--nav-h);
  z-index: var(--ads-sticky-z);
  background: rgba(12, 12, 18, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: none;
}

.site-ads-sticky.is-active {
  display: block;
}

.site-ads-sticky #applist,
#site-ads-inline #applist {
  margin: 0;
  padding: 0.45rem 0.5rem 0.55rem;
}

.site-ads-sticky .applist-title,
#site-ads-inline .applist-title {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.site-ads-sticky #ads,
#site-ads-inline #ads {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  background: transparent;
  margin: 0 auto;
  padding: 4px 10px 8px;
  width: 100%;
  max-width: 100%;
}

.site-ads-sticky #ads::-webkit-scrollbar,
#site-ads-inline #ads::-webkit-scrollbar {
  height: 4px;
}

.site-ads-sticky #ads > div,
#site-ads-inline #ads > div {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
  flex: 0 0 70px !important;
  box-sizing: border-box;
  flex-shrink: 0 !important;
}

.site-ads-sticky #ads figure,
#site-ads-inline #ads figure {
  margin: 0;
  width: 70px;
  flex-shrink: 0;
}

.site-ads-sticky #ads img,
#site-ads-inline #ads img {
  width: 65px !important;
  height: 65px !important;
  min-width: 65px !important;
  min-height: 65px !important;
  max-width: 65px !important;
  max-height: 65px !important;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #fff;
  flex-shrink: 0;
}

.site-ads-sticky #ads a,
#site-ads-inline #ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 18px;
  flex-shrink: 0;
}

.site-ads-sticky #ads .caption,
#site-ads-inline #ads .caption,
.site-ads-sticky #ads figcaption,
#site-ads-inline #ads figcaption {
  height: 15px;
  font-size: 11px;
  color: #bbb;
  text-align: center;
  width: 70px;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

#site-ads-inline {
  margin: 0.75rem 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0.25rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--text-dim);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* Hero: mobile = image full + text below; desktop = overlay */
.hero {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0a0a10;
}

.hero-media {
  position: relative;
  width: 100%;
  line-height: 0;
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.hero-media::after {
  content: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 1.25rem 0 1.6rem;
  width: min(100% - 1.5rem, var(--container));
  margin-inline: auto;
  background: transparent;
}

.hero h1,
.hero .lead {
  color: var(--text);
}

.hero .lead {
  color: var(--text-muted);
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.hero-brand img {
  height: 42px;
  width: auto;
}

.hero-brand span {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 16ch;
  margin-bottom: 0.7rem;
}

.hero .lead {
  max-width: 36ch;
  font-size: 1.02rem;
  color: #ddd6e3;
  margin-bottom: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* 关于我们：任意宽度都上下分离，避免文案盖住 banner */
.hero--about {
  display: block !important;
  min-height: 0 !important;
}

.hero--about .hero-media,
.hero--about .hero-content {
  position: relative;
  grid-row: auto !important;
  grid-column: auto !important;
  align-self: auto !important;
}

.hero--about .hero-media::after {
  content: none !important;
  display: none !important;
}

.hero--about .hero-media img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.hero--about .hero-content {
  padding: 1.25rem 0 1.6rem;
}

.hero--about h1 {
  max-width: none;
  color: var(--text) !important;
}

.hero--about .lead {
  max-width: 60ch;
  color: var(--text-muted) !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 28px rgba(240, 0, 132, 0.28);
}

.btn-primary:hover { color: #fff; filter: brightness(1.06); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* Sections */
.section {
  padding: 2.4rem 0;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.4rem;
}

.section-head p {
  max-width: 58ch;
}

/* 3:7 image-text rows */
.ratio-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ratio-block .media {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
  max-height: 520px;
}

.ratio-block .media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.ratio-block .copy h3 {
  margin-top: 0.2rem;
}

.ratio-block.reverse .media { order: 0; }

/* Cards grids */
.video-grid,
.artist-grid,
.drama-grid,
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.media-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 106, 0.35);
}

.media-card .thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
}

.video-grid .media-card .thumb {
  aspect-ratio: 16 / 9;
  background: #0a0a0f;
}

.drama-grid .media-card .thumb {
  aspect-ratio: 9 / 16;
}

.media-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.video-grid .media-card .thumb img,
.drama-grid .media-card .thumb img {
  object-fit: contain;
}

.artist-card .thumb img {
  object-fit: contain;
}

.media-card:hover .thumb img {
  transform: scale(1.03);
}

.media-card .meta {
  padding: 0.7rem 0.75rem 0.9rem;
}

.media-card .meta h3,
.media-card .meta strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
  margin: 0 0 0.25rem;
  line-height: 1.4;
}

.media-card .meta span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.artist-card .thumb {
  aspect-ratio: 16 / 9;
  background: #0a0a0f;
}

.artist-card .meta {
  text-align: center;
}

/* Article prose for SEO pages */
.prose {
  background: rgba(20, 20, 28, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
}

.prose h2 {
  margin-top: 1.6rem;
  padding-top: 0.4rem;
}

.prose h2:first-child { margin-top: 0; }

.prose li { margin-bottom: 0.4rem; }

.keyword-chip {
  display: inline-block;
  margin: 0.2rem 0.25rem 0.2rem 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 45, 106, 0.1);
  border: 1px solid rgba(255, 45, 106, 0.22);
  color: #ffb0c8;
  font-size: 0.85rem;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.internal-links a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.88rem;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.2rem 0;
}

.stat {
  padding: 1rem;
  border-radius: 12px;
  background: var(--gradient-soft);
  border: 1px solid var(--line);
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* Page hero compact */
.page-hero {
  padding: 1.5rem 0 0.5rem;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero p {
  max-width: 60ch;
}

/* Error pages */
.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-wrap .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.4rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #08080c;
  padding: 2rem 0 2.4rem;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.footer-brand img { height: 28px; width: auto; }

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
}

.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: #ffb0c8; }

.footer-note {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.86rem;
}

/* Animations */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content,
.ratio-block,
.media-card {
  animation: rise-in 0.7s ease both;
}

.media-card:nth-child(2) { animation-delay: 0.06s; }
.media-card:nth-child(3) { animation-delay: 0.12s; }
.media-card:nth-child(4) { animation-delay: 0.18s; }

@media (min-width: 720px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.45rem 0.75rem;
    font-size: 0.92rem;
  }

  .ratio-block {
    grid-template-columns: 3fr 7fr;
    align-items: center;
    gap: 1.4rem;
    padding: 1.2rem;
  }

  .ratio-block.reverse {
    grid-template-columns: 7fr 3fr;
  }

  .ratio-block.reverse .media { order: 2; }
  .ratio-block.reverse .copy { order: 1; }

  .ratio-block .media {
    aspect-ratio: 9 / 19.5;
    max-height: 480px;
  }

  .video-grid { grid-template-columns: repeat(4, 1fr); }
  .artist-grid { grid-template-columns: repeat(4, 1fr); }
  .drama-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }

  .stats { grid-template-columns: repeat(4, 1fr); }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .footer-links { grid-template-columns: 1fr 1fr; }

  .prose { padding: 1.6rem 1.8rem; }

  .site-ads-sticky #ads,
  #site-ads-inline #ads {
    justify-content: center;
  }

  /* Desktop hero can use soft overlay without hiding the banner */
  .hero {
    min-height: 0;
  }

  .hero-media {
    max-height: none;
  }

  .hero-content {
    padding: 1.8rem 0 2rem;
  }
}

@media (min-width: 980px) {
  :root { --nav-h: 70px; }
  .brand img { height: 38px; }

  .hero {
    display: grid;
    grid-template-rows: auto;
    min-height: 0;
  }

  .hero-media {
    grid-row: 1;
    grid-column: 1;
  }

  .hero-media img {
    width: 100%;
    height: auto;
    max-height: min(72vh, 680px);
    object-fit: cover;
    object-position: center top;
  }

  .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(8, 8, 12, 0.05) 0%, rgba(8, 8, 12, 0.25) 45%, rgba(8, 8, 12, 0.88) 100%),
      linear-gradient(90deg, rgba(8, 8, 12, 0.72) 0%, rgba(8, 8, 12, 0.2) 55%, transparent 100%);
    pointer-events: none;
  }

  .hero-content {
    grid-row: 1;
    grid-column: 1;
    align-self: end;
    padding: 2.6rem 0 2.4rem;
  }

  .hero h1 { color: #fff; }
  .hero .lead { color: #ddd6e3; }
}
