/* 糖心Vlog官网 - 品牌主题样式 */
:root {
  --bg: #050505;
  --bg-soft: #0e0e0e;
  --bg-card: #161616;
  --bg-elevated: #1c1c1c;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --text-muted: #9a9a9a;
  --accent: #ff2d55;
  --accent-hot: #ff5a7a;
  --gold: #ffd24a;
  --orange: #ff8a3d;
  --magenta: #e0136c;
  --gradient: linear-gradient(120deg, #ffd24a 0%, #ff8a3d 38%, #ff2d55 72%, #c40d6a 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 210, 74, 0.18), rgba(255, 45, 85, 0.18));
  --nav-h: 64px;
  --ad-h: 72px;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--ad-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 45, 85, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(255, 210, 74, 0.1), transparent 50%),
    var(--bg);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-hot);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #fff;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.35;
  font-weight: 400;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.45rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.35rem); }

p { margin: 0 0 1rem; color: #d8d8d8; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; color: #d8d8d8; }
li { margin-bottom: 0.45rem; }

.container {
  width: min(100% - 2rem, var(--max));
  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 / Nav ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.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.55rem;
  color: #fff;
  flex-shrink: 0;
  max-width: min(58vw, 220px);
}

.brand img {
  height: 40px;
  width: auto;
  max-width: 160px;
  border-radius: 6px;
  object-fit: contain;
  object-position: left center;
  background: #000;
}

.brand-text {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #d0d0d0;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 45, 85, 0.15);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ========== myads 广告位（对齐 myads.html 样式） ========== */
.site-ads-sticky {
  position: sticky;
  top: var(--nav-h);
  z-index: 999;
  background: rgba(18, 18, 18, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-ads-top {
  padding: 0.75rem 0 0.35rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.site-ads-inner {
  padding: 0.45rem 0 0.65rem;
}

.site-ads-sticky .applist,
.site-ads-top .applist {
  width: 100%;
}

.site-ads-sticky .applist-title,
.site-ads-top .applist-title {
  text-align: center;
  color: #f0f0f0;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.4;
}

/* 与 myads.html #ads 一致，同时覆盖 .ads-slot（禁止错误改写后代选择器） */
.site-ads-sticky #ads,
.site-ads-sticky .ads-slot,
.site-ads-top #ads,
.site-ads-top .ads-slot {
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 6px;
  background: transparent;
  margin: 8px 0 4px;
  width: 100%;
  min-height: 88px;
  visibility: visible !important;
  opacity: 1 !important;
}

.site-ads-sticky #ads > div,
.site-ads-sticky .ads-slot > div,
.site-ads-top #ads > div,
.site-ads-top .ads-slot > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
  flex: 0 0 70px;
}

.site-ads-sticky #ads img,
.site-ads-sticky .ads-slot img,
.site-ads-top #ads img,
.site-ads-top .ads-slot img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: #fff;
}

.site-ads-sticky #ads a,
.site-ads-sticky .ads-slot a,
.site-ads-top #ads a,
.site-ads-top .ads-slot a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
  color: inherit;
}

.site-ads-sticky #ads img:hover,
.site-ads-sticky .ads-slot img:hover,
.site-ads-top #ads img:hover,
.site-ads-top .ads-slot img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.site-ads-sticky #ads figcaption,
.site-ads-sticky #ads .caption,
.site-ads-sticky .ads-slot figcaption,
.site-ads-sticky .ads-slot .caption,
.site-ads-top #ads figcaption,
.site-ads-top #ads .caption,
.site-ads-top .ads-slot figcaption,
.site-ads-top .ads-slot .caption {
  height: 16px;
  margin-top: 4px;
  font-size: 11px;
  color: #d0d0d0;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-ads-sticky figure,
.site-ads-top figure {
  margin: 0;
  padding: 0;
}

#site-ads-top,
#site-ads-sticky {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.2) 0%, rgba(5, 5, 5, 0.45) 50%, rgba(5, 5, 5, 0.92) 100%),
    url("/banner-hero.jpg") center top / cover no-repeat;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 2.75rem;
  max-width: 720px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin-bottom: 0.6rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}

.hero p {
  font-size: 1.05rem;
  max-width: 36em;
  color: #e8e8e8;
}

.hero-actions,
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
  align-items: center;
}

.btn-row {
  margin-top: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #14080c;
  box-shadow: 0 10px 28px rgba(255, 45, 85, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ========== Sections ========== */
.section {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head p {
  max-width: 48em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent-hot);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

/* 图文 3:7 */
.ratio-37 {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.75rem;
  padding: 1.15rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ratio-37.reverse {
  grid-template-columns: 7fr 3fr;
}

.ratio-37.reverse .media { order: 2; }
.ratio-37.reverse .copy { order: 1; }

.ratio-37 .media {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  max-height: 420px;
}

.ratio-37 .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
}

.ratio-37:hover .media img {
  transform: scale(1.04);
}

.ratio-37 .copy h3 {
  margin-top: 0.15rem;
}

.keyword {
  color: #fff;
  font-weight: 600;
}

.ext-link {
  color: var(--accent-hot);
  border-bottom: 1px dashed rgba(255, 90, 122, 0.55);
}

.ext-link:hover {
  border-bottom-color: #fff;
}

/* Cards grids */
.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 1rem;
}

.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-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 45, 85, 0.4);
  transform: translateY(-3px);
}

.card-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #000;
}

