/* 糖心Vlog 官网样式 */
:root {
  --primary: #e91e8c;
  --primary-dark: #c4177a;
  --secondary: #7c3aed;
  --accent: #ff6b35;
  --bg-dark: #0a0a0f;
  --bg-card: #14141f;
  --bg-card-hover: #1a1a2e;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --border: #2a2a3e;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #e91e8c 50%, #ff6b35 100%);
  --shadow: 0 4px 24px rgba(233, 30, 140, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --header-height: 72px;
}

*, *::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;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

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

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

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

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

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo:hover {
  color: var(--text-primary);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-main a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--text-primary);
  background: rgba(233, 30, 140, 0.1);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient);
  color: #fff !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(233, 30, 140, 0.3);
  color: #fff !important;
}

.btn-download-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.hero {
  padding: calc(var(--header-height) + 60px) 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

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

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

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

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

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

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 30, 140, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

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

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

/* Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.showcase-grid.reverse {
  direction: rtl;
}

.showcase-grid.reverse > * {
  direction: ltr;
}

.showcase-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.showcase-img img {
  width: 100%;
}

.showcase-content h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.showcase-content p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.showcase-content ul {
  list-style: none;
  margin-top: 16px;
}

.showcase-content li {
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}

.showcase-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Category Tags */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(233, 30, 140, 0.1);
  border: 1px solid rgba(233, 30, 140, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary);
}

/* Download Section */
.download-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(233, 30, 140, 0.1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.download-box h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.download-box p {
  color: var(--text-secondary);
}

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Page Content (Legal/About) */
.page-hero {
  padding: calc(var(--header-height) + 48px) 24px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

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

.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-secondary);
}

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

.breadcrumb span {
  margin: 0 8px;
}

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

.content-page h2 {
  font-size: 1.4rem;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

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

.content-page p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.content-page ul,
.content-page ol {
  color: var(--text-secondary);
  margin: 0 0 16px 24px;
}

.content-page li {
  margin-bottom: 8px;
}

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

.update-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

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

.error-inner h1 {
  font-size: 6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-inner h2 {
  font-size: 1.5rem;
  margin: 16px 0;
}

.error-inner p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 24px 32px;
}

.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 p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

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

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Hero Preview */
.hero-preview {
  max-width: 320px;
  margin: 48px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 20px 60px rgba(233, 30, 140, 0.2);
}

.hero-preview img {
  width: 100%;
}

/* TOC Navigation */
.toc-nav {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.toc-nav h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  list-style: none;
}

.toc-grid a {
  display: block;
  padding: 12px 16px;
  background: rgba(233, 30, 140, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.toc-grid a:hover {
  color: var(--primary);
  border-color: rgba(233, 30, 140, 0.3);
  background: rgba(233, 30, 140, 0.1);
}

/* Content Block */
.content-block {
  max-width: 900px;
  margin: 0 auto;
}

.content-block p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.content-block h3 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

/* Image Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 30, 140, 0.3);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.gallery-item figcaption {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-top: 1px solid var(--border);
}

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

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 20px;
}

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

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

/* Benefits List */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
}

.benefits-list li {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.benefit-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(233, 30, 140, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.benefits-list h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.benefits-list p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Nav Tabs Info */
.nav-tabs-info {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.nav-tab-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}

.nav-tab-card .tab-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.nav-tab-card h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.nav-tab-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

.seo-article h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.seo-article h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.seo-article p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.seo-article ul {
  color: var(--text-secondary);
  margin: 0 0 16px 20px;
}

.seo-article li {
  margin-bottom: 8px;
}

/* Dual Image Row */
.dual-img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.dual-img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.dual-img-card img {
  width: 100%;
}

.dual-img-card .dual-caption {
  padding: 20px 24px;
}

.dual-img-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.dual-img-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .benefits-list {
    grid-template-columns: 1fr;
  }

  .nav-tabs-info {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .showcase-grid.reverse {
    direction: ltr;
  }

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

  .download-box {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }

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

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
  }

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

  .header-actions .btn-download {
    display: none;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

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

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