/* 糖心Vlog APP - tx-1.baby */
:root {
  --bg: #0a0a0c;
  --bg-soft: #141418;
  --bg-card: #1a1a22;
  --text: #f2f2f5;
  --text-muted: #a0a0b0;
  --accent: #ff2d55;
  --accent-2: #ff6b35;
  --accent-3: #c44dff;
  --grad: linear-gradient(135deg, #ffb800 0%, #ff6b35 35%, #ff2d55 70%, #c44dff 100%);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --max: 1120px;
  --nav-h: 64px;
  --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;
}

a {
  color: #ff8fa3;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

ul, ol {
  padding-left: 1.25rem;
}

li {
  margin: 0.35rem 0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--text-muted);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 45, 85, 0.12);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

/* Sticky ads bar under header */
.ads-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0 6px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 2px;
  background: transparent;
  margin: 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: #fff;
  max-width: none;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
  color: inherit;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(255, 45, 85, 0.28);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
  line-height: 15px;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 107, 53, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(196, 77, 255, 0.15), 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-block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.15);
  color: #ff8fa3;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -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-cta {
  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.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 45, 85, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 45, 85, 0.4);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 520px;
  margin-inline: auto;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -8% auto;
  width: 55%;
  height: 40%;
  background: var(--grad);
  opacity: 0.25;
  filter: blur(40px);
  z-index: -1;
  border-radius: 50%;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 42em;
}

.section-head h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.section-head p {
  color: var(--text-muted);
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

/* Cards / 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;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(255, 45, 85, 0.35);
  transform: translateY(-2px);
}

.card-media {
  aspect-ratio: 9 / 14;
  overflow: hidden;
  background: #111;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.feature-card {
  padding: 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

/* Content blocks */
.prose {
  color: var(--text-muted);
}

.prose h2,
.prose h3 {
  color: var(--text);
  margin: 1.75rem 0 0.75rem;
  line-height: 1.35;
}

.prose h2 {
  font-size: 1.45rem;
}

.prose h3 {
  font-size: 1.15rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.content-split.reverse {
  direction: rtl;
}

.content-split.reverse > * {
  direction: ltr;
}

.content-split img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.shot-row img {
  border-radius: 10px;
  border: 1px solid var(--border);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* TOC / side nav on legal pages */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255, 45, 85, 0.12), transparent 60%),
    var(--bg);
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 40em;
}

.legal-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 2.5rem 0 3.5rem;
}

.legal-nav {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  align-self: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.legal-nav h2 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.legal-nav ul {
  list-style: none;
  padding: 0;
}

.legal-nav a {
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.legal-nav a:hover {
  background: rgba(255, 45, 85, 0.1);
  color: var(--text);
}

.legal-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem 2rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* CTA band */
.cta-band {
  padding: 3rem 0;
  text-align: center;
  background: var(--grad);
  position: relative;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 0.6rem;
}

.cta-band p {
  margin-bottom: 1.25rem;
  opacity: 0.95;
  max-width: 36em;
  margin-inline: auto;
}

.cta-band .btn-primary {
  background: #fff;
  color: #1a1a22;
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  color: #1a1a22;
}

/* Footer */
.site-footer {
  background: #070709;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 700;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col h3 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.keywords-cloud span,
.keywords-cloud a {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.keywords-cloud a:hover {
  border-color: rgba(255, 45, 85, 0.4);
  color: #ff8fa3;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--nav-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 28em;
  margin-inline: auto;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
}

td {
  color: var(--text-muted);
}

tr:last-child td {
  border-bottom: none;
}

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Internal link box */
.ilinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.ilinks a {
  padding: 0.45rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.88rem;
}

.ilinks a:hover {
  border-color: rgba(255, 45, 85, 0.45);
  color: #ff8fa3;
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 10, 12, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    gap: 0.15rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .content-split,
  .content-split.reverse,
  .legal-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .content-split.reverse {
    direction: ltr;
  }

  .grid-4,
  .shot-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .hero-visual img {
    max-height: 420px;
  }

  .legal-nav {
    position: static;
  }

  .section {
    padding: 2.25rem 0;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .card-media {
    aspect-ratio: 3 / 4;
  }
}

/* Print / a11y */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card,
  .btn,
  .card-media img {
    transition: none;
  }
}
