/* ============================================================
   糖心vlog · 全站样式
   主色：#1e3a8a（藏青） · 浅色主题
   ============================================================ */
:root {
  --primary: #1e3a8a;
  --primary-deep: #172554;
  --primary-soft: #e0e7ff;
  --grad: linear-gradient(135deg, #1e3a8a 0%, #172554 60%, #0f172a 100%);
  --bg: #f3f6ff;
  --card: #ffffff;
  --text: #24304d;
  --muted: #8a93b0;
  --line: #dde4f7;
  --dark: #111a38;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(30, 58, 138, .12);
  --shadow-hover: 0 14px 36px rgba(30, 58, 138, .22);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 通用 ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 42px; }
.section-head .tag {
  display: inline-block; padding: 5px 16px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-deep);
  font-size: 13px; font-weight: 600; letter-spacing: 1px; margin-bottom: 12px;
}
.section-head h2 { font-size: 30px; letter-spacing: .5px; }
.section-head p { color: var(--muted); margin-top: 8px; font-size: 15px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; transition: all .25s ease;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 20px rgba(30, 58, 138, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30, 58, 138, .45); }
.btn-ghost {
  background: rgba(255, 255, 255, .25); color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .7); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .4); }
.btn-line {
  background: #fff; color: var(--primary-deep);
  border: 1.5px solid var(--primary-soft);
}
.btn-line:hover { border-color: var(--primary); box-shadow: var(--shadow); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; color: var(--primary-deep); }
.brand .logo {
  width: 40px; height: 40px; border-radius: 13px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  box-shadow: 0 4px 12px rgba(30, 58, 138, .4);
}
.nav-links { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; color: #5b6687; }
.nav-links a { position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-deep); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  border-radius: 3px; background: var(--grad);
}
.nav-actions { display: flex; gap: 10px; }
.nav-actions .btn { padding: 8px 20px; font-size: 14px; }
.nav-actions .login { color: var(--primary-deep); }
.nav-burger { display: none; font-size: 24px; background: none; border: none; color: var(--text); cursor: pointer; }
.nav-mobile {
  display: none; flex-direction: column; gap: 2px; padding: 10px 20px 18px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.nav-mobile a { padding: 11px 6px; border-radius: 10px; font-size: 15px; }
.nav-mobile a:hover { background: var(--bg); color: var(--primary-deep); }
.nav-mobile.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: var(--grad); padding: 110px 0 90px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .25) 0 90px, transparent 90px),
    radial-gradient(circle at 84% 30%, rgba(255, 255, 255, .18) 0 130px, transparent 130px),
    radial-gradient(circle at 70% 85%, rgba(255, 255, 255, .14) 0 110px, transparent 110px);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: 46px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 4px 18px rgba(15, 23, 42, .35); }
.hero .sub { margin-top: 14px; font-size: 17px; opacity: .94; }
.hero-search {
  margin: 34px auto 0; max-width: 620px; display: flex; gap: 10px;
  background: #fff; border-radius: 999px; padding: 7px 7px 7px 24px;
  box-shadow: 0 14px 40px rgba(23, 37, 84, .3);
}
.hero-search input {
  flex: 1; border: none; outline: none; font-size: 15px; color: var(--text); background: transparent;
}
.hero-search button {
  border: none; background: var(--grad); color: #fff; width: 48px; height: 48px;
  border-radius: 50%; font-size: 18px; cursor: pointer; flex-shrink: 0;
  transition: transform .2s;
}
.hero-search button:hover { transform: scale(1.08); }
.hero-stats { margin-top: 40px; display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; }
.hero-stats .num { font-size: 32px; font-weight: 800; }
.hero-stats .label { font-size: 14px; opacity: .9; margin-top: 2px; }

/* 漂浮粒子 */
.dot {
  position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .55);
  animation: floatUp linear infinite; pointer-events: none;
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  12% { opacity: .9; }
  88% { opacity: .5; }
  100% { transform: translateY(-78vh) scale(.6); opacity: 0; }
}

