
/* 轮播 */
.carousel-item {
  position: relative;
  height: 70vh;
  overflow: hidden;
}
.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.overlay-wrapper {
  position: absolute;
  top: 35%;
  left: 45%;
  width: 100%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.overlay-img {
  max-width: 90%;
  height: auto;
  transition: opacity 1s ease;
  display: block;
  margin: 0 auto 1rem auto;
}

.more-btn a {
    display: inline-block;
    padding: 0.3rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    color: #0083c1;
    text-decoration: none;
    border-radius: 2rem;
    transition: opacity 1s ease;
}

/* 动画淡入 */
.carousel-item .overlay-img,
.carousel-item .more-btn a {
  opacity: 0;
}
.carousel-item.active .overlay-img,
.carousel-item.active .more-btn a {
  opacity: 1;
}


@media (max-width: 767.98px) {
  .carousel-item:nth-child(2) .overlay-img {
    width: 100% !important;
  }
}





    

/* 产品滚动区域 */
    .homepro {
      display: flex;
      height: 650px; /* 限制整体高度 */
      width: 100%;
      overflow: hidden;
      padding:5rem 0;
    }

    /* ===== 左侧菜单栏 ===== */
    .sidebar {
      width: 25%;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      padding: 10px;
    }

    .sidebar-controls {
      text-align: center;
      height: 30px;
    }

    .arrow-vert {
      font-size: 20px;
      cursor: pointer;
      width: 30px;
      height: 30px;
      line-height: 30px;
      user-select: none;
      margin: auto;
    }

    .arrow-vert.hidden {
      /* visibility: hidden; */
    }

    .menu-wrapper {
      flex: 1;
      overflow: hidden;
      position: relative;
      margin: 10px 0;
    }

    .menu-scroll {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      transition: transform 0.3s ease;
    }

    .menu-item {
      padding: 12px 10px;
      cursor: pointer;
      color: #666;
      transition: 0.3s;
    }
    .pcnav .menu-item{
      padding: 0;
    }
    .menu-item.active,
    .menu-item:hover {
      color: #0580b7;
      font-weight: bold;
    }

    /* ===== 右侧内容区域 ===== */
    .content-area {
      flex: 1;
      display: flex;
      flex-direction: column;
      padding: 20px 40px;
      overflow: hidden;
    }

    .products-container {
      flex: 1;
      overflow: hidden;
      position: relative;
    }

    .product-list {
      display: flex;
      flex-wrap: nowrap;
      transition: transform 0.3s ease-in-out;
    }

    .product-card {
      flex: 0 0 33.33%;
      padding: 10px;
      text-align: center;
      box-sizing: border-box;
    }

    @media (max-width: 640px) {
      .product-card {
        flex: 0 0 100%;
      }
    }

    .product-card img {
      max-width: 100%;
      height: auto;
    }
    .product-card p{
        display: block;
        background-color: #fff;
        padding: 2rem 0;
    }
    .nav-arrows {
      text-align: center;
      padding: 10px 0;
    }

    .arrow-btnc {
      display: inline-block;
      margin: 0 15px;
      width: 40px;
      height: 40px;
      line-height: 40px;
      border-radius: 50%;
      border: 1px solid #000;
      text-align: center;
      cursor: pointer;
      user-select: none;
    }

    .arrow-btnc.hidden {
      visibility: hidden;
    }

.product-card a {
  display: block;
  overflow: hidden;
}

.product-card-img {
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease; /* 添加动画平滑过渡 */
}

.product-card a:hover .product-card-img img {
  transform: scale(1.2); /* 鼠标悬停时放大 */
}
    /* 产品滚动结束 */


    /* soultion滚动 */
        .carousel-container {
      position: relative;
        overflow-x: visible;
        overflow-y: hidden;
    }

.carousel-track {
  display: flex;
  overflow-x: auto;               /* ✨允许横向滚动 */
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  touch-action: pan-x;            /* ✨增强触摸体验 */
}

    .carousel-track::-webkit-scrollbar {
      display: none; /* 隐藏滚动条 */
    }
    .carousel-track p{
        margin-top: 20px;
        padding: 0 2rem;
        font-size: .9rem;
    }
    .carousel-track img{
        max-width: 45%;
    }

    .carousel-item-custom {
      flex: 0 0 25%;
      max-width: 25%;
      padding: 10px;
      box-sizing: border-box;
      scroll-snap-align: start;
      border-right: 1px solid rgba(255, 255, 255, 0.3);
      border-left: 1px solid rgba(255, 255, 255, 0.3);
    }

    @media (max-width: 992px) {
      .carousel-item-custom {
        flex: 0 0 33.33%;
        max-width: 33.33%;
      }
    }

    @media (max-width: 768px) {
      .carousel-item-custom {
        flex: 0 0 50%;
        max-width: 50%;
      }
    }

    @media (max-width: 576px) {
      .carousel-item-custom {
        flex: 0 0 100%;
        max-width: 100%;
      }
    }

.solution .container {
  position: relative; /* 作为定位父元素 */
}

/* 箭头按钮公共样式 */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  border: 1px solid transparent; /* 默认无边框或透明边框 */
  text-align: center;
  cursor: pointer;
  user-select: none;
  
  color: white;             /* 箭头白色 */
  background-color: transparent;  /* 默认无背景 */
  transition: background-color 0.3s ease, border-color 0.3s ease;
  z-index: 1000;
  box-shadow: none;         /* 默认无阴影 */
  
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
}

