/* 糖心Vlog官网 - 全局样式 */
:root {
  --primary: #ff6b9d;
  --primary-dark: #e84d82;
  --primary-light: #fff0f5;
  --accent: #ff4081;
  --text: #2d2d2d;
  --text-muted: #666;
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --border: #eee;
  --shadow: 0 4px 24px rgba(255, 107, 157, 0.12);
  --radius: 12px;
  --max-width: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-link img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-main {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-main a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--primary);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.45);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--primary-light) 0%, #fff 60%);
  padding: 80px 24px 60px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border: 2px solid var(--primary);
  border-radius: 50px;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: var(--primary-light);
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Stats */
.stats-bar {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 800;
}

.stat-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 72px 24px;
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Content showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.showcase-item:nth-child(even) {
  direction: rtl;
}

.showcase-item:nth-child(even) > * {
  direction: ltr;
}

.showcase-item img {
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.showcase-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.showcase-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.showcase-item a {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Video categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.category-card-body {
  padding: 20px;
}

.category-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.category-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Brand intro */
.intro-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}

.intro-logo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-text h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.intro-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag-list a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
}

.tag-list a:hover {
  background: var(--primary);
  color: #fff;
}

/* Screenshot gallery */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: box-shadow 0.3s, transform 0.3s;
}

.screenshot-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.screenshot-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.screenshot-item figcaption {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.screenshot-item figcaption strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

/* Content detail blocks */
.content-detail-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.content-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 32px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.content-detail.reverse {
  direction: rtl;
}

.content-detail.reverse > * {
  direction: ltr;
}

.content-detail-img img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.content-detail-body h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: var(--text);
}

.content-detail-body p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 12px;
  line-height: 1.8;
}

.content-detail-body ul {
  padding-left: 20px;
  margin: 12px 0 16px;
}

.content-detail-body li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.content-detail-body .detail-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Highlight strip */
.highlight-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.highlight-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.highlight-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.highlight-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* SEO text block */
.seo-text-block {
  max-width: 900px;
  margin: 0 auto;
}

.seo-text-block h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  text-align: center;
}

.seo-text-block p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 14px;
  line-height: 1.85;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text);
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 64px 24px;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-white {
  display: inline-flex;
  background: #fff;
  color: var(--primary-dark) !important;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.btn-white:hover {
  transform: translateY(-2px);
  color: var(--primary-dark) !important;
}

/* Footer */
.site-footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 56px 24px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  width: 40px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #999;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #999;
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #666;
}

/* Page layout (subpages) */
.page-hero {
  background: linear-gradient(160deg, var(--primary-light) 0%, #fff 100%);
  padding: 48px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-muted);
}

.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.page-content h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
}

.page-content p,
.page-content li {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.page-content ul,
.page-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    max-width: 480px;
    margin: 0 auto;
  }

  .features-grid,
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-item {
    grid-template-columns: 1fr;
  }

  .showcase-item:nth-child(even) {
    direction: ltr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .intro-block {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .intro-logo {
    max-width: 200px;
    margin: 0 auto;
  }

  .content-detail {
    grid-template-columns: 1fr;
  }

  .content-detail.reverse {
    direction: ltr;
  }

  .screenshot-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlight-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-main {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav-main.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .features-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .highlight-strip {
    grid-template-columns: 1fr;
  }
}
