/* ============================================
   糖心vlog - 站点样式（主色 #10b981 / 浅色背景）
   ============================================ */
:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #6ee7b7;
  --primary-soft: #ecfdf5;
  --bg: #f2faf6;
  --card: #ffffff;
  --text: #1e2b26;
  --text-light: #6e8379;
  --radius: 18px;
  --shadow: 0 6px 18px rgba(16, 185, 129, .08);
  --shadow-hover: 0 14px 32px rgba(16, 185, 129, .18);
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ---------- 顶部导航 ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ddf2e9;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.brand .logo-emoji { font-size: 26px; }
.nav-links { display: flex; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav-links a { padding: 6px 12px; border-radius: 999px; font-size: 15px; color: #4c5f56; transition: .2s; }
.nav-links a:hover, .nav-links a.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.nav-btns { display: flex; gap: 10px; white-space: nowrap; }
.btn { border: none; cursor: pointer; border-radius: 999px; padding: 8px 20px; font-size: 14px; transition: .2s; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary-dark); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-solid { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 4px 14px rgba(16, 185, 129, .35); }
.btn-solid:hover { transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--primary-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #10b981 0%, #34d399 45%, #0d9488 100%);
  padding: 84px 0 76px;
  text-align: center;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 45%),
              radial-gradient(circle at 85% 75%, rgba(255,255,255,.14), transparent 40%);
  pointer-events: none;
}
.particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  animation: floatUp linear infinite;
}
.particle:nth-child(1) { left: 8%; width: 10px; height: 10px; animation-duration: 9s; }
.particle:nth-child(2) { left: 18%; width: 6px; height: 6px; animation-duration: 7s; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; width: 14px; height: 14px; animation-duration: 11s; animation-delay: .5s; }
.particle:nth-child(4) { left: 44%; width: 8px; height: 8px; animation-duration: 8s; animation-delay: 2s; }
.particle:nth-child(5) { left: 56%; width: 12px; height: 12px; animation-duration: 10s; animation-delay: 1.4s; }
.particle:nth-child(6) { left: 66%; width: 7px; height: 7px; animation-duration: 7.5s; animation-delay: .8s; }
.particle:nth-child(7) { left: 76%; width: 15px; height: 15px; animation-duration: 12s; animation-delay: 2.4s; }
.particle:nth-child(8) { left: 86%; width: 9px; height: 9px; animation-duration: 8.5s; animation-delay: 1.8s; }
.particle:nth-child(9) { left: 92%; width: 6px; height: 6px; animation-duration: 6.5s; animation-delay: .3s; }
.particle:nth-child(10) { left: 50%; width: 11px; height: 11px; animation-duration: 9.5s; animation-delay: 3s; }
@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  12% { opacity: .9; }
  100% { transform: translateY(-560px) scale(.4); opacity: 0; }
}
.hero-inner { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .45);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 900; letter-spacing: 1px; text-shadow: 0 3px 12px rgba(4, 120, 87, .3); }
.hero .subtitle { margin-top: 14px; font-size: clamp(15px, 2vw, 18px); opacity: .95; }
.search-box {
  position: relative;
  max-width: 560px;
  margin: 30px auto 0;
  display: flex;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 12px 34px rgba(4, 120, 87, .3);
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 22px;
  font-size: 16px;
  color: var(--text);
  min-width: 0;
}
.search-box button {
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 999px;
  padding: 0 30px;
  font-size: 16px;
  transition: .2s;
}
.search-box button:hover { filter: brightness(1.08); }
.search-tip {
  display: inline-block;
  margin-top: 14px;
  background: rgba(255, 255, 255, .25);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition: .3s;
}
.search-tip.show { opacity: 1; transform: translateY(0); }
.hero-stats {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  gap: clamp(22px, 6vw, 70px);
  flex-wrap: wrap;
}
.hero-stats .hs-item b { display: block; font-size: clamp(22px, 3vw, 32px); font-weight: 900; }
.hero-stats .hs-item span { font-size: 14px; opacity: .9; }

/* ---------- 通用区块 ---------- */
.section { padding: 68px 0; }
.sec-head { text-align: center; margin-bottom: 42px; }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; color: var(--text); }
.sec-head .sec-bar { width: 56px; height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); margin: 14px auto 0; }
.sec-head p { margin-top: 12px; color: var(--text-light); font-size: 15px; }

/* ---------- 视频卡片 ---------- */
.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 .25s, box-shadow .25s;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #e3f4ec; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .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(16, 185, 129, .9);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  opacity: 0;
  transition: .3s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.video-card:hover .play-btn { opacity: 1; }
