/* Case Swiper Widget */
.hbc-cs-section {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.hbc-cs-swiper {
  width: 100%;
  height: 100%;
}

.hbc-cs-swiper .swiper-slide {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
}

/* Left Area */
.hbc-cs-slide-left {
  position: relative;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.hbc-cs-slide-left .hbc-cs-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.hbc-cs-slide-left::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(111, 227, 235, 0.85);
  z-index: 1;
}

/* Logo Info */
.hbc-cs-logo-info {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
}

.hbc-cs-company-logo {
  object-fit: contain;
}

/* Right Area */
.hbc-cs-slide-right {
  position: relative;
  width: 50%;
  height: 100%;
  background-color: #e8eef0;
}

/* Content Card */
.hbc-cs-content-card {
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% - 20px);
  max-width: 700px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(86, 173, 178, 0.15);
  padding: 35px 50px;
  z-index: 3;
}

/* Quote decorations */
.hbc-cs-content-card::before {
  content: "";
  position: absolute;
  top: var(--quote-left-top, 30px);
  left: var(--quote-left-left, 20px);
  width: 30px;
  height: 30px;
  background: var(--quote-left-url) no-repeat center / contain;
  opacity: 0.6;
}

.hbc-cs-content-card::after {
  content: "";
  position: absolute;
  bottom: var(--quote-right-bottom, 30px);
  right: var(--quote-right-right, 20px);
  width: 30px;
  height: 30px;
  background: var(--quote-right-url) no-repeat center / contain;
  opacity: 0.6;
}

/* Card Header */
.hbc-cs-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.hbc-cs-company-name {
  font-size: 14px;
  color: #999;
  margin: 0;
}

/* Title */
.hbc-cs-title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin: 0 0 15px 0;
}

/* Description */
.hbc-cs-description {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin: 0 0 25px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer */
.hbc-cs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hbc-cs-tag {
  display: inline-block;
  padding: 6px 15px;
  background-color: #eef0f1;
  border-radius: 5px;
  font-size: 14px;
  color: #666;
}

.hbc-cs-view-btn {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #2cc6d0;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.hbc-cs-view-btn:hover {
  color: #1eb3bd;
}

/* Empty state */
.hbc-cs-empty {
  padding: 40px;
  text-align: center;
  color: #999;
  background: #f5f5f5;
  border-radius: 8px;
}

/* Responsive - Tablet */
@media (max-width: 991px) {
  .hbc-cs-section {
    height: auto;
  }
  
  .hbc-cs-swiper .swiper-slide {
    flex-direction: column;
    height: auto !important;
  }
  
  .hbc-cs-slide-left,
  .hbc-cs-slide-right {
    width: 100%;
  }
  
  .hbc-cs-slide-left {
    height: 250px;
  }
  
  .hbc-cs-logo-info {
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .hbc-cs-slide-right {
    padding: 30px 20px 40px;
  }
  
  .hbc-cs-content-card {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin-top: -40px;
  }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
  .hbc-cs-section {
    height: 400px;
  }

  .hbc-cs-swiper,
  .hbc-cs-swiper .swiper-wrapper,
  .hbc-cs-swiper .swiper-slide {
    height: 100% !important;
  }

  .hbc-cs-swiper .swiper-slide {
    flex-direction: row;
  }

  /* 隐藏左侧特色图和logo区域 */
  .hbc-cs-slide-left {
    display: none !important;
  }
  
  .hbc-cs-slide-right {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
  }
  
  .hbc-cs-content-card {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: calc(100% - 30px);
    max-width: 100%;
    margin: 0;
    padding: 25px 20px;
  }
  
  .hbc-cs-title {
    font-size: 18px;
  }

  .hbc-cs-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hbc-cs-view-btn {
    display: flex !important;
  }

  /* 确保引号图片显示 */
  .hbc-cs-content-card::before,
  .hbc-cs-content-card::after {
    display: block;
  }
}
