@import url("./components/header.css");
@import url("./components/carousel.css");
@import url("./components/company-profile.css");
@import url("./components/products.css");
@import url("./components/news.css");
@import url("./components/home-news.css");
@import url("./components/partners.css");
@import url("./components/footer.css");
@import url("./components/contact-buttons.css");
@import url("./components/about.css");
@import url("./components/honor.css");
@import url("./components/strength.css");
@import url("./components/product-detail.css");
@import url("./components/news-detail.css");
@import url("./components/performance.css");
@import url("./components/performance-detail.css");
@import url("./components/party.css");
@import url("./components/recruitment.css");
@import url("./components/contact.css");
@import url("./components/search-overlay.css");

main {
  width: 100%;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #fff;
  color: #333;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.header:hover,
.header.scrolled {
  background-color: #fff;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0 0 20px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.nav ul {
  display: flex;
  flex-direction: row;
  gap: 25px;
  margin-right: 100px;
}

.nav a {
  padding: 8px 0;
  position: relative;
  font-weight: bold;
  transition: color 0.3s ease;
  z-index: 1001;
}

.nav a:hover {
  color: #e70d02;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #e70d02;
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav li {
  position: relative;
}

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #f2f3f1;
  width: 140px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  display: block;
  padding-top: 2px;
  z-index: 999;
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
}

.submenu ul,
.submenu li {
  display: block;
  width: 100%;
}

.submenu li {
  border-bottom: 1px solid #e5e5e5;
}

.submenu li:last-child {
  border-bottom: 1px solid #e5e5e5;
}

.submenu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  font-weight: 550;
  color: #333;
  font-size: 14px;
  width: 100%;
}

.nav .submenu {
  display: block;
}

.nav .submenu li {
  float: none;
  display: block;
}

.submenu a::after {
  content: ">";
  margin-left: 10px;
  color: #666;
  font-family: "宋体";
  transition: color 0.3s ease;
}

.submenu a:hover::before {
  display: none;
}

.submenu a:hover {
  color: #e70d02;
}

.submenu a:hover::after {
  color: #e70d02;
}

.submenu li:hover {
  border-bottom-color: #e70d02;
}

.submenu::before,
.submenu a::before,
.has-submenu>a::before {
  display: none;
}

.nav .submenu a {
  padding: 12px 15px;
  white-space: nowrap;
}

.nav .submenu a::after {
  content: ">";
  position: static;
  width: auto;
  height: auto;
  background: none;
  transition: color 0.3s ease;
}

.nav>ul>li:nth-child(2) .submenu,
.nav>ul>li:nth-child(3) .submenu,
.nav>ul>li:nth-child(4) .submenu,
.nav>ul>li:nth-child(5) .submenu,
.nav>ul>li:nth-child(6) .submenu {
  left: 50%;
}

.submenu ul {
  background-color: #f2f3f1;
  position: relative;
  z-index: 999;
}

.has-submenu::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 10px;
  background: transparent;
}

@media (max-width: 991.98px) {
  .header-container {
    padding: 0 15px;
  }

  /* 移动端导航样式 - 与header.css兼容 */
  .nav {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    left: auto !important;
    width: 280px !important;
    height: 100vh !important;
    background-color: #fff !important;
    padding: 80px 0 20px 0 !important;
    transform: none !important;
    transition: right 0.3s ease !important;
    overflow-y: auto !important;
    z-index: 1001 !important;
  }

  .nav.show,
  .nav.active {
    right: 0 !important;
    transform: none !important;
  }

  .nav ul,
  .navbar-nav {
    flex-direction: column;
    gap: 0;
    margin-right: 0;
    width: 100%;
    padding: 0 30px;
  }

  .submenu {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: block !important;
    padding: 0 0 0 20px;
    margin: 5px 0;
    background-color: #f8f8f8;
    border-radius: 4px;
  }

  .has-submenu::after {
    display: none;
  }

  .nav-item {
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 20px 0;
    color: #333;
    display: block;
    font-size: 18px;
  }

  .submenu li {
    border-bottom: 1px solid #e5e5e5;
    padding: 8px 0;
  }

  .submenu a {
    padding: 5px 0;
    color: #666;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .submenu a::after {
    content: ">";
    display: block;
    color: #999;
    font-family: "宋体";
    margin-left: 10px;
    font-size: 12px;
  }

  .submenu a:hover {
    color: #e70d02;
  }

  .submenu a:hover::after {
    color: #e70d02;
  }

  .submenu li:hover {
    border-bottom-color: #e70d02;
  }

  .submenu li:last-child {
    border-bottom: none;
  }

  .navbar-toggler {
    display: none !important;
  }

  .menu-icon {
    display: none !important;
  }

  .menu-icon span {
    display: none !important;
  }

  .navbar-toggler.active .menu-icon span:nth-child(1),
  .navbar-toggler.active .menu-icon span:nth-child(2),
  .navbar-toggler.active .menu-icon span:nth-child(3) {
    display: none !important;
  }

  .header.scrolled .menu-icon span,
  .header:hover .menu-icon span {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .navbar-toggler {
    display: none;
  }

  .nav {
    display: block !important;
  }

  .submenu {
    padding-left: 0 !important;
  }
}

.home-swiper-button {
  position: absolute;
  right: 0;
  max-width: 100px;
  width: 100%;
  bottom: 40px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.home-swiper-button .home-swiper-button-prev,
.home-swiper-button .home-swiper-button-next {
  border: 2px solid #fff;
  color: #fff;
  padding: 20px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  position: static;
}

.home-swiper-button .swiper-button-next::after,
.home-swiper-button .swiper-button-prev::after {
  font-size: 16px;
  font-weight: 600;
}

.home-swiper-button .swiper-button-next:hover,
.home-swiper-button .swiper-button-prev:hover {
  background-color: #e70d02;
  transform: scale(1);
}

.home-swiper-pagination {
  position: absolute;
  right: 50px;
  top: 50%;
}

.home-swiper-pagination .swiper-pagination-bullet {
  background-color: #633838;
  border-radius: 15px;
  margin: 3px 0 !important;
  width: 10px;
  height: 10px;
  transition: all 0.3s ease;
}

.home-swiper-pagination .swiper-pagination-bullet:hover {
  border-radius: 15px;
  height: 15px;
}

.home-swiper-pagination .swiper-pagination-bullet-active {
  height: 30px;
}

.explore-btn {
  position: relative;
  z-index: 2;
}