/* 糖心Vlog官网 — 大视频/短视频风格 · 简约高端 · 移动优先 */
:root {
  --bg: #0b0b0d;
  --bg-elevated: #141418;
  --bg-card: #1a1a20;
  --bg-soft: #22181f;
  --text: #f5f0f2;
  --text-muted: #a89aa1;
  --text-dim: #6e6268;
  --accent: #ff3d7a;
  --accent-2: #ff8a3c;
  --accent-grad: linear-gradient(135deg, #ff3d7a 0%, #ff6b4a 50%, #ff8a3c 100%);
  --gold: #c9a227;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 61, 122, 0.35);
  --radius: 10px;
  --nav-h: 58px;
  --ads-h: 118px;
  --max: 1180px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", Georgia, serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--ads-h) + 12px);
}

body.has-site-ads {
  --ads-h: 118px;
}
body:not(.has-site-ads) {
  --ads-h: 0px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--accent-2); }
ul, ol { padding-left: 1.25em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); margin-bottom: .75rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 1rem; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin: 0 0 .6rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— 顶栏 —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 11, 13, 0.92);
  backdrop-filter: blur(14px);
  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: .55rem;
  flex-shrink: 0;
}
.logo img { height: 36px; width: auto; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: .04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  padding: .45rem .7rem;
  font-size: .92rem;
  border-radius: 6px;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 61, 122, 0.12);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* —— myads 固定广告条（导航下方） —— */
.site-ads-sticky {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(180deg, #1a1016 0%, #120e12 100%);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: .35rem .75rem .55rem;
  max-height: calc(var(--ads-h) + 20px);
  overflow: auto;
}

.site-ads-sticky .applist-title,
.site-ads-top .applist-title {
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: .15rem;
}

.site-ads-sticky #ads .caption,
.site-ads-sticky [id^="ads-"] .caption,
.site-ads-top #ads .caption,
.site-ads-top [id^="ads-"] .caption {
  color: #c8c0c4 !important;
}

.site-ads-top {
  margin: 0 0 1.5rem;
  padding: 1rem .75rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 61, 122, 0.14), transparent 55%),
    var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* —— Hero —— */
.hero {
  position: relative;
  margin-top: calc(var(--nav-h) + var(--ads-h));
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .88;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,13,.25) 0%, rgba(11,11,13,.55) 45%, rgba(11,11,13,.96) 100%),
    linear-gradient(90deg, rgba(11,11,13,.75) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0 3rem;
  max-width: 640px;
  animation: fadeUp .9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .4rem;
  letter-spacing: .06em;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: .85rem;
}

.hero-desc {
  color: rgba(245, 240, 242, 0.82);
  font-size: 1rem;
  margin-bottom: 1.4rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent-grad);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(255, 61, 122, 0.35);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text) !important;
  border: 1px solid var(--line);
}

/* —— 页面主体偏移 —— */
.page-main {
  margin-top: calc(var(--nav-h) + var(--ads-h));
  padding: 2rem 0 4rem;
}

/* —— 面包屑 —— */
.breadcrumb {
  font-size: .85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { color: var(--text); }
.breadcrumb ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: .45rem;
  color: var(--text-dim);
}

/* —— 章节 —— */
.section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: none; }

.section-head {
  margin-bottom: 1.5rem;
  max-width: 46em;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .45rem;
}
.section-head p { margin-bottom: 0; }

/* 3:7 图文 —— 图30% 文70% */
.ratio-37 {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 2rem;
}
.ratio-37.reverse { grid-template-columns: 7fr 3fr; }
.ratio-37.reverse .ratio-media { order: 2; }
.ratio-37.reverse .ratio-text { order: 1; }

.ratio-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ratio-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}
.ratio-media:hover img { transform: scale(1.03); }
.ratio-media.landscape img {
  aspect-ratio: 16 / 10;
  object-position: center;
}
.ratio-media.square img {
  aspect-ratio: 1;
}

