/*------------------------start---------------------------------------------------------------------------*/
/*--第二部分bannerl轮播图部分开始 */
.content-banner {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.carousel-container {
  width: 100%;
  height: 66vh;
  overflow: hidden;
  position: relative;
}
.carousel-item {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}
.carousel-item.active {
  opacity: 1;
  z-index: 2;
}
.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  text-shadow: 2px 2px 2px #ededed;
  z-index: 3;
}
.carousel-text h2 {
  font-size: 2.2em;
  font-weight: 600;
  margin-bottom: 1em;
}
.carousel-text p {
  font-size: 1.2em;
  max-width: 40em;
  margin: 0 auto;
}
.carousel-btn {
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  color: #fafafa;
  position: absolute;
  top: 50%!important;
  transform: translateY(-50%);
  font-size: 1.4em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 4;
}
.carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.6);
}
.carousel-container .prev-btn {
  left: 1.5em;
}
.carousel-container .next-btn {
  right: 1.5em;
}
/* 指示器改为直线 - 核心修改 */
.carousel-indicators {
  position: absolute;
  bottom: 2em;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6em;
  z-index: 4;
  width: 30%;
  /* 大屏占屏幕30% */
}
.indicator {
  flex: 1;
  /* 三个直线均分父容器宽度 */
  height: 0.2em;
  /* 直线高度 */
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 0;
  /* 取消圆角，纯直线 */
}
.indicator.active {
  background-color: #ff3300;
}
@media (max-width: 768px) {
  .carousel-container {
    width: 95%;
    margin: 0 auto;
    height: 20em;
  }
  .carousel-text h2 {
    font-size: 1.5em;
  }
  .carousel-text p {
    font-size: 0.9em;
  }
  .carousel-indicators {
    width: 60%;
    /* 小屏占屏幕60% */
  }
}
/*--第二部分banner轮播图部分结束 */
/*--第三部分产品展示--选项卡部分 */
.content-tab {
  margin-top: 0.5em;
  width: 100%;
  position: relative;
}
.products-tab {
  width: 100%;
}
.products-tab h3 {
  line-height: 22vh;
  text-align: center;
  letter-spacing: 1px;
  color: #607574;
  font-weight: 500;
  box-shadow: 1px 1px 1px #E2E8E9;
  position: relative;
}
.products-tab .line {
  width: 6em;
  height: 1px;
  background: #607574;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 65%;
}
.content-tab .tab {
  width: 100%;
  height: 3.5em;
  border-bottom: 1px solid #E2E8E9;
}
.tab-ul {
  width: 60%;
  margin: 0 auto;
  display: flex;
}
.tab-list {
  flex: 1;
  text-align: center;
  line-height: 3.5em;
  color: #607574;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
}
.tab-list:hover {
  border-bottom: 4px solid #DAB88B;
}
.tab-list.default {
  border-bottom: 4px solid #ff3300;
}
/*--第三部分产品展示--选项卡部分结束 */
/*-------------------------end--------------------------------------------------------------------------*/
/*--第三部分产品展示--产品图片列表部分 */
/* 列表外层容器：用于定位箭头，宽度100%适配屏幕 */
.content-product {
  width: 100%;
  margin-top: 3em;
  max-width: 100vw;
  /* 限制最大宽度为屏幕宽度 */
  /* 防止箭头超出屏幕 */
  padding: 0 1rem;
  font-weight: normal;
  position: relative;
}
/* 箭头样式 */
.content-product .arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prev-btn-product {
  left: 1rem;
  /* 调整位置避免贴边 */
}
.next-btn-product {
  right: 1rem;
}
.product-container {
  width: 100%;
  overflow: hidden;
}
/* 商品列表容器核心样式 */
/* 列表默认状态：不拦截滚轮，让滚轮作用于窗口 */
#product-list {
  display: flex;
  overflow-x: auto;
  cursor: grab;
  gap: 20px;
  /* 商品间距，所有屏幕下保持一致 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* 隐藏滚动条 */
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: auto !important;
  scroll-behavior: auto !important;
  overscroll-behavior-x: contain();
  overscroll-behavior-y: none;
  pointer-events: auto;
}
/* 禁用所有过渡效果 */
#product-list,
#product-list * {
  transition: none !important;
  animation: none !important;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
