/* ============================================
   AA扑克俱乐部 - Custom Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #6366f1;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --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.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-lg: 16px;
  --radius-xl: 24px;
}

/* --- Smooth Scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Body --- */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  color: var(--gray-900);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 0;
}

.navbar .logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  transition: width 0.3s ease;
}

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

.navbar .nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  animation: fadeIn 0.3s ease;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--primary);
}

/* --- Hero --- */
.hero-gradient {
  background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 50%, #f0f9ff 100%);
}

.hero-title {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a5f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-image-wrapper {
  animation: fadeInRight 0.8s ease-out 0.3s both;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

/* --- Feature Cards --- */
.feature-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e5e7eb;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: #c7d2fe;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
}

.feature-icon.indigo {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: #4f46e5;
}

.feature-icon.blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
}

.feature-icon.purple {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  color: #7c3aed;
}

/* --- Stats Counter --- */
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.counter-animate {
  transition: all 0.1s ease-out;
}

/* --- Testimonial Cards --- */
.testimonial-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
}

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

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 5rem;
  color: #e0e7ff;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e0e7ff;
}

/* --- FAQ Accordion --- */
.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #c7d2fe;
}

.faq-question {
  width: 100%;
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gray-900);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: none;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--gray-600);
  font-size: 0.9rem;
}

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

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

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

.faq-answer p {
  color: var(--gray-600);
  line-height: 1.8;
  margin: 0;
}

/* --- CTA Section --- */
.cta-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 50%, #1e40af 100%);
  position: relative;
  overflow: hidden;
}

.cta-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: pulse 8s ease-in-out infinite;
}

/* --- Footer --- */
.footer-link {
  color: var(--gray-600);
  transition: color 0.3s ease;
}

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

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10%, 5%) scale(1.05); }
}

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Scroll-triggered animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Badge --- */
.badge-gradient {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: #4f46e5;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* --- Divider --- */
.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  border-radius: 2px;
  margin: 1rem auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem !important;
  }

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

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
  }
}
