/* 糖心vlog - txtv.pics */
:root {
  --brand-yellow: #ffb020;
  --brand-orange: #ff6b35;
  --brand-pink: #ff2d8a;
  --brand-magenta: #e91e8c;
  --grad: linear-gradient(135deg, #ffb020 0%, #ff6b35 45%, #ff2d8a 100%);
  --grad-soft: linear-gradient(160deg, #fff8f0 0%, #fff0f6 50%, #f8f0ff 100%);
  --text: #1a1a1a;
  --text-secondary: #555;
  --muted: #777;
  --bg: #faf7f5;
  --card-bg: #ffffff;
  --border: #eee4e8;
  --header-h: 64px;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(255, 45, 138, 0.08);
  --max: 1100px;
  --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);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-pink);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand-orange);
}

ul, ol {
  padding-left: 1.25em;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 1.75rem 0 0.85rem; }
h3 { font-size: 1.15rem; margin: 1.25rem 0 0.6rem; }

p { margin-bottom: 1rem; color: var(--text-secondary); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* 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(--header-h);
}

/* 顶部广告条：紧贴导航下方，滚动时固定便于点击 */
.ads-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-pink);
  background: rgba(255, 45, 138, 0.06);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.25s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  background: var(--grad-soft);
  overflow: hidden;
  padding: 48px 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(255, 45, 138, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255, 176, 32, 0.15), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-pink);
  background: rgba(255, 45, 138, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero h1 {
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 36em;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 45, 138, 0.28);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 45, 138, 0.36);
}

.btn-outline {
  background: #fff;
  color: var(--brand-pink);
  border: 1.5px solid rgba(255, 45, 138, 0.35);
}

.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-float {
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: 42%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
  animation: floatY 4s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: fadeUp 0.7s ease both;
}

.reveal-delay { animation-delay: 0.15s; }
.reveal-delay2 { animation-delay: 0.3s; }

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: #fff;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.section-head h2 {
  margin-top: 0;
}

.section-head p {
  margin-bottom: 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-orange);
  margin-bottom: 8px;
}

/* Feature cards / grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: #f3f0f2;
}

.feature-card .body {
  padding: 16px 18px 20px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
}

/* Category strip */
.cat-item {
  text-align: center;
}

.cat-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.cat-item:hover img {
  transform: scale(1.03);
}

.cat-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* Content SEO blocks */
.content-block {
  max-width: 820px;
  margin: 0 auto;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block ul,
.content-block ol {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.content-block li {
  margin-bottom: 0.4rem;
}

.toc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.toc h2 {
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.toc ol {
  margin: 0;
  color: var(--text-secondary);
}

.toc a {
  color: var(--text-secondary);
}

.toc a:hover {
  color: var(--brand-pink);
}

.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin: 32px 0;
}

.media-row.reverse {
  direction: rtl;
}
.media-row.reverse > * {
  direction: ltr;
}

.media-row img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}

.chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 45, 138, 0.06);
  color: var(--brand-pink);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid rgba(255, 45, 138, 0.12);
}

.chip:hover {
  background: rgba(255, 45, 138, 0.12);
  color: var(--brand-magenta);
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--brand-pink);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 20px 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--grad-soft);
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand-pink);
}

.page-content {
  padding: 40px 0 64px;
}

.prose {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.prose th {
  background: #faf5f7;
}

/* Error pages */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 18px;
  background: var(--grad-soft);
}

.error-box {
  max-width: 480px;
}

.error-code {
  font-size: clamp(4rem, 15vw, 7rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.error-box h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-box p {
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #1f1520;
  color: #c9b8c4;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.footer-brand p {
  color: #a898a4;
  font-size: 0.9rem;
  margin: 0;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #a898a4;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #ff8fc8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #8a7884;
}

.footer-bottom a {
  color: #8a7884;
}

.footer-bottom a:hover {
  color: #ff8fc8;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .media-row,
  .media-row.reverse,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-float {
    width: 36%;
    bottom: -8px;
    left: -8px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.28s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 12px;
    border-bottom: 1px solid #f5eef1;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 40px 0;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .prose {
    padding: 24px 18px;
  }

  .hero {
    padding: 32px 0 40px;
  }

  .cta-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
