.my-new-module {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.my-new-module__title {
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
}

.my-new-module__description {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

.my-new-module__items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.my-new-module__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(33.333% - 20px);
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.my-new-module__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 翻转卡片样式 */
.flip-card {
    width: 100%;
    aspect-ratio: 456/596;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    padding: 32px;
}

.flip-card-front {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.flip-card-back {
    background-color: #f8f8f8;
    transform: rotateY(180deg);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.flip-card-back-product-image {
    width: 100%;
    aspect-ratio: 392/313;
    border-radius: 16px;
    overflow: hidden;
}

.flip-card-back-product-image__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-back-content {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.discount-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
    align-items: center;
}

.discount-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 12px;
}

.discount-code button {
    border: 0;
    background: 0;
    cursor: pointer;
}

.discount-code button i {
    font-size: 24px;
}

.discount-code {
    font-size: 32px;
    font-weight: 800;
    color: #000000;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.discount-desc {
    font-size: 24px;
    line-height: 1.2;
    color: #000;
    font-weight: bold;
    margin-bottom: -10px;
}

/* 刮刮卡样式 */
.scratch-card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scratch-card__content {
    position: absolute;
    width: 100%;
    padding: 20px;
    text-align: center;
    z-index: 1;
}

.scratch-card__title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.scratch-card__discount {
    font-size: 32px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 10px;
}

.scratch-card__description {
    font-size: 16px;
    color: #666;
}

.scratch-card__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.my-new-module__item-image {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
}

.my-new-module__item-image-mobile {
    display: none;
}

.my-new-module__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.my-new-module__item:hover .my-new-module__image {
    transform: scale(1.05);
}

.my-new-module__item-title {
    font-size: 22px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    position: relative;
}

.my-new-module__item-content {
    margin-bottom: 20px;
    text-align: center;
    color: #333;
    font-size: 16px;
    position: relative;
}

.my-new-module__button {
    width: 100%;
    height: 48px;
    background-color: #FEDB1E;
    color: #02060B;
    font-size: 18px;
    font-weight: 600;
    border-radius: 60px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    --color-button-background: #FEDB1E;
}


@media screen and (min-width: 960px) and (max-width: 1439px) {
    .discount-code button i {
        font-size: 20px;
    }

    .discount-back-content {
        gap: 12px;
        padding: 0px;
    }

    .discount-content {
        gap: 12px;
    }

    .discount-code {
        font-size: 24px;
    }

    .discount-desc {
        font-size: 16px;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 24px;
    }
}

/* 响应式样式 */
@media screen and (max-width: 960px) {
    .discount-back-content {
        gap: 12px;
        padding: 0px;
    }

    .discount-content {
        gap: 12px;
    }

    .discount-code {
        font-size: 18px;
    }

    .discount-desc {
        font-size: 14px;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 16px;
    }

    .my-new-module__button {
        height: 32px;
        font-size: 14px;
    }
}

@media screen and (max-width: 749px) {
    .discount-code button i {
        font-size: 16px;
    }

    .my-new-module__item-image {
        display: none;
    }

    .my-new-module__item-image-mobile {
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .flip-card {
        aspect-ratio: 343/160;
    }

    .my-new-module__item {
        width: 100%;
    }

    .my-new-module__title {
        font-size: 24px;
    }

    .discount-code {
        font-size: 18px;
        line-height: 25px;
    }

    .discount-desc {
        font-size: 14px;
        line-height: 20px;
    }

    .discount-back-content {
        gap: 0px;
        padding: 0px;
        flex-direction: row;
        justify-content: flex-start;
    }

    .flip-card-back-product-image {
        width: 50%;
        height: 100%;
        aspect-ratio: 171 / 160;
    }

    .discount-content {
        gap: 18px;
        padding: 0 10px;
        width: 50%;
    }

    .my-new-module__button {
        height: 32px;
        font-size: 14px;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 0px;
    }
}

/* 配色方案 */
/* .color-scheme-1 {
    background-color: #f5f5f5;
}

.color-scheme-2 {
    background-color: #e8f4f8;
}

.color-scheme-3 {
    background-color: #f8f5e8;
} */