/* 糖心Vlog传媒官网 - tx3.lol */
:root {
  --brand: #e91e8c;
  --brand-dark: #c2185b;
  --brand-light: #ff6b9d;
  --accent: #ff8c00;
  --accent-2: #ff5e3a;
  --bg: #0f0f12;
  --bg-soft: #1a1a22;
  --bg-card: #22222c;
  --text: #f5f5f7;
  --text-muted: #a0a0b0;
  --border: rgba(255, 255, 255, 0.08);
  --gradient: linear-gradient(135deg, #ff8c00 0%, #e91e8c 50%, #9c27b0 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(233, 30, 140, 0.15));
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --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;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* 广告条跟在导航下方，由 ads.js 插入 .ads-wrap */

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(233, 30, 140, 0.15);
}

.menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 1.25rem 2.5rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 140, 0, 0.18), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(233, 30, 140, 0.2), transparent 45%),
    var(--bg);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--gradient-soft);
  border: 1px solid rgba(233, 30, 140, 0.35);
  color: var(--brand-light);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  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.75rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 20px rgba(233, 30, 140, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-light);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -10% -15% auto;
  width: 55%;
  height: 55%;
  background: var(--gradient);
  filter: blur(60px);
  opacity: 0.35;
  z-index: -1;
  border-radius: 50%;
}

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--text-muted);
  max-width: 48em;
}

.section-head .anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.chip:hover {
  color: var(--text);
  border-color: var(--brand);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card,
.content-card,
.shot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  padding: 1.5rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #111;
}

.shot-card.wide img {
  aspect-ratio: 9 / 19;
}

.shot-card figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shot-card figcaption strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.content-block h2,
.content-block h3 {
  margin-bottom: 0.85rem;
  scroll-margin-top: 80px;
}

.content-block h2 {
  font-size: 1.45rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.content-block h3 {
  font-size: 1.15rem;
  color: var(--brand-light);
  margin-top: 1.5rem;
}

.content-block p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.content-block p strong,
.content-block li strong {
  color: var(--text);
}

.content-block ul,
.content-block ol {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.prose {
  color: var(--text-muted);
}

.prose p {
  margin-bottom: 1rem;
}

.prose h2 {
  color: var(--text);
  font-size: 1.4rem;
  margin: 2rem 0 0.85rem;
  scroll-margin-top: 80px;
}

.prose h3 {
  color: var(--brand-light);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.65rem;
}

.media-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 1.25rem 0;
}

.media-row img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
}

.media-row.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.media-row.reverse img {
  order: 2;
}

.toc {
  background: var(--gradient-soft);
  border: 1px solid rgba(233, 30, 140, 0.25);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.toc h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  border: none;
  padding: 0;
}

.toc ol {
  columns: 2;
  column-gap: 2rem;
  color: var(--text-muted);
}

.toc a {
  color: var(--text);
}

.toc a:hover {
  color: var(--brand-light);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin: 0 0 0.5rem !important;
  color: var(--text) !important;
  font-size: 1.05rem !important;
}

.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--brand-light);
}

.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.65rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 42em;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

.error-page .code {
  font-size: clamp(4rem, 15vw, 7rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: #0a0a0d;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--brand-light);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(15, 15, 18, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 1rem;
  }

  .hero-inner,
  .grid-2,
  .media-row,
  .media-row.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .media-row.reverse img {
    order: 0;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .toc ol {
    columns: 1;
  }

  .hero {
    padding: 2rem 1rem 1.5rem;
  }

  .hero-visual {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .logo span {
    font-size: 1rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  .content-block {
    padding: 1.25rem;
  }
}
