Coupon.scss 2.43 KB
.box {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 102;
  background-color: rgba($color: #000000, $alpha: .5);

  .flex {
    display: flex;
    align-items: center;
  }

  .content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 590rpx;
    height: 628rpx;
    background-image: linear-gradient(149deg, #FFC296 4%, #FFEED0 47%, #FFF0E6 100%);
    box-shadow: 0 0 48rpx 4rpx #fff08ab3;
    border-radius: 44rpx;
    display: flex;
    flex-direction: column;
    align-items: center;

    .icon-title {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      top: -230rpx;
      width: 438rpx;
      height: 76rpx;
    }

    .card {
      flex-direction: column;
      width: 100%;

      .content-icon {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 228rpx;
        height: 228rpx;
        top: -120rpx;
      }

      .name {
        font-weight: 600;
        font-size: 40rpx;
        color: #863e00;
        letter-spacing: 0;
        width: 95%;
        padding: 114rpx 40rpx 8rpx;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .describe {
        height: 52rpx;
        background: #f6dcaa;
        border-radius: 26rpx;
        padding: 0 32rpx;
        font-size: 28rpx;
        color: #985e23;
        text-align: center;
      }

      .price {
        font-weight: 700;
        font-size: 116rpx;
        color: #f32226;
        display: flex;
        align-items: baseline;
        line-height: 134rpx;

        .unit {
          font-weight: 600;
          font-size: 68rpx;
          color: #f32226;
        }
      }

      .tips {
        font-weight: 600;
        font-size: 40rpx;
        color: #F32226;
      }

      .btn {
        width: 312rpx;
        height: 80rpx;
        background-image: linear-gradient(88deg, #FF444D 16%, #FF5BA8 90%);
        border: 2rpx solid #FF7887;
        box-shadow: inset 0 4rpx 24rpx 0 #ffffff80;
        border-radius: 50rpx;
        font-weight: 600;
        font-size: 40rpx;
        color: #FFFFFF;
        justify-content: center;
        margin: 22rpx 0;
      }

      .time {
        font-size: 28rpx;
        color: #8B7E7C;
      }
    }
  }

  .close {
    width: 72rpx;
    height: 72rpx;
    position: absolute;
    left: 50%;
    bottom: -132rpx;
    transform: translateX(-50%);
  }
}