/* ===== 蜜语TV 样式 =====
   主色 #d946ef · 浅色背景 · 数码主题 */

:root {
  --primary: #d946ef;
  --primary-dark: #c026d3;
  --primary-soft: #fdf4ff;
  --accent: #8b5cf6;
  --grad: linear-gradient(135deg, #d946ef 0%, #a855f7 55%, #8b5cf6 100%);
  --text: #1f1a2e;
  --muted: #6b7280;
  --bg: #fbf8fd;
  --card: #ffffff;
  --line: #f0e6f6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; }

a { text-decoration: none; }

.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(10px);
  box-shadow: 0 2px 14px rgba(217, 70, 239, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

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

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

.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #4b5563;
  font-size: 15px;
  transition: color 0.2s;
}

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

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

.btn {
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

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

.btn.solid {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 12px rgba(217, 70, 239, 0.35);
}

/* ---------- Hero 区 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  color: #fff;
  text-align: center;
  padding: 88px 20px 80px;
  border-radius: 0 0 42px 42px;
}

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

.hero h1 {
  font-size: 44px;
  margin: 0 0 14px;
  letter-spacing: 1px;
  text-shadow: 0 3px 14px rgba(88, 28, 135, 0.3);
}

.hero > .container > p,
.hero-sub {
  font-size: 17px;
  opacity: 0.96;
  max-width: 660px;
  margin: 0 auto 34px;
}

.search-box {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 24px;
  box-shadow: 0 14px 34px rgba(60, 10, 80, 0.25);
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: #333;
  background: transparent;
  font-family: inherit;
}

.search-box button {
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 28px;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

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

.hero-stats > div { display: flex; flex-direction: column; gap: 2px; }

.hero-stats strong { font-size: 27px; }

.hero-stats span { font-size: 13px; opacity: 0.92; }

/* 漂浮粒子 */
.particles { position: absolute; inset: 0; pointer-events: none; }

.particles .particle {
  position: absolute;
  bottom: -24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0%   { transform: translateY(0); opacity: 0; }
  12%  { opacity: 0.9; }
  88%  { opacity: 0.5; }
  100% { transform: translateY(-105vh); opacity: 0; }
}

/* ---------- 通用区块 ---------- */
.section { padding: 66px 0; }

.section-title {
  font-size: 28px;
  margin: 0 0 30px;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 5px;
  border-radius: 3px;
  background: var(--grad);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: 28px;
  margin: 0;
  position: relative;
  padding-bottom: 12px;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 5px;
  border-radius: 3px;
  background: var(--grad);
}

.more {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- 视频卡片 ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.video-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(40, 20, 50, 0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(217, 70, 239, 0.16);
}

.cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3e8f7;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(20, 5, 30, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.video-card:hover .play {
  opacity: 1;
  transform: scale(1);
}

.cover .duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 6px;
}

.card-body { padding: 14px 16px 16px; }

.v-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

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

.v-meta { display: flex; align-items: center; gap: 10px; }

.v-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--line);
}

.v-info { display: flex; flex-direction: column; min-width: 0; }

.v-name { font-size: 13px; font-weight: 600; }

.v-stats { font-size: 12px; color: var(--muted); }

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

.creator-card {
  position: relative;
  background: var(--card);
  border-radius: 20px;
  padding: 24px 14px 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(40, 20, 50, 0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}

.creator-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(217, 70, 239, 0.16);
}

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

.creator-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  padding: 3px;
  background: #fff;
}

.creator-card h4 { margin: 12px 0 2px; font-size: 15px; }

.creator-card .tag { font-size: 12px; color: var(--muted); }

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

/* ---------- 平台特色 ---------- */
.features-section {
  background: linear-gradient(180deg, #fdf4ff 0%, #faf5ff 100%);
  border-radius: 42px;
  margin: 0 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border-radius: 18px;
  padding: 26px 20px;
  box-shadow: 0 6px 18px rgba(40, 20, 50, 0.06);
  transition: transform 0.25s;
}

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

.feature-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  margin-bottom: 14px;
}

.feature-card h4 { margin: 0 0 6px; font-size: 16px; }

.feature-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ---------- 数据统计 ---------- */
.stats-section {
  background: var(--grad);
  color: #fff;
}

.stats-section .section-title::after { background: #fff; }

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

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

.big-stat strong { font-size: 42px; font-weight: 800; }

.big-stat span { font-size: 14px; opacity: 0.92; }

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

.testimonial-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(40, 20, 50, 0.07);
}

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

.t-head img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--line);
}

