/* 糖心Vlog 官网 - tv-log.lol */
:root {
  --bg: #0a0a0c;
  --bg-soft: #121218;
  --bg-card: #1a1a22;
  --bg-elevated: #22222c;
  --text: #f2f2f5;
  --text-muted: #a0a0b0;
  --text-dim: #6e6e80;
  --accent: #e91e63;
  --accent-hot: #ff416c;
  --accent-warm: #ff8a3d;
  --accent-grad: linear-gradient(135deg, #ff8a3d 0%, #e91e63 55%, #c2185b 100%);
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --max: 1120px;
  --header-h: 64px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(233, 30, 99, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(255, 138, 61, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(194, 24, 91, 0.1), transparent 60%),
    var(--bg);
  pointer-events: none;
}

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: #ff8fab;
}

ul, ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.4rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text);
  opacity: 0.92;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-domain {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  background: var(--accent-grad) !important;
  color: #fff !important;
  font-weight: 600;
  margin-left: 6px;
}

.nav-cta:hover {
  opacity: 0.92;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section-title {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 720px;
  margin-bottom: 28px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.section-head .section-title {
  margin-bottom: 6px;
}

.section-head .section-lead {
  margin-bottom: 0;
}

/* Hero */
.hero {
  padding: 48px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #ffc1d5;
  background: rgba(233, 30, 99, 0.15);
  border: 1px solid rgba(233, 30, 99, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero h1 span {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.35);
}

.btn-primary:hover {
  color: #fff;
  opacity: 0.95;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.hero-meta strong {
  color: var(--text);
  font-weight: 600;
}

.hero-visual {
  position: relative;
}

.hero-shot {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.hero-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 560px;
}

.hero-float {
  position: absolute;
  right: -8px;
  bottom: 24px;
  width: 42%;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.hero-float img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 240px;
}

/* Feature pills / category chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.chip:hover {
  color: var(--text);
  border-color: rgba(233, 30, 99, 0.45);
}

/* Cards & grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(233, 30, 99, 0.4);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(233, 30, 99, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.shot-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.shot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 30, 99, 0.45);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--bg-soft);
}

.shot-card figcaption {
  padding: 10px 12px 12px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.shot-card figcaption strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
  font-size: 0.92rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.two-col.reverse .col-media {
  order: 2;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.media-frame img {
  width: 100%;
  object-fit: cover;
}

.col-text h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin-bottom: 12px;
}

.col-text p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.col-text ul {
  color: var(--text-muted);
  margin: 12px 0 18px;
}

/* Article / long SEO content */
.prose {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 32px 0 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 22px 0 10px;
  color: #ffd0df;
}

.prose p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.prose ul,
.prose ol {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.prose strong {
  color: var(--text);
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.toc h2 {
  font-size: 1rem;
  margin: 0 0 10px;
  border: none;
  padding: 0;
  color: var(--text);
}

.toc ol {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.toc a {
  color: var(--text-muted);
}

.toc a:hover {
  color: var(--accent-hot);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Page hero for secondary pages */
.page-hero {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 680px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-dim);
}

.breadcrumb a:hover {
  color: var(--accent-hot);
}

.content-page {
  padding: 28px 0 56px;
}

.content-page .prose {
  max-width: 860px;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-box h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.error-box h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.error-box p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA band */
.cta-band {
  margin: 20px 0 40px;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--accent-grad);
  text-align: center;
  box-shadow: 0 16px 40px rgba(233, 30, 99, 0.3);
}

.cta-band h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
}

.cta-band .btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* Related links */
.related {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.related a {
  display: block;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
}

.related a span {
  display: block;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 4px;
}

.related a:hover {
  border-color: rgba(233, 30, 99, 0.45);
  color: #ffd0df;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #070709;
  padding: 40px 0 24px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 6px;
}

.footer-col h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.88rem;
  padding: 4px 0;
}

.footer-col a:hover {
  color: var(--accent-hot);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.notice {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255, 138, 61, 0.08);
  border: 1px solid rgba(255, 138, 61, 0.25);
  border-radius: var(--radius-sm);
  color: #ffc89a;
  font-size: 0.86rem;
}

/* Mobile nav */
.nav-open .nav {
  display: flex;
}

@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .two-col.reverse .col-media {
    order: 0;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .related,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-float {
    display: none;
  }

  .hero-shot img {
    max-height: 480px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 58px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(12, 12, 16, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 10px 14px 16px;
    gap: 4px;
  }

  .nav a {
    padding: 12px 14px;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }

  .section {
    padding: 40px 0;
  }

  .hero {
    padding: 28px 0 20px;
  }

  .prose {
    padding: 22px 16px;
  }

  .steps,
  .related,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-band {
    padding: 28px 18px;
  }
}

@media (max-width: 420px) {
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand-domain {
    display: none;
  }
}
