/* ============================================
   0056 - 加拿大28预测 落地页
   设计风格: 卡片式布局 / indigo-600 主色调
   ============================================ */

/* --- 全局 --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- 大圆角卡片 (全局复用) --- */
.card-3xl {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-3xl:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 8px 28px rgba(0, 0, 0, 0.04);
}

/* 功能卡片轻交互 */
.feature-card {
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.10);
}

/* --- 导航栏 --- */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-link {
  color: #475569;
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #4f46e5;
}

/* --- Hero --- */
.hero-search-box {
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.hero-search-box:focus-within {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.10);
}

.hero-search-box input {
  border: none;
  outline: none;
  font-size: 1rem;
  color: #1e293b;
  background: transparent;
  width: 100%;
  padding: 14px 20px;
}

.hero-search-box input::placeholder {
  color: #94a3b8;
}

.hero-search-box button {
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.hero-search-box button:hover {
  background: #4338ca;
  transform: scale(1.03);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

/* --- Features 图标容器 --- */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.icon-box.indigo {
  background: rgba(79, 70, 229, 0.10);
  color: #4f46e5;
}

.icon-box.emerald {
  background: rgba(16, 185, 129, 0.10);
  color: #059669;
}

.icon-box.amber {
  background: rgba(245, 158, 11, 0.10);
  color: #d97706;
}

.icon-box.rose {
  background: rgba(244, 63, 94, 0.10);
  color: #e11d48;
}

.icon-box.cyan {
  background: rgba(6, 182, 212, 0.10);
  color: #0891b2;
}

.icon-box.violet {
  background: rgba(139, 92, 246, 0.10);
  color: #7c3aed;
}

/* --- Stats 统计区 --- */
.stat-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, #cbd5e1, transparent);
}

.stat-number {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Testimonials 评价卡片 --- */
.testimonial-card {
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

/* --- FAQ 手风琴 --- */
.faq-item {
  border-radius: 16px;
  background: #f8fafc;
  margin-bottom: 12px;
  overflow: hidden;
  transition: background 0.25s ease;
}

.faq-item.active {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  text-align: left;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #4f46e5;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #64748b;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  background: #4f46e5;
  color: #fff;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: #475569;
  line-height: 1.75;
  font-size: 0.925rem;
}

/* --- CTA Banner --- */
.cta-banner {
  border-radius: 24px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -30px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

/* --- Footer --- */
.footer-link {
  color: #64748b;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #4f46e5;
}

/* --- 返回顶部按钮 --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #4f46e5;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

/* --- 响应式 --- */
@media (max-width: 768px) {
  .hero-search-box {
    flex-direction: column;
    gap: 0;
  }
  .hero-search-box input {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
  .hero-search-box button {
    width: 100%;
    border-radius: 0 0 14px 14px;
    padding: 14px;
  }

  .stat-divider {
    width: 80%;
    height: 1px;
  }

  .card-3xl {
    border-radius: 20px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .faq-answer-inner {
    padding: 0 18px 16px;
  }
}
