/* 糖心Vlog 官网样式 - PC & 移动端响应式 */
:root {
  --primary: #ff6b35;
  --primary-dark: #e85a2a;
  --accent: #ff2d75;
  --accent-light: #ff6b9d;
  --bg-dark: #0d0d0f;
  --bg-card: #1a1a1f;
  --bg-card-hover: #222228;
  --text-primary: #f5f5f7;
  --text-secondary: #a0a0a8;
  --text-muted: #6b6b75;
  --border: #2a2a32;
  --gradient: linear-gradient(135deg, #ffb347 0%, #ff6b35 40%, #ff2d75 100%);
  --shadow: 0 4px 24px rgba(255, 45, 117, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 64px;
  --max-w: 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;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 13, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo img { width: 40px; height: 40px; border-radius: 10px; }

.logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-desktop { display: flex; gap: 28px; list-style: none; }
.nav-desktop a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--text-primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--gradient);
  color: #fff !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  -webkit-text-fill-color: #fff;
}
.nav-cta:hover { opacity: 0.9; color: #fff !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 999;
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile li { border-bottom: 1px solid var(--border); }
.nav-mobile a { display: block; padding: 14px 0; color: var(--text-secondary); font-size: 1rem; }
.nav-mobile a:hover { color: var(--text-primary); }

/* Hero */
.hero {
  padding: 60px 0 80px;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 107, 53, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(255, 45, 117, 0.1) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 45, 117, 0.15);
  border: 1px solid rgba(255, 45, 117, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--gradient); color: #fff; }
.btn-outline { background: transparent; color: var(--text-primary); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-phone {
  max-width: 280px;
  border-radius: 24px;
  box-shadow: var(--shadow), 0 20px 60px rgba(0,0,0,0.5);
  border: 3px solid var(--border);
}

.hero-float {
  position: absolute;
  bottom: -20px;
  right: -10px;
  width: 140px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-card); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2rem; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* 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: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.feature-icon {
  width: 48px; height: 48px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* Category tabs showcase */
.category-showcase { margin-bottom: 32px; }

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  justify-content: center;
}

.cat-tab {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: default;
}
.cat-tab.active { background: var(--gradient); color: #fff; border-color: transparent; }

.screenshot-grid {
  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-card);
  transition: transform 0.2s;
}
.screenshot-item:hover { transform: scale(1.02); }

.screenshot-item img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.screenshot-item figcaption {
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Content article */
.content-article { max-width: 900px; margin: 0 auto; }
.content-article h2 { font-size: 1.6rem; margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.content-article h3 { font-size: 1.25rem; margin: 28px 0 12px; color: var(--accent-light); }
.content-article p { margin-bottom: 16px; color: var(--text-secondary); }
.content-article ul, .content-article ol { margin: 0 0 16px 24px; color: var(--text-secondary); }
.content-article li { margin-bottom: 8px; }
.content-article a { text-decoration: underline; }

/* Download steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  position: relative;
}
.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 50%;
  font-weight: 700;
  margin: 0 auto 14px;
  color: #fff;
}
.step-card h4 { font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.88rem; 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-q {
  width: 100%;
  padding: 18px 20px;
  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;
}
.faq-q::after { content: "+"; font-size: 1.2rem; color: var(--accent); }
.faq-item.open .faq-q::after { content: "−"; }

.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.faq-item.open .faq-a { display: block; }

/* Internal links */
.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.internal-links a {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.internal-links a:hover { border-color: var(--accent); color: var(--text-primary); }

/* Page hero (sub pages) */
.page-hero {
  padding: 48px 0 32px;
  text-align: center;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 2rem; margin-bottom: 8px; }
.page-hero p { color: var(--text-secondary); }

.breadcrumb {
  display: flex;
  gap: 8px;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--text-secondary); }

/* Legal content */
.legal-content { padding: 48px 0 72px; }
.legal-content h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.legal-content p, .legal-content li { color: var(--text-secondary); margin-bottom: 12px; }
.legal-content ul, .legal-content ol { margin-left: 24px; margin-bottom: 16px; }

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.error-code {
  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-page h1 { font-size: 1.5rem; margin: 16px 0 12px; }
.error-page p { color: var(--text-secondary); margin-bottom: 24px; }

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 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: 12px; max-width: 300px; }

.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(--text-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;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-desktop, .header-inner .nav-cta { display: none; }
  .menu-toggle { display: block; }

  .hero { padding: 40px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero h1 { font-size: 1.85rem; }
  .hero-desc { margin: 0 auto 28px; font-size: 1rem; }
  .hero-actions { justify-content: center; }
  .hero-float { display: none; }
  .hero-phone { max-width: 240px; margin: 0 auto; }

  .section { padding: 48px 0; }
  .section-header h2 { font-size: 1.5rem; }

  .features-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .error-code { font-size: 4rem; }
}

@media (max-width: 480px) {
  .screenshot-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
}

/* 广告栏 - 固定在导航栏下方 */
.ads-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 998;
  background: rgba(13, 13, 15, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ads-bar-inner {
  display: flex;
  justify-content: center;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: transparent;
  width: 100%;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(255, 45, 117, 0.25);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

@media (max-width: 480px) {
  #ads > div { width: 62px; }
  #ads img { width: 58px; height: 58px; border-radius: 14px; }
  #ads .caption { max-width: 62px; font-size: 10px; }
}
