/* 糖心vlog官网 - txvlogs.pics */
:root {
  --brand: #e11d6a;
  --brand-dark: #b01050;
  --brand-soft: #ffe4ef;
  --ink: #1a1216;
  --muted: #5c4a52;
  --line: #f0d6e0;
  --bg: #fff8fb;
  --paper: #ffffff;
  --accent: #ff6b35;
  --ok: #0d9f6e;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(176, 16, 80, 0.08);
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #ffd6e7 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #ffe8d6 0%, transparent 45%),
    linear-gradient(180deg, #fff8fb 0%, #fff 40%, #fff5f9 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 248, 251, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: var(--brand);
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: var(--brand-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: var(--brand);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--ink);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #ff4d8d 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(225, 29, 106, 0.28);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 14px 34px rgba(225, 29, 106, 0.38);
}

.btn-secondary {
  background: var(--paper);
  color: var(--brand);
  border-color: var(--brand-soft);
}

.btn-secondary:hover {
  border-color: var(--brand);
}

.hero-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  animation: floatIn 0.9s ease both;
}

.hero-visual img {
  width: min(100%, 320px);
  margin-inline: auto;
  border-radius: 28px;
  box-shadow: var(--shadow), 0 0 0 8px rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  animation: rise 0.7s ease both;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.65);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 46rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.feature-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.feature-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
}

/* Showcase rows */
.showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.showcase.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.showcase.reverse .showcase-media {
  order: 2;
}

.showcase-media img {
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  width: min(100%, 280px);
  margin-inline: auto;
}

.showcase-body h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.showcase-body p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.showcase-body ul {
  margin: 0.75rem 0 0 1.15rem;
  color: var(--muted);
}

.showcase-body li {
  margin-bottom: 0.35rem;
}

/* Category gallery */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 0.25s ease;
}

.cat-card:hover {
  transform: translateY(-3px);
}

.cat-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.cat-card span {
  display: block;
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Article / SEO prose */
.prose {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 1.75rem 0 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 1.35rem 0 0.65rem;
  color: var(--ink);
}

.prose p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.prose ul,
.prose ol {
  margin: 0 0 1rem 1.25rem;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.toc {
  background: var(--brand-soft);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.toc h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  border: 0;
  padding: 0;
  font-family: var(--font-body);
}

.toc ol {
  margin: 0 0 0 1.1rem;
}

.toc a {
  font-weight: 500;
}

/* FAQ */
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--brand);
  font-weight: 700;
}

.faq details[open] summary::before {
  content: "–";
}

.faq details p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.65rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 40rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

/* Legal */
.legal-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.error-page h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 28rem;
  margin-inline: auto;
}

/* Download band */
.download-band {
  background: linear-gradient(120deg, #e11d6a 0%, #ff6b35 100%);
  color: #fff;
  border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: center;
  box-shadow: 0 16px 40px rgba(225, 29, 106, 0.25);
}

.download-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.5rem;
}

.download-band p {
  opacity: 0.92;
  margin-bottom: 1rem;
}

.download-band .btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: none;
}

.download-band .btn-primary:hover {
  color: var(--brand-dark);
}

.download-shots {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

.download-shots img {
  width: 100px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

/* Phone strip */
.phone-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.phone-strip img {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: #1a1216;
  color: #c9b8bf;
  padding: 2.75rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.site-footer p,
.site-footer li {
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-footer ul {
  list-style: none;
}

.site-footer a {
  color: #c9b8bf;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.15rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

/* Internal link chips */
.link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.link-chips a {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .showcase,
  .showcase.reverse,
  .download-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .showcase.reverse .showcase-media {
    order: 0;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .cat-grid,
  .phone-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-shots {
    justify-content: flex-start;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 2px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.85rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .nav-cta {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .feature-grid,
  .steps,
  .cat-grid,
  .phone-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-visual img {
    width: min(100%, 240px);
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .phone-strip {
    grid-template-columns: 1fr 1fr;
  }

  .download-shots img {
    width: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
