/* 客户及案例部分样式 */
.cases-section {
  padding: 80px 0;
  background-image: url('../img/anli/anli_pg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cases-section.solid-background {
  background-image: none;
  background-color: #2B4F7F;
}

.cases-section-bottom-50 {
  padding-bottom: 50px;
}
.cases-section .container {
  width: 100%;
  margin: 0 auto;
  /* padding: 0 15px; */
}

@media (min-width: 768px) {
  .cases-section .container {
    width: 750px;
  }
}

@media (min-width: 992px) {
  .cases-section .container {
    width: 970px;
  }
}

@media (min-width: 1200px) {
  .cases-section .container {
    width: 1170px;
  }
}

.cases-header {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cases-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 20px 0 10px;
  line-height: 1.4;
}

.cases-description {
  font-size: 16px;
  color: #fff;
  text-align: center;
  max-width: 800px;
  line-height: 1.6;
  margin-top: 20px;
}

.cases-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cases-container.has-shadow::before {
  content: '';
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 226px;
  left: 0;
  z-index: 1;
  background-image: linear-gradient(0deg, #2B4F7F 0%, rgba(43, 79, 127, 0.6) 60%, rgba(43, 79, 127, 0) 100%);
  pointer-events: none;
}

.case-card-wrapper {
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 30px;
  flex: 0 0 calc(50% - 15px);
  max-width: calc(50% - 15px);
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.case-card-wrapper.hidden {
  display: none;
}


.case-card {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 39px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.case-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.case-icon {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  background: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* border: 1px solid #eee; */
}

.case-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-title-info {
  flex: 1;
}

.case-name {
  font-size: 18px;
  color: #333;
  margin: 0 0 8px;
}

/* .case-role {
  font-size: 14px;
  color: #777;
  margin: 0;
} */

.case-content {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
  /* height: 84px; */
  height: 135px;
  line-height: 28px;
  letter-spacing: 0;
  text-align: left;
}

/* 标签容器样式 */
.case-tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: hidden;
  width: 100%;
}

.case-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  color: #357AD5;
  background-color: #E8F2FF;
  border-radius: 4px;
  line-height: 1.5;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 客户案例响应式 */
@media (max-width: 991px) {
  .case-card-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .cases-title {
    font-size: 28px;
  }
}

@media only screen and (max-width: 468px) {
  .cases-section{
    padding-top:40px;
    padding-bottom: 20px;
  }

  .case-content{
   line-height: 28px;
   height: auto;
   text-align: justify;
  }

  .cases-header{
    margin-bottom: 20px;
    padding:0 15px;
  }

  .cases-title{
    font-size: 24px;
  }

  .cases-description{
    font-size: 14px;
    margin-top: 10px;
  }

  .case-icon{
    width: 48px;
    height: 48px;
  }

  .case-name{
    font-size: 14px;
    margin-bottom: 8px;
  }

  /* .case-role{
    font-size: 12px;
  } */

  .case-header{
    margin-bottom: 10px;
  }

  .case-content{
    line-height: 22px;
  }
  .case-card-wrapper{
    margin-bottom: 20px;
  }
}

/* 展示更多按钮样式 */
.cases-expand-wrapper {
  text-align: center;
}

.cases-expand-button {
  padding-top:30px;
  font-size: 14px;
  color: #fff;
  background-color:transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cases-expand-button:hover {
  color:#333;
}

.cases-expand-arrow {
  width: 14px;
  height: auto;
  display: block;
}

