/* 糖心Vlog 官网 - Brand: orange→pink on dark */
:root {
  --bg: #0b0b0c;
  --bg-elevated: #151518;
  --bg-soft: #1c1c21;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.08);
  --accent-a: #ff8a1a;
  --accent-b: #ff3d8a;
  --accent-grad: linear-gradient(135deg, #ff8a1a 0%, #ff3d8a 100%);
  --link: #ff8a6a;
  --link-hover: #ffb08a;
  --radius: 12px;
  --nav-h: 64px;
  --appbar-h: 72px;
  --max: 1100px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

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;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; color: var(--text-muted); }
p strong, li strong { color: var(--text); }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; color: var(--text-muted); }
li { margin-bottom: 0.45em; }

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header + sticky app bar */
.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-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand:hover { text-decoration: none; color: var(--text); }

.brand img {
  height: 40px;
  width: auto;
}

.brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-soft);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* myads.html 广告位：内容顶部，下滑固定在导航下方 */
.site-ads-wrap {
  position: sticky;
  top: var(--nav-h);
  z-index: 900;
  margin: 12px 0 20px;
  padding: 10px 12px 6px;
  background: rgba(16, 16, 20, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.site-ads-wrap .applist-title {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.site-ads-wrap #ads {
  margin: 6px 0 2px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-ads-wrap #ads figcaption,
.site-ads-wrap #ads .caption {
  color: #a1a1aa;
}

.site-ads-wrap #ads > div {
  margin: 4px 6px;
  flex: 0 0 70px;
  width: 70px;
  min-width: 70px;
}

.site-ads-wrap #ads img {
  width: 65px !important;
  height: 65px !important;
  max-width: none !important;
  min-width: 65px;
  min-height: 65px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(72vh, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.25) 0%, rgba(11,11,12,0.55) 45%, rgba(11,11,12,0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 48px 0 40px;
  animation: fadeUp 0.8s ease both;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-brand img {
  height: 56px;
  width: auto;
}

.hero h1 {
  margin-bottom: 12px;
  max-width: 18em;
}

.hero .sub {
  max-width: 36em;
  color: #d4d4d8;
  margin-bottom: 22px;
  font-size: 1.05rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,0.14);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes softIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #52525b;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* Layout 3:7 media-text */
.section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  animation: softIn 0.6s ease both;
}

.section-title {
  margin-bottom: 8px;
}

.section-lead {
  margin-bottom: 24px;
  max-width: 48em;
}

.split {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 28px;
  align-items: start;
}

.split.reverse {
  grid-template-columns: 7fr 3fr;
}

.split .media {
  position: sticky;
  top: calc(var(--nav-h) + var(--appbar-h) + 16px);
}

.split .media figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.split .media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.split .media figcaption {
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.split .copy h2,
.split .copy h3 {
  color: var(--text);
}

/* Cards / grids for videos, artists, dramas */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.media-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.media-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 138, 26, 0.4);
}

.media-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #0a0a0a;
}

/* 最新视频封面均为 16:9，完整展示不裁切 */
#videos .media-card img,
.video-grid .media-card img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
}

.media-card .body {
  padding: 12px;
}

.media-card h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.media-card p {
  font-size: 0.82rem;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-item {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 16px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: center;
}

.feature-item img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  max-height: 280px;
}

.feature-item h3 { margin-bottom: 8px; }
.feature-item p { margin: 0; font-size: 0.92rem; }

/* Article body for long SEO text */
.article {
  max-width: 48em;
}

.article h2 {
  margin-top: 1.6em;
  padding-top: 0.4em;
  border-top: 1px solid var(--border);
}

.article h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
}

.toc h2 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--link); }

.keyword-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.keyword-box span,
.keyword-box a {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
}

.keyword-box a:hover {
  border-color: var(--accent-b);
  color: var(--text);
}

.internal-links {
  margin: 24px 0;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.internal-links h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.internal-links ul { margin-bottom: 0; }

/* Page header */
.page-hero {
  padding: 28px 0 8px;
}

.page-hero h1 {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 40px 0 28px;
  background: #08080a;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand img {
  height: 44px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 28em;
}

.footer-col h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--link); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: #71717a;
  text-align: center;
}

/* Error pages */
.error-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

/* Mobile */
@media (max-width: 900px) {
  .split,
  .split.reverse,
  .feature-item {
    grid-template-columns: 1fr;
  }

  .split .media {
    position: static;
  }

  .split .media img {
    aspect-ratio: 16 / 10;
    max-height: 280px;
  }

  .feature-item img {
    max-height: 360px;
    aspect-ratio: 9 / 16;
    margin-inline: auto;
    max-width: 220px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 56px;
  }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--nav-h);
    flex-direction: column;
    background: #101014;
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 4px;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    width: 100%;
    padding: 12px 14px;
  }

  /* 移动端：Banner 完整展示，文案在下方，不遮挡图片 */
  .hero {
    min-height: 0;
    display: block;
    overflow: visible;
  }

  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .hero-media img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
  }

  .hero-media::after {
    display: none;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 16px 28px;
    background: var(--bg);
  }

  .hero h1 {
    font-size: 1.35rem;
    max-width: none;
  }

  .hero .sub {
    font-size: 0.95rem;
    max-width: none;
  }

  .hero-brand img {
    height: 44px;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .section { padding: 28px 0; }
}