.dur-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 6px;
}
.v-info { padding: 14px 16px 16px; }
.v-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: 44px;
}
.v-desc { margin-top: 6px; font-size: 13px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.v-meta { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.v-avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--primary-light); }
.v-meta-txt { display: flex; flex-direction: column; line-height: 1.3; }
.v-creator { font-size: 13.5px; font-weight: 600; }
.v-stats { font-size: 12px; color: var(--text-light); }

/* ---------- 明星创作者 ---------- */
.creator-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.creator-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.creator-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.c-avatar-wrap { position: relative; width: 86px; margin: 0 auto; }
.c-avatar { width: 86px; height: 86px; border-radius: 50%; border: 4px solid var(--primary-light); }
.c-star {
  position: absolute;
  right: -4px;
  bottom: 4px;
  background: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
}
.c-name { margin-top: 14px; font-size: 17px; font-weight: 800; }
.c-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid var(--primary-light);
  padding: 2px 12px;
  border-radius: 999px;
}
.c-fans { margin-top: 10px; font-size: 14px; color: var(--text-light); }

/* ---------- 平台特色 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.feature-ico {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
}
.feature-card h4 { font-size: 16.5px; font-weight: 800; }
.feature-card p { margin-top: 6px; font-size: 13.5px; color: var(--text-light); }

/* ---------- 数据统计区 ---------- */
.stats-band {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  padding: 52px 0;
  color: #fff;
}
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item b { display: block; font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: 1px; }
.stat-item span { font-size: 14.5px; opacity: .92; }

/* ---------- 用户评价 ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.testi-head { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--primary-light); }
.testi-head h4 { font-size: 15.5px; font-weight: 700; }
.stars .star { color: #dde6e1; font-size: 14px; }
.stars .star.on { color: #f59e0b; }
.testi-text { margin-top: 14px; font-size: 14px; color: #46564e; line-height: 1.7; }

/* ---------- 成功故事 ---------- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--primary);
}
.story-title { font-size: 18px; font-weight: 800; }
.story-desc { margin-top: 10px; font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ---------- APP 展示区 ---------- */
.app-section { background: #f0faf5; }
.app-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.app-copy h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; }
.app-copy > p { margin-top: 12px; color: var(--text-light); font-size: 15px; }
.app-points { margin-top: 28px; display: grid; gap: 18px; }
.app-point { display: flex; gap: 14px; align-items: flex-start; }
.app-point .ap-ico {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.app-point h4 { font-size: 15.5px; font-weight: 800; }
.app-point p { font-size: 13.5px; color: var(--text-light); margin-top: 2px; }
.phone-box { display: flex; justify-content: center; }
.phone {
  width: 290px;
  height: 590px;
  background: #101a16;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 26px 60px rgba(4, 120, 87, .32);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #101a16;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--primary-soft);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 页脚 ---------- */
.footer { background: #0e1f19; color: #c9d8d0; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer .brand { color: #6ee7b7; font-size: 22px; }
.footer .f-intro { margin-top: 14px; font-size: 13.5px; line-height: 1.8; color: #93a89e; max-width: 300px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { font-size: 13.5px; color: #93a89e; transition: .2s; }
.footer-links a:hover { color: #6ee7b7; }
.footer-bottom {
  border-top: 1px solid #22342d;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #7c9287;
}

/* ---------- 内页通用 ---------- */
.page-hero {
  background: linear-gradient(135deg, #10b981 0%, #34d399 55%, #0d9488 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; }
.page-hero p { margin-top: 10px; opacity: .95; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filter-btn {
  border: 1.5px solid var(--primary-light);
  background: #fff;
  color: #5d7067;
  border-radius: 999px;
  padding: 7px 22px;
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.filter-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(16, 185, 129, .3); }

/* ---------- 关于页 ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.about-card { background: var(--card); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow); text-align: center; }
.about-card .a-ico { font-size: 34px; }
.about-card h4 { margin-top: 12px; font-size: 17px; font-weight: 800; }
.about-card p { margin-top: 8px; font-size: 13.5px; color: var(--text-light); }
.about-story { background: var(--card); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); line-height: 2; color: #46564e; }
.about-story p + p { margin-top: 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .creator-grid, .testi-grid, .story-grid, .about-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app-wrap { grid-template-columns: 1fr; gap: 40px; }
  .phone { width: 260px; height: 530px; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 14px 20px 20px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .1);
    border-top: 1px solid #ddf2e9;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-btns .btn { padding: 7px 14px; font-size: 13px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature-grid, .creator-grid, .testi-grid, .story-grid, .about-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 52px; }
  .section { padding: 46px 0; }
  .v-title { font-size: 14px; min-height: 40px; }
  .play-btn { width: 40px; height: 40px; font-size: 14px; }
  .phone { width: 240px; height: 490px; }
}
