/* coupon-card */
.coupon-item {
    padding: 8px 12px;
}
.coupon-topbox {
    height: 100px;
}
.coupon-topdate {
    margin-top: 8px;
    color: #999;
    font-size: 14px;
    display: none;
}
.coupon-btn {
    font-weight: 500;
    box-sizing: border-box;
    padding: 0 20px;
    font-size: 14px;
    background-color: #0261ff;
    color: #fff;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
}
.coupon-deal-btnbox {
    width: 170px;
    border-radius: 40px;
    flex-shrink: 1;
    overflow: hidden;
    text-align: center;
}
.coupon-tip {
    color: #0261ff;
}
.cart-item-button {
    width: 170px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 40px;
    z-index: 1;
    position: relative;
}
.item-sale-back {
    display: inline-block;
    height: 40px;
    width: calc(100% - 27.5px);
    background-color: #0261ff;
    position: absolute;
    left: 0;
    z-index: -1;
    border-radius: 40px 0 0 40px;
    transition: all 0.5s;
}
.item-sale-main {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    width: 100%;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    border-radius: 40px;
    z-index: 2;
    overflow: hidden;
    padding-right: 20px;
}
.item-sale-corner {
    display: inline-block;
    border-radius: 40px;
    height: 38px;
    width: 56px;
    transform: rotate(-30deg);
    background: linear-gradient(-70deg, transparent 36px, #5193ff 0);
    z-index: 3;
    top: -0.5px;
    right: -7px;
    position: absolute;
    transition: all 0.5s;
}
.item-sale-num {
    display: inline-block;
    max-width: calc(100% - 15px);
    font-weight: 700;
    color: #aaa;
    position: absolute;
    line-height: 40px;
    height: 40px;
    right: 15px;
    z-index: -2;
    overflow: hidden;
}
.cart-item-button:hover .item-sale-corner {
    background: linear-gradient(-70deg, transparent 36px, #6874af 0);
    transform: rotate(-45deg);
    height: 41px;
    width: 60px;
    top: -2px;
    right: 4px;
}
.cart-item-button:hover .item-sale-back {
    background-color: #27357d;
    width: calc(100% - 43.5px);
}
/* offers-card */
.offers-item {
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
}
.coupon-con,
.offers-con {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    width: 100%;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.coupon-con:hover,
.offers-con:hover {
    border-color: #0261ff;
}
.coupon-topbox,
.offers-topbox {
    display: flex;
    width: 100%;
    border-bottom: 1px dashed #ccc;
    overflow: hidden;
}
.coupon-img,
.offers-img {
    flex-shrink: 0;
    box-sizing: content-box;
    object-fit: cover;
    width: 100px;
    height: 100px;
    border-right: 1px dashed #ccc;
}
.coupon-text,
.offers-text {
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    color: #27357d;
    font-weight: 500;
    padding: 16px;
    text-align: center;
    border-right: 1px dashed #ccc;
}
.coupon-info,
.offers-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.coupon-tip,
.offers-tip {
    color: #F0C958;
    font-size: 14px;
    margin-bottom: 4px;
}
.coupon-des,
.offers-des {
    font-weight: 500;
    line-height: 1.2;
}
.coupon-bottombox,
.offers-bottombox {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    box-sizing: border-box;
}
.coupon-cat,
.offers-cat {
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}
.coupon-date,
.offers-date {
    color: #999;
    font-size: 14px;
}
.offers-deal-btnbox,
.offers-btnbox {
    position: relative;
    overflow: hidden;
    border-radius: 40px;
    flex-shrink: 0;
}
.offers-deal-btnbox {
    text-align: center;
}
.offers-btnbox::before,
.offers-btnbox::after {
    content: '';
    position: absolute;
    transition: all 0.3s;
}
.offers-btnbox::before {
    top: -65px;
    right: -42px;
    transform: rotate(45deg);
    width: 52px;
    height: 100px;
    background-color: #eb7d7d;
    border-radius: 40px;
}
.offers-btnbox::after {
    top: -36px;
    right: -40px;
    transform: rotate(45deg);
    width: 60px;
    height: 60px;
    background-color: #ccc;
}
.offers-con:hover .offers-btnbox::before {
    background-color: #ae6b6b;
    top: -57px;
    right: -33px;
}
.offers-con:hover .offers-btnbox::after {
    top: -36px;
    right: -32px;
}
.offers-btn {
    font-weight: 500;
    width: 130px;
    box-sizing: border-box;
    padding: 0 20px;
    font-size: 14px;
    height: 52px;
    line-height: 52px;
    background-color: #0261ff;
    color: #fff;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.coupon-con:hover .coupon-btn,
.offers-con:hover .offers-btn {
    background-color: #27357d;
    color: #fff;
}
/* coupon */
.coupon-banner {
    display: flex;
    margin-bottom: 24px;
    align-items: center;
}
.coupon-banner-tit {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 8px;
}
.coupon-banner-des {
    color: #999;
}
a.coupon-banner-des {
    text-decoration: underline;
}
.coupon-banner-img {
    object-fit: cover;
    width: 80px;
    height: 80px;
    margin-right: 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
/* store-card */
.store-item {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    box-sizing: border-box;
}
.store-item:hover {
    background-color: #f0f0f0;
}
.store-con {
    display: flex;
    align-items: center;
    gap: 16px;
}
.store-img {
    height: 80px;
    width: 80px;
    border: 1px solid #ddd;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
    background-color: #fff;
}
.store-info {
    flex: 1;
}
.store-des {
    color: #999;
    margin-top: 4px;
}
.store-num {
    width: 48px;
    text-align: center;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    color: #27357d;
}
/* coupondetail */
.coupondetailbox {
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    padding: 24px;
}
.coupondetail-tip {
    color: #27357d;
    font-weight: bold;
    margin-bottom: 16px;
}
.coupondetail-tit {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 500;
}
.coupondetail-date {
    color: #999;
    margin: 16px 0;
}

.coupondetail-info {
    display: flex;
    background-color: #f0f0f0;
    justify-content: space-between;
    align-items: center;
    border-radius: 40px;
    height: 52px;
    padding: 8px;
    box-sizing: border-box;
}

.coupondetail-code {
    margin-left: 12px;
    margin-right: 24px;
}
.coupondetail-btn {
    font-weight: 500;
    background-color: #0261ff;
    text-align: center;
    border-radius: 40px;
    width: 100px;
    height: 100%;
}
a.coupondetail-btn {
    width: auto;
    padding: 0 40px;
    margin-bottom: 16px;
    color: #fff;
    height: 52px;
    text-align: center;
    line-height: 52px;
    font-size: 18px;
}
.coupondetail-btn:hover {
    background-color: #27357d;
}

.coupondetail-btn-text {
    height: 100%;
    width: 100%;
    color: #fff;
    line-height: 36px;
}

.coupondetail-btn-tip {
    display: none;
    font-weight: 700;
    /* opacity: 0; */
    z-index: 10;
    transition: opacity 0.3s;
    width: 300px;
    color: #27357d;
    border-radius: 40px;
    background-color: #fff;
    position: fixed;
    top: 15%;
    left: calc(50% - 150px);
    text-align: center;
    padding: 8px;
    border: 2px solid #0261ff;
}

.coupondetail-go {
    margin: 16px 0;
    color: #27357d;
    text-decoration: underline;
    transition: color 0.3s;
}

.coupondetail-go:hover {
    color: #0261ff;
}

.coupondetail-des {
    font-size: 14px;
    color: #999;
}
/* circle */
.circle-item {
    width: calc(50% - 20px);
    text-align: center;
}
.circle-item:hover .circle-imgbox {
    border: 2px solid #0261ff;
}
.circle-imgbox {
    border-radius: 50%;
    border: 2px solid #F8F8F8;
    margin-bottom: 16px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.circle-img {
    width: 100%;
}
.circle-des {
    margin-top: 8px;
    color: #93A29D;
    font-size: 14px;
}
/* letter */
.letter {
    padding: 6px 0;
    background-color: #f0f0f0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    /* width: calc(25% - 6px); */
    width: calc(14.2857% - 6.8571px);
}
.letter-choose {
    color: #fff;
    background-color: #0261ff;
}
a.letter:hover {
    color: #fff;
    background-color: #27357d;
}
@media (min-width: 640px) {
    /* offers-card */
    .offers-item {
        padding: 8px 12px;
        width: 50%;
    }
    .coupon-text,
    .offers-text {
        width: 110px;
        height: 110px;
        font-size: 18px;
    }
    /* coupon-card */
    .coupon-item {
        padding: 12px;
    }
    .coupon-con {
        flex-direction: row;
        justify-content: space-between;
    }
    .coupon-topbox {
        height: 110px;
        border-bottom: none;
        width: auto;
    }
    .coupon-bottombox {
        width: auto;
    }
    .coupon-img {
        width: 110px;
        height: 110px;
    }
    .coupon-topdate {
        display: block;
    }
    /* coupon */
    .coupon-banner-img {
        width: 100px;
        height: 100px;
        margin-right: 20px;
    }
    .coupon-banner-tit {
        font-size: 32px;
    }
    /* store-card */
    .store-item {
        width: 50%;
        padding: 12px;
    }
    /* coupondetail */
    .coupondetail-tip {
        font-size: 18px;
    }
    .coupondetail-tit {
        font-size: 24px;
    }
    .coupondetail-code {
        margin-right: 40px;
        font-size: 18px;
    }
    /* circle */
    .circle-item {
        width: calc(25% - 30px);
    }

    /* letter */
    .letter {
        width: calc(7.1428% - 9.2857px);
    }
}
@media (min-width: 900px) {
    /* circle */
    .circle-item {
        width: calc(16.6666% - 33.3333px);
    }
}
@media (min-width: 1024px) {
     /* offers-card */
     .offers-item {
        width: 33.3333%;
    }
    
}