/* 糖心Vlog tvlog.mom — 响应式暗色主题 */
:root {
  --bg: #0b0b0d;
  --bg-2: #141418;
  --bg-3: #1c1c22;
  --card: #18181e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f4;
  --muted: #a0a0ab;
  --accent: #e11d48;
  --accent-2: #fb7185;
  --accent-soft: rgba(225, 29, 72, 0.15);
  --gold: #f59e0b;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --header-h: 64px;
  --font: "Segoe UI", "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;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  padding-left: 1.25rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-desktop a {
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: #fff;
  background: var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #be123c);
  color: #fff;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.45);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent-2);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.nav-mobile {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem 1rem;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--text);
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  background: var(--accent-soft);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(225, 29, 72, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(251, 113, 133, 0.12), transparent 50%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(90deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: #fff;
  display: block;
  font-size: 1.15rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  max-height: 520px;
}

.hero-float {
  position: absolute;
  right: -4%;
  bottom: 8%;
  width: 42%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-float img {
  aspect-ratio: 9 / 16;
  max-height: none;
  border-radius: 0;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-block: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--muted);
  max-width: 46rem;
}

.section-head .more {
  margin-top: 0.5rem;
  display: inline-block;
  font-size: 0.92rem;
}

/* Category chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.chip {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.chip:hover,
.chip.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Cards / grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 72, 0.35);
}

.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-3);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.card-badge.gold {
  background: var(--gold);
  color: #111;
}

.card-body {
  padding: 0.9rem 1rem 1.1rem;
}

.card-body h3 {
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.card-body p {
  color: var(--muted);
  font-size: 0.88rem;
}

.feature-card {
  padding: 1.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content prose for SEO */
.prose {
  max-width: 780px;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.85rem;
  padding-top: 0.5rem;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.65rem;
}

.prose p {
  margin-bottom: 1rem;
  color: #d4d4d8;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  color: #d4d4d8;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: #fff;
}

.seo-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-top: 1.5rem;
}

.seo-block h2 {
  margin-top: 0;
}

.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin: 1.5rem 0;
}

.toc h2 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.toc ol {
  columns: 2;
  gap: 1.5rem;
  color: var(--muted);
}

.toc a {
  color: var(--accent-2);
}

/* Screenshot showcase */
.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.shot-row img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--bg-3);
}

.shot-caption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--accent-2);
  margin-bottom: 0.6rem;
}

.faq details p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(225, 29, 72, 0.18), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 40rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent-2);
}

.content-wrap {
  padding: 2.5rem 0 3.5rem;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

/* Footer */
.site-footer {
  background: #08080a;
  border-top: 1px solid var(--border);
  padding: 2.75rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  margin-bottom: 0.85rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--accent-2);
}

/* CTA band */
.cta-band {
  margin: 2rem 0 0;
  padding: 2rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(225, 29, 72, 0.25), rgba(24, 24, 30, 0.95)),
    var(--card);
  border: 1px solid rgba(225, 29, 72, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.cta-band p {
  color: var(--muted);
  max-width: 34rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.hero-visual {
  animation: fadeUp 0.7s ease both;
}

.hero-visual {
  animation-delay: 0.12s;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .footer-grid,
  .shot-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .toc ol {
    columns: 1;
  }

  .hero-float {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-desktop,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .shot-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    max-height: 420px;
  }

  .section {
    padding: 2.25rem 0;
  }

  .cta-band {
    padding: 1.35rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (min-width: 769px) and (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 420px;
  }
}
