/* Hero Banner */
.hero {
  height: 8.68rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* 优化：开启硬件加速 */
  will-change: transform;
  transform: translateZ(0);
}

.hero-carousel {
  position: absolute;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  /*opacity: 0;*/
  /* 只过渡 opacity，不过渡全部 */
  transition: opacity 0.5s ease;
  z-index: 0;
  will-change: opacity;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  width: 100%;
  max-width: 12rem;
  padding: 2.4rem 0.4rem 0;
  margin: 0 auto;
}

.hero-sunto {
  font-family: "Arial Bold MT", "Arial Black", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02rem;
  color: transparent;
  -webkit-text-stroke: 0.02rem #cadce8;
  text-stroke: 0.02rem #cadce8;
  margin-top: 0.8rem;
  margin-bottom: 0.2rem;
}

.hero-tagline {
  font-size: 0.3rem;
  line-height: 0.3rem;
  font-weight: normal;
  letter-spacing: normal;
  margin-bottom: 0.45rem;
  opacity: 0.95;
  text-transform: capitalize;
}

.hero-btn {
  display: inline-block;
  width: 1.6rem;
  height: 0.45rem;
  line-height: 0.45rem;
  text-align: center;
  background: transparent;
  border: 0.02rem solid #2c60e2;
  color: #2c60e2;
  text-decoration: none;
  border-radius: 0.225rem;
  font-weight: 600;
  font-size: 0.14rem;
  letter-spacing: 0.01rem;
  /* 只过渡需要的属性 */
  transition: background-color 0.2s ease, color 0.2s ease;
  will-change: background-color, color;
}

.hero-btn:hover {
  background: #2c60e2;
  color: #fff;
}

/* Products Section */
.products-section {
  position: relative;
  z-index: 2;
  padding: 1.4rem 0.8rem 0.5rem;
}

.products-title {
  font-size: 0.36rem;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin: 0.8rem 0 0.5rem 0;
}

.products-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.tabsbtn {
  width: 3rem;
  height: 1rem;
  background-color: transparent;
  border-radius: 0.5rem;
  border: 0.01rem solid #2C60E2;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  /* 优化 hover 性能 */
  transition: background-color 0.2s ease;
  will-change: background-color;
}

.tabsbtn .tabsbtn-title {
  font-size: 0.3rem;
  font-weight: bold;
  color: #2c60e2;
  transition: color 0.2s ease;
}

.tabsbtn .tabsbtn-sub {
  padding: 0.2rem;
  width: 100%;
  box-sizing: border-box;
  background: #FFFFFF;
  box-shadow: 0 0 0.1rem 0 rgba(0, 38, 108, 0.5);
  border-radius: 0.3rem;
  font-weight: normal;
  font-size: 0.16rem;
  color: #2C60E2;
  position: absolute;
  left: 50%;
  top: 1.6rem;
  z-index: 999;
  transform: translate(-50%, -50%);
  opacity: 0;
  text-align: center;
  /* 缩短时间 + 只过渡 opacity */
  transition: opacity 0.15s ease;
  will-change: opacity;
  /* 减少重绘 */
  pointer-events: none;
}

.tabsbtn.active {
  background: #2c60e2;
}

.tabsbtn.active .tabsbtn-title {
  color: #fff;
}

.tabsbtn.active::after {
  content: "";
  position: absolute;
  bottom: -0.12rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 0.12rem solid transparent;
  border-right: 0.12rem solid transparent;
  border-top: 0.12rem solid #2c60e2;
}

.tabsbtn:hover {
  background: #2c60e2;
}

.tabsbtn:hover .tabsbtn-title {
  color: #fff;
}

.tabsbtn:hover::after {
  content: "";
  position: absolute;
  bottom: -0.12rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 0.12rem solid transparent;
  border-right: 0.12rem solid transparent;
  border-top: 0.12rem solid #2c60e2;
}

.tabsbtn:hover .tabsbtn-sub {
  opacity: 1;
}



