/* =========================================================
   糖心vlog · 香道主题 · 主色 #6366f1 · 深色背景
   ========================================================= */

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

:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #a78bfa;
  --bg: #0d0e1a;
  --bg-soft: #12142a;
  --card: #171a31;
  --card-2: #1d2040;
  --text: #eef0fb;
  --muted: #9aa0c0;
  --border: rgba(255, 255, 255, 0.07);
  --gold: #f5c66b;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

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.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

::selection { background: rgba(99, 102, 241, 0.45); }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 14, 26, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.logo-emoji { font-size: 24px; }
.logo .grad {
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--primary-light); font-weight: 600; }
.nav-actions { display: flex; gap: 10px; }
.btn {
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary-light); color: var(--primary-light); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { filter: brightness(1.12); }

@media (max-width: 1080px) {
  .nav-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 8px 16px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; gap: 18px; padding-bottom: 4px; }
  .nav-links::-webkit-scrollbar { height: 0; }
  .nav-actions { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 20px 84px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 18% 0%, rgba(99, 102, 241, 0.3), transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(167, 139, 250, 0.2), transparent 60%),
    linear-gradient(160deg, #171a36 0%, var(--bg) 62%);
}
.hero-inner { max-width: 840px; margin: 0 auto; position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.28;
  letter-spacing: 1px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { color: var(--muted); margin: 18px auto 36px; max-width: 600px; font-size: 16px; }
.search-box {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 999px;
  padding: 6px 6px 6px 24px;
  box-shadow: var(--shadow);
}
.search-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.search-box input::placeholder { color: #6b7090; }
.search-box button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.2s;
}
.search-box button:hover { filter: brightness(1.15); }
.hero-stats { display: flex; justify-content: center; gap: 64px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat b {
  display: block;
  font-size: 30px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat span { color: var(--muted); font-size: 13px; }

/* ---------- 漂浮粒子 ---------- */
.particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.particle {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.8);
  opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: 0.55; }
  85% { opacity: 0.18; }
  100% { transform: translateY(-620px) translateX(44px); opacity: 0; }
}

/* ---------- 通用区块 ---------- */
.section { padding: 66px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
.section-head h2 { font-size: 26px; padding-left: 14px; border-left: 4px solid var(--primary); line-height: 1.3; }
.section-head .more { color: var(--primary-light); font-size: 14px; }
.section-head .more:hover { color: var(--accent); }

/* ---------- 视频卡片 ---------- */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .video-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(99, 102, 241, 0.5); }
.cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.video-card:hover .cover img { transform: scale(1.06); }
.play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.play i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 17px;
  padding-left: 3px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.video-card:hover .play i { opacity: 1; transform: scale(1); }
.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(10, 11, 22, 0.82);
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 12px;
}
.video-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.video-title { font-size: 15px; font-weight: 600; line-height: 1.45; }
.video-desc { font-size: 12.5px; color: var(--muted); }
.video-meta { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 6px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.meta-text { display: flex; flex-direction: column; min-width: 0; }
.meta-text .creator { font-size: 13px; }
.meta-text .meta-stats { font-size: 11.5px; color: var(--muted); }

/* ---------- 明星创作者 ---------- */
.creator-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
@media (max-width: 1024px) { .creator-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .creator-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.creator-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 14px 22px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.creator-card:hover { transform: translateY(-5px); border-color: rgba(99, 102, 241, 0.5); }
.creator-avatar { position: relative; width: 78px; height: 78px; margin: 0 auto 12px; }
.creator-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(99, 102, 241, 0.5);
}
.badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 26px;
  height: 26px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.creator-card h3 { font-size: 15px; margin-bottom: 2px; }
.creator-card .fans { color: var(--primary-light); font-size: 13px; }
.creator-card .tag { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; }

/* ---------- 平台特色 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.5); }
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.32), rgba(167, 139, 250, 0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--muted); }

/* ---------- 数据统计 ---------- */
.stats-band {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(167, 139, 250, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 46px 20px;
  display: flex;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; min-width: 150px; }
.stat-item b {
  font-size: clamp(28px, 4vw, 38px);
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-item span { color: var(--muted); font-size: 14px; display: block; margin-top: 4px; }

/* ---------- 用户评价 ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}
.stars { color: var(--gold); letter-spacing: 3px; font-size: 15px; margin-bottom: 12px; }
.testi-text { font-size: 13.5px; color: #c9cdea; flex: 1; margin-bottom: 18px; }
.testi-user { display: flex; align-items: center; gap: 10px; }
.testi-user img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.testi-user .uname { font-size: 13.5px; font-weight: 600; }
.testi-user .utag { font-size: 11.5px; color: var(--muted); }

/* ---------- 成功故事 ---------- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }
.story-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.story-card:hover { transform: translateY(-5px); border-color: rgba(99, 102, 241, 0.5); }
.story-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.story-card h3 { font-size: 16.5px; margin-bottom: 10px; line-height: 1.5; }
.story-card p { font-size: 13.5px; color: var(--muted); }

/* ---------- APP 展示区 ---------- */
.app-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  background:
    radial-gradient(ellipse 50% 60% at 82% 50%, rgba(99, 102, 241, 0.16), transparent),
    var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 60px;
}
@media (max-width: 900px) {
  .app-section { flex-direction: column; padding: 38px 24px; gap: 40px; }
  .phone-wrap { order: -1; }
}
.app-copy h2 { font-size: 28px; margin-bottom: 12px; }
.app-copy > p { color: var(--muted); margin-bottom: 28px; max-width: 480px; }
.app-features { display: flex; flex-direction: column; gap: 20px; }
.app-features li { display: flex; gap: 14px; align-items: flex-start; }
.app-features .fi {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
}
.app-features h4 { font-size: 15px; }
.app-features p { font-size: 13px; color: var(--muted); }
.phone {
  position: relative;
  width: 242px;
  height: 486px;
  border-radius: 42px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  background: #05060f;
  padding: 10px;
  flex-shrink: 0;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(99, 102, 241, 0.28);
}
.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 20px;
  background: #05060f;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen { width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: var(--card); }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 内页头部与筛选 ---------- */
.page-head { padding: 60px 20px 10px; text-align: center; }
.page-head h1 { font-size: 34px; }
.page-head h1 .grad {
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-head p { color: var(--muted); margin-top: 12px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 24px 0 8px; }
.filter-btn {
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 7px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: rgba(99, 102, 241, 0.55); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* ---------- 关于我们 ---------- */
.about-intro { max-width: 780px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 15px; line-height: 2; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .value-grid { grid-template-columns: 1fr; } }
.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
}
.value-card .value-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.32), rgba(167, 139, 250, 0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.value-card h3 { font-size: 17px; margin-bottom: 8px; }
.value-card p { font-size: 13.5px; color: var(--muted); }
.timeline { max-width: 640px; margin: 0 auto; }
.timeline li { position: relative; padding: 0 0 28px 28px; border-left: 2px solid rgba(99, 102, 241, 0.35); }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}
.timeline .year { color: var(--primary-light); font-weight: 700; font-size: 15px; }
.timeline p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--border); background: #0a0b14; margin-top: 60px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 32px;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 320px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; }
.footer-cols { display: flex; gap: 72px; flex: 1; flex-wrap: wrap; }
.footer-col h4 { font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 13.5px; margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary-light); }
.copyright {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
}
