/* 全局样式 */
body {
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    background-image: url("../images/bg.jpg");
    background-size: cover;
    min-height: 100vh;
    padding-bottom: 24px;
}

/* Banner样式 */
.banner {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 导航菜单样式 */
.nav-menu {
    margin: 12px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: #fff;
    border-radius: 6px;
    padding: 6px;
}

.nav-item {
    width: 33.33%;
    text-align: center;
    padding: 10px;
}

.nav-item .nav-item-icon {
    height: 28px;
    width: auto;
}

.nav-item p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #333;
}

/* 优惠券列表样式 */
.coupon-list {
    padding: 12px;
}

.coupon-item {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    -webkit-mask-image: radial-gradient(circle at right 80px bottom 10px, transparent 10px, #FF5556 10.5px), linear-gradient(transparent 25%, #FF5556 0, #FF5556 75%, transparent 0);
    -webkit-mask-size: 100%, 2px 16px;
    -webkit-mask-repeat: repeat, repeat-y;
    -webkit-mask-position: 0 10px, calc(100% - 80px);
    -webkit-mask-composite: source-out;
    mask-composite: subtract;
}

.coupon-item:last-child {
    margin-bottom: 0;
}

.coupon-left {
    width: 65px;
    height: 65px;
    background: #FFE4E1;
    color: #FF5722;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 15px;
}

.coupon-left .price {
    font-size: 18px;
    font-weight: bold;
}

.coupon-left .type {
    font-size: 10px;
    margin-top: 5px;
}

.coupon-center {
    flex: 1;
    padding: 15px;
    overflow: hidden;
    position: relative;
}

.coupon-center .title {
    font-size: 15px;
    font-weight: 400;
    color: #333;
    margin-bottom: 4px;
}

.coupon-center .desc {
    font-size: 11px;
    color: #333;
    /* 一行展示，超出变成省略号 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.coupon-center .remain {
    font-size: 11px;
    color: #999999;
    margin-bottom: 2px;
}

.coupon-right {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coupon-right .lq-btn {
    width: 60px;
    height: 60px;
}

/* 查看更多按钮样式 */
.more-btn {
    width: 186px;
    height: 42px;
    opacity: 1;
    border-radius: 24px;
    background: linear-gradient(270deg, rgba(252, 42, 0, 1) 0%, rgba(255, 144, 1, 1) 100%);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px auto 0;
}

.success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.success-popup img {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes scaleUp {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }

    60% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}