.discount-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: nowrap;
}
.discount-cards div {
  display: flex;
  justify-content: center;
}

.coupon-container-wrapper {
  width: var(--desktop-width);
}

@media screen and (max-width: 750px) {
  .discount-cards {
    flex-wrap: wrap;
  }
  .coupon-container-wrapper {
    width: calc(100vw - 48px);
  }
}

.coupon-container {
  width: 100%; /* 宽度自适应屏幕 */
  aspect-ratio: var(--aspect-ratio);

  background-image: var(--background-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex; /* 左右布局 */
  align-items: center; /* 垂直居中 */

  container-type: inline-size;
  border-radius: 8px;
}

/* 左侧折扣区 */
.left-part {
  width: 30%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* 这里的字体用 cqw (container width)，1cqw = 容器宽度的1% */
  /* 这样字号永远随卡片宽度等比缩放 */
  font-size: 6cqw;
  font-weight: bold;
  color: #333;
  line-height: 1.2;
}

/* 右侧详情区 */
.right-part {
  flex: 1; /* 占据剩余空间 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-right: 5cqw; /* 右边距也用相对单位 */
}

.code-text {
  font-size: 5cqw;
  color: #333;
  margin-bottom: 1cqw;
}

.desc-text {
  font-size: 4cqw;
  color: #555;
}
