/* ============================================
   HHPoker 德扑圈 - Landing Page Set 0033
   Primary Palette: Cool Mint
   #0d9488 (teal-600), #14b8a6 (teal-500),
   #2dd4bf (teal-400), #5eead4 (teal-300)
   ============================================ */

:root {
  --primary-600: #0d9488;
  --primary-500: #14b8a6;
  --primary-400: #2dd4bf;
  --primary-300: #5eead4;
  --dark-bg: #134e4a;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --transition: all 0.3s ease;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

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

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 148, 136, 0.12);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(13, 148, 136, 0.12);
}

.nav-link {
  position: relative;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary-500);
  transition: width 0.3s ease;
}

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

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

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-menu.open {
  max-height: 400px;
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #134e4a 0%, #14b8a6 50%, #0d9488 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

/* Floating circle decorations */
.floating-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
}

.floating-circle.c1 {
  width: 300px;
  height: 300px;
  background: var(--primary-300);
  top: 10%;
  left: -60px;
  animation: floatCircle1 8s ease-in-out infinite;
}

.floating-circle.c2 {
  width: 180px;
  height: 180px;
  background: var(--primary-300);
  top: 20%;
  right: 15%;
  animation: floatCircle2 10s ease-in-out infinite;
}

.floating-circle.c3 {
  width: 120px;
  height: 120px;
  background: var(--primary-400);
  bottom: 15%;
  left: 20%;
  animation: floatCircle3 9s ease-in-out infinite;
}

.floating-circle.c4 {
  width: 80px;
  height: 80px;
  background: var(--primary-300);
  bottom: 25%;
  right: 8%;
  animation: floatCircle4 7s ease-in-out infinite;
}

.floating-circle.c5 {
  width: 200px;
  height: 200px;
  background: var(--primary-400);
  top: 55%;
  left: -40px;
  animation: floatCircle5 11s ease-in-out infinite;
}

@keyframes floatCircle1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.05); }
}

@keyframes floatCircle2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, 35px) scale(0.95); }
}

@keyframes floatCircle3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -20px) scale(1.08); }
}

@keyframes floatCircle4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, -30px) scale(1.06); }
}

@keyframes floatCircle5 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 45px) scale(0.92); }
}

.hero-image-wrapper {
  position: relative;
  display: inline-block;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-300), var(--primary-500));
  z-index: -1;
  opacity: 0.5;
  filter: blur(20px);
}

/* ---------- Features Section ---------- */
.feature-card {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  transition: var(--transition);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15);
}

/* Gradient left-border */
.feature-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #0d9488 0%, #14b8a6 40%, #2dd4bf 70%, #5eead4 100%);
  border-radius: 0 3px 3px 0;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

/* ---------- Stats Section ---------- */
.stats-section {
  background: linear-gradient(135deg, #0d9488 0%, #134e4a 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-counter {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

/* Animated horizontal progress bar */
.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.75rem;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #5eead4, #2dd4bf, #14b8a6);
  width: 0%;
  transition: width 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.progress-bar-fill.animated {
  /* widths set inline or by JS */;
}

/* ---------- Testimonials Section ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(13, 148, 136, 0.12);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-300);
  opacity: 0.3;
  font-family: serif;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--primary-400);
  object-fit: cover;
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary-400);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  color: var(--text-dark);
}

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

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.8rem;
}

.faq-item.active .faq-icon {
  background: var(--primary-500);
  color: var(--white);
  transform: rotate(45deg);
}

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

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

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.15);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.1);
  bottom: -80px;
  left: -60px;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.footer-section {
  background: #0f172a;
  color: #94a3b8;
}

.footer-link {
  color: #94a3b8;
  transition: var(--transition);
}

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

/* ---------- 3-Step Timeline (download.php) ---------- */
.timeline-step {
  position: relative;
  padding-left: 60px;
  padding-bottom: 3rem;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 48px;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-500), var(--primary-300));
  border-radius: 2px;
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4);
  z-index: 1;
}

/* ---------- Wide Horizontal Club Cards (club.php) ---------- */
.club-card-horizontal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.club-card-horizontal:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15);
}

.club-card-horizontal::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #0d9488, #14b8a6, #2dd4bf, #5eead4);
}

.club-card-badge {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: var(--white);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.45);
  background: linear-gradient(135deg, #14b8a6, #2dd4bf);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  background: var(--white);
  color: var(--primary-600);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

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

/* ---------- Section Header ---------- */
.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(13, 148, 136, 0.1);
  color: var(--primary-600);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
}

/* ---------- Scroll to top ---------- */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

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

.scroll-top-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 4rem;
  }

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

  .club-card-horizontal {
    flex-direction: column;
    text-align: center;
  }

  .timeline-step {
    padding-left: 50px;
  }

  .floating-circle.c1 { width: 150px; height: 150px; }
  .floating-circle.c2 { width: 100px; height: 100px; }
  .floating-circle.c3 { width: 70px; height: 70px; }
  .floating-circle.c4 { width: 50px; height: 50px; }
  .floating-circle.c5 { width: 120px; height: 120px; }
}