/* ---------- 精选视频 ---------- */
.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 .28s ease, box-shadow .28s ease;
  cursor: pointer; display: flex; flex-direction: column;
}
.video-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-hover); }
.video-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--primary-soft); }
.video-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video-card:hover .video-cover img { transform: scale(1.07); }
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: var(--primary-deep); opacity: 0; transform: scale(.7);
  transition: all .28s ease; box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.video-card:hover .play-btn { opacity: 1; transform: scale(1); }
.duration {
  position: absolute; right: 10px; bottom: 10px; background: rgba(17, 26, 56, .78);
  color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 7px;
}
.video-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.video-title {
  font-size: 15px; font-weight: 700; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-desc {
  font-size: 13px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.video-creator { margin-top: auto; display: flex; align-items: center; gap: 9px; padding-top: 10px; border-top: 1px dashed var(--line); }
.video-creator img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.video-creator .who { flex: 1; min-width: 0; }
.video-creator .name { font-size: 13px; font-weight: 600; }
.video-creator .nums { font-size: 12px; color: var(--muted); }
.video-creator .like { font-size: 12px; color: var(--primary-deep); font-weight: 600; white-space: nowrap; }

/* ---------- 明星创作者 ---------- */
.creator-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.creator-card {
  position: relative; text-align: center; background: var(--card); border-radius: var(--radius);
  padding: 30px 18px 24px; box-shadow: var(--shadow); transition: transform .28s ease, box-shadow .28s ease;
}
.creator-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.creator-card .ava { position: relative; width: 86px; height: 86px; margin: 0 auto; }
.creator-card .ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-soft); }
.badge-star {
  position: absolute; right: -2px; bottom: 2px; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #ffd76e, #ff9d3c); display: flex; align-items: center; justify-content: center;
  font-size: 14px; box-shadow: 0 3px 8px rgba(255, 157, 60, .45); border: 2px solid #fff;
}
.creator-card .cname { margin-top: 14px; font-size: 16px; font-weight: 700; }
.creator-card .intro { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.creator-card .fans { margin-top: 10px; display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--bg); color: var(--primary-deep); font-size: 12.5px; font-weight: 700; }

/* ---------- 平台特色 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: var(--card); border-radius: var(--radius); padding: 30px 24px;
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: all .28s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--primary-soft); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: 0 6px 16px rgba(30, 58, 138, .35); margin-bottom: 18px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--muted); }

/* ---------- 数据统计 ---------- */
.stats-band {
  background: var(--grad); color: #fff; padding: 56px 0; position: relative; overflow: hidden;
}
.stats-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .2) 0 100px, transparent 100px),
              radial-gradient(circle at 88% 75%, rgba(255, 255, 255, .16) 0 140px, transparent 140px);
}
.stats-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-item .num { font-size: 38px; font-weight: 800; text-shadow: 0 3px 14px rgba(15, 23, 42, .35); }
.stats-item .label { font-size: 14px; opacity: .92; margin-top: 4px; }

