/* 优惠券详情页面 */

/* @layer utilities {
    .content-auto {
        content-visibility: auto;
    }

    .carousel-transition {
        transition: transform 0.3s ease-out;
    }

    .carousel-dot {
        @apply w-2 h-2 rounded-full bg-white/50 transition-all duration-300 cursor-pointer;
    }

    .carousel-dot-active {
        @apply w-6 bg-primary;
    }
} */



.couponDetail-mask {

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    z-index: 999;
}


.couponDetail-box {
    background: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    width: 100%;
    height: 90%;
    /* max-width: 400px; */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}



.coupon-detail-opening {

    animation: couponDetailSlide 0.3s cubic-bezier(0.445, 0.05, 0.55, 0.95)
}


@keyframes couponDetailSlide {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0%);
        opacity: 1;
    }
}

.coupon-detail-closeing {
    animation: couponDetailClose 0.3s ease-out;
}

@keyframes couponDetailClose {
    from {
        transform: translateY(0%);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* 轮播组件样式 */
.coupon-detail-carousel {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.coupon-detail-carousel .carousel-container {
    display: flex;
    transition: transform 0.3s ease-out;
}

.coupon-detail-carousel .carousel-item {
    min-width: 100%;
    height: 400px;
}

.coupon-detail-carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.3s;
}

.carousel-dot.active {
    width: 24px;
    background: #FF4400;
}

/* 轮播控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-control.prev {
    left: 8px;
}

.carousel-control.next {
    right: 8px;
}

/* 优惠券信息样式 */
.coupon-detail-info {
    margin-top: 1.5rem;
}

.coupon-detail-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.coupon-detail-desc {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

.coupon-detail-price {
    font-size: 1.75rem;
    font-weight: bold;
    color: #FF4400;
    margin-top: 1rem;
}

.coupon-detail-expiry {
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.5rem;
}

.coupon-detail-action {
    margin-top: 2rem;
}

.coupon-detail-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #FF4400;
    color: white;
    border-radius: 9999px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    border: none;
}

.coupon-detail-button:hover {
    background-color: #E63900;
}

/* 优惠券列表样式 */
.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1rem;
}

.coupon-detail-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.coupon-detail-item img {
    width: 4rem;
    height: 4rem;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 1rem;
}

.coupon-detail-item .info {
    flex: 1;
}

.coupon-detail-item .title {
    font-weight: bold;
    color: #333;
}

.coupon-detail-item .subtitle {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.coupon-detail-item .expiry {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

.coupon-detail-item .action {
    color: #FF4400;
    font-weight: bold;
}

.coupon-detail-quantity,
.coupon-detail-remaining {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.coupon-detail-remaining {
    color: #FF4400;
}

.coupon-detail-location,
.coupon-detail-phone {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #333;
}

.coupon-detail-location i,
.coupon-detail-phone i {
    width: 16px;
    text-align: center;
}

.coupon-detail-location {
    align-items: flex-start;
}

.coupon-detail-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2999;
    display: none;
}


/* 禁止页面滚动 */
.body-fixed {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}