/* ============================================
   Landing Page 0038 — Custom Styles
   HHPoker俱乐部丨德扑竞技社区
   Plum/Wine Theme: #701a75 #a21caf #c026d3 #d946ef
   ============================================ */

/* --- CSS Variables --- */
:root {
  --plum-dark: #701a75;
  --plum: #a21caf;
  --fuschia: #c026d3;
  --pink-light: #d946ef;
  --hero-start: #3b0764;
  --hero-end: #c026d3;
  --dark-bg: #0f0014;
  --card-bg: rgba(255, 255, 255, 0.03);
  --text-primary: #f5f3ff;
  --text-secondary: #c4b5d9;
  --text-muted: #a094b0;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* --- Diagonal Line Pattern Background --- */
.diagonal-pattern {
  position: relative;
}

.diagonal-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      rgba(192, 38, 211, 0.04) 8px,
      rgba(192, 38, 211, 0.04) 10px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(112, 26, 117, 0.03) 8px,
      rgba(112, 26, 117, 0.03) 10px
    );
  pointer-events: none;
  z-index: 0;
}

.diagonal-pattern > * {
  position: relative;
  z-index: 1;
}

/* --- Navbar --- */
.navbar {
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar-scrolled {
  background-color: rgba(15, 0, 20, 0.92);
  box-shadow: 0 1px 20px rgba(162, 28, 175, 0.15);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--plum), var(--fuschia));
  transition: width 0.3s ease;
}

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

/* Mobile menu */
.mobile-menu {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hamburger-line {
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.hamburger-active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero-gradient {
  background: linear-gradient(135deg, var(--hero-start) 0%, #4a0e7e 30%, #8b1aa8 60%, var(--hero-end) 100%);
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--plum), var(--pink-light));
  z-index: -1;
  filter: blur(20px);
  opacity: 0.5;
}

/* --- Feature Cards --- */
.feature-card {
  position: relative;
  background: linear-gradient(145deg, rgba(112, 26, 117, 0.12), rgba(162, 28, 175, 0.06));
  border: 1px solid rgba(162, 28, 175, 0.15);
  border-radius: 12px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--plum-dark), var(--pink-light));
  border-radius: 12px 12px 0 0;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 70, 239, 0.4);
  box-shadow: 0 12px 40px rgba(162, 28, 175, 0.2);
}

.feature-card:hover::before {
  height: 4px;
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.5);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(112, 26, 117, 0.3), rgba(162, 28, 175, 0.2));
  color: var(--pink-light);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--plum), var(--fuschia));
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(217, 70, 239, 0.4);
}

/* --- Stats Counters --- */
.gradient-text {
  background: linear-gradient(135deg, var(--plum) 0%, var(--fuschia) 40%, var(--pink-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item {
  position: relative;
  text-align: center;
  padding: 2rem 1rem;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(162, 28, 175, 0.3), transparent);
}

.stat-item:last-child::after {
  display: none;
}

/* --- Testimonials --- */
.testimonial-card {
  background: linear-gradient(145deg, rgba(112, 26, 117, 0.1), rgba(162, 28, 175, 0.05));
  border: 1px solid rgba(162, 28, 175, 0.12);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.35s ease;
  position: relative;
}

.testimonial-card:hover {
  border-color: rgba(217, 70, 239, 0.35);
  box-shadow: 0 8px 32px rgba(162, 28, 175, 0.18);
  transform: translateY(-4px);
}

.quote-icon {
  color: var(--plum);
  font-size: 2rem;
  opacity: 0.6;
  display: block;
  margin-bottom: 0.75rem;
}

/* --- FAQ Accordion --- */
.accordion-item {
  border: 1px solid rgba(162, 28, 175, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(112, 26, 117, 0.06);
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
}

.accordion-item:hover {
  border-color: rgba(162, 28, 175, 0.25);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  color: var(--pink-light);
}

.accordion-icon {
  font-size: 0.9rem;
  color: var(--plum);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--pink-light);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body-content {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.accordion-item.active .accordion-header {
  color: var(--pink-light);
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--plum-dark), var(--fuschia), var(--plum));
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.05) 0%, transparent 40%);
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
}

.cta-glow-left {
  background: var(--pink-light);
  top: -50px;
  left: -100px;
}

.cta-glow-right {
  background: var(--hero-start);
  bottom: -50px;
  right: -100px;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--plum), var(--fuschia));
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(162, 28, 175, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(192, 38, 211, 0.5);
  background: linear-gradient(135deg, var(--fuschia), var(--pink-light));
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
}

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

/* --- Footer --- */
.footer-link {
  color: var(--text-muted);
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--pink-light);
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(162, 28, 175, 0.1);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1.1rem;
}

.footer-social-icon:hover {
  background: linear-gradient(135deg, var(--plum), var(--fuschia));
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(162, 28, 175, 0.35);
}

/* --- Scroll to top --- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--plum), var(--fuschia));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.35s ease;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(162, 28, 175, 0.4);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(192, 38, 211, 0.55);
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(192, 38, 211, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(192, 38, 211, 0.45);
  }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* --- Responsive tweaks --- */
@media (max-width: 768px) {
  .stat-item::after {
    display: none;
  }

  .diagonal-pattern::before {
    background-image:
      repeating-linear-gradient(
        45deg,
        transparent,
        transparent 6px,
        rgba(192, 38, 211, 0.03) 6px,
        rgba(192, 38, 211, 0.03) 7px
      );
  }
}
