/* 糖心Vlog APP下载平台 - txvlog.rest */
:root {
  --c-pink: #e91e63;
  --c-pink-dark: #c2185b;
  --c-orange: #ff9800;
  --c-orange-deep: #f57c00;
  --c-grad: linear-gradient(135deg, #ff9800 0%, #ff5722 45%, #e91e63 100%);
  --c-grad-soft: linear-gradient(160deg, #fff5eb 0%, #ffe4ec 50%, #fff0f5 100%);
  --c-dark: #1a1a1e;
  --c-text: #2d2d32;
  --c-muted: #6b6b76;
  --c-border: #eee0e6;
  --c-bg: #fffafb;
  --c-card: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(233, 30, 99, 0.12);
  --max: 1120px;
  --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; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--c-pink-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-orange-deep); }
ul, ol { padding-left: 1.25em; }
h1, h2, h3, h4 { line-height: 1.35; color: var(--c-dark); font-weight: 700; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.35rem); }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); margin-bottom: .75rem; }
h3 { font-size: 1.15rem; margin-bottom: .5rem; }
p { margin-bottom: 1rem; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 250, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1.15rem; color: var(--c-dark);
}
.logo img {
  width: 40px; height: 40px; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(233, 30, 99, .25);
}
.logo span {
  background: var(--c-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  padding: .45rem .7rem; border-radius: 8px;
  color: var(--c-text); font-size: .92rem; font-weight: 500;
}
.nav a:hover, .nav a.active { background: #ffe8f0; color: var(--c-pink); }
.nav-cta {
  background: var(--c-grad) !important; color: #fff !important;
  font-weight: 600 !important; padding: .5rem 1rem !important;
  box-shadow: 0 4px 14px rgba(233, 30, 99, .35);
}
.nav-cta:hover { filter: brightness(1.05); color: #fff !important; }
.menu-btn {
  display: none; width: 42px; height: 42px; border: 0;
  background: #ffe8f0; border-radius: 10px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span {
  display: block; width: 20px; height: 2px;
  background: var(--c-pink); border-radius: 2px;
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 3.5rem 0 3rem;
  background: var(--c-grad-soft);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(255, 152, 0, .18), transparent),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(233, 30, 99, .12), transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--c-border);
  font-size: .82rem; color: var(--c-pink); font-weight: 600;
  margin-bottom: 1rem; box-shadow: var(--shadow);
}
.hero h1 { margin-bottom: .85rem; }
.hero-lead {
  font-size: 1.05rem; color: var(--c-muted); margin-bottom: 1.5rem;
  max-width: 36em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem 1.4rem; border-radius: 12px; font-weight: 600;
  font-size: .95rem; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--c-grad); color: #fff;
  box-shadow: 0 6px 20px rgba(233, 30, 99, .35);
}
.btn-primary:hover { color: #fff; }
.btn-outline {
  background: #fff; color: var(--c-pink-dark);
  border: 1.5px solid #f5b8cd;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  font-size: .88rem; color: var(--c-muted);
}
.hero-meta strong { color: var(--c-dark); display: block; font-size: 1.05rem; }
.hero-visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}
.hero-visual img {
  border-radius: 16px; box-shadow: var(--shadow);
  border: 3px solid #fff; object-fit: cover; aspect-ratio: 9/16;
  max-height: 320px; width: 100%; object-position: top;
}
.hero-visual img:first-child { transform: translateY(12px); }
.hero-visual img:last-child { transform: translateY(-12px); }

/* Sections */
.section { padding: 3.25rem 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2rem; }
.section-head p { color: var(--c-muted); margin-bottom: 0; }
.section-label {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-pink); margin-bottom: .4rem;
}

/* Feature cards */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.feature-card {
  background: var(--c-card); border-radius: var(--radius);
  padding: 1.35rem; border: 1px solid var(--c-border);
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-card .icon-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--c-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; margin-bottom: .85rem;
}
.feature-card h3 { font-size: 1.05rem; }
.feature-card p { font-size: .92rem; color: var(--c-muted); margin-bottom: 0; }

/* Phone mock screenshots */
.shot-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.shot-item {
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--c-border); box-shadow: var(--shadow);
  transition: transform .2s;
}
.shot-item:hover { transform: translateY(-4px); }
.shot-item img {
  width: 100%; aspect-ratio: 9/16; object-fit: cover; object-position: top;
}
.shot-item figcaption {
  padding: .7rem .85rem; font-size: .85rem; font-weight: 600;
  color: var(--c-dark); text-align: center;
}

/* Content blocks */
.content-block { margin-bottom: 2.5rem; }
.content-block h2 {
  padding-bottom: .5rem;
  border-bottom: 2px solid #ffe0ea;
  margin-bottom: 1rem;
}
.content-row {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 2rem;
  align-items: center; margin-bottom: 2.5rem;
}
.content-row.reverse { direction: rtl; }
.content-row.reverse > * { direction: ltr; }
.content-row img {
  border-radius: 16px; box-shadow: var(--shadow);
  border: 3px solid #fff; max-height: 480px;
  width: 100%; object-fit: cover; object-position: top; margin: 0 auto;
}
.content-row .text p { color: var(--c-text); }
.content-row .text ul { margin-bottom: 1rem; color: var(--c-muted); }
.content-row .text li { margin-bottom: .35rem; }

