/* ============================================================
   0028 — 德扑圈官方客服 — Soft Lavender Theme
   Custom styles extending Tailwind CSS
   ============================================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  --lavender-50:  #f9f7ff;
  --lavender-100: #f2edfc;
  --lavender-200: #e5dcf8;
  --lavender-300: #d4c5f2;
  --lavender-400: #b8a3e8;
  --lavender-500: #9b82d6;
  --lavender-600: #7c63bf;
  --lavender-700: #634da3;
  --lavender-800: #4e3d85;
  --lavender-900: #3a2d66;
  --radius-card: 1.25rem;
  --radius-btn:  2.5rem;
  --shadow-soft: 0 4px 24px rgba(124, 99, 191, 0.08);
  --shadow-card: 0 8px 32px rgba(124, 99, 191, 0.10);
  --shadow-hover: 0 14px 40px rgba(124, 99, 191, 0.16);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background-color: #faf8ff;
  color: #3a2d66;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Gradient Backgrounds --- */
.gradient-hero {
  background: linear-gradient(160deg, #f5f0ff 0%, #ede4ff 35%, #e8ddfa 70%, #f2edfc 100%);
}

.gradient-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9f7ff 100%);
}

.gradient-cta {
  background: linear-gradient(135deg, #7c63bf 0%, #9b82d6 50%, #634da3 100%);
}

.gradient-footer {
  background: linear-gradient(180deg, #3a2d66 0%, #2d2152 100%);
}

/* --- Glass Morphism Cards --- */
.glass-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
}

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

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #7c63bf 0%, #9b82d6 100%);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-btn);
  box-shadow: 0 6px 20px rgba(124, 99, 191, 0.32);
  transition: var(--transition-base);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(124, 99, 191, 0.42);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: transparent;
  color: #7c63bf;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: 2px solid #b8a3e8;
  transition: var(--transition-base);
  text-decoration: none;
  cursor: pointer;
}

.btn-outline:hover {
  background: #f2edfc;
  border-color: #7c63bf;
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #ffffff;
  color: #634da3;
  font-weight: 600;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: var(--transition-base);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

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

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: var(--transition-base);
  background: rgba(250, 248, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184, 163, 232, 0.15);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(124, 99, 191, 0.1);
}

.nav-link {
  position: relative;
  color: #4e3d85;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0;
  transition: var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7c63bf;
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #7c63bf;
}

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

.nav-link.active {
  color: #7c63bf;
}

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

/* --- Section Headings --- */
.section-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: #f2edfc;
  color: #7c63bf;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #3a2d66;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #7a6e9e;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Feature Icon Box --- */
.icon-box {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #f2edfc 0%, #e5dcf8 100%);
  color: #7c63bf;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-base);
}

.glass-card:hover .icon-box {
  background: linear-gradient(135deg, #7c63bf 0%, #9b82d6 100%);
  color: #fff;
}

/* --- Stat Number --- */
.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7c63bf 0%, #9b82d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

/* --- Game Type Card --- */
.game-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  cursor: pointer;
}

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

.game-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.8rem;
  background: linear-gradient(135deg, #7c63bf, #9b82d6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
}

/* --- Step Number --- */
.step-circle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c63bf 0%, #9b82d6 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* --- Testimonial Card --- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.25rem;
  left: 1.25rem;
  font-size: 4rem;
  color: #e5dcf8;
  line-height: 1;
  font-family: serif;
}

/* --- FAQ Accordion --- */
.faq-item {
  background: #fff;
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 12px rgba(124, 99, 191, 0.06);
  overflow: hidden;
  transition: var(--transition-base);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  color: #3a2d66;
  user-select: none;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: #b8a3e8;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: #7c63bf;
}

.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;
}

/* --- Footer --- */
.footer-link {
  color: #c4b8e8;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  padding: 4rem 1.5rem 2rem;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

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

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

/* --- Platform Badge --- */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: #fff;
  border-radius: 999px;
  font-weight: 600;
  color: #3a2d66;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: var(--transition-base);
  text-decoration: none;
}

.platform-badge:hover {
  box-shadow: 0 6px 20px rgba(124, 99, 191, 0.2);
  transform: translateY(-2px);
}

/* --- Divider --- */
.divider-soft {
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4c5f2, transparent);
  border: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.65rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .btn-primary,
  .btn-outline,
  .btn-white {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Download page specific --- */
.download-hero-img {
  max-width: 260px;
  border-radius: 2rem;
  box-shadow: 0 20px 50px rgba(124, 99, 191, 0.22);
}

/* --- Club page specific --- */
.club-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: linear-gradient(135deg, #f2edfc, #e5dcf8);
  color: #7c63bf;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 999px;
}
