body, html {
    margin: 0;
    padding: 0;
    font-size: 14px;
    height: 100%;
}

svg {
    display: block;
}

.container {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    /*min-height: 100%;*/
    max-width: 500px;
    margin: 0 auto;
    background-color: #FEE8BF;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

.header {
    position: relative;
}

.header-title {
    position: absolute;
    left: 50%;
    top: 15%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
}

    .header-title .top {
        margin-bottom: 3%;
    }

.user-info {
    background: url(../image/userbg.png) center no-repeat;
    background-size: 100% 100%;
    height: 100px;
    width: 100%;
    display: flex;
    box-sizing: border-box;
}

    .user-info .info-left,
    .user-info .info-right {
        flex: 1 0 50%;
    }

.info-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .info-left .top {
        margin-top: -20px;
        margin-left: -30px;
    }

    .info-left .username {
        margin-left: -30px;
    }

        .info-left .username span {
            font-size: 1.167rem;
            color: #F7F798;
            word-break: break-word;
        }

.info-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

    .info-right::before {
        position: absolute;
        left: 0;
        top: 25px;
        content: '';
        width: 2px;
        height: 25px;
        background: linear-gradient(180deg, rgba(255, 235, 127, 0) 0%, rgba(255, 235, 127, 0.4) 47.5%, rgba(255, 235, 127, 0) 100%);
    }

    .info-right .box-mar {
        display: flex;
        align-items: center;
        column-gap: 5px;
        margin-top: -20px;
        margin-left: 30px;
    }

    .info-right a {
        line-height: 1rem;
        color: #fff;
    }

/*nav {
    width: 95%;
    margin: 0 auto;
    padding: 1rem 0;
}

.nav-left {
    display: flex;
    column-gap: 1rem;
    margin-left: 1.5rem;
}

    .nav-left a {
        font-weight: 700;
        padding-bottom: 10px;
        color: #931A07;
        position: relative;
        font-size: 1.1rem;
    }

        .nav-left a.active {
            color: #FB0000;
        }

            .nav-left a.active::after {
                content: '';
                position: absolute;
                left: 50%;
                bottom: 0;
                transform: translateX(-15px);
                width: 30px;
                height: 2px;
                background: #FB0000;
            }*/

.main {
    width: 100%;
    flex: 1;
    /*overflow-y: auto;*/
    margin: 0 auto;
    position: relative;
}

    .main .content {
        width: 95%;
        margin: 0.5rem auto;
    }

.empty {
    background-color: #d7c9af;
    border-radius: 10px;
    margin-top: 1rem;
}

.reward-box {
    margin-top: 1rem;
}

.item-box {
    height: 220px;
    width: 100%;
    background: url(../image/rewardbox.png) center no-repeat;
    background-size: contain;
    margin: 0.5rem 0;
    position: relative;
}

    .item-box .overlay {
        position: absolute;
        left: 0;
        top: 0;
        height: 220px;
        width: 100%;
        background: url(../image/overlay.png) center no-repeat;
        background-size: contain;
    }


.content-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    padding: 0.8rem 0 1.2rem;
    justify-content: space-between;
    row-gap: 0.5rem;
}

    .content-box .top {
        flex-basis: 56%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }

        .content-box .top .title {
            width: 130px;
            font-size: 1.142rem;
            color: #F7F798;
            text-align: center;
        }

        .content-box .top .button {
            flex-basis: 60%;
            width: 100px;
            height: 100%;
            cursor: pointer;
        }

    .content-box .bottom {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }

        .content-box .bottom .text {
            font-size: 1.5rem;
            color: #F7F798;
        }

        .content-box .bottom .date {
            display: flex;
            flex-direction: column;
            align-items: center;
            row-gap: 10px;
        }

            .content-box .bottom .date .time {
                color: #F7F798;
            }

        .content-box .bottom .details {
            text-decoration: underline;
            color: #F7F798;
        }



.footer p {
    margin: 0;
    padding: 0.8rem;
    line-height: 1rem;
    text-align: center;
    color: #a1000082;
    background-color: #ffdfa3;
}

.custom-popup {
    width: 90%;
}

