/* ============================================================
   德扑圈线上HHpoker俱乐部 - 自定义样式
   ============================================================ */

/* ---- CSS 变量 ---- */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --accent: #F59E0B;
  --dark: #111827;
  --gray: #6B7280;
  --light: #F9FAFB;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- 全局平滑滚动 ---- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--dark);
  overflow-x: hidden;
}

/* ---- 滚动条美化 ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2563EB, #3B82F6);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1D4ED8, #2563EB);
}

/* ---- 导航栏样式 ---- */
#navbar {
  transition: all var(--transition);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

#navbar.scrolled .nav-link {
  color: var(--dark) !important;
}

#navbar.scrolled .nav-link:hover {
  color: var(--primary) !important;
}

#navbar .nav-link {
  color: white;
  transition: color var(--transition);
  position: relative;
}

#navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition);
}

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

#mobile-menu {
  transition: all var(--transition);
}

/* ---- Hero 动画 ---- */
.hero-animate {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-animate-delay-1 {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-animate-delay-2 {
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-animate-delay-3 {
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

.hero-image-animate {
  animation: fadeInRight 0.9s ease 0.3s forwards;
  opacity: 0;
}

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

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

/* ---- 按钮样式 ---- */
.btn-primary {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: transparent;
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid white;
  transition: all var(--transition);
  display: inline-block;
  text-decoration: none;
}

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

.scrolled .btn-outline-nav {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.scrolled .btn-outline-nav:hover {
  background: var(--primary) !important;
  color: white !important;
}

/* ---- Feature 卡片 ---- */
.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  border: 1px solid #F1F5F9;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563EB, #3B82F6, #60A5FA);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  transform: scale(1.05) rotate(-5deg);
}

.feature-card:hover .feature-icon i {
  color: white !important;
}

/* ---- Stats 数字动画 ---- */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ---- 评价卡片 ---- */
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  border: 1px solid #F1F5F9;
}

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

.testimonial-stars {
  color: #F59E0B;
  letter-spacing: 2px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #60A5FA);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

/* ---- FAQ 手风琴样式 ---- */
.faq-item {
  border: 1px solid #E5E7EB;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
  background: white;
}

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

.faq-header {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background var(--transition);
  font-weight: 600;
  font-size: 16px;
  color: var(--dark);
}

.faq-header:hover {
  background: #F9FAFB;
}

.faq-header i {
  transition: transform var(--transition);
  color: var(--gray);
  font-size: 14px;
}

.faq-item.active .faq-header {
  background: #EFF6FF;
  color: var(--primary);
}

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

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

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

.faq-body-inner {
  padding: 0 24px 20px;
  color: var(--gray);
  line-height: 1.8;
}

/* ---- CTA 区域 ---- */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: ctaPulse 6s ease-in-out infinite;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: ctaPulse 6s ease-in-out 3s infinite;
}

@keyframes ctaPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* ---- Footer 链接悬停 ---- */
.footer-link {
  color: #9CA3AF;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-link:hover {
  color: white;
}

/* ---- 脉冲动画 (Hero 按钮) ---- */
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.pulse-animate {
  animation: pulse-ring 2s infinite;
}

/* ---- 淡入可见动画 (滚动触发) ---- */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 响应式微调 ---- */
@media (max-width: 768px) {
  .feature-card {
    padding: 24px 20px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .btn-primary,
  .btn-outline {
    padding: 10px 24px;
    font-size: 14px;
  }
}
