/* ============================================================
   Project 0030 - 线上德州网 HHpoker 俱乐部
   Primary: Indigo (#4f46e5) | Accent: Emerald (#10b981)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --indigo-light: #6366f1;
  --violet: #7c3aed;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-light: #34d399;
  --dark-footer: #0f0a2e;
  --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 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --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);
}

/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Navbar ---------- */
.navbar {
  background-color: var(--indigo);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.navbar-logo i {
  font-size: 1.6rem;
  color: var(--emerald-light);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--emerald-light);
  transition: width 0.3s ease;
}

.navbar-links a:hover {
  color: var(--white);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-cta {
  background-color: var(--emerald);
  color: var(--white) !important;
  padding: 0.55rem 1.5rem !important;
  border-radius: 9999px;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.navbar-cta:hover {
  background-color: var(--emerald-dark) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.navbar-cta::after {
  display: none !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: var(--indigo-dark);
  padding: 1rem 2rem 1.5rem;
  gap: 0.75rem;
}

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

.mobile-menu a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s;
}

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

.mobile-menu .mobile-cta {
  background-color: var(--emerald);
  color: var(--white) !important;
  text-align: center;
  border-radius: 9999px;
  padding: 0.65rem 0 !important;
  margin-top: 0.5rem;
  font-weight: 600;
  border-bottom: none !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 30%, #7c3aed 70%, #8b5cf6 100%);
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

/* Geometric dot pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 1;
}

/* Diagonal lines overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.04) 48%, rgba(255, 255, 255, 0.04) 52%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.04) 48%, rgba(255, 255, 255, 0.04) 52%, transparent 52%);
  background-size: 80px 80px;
  z-index: 1;
  opacity: 0.5;
}

.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 0.4rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero h1 .emerald-highlight {
  color: var(--emerald-light);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-emerald {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--emerald);
  color: var(--white);
  padding: 0.85rem 2.2rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-emerald:hover {
  background-color: var(--emerald-dark);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.55);
  transform: translateY(-2px);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  padding: 0.85rem 2.2rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.hero-image-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.3);
  display: block;
}

/* Floating animated shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  z-index: 0;
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  background: var(--emerald);
  top: -80px;
  right: -60px;
  animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  background: var(--white);
  bottom: 60px;
  left: -40px;
  animation: float 6s ease-in-out infinite 2s;
}

.hero-shape-3 {
  width: 150px;
  height: 150px;
  background: var(--violet);
  top: 40%;
  left: 10%;
  animation: float 7s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* ---------- Section Common ---------- */
.section {
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-badge {
  display: inline-block;
  background: rgba(79, 70, 229, 0.1);
  color: var(--indigo);
  padding: 0.3rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border: 2px solid #c7d2fe;
  border-radius: 1.25rem;
  padding: 2rem 2rem 1.75rem;
  transition: all 0.35s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  background-color: var(--emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  /* Top-left positioning - not centered */
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.35rem;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.65rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ---------- Stats ---------- */
.stats-section {
  background: linear-gradient(180deg, #f8f7ff 0%, #f0fdf4 100%);
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 2.5rem;
  border-right: 2px solid #d1d5db;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--indigo);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all 0.35s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
  border-color: var(--indigo-light);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.testimonial-stars i {
  color: var(--emerald);
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--indigo-light);
}

.testimonial-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
}

.testimonial-info span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ---------- FAQ ---------- */
.faq-container {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.faq-item:nth-child(odd) {
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.faq-item:nth-child(even) {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-800);
  user-select: none;
  transition: color 0.3s;
}

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

.faq-toggle {
  width: 28px;
  height: 28px;
  background-color: var(--emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.faq-toggle i {
  color: var(--white);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle i {
  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;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---------- CTA Banner ---------- */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  padding: 6rem 2rem 5rem;
  text-align: center;
  /* Wave curve at top */
  clip-path: ellipse(120% 100% at 50% 0%);
  margin-top: -1px;
}

.cta-container {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-section .btn-emerald {
  font-size: 1.1rem;
  padding: 1rem 3rem;
}

/* ---------- Footer ---------- */
.footer {
  background-color: #0f0a2e;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 2rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1140px;
  margin: 0 auto 3rem;
}

.footer-col h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background-color: var(--emerald);
  border-radius: 2px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--emerald-light);
}

.footer-col ul li i {
  color: var(--emerald);
  margin-right: 0.5rem;
  width: 16px;
  text-align: center;
}

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- Animations ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero {
    padding: 5rem 1.25rem 3rem;
    min-height: auto;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-item {
    flex: 0 0 calc(50% - 0.75rem);
    border-right: none;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e5e7eb;
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }

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

  .cta-section h2 {
    font-size: 1.7rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.65rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-emerald,
  .btn-outline-white {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    flex: 0 0 100%;
  }
}
