/* ============================================================
   淘趣生活平台 · 官方网站样式
   彩虹活力风 v2.0 · 7色全上
   红 #FF6B6B · 橙 #FFA94D · 黄 #FFD43B · 绿 #69DB7C
   蓝 #4DABF7 · 靛 #748FFC · 紫 #DA77F2
   ============================================================ */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #444;
  line-height: 1.6;
  background: #f8f9fa;
}

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

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

/* ==================== 按钮 ==================== */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #FF6B6B, #FFA94D);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}
.btn-outline-primary {
  background: transparent;
  color: #FF6B6B;
  border: 2px solid #FF6B6B;
}
.btn-outline-primary:hover {
  background: #FF6B6B;
  color: #fff;
}

/* ==================== 导航 ==================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e8e8ed;
  transition: box-shadow 0.3s;
}
.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo — 七彩渐变 */
.logo-box { display: flex; flex-direction: column; }
.logo-row { display: flex; align-items: center; gap: 6px; }
.logo-icon {
  font-size: 20px;
  background: linear-gradient(90deg, #FF6B6B, #FFA94D, #FFD43B, #69DB7C, #4DABF7, #748FFC, #DA77F2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-text {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(90deg, #FF6B6B, #FFA94D, #FFD43B, #69DB7C, #4DABF7, #748FFC, #DA77F2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-sub {
  font-size: 10px;
  color: #999;
  padding-left: 30px;
  margin-top: -2px;
}

.nav { display: flex; gap: 28px; }
.nav-link {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover { color: #FF6B6B; }
.nav-link.active { color: #FF6B6B; }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #FF6B6B, #DA77F2);
  border-radius: 1px;
}
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

/* ==================== Hero 品牌区 — 红橙黄绿渐变 ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #FF6B6B 0%, #FFA94D 35%, #FFD43B 65%, #69DB7C 100%);
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -10%;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 20px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-text { flex: 1; }
.hero-title {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.hero-title .title-sub {
  display: inline-block;
  letter-spacing: 0.15em;
}
.hero-subtitle {
  font-size: 20px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 12px;
  font-weight: 600;
}
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; }
.hero-image { flex: 1; display: flex; justify-content: center; }

/* 手机模型 */
.hero-phone {
  width: 280px; height: 520px;
  border-radius: 40px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.3);
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.voice-ui { text-align: center; padding: 20px; }
.voice-header { font-size: 14px; color: #888; margin-bottom: 20px; }
.voice-wave {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 40px;
  margin-bottom: 20px;
}
.voice-wave span {
  width: 6px;
  height: 100%;
  border-radius: 3px;
  background: #FF6B6B;
  animation: wave 1.2s ease-in-out infinite;
}
.voice-wave span:nth-child(2) { animation-delay: 0.2s; height: 60%; background: #FFA94D; }
.voice-wave span:nth-child(3) { animation-delay: 0.4s; height: 80%; background: #FFD43B; }
.voice-wave span:nth-child(4) { animation-delay: 0.6s; height: 50%; background: #69DB7C; }
.voice-wave span:nth-child(5) { animation-delay: 0.8s; height: 90%; background: #4DABF7; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
.voice-text { font-size: 18px; font-weight: 700; color: #333; margin-bottom: 8px; }
.voice-demo { font-size: 12px; color: #999; }

/* 波浪分割 */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { display: block; width: 100%; }

/* ==================== 特色功能 — 6色卡片 ==================== */
.features {
  padding: 80px 0;
  background: #fff;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: #333;
}
.section-desc {
  text-align: center;
  font-size: 16px;
  color: #888;
  margin-bottom: 40px;
}
.video-area {
  max-width: 860px;
  margin: 0 auto;
}
.video-player {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.video-player video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}
.video-play-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s;
}
.video-player.playing .video-play-overlay {
  opacity: 0;
}
.video-btn-play {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: transform 0.2s, background 0.2s;
}
.video-btn-play:hover {
  transform: scale(1.1);
  background: rgba(0,0,0,0.5);
}
.video-btn-play::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid rgba(255,255,255,0.9);
  margin-left: 4px;
}

/* ==================== 商家端 — 白色底 + 靛蓝点缀 ==================== */
.merchant {
  padding: 80px 0;
  background: #fff;
}
.merchant-inner { display: flex; align-items: center; gap: 60px; }
.merchant-text { flex: 1; }
.merchant-text .section-title { color: #333; text-align: left; }
.merchant-text .section-desc { color: #888; text-align: left; margin-bottom: 32px; }
.merchant-download { display: flex; gap: 12px; margin-top: 24px; }

.mf-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.mf-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #748FFC;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
}
.mf-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: #333; }
.mf-item p { font-size: 14px; color: #888; }

.merchant-image { flex: 1; display: flex; justify-content: center; }
.merchant-device {
  width: 100%;
  max-width: 320px;
  background: #f8f9fa;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e8e8ed;
}
.md-bar { font-size: 14px; font-weight: 600; margin-bottom: 16px; text-align: center; color: #444; }
.md-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.md-cell {
  padding: 14px 10px;
  background: #eef0ff;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

/* ==================== 用户端 — 白色底 + 薄荷绿点缀 ==================== */
.user {
  padding: 80px 0;
  background: #fafafa;
}
.user-inner { display: flex; align-items: center; gap: 60px; }
.user-text { flex: 1; }
.user-text .section-title { color: #333; text-align: left; }
.user-text .section-desc { color: #888; text-align: left; margin-bottom: 32px; }

.uf-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.uf-icon { font-size: 24px; flex-shrink: 0; }
.uf-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: #333; }
.uf-item p { font-size: 14px; color: #888; }

.user-qr-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.user-qr-section .user-qr {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 1px solid #e0e0e8;
}
.user-qr-section .user-qr-label {
  font-size: 13px;
  color: #999;
}

.user-download { margin-top: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.user-qr-wrap { display: inline-flex; flex-direction: column; align-items: center; }
.user-qr { width: 120px; height: 120px; border-radius: 8px; }
.user-qr-label { font-size: 12px; color: #999; margin-top: 8px; }

/* ==================== 平台数据 — 彩色数字 ==================== */
.data {
  padding: 80px 0;
  background: #fff;
}
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.data-card {
  padding: 36px 16px;
  border-radius: 16px;
  background: #f8f9fa;
  transition: transform 0.3s;
  cursor: default;
}
.data-card:hover { transform: translateY(-4px); }
.data-number { font-size: 40px; font-weight: 900; }
.data-card:nth-child(1) .data-number { color: #FF6B6B; }
.data-card:nth-child(2) .data-number { color: #FFA94D; }
.data-card:nth-child(3) .data-number { color: #69DB7C; }
.data-card:nth-child(4) .data-number { color: #748FFC; }
.data-label { font-size: 15px; color: #888; margin-top: 8px; }

/* ==================== Footer — 浅色底 + 七彩点缀 ==================== */
.footer {
  padding: 60px 0 0;
  background: #f0f0f5;
  border-top: 1px solid #e0e0e8;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-desc { font-size: 14px; color: #888; margin-top: 8px; }
.footer-qr { margin-top: 16px; }
.qr-box { display: inline-flex; flex-direction: column; align-items: center; }
.qr-img { width: 100px; height: 100px; border-radius: 8px; border: 1px solid #e0e0e8; }
.qr-box span { font-size: 12px; color: #999; margin-top: 6px; }

.footer-links h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #FF6B6B, #DA77F2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-links a, .footer-links span {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: #888;
  transition: color 0.2s;
}
.footer-links a:hover { color: #FF6B6B; }

.footer-bottom {
  border-top: 1px solid #e0e0e8;
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}
.footer-bottom span { margin: 0 12px; }
.footer-bottom .brand-name {
  background: linear-gradient(90deg, #FF6B6B, #DA77F2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ==================== 回到顶部 ==================== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B6B, #DA77F2);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,107,107,0.4);
}

/* ==================== 滚动入场动画 ==================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==================== 响应式 ==================== */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-title { font-size: 36px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { padding: 28px 16px; }
  .data-number { font-size: 32px; }
  .data-card { padding: 24px 12px; }
  .merchant-inner, .user-inner { flex-direction: column; text-align: center; }
  .merchant-text .section-title,
  .merchant-text .section-desc,
  .user-text .section-title,
  .user-text .section-desc { text-align: center !important; }
  .mf-item, .uf-item { justify-content: center; }
  .merchant-download, .user-download { justify-content: center; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer { padding: 40px 0 0; }
  .footer-brand, .footer-links { text-align: center; }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #e8e8ed;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }
  .nav.open { display: flex; }
  .nav-link { padding: 10px 0; }
  .menu-btn { display: block; }
  .hero-title { font-size: 28px; }
  .hero-phone { width: 220px; height: 400px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 24px 16px; }
  .feature-card h3 { font-size: 16px; }
  .feature-card p { font-size: 13px; }
  .data-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .data-number { font-size: 26px; }
  .data-card { padding: 20px 10px; }
  .data-label { font-size: 13px; }
  .footer { padding: 30px 0 0; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .footer-brand, .footer-links { text-align: center; }
  .footer-links h4 { margin-bottom: 12px; }
  .footer-links a, .footer-links span { margin-bottom: 8px; font-size: 13px; }
  .footer-bottom { margin-top: 24px; padding: 16px 0; font-size: 12px; }
}