.popup {
    padding: 0 18px 18px;
    min-height: 300px;
    color: #ee0a24;
}

    .popup p {
        margin: 1rem 0;
        line-height: 1.45rem;
    }

    .popup .title {
        font-size: 1.28rem;
        text-align: center;
        line-height: 1.333rem;
    }

    .popup .title,
    .popup .title-color {
        color: #590c00;
    }

    .popup .time {
        color: #838FA0;
        display: inline-block;
        /*white-space: nowrap;*/
    }

    .popup .custom-content {
        background-color: #f1f1f1;
        border-radius: 10px;
        height: 220px;
        width: 100%;
        overflow: hidden;
        overflow-y: auto;
        padding: 12px;
        box-sizing: border-box;
        color: #838FA0;
        line-height: 1.45rem;
    }

        .popup .custom-content p {
            margin: 0;
        }

.table-container {
    min-height: 320px;
    max-height: 350px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: center;
}

table th {
    font-size: 1rem;
    color: #590c00;
    padding: 10px;
    letter-spacing: 0.07rem;
    background: #efefef;
    border-right: 1px solid #ffffff;
}

table td {
    height: 3rem;
    color: #838FA0;
    border-bottom: 1px solid rgb(229 229 229 / 29%);
    font-size: 0.95rem;
}

table th:last-of-type {
    border-right: none;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.overlay-successed {
    background-image: url(../image/overlaybg.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 500px;
}

.popup-successed {
    width: 254px;
    height: 326px;
    padding: 30px 40px;
    background: url(../image/receivebg.png) center no-repeat;
    background-size: contain;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .popup-successed .text-box {
        color: #931A07;
        /*padding-top: 25px;*/
    }

        .popup-successed .text-box .count {
            text-align: left;
            font-weight: 700;
            color: #323233;
            margin: 0.5rem 0 1rem;
        }

            .popup-successed .text-box .count span {
                color: #FA0606;
            }

        .popup-successed .text-box .amount {
            display: flex;
            align-items: baseline;
            justify-content: center;
            column-gap: 5px;
        }

            .popup-successed .text-box .amount h1 {
                font-size: 3.428rem;
                color: #FA0606;
                margin: 0;
            }

            .popup-successed .text-box .amount span {
                color: #931A07;
                font-weight: 700;
                font-size: 1.28rem;
            }

        .popup-successed .text-box .text {
            font-size: 1.2rem;
            color: #C06703;
        }

    .popup-successed .button {
        flex-basis: 20%;
        /*width: 200px;*/
        box-shadow: 0px 4px 5px 0px #1212123d;
        background: linear-gradient(180deg, #fffdc4, #ffee8c);
        border: none;
        color: #fd360d;
        font-size: 1.6rem;
    }

        .popup-successed .button.disabled {
            background: linear-gradient(180deg, #dedede, #c7c7c7);
            color: #999999;
            opacity: 1;
        }

.popup-first {
    width: 254px;
    height: 326px;
    background: url(../image/rewardbox-large.png) center no-repeat;
    background-size: contain;
    font-size: 1.3rem;
}

    .popup-first .content-box {
        padding-bottom: 1.8rem;
        row-gap: 1rem;
    }

    .popup-first .top {
        justify-content: flex-end;
    }

    /*.popup-first .top .title {
        width: 230px;
        font-size: 1.3rem;
    }*/

    .popup-first .date .time .van-count-down {
        font-size: 1.25rem;
    }

.popup-title {
    color: #F7F798;
    text-align: center;
    font-size: 1.4rem;
    padding: 0 10px;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}

    .close {
        height: 32px;
        background: url(../image/close.png) center no-repeat;
        background-size: contain;
        margin-top: 10px;
        cursor: pointer;
    }


@media(min-width: 500px) {
    /*
        PC端展示尺寸
    */
    body, html {
        font-size: 16px;
    }

    /*nav {
        width: 90%; 
    }*/

    .custom-popup {
        width: 450px; /* 领取记录和活动详情弹窗的宽度 */
    }

    .table-container {
        max-height: 400px; /* 领取记录表格最大高度 */
    }

    .popup .custom-content {
        height: 320px; /* 活动详情内容框高度 */
    }

    .item-box,
    .item-box .overlay {
        height: 280px; /* 红包高度和遮罩层高度 */
    }

    .content-box {
        row-gap: 1rem; /* 倒计时与按钮间距 */
    }

    .popup-successed .text-box .amount h1 {
        font-size: 3.15rem;
    }

    .popup-first .bottom .details {
        font-size: 1.175rem;
    }
}

.van-row .van-col:nth-child(odd):last-child {
    padding-right: 8px;
}

.date .time .van-count-down {
    color: inherit;
    font-size: 1rem;
}

.van-tabs__wrap {
    width: 50%;
}

.van-tab {
    font-weight: 700;
    font-size: 1.1rem;
}

.van-empty__description {
    color: #fff;
}
