html, body {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
*:focus {
  outline: none;
}

ul, li {
  list-style: none;
}
ul {
  margin: 0;
  padding: 0;
}
 body ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

body ::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px hsla(0,0%,85.9%,.3);
  border-radius: 5px;
}

body ::-webkit-scrollbar-thumb {
  border-radius: 5px;
  box-shadow: inset 0 0 6px hsla(0,0%,85.9%,.1);
  background-color: rgba(144,147,153,.3)
}

::-webkit-input-placeholder { /* Edge */
  color: #C0C4CC;
}

::placeholder {
  color: #C0C4CC;
}


*{
  box-sizing: border-box;
}
.clear {
  clear: both;
  height: 0;
  overflow: hidden;
}
body {
  position: relative;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.43;
  width: 100%;
  font-family: "微软雅黑","Microsoft YaHei","Arial","serif"!important;
  overflow-x: hidden;
}
body,div,h1, h2, h3, h4, h5, h6,dd,dl,dt,p{
  margin: 0;
}
a{
  color: inherit;
  text-decoration: none;
}
h1, h2, h3, h4 {
  font-weight: normal;
}
.footer{
	background-color: #040404;
	text-align: center;
	padding: 10px 15px;
	color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.cp_back {
  background: linear-gradient(90deg, #FF5582 0%, #FF2889 100%);
  padding: 9px 18px;
  height: 38px;
  border-radius: 30px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.cp_back_text {
  font-family: "OpenSans-Semibold";
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  color: #FFFFFF;
}
/* 产品容器 */
.product-container {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
  background-color: #fff;
  padding: 20px 0;
}

/* 产品图片区域 */
.product-images {

  width: 450px;
}

.main-image {
  width: 100%;
  height: 450px;
  background-color: #f8f4fa;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.thumbnail-images {
  display: flex;
  /* justify-content: space-between; */
  overflow-x: auto;
  padding: 5px 0;

}

.thumbnail {
  width: 82px;
  height: 82px;
  border: 1px solid transparent;
  overflow: hidden;
  cursor: pointer;
  margin-right: 10px;
}
.thumbnail:last-child{
  margin-right: 0;
}
.thumbnail.active {
  border-color: #e91e63;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-images {
  overflow: hidden; /* 隐藏滚动条 */
  width: 100%; /* 确保宽度不超出父容器 */
  position: relative;
}

.thumbnail-images .swiper-wrapper {
  display: flex;
  width: auto; /* 自动调整宽度 */
}

.thumbnail-images .swiper-slide {
  flex-shrink: 0; /* 防止缩略图被压缩 */
  width: auto; /* 根据内容自动调整宽度 */
  max-width: calc((100% - 40px) / 5); /* 确保每行最多显示 5 个缩略图 */
  min-width: 82px;
}
.thumbnail-images .swiper-button-prev{
  height: 100%;
  width: 18px;
  background:rgba(255, 255, 255, 0.3) url(../images/prev.png) no-repeat center left;
  background-size: 100%;
  top: 0;
  margin-top: 0;
  left: 0;
}

.thumbnail-images .swiper-button-next{
  height: 100%;
  background:rgba(255, 255, 255, 0.3) url(../images/next.png) no-repeat center right;
  background-size: 100%;
  width: 18px;
  top: 0;
  margin-top: 0;
  right: 0;
}



.thumbnail-images::-webkit-scrollbar {
  display: none; /* 隐藏滚动条（适用于 Webkit 浏览器） */
}





/* 产品信息区域 */
.product-info {
  flex: 1;
  padding-left: 60px;
}

.product-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #333;
}

.product-description {
  color: #666;
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.5;
}

.product-specs {
  margin-bottom: 15px;
}

.product-specs h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.spec-item {
  display: flex;
  margin-bottom: 10px;
  color: #616161;
  font-size: 14px;
}

.spec-label {
  margin-right: 5px;
}



.product-price {
  font-size: 24px;
  font-weight: 700;
  color: #020817;
  margin-bottom: 20px;
}


/* 产品操作区域 */
.product-actions {
  display: flex;
  flex-direction: column;
}

.quantity-selector {
  display: flex;
  align-items: center;
  max-width: 120px;
  margin-bottom: 15px;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #D8D8D8;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  user-select: none;
  color: #D8D8D8;
  background: none;
  border-radius: 4px;
}

.quantity-btn.active{
  color: #333;
}

.quantity-input {
  width: 32px;
  height: 28px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #020817;
  border: 0;
}

.action-buttons {
  display: flex;
}

.btn-primary {
  background-color: #333;
  color: white;
  border: none;
  padding: 11px 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  margin-right: 12px;
  position: relative;
  display: inline-flex; /* 使用 flex 布局 */
  justify-content: center;
  align-items: center;
}
.btn.loading {
  color: transparent; /* 隐藏按钮文字 */
  pointer-events: none; /* 禁止鼠标事件 */
}
.btn-primary.loading::after{
  content: '';
  position: absolute;
  width: 24px; /* 调整加载动画大小 */
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3); /* 外圈颜色 */
  border-top: 3px solid white; /* 转圈的颜色 */
  border-right: 3px solid white; /* 转圈的颜色 */
  border-bottom: 3px solid white; /* 转圈的颜色 */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1; /* 确保加载动画在按钮上方 */
  pointer-events: none; /* 禁止鼠标事件 */
  opacity: 0.8; /* 使加载动画半透明 */

}
.btn-secondary {
  background-color: white;
  color: #333;
  border: 1px solid #ddd;
  padding: 11px 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  position: relative;
  display: inline-flex; /* 使用 flex 布局 */
  justify-content: center;
  align-items: center;
}


.btn-secondary.loading::after{
  content: '';
  position: absolute;
  width: 24px; /* 调整加载动画大小 */
  height: 24px;
  border: 3px solid rgba(0, 0, 0, 0.3); /* 外圈颜色 */
  border-top: 3px solid black; /* 转圈的颜色 */
  border-right: 3px solid black; /* 转圈的颜色 */
  border-bottom: 3px solid black; /* 转圈的颜色 */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1; /* 确保加载动画在按钮上方 */
  pointer-events: none; /* 禁止鼠标事件 */
  opacity: 0.8; /* 使加载动画半透明 */

}

/* 产品详情区域 */
.product-details {
  background-color: #fff;
  padding-top: 40px;
}

.details-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  padding-bottom: 12px;
}