.ratio-text h3 { margin-top: .2rem; }
.ratio-text p:last-child { margin-bottom: 0; }

/* 视频/艺人网格 */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.media-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.media-card .thumb {
  position: relative;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-card .thumb img {
  width: 100%;
  height: 100%;
  transition: transform .45s;
}
.media-card:hover .thumb img { transform: scale(1.02); }
.media-card .meta {
  padding: .75rem .85rem 1rem;
}
.media-card .meta h3,
.media-card .meta .title {
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: .25rem;
  color: var(--text);
}
.media-card .meta .sub {
  font-size: .8rem;
  color: var(--text-dim);
}

/* 最新视频封面为横版物料，完整展示不裁切 */
.video-card .thumb {
  aspect-ratio: 16 / 9;
}
.video-card .thumb img {
  object-fit: contain;
  object-position: center;
}
.grid-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.artist-card .thumb { aspect-ratio: 3 / 4; }
.artist-card .thumb img { object-fit: cover; object-position: center top; }
.drama-card .thumb { aspect-ratio: 2 / 3; }
.drama-card .thumb img { object-fit: contain; object-position: center top; }

/* 功能列表 */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.feature-list li {
  position: relative;
  padding: .45rem 0 .45rem 1.4rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .9rem;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--accent-grad);
}

/* FAQ / SEO 长文块 */
.seo-block {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  margin-bottom: 1.25rem;
}
.seo-block h3 { margin-bottom: .75rem; }
.seo-block p { font-size: .96rem; }

.faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: .65rem;
  padding: .85rem 1.1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  margin-right: .55rem;
  color: var(--accent);
  font-weight: 700;
}
.faq details[open] summary::before { content: "−"; }
.faq details p {
  margin: .75rem 0 0;
  font-size: .94rem;
}

/* 内链区 */
.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.internal-links a {
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: .82rem;
}
.internal-links a:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* 页脚 */
.site-footer {
  background: #08080a;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand img { height: 40px; margin-bottom: .75rem; }
.footer-brand p { font-size: .88rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .75rem;
  color: var(--text);
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: var(--text-muted); font-size: .88rem; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: .8rem;
  color: var(--text-dim);
  text-align: center;
}

/* 错误页 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}
.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: .5rem;
}

/* 条款页正文 */
.legal-content {
  max-width: 780px;
}
.legal-content h2 {
  margin-top: 2rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--line);
}
.legal-content h3 { margin-top: 1.25rem; }

/* 移动端 */
@media (max-width: 960px) {
  .ratio-37,
  .ratio-37.reverse {
    grid-template-columns: 1fr;
  }
  .ratio-37.reverse .ratio-media,
  .ratio-37.reverse .ratio-text { order: unset; }
  .ratio-media img { aspect-ratio: 9 / 14; max-height: 420px; margin-inline: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-videos { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 52px;
    --ads-h: 130px;
  }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(14, 12, 15, 0.98);
    border-bottom: 1px solid var(--line);
    padding: .75rem;
    gap: .25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: .7rem .85rem; }
  /* 移动端 Hero：图片完整展示，文案置于下方不遮挡 */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    overflow: visible;
    background: var(--bg);
  }
  .hero-bg {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
    opacity: 1;
    display: block;
  }
  .hero::after { display: none; }
  .hero-content {
    position: relative;
    z-index: 1;
    max-width: none;
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
    padding: 1.15rem 0 1.5rem;
    background: transparent;
  }
  .hero-brand { font-size: 1.85rem; }
  .hero h1 { font-size: 1.05rem; }
  .hero-desc { font-size: .92rem; margin-bottom: 1rem; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .grid-videos { grid-template-columns: 1fr; gap: .75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .media-card .meta { padding: .55rem .6rem .75rem; }
  .media-card .meta .title { font-size: .82rem; }
  .section { padding: 1.75rem 0; }
}

@media (max-width: 400px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
}

/* 打印/可读性辅助 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
