/* ============================================================
   HHpoker 德扑圈 - Main Stylesheet
   ============================================================ */

/* --- Tailwind Base Config --- */
tailwind.config = {
  theme: {
    extend: {
      colors: {
        primary: {
          50: '#eff6ff',
          100: '#dbeafe',
          200: '#bfdbfe',
          300: '#93c5fd',
          400: '#60a5fa',
          500: '#3b82f6',
          600: '#2563eb',
          700: '#1d4ed8',
          800: '#1e40af',
          900: '#1e3a8a',
          950: '#172554',
        }
      },
      fontFamily: {
        sans: ['Inter', 'system-ui', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', 'Noto Sans', 'sans-serif'],
      }
    }
  }
};

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

/* --- Base Styles --- */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  overflow-x: hidden;
  color: #1f2937;
  line-height: 1.6;
}

/* --- Animations --- */

/* Float animation for hero image */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Fade In Up - for scroll reveal */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Pulse Soft */
@keyframes pulse-soft {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
    transform: scale(1.03);
  }
}

.pulse-soft {
  animation: pulse-soft 2.5s ease-in-out infinite;
}

/* Count Up (no-op visually, driven by JS) */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shimmer / gradient move */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* --- Glass Morphism Navbar --- */
.glass-nav {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar-transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: all 0.3s ease;
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 30%, #7c3aed 70%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-light {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 30%, #a78bfa 70%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-white {
  background: linear-gradient(135deg, #ffffff 0%, #bfdbfe 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Card Hover Effects --- */
.hover-card {
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

/* --- Button Styles --- */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #2563eb;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 2px solid #2563eb;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
}

.btn-white {
  background: #ffffff;
  color: #2563eb;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
}

.btn-white:hover {
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* --- Icon Circle --- */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 28px;
  transition: all 0.3s ease;
}

.hover-card:hover .icon-circle {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  transform: scale(1.1);
}

/* --- Section Title --- */
.section-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  color: #2563eb;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #111827;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Hero Section --- */
.hero-gradient {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 25%, #bfdbfe 50%, #eff6ff 75%, #f0f9ff 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Stats Section --- */
.stats-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 40%, #2563eb 70%, #1e40af 100%);
  position: relative;
  overflow: hidden;
}

.stats-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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");
  pointer-events: none;
}

/* --- Testimonial Card --- */
.testimonial-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid #f3f4f6;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #ffffff;
}

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

.faq-question {
  width: 100%;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  transition: all 0.2s ease;
}

.faq-question:hover {
  color: #2563eb;
}

.faq-icon {
  font-size: 1.2rem;
  color: #9ca3af;
  transition: transform 0.35s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #2563eb;
}

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

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 28px 24px 28px;
  color: #6b7280;
  line-height: 1.8;
  font-size: 0.975rem;
}

/* --- Download CTA Section --- */
.cta-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 30%, #1d4ed8 60%, #1e40af 100%);
  position: relative;
  overflow: hidden;
}

.cta-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-gradient::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Footer --- */
.footer-gradient {
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.footer-link:hover {
  color: #ffffff;
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s ease;
  z-index: 999;
}

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

.back-to-top:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 80px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #374151;
  transition: all 0.2s ease;
}

.mobile-menu-close:hover {
  background: #e5e7eb;
}

.mobile-nav-link {
  display: block;
  padding: 14px 20px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  background: #eff6ff;
  color: #2563eb;
}

/* --- Scroll Reveal Stagger Delays --- */
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.2s; }
.reveal-delay-5 { transition-delay: 0.25s; }
.reveal-delay-6 { transition-delay: 0.3s; }

/* --- Avatar Circles --- */
.avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.avatar-gradient-1 {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.avatar-gradient-2 {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.avatar-gradient-3 {
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
}

/* --- Star Rating --- */
.star-rating {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
}

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

  .hero-gradient::before {
    width: 400px;
    height: 400px;
  }
}

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

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

  .btn-primary,
  .btn-secondary,
  .btn-white {
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  .hero-gradient::before {
    width: 300px;
    height: 300px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 1.5rem;
  }
}

/* --- OS Page Specific --- */
.os-hero-gradient {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 30%, #e0e7ff 60%, #f0f9ff 100%);
  position: relative;
  overflow: hidden;
}

.os-hero-gradient::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Download Card for OS Pages --- */
.download-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #f3f4f6;
  transition: all 0.35s ease;
}

.download-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.12);
}

/* --- Feature highlight list --- */
.feature-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-check-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #374151;
  font-size: 1rem;
}

.feature-check-list li i {
  color: #2563eb;
  font-size: 1.1rem;
}

/* --- APK Info Badge --- */
.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  background: #f0fdf4;
  color: #166534;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid #bbf7d0;
}

/* --- Safety Badge --- */
.safety-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  color: #2563eb;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid #bfdbfe;
}

/* --- Section padding --- */
.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}
