/* 糖心vlog 官网 - txweb.lat */
:root {
  --brand: #ff4d6d;
  --brand-dark: #e6365a;
  --brand-soft: #ffe0e8;
  --accent: #ff8a3d;
  --accent-2: #ffc24b;
  --ink: #1a1520;
  --ink-soft: #4a4450;
  --muted: #7a7380;
  --line: rgba(26, 21, 32, 0.08);
  --bg: #fff8f5;
  --bg-2: #ffffff;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(255, 77, 109, 0.12);
  --max: 1120px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Trebuchet MS", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 64px;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 194, 75, 0.35), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 77, 109, 0.22), transparent 50%),
    linear-gradient(180deg, #fff5ef 0%, var(--bg) 40%, #fff 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header fixed; ads.js merges header+ads into #site-topbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff8f5;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(255, 77, 109, 0.35);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(255, 77, 109, 0.35);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--brand-soft);
  color: var(--brand-dark);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 40%, var(--brand));
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 77, 109, 0.35);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 520px;
  animation: floatSoft 5s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  inset: 12% -8% -8% 12%;
  background: linear-gradient(135deg, rgba(255, 194, 75, 0.45), rgba(255, 77, 109, 0.35));
  filter: blur(40px);
  z-index: -1;
  border-radius: 40%;
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
  max-width: 46rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 224, 232, 0.35));
  border-block: 1px solid var(--line);
}

/* Feature cards / grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(26, 21, 32, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.shot {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(26, 21, 32, 0.05);
  transition: transform 0.25s ease;
}

.shot:hover {
  transform: translateY(-4px);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #1a1520;
}

.shot-body {
  padding: 0.85rem 1rem 1rem;
}

.shot-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.shot-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.media-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: center;
}

.media-row.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.media-row img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
}

.prose h2,
.prose h3 {
  font-family: var(--display);
  line-height: 1.35;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.45rem;
}

.prose h3 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.15rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 1.75rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
}

.toc a {
  display: inline-block;
  margin: 0.2rem 0.75rem 0.2rem 0;
}

.page-hero {
  padding: 2rem 0 0.5rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--muted);
}

.cta-band {
  margin: 2rem 0 0;
  padding: 1.75rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #ff8a3d, #ff4d6d 55%, #c84dff);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
}

.cta-band p {
  margin: 0 0 1rem;
  opacity: 0.95;
}

.cta-band .btn {
  background: #fff;
  color: var(--brand-dark);
}

.related {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.related h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.related-links a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.related-links a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 1.5rem;
  background: #1a1520;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: #ffc24b;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: #fff;
  font-weight: 800;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  background: linear-gradient(135deg, var(--accent), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page p {
  color: var(--ink-soft);
  max-width: 28rem;
  margin: 0 auto 1.25rem;
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
  }

  .nav a:hover {
    background: var(--brand-soft);
  }

  .hero-grid,
  .media-row,
  .media-row.reverse,
  .footer-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .shot img {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 560px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