/* Category tags */
.cat-list {
  display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.5rem;
}
.cat-tag {
  padding: .4rem .9rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--c-border);
  font-size: .88rem; font-weight: 500; color: var(--c-text);
}
.cat-tag:hover { border-color: var(--c-pink); color: var(--c-pink); background: #fff5f8; }

/* Steps */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  counter-reset: step;
}
.step {
  position: relative; background: #fff;
  border-radius: var(--radius); padding: 1.25rem 1.1rem 1.25rem 1.1rem;
  border: 1px solid var(--c-border); text-align: center;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin: 0 auto .75rem;
  border-radius: 50%; background: var(--c-grad); color: #fff;
  font-weight: 700; font-size: .95rem;
}
.step h3 { font-size: 1rem; }
.step p { font-size: .88rem; color: var(--c-muted); margin-bottom: 0; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: 12px; margin-bottom: .75rem; overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.15rem; cursor: pointer; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--c-pink); font-size: 1.25rem; font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body {
  padding: 0 1.15rem 1.1rem; color: var(--c-muted); font-size: .95rem;
}

/* CTA band */
.cta-band {
  margin: 1rem 0 0; padding: 2.5rem 1.5rem; border-radius: 20px;
  background: var(--c-grad); color: #fff; text-align: center;
  box-shadow: 0 12px 40px rgba(233, 30, 99, .3);
}
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 36em; margin: 0 auto 1.25rem; }
.cta-band .btn-primary {
  background: #fff; color: var(--c-pink-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.cta-band .btn-primary:hover { color: var(--c-pink-dark); }

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 .25rem; font-size: .88rem; color: var(--c-muted);
}
.breadcrumb a { color: var(--c-muted); }
.breadcrumb span { color: var(--c-dark); }

/* Page article */
.page-hero {
  padding: 2rem 0 1.5rem; background: var(--c-grad-soft);
  border-bottom: 1px solid var(--c-border);
}
.page-hero h1 { margin-bottom: .5rem; }
.page-hero p { color: var(--c-muted); margin-bottom: 0; max-width: 40em; }
.article {
  padding: 2.5rem 0 3.5rem;
  max-width: 800px; margin: 0 auto;
}
.article h2 { margin-top: 2rem; }
.article h3 { margin-top: 1.35rem; }
.article ul, .article ol { margin-bottom: 1rem; color: var(--c-muted); }
.article li { margin-bottom: .4rem; }
.related {
  margin-top: 2.5rem; padding: 1.25rem;
  background: #fff5f8; border-radius: 12px; border: 1px solid var(--c-border);
}
.related h3 { margin-bottom: .75rem; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-bottom: .4rem; }

/* Error pages */
.error-page {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1rem;
  background: var(--c-grad-soft);
}
.error-box { max-width: 480px; }
.error-code {
  font-size: 5rem; font-weight: 800; line-height: 1;
  background: var(--c-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .5rem;
}
.error-box h1 { margin-bottom: .75rem; }
.error-box p { color: var(--c-muted); margin-bottom: 1.5rem; }

/* Footer */
.site-footer {
  background: var(--c-dark); color: #b8b8c0; padding: 2.75rem 0 1.5rem;
  font-size: .9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .logo { color: #fff; margin-bottom: .75rem; }
.footer-brand .logo span { color: #fff; background: none; -webkit-background-clip: unset; background-clip: unset; }
.footer-brand p { color: #8e8e98; font-size: .88rem; margin-bottom: 0; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: .75rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: #8e8e98; }
.footer-col a:hover { color: #ffb4c8; }
.footer-bottom {
  border-top: 1px solid #2e2e36; padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: space-between; align-items: center;
  font-size: .82rem; color: #6e6e78;
}
.footer-bottom a { color: #8e8e98; }

/* Download anchor */
#download {
  scroll-margin-top: 80px;
}

/* TOC for long page */
.toc {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: 12px; padding: 1.15rem 1.35rem; margin-bottom: 2rem;
}
.toc h2 { font-size: 1rem; margin-bottom: .6rem; border: 0; padding: 0; }
.toc ol { margin: 0; color: var(--c-muted); font-size: .92rem; }
.toc li { margin-bottom: .25rem; }

/* Mobile */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual {
    max-width: 340px; margin: 0 auto;
  }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .shot-grid { grid-template-columns: repeat(3, 1fr); }
  .content-row, .content-row.reverse {
    grid-template-columns: 1fr; direction: ltr; gap: 1.25rem;
  }
  .content-row img { max-height: 420px; max-width: 280px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .menu-btn { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch;
    background: #fffafb; border-bottom: 1px solid var(--c-border);
    padding: .75rem 1rem 1rem; gap: .25rem;
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem .85rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { padding: 2.25rem 0 2rem; }
  .section { padding: 2.5rem 0; }
  .hero-visual img { max-height: 260px; }
}

@media (max-width: 400px) {
  .shot-grid { grid-template-columns: 1fr; max-width: 260px; margin: 0 auto; }
}
