/* ============================================================
   DataForecast - 加拿大预测网 Official Stylesheet
   Modern SaaS Design System :: indigo-600 :: rounded-2xl
   ============================================================ */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
  --color-primary: #4f46e5;
  --color-primary-dark: #4338ca;
  --color-primary-light: #6366f1;
  --color-accent: #7c3aed;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #6366f1, #4f46e5); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #4f46e5, #4338ca); }
* { scrollbar-width: thin; scrollbar-color: #6366f1 #f1f5f9; }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--color-text); background: var(--color-bg); line-height: 1.7; overflow-x: hidden; }

/* ---------- Glass Navbar ---------- */
.glass-nav {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
.glass-nav.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-lg);
  border-bottom-color: transparent;
}
.glass-nav .logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}
.glass-nav .nav-link {
  position: relative;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.25s;
  padding: 0.375rem 0.75rem;
}
.glass-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-nav .nav-link:hover { color: var(--color-primary); }
.glass-nav .nav-link:hover::after { width: 80%; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; z-index: 1100; background: none; border: none; }
.hamburger span { display: block; width: 26px; height: 2.5px; background: var(--color-text); border-radius: 3px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); z-index: 1050; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a { font-size: 1.5rem; font-weight: 600; color: var(--color-text); text-decoration: none; transition: color 0.25s; }
.mobile-nav a:hover { color: var(--color-primary); }

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 40%, #a855f7 70%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 6s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  padding: 8rem 0 5rem;
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 40%, #ffffff 100%);
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Card Hover Animations ---------- */
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--color-border);
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.card-hover .icon-box {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  font-size: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover .icon-box {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}

/* ---------- Stats ---------- */
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-2xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  transition: all 0.35s;
}
.stat-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.stat-number { font-size: 3rem; font-weight: 800; background: linear-gradient(135deg, #4f46e5, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.35s;
  position: relative;
}
.testimonial-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px); }
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem; left: 1.5rem;
  font-size: 5rem;
  color: rgba(99,102,241,0.12);
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin-bottom: 0.75rem;
  background: var(--color-surface);
  overflow: hidden;
  transition: all 0.3s;
}
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--color-text);
  transition: color 0.3s;
}
.faq-question:hover { color: var(--color-primary); }
.faq-question .faq-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.active .faq-question .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}
.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 1.5rem 1.25rem;
}

/* ---------- Button Effects ---------- */
.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  padding: 0.75rem 2rem;
  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 0 rgba(79,70,229,0.35);
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(79,70,229,0.45);
  background: linear-gradient(135deg, #4338ca, #4f46e5);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px 0 rgba(79,70,229,0.3);
}

/* ---------- Contact Form ---------- */
.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  font-size: 1rem;
  transition: all 0.3s;
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
}
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}
.form-label { font-weight: 600; margin-bottom: 0.375rem; display: block; color: var(--color-text); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 4rem 0 2rem;
}
.site-footer a { color: #94a3b8; transition: color 0.25s; }
.site-footer a:hover { color: #fff; }
.site-footer h5 { color: #fff; font-weight: 700; margin-bottom: 1.25rem; }

/* ---------- Page Header ---------- */
.page-header {
  padding: 7rem 0 3rem;
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
  text-align: center;
}

/* ---------- Team Cards ---------- */
.team-card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.team-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--color-border);
  transition: border-color 0.3s;
}
.team-card:hover .team-avatar { border-color: var(--color-primary); }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.125rem; top: 0.5rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #eef2ff;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.25);
}
.timeline-item:last-child { padding-bottom: 0; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%);
  border-radius: var(--radius-2xl);
  padding: 3.5rem 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 150px; height: 150px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Map Div ---------- */
.map-div {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-border);
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Spider Overlay ---------- */
.spider-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.3);
  z-index: 99999;
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.spider-overlay.show { opacity: 1; }
.spider-overlay .spider-dot {
  width: 8px; height: 8px;
  background: rgba(79,70,229,0.6);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(79,70,229,0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-section { padding: 7rem 0 4rem; }
  .stat-number { font-size: 2.25rem; }
}

@media (max-width: 768px) {
  .glass-nav nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .hero-section { padding: 6rem 0 3rem; }
  .hero-section h1 { font-size: 2.25rem !important; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .page-header { padding: 5.5rem 0 2rem; }
  .stat-number { font-size: 2rem; }
  .timeline { padding-left: 2rem; }
  .timeline-item::before { left: -1.625rem; }
  .map-div { height: 250px; }
}

@media (max-width: 480px) {
  .hero-section h1 { font-size: 1.75rem !important; }
  .btn-primary, .btn-outline { padding: 0.625rem 1.25rem; font-size: 0.875rem; width: 100%; justify-content: center; }
  .card-hover { padding: 1.25rem !important; }
  .faq-question { font-size: 0.95rem; padding: 1rem 1.25rem; }
}