.productsinfo {
  display: none;
}
/*.productstype .productsinfo:first-child {*/
/*  display: block;*/
/*}*/
.productsinfo.active{
    display: block;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.category-title {
  grid-column: 1 / -1;
  font-size: 0.36rem;
  font-weight: bold;
  color: #2c60e2;
  margin: 0.2rem 0 0.1rem 0;
  padding: 0;
}

.product-card {
  position: relative;
  border-radius: 0.15rem;
  overflow: hidden;
  /* 优化 hover 性能 */
  will-change: transform;
  transform: translateZ(0);
}

.product-name {
  font-size: 0.3rem;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin: 0 0 0.15rem 0;
}

.product-image-container {
  position: relative;
  width: 100%;
  border-radius: 0.15rem;
  overflow: hidden;
}

.product-bg {
  width: 100%;
  display: block;
   opacity: 1;
}
.product-bg-op{
    opacity: 0 !important;
}
.product-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  /* 只过渡 transform，性能最好 */
  transition: transform 0.25s ease;
  will-change: transform;
}

.product-image:hover {
  transform: translate(-50%, -50%) scale(1.2);
}

.product-more-btn {
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #2c60e2;
  color: #fff;
  border: none;
  border-radius: 0.3rem;
  height: 0.6rem;
  width: 1.2rem;
  font-size: 0.18rem;
  justify-content: center;
  cursor: pointer;
  /* 只过渡不透明度 */
  transition: opacity 0.2s ease, visibility 0.2s ease;
  will-change: opacity;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.product-card:hover .product-more-btn {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-more-btn img {
  width: 0.19rem;
  height: 0.19rem;
}

.product-more-btn:hover {
  background: #1a4a9e;
}

.product-more-btn-icon {
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0.1rem 0 rgba(0,38,108,0.5);
  background: transparent;
  color: #2c60e2;
  background-color: #fff;
  border: none;
  outline: none;
  border-radius: 50%;
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  font-size: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  will-change: opacity;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
}

.product-card:hover .product-more-btn-icon {
  opacity: 0;
  visibility: hidden;
}

.product-more-btn-icon img {
  width: 0.16rem;
  height: 0.16rem;
  transition: filter 0.2s ease;
}

.product-more-btn-icon:hover {
  background: #2c60e2;
}

.product-more-btn-icon:hover img {
  filter: brightness(0) invert(1);
}

/* Background Wrapper Section */
.bg-wrapper-section {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.bg-wrapper-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0);
}

/* Sections inside background wrapper */
.bg-wrapper-section section {
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .nav-links {
    gap: 0.2rem;
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    padding: 0.3rem;
    flex-direction: column;
    gap: 0.15rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: #fff;
  }

  header.scrolled .nav-links a {
    color: #fff;
  }

  .qa-btn {
    display: none;
  }

  .menu-toggle {
    display: block;
    color: #fff;
  }

  header.scrolled .menu-toggle {
    color: #262728;
  }

  .solution-footer-content {
    padding-right: 0.2rem;
    padding-left: 0.2rem;
  }

  /* Hero */
  .hero {
    height: 9.2rem;
    padding: 0 0.2rem;
  }

  .hero-sunto {
    font-size: 0.7rem;
    letter-spacing: 0.12rem;
  }

  .hero-tagline {
    /*font-size: 0.15rem;*/
    letter-spacing: 0.05rem;
  }
    .hero-content{
        padding: 3rem 0.4rem 0 !important;
    }
  .products-section {
    padding: 0.4rem 0.2rem;
  }

  .products-tabs {
    flex-wrap: wrap;
    gap:0.2rem 0.1rem;
  }
  .tabsbtn {
    width: 2.2rem;
    height: 0.8rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  /* Contact Section */
  .contact-section-type {
    padding: 0 0.2rem;
  }

  .contact-section {
    flex-direction: column;
    padding: 0.4rem;
    margin-top: 0.5rem;
  }

  .contact-container {
    flex-direction: column;
    gap: 0.3rem;
  }

  .contact-title-col {
    padding-right: 0;
    text-align: center;
  }

  .contact-title {
    font-size: 0.4rem;
    width: 100%;
    text-align: center;
  }

  .contact-arrow-col {
    flex: none;
    padding: 0.2rem 0;
  }

  .contact-arrow {
    width: 0.6rem;
  }

  .contact-form-col {
    padding-left: 0;
    width: 100%;
    gap: 0.2rem;
  }

  .form-row .form-input {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 0.15rem;
  }

  .solution-footer-content {
    padding-right: 0.15rem;
    padding-left: 0.15rem;
  }
}