/* ============ 糖心vlog 全局样式（主色 #3b82f6 / 浅色背景） ============ */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #93c5fd;
  --primary-soft: #eaf2ff;
  --bg: #f5f8ff;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(59, 130, 246, .10);
  --shadow-lg: 0 16px 40px rgba(59, 130, 246, .16);
}
* { 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 { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ============ 顶部导航 ============ */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); box-shadow: 0 2px 12px rgba(30, 41, 59, .06); }
.nav-inner { display: flex; align-items: center; gap: 20px; 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: 24px; }
.nav-links { display: flex; flex: 1; gap: 4px; flex-wrap: wrap; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: #334155; font-size: 14.5px; transition: .2s; }
.nav-links a:hover { background: var(--primary-soft); color: var(--primary); }
.nav-links a.active { background: var(--primary); color: #fff; }
.nav-auth { display: flex; align-items: center; gap: 10px; }
.btn-ghost { border: 1px solid var(--primary); background: #fff; color: var(--primary); padding: 8px 18px; border-radius: 999px; font-size: 14px; cursor: pointer; transition: .2s; }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-primary { border: none; background: var(--primary); color: #fff; padding: 8px 18px; border-radius: 999px; font-size: 14px; cursor: pointer; transition: .2s; }
.btn-primary:hover { background: var(--primary-dark); }
.hamburger { display: none; border: none; background: var(--primary-soft); color: var(--primary); font-size: 18px; padding: 6px 12px; border-radius: 10px; cursor: pointer; }

/* ============ Hero 区 ============ */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #2563eb 0%, #3b82f6 45%, #60a5fa 100%); color: #fff; padding: 84px 0 72px; text-align: center; }
.particles { position: absolute; inset: 0; pointer-events: none; }
.particle { position: absolute; bottom: -24px; border-radius: 50%; background: rgba(255, 255, 255, .6); animation: floatUp linear infinite; }
@keyframes floatUp {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: .85; }
  90%  { opacity: .45; }
  100% { transform: translate(44px, -560px); opacity: 0; }
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; text-shadow: 0 2px 12px rgba(30, 58, 138, .25); }
.hero-sub { font-size: clamp(15px, 2vw, 18px); opacity: .95; max-width: 660px; margin: 0 auto 32px; }
.search-box { display: flex; max-width: 560px; margin: 0 auto 40px; background: #fff; border-radius: 999px; padding: 6px; box-shadow: var(--shadow-lg); }
.search-box input { flex: 1; min-width: 0; border: none; outline: none; padding: 12px 22px; font-size: 15px; border-radius: 999px; color: var(--text); background: transparent; }
.search-box button { border: none; background: var(--primary); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 20px; cursor: pointer; flex-shrink: 0; transition: .2s; }
.search-box button:hover { background: var(--primary-dark); }
.hero-stats { display: flex; justify-content: center; gap: clamp(28px, 6vw, 76px); flex-wrap: wrap; }
.hero-stats .count { display: block; font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; }
.hero-stats label { font-size: 14px; opacity: .9; }

/* ============ 通用区块 ============ */
.section { padding: 72px 0; }
.section-alt { background: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 6px; }
.more-link { color: var(--primary); font-weight: 600; white-space: nowrap; }
.more-link:hover { text-decoration: underline; }
.mt-lg { margin-top: 56px; }

/* ============ 视频卡片 ============ */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.video-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s; display: flex; flex-direction: column; }
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.video-card:hover .cover img { transform: scale(1.06); }
.play-btn { position: absolute; inset: 0; margin: auto; 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: 20px; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); transition: .2s; }
.video-card:hover .play-btn { background: var(--primary); color: #fff; }
.duration { position: absolute; right: 10px; bottom: 10px; background: rgba(15, 23, 42, .78); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 8px; }
.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 15.5px; font-weight: 700; line-height: 1.45; margin-bottom: 6px; min-height: 44px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body > p { font-size: 13px; color: var(--muted); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.creator-row { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.creator-meta { min-width: 0; }
.creator-name { display: block; font-size: 13px; font-weight: 600; }
.creator-stats { font-size: 12px; color: var(--muted); }

/* ============ 明星创作者 ============ */
.creator-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.creator-card { position: relative; background: var(--card); border-radius: var(--radius); padding: 28px 16px; text-align: center; box-shadow: var(--shadow); transition: .25s; }
.creator-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.creator-avatar { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 12px; object-fit: cover; border: 3px solid var(--primary-soft); }
.badge-star { position: absolute; top: 12px; right: 12px; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.creator-card h3 { font-size: 16px; margin-bottom: 4px; }
.creator-tag { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.creator-fans { font-size: 13px; color: var(--primary); font-weight: 700; }

/* ============ 平台特色 ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-grid.three { grid-template-columns: repeat(3, 1fr); }
.feature-card { background: var(--card); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); transition: .25s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--muted); line-height: 1.8; }

/* ============ 数据统计区 ============ */
.stats-band { background: linear-gradient(120deg, #1d4ed8, #3b82f6 55%, #60a5fa); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; }
.stat-label { font-size: 14px; opacity: .9; margin-top: 4px; }

/* ============ 用户评价 ============ */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: .25s; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.testimonial-head .avatar { width: 44px; height: 44px; }
.t-name { font-weight: 700; font-size: 15px; }
.stars { color: #f59e0b; font-size: 14px; letter-spacing: 2px; }
.testimonial-text { font-size: 14px; color: #334155; line-height: 1.8; }

/* ============ 成功故事 ============ */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.story-card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--primary); transition: .25s; }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.story-num { font-size: 30px; font-weight: 800; color: var(--primary-light); margin-bottom: 10px; }
.story-card h3 { font-size: 17px; margin-bottom: 10px; }
.story-card p { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ============ APP 展示区 ============ */
.app-wrap { display: flex; align-items: center; gap: 56px; flex-wrap: wrap; }
.app-copy { flex: 1; min-width: 300px; }
.app-copy h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 12px; }
.app-copy > p { color: var(--muted); margin-bottom: 28px; }
.app-points { display: grid; gap: 20px; }
.app-point { display: flex; gap: 14px; align-items: flex-start; }
.app-point > span { font-size: 24px; background: var(--primary-soft); width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-point h4 { font-size: 16px; margin-bottom: 4px; }
.app-point p { font-size: 13.5px; color: var(--muted); }
.phone { width: 250px; height: 512px; border-radius: 38px; background: #0f172a; padding: 12px; box-shadow: var(--shadow-lg); flex-shrink: 0; position: relative; }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 92px; height: 20px; background: #0f172a; border-radius: 0 0 14px 14px; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }

/* ============ 页脚 ============ */
.footer { background: #0f172a; color: #cbd5e1; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; opacity: .85; max-width: 300px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; margin-bottom: 10px; opacity: .85; transition: .2s; }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; padding: 18px 0; font-size: 13px; opacity: .7; }

/* ============ 内页：页头横幅 / 筛选 / 关于 ============ */
.page-banner { background: linear-gradient(135deg, #2563eb, #3b82f6 50%, #60a5fa); color: #fff; padding: 64px 0 56px; text-align: center; }
.page-banner h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 10px; }
.page-banner p { opacity: .95; margin-bottom: 28px; }
.filter-box { display: flex; align-items: center; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 999px; padding: 6px 6px 6px 22px; box-shadow: var(--shadow-lg); }
.filter-box input { flex: 1; min-width: 0; border: none; outline: none; padding: 10px 0; font-size: 15px; border-radius: 999px; color: var(--text); background: transparent; }
.filter-box .filter-count { flex-shrink: 0; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 999px; margin-right: 6px; white-space: nowrap; }
.filter-tip { color: rgba(255, 255, 255, .85); font-size: 13px; margin-top: 14px; }
.about-intro { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.about-intro p { font-size: 15.5px; color: #334155; line-height: 2; margin-bottom: 16px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.contact-card { background: var(--card); border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); }
.contact-icon { font-size: 30px; margin-bottom: 10px; }
.contact-card h4 { font-size: 15px; margin-bottom: 6px; }
.contact-card p { font-size: 13.5px; color: var(--muted); }

/* ============ 响应式 ============ */
@media (max-width: 1000px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .creator-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid, .feature-grid.three { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 4%; box-shadow: 0 12px 24px rgba(30, 41, 59, .08); }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
}
@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .creator-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { gap: 14px; }
  .card-body h3 { font-size: 13.5px; min-height: 40px; }
  .play-btn { width: 40px; height: 40px; font-size: 15px; }
  .search-box { max-width: 94%; }
  .phone { transform: scale(.9); }
  .hero { padding: 64px 0 56px; }
}
