/* 糖心Vlog官网 - 全局样式 */
:root {
  --primary: #e84393;
  --primary-dark: #c7357d;
  --primary-light: #fd79a8;
  --bg: #0f0f14;
  --bg-card: #1a1a24;
  --bg-section: #14141c;
  --text: #e8e8ed;
  --text-muted: #9a9aad;
  --border: #2a2a3a;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --max-width: 1100px;
  --header-h: 64px;
}

*, *::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);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}
.logo-link:hover { color: var(--primary-light); }
.logo-link img { width: 36px; height: 36px; border-radius: 8px; }

.nav-desktop { display: flex; gap: 6px; list-style: none; flex-wrap: wrap; }
.nav-desktop a {
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.nav-desktop a:hover, .nav-desktop a.active {
  color: #fff;
  background: rgba(232, 67, 147, 0.15);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
}
.nav-mobile.open { display: block; }
.nav-mobile-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-card);
  padding: 24px;
  border-left: 1px solid var(--border);
}
.nav-mobile-panel .close-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 20px;
}
.nav-mobile-panel ul { list-style: none; }
.nav-mobile-panel li { margin-bottom: 4px; }
.nav-mobile-panel a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  border-radius: 8px;
}
.nav-mobile-panel a:hover { background: rgba(232, 67, 147, 0.15); }

/* Main */
main { flex: 1; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  padding: 56px 0 48px;
  background: linear-gradient(160deg, #1a1020 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.35;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 30%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 28px;
}
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 67, 147, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--primary);
}

/* Sections */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.section:nth-child(even) { background: var(--bg-section); }
.section-header { margin-bottom: 32px; }
.section-header h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  margin-bottom: 10px;
}
.section-header p { color: var(--text-muted); max-width: 680px; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}
.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #fff;
}
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }
.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(232, 67, 147, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* Image showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.showcase-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.showcase-item:hover { border-color: var(--primary); }
.showcase-item img { border-radius: 0; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.showcase-body { padding: 18px 20px; }
.showcase-body h3 { font-size: 1rem; margin-bottom: 8px; }
.showcase-body p { color: var(--text-muted); font-size: 0.88rem; }

/* Steps */
.steps { counter-reset: step; list-style: none; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 28px 52px;
  border-left: 2px solid var(--border);
  margin-left: 18px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -19px;
  top: 0;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.steps li h3 { font-size: 1rem; margin-bottom: 6px; }
.steps li p { color: var(--text-muted); font-size: 0.92rem; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary-light); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.two-col img { box-shadow: var(--shadow); }

/* Content page */
.page-hero {
  padding: 40px 0 32px;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 8px; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }

.content-body {
  padding: 40px 0 56px;
  max-width: 800px;
}
.content-body h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.content-body h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.content-body p, .content-body li { color: var(--text-muted); margin-bottom: 12px; }
.content-body ul, .content-body ol { padding-left: 24px; margin-bottom: 16px; }
.content-body a { text-decoration: underline; text-underline-offset: 3px; }

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.toc h2 { font-size: 0.95rem; margin-bottom: 10px; border: none; padding: 0; }
.toc ol { padding-left: 20px; margin: 0; }
.toc li { margin-bottom: 4px; font-size: 0.9rem; }

/* 404 */
.error-page {
  text-align: center;
  padding: 80px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error-page h1 { font-size: 5rem; color: var(--primary); margin-bottom: 8px; }
.error-page h2 { font-size: 1.4rem; margin-bottom: 12px; }
.error-page p { color: var(--text-muted); margin-bottom: 28px; max-width: 420px; }

/* Footer */
.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 12px; max-width: 320px; }
.footer-col h4 { font-size: 0.9rem; margin-bottom: 14px; color: #fff; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.88rem; }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Inline links block */
.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.internal-links a {
  padding: 6px 14px;
  background: rgba(232, 67, 147, 0.1);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-light);
  text-decoration: none;
}
.internal-links a:hover { background: rgba(232, 67, 147, 0.2); border-color: var(--primary); }

/* Content detail blocks */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 48px;
}
.content-block:last-child { margin-bottom: 0; }
.content-block.reverse .content-block-img { order: 2; }
.content-block.reverse .content-block-text { order: 1; }
.content-block-text h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: #fff;
}
.content-block-text p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 12px; }
.content-block-text ul {
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.93rem;
}
.content-block-text li { margin-bottom: 6px; }
.content-block-img img { box-shadow: var(--shadow); width: 100%; }

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.tag-grid span {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}
.highlight-box p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.compare-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.compare-item h4 { font-size: 0.95rem; margin-bottom: 8px; }
.compare-item p { color: var(--text-muted); font-size: 0.85rem; }

/* APP 推荐广告 */
.app-ad-banner {
  background: linear-gradient(135deg, rgba(232, 67, 147, 0.12) 0%, var(--bg-section) 50%, rgba(232, 67, 147, 0.08) 100%);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px 16px;
  text-align: center;
}
.app-ad-banner .applist-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.app-ad-banner .applist-title::before {
  content: "🔥 ";
}
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}
#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
}
#ads figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
#ads a {
  display: block;
  border-radius: 18px;
  line-height: 0;
  transition: transform 0.18s ease;
}
#ads a:active { transform: scale(0.96); }
#ads img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid rgba(232, 67, 147, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  background: #fff;
}
#ads a:hover img {
  transform: translateY(-4px) scale(1.06);
  border-color: var(--primary-light);
  box-shadow: 0 10px 28px rgba(232, 67, 147, 0.35);
}
#ads .caption {
  width: 80px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-muted);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .two-col { grid-template-columns: 1fr; }
  .content-block { grid-template-columns: 1fr; }
  .content-block.reverse .content-block-img { order: 0; }
  .content-block.reverse .content-block-text { order: 0; }
  .compare-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 40px 0; }
}
