/* ============================================================
   0053 - 加拿大28预测 - 清新柔和风 样式表
   Tailwind CSS CDN + 自定义样式
   ============================================================ */

/* === CSS Variables === */
:root {
  --primary: #4f46e5;       /* indigo-600 */
  --primary-light: #6366f1; /* indigo-500 */
  --primary-dark: #4338ca;  /* indigo-700 */
  --primary-50: #eef2ff;    /* indigo-50 */
  --primary-100: #e0e7ff;   /* indigo-100 */
  --primary-200: #c7d2fe;   /* indigo-200 */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(79,70,229,0.08), 0 4px 6px -4px rgba(79,70,229,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(79,70,229,0.1), 0 8px 10px -6px rgba(79,70,229,0.05);
  --shadow-card: 0 0 0 1px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.04), 0 12px 24px rgba(0,0,0,0.04);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base Reset & Typography === */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  color: var(--gray-700);
  background: #f8fafc;
}

/* === Soft Gradient Backgrounds === */
.bg-gradient-soft {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 25%, #f5f3ff 50%, #f0f9ff 75%, #eef2ff 100%);
}

.bg-gradient-hero {
  background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 30%, #e0e7ff 60%, #f5f3ff 100%);
}

.bg-gradient-footer {
  background: linear-gradient(180deg, #1e1b4b 0%, #312e81 50%, #3730a3 100%);
}

/* === Navbar Styles === */
#navbar {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

#navbar.navbar-scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

#navbar .nav-logo-text {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.navbar-scrolled .nav-logo-text {
  font-size: 1.1rem;
}

.nav-link {
  position: relative;
  color: var(--gray-700);
  transition: var(--transition);
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Mobile Menu */
#mobile-menu {
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#mobile-menu.open {
  max-height: 420px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* === Hero Section - Floating Cards === */
.hero-floating-cards {
  position: relative;
  perspective: 1000px;
}

.floating-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: floatCard 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
  animation-delay: 0s;
  transform: rotate(-2deg) translateY(0);
}

.floating-card:nth-child(2) {
  animation-delay: 0.8s;
  transform: rotate(1.5deg) translateY(0);
}

.floating-card:nth-child(3) {
  animation-delay: 1.6s;
  transform: rotate(-1deg) translateY(0);
}

.floating-card:nth-child(4) {
  animation-delay: 2.4s;
  transform: rotate(2deg) translateY(0);
}

.floating-card:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: var(--shadow-xl);
  z-index: 10;
}

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

.floating-card:nth-child(1) {
  animation-name: floatCard1;
}
.floating-card:nth-child(2) {
  animation-name: floatCard2;
}
.floating-card:nth-child(3) {
  animation-name: floatCard3;
}
.floating-card:nth-child(4) {
  animation-name: floatCard4;
}

@keyframes floatCard1 {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-10px); }
}

@keyframes floatCard2 {
  0%, 100% { transform: rotate(1.5deg) translateY(0); }
  50% { transform: rotate(1.5deg) translateY(-7px); }
}

@keyframes floatCard3 {
  0%, 100% { transform: rotate(-1deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-9px); }
}

@keyframes floatCard4 {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-6px); }
}

/* === Features Section - Uneven Height Cards === */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #818cf8, #a78bfa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-card.feature-tall {
  min-height: 420px;
}

.feature-card.feature-medium {
  min-height: 360px;
}

.feature-card.feature-short {
  min-height: 300px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  font-size: 1.5rem;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  transform: scale(1.1) rotate(-5deg);
}

/* === Stats Section - Wave SVG === */
.stats-section {
  position: relative;
  overflow: hidden;
}

.stats-wave-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.stats-wave-top svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.stats-wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.stats-wave-bottom svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Testimonials - Chat Bubble Style === */
.testimonial-bubble {
  position: relative;
  background: var(--white);
  border-radius: 20px 20px 20px 6px;
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  transition: all 0.35s ease;
}

.testimonial-bubble::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 28px;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  border-top-color: var(--white);
  border-bottom: 0;
  margin-left: -6px;
  margin-bottom: -11px;
}

.testimonial-bubble:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.testimonial-bubble--alt {
  border-radius: 20px 20px 6px 20px;
}

.testimonial-bubble--alt::after {
  left: auto;
  right: 28px;
}

/* === FAQ Section - Numbered Style === */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  background: var(--white);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item.active {
  border-color: var(--primary-200);
  box-shadow: 0 4px 16px rgba(79,70,229,0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.faq-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.35s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-number {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.faq-arrow {
  margin-left: auto;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--gray-600);
  flex-shrink: 0;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem 5rem;
}

/* === CTA Section === */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

/* === Footer === */
.footer-link {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-link:hover {
  color: #ffffff;
  padding-left: 4px;
}

/* === Back to Top Button === */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(79,70,229,0.3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  border: none;
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(79,70,229,0.4);
}

/* === Buttons === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(79,70,229,0.25);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.35);
  background: linear-gradient(135deg, #4338ca, #4f46e5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary-200);
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--primary-50);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: white;
  color: var(--primary);
  border-radius: 9999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  text-decoration: none;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* === Section Title === */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.25;
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === Scroll Animations === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.animate-delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.animate-delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.animate-delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.animate-delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.animate-delay-5 { transition-delay: 0.5s; }

/* === Contact Form === */
.form-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: var(--white);
  outline: none;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.08);
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.9rem;
}

/* === Page Header for About/Contact === */
.page-header {
  padding-top: 7rem;
  padding-bottom: 4rem;
  text-align: center;
}

.page-header-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.page-header-subtitle {
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === About Page - Value Cards === */
.value-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.value-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #818cf8);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.value-card:hover::after {
  transform: scaleX(1);
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  font-size: 1.75rem;
  transition: all 0.4s ease;
}

.value-card:hover .value-icon {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  transform: scale(1.1) rotate(-5deg);
}

/* === Team Card === */
.team-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.team-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(135deg, #c7d2fe, #a5b4fc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
}

/* === Contact Info Card === */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

/* === Floating Dots Decoration === */
.floating-dots {
  position: absolute;
  pointer-events: none;
  opacity: 0.3;
}

.floating-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--primary-200);
}

/* === Pulse Animation === */
@keyframes pulse-soft {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.pulse-soft {
  animation: pulse-soft 3s ease-in-out infinite;
}

/* === Toast Notification === */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: linear-gradient(135deg, #059669, #10b981);
}

.toast.error {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* === Responsive Styles === */
@media (max-width: 1024px) {
  .section-title {
    font-size: 1.85rem;
  }

  .feature-card.feature-tall,
  .feature-card.feature-medium,
  .feature-card.feature-short {
    min-height: auto;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .page-header-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .hero-floating-cards {
    perspective: none;
  }

  .floating-card {
    animation: none;
    transform: none !important;
  }

  .faq-item.active .faq-answer {
    padding-left: 1.5rem;
  }

  .stat-number {
    font-size: 1.85rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .page-header {
    padding-top: 6rem;
    padding-bottom: 2.5rem;
  }

  .page-header-title {
    font-size: 1.65rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.4rem;
  }

  .btn-primary,
  .btn-outline,
  .btn-white {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }
}
