/* 新人首单券 - 前台样式 */
.nuc-home-strip {
    margin: 1.2rem 0 0;
}
.nuc-home-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1.4rem 1.6rem;
    border-radius: var(--border-radius, 0.4rem);
    background: linear-gradient(105deg, #fff7f0 0%, #ffffff 55%, #f3faf5 100%);
    border: 0.1rem solid #f0e2d4;
}
.nuc-home-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    min-width: 0;
}
.nuc-tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 0.3rem;
    background: #e85d4c;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.6;
}
.nuc-home-text strong {
    font-size: 1.6rem;
    color: #2b2b2b;
}
.nuc-home-text em {
    font-style: normal;
    color: #777;
    font-size: 1.3rem;
}
.nuc-home-action {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.nuc-home-action .am-btn-danger,
.nuc-home-action .am-btn-danger:hover,
.nuc-home-action .am-btn-danger:focus,
.nuc-home-action .am-btn-danger:active,
.nuc-home-action .am-btn-danger.am-active {
    background: #e85d4c !important;
    border-color: #e85d4c !important;
    color: #fff !important;
    text-shadow: none;
    box-shadow: none;
}
.nuc-home-action .am-btn-default,
.nuc-home-action .am-btn-default:hover,
.nuc-home-action .am-btn-default:focus,
.nuc-home-action .am-btn-default:active {
    color: #666 !important;
    background: #fff !important;
    border-color: #ddd !important;
}

.nuc-goods-tip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.8rem;
    padding: 0.7rem 0.9rem;
    background: #fff8f3;
    border: 0.1rem dashed #f0c9b0;
    border-radius: var(--border-radius, 0.4rem);
    color: #8a4b2d;
    font-size: 1.3rem;
}
.nuc-goods-tip strong {
    color: #e85d4c;
}
.nuc-goods-tip a {
    margin-left: auto;
    color: #e85d4c;
    white-space: nowrap;
}

.nuc-buy-tip {
    margin: 1rem 0 0;
    padding: 1rem 1.2rem;
    background: #f3faf5;
    border: 0.1rem solid #d7eadc;
    border-radius: var(--border-radius, 0.4rem);
    color: #2f6b45;
    font-size: 1.3rem;
}
.nuc-buy-tip strong {
    color: #e85d4c;
}

body.nuc-modal-open {
    overflow: hidden;
}
.nuc-modal {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.6rem;
    box-sizing: border-box;
    visibility: hidden;
    pointer-events: none;
}
.nuc-modal.is-visible {
    visibility: visible;
    pointer-events: auto;
}
.nuc-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 22, 0.58);
    opacity: 0;
    transition: opacity 0.28s ease;
}
.nuc-modal.is-visible .nuc-modal-mask {
    opacity: 1;
}
.nuc-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 38rem;
    padding: 2.4rem 2rem 2rem;
    border-radius: 1.6rem;
    background: linear-gradient(165deg, #ffffff 0%, #fff9f5 100%);
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.22);
    box-sizing: border-box;
    text-align: center;
    transform: translateY(1.6rem) scale(0.96);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
}
.nuc-modal.is-visible .nuc-modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.nuc-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: #888;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.nuc-modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
}
.nuc-modal-header {
    margin-bottom: 1.2rem;
}
.nuc-modal-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b4a 0%, #e85d4c 100%);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.5;
}
.nuc-modal-title {
    margin: 1rem 0 0;
    font-size: 2rem;
    font-weight: 700;
    color: #2b2b2b;
    line-height: 1.3;
}
.nuc-modal-body {
    margin-bottom: 1.8rem;
}
.nuc-modal-amount {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    min-width: 12rem;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, #fff3ec 0%, #ffe8dc 100%);
    border: 0.1rem dashed #f0c9b0;
}
.nuc-modal-amount em {
    font-style: normal;
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1;
    color: #e85d4c;
}
.nuc-modal-desc {
    margin: 1.2rem 0 0;
    font-size: 1.3rem;
    color: #777;
    line-height: 1.5;
}
.nuc-modal-footer {
    display: flex;
    justify-content: center;
}
.nuc-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18rem;
    min-height: 4.4rem;
    padding: 0 2.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b4a 0%, #e85d4c 100%);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 0.6rem 1.6rem rgba(232, 93, 76, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nuc-modal-btn:hover,
.nuc-modal-btn:focus {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 0.8rem 2rem rgba(232, 93, 76, 0.42);
}

.nuc-user-page {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}
.nuc-coupon-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}
.nuc-coupon-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem;
    border: 0.1rem solid #f0e2d4;
    border-radius: 0.6rem;
    background: linear-gradient(90deg, #fff7f0, #fff);
}
.nuc-coupon-price {
    min-width: 8rem;
    text-align: center;
    color: #e85d4c;
}
.nuc-coupon-price em {
    font-style: normal;
    font-size: 1.4rem;
}
.nuc-coupon-price strong {
    font-size: 2.8rem;
    line-height: 1;
}
.nuc-coupon-meta {
    flex: 1;
    min-width: 0;
}
.nuc-coupon-meta strong {
    display: block;
    font-size: 1.5rem;
    color: #333;
}
.nuc-coupon-meta p {
    margin: 0.3rem 0 0;
    color: #888;
    font-size: 1.2rem;
}
.nuc-coupon-status {
    flex-shrink: 0;
    color: #2f6b45;
    font-size: 1.3rem;
}
.nuc-coupon-card.status-2,
.nuc-coupon-card.status-3 {
    opacity: 0.55;
    filter: grayscale(0.3);
}
.nuc-coupon-card.status-2 .nuc-coupon-status,
.nuc-coupon-card.status-3 .nuc-coupon-status {
    color: #999;
}

@media (max-width: 640px) {
    .nuc-home-inner {
        padding: 1.2rem;
        flex-direction: column;
        align-items: stretch;
    }
    .nuc-home-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .nuc-home-text strong {
        font-size: 1.4rem;
        line-height: 1.4;
    }
    .nuc-home-text em {
        font-size: 1.2rem;
        line-height: 1.5;
    }
    .nuc-home-action {
        width: 100%;
        flex-direction: column;
    }
    .nuc-home-action .am-btn {
        width: 100%;
        min-height: 4rem;
        font-size: 1.4rem;
        line-height: 1.4;
        padding: 0.9rem 1.2rem;
    }
    .nuc-modal {
        padding: 1.2rem;
        align-items: flex-end;
    }
    .nuc-modal-dialog {
        max-width: none;
        border-radius: 1.6rem 1.6rem 0 0;
        padding: 2rem 1.6rem calc(1.6rem + env(safe-area-inset-bottom));
    }
    .nuc-modal-title {
        font-size: 1.8rem;
    }
    .nuc-modal-amount em {
        font-size: 3rem;
    }
    .nuc-modal-btn {
        width: 100%;
        min-width: 0;
    }
    .nuc-coupon-card {
        flex-wrap: wrap;
    }
}
