.gardensun_featured_case_section {
  padding: 100px 0;
  overflow: hidden;
}

/* 标题区域 */
.gardensun_case_header {
  margin-bottom: 80px;
}

.gardensun_case_title {
  font-family: var(--font-family);
  font-size: 46px;
  font-weight: 600;
  line-height: 70px;
  color: var(--title-text-color, #221815);
  margin-bottom: 20px;
}

.gardensun_case_subtitle {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  color: var(--text-color, #221815);
  margin: 0;
}

/* 上方内容轮播区域 */
.gardensun_case_content_wrapper {
  position: relative;
  margin-bottom: 40px;
}

.gardensun_case_content_swiper {
  width: 100%;
  height: 650px;
  overflow: hidden;
  position: relative;
}

.gardensun_case_content_swiper .swiper-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
}

.gardensun_case_content_swiper .swiper-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  flex-basis: auto;
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.gardensun_case_content_swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.gardensun_case_content_swiper .swiper-slide-prev,
.gardensun_case_content_swiper .swiper-slide-next {
  opacity: 1;
  transform: scale(1);
}

.gardensun_case_content_slide {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* 背景图片 */
.gardensun_case_background_image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.gardensun_case_background_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gardensun_case_content_slide:hover .gardensun_case_background_image img {
  transform: scale(1.05);
}

/* 覆盖的文字内容 */
.gardensun_case_overlay_content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* 只有激活的slide才显示文字覆盖层 */
.gardensun_case_content_swiper .swiper-slide-active .gardensun_case_overlay_content {
  opacity: 1;
  visibility: visible;
}

/* 非激活的slide确保没有任何覆盖 */
.gardensun_case_content_swiper .swiper-slide:not(.swiper-slide-active) .gardensun_case_overlay_content {
  opacity: 0;
  visibility: hidden;
  background: transparent;
}

.gardensun_case_content_inner {
  text-align: center;
  padding: 40px;
  max-width: 800px;
  width: 100%;
}

.gardensun_case_item_title {
  font-family: var(--font-family);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
  color: #FFFFFF;
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gardensun_case_description {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #FFFFFF;
  margin: 0;
  white-space: pre-line;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 上方轮播圆点指示器（在图片上方） */
.gardensun_case_content_pagination {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: block;
  width: auto;
  height: auto;
  pointer-events: none;
}

.gardensun_content_pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.gardensun_content_pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--title-text-color);
  border-radius: 50%;
  margin: 0 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(153, 153, 153, 0.3);
  opacity: 1;
  display: inline-block;
  flex-shrink: 0;
}

.gardensun_content_pagination .swiper-pagination-bullet-active {
  background: var(--text-color);
  transform: scale(1.3);
}

/* 下方图片画廊轮播区域 */
.gardensun_case_gallery_wrapper {
  position: relative;
  margin-top: 20px;
}

.gardensun_case_gallery_swiper {
  width: 100%;
  height: 200px;
  padding: 0 60px;
}

.gardensun_case_gallery_item {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gardensun_case_gallery_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gardensun_case_gallery_item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gardensun_case_gallery_item:hover img {
  transform: scale(1.05);
}

/* 下方轮播导航箭头 */
.gardensun_gallery_navigation {
  position: absolute;
  top: 64%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

/* 移除Swiper默认的按钮伪元素 */
.gardensun_gallery_prev:after,
.gardensun_gallery_next:after {
  display: none !important;
  content: none !important;
}

.gardensun_gallery_prev,
.gardensun_gallery_next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 35px !important;
  height: 35px !important;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  background: rgba(72, 72, 72, 0.15);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  position: relative;
}

.gardensun_gallery_prev:hover,
.gardensun_gallery_next:hover {
  background: var(--color-primary, #E60012);
  border-color: var(--color-primary, #E60012);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 16px rgba(230, 0, 18, 0.3);
}

.gardensun_gallery_prev:before,
.gardensun_gallery_next:before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-left: 2px solid #FFF;
  border-bottom: 2px solid #FFF;
  transition: border-color 0.3s ease;
}

.gardensun_gallery_prev:before {
  transform: rotate(45deg);
}

.gardensun_gallery_next:before {
  transform: rotate(-135deg);
}

.gardensun_gallery_prev:hover:before,
.gardensun_gallery_next:hover:before {
  border-color: #FFFFFF;
}

.gardensun_gallery_prev {
  left: 10px;
}

.gardensun_gallery_next {
  right: 10px;
}

/* 响应式设计 */
@media (max-width: 1199px) {
  .gardensun_case_title {
    font-size: 40px;
  }
  
  .gardensun_case_subtitle {
    font-size: 16px;
  }
  
  .gardensun_case_content_swiper {
    height: 420px;
  }
  
  .gardensun_case_item_title {
    font-size: 28px;
  }
  
  .gardensun_case_description {
    font-size: 16px;
  }
  
  .gardensun_case_gallery_swiper {
    height: 180px;
  }
  
  .gardensun_case_gallery_item {
    height: 180px;
  }
}

@media (max-width: 991px) {
  .gardensun_featured_case_section {
    padding: 60px 0;
  }
  
  .gardensun_case_header {
    margin-bottom: 60px;
  }
  
  .gardensun_case_title {
    font-size: 36px;
  }
  
  .gardensun_case_content_wrapper {
    margin-bottom: 30px;
  }
  
  .gardensun_case_content_swiper {
    height: 450px;
  }
  
  .gardensun_case_content_inner {
    padding: 30px 20px;
  }
  
  .gardensun_case_item_title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .gardensun_case_description {
    font-size: 15px;
  }
  
  .gardensun_case_gallery_swiper {
    padding: 0 50px;
    height: 160px;
  }
  
  .gardensun_case_gallery_item {
    height: 160px;
  }
}

@media (max-width: 767px) {
  .gardensun_featured_case_section {
    padding: 60px 0;
  }
  
  .gardensun_case_header {
    margin-bottom: 40px;
  }
  
  .gardensun_case_title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .gardensun_case_subtitle {
    font-size: 15px;
  }
  
  .gardensun_case_content_wrapper {
    margin-bottom: 25px;
  }
  
  .gardensun_case_content_swiper {
    height: 350px;
  }
  
  .gardensun_case_content_inner {
    padding: 25px 15px;
  }
  
  .gardensun_case_item_title {
    font-size: 22px;
    margin-bottom: 16px;
  }
  
  .gardensun_case_description {
    font-size: 14px;
  }
  
  .gardensun_content_pagination .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    margin: 0 4px;
  }
  
  .gardensun_case_gallery_swiper {
    height: 140px;
    padding: 0 40px;
  }
  
  .gardensun_case_gallery_item {
    height: 140px;
  }
}

@media (max-width: 575px) {
  .gardensun_case_title {
    font-size: 24px;
  }
  
  .gardensun_case_subtitle {
    font-size: 14px;
  }
  
  .gardensun_case_content_swiper {
    height: 300px;
  }
  
  .gardensun_case_content_inner {
    padding: 20px 10px;
  }
  
  .gardensun_case_item_title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .gardensun_case_description {
    font-size: 13px;
  }
  
  .gardensun_content_pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 3px;
  }
  
  .gardensun_case_gallery_swiper {
    height: 120px;
    padding: 0 35px;
  }
  
  .gardensun_case_gallery_item {
    height: 120px;
  }
  
  .gardensun_gallery_prev,
  .gardensun_gallery_next {
    width: 35px;
    height: 35px;
  }
} 