.details-content {
  color: #616161;
  font-size: 14px;
}

.detail-paragraph {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .product-container {
      flex-direction: column;
      padding: 20px 0;
  }
  
  .product-images, .product-info {
      width: 100%;  
  }
  
  .action-buttons {
      flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
      width: 100%;
  }
  .main-image{
    width: 100%;
    height: 89.34vw;
  }
  .thumbnail {
    width: 17vw;
    height: 17vw;
    border: 1px solid transparent;
    overflow: hidden;
    cursor: pointer;
    margin-right: 2vw;
  }
  .thumbnail-images .swiper-slide {
    flex-shrink: 0; /* 防止缩略图被压缩 */
    /* width: auto; 根据内容自动调整宽度 */
    width: 17vw;
    height: 17vw;
    /* max-width: calc((100% - 40px) / 5); 确保每行最多显示 5 个缩略图 */
    min-width: auto;
    max-width:17vw;
  }


  .product-info{
    padding-left: 0
  }
  .product-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-top: 15px;
  }
  .product-description {
    font-size: 16px;
  }
  .btn-primary{
    margin-bottom: 10px;
  }
}



/* 动画关键帧 */
@keyframes spin {
  0% {
    transform: rotate(0deg) ;
  }
  100% {
    transform: rotate(360deg) ;
  }
}



