.awards_banner .banner_box{
  color: #D8241E;
}

/* Tab导航样式 */
.tab {
  width: 100%;
  padding: 10px 0;
}

.tab-content {
  margin-top: 20px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tab-nav li {
  margin-right: 40px;
  position: relative;
  display: block;
  font-size: 18px;
  color: #333;
  text-decoration: none;
  padding: 10px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-nav li:last-child {
  margin-right: 0;
}

.tab-nav li.active {
  color: #982017;
  font-weight: bold;
}

.tab-nav li.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #982017;
}

.tab-nav li a:hover {
  color: #982017;
}



/* 图片查看弹窗样式 - 新设计 */
.modal-gallery {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-gallery.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  top: 5%;
  margin: 0 auto;
  max-width: 1000px;
  max-height: 842px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.award_content {
  max-width: 900px;
}

.modal-body {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  max-height: 650px;
  width: 920px;
}

.close-modal {
  position: absolute;
  top: -50px;
  right: -50px;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1010;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.close-modal:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.gallery-container {
  display: flex;
  justify-content: space-between;
  border-radius: 20px;
}

/* 客户见证内容的垂直布局 */
.gallery-container.testimonial-layout {
  display: block;
  max-height: 100%;
  height: 100%;
}

.award_img_contaienr {
  width: 488px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.award_img_contaienr img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* 客户见证内容的图片容器样式 */
.gallery-container.testimonial-layout .gallery-image-container {
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
  display: flex;
  justify-content: center;
  position: relative;
}

.gallery-container.testimonial-layout .gallery-image-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 0;
  object-fit: contain;
}



.gallery-text-container {
  /* width: 350px; */
  flex: 1;
  height: 100%;
  padding: 40px;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 8px;
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  overflow-y: auto;
  max-height: 650px;
  display: flex;
  flex-direction: column;
}

.gallery-text-container .content-wrapper {
  margin: 10px 0;
  overflow-y: auto !important;
  max-height: 400px;
  height: auto;
  display: block;
  position: relative;
  flex: 1;
  min-height: 100px;
}

.gallery-text-container p {
  margin: 10px 0;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
}

/* 客户见证内容的文字容器样式 */
.gallery-container.testimonial-layout .gallery-text-container {
  width: 100%;
  max-height: 40vh;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
}

.galley_tag_wrap {
  text-align: right;
  margin-bottom: 18px;
  padding-right: 10px;
}
.gallery_tag {
  height: 34px;
  padding: 0 26px;
  font-size: 18px;
  border-radius: 30px;
  line-height: 34px;
  display: inline-block;
  background-color: #D8281C;
  color: #fff;
}
.gallery-text-container h3 {
  font-size: 20px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 30px;
  padding-bottom: 10px;
  text-wrap: wrap;
}

.gallery-text-container p {
  margin-bottom: 12px;
  text-wrap: wrap;
}

.gallery-text-container .text-highlight {
  color: #e74c3c;
  font-weight: bold;
}

.gallery-prev {
  left: 10px;
}
.gallery-next {
  right: 10px;
}
.gallery-prev,
.gallery-next {
  position: absolute;
  background-color: rgba(64, 64, 64, 0.25);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto; /* 恢复按钮的点击事件 */
  opacity: 0.9;
  z-index: 20; /* 确保按钮在最上层 */
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
}



.gallery-prev:hover,
.gallery-next:hover {
  background-color: rgba(64, 64, 64, 0.8);
  opacity: 1;
}

.gallery-caption {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 16px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 30%;
  overflow-y: auto;
  transition: transform 0.3s ease;
  transform: translateY(0);
}


/* 瀑布流锦旗展示区域 - 修改为与testimonials_list一致 */
.awards_list {
  column-count: 3;  /* 保持column-count布局 */
  column-gap: 144px; /* 列间距 */
  margin-top: 30px;
}

.awards-item {
  break-inside: avoid; /* 防止项目被分割到不同列 */
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px; /* 添加与testimonial-item一致的padding */
}

.awards-item:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.awards-img {
  width: 100%;
  overflow: hidden;
  justify-content: center;
  
}

.awards-img img {
  width: 100%;
  /* height: 558px; */
  display: block;
  transition: transform 0.5s ease;
}

.awards-item:hover .awards-img img {
  transform: scale(1.05);
}

.awards-text {
  padding: 15px 10px 0 10px; /* 修改padding，顶部留间距，左右不需要因为item已有padding */
  margin: 0;
  font-size: 18px;
  color: #333;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
  font-weight: 600;
  /* 移除高度限制和文本截断相关样式，使其与testimonial-text一致 */
}

/* 客户见证样式 */
.testimonials_list {
  column-count: 6;
  column-gap: 48px;
  margin-top: 30px;
}

.testimonial-item {
  break-inside: avoid;
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.testimonial-item:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.testimonial-img {
  width: 100%;
  overflow: hidden;
}

.testimonial-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.testimonial-item:hover .testimonial-img img {
  transform: scale(1.05);
}

.testimonial-text {
  padding: 16px;
  margin: 0;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  font-weight: 600;
}

.testimonial-author {
  font-size: 13px;
  color: #666;
  text-align: right;
  font-weight: bold;
  padding: 0 15px 15px;
}


/* Loading 效果样式 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  width: 100%;
  height: 60px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(152, 32, 23, 0.1);
  border-radius: 50%;
  border-top: 4px solid #982017;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  margin-left: 10px;
  font-size: 14px;
  color: #982017;
}

/* 标签 */
.galley_lab_wrap{
  text-align: left;
  margin-top: 18px;
}
.gallery_lab{
  height: 34px;
  padding: 0 26px;
  font-size: 16px;
  border-radius: 8px;
  line-height: 34px;
  display: inline-block;
  border: 1px solid #ebdada;
  color: rgb(81, 90, 110);
  margin-right: 10px;
}

/* 响应式调整 */
@media screen and (max-width: 1024px) {
  .banner_subtitle{
    text-indent: 0;
  }
  
  .gallery-container {
    flex-direction: column;
    padding: 15px;
    height: auto;
  }
  
  .gallery-image-container {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
  }
  
  .gallery-text-container {
    width: 100%;
    height: 35%;
    padding: 15px;
  }
  .awards_list,
  .testimonials_list {
    column-count: 2; /* 手机设备显示1列 */
    margin-top: 9px;
    column-gap: 16px;
  }
  
  .awards-text,
  .testimonial-content p {
    font-size: 14px;
    font-weight: 400;
  }
  
  .testimonial-text{
    font-weight: 400;
    font-size: 14px;
  }

  .testimonial-author {
    font-size: 11px;
  }
  
  .gallery-container {
    padding: 10px;
  }
  
  .gallery-text-container {
    padding: 10px;
    font-size: 14px;
  }
  .modal-content {
    width: 95%;
    height: auto;
    max-height: 90vh;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: none;
  }
  
  .modal-body {
    height: auto;
    max-height: 80vh;
    width: 100%;
    overflow-y: scroll;
    border-radius: 10px;
  }
  
  .gallery-container.testimonial-layout .gallery-image-container {
    height: auto;
    padding: 10px;
    max-height: 60vh;
  }
  
  .award_img_contaienr {
    width: 100%;
    height: auto;
    padding: 10px;
  }
  
  .gallery-container.testimonial-layout .gallery-text-container {
    height: auto;
    max-height: 40vh;
    padding: 10px 15px;
    overflow-y: auto;
  }
  
  .gallery-text-container .content-wrapper {
    max-height: 30vh;
    overflow-y: auto !important;
    height: auto;
    display: block;
    -webkit-overflow-scrolling: touch; /* 增强iOS滚动体验 */
    position: relative;
    flex: 1;
    min-height: 100px;
  }
  
  .gallery-prev,
  .gallery-next {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .close-modal {
    top: 10px;
    right: 10px;
    font-size: 24px;
    width: 36px;
    height: 36px;
    display: flex;
  }
  
  .gallery-caption {
    font-size: 14px;
    padding: 10px 0;
  }
  .tab-nav {
      overflow-x: auto;
      white-space: nowrap;
      padding-bottom: 5px;
  }
  
  .tab-nav li {
      margin-right: 20px;
      font-size: 16px;
      padding: 8px 0;
  }
  .banner{
    margin-bottom: 16px;
  }
  .tab{
    padding: 2px 0;
  }
  .awards_list{
    margin-top: 0;
  }
  .tab-content{
    margin-top: 10px;
  }
}
