.yichen-warranty-regulations {
  padding: var(--component-gap) 0;
  background: #ffffff; /* 背景保持白色 */
  font-family: var(--title-font-family); /* 统一字体 */
}

.yichen-warranty-regulations__header {
  text-align: center;
}

.yichen-warranty-regulations__title {
  font-size: 45px; /* 字号统一 */
  font-weight: 700;
  line-height: normal;
  font-style: normal;
  margin-bottom: 10px;
  text-transform: capitalize;
  color: #000000; /* 统一颜色 */
}

.yichen-warranty-regulations__subtitle {
  font-size: 18px; /* 字号统一 */
  font-weight: 500;
  line-height: normal;
  font-style: normal;
  color: #000000; /* 统一颜色 */
}

.yichen-warranty-regulations__cards {
  margin-top: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}

.yichen-warranty-regulations__card {
  background: #ececec; /* 卡片背景改为 #ececec */
  height: 238px;
  border-radius: 34px;
  padding-left: 40px;
  width: calc((100% - 28px) / 2);
  overflow: hidden;
  position: relative;
}

.yichen-warranty-regulations__card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.yichen-warranty-regulations__card-content {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.yichen-warranty-regulations__text {
  width: 50%;
  z-index: 100;
}

.yichen-warranty-regulations__card-title {
  font-size: 22px; /* 字号统一 */
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.24px;
  text-transform: capitalize;
  color: #000000; /* 统一颜色 */
}

.yichen-warranty-regulations__card-description {
  margin-top: 12px;
  overflow: hidden;
  color: #000000; /* 统一颜色 */
  font-size: 16px; /* 字号统一 */
  font-family: var(--font-family);
  font-weight: 300;
  line-height: normal;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  text-overflow: ellipsis;
}

.yichen-warranty-regulations__image {
  flex: 1;
  overflow: hidden;
  height: 100%;
}

.yichen-warranty-regulations__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yichen-warranty-regulations__card:hover {
  cursor: pointer;
  padding: 0 44px;
}

.yichen-warranty-regulations__card:hover .yichen-warranty-regulations__card-bg {
  display: block;
  opacity: 1;
}

.yichen-warranty-regulations__card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: var(--color-primary);
  display: none;
  opacity: 0;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.yichen-warranty-regulations__card:hover::before {
  display: block;
  opacity: 0.65;
}

.yichen-warranty-regulations__card:hover .yichen-warranty-regulations__card-content {
  align-items: flex-start;
  padding-top: 45px;
}

.yichen-warranty-regulations__card:hover .yichen-warranty-regulations__text {
  width: 100%;
}

.yichen-warranty-regulations__card:hover .yichen-warranty-regulations__card-title,
.yichen-warranty-regulations__card:hover .yichen-warranty-regulations__card-description {
  color: #fff;
}

.yichen-warranty-regulations__card:hover .yichen-warranty-regulations__card-description {
  font-weight: 400;
  margin-top: 32px;
  line-height: 21px;
}

.yichen-warranty-regulations__card:hover .yichen-warranty-regulations__image {
  display: none;
}

/* Responsive Design */

@media screen and (max-width: 992px) {
  .yichen-warranty-regulations__card {
    padding-left: 12px;
    height: 180px;
  }

  .yichen-warranty-regulations__card-content {
    gap: 12px;
  }

  .yichen-warranty-regulations__card:hover .yichen-warranty-regulations__card-content {
    padding-top: 24px;
  }

  .yichen-warranty-regulations__card:hover .yichen-warranty-regulations__card-description {
    margin-top: 16px;
  }
}

@media (max-width: 768px) {
  .yichen-warranty-regulations__cards {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .yichen-warranty-regulations__card {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
  }
}

@media screen and (max-width: 576px) {
  .yichen-warranty-regulations__card {
    height: 160px;
  }
}
