/* ============================================================
   德扑圈官网推荐 — Type3 Multi-Page Style
   Primary: lime-500 (#84CC16)
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --primary: #84CC16;
  --primary-dark: #65A30D;
  --primary-light: #A3E635;
  --primary-50: rgba(132, 204, 22, 0.05);
  --primary-100: rgba(132, 204, 22, 0.1);
  --primary-200: rgba(132, 204, 22, 0.2);
  --primary-600: #65A30D;
  --surface: #FFFFFF;
  --surface-alt: #F9FAFB;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --gradient-hero: linear-gradient(135deg, #84CC16 0%, #65A30D 50%, #4D7C0F 100%);
  --gradient-card: linear-gradient(135deg, rgba(132,204,22,0.08) 0%, rgba(132,204,22,0.02) 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
  --shadow-glow: 0 0 40px rgba(132, 204, 22, 0.3), 0 0 80px rgba(132, 204, 22, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F3F4F6; }
::-webkit-scrollbar-thumb { background: #9CA3AF; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #6B7280; }

/* ---- Navbar Glass Effect ---- */
.navbar-glass {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(132, 204, 22, 0.15);
  transition: var(--transition);
}

.navbar-glass.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

/* ---- Hero Gradient BG ---- */
.hero-bg {
  background: radial-gradient(ellipse 80% 80% at 50% -20%, rgba(132,204,22,0.15), transparent 60%),
              linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(132,204,22,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(132,204,22,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ---- Floating Orbs (decorative) ---- */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(132,204,22,0.2) 0%, transparent 70%);
  top: 10%; right: 10%;
  animation: float 6s ease-in-out infinite;
}

.orb-2 {
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(163,230,53,0.15) 0%, transparent 70%);
  bottom: 20%; left: 5%;
  animation: float 8s ease-in-out 1s infinite;
}

.orb-3 {
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(132,204,22,0.25) 0%, transparent 70%);
  top: 40%; left: 15%;
  animation: float 7s ease-in-out 2s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* ---- CTA Buttons ---- */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-hero);
  color: #fff;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(132,204,22,0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(132,204,22,0.5);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: var(--transition);
  background: transparent;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(132,204,22,0.3);
}

/* ---- Feature Cards ---- */
.feature-card {
  background: var(--surface);
  border: 1px solid rgba(132,204,22,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(132,204,22,0.3);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-100);
  color: var(--primary-dark);
  font-size: 24px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: 0 4px 16px rgba(132,204,22,0.4);
}

/* ---- Step Cards ---- */
.step-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid #F3F4F6;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--gradient-hero);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(132,204,22,0.3);
}

/* ---- Download Cards ---- */
.download-card {
  background: var(--surface);
  border: 2px solid #F3F4F6;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.download-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

.download-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.download-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.download-card .badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-hero);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(132,204,22,0.4);
}

/* ---- Section Dividers ---- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(132,204,22,0.3), transparent);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- FAQ Accordion ---- */
.faq-item {
  border: 1px solid #F3F4F6;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(132,204,22,0.3);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(132,204,22,0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  font-weight: 600;
  background: var(--surface);
  transition: var(--transition);
  cursor: pointer;
}

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

.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;
  padding: 0 24px 18px;
}

.faq-icon {
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
  background: var(--surface);
  border: 1px solid #F3F4F6;
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(132,204,22,0.2);
}

/* ---- Page Hero (sub-pages) ---- */
.page-hero {
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(132,204,22,0.12), transparent 70%),
              linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}

/* ---- Download Steps (sub-pages) ---- */
.dl-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.dl-step-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(132,204,22,0.35);
}

.dl-step-content {
  background: var(--surface);
  border: 1px solid #F3F4F6;
  border-radius: var(--radius);
  padding: 24px 28px;
  flex: 1;
  transition: var(--transition);
}

.dl-step-content:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* ---- QR Code Card ---- */
.qr-card {
  background: var(--surface);
  border: 2px dashed rgba(132,204,22,0.4);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.qr-card:hover {
  border-style: solid;
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

/* ---- Alert / Notice Box ---- */
.notice-box {
  background: var(--primary-50);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notice-box.warning {
  background: rgba(251,191,36,0.08);
  border-left-color: #F59E0B;
}

/* ---- Platform Badge ---- */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}

.platform-badge.android {
  background: rgba(61,220,132,0.1);
  color: #16A34A;
}

.platform-badge.ios {
  background: rgba(0,122,255,0.1);
  color: #007AFF;
}

/* ---- Footer ---- */
.footer-cta {
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
  position: relative;
  overflow: hidden;
}

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

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ---- Fade-In-Up Animation ---- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ---- Toast Notification ---- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111827;
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 14px;
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ---- Pulse Dot ---- */
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(132,204,22,0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(132,204,22,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(132,204,22,0); }
  100% { box-shadow: 0 0 0 0 rgba(132,204,22,0); }
}
