/* 糖心Vlog官网 - 全站样式 */
:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #1a1a1a;
  --bg-card: #161616;
  --text: #f5f5f5;
  --text-muted: #a8a8a8;
  --text-dim: #777;
  --accent: #ff3d7f;
  --accent-2: #ff8c00;
  --accent-3: #ffd700;
  --crimson: #c41e3a;
  --border: rgba(255, 255, 255, 0.08);
  --gradient: linear-gradient(135deg, #ffd700 0%, #ff8c00 45%, #ff3d7f 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 61, 127, 0.15));
  --nav-h: 64px;
  --sticky-h: 72px;
  --radius: 8px;
  --max: 1180px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--sticky-h) + 16px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--nav-h);
}


img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-3); }
ul, ol { padding-left: 1.25em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.6em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin: 1.6em 0 0.7em; }
h3 { font-size: 1.2rem; margin: 1.2em 0 0.5em; }
p { margin-bottom: 1em; color: var(--text-muted); }
strong { color: #fff; font-weight: 600; }

.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }

/* ===== Nav ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  width: min(100% - 24px, var(--max));
  margin: 0 auto;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-link img { height: 40px; width: auto; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  padding: 0;
  margin: 0;
  align-items: center;
}
.nav-menu a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: #fff;
  background: rgba(255, 61, 127, 0.12);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.3rem;
}

/* ===== Site ads (from myads.html) ===== */
.site-ads-slot {
  background: #f7f7f8;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 16px 8px;
}
.site-ads-slot #applist {
  max-width: var(--max);
  margin: 0 auto;
}
.site-ads-sticky {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(247, 247, 248, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  padding: 8px 12px 4px;
}
.site-ads-sticky.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.site-ads-sticky-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.site-ads-sticky .applist-title {
  display: none;
}
.site-ads-sticky .ads-row {
  margin: 4px 0;
}
#site-ads {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1a0008;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.55) 50%, rgba(10,10,10,0.96) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.75) 0%, transparent 55%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 0 56px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  max-width: 640px;
  margin-left: max(16px, calc((100% - var(--max)) / 2));
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25em;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(1.25rem, 3.2vw, 1.65rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6em;
  -webkit-text-fill-color: #fff;
}
.hero-desc {
  color: rgba(255,255,255,0.78);
  font-size: 0.98rem;
  margin-bottom: 1.4em;
  max-width: 36em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); color: inherit; }
.btn-primary {
  background: var(--gradient);
  color: #111;
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
}
.btn-outline:hover { border-color: var(--accent); color: #fff; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 16px 0 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  gap: 6px;
  align-items: center;
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--text-dim);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--accent); }

/* ===== Content layout 3:7 ===== */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-2); }
.section-head {
  margin-bottom: 28px;
  max-width: 720px;
}
.section-head h2 {
  margin-top: 0;
  position: relative;
  padding-bottom: 12px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}
.section-head p { margin-bottom: 0; }

.ratio-37 {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}
.ratio-37.reverse { grid-template-columns: 7fr 3fr; }
.ratio-37 .media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-3);
  position: sticky;
  top: calc(var(--nav-h) + var(--sticky-h) + 16px);
}
.ratio-37 .media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}
.ratio-37 .copy h3 { margin-top: 0; }
.ratio-37 .copy p { font-size: 0.95rem; }

/* ===== Cards grids ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 61, 127, 0.4);
}
.video-card .cover {
  overflow: hidden;
  background: #111;
  line-height: 0;
}
.video-card .cover img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.35s;
}
.video-card:hover .cover img { transform: scale(1.03); }
.video-card .meta { padding: 12px 14px 16px; }
.video-card .meta h3 {
  font-size: 0.9rem;
  font-family: var(--font);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card .actor {
  font-size: 0.78rem;
  color: var(--accent);
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.artist-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.artist-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-3px);
}
.artist-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 2px solid transparent;
  background: var(--gradient);
  background-clip: padding-box;
}
.artist-card h3 {
  font-size: 0.95rem;
  font-family: var(--font);
  margin: 0;
}

.drama-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.drama-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.2s;
}
.drama-card:hover { transform: translateY(-4px); }
.drama-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.drama-card h3 {
  font-size: 0.85rem;
  font-family: var(--font);
  padding: 10px 12px 14px;
  margin: 0;
  text-align: center;
}

/* ===== Article / SEO prose ===== */
.prose {
  max-width: 860px;
}
.prose h2 { margin-top: 1.8em; }
.prose h3 { color: rgba(255,255,255,0.92); }
.prose p, .prose li { color: var(--text-muted); font-size: 0.96rem; }
.prose ul, .prose ol { margin-bottom: 1em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .seo-box {
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 18px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5em 0;
}
.prose .seo-box p:last-child { margin-bottom: 0; }

.feature-list {
  display: grid;
  gap: 12px;
  margin: 1.2em 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  padding: 14px 16px;
  background: var(--bg-3);
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.feature-list li strong { display: block; margin-bottom: 4px; }

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 14px 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  margin-right: 10px;
  color: var(--accent);
  font-weight: 700;
}
.faq details[open] summary::before { content: "−"; }
.faq details p { margin: 12px 0 0; font-size: 0.92rem; }

/* ===== Page header ===== */
.page-hero {
  padding: 36px 0 20px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,61,127,0.18), transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255,140,0,0.1), transparent 45%),
    var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 0.4em; }
.page-hero .lead { max-width: 640px; margin: 0; }

/* ===== Error pages ===== */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}
.error-page .code {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.2em;
}
.error-page h1 { font-size: 1.5rem; margin-bottom: 0.5em; }
.error-page p { max-width: 420px; margin: 0 auto 1.5em; }

/* ===== Footer ===== */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  margin-top: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand img { height: 44px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; }
.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-family: var(--font);
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.88rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content { animation: fadeUp 0.7s ease both; }
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== Mobile ===== */
@media (max-width: 960px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .artist-grid { grid-template-columns: repeat(2, 1fr); }
  .drama-grid { grid-template-columns: repeat(2, 1fr); }
  .ratio-37,
  .ratio-37.reverse {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ratio-37 .media { position: static; }
  .ratio-37 .media img { aspect-ratio: 9 / 14; max-height: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 56px;
    --sticky-h: auto;
  }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(12,12,12,0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 4px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { width: 100%; padding: 12px 16px; }
  .logo-text { font-size: 1rem; }
  .video-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .site-ads-slot { padding: 10px 8px 6px; }
  .site-ads-sticky { padding: 6px 8px 2px; }
  .section { padding: 36px 0; }
  .drama-grid { grid-template-columns: repeat(2, 1fr); }

  /* Hero：图片完整展示，文案置于下方，避免遮挡 */
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
  }
  .hero-bg {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
  }
  .hero-overlay { display: none; }
  .hero-content {
    position: relative;
    z-index: 1;
    padding: 20px 0 28px;
    margin: 0 auto;
    max-width: none;
    width: min(100% - 32px, var(--max));
    background: transparent;
  }
  .hero-brand { font-size: 1.85rem; }
  .hero h1 { font-size: 1.05rem; }
  .hero-desc { font-size: 0.9rem; margin-bottom: 1em; }
}

@media (max-width: 400px) {
  .artist-grid { grid-template-columns: 1fr 1fr; }
}
