.duomiao_service {
  padding: var(--component-gap) 0;
}

.duomiao_service_list {
  margin-top: var(--component-gap-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--content-gap-sm);
}

.duomiao_service_item {
  width: calc(50% - var(--content-gap-sm) / 2);
  aspect-ratio: 760/350;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.duomiao_service_item_content {
  flex: 1;
}

.duomiao_service_item_content_num {
  font-size: var(--text-size-xxl);
  font-family: var(--medium-font-family);
}
.duomiao_service_item_content_btn:hover{
  color: #FFF;
}
.duomiao_service_item_content {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 var(--content-gap-lg);
  background: rgba(66, 60, 164, 0.70);
  z-index: 1;
}

.duomiao_service_item_content_num {
  color: #fff;
  text-align: center;
  font-family: var(--title-font-family);
  font-size: var(--title-size-h5);
  font-weight: 900;
  line-height: 1.2;
}

.duomiao_service_item_content_title {
  color: #fff;
  text-align: center;
  font-family: var(--title-font-family);
  font-size: var(--text-size-xxl);
  font-weight: 600;
  line-height: 1.5;
  margin-top: var(--text-gap-sm);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.duomiao_service_item_content_desc {
  color: #fff;
  text-align: center;
  font-family: var(--medium-font-family);
  font-size: var(--text-title-size);
  font-weight: 500;
  line-height: 1.67;
  margin-top: 6px;
  max-height: calc(var(--text-title-size) * 1.67 * 3);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.duomiao_service_item_content_btn {
  display: block;
  text-align: center;
  gap: var(--text-gap-lg);
  color: #FFF;
  font-family: var(--medium-font-family);
  font-size: var(--text-size-md);
  font-weight: 500;
  line-height: normal;
  height: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.duomiao_service_item:hover img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.duomiao_service_item:hover .duomiao_service_item_content_btn {
  opacity: 1;
  height: auto;
  margin-top: calc(var(--text-gap-sm) * 2);
}

.duomiao_service_item:hover .duomiao_service_item_content {
  background: rgba(66, 60, 164, 0.85);
}

.duomiao_service_item:hover .duomiao_service_item_content_num,
.duomiao_service_item:hover .duomiao_service_item_content_title,
.duomiao_service_item:hover .duomiao_service_item_content_desc {
  color: #fff;
}

@media screen and (max-width: 1200px) {
  .duomiao_service_item_content_desc {
    max-height: calc(var(--text-title-size) * 1.67 * 2);
    -webkit-line-clamp: 2;
  }
}

@media screen and (max-width: 992px) {
  .duomiao_service_item {
    width: 100%;
  }

  .duomiao_service_item_content_desc {
    max-height: calc(var(--text-title-size) * 1.67 * 3);
    -webkit-line-clamp: 3;
  }
}

@media screen and (max-width: 576px) {
  .duomiao_service_item_content_desc {
    max-height: calc(var(--text-title-size) * 1.67 * 2);
    -webkit-line-clamp: 2;
  }
}