/* ---------- 用户评价 ---------- */
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.review-card {
  background: var(--card); border-radius: var(--radius); padding: 24px 22px;
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .28s ease;
}
.review-card:hover { transform: translateY(-5px); }
.review-head { display: flex; align-items: center; gap: 11px; }
.review-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review-head .rname { font-size: 14.5px; font-weight: 700; }
.review-stars { color: #ffb340; font-size: 13px; letter-spacing: 2px; }
.review-text { margin-top: 13px; font-size: 13.5px; color: #5b6687; 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 26px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  position: relative; overflow: hidden; transition: transform .28s ease, box-shadow .28s ease;
}
.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 { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-deep); font-size: 12px; font-weight: 700; }
.story-card h3 { margin-top: 14px; font-size: 16.5px; line-height: 1.5; }
.story-card p { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

/* ---------- APP 展示 ---------- */
.app-section { background: #fff; }
.app-wrap { display: flex; align-items: center; gap: 64px; flex-wrap: wrap; }
.app-left { flex: 1; min-width: 300px; }
.app-left .tag { display: inline-block; padding: 5px 16px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-deep); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.app-left h2 { font-size: 30px; }
.app-left > p { color: var(--muted); margin-top: 10px; }
.app-features { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.app-feature { display: flex; gap: 15px; align-items: flex-start; }
.app-feature .fi {
  width: 46px; height: 46px; border-radius: 14px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0;
  border: 1px solid var(--line);
}
.app-feature h4 { font-size: 15.5px; }
.app-feature p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.app-btns { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* 手机模型 */
.phone {
  width: 290px; height: 590px; border-radius: 46px; background: #111a38;
  padding: 12px; box-shadow: 0 30px 60px rgba(23, 37, 84, .3), 0 0 0 8px rgba(255, 255, 255, .6);
  flex-shrink: 0; position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 130px; height: 24px; border-radius: 999px; background: #111a38; z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #f3f6ff;
  display: flex; flex-direction: column;
}
.ps-head { background: var(--grad); padding: 46px 18px 16px; color: #fff; }
.ps-head .ps-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.ps-search { margin-top: 12px; background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 11.5px; color: var(--muted); }
.ps-banner { margin: 14px 14px 0; border-radius: 14px; height: 88px; background: linear-gradient(135deg, #e0e7ff, #b9c8f8); display: flex; align-items: center; padding: 0 16px; gap: 10px; }
.ps-banner .bb { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.ps-banner .bt { font-size: 12px; font-weight: 800; color: #172554; }
.ps-banner .bs { font-size: 10.5px; color: #3b5bdb; margin-top: 2px; }
.ps-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.ps-item { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 3px 10px rgba(30, 58, 138, .15); }
.ps-item img { width: 100%; height: 66px; object-fit: cover; }
.ps-item .pi-t { font-size: 10px; font-weight: 700; padding: 5px 8px; line-height: 1.4; }
.ps-tabbar { display: flex; justify-content: space-around; padding: 10px 8px 18px; border-top: 1px solid var(--line); background: #fff; }
.ps-tabbar span { font-size: 11px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ps-tabbar span.on { color: var(--primary-deep); font-weight: 700; }

/* ---------- 页脚 ---------- */
.footer { background: var(--dark); color: #c2cbdd; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer-intro { font-size: 13.5px; line-height: 1.8; max-width: 320px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; font-size: 13.5px; }
.footer-links a:hover { color: #8aa4ff; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: center; font-size: 13px;
}

/* ---------- 内页通用 ---------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--grad); color: #fff;
  text-align: center; padding: 72px 0 64px;
}
.page-hero h1 { font-size: 36px; font-weight: 800; text-shadow: 0 4px 16px rgba(15, 23, 42, .35); }
.page-hero p { margin-top: 10px; font-size: 15px; opacity: .95; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.chip {
  padding: 8px 22px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line);
  font-size: 14px; cursor: pointer; transition: all .22s ease; color: #5b6687;
}
.chip:hover { border-color: var(--primary); color: var(--primary-deep); }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(30, 58, 138, .35); }

.about-panel { background: var(--card); border-radius: var(--radius); padding: 44px 46px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.about-panel h2 { font-size: 22px; margin-bottom: 16px; color: var(--primary-deep); }
.about-panel p { color: #5b6687; font-size: 15px; line-height: 2; margin-bottom: 12px; }
.about-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.about-point { text-align: center; padding: 26px 18px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.about-point .ap-icon { font-size: 30px; }
.about-point h4 { margin: 10px 0 6px; font-size: 15.5px; }
.about-point p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------- 滚动浮现 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .creator-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .about-points { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .creator-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: block; }
  .app-wrap { gap: 40px; justify-content: center; }
  .hero h1 { font-size: 34px; }
  .hero-stats { gap: 34px; }
  .section { padding: 56px 0; }
  .phone { width: 250px; height: 510px; }
  .about-panel { padding: 30px 24px; }
}
@media (max-width: 480px) {
  .feature-grid, .review-grid, .story-grid, .creator-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .hero .sub { font-size: 15px; }
  .hero-stats .num { font-size: 26px; }
}
