/* 糖心Vlog传媒资源库 - tv-log.cyou */
:root {
  --bg: #0a0a0c;
  --bg-soft: #141418;
  --bg-card: #1a1a20;
  --text: #f2f2f5;
  --text-muted: #a0a0ad;
  --accent: #ff2d55;
  --accent-hot: #ff4d6d;
  --orange: #ff8c1a;
  --gold: #ffc107;
  --grad: linear-gradient(135deg, #ffb347 0%, #ff6b35 40%, #e91e63 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 179, 71, 0.15), rgba(233, 30, 99, 0.15));
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --max: 1180px;
  --header-h: 64px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  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; }
a:hover { color: #ff8fa3; }
ul, ol { padding-left: 1.25em; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; color: #fff; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); margin: 1.75rem 0 0.85rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.6rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
strong { color: #fff; font-weight: 600; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(255, 45, 85, 0.15);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 0 2rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 140, 26, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(233, 30, 99, 0.2), transparent 55%),
    linear-gradient(180deg, #12121a 0%, var(--bg) 100%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 45, 85, 0.35);
  color: #ffb4c4;
  margin-bottom: 0.85rem;
}

.hero h1 {
  margin-bottom: 0.85rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: #c8c8d4;
  margin-bottom: 1.5rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.btn:hover { transform: translateY(-1px); opacity: 0.95; }
.btn-primary { background: var(--grad); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  max-height: 420px;
}

/* Category chips */
.site-ads-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 95;
  min-height: 0;
}

.cat-bar {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  position: sticky;
  top: calc(var(--header-h) + 88px);
  z-index: 90;
}

.cat-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.cat-scroll a {
  flex-shrink: 0;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.88rem;
  border: 1px solid var(--border);
}

.cat-scroll a:hover {
  color: #fff;
  border-color: var(--accent);
}

/* Sections */
.section { padding: 2.5rem 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2 { margin: 0; }
.section-desc { color: var(--text-muted); font-size: 0.92rem; margin: 0.35rem 0 0; }
.more-link { color: var(--accent-hot); font-size: 0.9rem; white-space: nowrap; }

/* Media grids */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.media-grid-3 { grid-template-columns: repeat(3, 1fr); }
.media-grid-2 { grid-template-columns: repeat(2, 1fr); }

.media-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.media-item:hover {
  border-color: rgba(255, 45, 85, 0.4);
  transform: translateY(-2px);
}

.media-item a { color: inherit; display: block; }

.media-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
}

.media-meta {
  padding: 0.75rem 0.85rem 1rem;
}

.media-meta h3 {
  font-size: 0.92rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-meta p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--text-muted);
}

/* Feature split */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.feature-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: top;
}

.feature-body h3 { margin-top: 0; }
.feature-body p { margin-bottom: 0.75rem; }

/* SEO article */
.seo-article {
  padding: 2.5rem 0 3rem;
}

.seo-article .prose {
  max-width: 860px;
}

.prose p { color: #b8b8c6; }
.prose h2 {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.prose h2:first-of-type { border-top: none; margin-top: 1rem; }
.prose ul, .prose ol { margin-bottom: 1rem; color: #b8b8c6; }
.prose li { margin-bottom: 0.4rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.toc h2 { margin: 0 0 0.75rem; font-size: 1.05rem; border: none; padding: 0; }
.toc ol { margin: 0; color: var(--text-muted); }
.toc a { text-decoration: none; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
  background: var(--bg-card);
}

.faq-item h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.faq-item p { margin: 0; }

/* Page hero for subpages */
.page-hero {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(233, 30, 99, 0.12), transparent 60%);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-hot); }

.content-page {
  padding: 2rem 0 3rem;
}

.content-page .prose { max-width: 800px; }

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h1 { margin-bottom: 0.75rem; }
.error-page p { max-width: 28em; margin-inline: auto  ; margin-bottom: 1.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #070709;
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  color: #fff;
}

.footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.footer-col h4 { margin-bottom: 0.75rem; font-size: 0.95rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 0.9rem; margin: 0; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #6a6a78;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-copy { animation: fadeUp 0.6s ease both; }
.hero-visual { animation: fadeUp 0.7s 0.1s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #121216;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    gap: 0.25rem;
  }

  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 1rem; }

  .hero-grid,
  .feature-row,
  .feature-row.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .hero-visual img { max-height: 360px; aspect-ratio: 3 / 4; }

  .media-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .media-grid-3 { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 1.75rem 0; }
  .section-head { flex-direction: column; align-items: flex-start; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .container { width: min(100% - 1.25rem, var(--max)); }
  .media-meta { padding: 0.6rem 0.65rem 0.8rem; }
  .media-meta h3 { font-size: 0.85rem; }
}
