/* Case Show — 参考图三：浅色圆角卡片轮播 */
.case-showcase {
  padding: 10px 0 8px;
  background: #fff;
}

.case-showcase__head {
  text-align: center;
  padding: 0 20px 8px;
}

.case-showcase__slider {
  position: relative;
  max-width: 1400px;
  width: 96%;
  margin: 0 auto;
  padding: 12px 48px 24px;
  box-sizing: border-box;
}

.case-showcase .case-swiper.swiper-container {
  width: 100% !important;
  height: auto !important;
  padding: 12px 8px 22px !important;
  overflow: hidden;
  cursor: grab;
}

.case-showcase .case-swiper .swiper-wrapper {
  width: auto !important;
  height: auto !important;
  align-items: stretch;
}

/* 桌面一次大约露出 4～4.5 张；卡片更宽一些 */
.case-showcase .case-swiper.main_b {
  width: 100% !important;
  margin: 0 !important;
}

.case-showcase .case-swiper .swiper-slide {
  width: 280px !important; /* ~260 卡片 + 20 间距 */
  max-width: 280px !important;
  height: auto !important;
  display: block !important;
  flex-shrink: 0;
  padding: 0 10px !important;
  margin: 0 !important;
  background: transparent !important;
  text-align: center;
  box-sizing: border-box !important;
}

.case-card {
  display: block !important;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(40, 40, 50, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-decoration: none !important;
  color: #333 !important;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(40, 40, 50, 0.14);
}

.case-card__media {
  display: block;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 115%; /* 更高一点，接近竖向卡片 */
  background: #f3f3f3;
  overflow: hidden;
}

.case-card__media img {
  position: absolute !important;
  left: 0;
  top: 0;
  float: none !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.case-card__label {
  display: block;
  padding: 14px 10px 16px;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-nav {
  position: absolute;
  top: 42%;
  z-index: 5;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #666;
  font-size: 22px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  padding: 0;
}

.case-nav:hover {
  background: #f08300;
  border-color: #f08300;
  color: #fff;
}

.case-nav--prev { left: 8px; }
.case-nav--next { right: 8px; }

.case-showcase__more {
  padding-top: 4px;
  padding-bottom: 28px;
}

.case-showcase__more a {
  border-radius: 999px !important;
}

@media (max-width: 1199px) {
  .case-showcase__slider {
    max-width: 1100px;
    padding: 12px 44px 20px;
  }

  .case-showcase .case-swiper .swiper-slide {
    width: 250px !important;
    max-width: 250px !important;
    padding: 0 8px !important;
  }
}

@media (max-width: 991px) {
  .case-showcase__slider {
    padding: 4px 16px 12px;
  }

  .case-showcase .case-swiper.swiper-container {
    padding: 6px 0 16px !important;
  }

  .case-showcase .case-swiper .swiper-slide {
    width: 78% !important;
    max-width: 300px !important;
    padding: 0 10px !important;
  }

  .case-nav {
    display: none;
  }

  .case-card__label {
    font-size: 13px;
    padding: 12px 10px 14px;
  }
}
