/* ============ 糖心vlog · 主题样式（主色 #1e3a8a / 浅色背景 · 剪纸艺术） ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1e3a8a;
  --primary-dark: #1d4ed8;
  --primary-soft: rgba(30, 58, 138, .08);
  --accent: #dc2626;
  --grad: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #3b82f6 100%);
  --grad-hero: linear-gradient(165deg, #172554 0%, #1e3a8a 55%, #2563eb 100%);
  --grad-deep: linear-gradient(135deg, #172554 0%, #1e3a8a 60%, #1d4ed8 100%);
  --bg: #f5f7fc;
  --card: #ffffff;
  --alt: #eef2fb;
  --text: #16213c;
  --text-soft: #5a6b8c;
  --border: #e2e8f5;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(23, 37, 84, .08);
  --shadow-hover: 0 18px 44px rgba(30, 58, 138, .16);
}

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 22px; font-weight: 800; color: var(--primary); white-space: nowrap;
}
.logo-emoji { font-size: 26px; }
.main-nav { display: flex; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.main-nav a { padding: 6px 12px; border-radius: 999px; font-size: 15px; transition: .2s; }
.main-nav a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.main-nav a.active { background: var(--grad); color: #fff; font-weight: 600; }
.nav-actions { display: flex; gap: 10px; }
.btn {
  padding: 8px 22px; border-radius: 999px; border: none; cursor: pointer;
  font-size: 15px; transition: .2s;
}
.btn-ghost { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-primary {
  background: var(--grad); color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px rgba(30, 58, 138, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(30, 58, 138, .5); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary); }

/* ============ Hero 区 ============ */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-hero); color: #fff;
  padding: 84px 0 72px; text-align: center;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .55; pointer-events: none;
}
.hero::before { width: 340px; height: 340px; background: rgba(59, 130, 246, .35); top: -120px; left: -80px; }
.hero::after { width: 420px; height: 420px; background: rgba(219, 39, 39, .18); bottom: -180px; right: -100px; }
.hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.particle {
  position: absolute; border-radius: 2px; pointer-events: none;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-130px) translateX(30px) rotate(180deg); opacity: 0; }
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero h1 { font-size: 46px; font-weight: 900; letter-spacing: 1px; text-shadow: 0 4px 18px rgba(0, 0, 0, .45); }
.hero h1 span { color: #fecaca; }
.hero-sub { font-size: 17px; max-width: 680px; opacity: .95; }
.search-box {
  display: flex; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 6px 6px 22px;
  width: min(560px, 92%); box-shadow: 0 14px 40px rgba(23, 37, 84, .3);
}
.search-box input { flex: 1; border: none; outline: none; font-size: 16px; color: var(--text); background: transparent; font-family: inherit; }
.search-box input::placeholder { color: var(--text-soft); }
.search-btn {
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.search-btn:hover { transform: scale(1.08); }
.hero-stats { display: flex; gap: 48px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.hero-stat .num { font-size: 30px; font-weight: 800; display: block; }
.hero-stat .label { font-size: 14px; opacity: .9; }

/* ============ 通用区块 ============ */
.section { padding: 72px 0; }
.section-alt { background: var(--alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 32px; font-weight: 800; }
.section-head h2 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head p { color: var(--text-soft); margin-top: 8px; font-size: 15px; }
.section-more-wrap { text-align: center; margin-top: 34px; }
.section-more-wrap .btn { display: inline-block; }

/* ============ 视频卡片网格 ============ */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.video-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s; border: 1px solid var(--border);
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #dbe4f5; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .card-cover img { transform: scale(1.06); }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; padding-left: 3px;
  box-shadow: 0 6px 18px rgba(23, 37, 84, .3); transition: .2s;
}
.video-card:hover .play-btn { background: var(--grad); color: #fff; }
.duration {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(15, 23, 42, .8); color: #fff;
  font-size: 12px; padding: 2px 8px; border-radius: 6px; font-weight: 600;
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title {
  font-size: 15.5px; font-weight: 700; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(1.45em * 2);
}
.card-desc {
  font-size: 13px; color: var(--text-soft);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px;
  border-top: 1px dashed var(--border); font-size: 12px; color: var(--text-soft);
}
.meta-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.meta-name { font-weight: 600; color: var(--text); }
.meta-views { margin-left: auto; }

/* ============ 明星创作者 ============ */
.creator-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.creator-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 26px 18px; text-align: center; transition: .25s;
}
.creator-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.creator-avatar-wrap { position: relative; width: 86px; height: 86px; margin: 0 auto 14px; }
.creator-avatar { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(30, 58, 138, .3); }
.creator-star {
  position: absolute; top: -4px; right: -4px;
  background: var(--grad); color: #fff; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  box-shadow: 0 4px 10px rgba(30, 58, 138, .45);
}
.creator-name { font-size: 17px; font-weight: 700; }
.creator-tag { font-size: 13px; color: var(--text-soft); margin: 4px 0 10px; }
.creator-fans {
  display: inline-block; background: var(--primary-soft); color: var(--primary-dark);
  font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 999px;
}

/* ============ 平台特色 ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px; transition: .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(30, 58, 138, .5); }
.feature-icon {
  font-size: 32px; width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(30, 58, 138, .12), rgba(59, 130, 246, .06));
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; color: var(--text-soft); }

/* ============ 数据统计区 ============ */
.stats-band {
  background: var(--grad); border-radius: 26px; padding: 44px 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; color: #fff;
  box-shadow: 0 16px 44px rgba(30, 58, 138, .3);
}
.stat-item { text-align: center; }
.stat-item .num { font-size: 36px; font-weight: 900; display: block; }
.stat-item .label { font-size: 14px; opacity: .92; margin-top: 4px; }

/* ============ 用户评价 ============ */
.testimonial-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.review-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: .25s;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.review-head { display: flex; align-items: center; gap: 10px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review-name { font-weight: 700; font-size: 15px; }
.review-stars { color: #f59e0b; font-size: 14px; letter-spacing: 2px; margin-left: auto; }
.review-text { font-size: 13.5px; line-height: 1.7; color: var(--text-soft); }

/* ============ 成功故事 ============ */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 24px; position: relative; overflow: hidden; transition: .25s;
}
.story-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad); }
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.story-tag {
  font-size: 12px; color: var(--primary-dark); background: var(--primary-soft);
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 600; margin-bottom: 12px;
}
.story-card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.5; }
.story-card p { font-size: 13.5px; color: var(--text-soft); line-height: 1.7; }

/* ============ APP 展示区 ============ */
.app-section { background: var(--alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.app-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.app-copy h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.app-copy > p { color: var(--text-soft); margin-bottom: 26px; }
.app-points { display: flex; flex-direction: column; gap: 18px; }
.app-point { display: flex; gap: 14px; align-items: flex-start; }
.point-icon {
  font-size: 22px; width: 48px; height: 48px; min-width: 48px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 58, 138, .12), rgba(59, 130, 246, .06));
  display: flex; align-items: center; justify-content: center;
}
.app-point h3 { font-size: 16px; }
.app-point p { font-size: 13.5px; color: var(--text-soft); }
.app-visual { display: flex; justify-content: center; }
.phone {
  width: 272px; height: 560px; background: #172554; border-radius: 44px;
  padding: 10px; position: relative; box-shadow: 0 30px 70px rgba(30, 58, 138, .25);
}
.phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; position: relative; background: #000; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: #172554; border-radius: 0 0 14px 14px; z-index: 3;
}

/* ============ 页脚 ============ */
.site-footer { background: var(--grad-deep); color: #fff; padding: 56px 0 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
.footer-brand .logo { color: #bfdbfe; margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; opacity: .92; line-height: 1.8; max-width: 280px; }
.footer-col h4 { font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; opacity: .88; padding: 4px 0; transition: .2s; }
.footer-col a:hover { opacity: 1; transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .25);
  padding: 18px 0; text-align: center; font-size: 13px; opacity: .9;
}

/* ============ 内页：横幅与筛选 ============ */
.page-banner { background: var(--grad-hero); color: #fff; text-align: center; padding: 56px 0; position: relative; overflow: hidden; }
.page-banner h1 { font-size: 36px; font-weight: 900; }
.page-banner p { opacity: .95; margin-top: 8px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 36px 0 30px; }
.filter-btn {
  border: 1.5px solid var(--primary); background: var(--card); color: var(--primary);
  padding: 7px 20px; border-radius: 999px; cursor: pointer; font-size: 14px; transition: .2s;
}
.filter-btn:hover { background: var(--primary-soft); }
.filter-btn.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(30, 58, 138, .35); }

/* ============ 内页：关于我们 ============ */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-story img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-story h2 { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.about-story p { color: var(--text-soft); margin-bottom: 12px; line-height: 1.8; }
.contact-block {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.contact-item h4 { font-size: 15px; margin-bottom: 6px; }
.contact-item p { font-size: 13.5px; color: var(--text-soft); line-height: 1.8; }

/* ============ 响应式：移动端 2 列 / 电脑 4 列 ============ */
@media (max-width: 900px) {
  .site-header { position: relative; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--card); flex-direction: column; align-items: stretch; padding: 14px 20px;
    gap: 2px; box-shadow: 0 14px 30px rgba(23, 37, 84, .15); border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 26px; }
  .hero-stat .num { font-size: 24px; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 26px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .creator-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); padding: 34px 22px; }
  .stat-item .num { font-size: 28px; }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .story-grid { grid-template-columns: 1fr; }
  .app-inner { grid-template-columns: 1fr; gap: 36px; }
  .app-copy h2 { font-size: 26px; }
  .phone { height: 480px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-story { grid-template-columns: 1fr; gap: 24px; }
  .contact-block { grid-template-columns: 1fr; gap: 16px; }
  .card-title { font-size: 14.5px; }
}

@media (max-width: 480px) {
  .nav-actions .btn-ghost { display: none; }
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 15px; }
  .page-banner h1 { font-size: 28px; }
}
