/* 糖心vlog · 样式（沙画主题 / 浅色背景 / 主色 #d946ef） */
:root {
  --primary: #d946ef;
  --primary-dark: #a21caf;
  --primary-soft: #fae8ff;
  --accent: #f0abfc;
  --sand: #fbbf24;
  --bg: #fdf8fe;
  --bg-alt: #f9f0fc;
  --card: #ffffff;
  --text: #3d2b42;
  --muted: #8a7590;
  --line: #f0dcf5;
  --footer-bg: #32113f;
  --radius: 20px;
  --shadow: 0 8px 24px rgba(162, 28, 175, .08);
  --shadow-lg: 0 18px 44px rgba(162, 28, 175, .16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background:
    radial-gradient(900px 500px at 88% -80px, rgba(217, 70, 239, .07), transparent 65%),
    radial-gradient(700px 420px at -60px 30%, rgba(251, 191, 36, .06), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
em { font-style: normal; color: var(--primary); }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer;
  padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: all .25s ease; font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #c026d3);
  color: #fff; box-shadow: 0 6px 18px rgba(217, 70, 239, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(217, 70, 239, .45); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--accent); }
.btn-ghost:hover { background: var(--primary-soft); }

/* ---------- 1. 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 800; color: var(--text); white-space: nowrap; }
.logo-emoji { font-size: 24px; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  padding: 7px 13px; border-radius: 999px; font-size: 14.5px; color: #5b465f; font-weight: 500;
  transition: all .2s;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav a.active { color: var(--primary); background: var(--primary-soft); font-weight: 700; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }

/* ---------- 2. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #e879f9 0%, var(--primary) 48%, var(--primary-dark) 100%);
  color: #fff; padding: 92px 0 84px;
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute; border-radius: 50%; opacity: .85;
  animation: particleFloat 8s ease-in-out infinite alternate;
}
@keyframes particleFloat {
  0% { transform: translate(0, 0) scale(1); opacity: .9; }
  100% { transform: translate(26px, -64px) scale(.72); opacity: .35; }
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 3px 16px rgba(90, 10, 90, .3); }
.hero-sub { margin: 16px auto 30px; max-width: 620px; font-size: 16.5px; color: rgba(255, 255, 255, .93); }
.search-box {
  display: flex; align-items: center; max-width: 560px; margin: 0 auto;
  background: #fff; border-radius: 999px; padding: 7px 7px 7px 24px;
  box-shadow: 0 14px 36px rgba(90, 10, 90, .25);
}
.search-box input {
  flex: 1; border: none; outline: none; font-size: 15px; color: var(--text);
  background: transparent; font-family: inherit;
}
.search-btn {
  border: none; cursor: pointer; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #c026d3); color: #fff; font-size: 18px;
  transition: transform .2s;
}
.search-btn:hover { transform: scale(1.08); }
.hero-stats { display: flex; justify-content: center; gap: 56px; margin-top: 42px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { display: block; font-size: 30px; font-weight: 800; }
.hero-stat .label { font-size: 13.5px; color: rgba(255, 255, 255, .82); }

/* ---------- 区块通用 ---------- */
.section { padding: 78px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; font-weight: 800; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.section-more-wrap { text-align: center; margin-top: 38px; }

/* ---------- 3. 视频卡片 ---------- */
.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); transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f3e6f6; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.video-card:hover .card-cover img { transform: scale(1.06); }
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; padding-left: 3px; box-shadow: 0 6px 18px rgba(60, 10, 60, .25);
  transition: transform .25s;
}
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.12); }
.duration {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(24, 10, 26, .78); color: #fff; font-size: 12px;
  padding: 2px 9px; border-radius: 7px; font-variant-numeric: tabular-nums;
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; 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;
}
.card-desc {
  margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.meta-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.meta-name { font-size: 12.5px; font-weight: 600; color: #6b5470; }
.meta-views, .meta-likes { font-size: 12px; color: var(--muted); }
.meta-likes { color: #e0529c; }

/* ---------- 4. 明星创作者 ---------- */
.creator-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.creator-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 12px 22px; text-align: center; transition: transform .3s, box-shadow .3s;
}
.creator-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.creator-avatar-wrap { position: relative; display: inline-block; }
.creator-avatar {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--accent);
}
.creator-star {
  position: absolute; right: -4px; bottom: -2px; width: 26px; height: 26px;
  background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; box-shadow: 0 3px 8px rgba(120, 30, 120, .25);
}
.creator-name { margin-top: 12px; font-size: 15.5px; font-weight: 700; }
.creator-tag { margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.creator-fans {
  display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark); font-size: 12.5px; font-weight: 600;
}

/* ---------- 5. 平台特色 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  background: var(--card); border-radius: 18px; padding: 24px 22px;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center; font-size: 23px; margin-bottom: 14px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.feature-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ---------- 6. 数据统计 ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 26px; padding: 46px 30px; color: #fff;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
  box-shadow: 0 18px 44px rgba(162, 28, 175, .28);
}
.stat-item .num { display: block; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-item .label { font-size: 13.5px; color: rgba(255, 255, 255, .82); }

/* ---------- 7. 用户评价 ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.review-head { display: flex; align-items: center; gap: 11px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.review-name { font-size: 14.5px; font-weight: 700; }
.review-stars { margin-left: auto; color: var(--sand); font-size: 14px; letter-spacing: 2px; }
.review-text { margin-top: 13px; font-size: 13.5px; color: #6f5b74; line-height: 1.85; }

/* ---------- 8. 成功故事 ---------- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story-card {
  background: var(--card); border-radius: var(--radius); padding: 26px 24px;
  border-top: 4px solid var(--primary); box-shadow: var(--shadow);
  transition: transform .3s;
}
.story-card:hover { transform: translateY(-5px); }
.story-tag {
  display: inline-block; padding: 3px 12px; border-radius: 999px; margin-bottom: 13px;
  background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 700;
}
.story-card h3 { font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.story-card p { margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.85; }

/* ---------- 9. APP 展示 ---------- */
.app-section { background: var(--bg-alt); }
.app-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
.app-copy h2 { font-size: 30px; font-weight: 800; }
.app-copy > p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 520px; }
.app-points { margin-top: 28px; display: grid; gap: 18px; }
.app-point { display: flex; gap: 14px; align-items: flex-start; }
.point-icon {
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.app-point h3 { font-size: 16px; font-weight: 700; }
.app-point p { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.app-visual { display: flex; justify-content: center; }
.phone {
  position: relative; width: 280px; height: 580px;
  background: #2a1a30; border-radius: 46px; padding: 12px;
  box-shadow: 0 30px 70px rgba(80, 15, 90, .35);
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 132px; height: 26px; background: #2a1a30; border-radius: 0 0 16px 16px; z-index: 2;
}
.phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #f3e6f6; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 10. 页脚 ---------- */
.site-footer { background: var(--footer-bg); color: #e9d5ef; padding: 58px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
.footer-brand .logo { color: #fff; font-size: 22px; }
.footer-brand p { margin-top: 14px; font-size: 13.5px; color: #cfa9d8; line-height: 1.8; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 15px; }
.footer-col a { display: block; font-size: 13.5px; color: #cfa9d8; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 44px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: center; font-size: 13px; color: #b998c2;
}

/* ---------- 内页横幅 ---------- */
.page-banner {
  background: linear-gradient(135deg, #e879f9, var(--primary) 55%, var(--primary-dark));
  color: #fff; padding: 56px 0; text-align: center;
}
.page-banner h1 { font-size: 32px; font-weight: 800; }
.page-banner p { margin-top: 8px; color: rgba(255, 255, 255, .9); font-size: 15px; }

/* ---------- 精选页筛选 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.filter-btn {
  border: 1.5px solid #ecd2f4; background: #fff; color: #6b5470;
  padding: 8px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s; font-family: inherit;
}
.filter-btn:hover { border-color: var(--accent); color: var(--primary); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), #c026d3);
  color: #fff; border-color: transparent; box-shadow: 0 5px 14px rgba(217, 70, 239, .35);
}

/* ---------- 关于页 ---------- */
.about-story { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.about-story img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow-lg); }
.about-story h2 { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.about-story p { font-size: 14.5px; color: #6f5b74; line-height: 1.95; margin-bottom: 13px; }
.contact-block { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-item { background: var(--card); border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow); }
.contact-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.contact-item p { font-size: 13.5px; color: var(--muted); line-height: 1.8; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .creator-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .main-nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 22px 18px;
    box-shadow: 0 18px 34px rgba(60, 10, 60, .14); z-index: 55;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 32px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
  .app-inner { grid-template-columns: 1fr; gap: 40px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-story { grid-template-columns: 1fr; }
  .contact-block { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .creator-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 60px 0 56px; }
  .hero h1 { font-size: 26px; }
  .hero-stats { gap: 28px; }
  .hero-stat .num { font-size: 23px; }
  .section-head h2 { font-size: 24px; }
  .card-title { font-size: 14px; }
  .card-desc { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .phone { width: 250px; height: 520px; }
}
