/* ========================================
   趣闲赚 单页官网  styles.css
   配色：浅青蓝色调 + 紫色/金色点缀
   ======================================== */

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* 主色调：浅青蓝 */
  --primary: #14b8a6;
  --primary-2: #0d9488;
  --primary-3: #0f766e;
  --primary-light: #e6fffa;
  --primary-lighter: #f0fdfa;
  --primary-bg: #f0fafb;

  /* 辅助色 */
  --purple: #7c3aed;
  --purple-2: #8b5cf6;
  --purple-light: #f3eeff;
  --gold: #f59e0b;
  --gold-2: #fbbf24;
  --gold-light: #fef3c7;
  --red: #ef4444;
  --green: #10b981;
  --blue: #3b82f6;
  --orange: #f97316;

  /* 中性色 */
  --dark: #0f172a;
  --gray-900: #1e293b;
  --gray-700: #334155;
  --gray-500: #64748b;
  --gray-300: #cbd5e1;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(15, 118, 110, .08);
  --shadow-lg: 0 8px 30px rgba(15, 118, 110, .12);
  --shadow-xl: 0 12px 40px rgba(15, 118, 110, .15);

  --grad-primary: linear-gradient(135deg, #14b8a6, #06b6d4);
  --grad-primary-2: linear-gradient(135deg, #0d9488, #14b8a6);
  --grad-purple: linear-gradient(135deg, #7c3aed, #a78bfa);
  --grad-gold: linear-gradient(135deg, #f59e0b, #fbbf24);
  --grad-hero: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 40%, #f0fafb 100%);
}

html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "WenQuanYi Micro Hei", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 64px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary-2); border: 2px solid var(--primary); }
.btn-gold { background: var(--grad-gold); color: #78350f; }
.btn-white { background: #fff; color: var(--primary-2); }
.btn-sm { padding: 6px 16px; font-size: 13px; border-radius: 999px; }
.btn-lg { padding: 14px 32px; font-size: 17px; }

/* ---------- 固定顶部条 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo-img {
  width: 36px; height: 36px; border-radius: 10px;
  object-fit: cover;
}
.brand-name { font-weight: 800; font-size: 20px; color: var(--gray-900); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--gray-700); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--primary-2); }
.nav-cta { padding: 9px 20px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--grad-hero);
  padding: 72px 0 88px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; top: -100px; right: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,.12), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; bottom: -80px; left: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,.10), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }

.hero h1 {
  font-size: 42px; font-weight: 900; line-height: 1.25;
  color: var(--gray-900); margin-bottom: 20px;
}
.hero h1 .accent { color: var(--primary-2); }
.hero-sub { font-size: 17px; color: var(--gray-700); margin-bottom: 32px; max-width: 540px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 560px; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 24px; font-weight: 800; color: var(--primary-2); }
.hero-stats span { font-size: 13px; color: var(--gray-500); }

/* ---------- 手机框 ---------- */
.hero-card { display: flex; justify-content: center; position: relative; }
.phone-frame {
  width: 310px; background: #1a1a2e;
  border-radius: 40px; padding: 10px;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.phone-notch {
  width: 100px; height: 26px; background: #1a1a2e;
  border-radius: 0 0 16px 16px; margin: 0 auto 6px;
  position: relative;
}
.phone-notch::after {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 6px; border-radius: 3px; background: #2d2d4a;
}
.phone-screen {
  border-radius: 30px; overflow: hidden;
  background: #fff; aspect-ratio: 9/19;
}
.phone-screenshot {
  width: 100%; height: 100%; object-fit: cover;
}
.phone-home-bar {
  width: 100px; height: 4px; background: #2d2d4a;
  border-radius: 2px; margin: 8px auto 0;
}
.phone-frame::before {
  content: ""; position: absolute; left: -3px; top: 120px;
  width: 3px; height: 60px; background: #2d2d4a; border-radius: 2px 0 0 2px;
}
.phone-frame::after {
  content: ""; position: absolute; right: -3px; top: 100px;
  width: 3px; height: 80px; background: #2d2d4a; border-radius: 0 2px 2px 0;
}

.float-tag {
  position: absolute; padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #fff;
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
}
.tag-1 { top: 20px; right: -10px; background: var(--grad-primary); animation-delay: 0s; }
.tag-2 { top: 50%; left: -30px; background: var(--grad-gold); color: #78350f; animation-delay: .8s; }
.tag-3 { bottom: 40px; right: -20px; background: var(--grad-purple); animation-delay: 1.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- 通用 Section ---------- */
.section { padding: 80px 0; }
.section-title { font-size: 32px; font-weight: 900; color: var(--gray-900); text-align: center; margin-bottom: 12px; }
.section-title.left { text-align: left; }
.section-desc { font-size: 16px; color: var(--gray-500); text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }

/* ---------- Tabs ---------- */
.task-tabs, .game-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab {
  padding: 7px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--gray-100); color: var(--gray-700); cursor: pointer;
  transition: all .2s; border: 1px solid transparent;
}
.tab:hover { background: var(--primary-light); color: var(--primary-2); }
.tab.active { background: var(--grad-primary); color: #fff; border-color: var(--primary); }

/* ---------- 步骤 ---------- */
.how-block { margin-top: 56px; }
.how-title { font-size: 24px; font-weight: 800; color: var(--gray-900); text-align: center; margin-bottom: 8px; }
.how-desc { font-size: 15px; color: var(--gray-500); text-align: center; margin-bottom: 36px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  background: var(--gray-50); border-radius: var(--radius-lg);
  padding: 36px 28px; text-align: center; position: relative;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--gray-100);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-primary); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.step-icon { font-size: 44px; margin-bottom: 16px; }
.step h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--gray-900); }
.step p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* 游戏步骤特殊色 */
.steps-game .step-num { background: var(--grad-purple); }

/* ---------- 任务板块 ---------- */
.section-tasks { background: linear-gradient(180deg, #f0fafb 0%, #fff 100%); }
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.task-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.task-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.task-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.task-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 20px;
}
.task-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge-hot { background: #fef2f2; color: #dc2626; }
.badge-new { background: #ecfdf5; color: #047857; }
.badge-vip { background: #eff6ff; color: #1d4ed8; }
.task-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--gray-900); }
.task-meta { font-size: 13px; color: var(--gray-500); margin-bottom: 16px; }
.task-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.task-price { font-size: 20px; font-weight: 800; color: var(--primary-2); }
.task-price small { font-size: 12px; color: var(--gray-500); font-weight: 500; }
.task-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.chip-purple { background: #f3eeff; color: #6d28d9; }
.chip-blue { background: #eff6ff; color: #1d4ed8; }
.chip-orange { background: #fff7ed; color: #c2410c; }
.chip-green { background: #ecfdf5; color: #047857; }

.task-cta { align-self: flex-end; margin-top: auto; }

/* icon colors */
.icon-red { background: linear-gradient(135deg, #ef4444, #f97316); }
.icon-blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.icon-orange { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.icon-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.icon-green { background: linear-gradient(135deg, #10b981, #34d399); }
.icon-yellow { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.icon-cyan { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.icon-pink { background: linear-gradient(135deg, #ec4899, #f472b6); }

/* ---------- 游戏板块 ---------- */
.section-games { background: linear-gradient(180deg, #faf8ff 0%, #fff 100%); }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.game-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.game-cover {
  width: 100%; height: 120px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; margin-bottom: 16px;
}
.cover-snake { background: linear-gradient(135deg, #fde68a, #fbbf24); }
.cover-girl { background: linear-gradient(135deg, #fbcfe8, #f472b6); }
.cover-tiger { background: linear-gradient(135deg, #fed7aa, #f97316); }
.cover-bear { background: linear-gradient(135deg, #bfdbfe, #60a5fa); }
.cover-boy { background: linear-gradient(135deg, #c4b5fd, #7c3aed); }
.cover-pen { background: linear-gradient(135deg, #a7f3d0, #34d399); }
.cover-dragon { background: linear-gradient(135deg, #fecaca, #ef4444); }
.cover-fish { background: linear-gradient(135deg, #bae6fd, #38bdf8); }
.cover-knight { background: linear-gradient(135deg, #ddd6fe, #8b5cf6); }
.cover-card { background: linear-gradient(135deg, #fdba74, #ea580c); }
.cover-robot { background: linear-gradient(135deg, #99f6e4, #14b8a6); }
.cover-fruit { background: linear-gradient(135deg, #bbf7d0, #22c55e); }
.cover-sword { background: linear-gradient(135deg, #e2e8f0, #94a3b8); }
.cover-ball { background: linear-gradient(135deg, #d9f99d, #84cc16); }
.cover-magic { background: linear-gradient(135deg, #e9d5ff, #a855f7); }
.cover-rocket { background: linear-gradient(135deg, #fce7f3, #ec4899); }
.cover-chef { background: linear-gradient(135deg, #fed7aa, #f97316); }
.cover-crown { background: linear-gradient(135deg, #fef3c7, #d4a017); }

.game-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--gray-900); }
.game-card p { font-size: 13px; color: var(--gray-500); margin-bottom: 16px; }
.game-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.game-reward { font-size: 18px; font-weight: 800; color: var(--primary-2); }

/* 冲刺大奖 */
.big-prize {
  margin-top: 48px; background: var(--gold-light);
  border: 2px solid #fde68a;
  border-radius: var(--radius-lg); padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.prize-left { display: flex; align-items: center; gap: 18px; }
.prize-trophy { font-size: 48px; }
.prize-left h3 { font-size: 20px; font-weight: 800; color: #78350f; }
.prize-left p { font-size: 14px; color: #92400e; }
.prize-right { display: flex; align-items: center; gap: 14px; }
.prize-tag { background: rgba(255,255,255,.8); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #c2410c; }

/* ---------- 提现 ---------- */
.section-withdraw { background: #fff; }
.withdraw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 800px; margin: 0 auto 40px; }
.withdraw-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow); border: 2px solid var(--gray-100);
  position: relative; transition: transform .2s;
}
.withdraw-card:hover { transform: translateY(-3px); }
.withdraw-card.wechat { border-color: #d1fae5; }
.withdraw-card.alipay { border-color: #dbeafe; }
.withdraw-card.bank { border-color: #fef3c7; }
.wx-logo, .al-logo, .bk-logo { font-size: 48px; margin-bottom: 14px; }
.withdraw-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.withdraw-card p { font-size: 14px; color: var(--gray-500); }
.withdraw-tag {
  position: absolute; top: 14px; right: 14px;
  background: var(--grad-primary); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}

.trust-bar {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  padding: 24px; background: var(--primary-lighter); border-radius: var(--radius);
  font-size: 14px; color: var(--gray-700); font-weight: 500;
}

/* ---------- CTA ---------- */
.section-cta {
  background: var(--grad-primary);
  padding: 72px 0; text-align: center;
}
.cta-inner h2 { font-size: 36px; font-weight: 900; color: #fff; margin-bottom: 14px; }
.cta-inner p { font-size: 17px; color: rgba(255,255,255,.9); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 底部 ---------- */
.site-footer { background: #0f172a; color: #94a3b8; padding: 56px 0 24px; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 36px; }
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14px; color: #94a3b8; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 24px; border-top: 1px solid #1e293b;
  font-size: 13px;
}

/* ---------- 回到顶部按钮 ---------- */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  font-size: 22px; font-weight: 800;
  border: none; cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }

/* ---------- 下载弹窗 ---------- */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.modal-box {
  background: #fff;
  border-radius: 24px;
  padding: 48px 40px 40px;
  text-align: center;
  max-width: 400px; width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  transform: scale(.9);
  transition: transform .3s;
}
.modal-overlay.show .modal-box { transform: scale(1); }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: var(--gray-100); color: var(--gray-500);
  font-size: 20px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .15s;
}
.modal-close:hover { background: var(--gray-300); color: var(--gray-900); }

.modal-body { display: flex; flex-direction: column; align-items: center; }
.modal-logo { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 16px; }
.modal-body h3 { font-size: 24px; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; }

.modal-bonus {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #fef2f2, #fecaca);
  padding: 8px 20px; border-radius: 999px;
  margin-bottom: 16px;
}
.modal-bonus-icon { font-size: 20px; }
.modal-bonus-text { font-size: 16px; font-weight: 800; color: #dc2626; }

.modal-desc { font-size: 15px; color: var(--gray-500); line-height: 1.7; margin-bottom: 28px; }
.modal-download-btn { width: 100%; padding: 14px; font-size: 17px; margin-bottom: 12px; }
.modal-tip { font-size: 13px; color: var(--gray-500); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .task-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .float-tag.tag-2 { left: 0; }
}
@media (max-width: 640px) {
  .task-grid, .game-grid, .withdraw-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 24px; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
  .phone-frame { width: 260px; }
  .big-prize { padding: 20px; }
  .modal-box { padding: 36px 24px 28px; }
}
