/* ============================================
   HHPoker Club - Landing Page Set 0024
   Primary Sky Blue Theme
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --primary-900: #0c4a6e;
  --primary-800: #075985;
  --primary-700: #0369a1;
  --primary-600: #0284c7;
  --primary-500: #0ea5e9;
  --primary-400: #38bdf8;
  --primary-300: #7dd3fc;
  --primary-200: #bae6fd;
  --primary-100: #e0f2fe;
  --primary-50: #f0f9ff;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --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);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

/* ---- Body ---- */
body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  overflow-x: hidden;
  background-color: var(--white);
}

/* ---- Navbar ---- */
#navbar {
  transition: all 0.3s ease;
  z-index: 1000;
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}
#navbar.scrolled .nav-link {
  color: var(--gray-700) !important;
}
#navbar.scrolled .nav-link:hover {
  color: var(--primary-600) !important;
}
#navbar.scrolled #brand-text {
  color: var(--gray-800) !important;
}

.nav-link {
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: var(--primary-500);
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Sparkle icon animation on navbar brand */
.navbar-sparkle {
  display: inline-block;
  animation: sparkle-pulse 2s ease-in-out infinite;
  color: var(--primary-500);
}
@keyframes sparkle-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* ---- Hero Section ---- */
.hero-gradient {
  background: linear-gradient(135deg, #0c4a6e 0%, #075985 30%, #0ea5e9 100%);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}
.hero-btn-primary {
  background: var(--white);
  color: var(--primary-700);
  box-shadow: var(--shadow-lg);
}
.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl);
}
.hero-btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-3px);
}

.hero-image-wrapper {
  position: relative;
  animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
.hero-image-glow {
  position: absolute;
  inset: -20px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent 70%);
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ---- Features Section ---- */
.feature-card {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-300);
}

/* Icon hover flip animation */
.feature-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
  margin-bottom: 20px;
  perspective: 800px;
  transition: transform 0.6s ease;
}
.feature-card:hover .feature-icon-wrapper {
  transform: rotateY(180deg);
}
.feature-icon-inner {
  font-size: 2rem;
  color: var(--primary-600);
  transition: transform 0.6s ease, color 0.3s ease;
}
.feature-card:hover .feature-icon-inner {
  transform: rotateY(180deg);
  color: var(--primary-500);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
  transition: width 0.4s ease;
}
.feature-card:hover::before {
  width: 100%;
}

/* ---- Stats Section ---- */
.stats-section {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
  position: relative;
  overflow: hidden;
}

.stat-card {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  z-index: 1;
}

/* Large watermark number */
.stat-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  position: relative;
  z-index: 2;
}
.stat-label {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

/* ---- Testimonials Section ---- */
.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 24px 24px;
  position: relative;
  margin-top: 40px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

/* Avatar overlapping card border */
.testimonial-avatar {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  z-index: 10;
}
.testimonial-quote-icon {
  color: var(--primary-300);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 12px;
}
.testimonial-text {
  color: var(--gray-600);
  font-style: italic;
  line-height: 1.7;
}
.testimonial-stars {
  color: #f59e0b;
}
.testimonial-name {
  font-weight: 700;
  color: var(--gray-800);
}
.testimonial-role {
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* ---- FAQ Section ---- */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover {
  border-color: var(--primary-200);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gray-800);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.3s ease;
}
.faq-question:hover {
  color: var(--primary-600);
}
.faq-question-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--primary-500);
}
.faq-item.active .faq-question-icon {
  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: 600px;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ---- CTA Section ---- */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  overflow: visible;
}

/* Wave SVG top divider */
.cta-wave-top {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.cta-wave-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}
.cta-btn-primary {
  background: var(--white);
  color: var(--primary-700);
  box-shadow: var(--shadow-lg);
}
.cta-btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}
.cta-btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.cta-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  transform: translateY(-4px);
}

/* ---- Footer ---- */
.footer-section {
  background: var(--gray-900);
  color: var(--gray-400);
}
.footer-title {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-link {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: var(--primary-400);
}
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-300);
  transition: all 0.3s ease;
  text-decoration: none;
}
.footer-social-icon:hover {
  background: var(--primary-600);
  color: var(--white);
  transform: translateY(-3px);
}
.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ---- Download Page ---- */
.download-hero {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-500));
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.download-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.download-card:hover {
  border-color: var(--primary-400);
  box-shadow: var(--shadow-2xl);
  transform: translateY(-6px);
}
.download-card.featured {
  border-color: var(--primary-500);
  box-shadow: var(--shadow-xl);
}
.download-card.featured::before {
  content: '推荐';
  position: absolute;
  top: 16px;
  right: -30px;
  background: var(--primary-500);
  color: white;
  padding: 4px 40px;
  font-size: 0.8rem;
  font-weight: 600;
  transform: rotate(45deg);
}
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}
.download-btn-ios {
  background: var(--gray-900);
  color: white;
}
.download-btn-ios:hover {
  background: #000;
  transform: translateY(-2px);
}
.download-btn-android {
  background: var(--primary-600);
  color: white;
}
.download-btn-android:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
}
.download-btn-pc {
  background: var(--gray-600);
  color: white;
}
.download-btn-pc:hover {
  background: var(--gray-700);
  transform: translateY(-2px);
}

.download-steps {
  counter-reset: step;
}
.download-step {
  position: relative;
  padding-left: 64px;
  padding-bottom: 32px;
}
.download-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.download-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 48px;
  width: 2px;
  height: calc(100% - 48px);
  background: var(--gray-200);
}

/* ---- Club Page ---- */
.club-hero {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
}

/* Horizontal wide cards */
.club-card-horizontal {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}
.club-card-horizontal:hover {
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-300);
  transform: translateY(-4px);
}
.club-card-image {
  flex-shrink: 0;
  width: 260px;
  min-height: 220px;
  object-fit: cover;
}
.club-card-body {
  flex: 1;
  padding: 28px 32px;
}
.club-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.club-badge-hot {
  background: #fef2f2;
  color: #dc2626;
}
.club-badge-new {
  background: #ecfdf5;
  color: #059669;
}
.club-badge-top {
  background: #fff7ed;
  color: #ea580c;
}
.club-badge-vip {
  background: #f5f3ff;
  color: #7c3aed;
}

.club-stat-item {
  text-align: center;
  padding: 16px;
  border-right: 1px solid var(--gray-200);
}
.club-stat-item:last-child {
  border-right: none;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}
.animate-fadeInLeft {
  animation: fadeInLeft 0.6s ease forwards;
}
.animate-fadeInRight {
  animation: fadeInRight 0.6s ease forwards;
}

/* ---- Back to Top Button ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-600);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-700);
  transform: translateY(-4px);
}

/* ---- Page Header ---- */
.page-header-bg {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-500));
  padding: 100px 0 60px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .club-card-horizontal {
    flex-direction: column;
  }
  .club-card-image {
    width: 100%;
    min-height: 200px;
  }
  .stat-watermark {
    font-size: 5rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .download-card {
    padding: 24px 16px;
  }
  .feature-card {
    padding: 24px 16px;
  }
}
