/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.menu-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu-toggle-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #333;
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-toggle-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Footer Styles */
.footer-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-widget h4 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h4:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: #fff;
}

.footer-widget p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 14px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  color: rgba(255, 255, 255, 0.8);
  padding: 10px 0;
  font-size: 14px;
}

.footer-contact li i {
  margin-right: 10px;
  color: #fff;
  width: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  padding: 8px 0;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  display: inline-block;
}

.footer-links li a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-links li i {
  margin-right: 8px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
  font-size: 18px;
}

.social-links a:hover {
  background: #fff;
  color: #667eea;
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.8);
  margin: 5px 0;
  font-size: 14px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Feature Box Styles */
.feature-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-box h4 {
  color: #333;
  font-size: 20px;
  margin: 15px 0;
  font-weight: 600;
}

.feature-box p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* Base styles for menu */
.header-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu ul li a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-menu-close {
  display: none;
}

/* Desktop - Hide mobile menu toggle */
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .mobile-menu-close {
    display: none !important;
  }
}

/* Mobile Responsive Styles */
@media (max-width: 991px) {
  /* 强制覆盖所有原有样式 - 最高优先级 */
  body #menuWrapper .header-menu ul li a,
  body #menuWrapper .header-menu > ul > li > a,
  body #menuWrapper .main-header .header-menu > ul > li > a,
  body #menuWrapper .main-header .header-menu > ul > li:hover > a,
  body #menuWrapper .main-header .header-menu > ul > li.active > a,
  body #menuWrapper .main-header.sticky .header-menu > ul > li > a {
    color: #333 !important;
    background: transparent !important;
    padding: 18px 20px !important;
    font-size: 16px !important;
  }

  body #menuWrapper .header-menu ul li:hover a,
  body #menuWrapper .header-menu ul li a:hover {
    color: #667eea !important;
    background: #f8f9fa !important;
  }

  body #menuWrapper .header-menu ul li.active a {
    color: #667eea !important;
    background: transparent !important;
  }

  .mobile-menu-toggle {
    display: block !important;
  }

  .menu--inner-area {
    position: relative;
  }

  #menuWrapper {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #fff !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    padding-top: 80px;
  }

  #menuWrapper * {
    box-sizing: border-box;
  }

  #menuWrapper nav,
  #menuWrapper .header-menu {
    background: transparent !important;
  }

  #menuWrapper.active {
    left: 0;
  }

  #menuWrapper.active::after {
    content: '';
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .menu-button {
    position: relative;
  }

  /* Mobile Menu Close Button */
  .mobile-menu-close {
    display: block !important;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
  }

  .menu-close-btn {
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
  }

  .menu-close-btn:hover {
    background: #667eea;
    color: #fff;
  }

  .menu-close-btn i {
    pointer-events: none;
  }

  /* 移动菜单基础样式 */
  #menuWrapper .header-menu ul {
    flex-direction: column;
    padding: 20px 0;
    display: block !important;
    margin: 0;
    list-style: none;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: transparent !important;
  }

  #menuWrapper .header-menu ul li {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
    border-top: none !important;
    display: block !important;
    float: none !important;
    background: transparent !important;
  }

  #menuWrapper .header-menu ul li a {
    display: block !important;
    padding: 18px 20px !important;
    color: #333 !important;
    text-decoration: none;
    font-size: 16px !important;
    font-weight: 500;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    line-height: 1.5;
    width: 100% !important;
  }

  #menuWrapper .header-menu ul li.active a {
    color: #667eea !important;
    background: transparent !important;
    font-weight: 600;
  }

  #menuWrapper .header-menu ul li:hover a,
  #menuWrapper .header-menu ul li a:hover {
    color: #667eea !important;
    background: #f8f9fa !important;
  }

  .menu-toggle-btn span {
    background-color: #333 !important;
  }

  /* 确保导航栏可见 */
  #menuWrapper nav {
    display: block !important;
    width: 100%;
  }

  #menuWrapper .header-menu {
    display: block !important;
    width: 100%;
    text-align: left !important;
    position: static !important;
  }


  .banner-text-inner h1 {
    font-size: 24px;
  }

  .banner-text-inner p {
    font-size: 14px;
  }

  .feature-icon {
    max-width: 100% !important;
    height: auto !important;
    margin-top: 30px;
  }

  .footer-widget {
    margin-bottom: 30px;
  }

  .footer-section {
    padding: 40px 0 20px;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .banner-text-inner h1 {
    font-size: 20px;
    line-height: 1.4;
  }

  .banner-text-inner .btn {
    padding: 12px 25px;
    font-size: 14px;
    margin: 5px;
  }

  .feature-box {
    min-height: auto;
    margin-bottom: 20px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .footer-bottom p {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .banner-text-inner h1 {
    font-size: 18px;
  }

  .banner-text-inner p {
    font-size: 13px;
  }

  .footer-widget h4 {
    font-size: 18px;
  }

  .footer-contact li,
  .footer-links li a {
    font-size: 13px;
  }

  .social-links a {
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 16px;
  }
}