.t-name { font-weight: 600; font-size: 14px; }

.stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 2px;
  display: block;
  margin-top: 2px;
}

.t-text { margin: 0; font-size: 14px; color: #4b5563; line-height: 1.85; }

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

.story-card {
  background: var(--card);
  border-radius: 20px;
  border-left: 4px solid var(--primary);
  padding: 26px;
  box-shadow: 0 6px 20px rgba(40, 20, 50, 0.07);
}

.story-card h4 { margin: 0 0 10px; font-size: 16px; color: var(--primary-dark); }

.story-card p { margin: 0; font-size: 14px; color: #4b5563; line-height: 1.85; }

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

.app-inner {
  display: flex;
  align-items: center;
  gap: 70px;
}

.app-left { flex: 1; }

.app-left h2 { font-size: 30px; margin: 0 0 12px; }

.app-left > p { color: var(--muted); margin: 0 0 30px; font-size: 15px; }

.app-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 26px;
}

.app-feature { display: flex; gap: 14px; }

.app-feature .af-icon { font-size: 28px; flex-shrink: 0; }

.app-feature h4 { margin: 0 0 4px; font-size: 15px; }

.app-feature p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.65; }

.phone {
  flex-shrink: 0;
  width: 262px;
  height: 542px;
  background: #0f172a;
  border-radius: 46px;
  padding: 12px;
  position: relative;
  box-shadow: 0 34px 64px rgba(88, 28, 135, 0.28);
}

.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 26px;
  background: #0f172a;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

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

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

/* ---------- 内页 banner ---------- */
.page-hero {
  background: var(--grad);
  color: #fff;
  text-align: center;
  padding: 64px 20px;
  border-radius: 0 0 42px 42px;
}

.page-hero h1 { margin: 0 0 10px; font-size: 36px; }

.page-hero p { margin: 0; opacity: 0.95; font-size: 15px; }

/* 筛选条 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  border: 1.5px solid var(--line);
  background: #fff;
  color: #4b5563;
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(217, 70, 239, 0.35);
}

/* ---------- 关于我们页 ---------- */
.about-intro {
  display: flex;
  gap: 50px;
  align-items: center;
}

.about-intro .text { flex: 1; }

.about-intro .text p {
  color: #4b5563;
  font-size: 15px;
  line-height: 2;
  margin: 0 0 16px;
}

.about-intro .pic {
  flex-shrink: 0;
  width: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(88, 28, 135, 0.18);
}

.about-intro .pic img { display: block; width: 100%; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(40, 20, 50, 0.07);
}

.value-card .icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.value-card h4 { margin: 0 0 8px; font-size: 16px; }

.value-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }

.cta-band {
  background: var(--grad);
  border-radius: 42px;
  margin: 0 16px;
  color: #fff;
  text-align: center;
  padding: 56px 20px;
}

.cta-band h2 { margin: 0 0 10px; font-size: 28px; }

.cta-band p { margin: 0 0 26px; opacity: 0.95; }

.cta-band .btn-white {
  background: #fff;
  color: var(--primary-dark);
  border: none;
  border-radius: 999px;
  padding: 12px 36px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 10px 24px rgba(60, 10, 80, 0.25);
}

/* ---------- 页脚 ---------- */
.footer {
  background: #241830;
  color: #cbd5e1;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  gap: 70px;
  padding: 56px 20px 42px;
  flex-wrap: wrap;
}

.footer-brand { max-width: 340px; }

.footer-brand .logo { color: #fff; margin-bottom: 14px; }

.footer-brand p { font-size: 13px; line-height: 1.9; opacity: 0.8; margin: 0; }

.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }

.footer-links h5 { color: #fff; margin: 0 0 14px; font-size: 15px; }

.footer-links a {
  display: block;
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  text-align: center;
  padding: 18px 20px;
  font-size: 13px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- 提示浮层 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: #241830;
  color: #fff;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero h1 { font-size: 32px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .creator-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .big-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .testimonial-grid,
  .story-grid { grid-template-columns: 1fr; }
  .app-inner { flex-direction: column; text-align: center; gap: 40px; }
  .app-feature { text-align: left; }
  .about-intro { flex-direction: column; }
  .about-intro .pic { width: 100%; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero { padding: 64px 16px 56px; }
  .hero h1 { font-size: 27px; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 22px; }
  .video-grid { gap: 12px; }
  .creator-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 48px 0; }
  .section-title,
  .section-head h2 { font-size: 23px; }
  .phone { width: 230px; height: 480px; }
  .footer-inner { gap: 36px; }
}
