/* 第三个板块 */
.show-photos-title {
  font-size: 1em;
  font-weight: bold;
  margin: 20px 0;
  color: #000;
}

.show-photos-buttons-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 50px;
  color: #000;
}

.show-photos-buttons-left, .show-photos-buttons-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;  /* 初始隐藏 */
  transition: opacity 0.3s ease;  /* 平滑过渡 */
  cursor: pointer;
}

.show-photos-buttons-left {
  left: 0;
  z-index: 99999;
}

.show-photos-buttons-right {
  right: 0;
}

.show-photos-buttons-left img, .show-photos-buttons-right img {
  width: 30px;
  height: 30px;
}

.show-photos-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  max-width: 1600px;
  margin: 20px auto;  
}

.show-photos-buttons {
  display: flex;
  flex-wrap: nowrap;
  margin: 10px;
  overflow-x: auto;
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none;  /* For Internet Explorer and Edge */
}

.show-photos-buttons::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Opera */
}

.show-photos-tab-button {
  background-color: #fff;
  border: none;
  border-radius: 0;
  color: black;
  font-size: 1em;
  padding: 10px 55px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 calc(20% - 10px); /* 默认情况，显示5个按钮 */
  transition: background-color 0.3s, color 0.3s;
}

.show-photos-tab-button:hover, .show-photos-tab-button.active {
  background-color: rgb(51, 51, 51);
  color: #fff;
}

.show-photos-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-items: center;
  margin: 20px;
  max-width: 1600px;
  justify-items: center;
  margin: 20px auto;
}

.show-photos-container img {
  width: 100%;
  transition: transform 0.3s;
}

.show-photos-container .large {
  grid-column: span 2;
  grid-row: span 2;
  max-width: 100%;
}

.show-photos-container img:first-child {
  max-height: 987px !important;
}
.show-photos-container img:not(:first-child) {
  max-height: 481px !important;
}
.show-photos-container .small {
  max-width: 100%;
}

.show-photos-container img:hover {
  transform: scale(1.05);
}
@media (max-width: 1600px) {
  .show-photos-tab-button{
      padding: 10px 55px;
  }
  .show-photos-buttons-wrapper{
      padding:0px;
  }
}

/* 设置桌面端显示的按钮数量 */
@media (min-width: 1024px) {
  .show-photos-tabs {
    padding: 0 20px;
  }

  .show-photos-title {
    font-size: 2em;
  }

  .show-photos-buttons {
    flex-wrap: nowrap;
    justify-content: center;
  }

  .show-photos-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}


@media (max-width: 1024px) {
  .show-photos-buttons-wrapper {
    margin: 0px 20px;
  }
  .show-photos-tab-button {
    padding: 10px 18px;
  }
  .show-photos-tabs {
    flex-wrap: wrap;
    justify-content: center;
}

.show-photos-container .large {

  width: auto;  /* 确保小图的宽度 */
  height: auto; /* 确保小图的高度 */
}

.show-photos-container .small {
  width: auto;  /* 确保小图的宽度 */
  height: auto; /* 确保小图的高度 */
}
}

/* 设置平板端显示的按钮数量 */
@media (max-width: 1023px) and (min-width: 768px) {
  .show-photos-tab-button {
    flex: 0 0 calc(33.33% - 10px); /* Tablet: 3 buttons */
  }
  .show-photos-container .large {

    width: auto;  /* 确保小图的宽度 */
    height: auto; /* 确保小图的高度 */
  }
  
  .show-photos-container .small {
    width: auto;  /* 确保小图的宽度 */
    height: auto; /* 确保小图的高度 */
  }
}

@media (max-width: 920px) {
  .show-photos-tabs {
    display: inherit;
  }
  .show-photos-container .large {

    width: auto;  /* 确保小图的宽度 */
    height: auto; /* 确保小图的高度 */
  }
  
  .show-photos-container .small {
    width: auto;  /* 确保小图的宽度 */
    height: auto; /* 确保小图的高度 */
  }
}

/* 设置移动端显示的按钮数量 */
@media (max-width: 767px) {
  .show-photos-tab-button {
    flex: 0 0 100%; /* Mobile: 1 button */
  }
  .show-photos-container .large {

    width: auto;  /* 确保小图的宽度 */
    height: auto; /* 确保小图的高度 */
  }
  
  .show-photos-container .small {
    width: auto;  /* 确保小图的宽度 */
    height: auto; /* 确保小图的高度 */
  }
}

/* 衣服轮播图 */
@media (max-width: 768px) {
  .show-photos-tabs {
    /* flex-direction: row;
    justify-content: space-between; */
    /* flex-direction: column; */
    padding: 0 20px;
    /* display: inherit; */
  }
  .show-photos-title{
    font-size: 2em;
  }
  .show-photos-buttons {
    flex-wrap: nowrap;
    justify-content: center;
  }

  .show-photos-container {
    /* grid-template-columns: repeat(4, 1fr); */
    gap: 20px;
  }
  .show-photos-container .large {
    grid-column: span 2;
    grid-row: span 2;
    max-width: 100%;
  }
  .show-photos-container .large {

    width: auto;  /* 确保小图的宽度 */
    height: auto; /* 确保小图的高度 */
  }
  
  .show-photos-container .small {
    width: auto;  /* 确保小图的宽度 */
    height: auto; /* 确保小图的高度 */
  }
}

/* 三个卡片 */
.container-card {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-image: url("../../img/material.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
}

.Fourth-container {
  display: flex;
  transition: transform 0.5s ease;
}

.Fourth-plate {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex: 0 0 calc(33.3333% - 20px);
  margin: 0 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.Fourth-plate:hover {
  transform: scale(1.03);
}

.image-section {
  width: 100%;
  overflow: hidden;
  background-color: #e0e0e0;
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-section {
  padding: 20px;
  text-align: left;
}

.text-section h2 {
  margin: 0;
  font-size: 3rem;
  font-weight:700;
  color:rgb(51, 51, 51);
  font-family: 'Montserrat';
  margin-left: 20px;
}

.text-section ul {
  padding: 0;
  margin-top: 10px;
  list-style: disc;
}

.text-section ul li {
  font-size:1.2rem;
  color: rgb(102, 102, 102);
  margin-bottom: 8px;
  font-family: 'Montserrat';
  margin-left: 50px;
}

/* Navigation buttons */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 40px; /* 根据需要调整大小 */
  height: 80px; /* 根据需要调整大小 */
  cursor: pointer;
  background-repeat: no-repeat !important;
  background-position: center;
  z-index: 1000;
  background: transparent;  /* 去掉背景 */
  outline: none !important;  /* 去掉点击后的边框 */
}
.container-card-swiper {
  padding: 0 10px;
}

.prev {
  left: 40px;
  background-image: url("../../img/Path2.png");
}

.next {
  right: 25px;
  background-image: url("../../img/Path.png");
}

/* 平板端和移动端调整 */
@media (max-width: 1024px) {
  .Fourth-plate {
    flex: 0 0 calc(50% - 20px); /* 平板显示2列 */
  }
  .prev {
    left: 10px;
  }
  .next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .Fourth-plate {
    flex: 0 0 calc(100% - 20px); /* 手机显示1列 */
  }
  .text-section h2{
    font-size: 2rem;
  }
  .text-section ul li{
    font-size: 1.2rem;
  }
  .prev {
    left: 10px;
  }
  .next {
    right: 10px;
  }
}