/* Custom CSS */

/* General styles */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
}

/* Spacing utility */
.py-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Navbar styles */
.navbar {
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar-scrolled {
  background-color: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

/* Hero section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/hero-image.jpeg") no-repeat;
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  z-index: -1;
}

/* Section titles */
.section-title {
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Feature cards */
.card {
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Stats section */
.display-4 {
  font-size: 2.5rem;
  font-weight: 700;
}

/* Contact section */
#wechatQR {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  z-index: 1000;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
  }

  .display-4 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* Animations */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* Custom button styles */
.btn-primary {
  padding: 1rem 3rem;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1.2rem;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Image styles */
.img-fluid {
  border-radius: 10px;
}

/* Footer styles */
footer a:hover {
  color: var(--primary-color) !important;
  text-decoration: none;
}

/* 悬浮联系窗口 */
.floating-contact {
  position: fixed;
  right: 80px;
  bottom: 80px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #2aae67;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.contact-button:hover {
  transform: scale(1.1);
}

.qr-container {
  position: absolute;
  right: 70px;
  bottom: 0;
  background-color: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 1;
  visibility: visible;
  transition: var(--transition);
  width: 200px;
}

/* .floating-contact:hover .qr-container {
  opacity: 1;
  visibility: visible;
} */

.qr-container img {
  width: 100%;
  border-radius: 5px;
}

.qr-container h5 {
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 16px;
  text-align: center;
  color: var(--dark-color);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}