/* Gardensun Banner 组件样式 */

.gardensun_banner_section {
  position: relative;
}

/* Banner轮播容器 */
.gardensun_banner_swiper_container {
  position: relative;
  overflow: hidden;
}

.gardensun_banner_swiper {
  width: 100%;
  /* height: 810px; */
}

.gardensun_banner_swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.bg-img{
  width: 100%;
}
/* 主横幅区域 */
.gardensun_banner_main {
  /* position: relative; */
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 横幅内容 */
.gardensun_banner_content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}

/* 主标题 */
.gardensun_banner_title {
  font-family: var(--font-family);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-align: center;
}

/* 描述文字 */
.gardensun_banner_description {
  font-family: 'Fira Sans', var(--font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #FFFFFF;
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 按钮区域 */
.gardensun_banner_actions {
  text-align: center;
}

/* 主要按钮 */
.gardensun_banner_btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-primary, #E60012);
  color: #F6F5F1;
  font-family: 'Fira Sans', var(--font-family);
  font-size: 18px;
  font-weight: 400;
  padding: 8px 20px;
  border-radius: var(--button-radius, 6px);
  text-decoration: none;
  transition: all 0.3s ease;
  height: 42px;
  min-width: 160px;
  justify-content: center;
  white-space: nowrap;
}

.gardensun_banner_btn:hover {
  background-color: var(--btn-hover, #CC0010);
  color: var(--color-primary);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230, 0, 18, 0.3);
}

/* 按钮图标 */
.gardensun_btn_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.gardensun_btn_icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 客户合作区域 */
.gardensun_clients_section {
  /* position: absolute; */
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(246, 245, 241, 0.7);
  padding: 0 60px;
  min-height: 100px;
  display: flex;
  align-items: center;
  z-index: 2;
}

/* 客户区域标题 */
.gardensun_clients_title h3 {
  font-family: var(--font-family);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.54;
  color: var(--title-text-color, #221815);
  margin: 0;
  text-align: left;
  white-space: nowrap; /* 不换行 */
}

/* 客户标识轮播容器 */
.gardensun_clients_swiper_wrapper {
  padding-left: 50px;
  position: relative;
}

.gardensun_clients_swiper {
  overflow: hidden;
  width: 100%;
  height: 80px;
  position: relative;
}

.gardensun_clients_swiper .swiper-wrapper {
  align-items: center;
  transition-timing-function: linear; /* 线性过渡，更流畅 */
}

.gardensun_clients_swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  opacity: 0.6; /* 非活跃slide半透明 */
  transform: scale(0.9); /* 非活跃slide稍小 */
  transition: all 0.4s ease;
}

.gardensun_clients_swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

.gardensun_clients_swiper .swiper-slide-next,
.gardensun_clients_swiper .swiper-slide-prev {
  opacity: 0.8;
  transform: scale(0.95);
}

.gardensun-scroll {
  grid: auto / auto-flow max-content;
  justify-content: center;
  display: grid;
  overflow: hidden;
  gap: 12px;
}
/* 单个客户标识 */
.gardensun_client_logo {
  grid: auto / auto-flow auto max-content;
  place-items: center;
  display: grid;
}
.anim-loop-right {
  animation: loop-anim-right 3s linear infinite reverse;
  white-space: nowrap;
}
@keyframes loop-anim-right {
  0% {
    transform: translate3d(-100%, 0, 0);
  }

  to {
    transform: translateZ(0);
  }
}

.gardensun_client_logo img {
  width: 84px;
  height: 40px;
  object-fit: cover;
}

/* Swiper覆盖样式 */
.gardensun_clients_swiper .swiper-slide-active .gardensun_client_logo img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* 添加渐变遮罩效果，营造无限循环的视觉效果 */
.gardensun_clients_swiper_wrapper::before,
.gardensun_clients_swiper_wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 30px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.gardensun_clients_swiper_wrapper::before {
  left: 50px;
}

.gardensun_clients_swiper_wrapper::after {
  right: 0;
}

/* 响应式设计 */
@media (max-width: 1399px) {
  .gardensun_clients_title h3 {
    font-size: 24px;
  }
}

@media (max-width: 1199px) {
  .gardensun_banner_title {
    font-size: 48px;
  }
  
  .gardensun_banner_description {
    font-size: 16px;
  }
  
  .gardensun_clients_section {
    padding: 0 40px;
  }
  
  .gardensun_clients_title h3 {
    font-size: 22px;
  }
}

@media (max-width: 991px) {
  .gardensun_banner_swiper {
    height: auto;
  }
  
  /* .gardensun_banner_main {
    height: 500px;
  } */
  
  .gardensun_banner_title {
    font-size: 42px;
  }
  
  .gardensun_banner_description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .gardensun_clients_section {
    padding: 0 30px;
  }
  
  .gardensun_clients_title {
    text-align: center;
    margin-top: 12px;
  }
  
  .gardensun_clients_swiper_wrapper {
    padding-left: 30px;
  }
  
  .gardensun_clients_swiper_wrapper::before {
    left: 30px;
  }
  
  .gardensun_clients_title h3 {
    font-size: 22px;
    text-align: center;
  }
}

@media (max-width: 767px) {
  /* .gardensun_banner_title,
  .gardensun_banner_description{
    display: none;
  } */
  
  .gardensun_banner_swiper {
    height: auto;
  }
  
  .gardensun_banner_main {
    height: auto;
  }
  
  .gardensun_banner_content {
    padding: 20px 0;
  }
  
  .gardensun_banner_title {
    font-size: 22px;
    margin-bottom: 5px;
  }
  
  .gardensun_banner_description {
    font-size: 15px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  
  .gardensun_banner_btn {
    font-size: 16px;
    padding: 6px 16px;
    min-width: 140px;
    height: 38px;
  }
  
  .gardensun_clients_section {
    padding: 0 20px;
  }
  
  .gardensun_clients_title h3 {
    font-size: 18px;
    white-space: pre-wrap;
  }
  
  .gardensun_client_logo {
    height: 50px;
  }
  
  .gardensun_clients_swiper {
    height: 70px;
  }
  
  .gardensun_clients_swiper .swiper-slide {
    height: 70px;
  }
  
  .gardensun_clients_swiper_wrapper {
    padding-left: 20px;
  }
  
  .gardensun_clients_swiper_wrapper::before {
    left: 20px;
  }
}

@media (max-width: 575px) {
  .gardensun_banner_title {
    font-size: 20px;
  }
  
  .gardensun_banner_description {
    font-size: 14px;
  }
  
  .gardensun_banner_btn {
    font-size: 14px;
    min-width: 130px;
    height: 36px;
  }
  
  .gardensun_clients_title h3 {
    font-size: 18px;
  }
  
  .gardensun_client_logo {
    height: 45px;
  }
  
  .gardensun_clients_swiper {
    height: 65px;
  }
  
  .gardensun_clients_swiper .swiper-slide {
    height: 65px;
  }
} 