/* ============================================
   糖心vlog · 扎染主题样式（主色 #d946ef · 浅色背景）
   ============================================ */
:root {
  --primary: #d946ef;
  --primary-2: #a855f7;
  --primary-3: #7c3aed;
  --ink: #33202e;
  --muted: #8d7a8b;
  --bg: #fdf6fd;
  --card: #ffffff;
  --line: #f0e2f2;
  --shadow: 0 10px 30px rgba(217, 70, 239, 0.10);
  --shadow-lg: 0 18px 50px rgba(168, 85, 247, 0.16);
  --r: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮 ---------- */
.btn {
  border: 1px solid #e3c9e9;
  background: #fff;
  color: var(--primary-3);
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.25s;
  display: inline-block;
}
.btn:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(217, 70, 239, 0.18); }
.btn-solid {
  border: none;
  background: linear-gradient(90deg, var(--primary), var(--primary-3));
  color: #fff;
}
.btn-solid:hover { filter: brightness(1.08); }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 26px; height: 68px; }
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 21px; font-weight: 800; color: var(--primary-3);
  white-space: nowrap;
}
.logo-emoji { font-size: 26px; }
.nav-links { display: flex; gap: 20px; font-size: 15px; color: #5c4858; }
.nav-links a { transition: 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-right { margin-left: auto; display: flex; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e879f9 0%, #d946ef 45%, #8b5cf6 100%);
  color: #fff;
  text-align: center;
  padding: 92px 0 84px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 560px; height: 560px; left: -180px; top: -220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 62%);
}
.hero::after {
  width: 480px; height: 480px; right: -140px; bottom: -220px;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.25), transparent 62%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: 42px; font-weight: 800; letter-spacing: 1px; }
