/* ============================================
   德扑之家 - Shared Stylesheet
   ============================================ */

/* ----- Custom Scrollbar ----- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #4f46e5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4338ca;
}

/* ----- Section Padding ----- */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* ----- Hero Overlay Gradient ----- */
.hero-overlay {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.92) 0%, rgba(49, 46, 129, 0.88) 50%, rgba(30, 27, 75, 0.9) 100%);
}

/* ----- Card Hover Effect ----- */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ----- Button Gradient ----- */
.btn-gradient {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: #fff;
  transition: all 0.3s ease;
}
.btn-gradient:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
  transform: translateY(-2px);
}

.btn-gradient-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  transition: all 0.3s ease;
}
.btn-gradient-outline:hover {
  background: #fff;
  color: #4f46e5;
  transform: translateY(-2px);
}

/* ----- FAQ Accordion ----- */
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item .faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
.faq-item .faq-question:hover {
  background: #f9fafb;
}
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.25rem;
  line-height: 1.7;
  color: #4b5563;
  background: #fff;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1rem 1.25rem;
}
.faq-item .faq-icon {
  transition: transform 0.3s ease;
  color: #4f46e5;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* ----- Stat Number ----- */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #4f46e5;
  line-height: 1.2;
}
.stat-number::after {
  content: '';
}

/* ----- Testimonial Card ----- */
.testimonial-card {
  border-left: 4px solid #4f46e5;
  background: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.testimonial-card.active-testimonial {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ----- Mobile Menu ----- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
  overflow-y: auto;
}
.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: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  transition: color 0.2s ease;
}
.mobile-menu a:hover {
  color: #4f46e5;
}

/* ----- Fade In Up Animation ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Navbar Scroll Effect ----- */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.navbar-scrolled .nav-link {
  color: #374151 !important;
}
.navbar-scrolled .logo-text {
  color: #4f46e5 !important;
}

/* ----- Image Placeholder ----- */
.image-placeholder {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  font-size: 3rem;
}

/* ----- Form Input Styling ----- */
.input-styled {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  background: #fff;
}
.input-styled:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* ----- Pulse Animation for CTA ----- */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(79, 70, 229, 0);
  }
}
.pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* ----- Responsive Tweaks ----- */
@media (max-width: 768px) {
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .section-padding {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .stat-number {
    font-size: 1.75rem;
  }
}

/* ----- Contact Info Card ----- */
.contact-info-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.contact-info-card .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #4f46e5;
  font-size: 1.5rem;
}

/* ----- Team Card ----- */
.team-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1);
}
.team-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #4f46e5;
  margin: 0 auto 1rem;
}

/* ----- Value Card ----- */
.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1);
}
.value-card .value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #4f46e5;
  font-size: 1.75rem;
}

/* ----- Map Placeholder ----- */
.map-placeholder {
  background: #f3f4f6;
  border-radius: 0.75rem;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1.1rem;
  border: 2px dashed #d1d5db;
}

/* ----- Footer ----- */
.footer-section h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.footer-section a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  padding: 0.2rem 0;
  font-size: 0.95rem;
}
.footer-section a:hover {
  color: #fff;
}