.card-media.wide { aspect-ratio: 16 / 10; }
.card-media.phone { aspect-ratio: 9 / 16; max-height: 360px; }

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 最新视频封面完整显示 */
.video-card .card-media {
  aspect-ratio: auto;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card .card-media img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
}

.card-body {
  padding: 0.9rem 1rem 1.1rem;
}

.card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.card-body p {
  font-size: 0.88rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

.artist-card .card-media {
  aspect-ratio: 1;
}

.artist-card .card-body {
  text-align: center;
}

/* Download panel (legacy layout helpers) */
.download-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.download-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.download-item img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

.download-item h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.download-item p {
  font-size: 0.86rem;
  margin-bottom: 0.7rem;
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.15);
  color: var(--accent-hot);
  margin-bottom: 0.35rem;
}

.tag.gold {
  background: rgba(255, 210, 74, 0.15);
  color: #ffd24a;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.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: #666;
}

.breadcrumb a { color: #cfcfcf; }
.breadcrumb span { color: var(--accent-hot); }

.page-hero {
  padding: 1.5rem 0 0.5rem;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.prose {
  max-width: 48rem;
}

.prose h2 {
  margin-top: 1.75rem;
  padding-top: 0.5rem;
}

.prose h3 {
  margin-top: 1.25rem;
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.25rem 0 1.75rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
}

.toc a {
  display: block;
  padding: 0.25rem 0;
  color: #d0d0d0;
}

/* FAQ */
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}

.faq details[open] summary {
  color: var(--accent-hot);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  background: #050505;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-brand img,
.footer-logo {
  height: 40px;
  width: auto;
  max-width: 150px;
  border-radius: 6px;
  object-fit: contain;
  background: #000;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--text-muted);
  display: inline-block;
  padding: 0.2rem 0;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.82rem;
  color: #777;
  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-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Motion */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: fadeUp 0.7s ease both;
}

.reveal-delay { animation-delay: 0.15s; }
.reveal-delay-2 { animation-delay: 0.3s; }

/* Mobile */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .download-panel { grid-template-columns: 1fr; }
  .ratio-37,
  .ratio-37.reverse {
    grid-template-columns: 1fr;
  }
  .ratio-37.reverse .media,
  .ratio-37.reverse .copy { order: initial; }
  .ratio-37 .media {
    max-height: 320px;
    aspect-ratio: 3 / 4;
    max-width: 280px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 58px;
    --ad-h: 118px;
  }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--nav-h);
    flex-direction: column;
    align-items: stretch;
    background: rgba(8, 8, 8, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    gap: 0.25rem;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
  }

  .brand {
    max-width: min(70vw, 200px);
  }

  .brand img {
    height: 36px;
    max-width: 150px;
  }

  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 2rem 0; }

  /* 移动端 hero：图文分离，避免文案遮挡主图 */
  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
  }

  .hero-bg {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 200px;
    max-height: 360px;
    background:
      url("/banner-hero.jpg") center top / contain no-repeat,
      #000;
    transform: none;
    animation: none;
  }

  .hero-content {
    max-width: none;
    padding: 1.35rem 0 1.75rem;
    background: var(--bg);
  }

  .hero-actions,
  .btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-actions .btn,
  .btn-row .btn {
    width: 100%;
    margin-left: 0 !important;
  }
}

@media (max-width: 480px) {
  .grid-4,
  .grid-3 { grid-template-columns: 1fr 1fr; }

  .brand img {
    height: 32px;
    max-width: 130px;
  }
}