.arrow-btn:hover {
  background-color: rgba(255, 255, 255, 0.3); /* 悬停出现半透明白底 */
  border-color: rgba(255, 255, 255, 0.5); /* 悬停显示淡白边框 */
  box-shadow: 0 0 6px rgba(255,255,255,0.5);
}

/* 左箭头放在container左外侧 */
.arrow-left {
  left: -60px; /* 负值保证超出container左边 */
}

/* 右箭头放在container右外侧 */
.arrow-right {
  right: -60px; /* 负值保证超出container右边 */
}





    @media (max-width: 768px) {
      .arrow-btn {
        display: none;
      }
    }

    /* soultion滚动结束 */


/* 右侧浮动 */

.floating-bar {
  position: fixed;
  right: 1rem;
  top: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%);
  display: flex;
  border-radius: 10rem;
  flex-direction: column;
  align-items: flex-end;
  z-index: 9999;
  padding: .5rem 0;
}
.floating-bar i{
    font-size:1.5rem;
}

.floating-item {
  position: relative;
  display: block;
  padding: 10px 10px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
  cursor: pointer;
  margin: 0 5px;
}

.floating-item .icon {
  font-size: 20px;
  color: #fff;
}

.floating-item .tooltip {
  position: absolute;
  right: 50px;
  white-space: nowrap;
  background-color: #0083c1;
  color: #fff;
  padding: 8px 12px;
  border-radius: 25px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: all 0.3s ease;
  font-size: 14px;
}

.floating-item:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* 返回顶部按钮样式 */
.floating-item.to-top {
  background-color: #0083c1;
}

/* 右侧浮动 */



/* 产品多图 */
/* 产品多图 */
      /* 主容器 */
        .prod-gallery {
            max-width: 1000px;
            margin: 0 auto;
            background-color: white;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.1);
        }
        
        /* 大图展示区域 */
        .prod-gallery-main {
            position: relative;
            width: 100%;
            /* height: 500px; */
            margin-bottom: 20px;
            overflow: hidden;
            border-radius: 8px;
            background-color: #f9f9f9;
            cursor: zoom-in;
        }
        
        .prod-gallery-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.3s ease;
        }
        
        .prod-gallery-zoom {
            position: absolute;
            width: 150px;
            height: 150px;
            border: 2px solid rgba(255,255,255,0.8);
            border-radius: 50%;
            background-color: rgba(255,255,255,0.1);
            pointer-events: none;
            display: none;
            box-shadow: 0 0 10px rgba(0,0,0,0.2);
        }
        
        /* 缩略图容器 */
        .prod-gallery-thumbs {
            position: relative;
            width: 100%;
            overflow: hidden;
            padding: 0 50px; /* 为左右按钮预留空间 */
        }
        
        .prod-gallery-thumbs-scroll {
            display: flex;
            width: auto; /* 确保内容决定宽度 */
            transition: transform 0.3s ease;
            padding: 10px 0;
        }
        
        .prod-gallery-thumb {
            flex: 0 0 auto; /* 防止缩略图被压缩 */
            width: 80px;
            height: 80px;
            margin: 0 8px;
            cursor: pointer;
            border-radius: 4px;
            overflow: hidden;
            opacity: 0.7;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        
        .prod-gallery-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        .prod-gallery-thumb:hover, .prod-gallery-thumb.active {
            opacity: 1;
            transform: scale(1.05);
            border-color: #2c3e50;
        }
        
        /* 滑动控制按钮 */
        .prod-gallery-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background-color: rgba(255,255,255,0.9);
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 18px;
            color: #333;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transition: all 0.2s ease;
            z-index: 10;
            padding: 0;
            /* 确保按钮可点击 */
            -webkit-appearance: none;
            appearance: none;
        }
        
        .prod-gallery-btn:hover {
            background-color: white;
            transform: translateY(-50%) scale(1.1);
        }
        
        .prod-gallery-btn.prev {
            left: 10px;
        }
        
        .prod-gallery-btn.next {
            right: 10px;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .prod-gallery-main {
                height: 350px;
            }
            
            .prod-gallery-thumb {
                width: 100px;
                height: 80px;
            }
            
            .prod-gallery-zoom {
                width: 120px;
                height: 120px;
            }
        }
        
        @media (max-width: 480px) {
            .prod-gallery-main {
                height: 250px;
            }
            
            .prod-gallery-thumb {
                width: 80px;
                height: 60px;
                margin: 0 5px;
            }
            
            .prod-gallery-zoom {
                width: 100px;
                height: 100px;
            }
            
            .prod-gallery-btn {
                width: 30px;
                height: 30px;
                font-size: 14px;
            }
            
            .prod-gallery-thumbs {
                padding: 0 40px;
            }
        }