/* 糖心vlog txtv.lol — PC & Mobile */
:root {
  --brand: #e91e63;
  --brand-dark: #c2185b;
  --accent: #ff6b35;
  --gold: #f5a623;
  --bg: #faf7f8;
  --bg-soft: #fff5f8;
  --surface: #ffffff;
  --text: #2a2430;
  --text-muted: #6b6270;
  --border: #f0e4ea;
  --shadow: 0 8px 28px rgba(233, 30, 99, 0.08);
  --radius: 14px;
  --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;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand-dark);
}

ul,
ol {
  padding-left: 1.25rem;
}

/* Age bar */
.age-bar {
  background: linear-gradient(90deg, #2a2430, #4a3040);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
}

.age-bar strong {
  color: var(--gold);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo span {
  background: linear-gradient(120deg, var(--accent), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
  background: var(--bg-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 107, 53, 0.18), transparent),
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(233, 30, 99, 0.2), transparent),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  padding: 48px 20px 56px;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-brand {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
  background: linear-gradient(120deg, var(--accent) 0%, var(--brand) 55%, #9c27b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.45;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 36em;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--brand));
  color: #fff;
  box-shadow: 0 10px 24px rgba(233, 30, 99, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--brand);
  border: 1px solid var(--border);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  object-fit: cover;
  max-height: 480px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -12% -12% auto;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(233, 30, 99, 0.25), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 28px;
  max-width: 42em;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 10px;
  line-height: 1.3;
}

.section-head p {
  color: var(--text-muted);
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-item:hover {
  box-shadow: var(--shadow);
  border-color: #f5c6d6;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Category / showcase */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1220;
  aspect-ratio: 3 / 4.2;
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.cat-card:hover img {
  transform: scale(1.04);
}

.cat-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(20, 10, 20, 0.88));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* Two column content */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
}

.split-body h2 {
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.split-body p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.split-body ul {
  color: var(--text-muted);
  margin: 12px 0 16px;
}

.split-body li {
  margin-bottom: 6px;
}

/* Prose / long SEO content */
.prose {
  max-width: 780px;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
  padding-top: 0.5rem;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.6rem;
  color: #3d3340;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 6px;
}

.prose strong {
  color: var(--text);
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0 28px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--brand);
  margin-bottom: 8px;
}

.faq p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(233, 30, 99, 0.12), transparent),
    linear-gradient(180deg, #fff, var(--bg));
  padding: 40px 20px 28px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 40em;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.content-page {
  padding: 40px 0 64px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 107, 53, 0.12), transparent 45%),
    radial-gradient(circle at 70% 30%, rgba(233, 30, 99, 0.12), transparent 40%),
    var(--bg);
}

.error-box h1 {
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.error-box h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.error-box p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: #1f1824;
  color: #cfc6d4;
  padding: 48px 20px 28px;
  margin-top: 20px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-footer h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
}

.site-footer a {
  color: #cfc6d4;
  display: block;
  padding: 4px 0;
  font-size: 14px;
}

.site-footer a:hover {
  color: #fff;
}

.footer-note {
  max-width: var(--max);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #8a8290;
  text-align: center;
}

.footer-note a {
  display: inline;
  color: #b0a8b8;
}

/* Vlog strip */
.vlog-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.vlog-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
  aspect-ratio: 9 / 16;
}

.vlog-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Internal link chips */
.link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.link-chips a {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.link-chips a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--brand));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero-inner,
  .split,
  .split.reverse,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vlog-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 32px 16px 40px;
  }

  .section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    font-size: 2rem;
  }
}