/* 拖动时的样式优化 */
#product-list.dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
#product-list::-webkit-scrollbar {
  display: none;
}
/* 单个商品基础样式：flex-shrink:0 防止被挤压 */
#product-list .product {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* 计算宽度：(100% - 间距总和) / 显示数量 */
  /* 全屏(>1024px)：显示6个，间距5个×20px=100px */
  width: calc((100% - 100px) / 6);
}
.product a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.product a .hearts {
  font-size: 1.2em;
  color: #DAB88B;
  position: absolute;
  right: 0.5em;
  top: 0.2em;
  z-index: 10;
}
.product a .size {
  width: 100%;
  height: 3em;
  opacity: 0;
  position: absolute;
  left: 0;
  top: 12em;
  z-index: 9;
  visibility: hidden;
  transition: all 0.35s ease;
}
.product a .size-box {
  width: 100%;
  height: 3em;
  padding: 0.5em 0.2em;
  box-shadow: 1px 1px 1px solid #DAB88B;
  background: #f4f4f4;
  display: flex;
  gap: 0.2em;
}
.product a .size-box li {
  flex: 1;
  height: 2em;
  line-height: 2em;
  font-size: 0.6em;
  color: #607574;
  text-align: center;
}
.product a .size-box li:first-child {
  color: #DAB88B;
}
.product a:hover .hearts {
  color: #607574;
}
.product a:hover .size {
  opacity: 1;
  visibility: visible;
}
.product a .size-box li:hover {
  border-bottom: 3px solid #DAB88B;
}
.product a img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.product a img:hover {
  transform: scale(1.05);
}
.product a p {
  margin-top: 0.4em;
  width: 100%;
  padding: 0 2.5em 0 0.5em;
  line-height: 1.2em;
  font-size: 0.9em;
  color: #607574;
}
/* 媒体查询1：屏幕宽度≤1023px,大于992px时，显示4个商品 */
@media (max-width: 1023px) and (min-width: 992px) {
  .tab-ul {
    width: 75%;
  }
  #product-list .product {
    width: calc((100% - 60px) / 4);
    /* 4个商品，间距3个×20px=60px */
  }
}
/* 媒体查询2：屏幕宽度>=768px，显示3个商品 */
@media (max-width: 991px) and (min-width: 768px) {
  .tab-ul {
    width: 85%;
  }
  #product-list .product {
    width: calc((100% - 40px) / 3);
    /* 3个商品，间距2个×20px=40px */
  }
}
/* 媒体查询3：屏幕宽度430px时，显示2个商品 */
@media (max-width: 767px) and (min-width: 431px) {
  .tab-ul {
    width: 90%;
  }
  #product-list .product {
    width: calc((100% - 20px) / 2);
    /* 3个商品，间距2个×20px=40px */
  }
  .product a p {
    font-size: 0.9em;
    padding-right: 1.5em;
    margin-top: 0.8em;
  }
}
/* 媒体查询4：屏幕宽度430px时，显示1个商品 */
@media (max-width: 430px) {
  .tab-ul {
    width: 100%;
  }
  #product-list .product {
    width: calc((100% - 0px) / 1);
    /* 3个商品，间距2个×20px=40px */
  }
  .product a p {
    font-size: 0.85em;
    padding-right: 1em;
    line-height: 1em;
  }
}
/*--产品大图部分结束*/
/*---------------------------end------------------------------------------------------------------------*/
/*-------------------------start--------------------------------------------------------------------------*/
/*--第五部分产品上新部分开始*/
.content-newin {
  width: 100%;
  margin-top: 1em;
  padding: 1em;
}
.largePic-newin {
  width: 80%;
  height: 80vh;
  margin: 0 auto;
  display: flex;
  gap: 1em;
}
.largePic-newin-item {
  width: calc((100% - 1em) / 2);
}
.largePic-newin-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.largePic-newin-item a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.largePic-newin-item a span {
  display: block;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  height: 2em;
  color: #fff;
  line-height: 2em;
  letter-spacing: 2px;
  font-weight: 700;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 85%;
  border-bottom: 2px solid #fff;
  transition: border-color 0.3s ease;
}
.largePic-newin-item a span:hover {
  border-bottom: 3px solid #ff3300;
}
/* 媒体查询1：屏幕宽度≤1023px，显示2个商品 */
@media (max-width: 1023px) {
  /* 全屏(<1023px)：显示2个，间距1个×20px=100px */
  .largePic-newin {
    width: 100%;
  }
}
/*--第四部分产品大图上新部分结束*/
/*---------------------------end------------------------------------------------------------------------*/
/*-------------------------start--------------------------------------------------------------------------*/
/*--第六部分：客户反馈部分开始*/
.content-feedback {
  margin-top: 2em;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-weight: normal;
  border-bottom: 1px solid #DAB88B;
}
.feedback-box {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}
.content-feedback h2 {
  width: 100%;
  line-height: 3em;
  letter-spacing: 3px;
  text-align: center;
  position: relative;
}
.content-feedback h2 span {
  width: 4em;
  height: 2px;
  background: #003300;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 90%;
}
.content-feedback p {
  margin: 3em 0;
  width: 100%;
  font-size: 1.2em;
  text-align: center;
}
.feedback-tab {
  width: 65%;
  height: 2.5em;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.feedback-tab-list {
  width: calc(100% / 4);
  line-height: 2.2em;
  height: 2.2em;
  letter-spacing: 1px;
  text-align: center;
  font-size: 1.2em;
  cursor: pointer;
}
.feedback-tab-list.active {
  border-bottom: 4px solid #DAB88B;
}
.feedback-tab-list:not(.active):hover {
  border-bottom: 4px solid #ff3300;
}
/* 媒体查询1：屏幕宽度≤1023px，显示2个商品 */
@media (max-width: 1023px) {
  /* 全屏(<1023px)：显示2个，间距1个×20px=100px */
  .content-feedback p {
    width: 90%;
    height: auto;
    text-align: center;
  }
  .feedback-tab {
    width: 100%;
  }
}
/*--客户反反馈部分结束-end*/
/*---------------------------end------------------------------------------------------------------------*/
/*-------------------------start--------------------------------------------------------------------------*/
/*客户反馈部分开始*/
.feedback-pic {
  margin-top: 3em;
  width: 100%;
}
.feedback-pic-box {
  width: 100%;
  display: none;
}
.feedback-pic-box.active {
  display: block;
}
.pic-ul {
  margin: 2em auto;
  padding: 1em;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2em 1em;
}
.pic-ul li img {
  width: 100%;
  height: 16em;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.pic-ul li img.show {
  opacity: 1;
}
.pic-ul li img:hover {
  transform: scale(1.05);
}
.load-btn {
  display: block;
  margin: 2em auto;
  padding: 12px 36px;
  background-color: #607574;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}
.load-btn:hover {
  background: #DAB88B;
}
/* 加载按钮隐藏样式（核心，加!important防止覆盖） */
.load-btn.hidden {
  display: none !important;
}
/* 中等屏幕：小于 992px，一行 4 张 */
@media (max-width: 992px) {
  .pic-ul {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* 小屏幕：小于 768px，一行 3 张 */
@media (max-width: 768px) {
  .pic-ul {
    grid-template-columns: repeat(3, 1fr);
  }
}
/*客户反反馈==图片部分结束-start*/
/*---------------------------end------------------------------------------------------------------------*/
