/* ============================================
   糖心vlog · 样式表（手工主题 · 主色 #1e3a8a · 浅色背景）
   ============================================ */
:root {
  --primary: #1e3a8a;
  --primary-2: #2563eb;
  --primary-3: #60a5fa;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e9f2;
  --radius: 16px;
  --shadow: 0 6px 18px rgba(30, 58, 138, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.logo-emoji { font-size: 26px; }
.nav-links { display: flex; gap: 20px; margin: 0 auto; }
.nav-links a { font-size: 14.5px; color: #4b5563; padding: 6px 2px; position: relative; white-space: nowrap; }
.nav-links a:hover { color: var(--primary-2); }
.nav-links a.active { color: var(--primary); font-weight: 700; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-3));
}
.nav-btns { display: flex; gap: 10px; }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  transition: all 0.2s;
}
.btn-ghost:hover { background: rgba(30, 58, 138, 0.06); }
.btn-solid {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: all 0.2s;
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(37, 99, 235, 0.45); }

/* ---------- Hero 区 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #60a5fa 100%);
  color: #fff;
  padding: 80px 0 70px;
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 14px; letter-spacing: 1px; }
.hero-sub { font-size: 17px; opacity: 0.92; max-width: 640px; margin: 0 auto 30px; line-height: 1.7; }
.search-box {
  display: flex;
  max-width: 560px;
  margin: 0 auto 36px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.search-box input { flex: 1; border: none; outline: none; font-size: 15px; color: var(--text); background: transparent; }
.search-box button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}
.hero-stats { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat .stat-num { font-size: 30px; font-weight: 800; }
.hero-stat span:last-child { font-size: 13px; opacity: 0.85; }

/* ---------- 粒子 ---------- */
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.particle {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  animation: floatUp linear infinite;
  opacity: 0;
}
@keyframes floatUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translateY(-60vh) translateX(40px); opacity: 0; }
}

/* ---------- 通用区块 ---------- */
.section { padding: 64px 0; }
.section-alt { background: #fff; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-head h2 { font-size: 26px; font-weight: 800; position: relative; padding-left: 14px; }
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-3));
}
.more-link { color: var(--primary-2); font-size: 14px; }
.more-link:hover { text-decoration: underline; }

/* ---------- 视频卡片网格 ---------- */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.video-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.video-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(30, 58, 138, 0.16); }
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #dbe3f5; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.video-card:hover .cover img { transform: scale(1.06); }
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  padding-left: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.12); }
.duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
}
.card-body { padding: 12px 14px 14px; }
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-desc { font-size: 13px; color: var(--muted); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.creator-row { display: flex; align-items: center; gap: 8px; }
.creator-row .avatar { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.creator-name { font-size: 13px; color: #374151; font-weight: 600; white-space: nowrap; }
.creator-row .meta { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.empty-tip { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 0; font-size: 15px; }

/* ---------- 明星创作者 ---------- */
.creator-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.creator-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 12px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.creator-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(30, 58, 138, 0.14); }
.creator-avatar-wrap { position: relative; width: 76px; height: 76px; margin: 0 auto 10px; }
.creator-avatar-wrap img { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--primary-3); }
.star-badge {
  position: absolute;
  right: -4px;
  bottom: 2px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.4);
}
.creator-card h3 { font-size: 15px; margin-bottom: 4px; }
.creator-card p { font-size: 13px; color: var(--muted); }
.creator-fans {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--primary-2);
  background: rgba(37, 99, 235, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------- 平台特色 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  transition: transform 0.25s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- 数据统计带 ---------- */
.stats-band { background: linear-gradient(135deg, #1e3a8a, #2563eb); padding: 56px 0; color: #fff; }
.stats-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; text-align: center; }
.big-stat .stat-num { display: block; font-size: 40px; font-weight: 800; }
.big-stat span:last-child { font-size: 14px; opacity: 0.85; }

/* ---------- 用户评价 ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.testi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.testi-head img { width: 42px; height: 42px; border-radius: 50%; }
.testi-name { font-size: 14px; font-weight: 700; }
.stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }
.testimonial-card p { font-size: 13.5px; color: #4b5563; line-height: 1.7; }

/* ---------- 成功故事 ---------- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s;
}
.story-card:hover { transform: translateY(-4px); }
.story-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-3));
}
.story-card h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.4; }
.story-card p { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ---------- APP 展示区 ---------- */
.app-section { background: linear-gradient(180deg, #eef2fb 0%, #f4f6fb 100%); }
.app-inner { display: flex; align-items: center; gap: 60px; }
.app-copy { flex: 1; }
.app-copy h2 { font-size: 30px; margin-bottom: 12px; }
.app-copy > p { color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.app-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.app-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.app-feature .fi { font-size: 22px; flex-shrink: 0; }
.app-feature h4 { font-size: 14px; margin-bottom: 4px; }
.app-feature p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.app-btns { display: flex; gap: 12px; }
.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111827;
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  transition: transform 0.2s;
}
.app-btn:hover { transform: translateY(-2px); }

/* 手机模型 */
.phone {
  width: 250px;
  height: 520px;
  flex-shrink: 0;
  background: #0f172a;
  border-radius: 44px;
  padding: 12px;
  position: relative;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #0f172a;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #eef2fb; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 页脚 ---------- */
.footer { background: #0e1730; color: #cbd5e1; padding: 56px 0 0; }
.footer-inner { display: flex; gap: 60px; flex-wrap: wrap; padding-bottom: 36px; }
.footer-brand { max-width: 320px; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.8; color: #94a3b8; }
.footer-links { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: #94a3b8; margin-bottom: 10px; }
.footer-col a:hover { color: #60a5fa; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 18px 0;
  font-size: 13px;
  color: #7c8db0;
}

/* ---------- 内页（page-hero / 筛选 / 关于） ---------- */
.page-hero {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  padding: 54px 0;
  text-align: center;
}
.page-hero h1 { font-size: 34px; margin-bottom: 10px; }
.page-hero p { opacity: 0.9; font-size: 15px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn {
  background: #fff;
  border: 1.5px solid var(--line);
  color: #4b5563;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--primary-3); color: var(--primary-2); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.about-content { max-width: 860px; margin: 0 auto; }
.about-content p { line-height: 2; color: #4b5563; font-size: 15px; margin-bottom: 16px; }
.value-grid { grid-template-columns: repeat(4, 1fr); }
.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border-radius: 24px;
  padding: 48px 24px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.25);
}
.cta-box h2 { font-size: 26px; margin-bottom: 10px; }
.cta-box p { opacity: 0.9; margin-bottom: 24px; }
.cta-btns { justify-content: center; }
.cta-box .btn-ghost { border-color: #fff; color: #fff; }
.cta-box .btn-solid { background: #fff; color: var(--primary); box-shadow: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .creator-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid,
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .app-inner { flex-direction: column; gap: 40px; }
}
@media (max-width: 768px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 15px; }
  .hero-stats { gap: 28px; }
  .hero-stat .stat-num { font-size: 24px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .creator-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid,
  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .stats-inner { justify-content: center; gap: 26px; }
  .big-stat .stat-num { font-size: 30px; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .app-copy h2 { font-size: 24px; }
  .app-features { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 26px; }
  .section { padding: 44px 0; }
}