.hero .sub { max-width: 660px; margin: 18px auto 0; font-size: 16px; opacity: 0.95; }
.searchbox {
  display: flex; max-width: 560px; margin: 36px auto 0;
  background: #fff; border-radius: 999px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.35);
}
.searchbox input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 16px 24px; font-size: 15px; color: var(--ink);
}
.searchbox button {
  border: none; cursor: pointer;
  background: linear-gradient(90deg, var(--primary), var(--primary-3));
  color: #fff; padding: 0 28px; font-size: 15px;
}
.hero-stats { display: flex; justify-content: center; gap: 64px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .num { font-size: 30px; font-weight: 800; }
.hero-stats .lab { font-size: 13px; opacity: 0.88; }

/* ---------- 粒子 ---------- */
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  opacity: 0; animation: floatUp 8s linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(30px); opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.6; }
  100% { transform: translateY(-140px); opacity: 0; }
}

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 30px; font-weight: 800; }
.hl {
  background: linear-gradient(90deg, var(--primary), var(--primary-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.more-wrap { text-align: center; margin-top: 34px; }
.more-wrap .btn { padding: 11px 30px; }

/* ---------- 视频卡片 ---------- */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.video-card {
  background: var(--card); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); transition: 0.3s;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f3e8f5; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.video-card:hover .cover img { transform: scale(1.06); }
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(217, 70, 239, 0.92); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; opacity: 0; transition: 0.3s;
  padding-left: 3px;
}
.video-card:hover .play-btn { opacity: 1; }
.duration {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(20, 8, 26, 0.72); color: #fff;
  font-size: 12px; padding: 2px 8px; border-radius: 6px;
}
.v-body { padding: 14px 16px 16px; }
.v-title {
  font-size: 15px; font-weight: 700; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 3em;
}
.v-desc {
  color: var(--muted); font-size: 13px; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.v-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.v-meta img { width: 24px; height: 24px; border-radius: 50%; }
.v-meta .creator { color: var(--ink); font-weight: 600; }
.v-meta .views { margin-left: auto; }

/* ---------- 创作者 ---------- */
.creator-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.creator-card {
  background: var(--card); border-radius: var(--r);
  padding: 24px 10px; text-align: center;
  box-shadow: var(--shadow); transition: 0.3s;
}
.creator-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.creator-card .avatar {
  position: relative; width: 72px; height: 72px;
  border-radius: 50%; margin: 0 auto;
  border: 3px solid var(--primary); padding: 2px; background: #fff;
}
.creator-card .avatar img { width: 100%; height: 100%; border-radius: 50%; }
.creator-card .star {
  position: absolute; right: -4px; bottom: -4px;
  background: #fff; border-radius: 50%; padding: 2px; font-size: 14px;
}
.creator-card h3 { margin-top: 12px; font-size: 15px; }
.creator-card p { color: var(--muted); font-size: 13px; }

/* ---------- 平台特色 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 20px; transition: 0.3s;
}
.feature-card:hover {
  border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow);
}
.feature-card .ico { font-size: 30px; }
.feature-card h3 { margin: 12px 0 6px; font-size: 16px; }
.feature-card p { font-size: 13px; color: var(--muted); }

/* ---------- 数据统计 ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  border-radius: 26px; color: #fff;
  padding: 44px 20px;
  display: flex; justify-content: space-around; flex-wrap: wrap;
  gap: 24px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.stat-item .num { font-size: 36px; font-weight: 800; }
.stat-item .lab, .stat-item div:last-child { font-size: 14px; opacity: 0.92; }

/* ---------- 用户评价 ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi-card {
  background: var(--card); border-radius: var(--r);
  padding: 24px; box-shadow: var(--shadow); transition: 0.3s;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testi-head { display: flex; align-items: center; gap: 12px; }
.testi-head img { width: 44px; height: 44px; border-radius: 50%; }
.testi-head h4 { font-size: 15px; }
.stars { color: #fbbf24; letter-spacing: 2px; font-size: 14px; }
.testi-text { color: #5c4858; font-size: 14px; margin-top: 12px; }

/* ---------- 成功故事 ---------- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story-card {
  background: linear-gradient(160deg, #fdf0fc, #f6e8ff);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; transition: 0.3s;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.story-card .tag {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff; font-size: 12px; padding: 3px 12px;
  border-radius: 999px; margin-bottom: 12px;
}
.story-card h3 { font-size: 17px; }
.story-card p { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- APP 展示 ---------- */
.app-wrap {
  display: flex; align-items: center; gap: 60px;
  background: linear-gradient(135deg, #fbe9fd, #efe4ff);
  border-radius: 30px; padding: 56px;
}
.app-left { flex: 1; }
.app-left h2 { font-size: 30px; font-weight: 800; }
.app-sub { color: #5c4858; margin-top: 12px; font-size: 15px; }
.app-points { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.app-point { display: flex; gap: 12px; }
.app-point .ico { font-size: 26px; }
.app-point h4 { font-size: 15px; }
.app-point p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.app-right { flex-shrink: 0; }
.phone {
  width: 264px; height: 548px;
  background: #241430; border-radius: 46px; padding: 12px;
  box-shadow: 0 30px 70px rgba(124, 58, 237, 0.35);
  position: relative;
}
.phone-notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 24px; background: #241430; border-radius: 14px; z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
}
.phone-screen .ph-top {
  height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, var(--primary), var(--primary-3));
  color: #fff; font-size: 13px; font-weight: 700;
}
.phone-screen img { flex: 1; width: 100%; object-fit: cover; }
.phone-screen .ph-bottom {
  height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-around;
  font-size: 18px; color: var(--primary-3); border-top: 1px solid var(--line);
}

/* ---------- 页脚 ---------- */
footer { background: #2a1433; color: #e9d8ec; margin-top: 72px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding: 56px 0 40px;
}
.footer-logo { color: #fff; font-size: 20px; }
.footer-intro { color: #c9aed2; font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 15px; }
.footer-col a { display: block; color: #c9aed2; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: #f0abfc; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0; text-align: center;
  font-size: 13px; color: #b391bd;
}

/* ---------- 内页横幅 ---------- */
.page-hero {
  background: linear-gradient(135deg, #e879f9 0%, #d946ef 50%, #8b5cf6 100%);
  color: #fff; text-align: center; padding: 64px 0 60px;
}
.page-hero h1 { font-size: 36px; font-weight: 800; }
.page-hero p { margin-top: 10px; opacity: 0.92; font-size: 16px; }

/* ---------- 精选页筛选 ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: var(--card); border-radius: 16px;
  padding: 16px 20px; box-shadow: var(--shadow); margin-bottom: 28px;
}
.filter-bar input {
  flex: 1; min-width: 220px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 16px; outline: none; font-size: 14px; color: var(--ink);
}
.filter-bar input:focus { border-color: var(--primary); }
.filter-btn {
  border: 1px solid var(--line); background: #fff; color: #5c4858;
  border-radius: 999px; padding: 8px 20px; cursor: pointer; font-size: 14px;
  transition: 0.2s;
}
.filter-btn.active {
  background: linear-gradient(90deg, var(--primary), var(--primary-3));
  color: #fff; border-color: transparent;
}

/* ---------- 关于页 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-card { background: var(--card); border-radius: var(--r); padding: 32px; box-shadow: var(--shadow); }
.about-card h3 { font-size: 20px; margin-bottom: 8px; }
.about-card p { color: #5c4858; font-size: 15px; margin-top: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .creator-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid, .story-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 32px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid, .story-grid { grid-template-columns: 1fr; }
  .app-wrap { flex-direction: column; padding: 34px 20px; }
  .app-points { grid-template-columns: 1fr; }
  .app-right { margin-top: 10px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr; }
}
