/* 糖心Vlog 官方站 - tx-log.cfd */
:root {
  --bg: #0b0b0f;
  --bg-soft: #14141c;
  --bg-card: #1a1a24;
  --bg-elevated: #22222e;
  --text: #f2f2f5;
  --text-muted: #a8a8b8;
  --text-dim: #7a7a8c;
  --accent: #ff2d55;
  --accent-hot: #ff4d6d;
  --accent-soft: rgba(255, 45, 85, 0.14);
  --gradient: linear-gradient(135deg, #ffb347 0%, #ff6b9d 45%, #c44dff 100%);
  --gradient-btn: linear-gradient(90deg, #ff4d6d, #ff2d55);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --header-h: 68px;
  --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;
  -webkit-text-size-adjust: 100%;
}

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;
  border: 0;
}

a {
  color: var(--accent-hot);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ff87a0;
}

ul,
ol {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 11, 15, 0.92);
  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: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 18px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text span {
  font-size: 12px;
  color: var(--text-dim);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--accent-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  display: block;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(255, 45, 85, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(196, 77, 255, 0.12), transparent 50%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ffb3c1;
  font-size: 13px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 800;
}

.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: 17px;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 45, 85, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 45, 85, 0.4);
  background: var(--accent-soft);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-dim);
  font-size: 13px;
}

.hero-meta strong {
  color: var(--text);
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  aspect-ratio: 9 / 16;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
  margin-inline: auto;
}

.hero-float {
  position: absolute;
  left: -12px;
  bottom: 24px;
  background: rgba(20, 20, 28, 0.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  width: min(220px, 70%);
  backdrop-filter: blur(8px);
}

.hero-float b {
  display: block;
  margin-bottom: 4px;
}

.hero-float span {
  color: var(--text-muted);
  font-size: 13px;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02), transparent);
}

.section-head {
  margin-bottom: 32px;
  max-width: 760px;
}

.section-head .eyebrow {
  color: #ff8da1;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Feature / category grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 45, 85, 0.35);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: var(--bg-soft);
}

.feature-card .body {
  padding: 16px 18px 20px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.feature-card a.more {
  font-size: 14px;
  font-weight: 600;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.shot-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.shot-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-item .cap {
  padding: 12px 14px 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.shot-item .cap strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 15px;
}

/* Content blocks for SEO text */
.prose {
  max-width: 860px;
}

.prose h2,
.prose h3 {
  margin: 28px 0 12px;
  line-height: 1.35;
}

.prose h2 {
  font-size: 26px;
}

.prose h3 {
  font-size: 20px;
  color: #ffe0e7;
}

.prose p {
  color: var(--text-muted);
  margin-bottom: 16px;
  text-align: justify;
}

.prose ul,
.prose ol {
  margin: 0 0 18px 1.2em;
  color: var(--text-muted);
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.toc h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.toc a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.toc a:last-child {
  border-bottom: 0;
}

.toc a:hover {
  color: var(--accent-hot);
}

/* Info / legal pages */
.page-hero {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255, 45, 85, 0.12), transparent 50%),
    var(--bg);
}

.page-hero h1 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 720px;
}

.legal-content {
  padding: 40px 0 64px;
}

.legal-content .prose {
  max-width: 900px;
}

.crumb {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 14px;
}

.crumb a {
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.faq-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* CTA band */
.cta-band {
  margin: 20px 0 0;
  padding: 36px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 45, 85, 0.22), rgba(196, 77, 255, 0.16)),
    var(--bg-card);
  border: 1px solid rgba(255, 45, 85, 0.25);
  text-align: center;
}

.cta-band h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* Two column media */
.media-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  margin: 28px 0;
}

.media-split.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.media-split img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 16;
  max-height: 520px;
  width: 100%;
  object-fit: cover;
  object-position: top;
  margin-inline: auto;
}

.media-split .copy h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.media-split .copy p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #111;
  font-weight: 800;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #08080c;
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--accent-hot);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  color: var(--text-dim);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 180px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

.error-page .code {
  font-size: clamp(72px, 14vw, 120px);
  font-weight: 900;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 480px;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.tag {
  font-size: 12px;
  color: #ffc2ce;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 45, 85, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Responsive - Tablet */
@media (max-width: 980px) {
  .hero-grid,
  .content-layout,
  .media-split,
  .media-split.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual img,
  .media-split img {
    max-height: 480px;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(11, 11, 15, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    gap: 4px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 24px, var(--max));
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .feature-grid,
  .shot-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .brand-text span {
    display: none;
  }

  .cta-band {
    padding: 28px 18px;
  }

  .hero-float {
    left: 8px;
    right: 8px;
    width: auto;
    bottom: 12px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
