/* ============================================================
   HHpoker 全联盟 — Shared Stylesheet (0011)
   ============================================================ */

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #3b82f6;
  --color-accent: #10b981;
  --color-dark: #0f172a;
  --color-body: #64748b;
  --color-bg: #f8fafc;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.07), 0 4px 10px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  color: var(--color-dark);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 1rem 0;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  padding: 0.6rem 0;
}

/* --- Hero Shapes --- */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.hero-shape-1 { width: 600px; height: 600px; background: var(--color-primary); top: -200px; left: -150px; }
.hero-shape-2 { width: 350px; height: 350px; background: var(--color-accent); bottom: -80px; right: -80px; }

/* --- Feature Card --- */
.feature-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: 2rem;
  border: 1px solid #e2e8f0;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* --- Icon Circle --- */
.icon-circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform var(--transition);
}
.feature-card:hover .icon-circle {
  transform: scale(1.1);
}

/* --- Stats --- */
.stat-card {
  transition: transform 0.3s;
}
.stat-card:hover {
  transform: translateY(-4px);
}

/* --- Testimonial --- */
.testimonial-card {
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.faq-item.active {
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
  background: #f8faff;
}
.faq-question {
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.faq-question:hover { background: #f1f5f9; }
.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;
}
.faq-icon {
  transition: transform 0.3s;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* --- CTA --- */
.cta-dark {
  background: #0f172a;
  position: relative;
  overflow: hidden;
}
.cta-dark::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.3) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

/* --- Buttons --- */
.btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(37,99,235,0.35);
}
.btn-blue:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.45);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
}
.btn-ghost:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Footer --- */
.footer-link {
  transition: color 0.2s;
}
.footer-link:hover { color: var(--color-primary-light); }
.social-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: #94a3b8;
  transition: all 0.3s;
}
.social-icon:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--color-primary-light); }

/* --- Page Header --- */
.page-header-bg {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
}

/* --- Download Steps --- */
.download-step {
  position: relative;
  counter-increment: step;
}
.download-step::before {
  content: counter(step);
  position: absolute;
  top: -0.75rem; left: -0.75rem;
  width: 2rem; height: 2rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 2;
}

/* --- Club Card --- */
.club-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: all var(--transition);
}
.club-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-lg);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fadeInUp 0.6s ease both;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.float-animation { animation: float 5s ease-in-out infinite; }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
  70% { box-shadow: 0 0 0 20px rgba(37,99,235,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}
.pulse-ring { animation: pulse-ring 2s infinite; }

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

@media (max-width: 768px) {
  .hero-shape-1 { width: 350px; height: 350px; }
  .hero-shape-2 { width: 200px; height: 200px; }
  .icon-circle { width: 50px; height: 50px; font-size: 1.2rem; }
}
