/* ============================================================
   德扑之家 - Texas Hold'em Home
   Premium Landing Page Styles
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --primary-bg: #EFF6FF;
  --primary-border: #BFDBFE;
  --text-dark: #1E293B;
  --text-body: #475569;
  --text-muted: #94A3B8;
  --white: #FFFFFF;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---- Base Body ---- */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ---- Glassmorphism Navbar ---- */
.navbar-glass {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  transition: all var(--transition);
  z-index: 1000;
}

.navbar-glass.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.94);
}

/* ---- Nav Links ---- */
.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: color var(--transition);
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition);
}

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

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

/* ---- Feature Cards ---- */
.feature-card {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  border-radius: 0 0 2px 2px;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-border);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: background var(--transition), color var(--transition);
}

.feature-card:hover .card-icon {
  background: var(--primary);
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ---- Stat Counter Items ---- */
.stat-item {
  text-align: center;
  padding: 24px 16px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-top: 6px;
  font-weight: 500;
}

.stat-suffix {
  font-weight: 800;
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--card-shadow);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

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

.testimonial-stars {
  color: #F59E0B;
  font-size: 0.9rem;
}

/* ---- FAQ Accordion ---- */
.faq-item {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
  background: var(--white);
}

.faq-item:hover {
  border-color: var(--primary-border);
}

.faq-item.active {
  border-color: var(--primary-border);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

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

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

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.75rem;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

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

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

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

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.8;
}

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

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  pointer-events: none;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 2px solid #CBD5E1;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

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

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

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

/* ---- Section Titles ---- */
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

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

/* ---- Hero Section ---- */
.hero-section {
  background: linear-gradient(160deg, #EFF6FF 0%, #DBEAFE 30%, #F0F9FF 60%, #EFF6FF 100%);
  position: relative;
  overflow: hidden;
}

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

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-image {
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition);
}

.hero-image:hover {
  transform: scale(1.02);
}

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

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
}

/* ---- Stats Section ---- */
.stats-section {
  background: var(--white);
}

/* ---- Footer ---- */
.site-footer {
  background: #0F172A;
  color: #CBD5E1;
}

.site-footer h4 {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}

.site-footer a {
  color: #94A3B8;
  text-decoration: none;
  transition: color var(--transition);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding-top: 24px;
  margin-top: 24px;
  font-size: 0.85rem;
  color: #64748B;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

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

.mobile-menu a {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

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

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

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

/* ---- Scroll-to-top ---- */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 998;
}

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

.scroll-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Pulse Dot ---- */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  margin-right: 8px;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.3);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

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

@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }
  .hamburger {
    display: flex;
  }
  .section-title {
    font-size: 1.55rem;
  }
  .hero-image {
    max-width: 100%;
    margin-top: 32px;
  }
  .feature-card {
    padding: 24px 20px;
  }
  .stat-number {
    font-size: 2rem;
  }
  .cta-section {
    text-align: center;
  }
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.35rem;
  }
  .btn-primary,
  .btn-outline,
  .btn-white,
  .btn-outline-white {
    padding: 11px 20px;
    font-size: 0.9rem;
  }
}
