/* 蜜潮TV 样式 —— 主色 #3b82f6，浅色背景，冲浪主题 */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --sky: #0ea5e9;
  --sky-light: #38bdf8;
  --bg: #f4f8fd;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --radius: 20px;
  --shadow: 0 8px 30px rgba(59, 130, 246, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-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; cursor: pointer; }

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

/* ============ 导航 ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.logo-emoji { font-size: 26px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: #334155;
  transition: all .2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: #eff6ff;
  color: var(--primary);
  font-weight: 600;
}

.nav-btns { display: flex; gap: 10px; }

.btn {
  border: none;
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-ghost:hover { background: #eff6ff; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--sky));
  color: #fff;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(59, 130, 246, 0.45); }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 45%, #0ea5e9 100%);
  padding: 90px 0 70px;
  text-align: center;
  color: #fff;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  from { transform: translateY(0); }
  to { transform: translateY(-110vh); }
}

.hero-inner { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 4px 24px rgba(15, 23, 42, 0.25);
}

.hero-sub {
  margin: 18px auto 34px;
  max-width: 620px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
}

.search-box {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.2);
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text);
  background: transparent;
}

.search-btn {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--sky));
  color: #fff;
  font-size: 17px;
  padding: 10px 22px;
  transition: transform .2s;
}

.search-btn:hover { transform: scale(1.05); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 42px;
  flex-wrap: wrap;
}

.hero-stat { display: flex; flex-direction: column; gap: 2px; }

.hero-num { font-size: 30px; font-weight: 800; }

.hero-label { font-size: 13px; color: rgba(255, 255, 255, 0.85); }

/* ============ 区块通用 ============ */
.section { padding: 68px 0; }

.section-head { text-align: center; margin-bottom: 40px; }

.section-title { font-size: 30px; font-weight: 800; }

.section-title.left { text-align: left; }

.section-sub { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ============ 视频卡片 ============ */
.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: transform .25s, box-shadow .25s;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.18);
}

.video-cover { position: relative; }

.video-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding-left: 3px;
  opacity: 0;
  transition: opacity .25s, transform .25s;
}

.video-card:hover .play-btn { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 8px;
}

.video-body { padding: 16px; }

.video-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  min-height: 45px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.meta-name { font-weight: 600; color: #334155; margin-right: auto; }

.meta-views, .meta-likes { white-space: nowrap; }

/* ============ 明星创作者 ============ */
.creator-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.creator-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 14px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s;
}

.creator-card:hover { transform: translateY(-6px); }

.creator-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 15px;
}

.creator-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3px solid #dbeafe;
}

.creator-name { font-size: 16px; font-weight: 700; }

.creator-role { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.creator-fans {
  margin-top: 10px;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ============ 平台特色 ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: transform .25s;
}

.feature-card:hover { transform: translateY(-6px); }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 26px;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  margin-bottom: 16px;
}

.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

.feature-card p { font-size: 13.5px; color: var(--muted); }

/* ============ 数据统计区 ============ */
.stats-strip {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #0ea5e9 100%);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item { display: flex; flex-direction: column; gap: 4px; }

.stat-num { font-size: 34px; font-weight: 900; color: #fff; }

.stat-label { font-size: 14px; color: rgba(255, 255, 255, 0.85); }

/* ============ 用户评价 ============ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.testimonial-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.testi-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.testi-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.testi-who h4 { font-size: 15px; font-weight: 700; }

.testi-who p { font-size: 12px; color: var(--muted); }

.testi-stars {
  margin-left: auto;
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 1px;
}

.testi-text { font-size: 13.5px; color: #475569; }

/* ============ 成功故事 ============ */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.story-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--sky-light);
  transition: transform .25s;
}

.story-card:hover { transform: translateY(-6px); }

.story-icon { font-size: 28px; }

.story-title { font-size: 17px; font-weight: 800; margin: 10px 0 8px; }

.story-brief { font-size: 13.5px; color: var(--muted); }

/* ============ APP 展示区 ============ */
.app-section {
  background: linear-gradient(180deg, #eaf3ff 0%, var(--bg) 100%);
}

.app-flex {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.app-text { flex: 1; min-width: 300px; }

.app-intro { margin: 14px 0 26px; color: var(--muted); font-size: 15px; }

.app-features { display: flex; flex-direction: column; gap: 18px; }

.app-feature {
  display: flex;
  gap: 14px;
  background: var(--card);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.feat-icon { font-size: 26px; }

.app-feature h4 { font-size: 15.5px; font-weight: 700; }

.app-feature p { font-size: 13px; color: var(--muted); margin-top: 2px; }

.phone-wrap { flex: 0 0 auto; }

.phone {
  position: relative;
  width: 280px;
  height: 580px;
  background: #0f172a;
  border-radius: 48px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28);
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #fff;
}

.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: #0f172a;
  border-radius: 14px;
  z-index: 2;
}

/* ============ 页脚 ============ */
.footer {
  background: #0f1d33;
  color: #cbd5e1;
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand .nav-logo { color: #7cb3ff; margin-bottom: 12px; }

.footer-intro { font-size: 13.5px; color: #94a3b8; max-width: 300px; }

.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 9px;
  transition: color .2s;
}

.footer-col a:hover { color: #7cb3ff; }

.footer-copy {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  padding: 18px 20px;
  font-size: 13px;
  color: #94a3b8;
}

/* ============ 内页横幅 ============ */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 45%, #0ea5e9 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.page-hero h1 { font-size: 36px; font-weight: 900; }

.page-hero p { margin-top: 10px; color: rgba(255, 255, 255, 0.92); font-size: 15px; }

/* ============ 筛选栏 ============ */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  border: 1.5px solid var(--line);
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--sky));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

/* ============ 关于我们 ============ */
.about-text { max-width: 760px; margin: 0 auto; font-size: 15.5px; color: #475569; }

.about-text p { margin-bottom: 16px; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 960px;
  margin: 0 auto;
}

.cta-band { text-align: center; }

.cta-band .btn { margin: 0 8px; padding: 12px 30px; font-size: 15px; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .creator-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-inner { gap: 12px; }
  .nav-links { order: 3; width: 100%; justify-content: flex-start; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .app-flex { gap: 40px; justify-content: center; }
  .hero { padding: 60px 0 50px; }
  .hero-stats { gap: 28px; }
  .section { padding: 48px 0; }
  .video-body { padding: 12px; }
  .video-title { font-size: 14px; min-height: 40px; }
}

@media (max-width: 480px) {
  .creator-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .phone { width: 240px; height: 500px; }
  .btn { padding: 8px 16px; }
  .nav-links a { padding: 6px 10px; font-size: 14px; }
}
