$bg: "./../../assets/firstPay/top_bg.webp";

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.top_box {
    width: 100%;
    height: 15.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    background-image: url($bg);
    background-size: 100% 100%;
    top: 0rem;
    gap: .2rem;

    & .title_lbl {
        color: #e8ecf0;
        font-size: 1.8rem;
        font-weight: 700;
        line-height: 2.4rem;
        margin-top: .8rem;
        letter-spacing: -0.03em;
    }

    & .topImg {
        width: 100%;
        height: auto;
        position: absolute;
        top: 0rem;
    }

    & .lbl_bonus {
        font-size: 3rem;
    }


    & .des_box {
        display: flex;
        flex-direction: column;

        font-size: 1rem;
        line-height: 1.1rem;
        font-weight: 400;
        gap: .3rem;

        color: #fff;

        & .des_item {
            display: flex;
            gap: .2rem;

            & .icon {
                width: 1rem;
                height: 1rem;
            }
        }
    }
}

.scroll_box {
    padding: var(--page-padding);
    margin-top: 11.5rem;
    overflow-y: auto;

    .content {
        width: 100%;

        & .tips_box {
            width: 100%;
            text-align: center;

            color: #fff;
            font-size: 1rem;

            span {
                color: var(--primaryColor);
            }
        }
    }

    .desc_box {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;

        color: var(--textColor);
        text-align: center;
        line-height: 1rem;
        font-size: 1rem;

        >span:first-child {
            color: var(--primaryColor);
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 1.8rem;
            text-align: center;
            text-transform: uppercase;
        }

        .step_1 {
            position: relative;
            width: 100%;
            height: 11rem;

            .child {
                position: absolute;
                width: 11rem;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }

            button {
                width: 10rem;
                height: 2.5rem;
                color: #fff;
                background: var(--buttonColor);
                border-radius: 2rem;
                font-weight: 700;
                font-size: 1.2rem;
            }
        }

        .lbl_step {
            color: var(--primaryColor);
            font-size: 1.2rem;
            font-weight: 700;
            line-height: 1.5rem;
            text-transform: uppercase;
        }

        svg {
            width: 2rem;
            height: 2rem;
        }

        .step_img {
            width: 11rem;
        }

        .step_space {
            margin-top: 2rem;
        }

        .checkin_box {
            background-color: var(--fourthColor);
            width: 22rem;
            height: 4rem;
            border-radius: 0 .4rem .4rem 0;

            display: flex;
            align-items: center;
            position: relative;
            margin-left: 1rem;
            margin-bottom: 1rem;

            img {
                width: 4.5rem;
                overflow: visible;
                position: absolute;
                left: -2rem;
            }

            .days {
                width: 100%;
                display: flex;
                height: 75%;
                margin-left: 4rem;
                gap: .5rem;

                display: flex;
                flex-direction: row;

                .item {
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    font-size: 1rem;

                    >span:first-of-type {
                        color: var(--primaryColor);
                        font-size: 1rem;
                        font-weight: 400;
                    }
                }
            }

        }


        .bet_box {
            display: flex;
            flex-direction: column;
            text-align: left;
            font-size: .9rem;
            position: relative;
            background-color: var(--fourthColor);
            border-radius: .4rem;

            margin-bottom: 4rem;

            >img {
                height: 8rem;
                position: absolute;
            }

            span {
                padding-top: .5rem;
                padding: .5rem 1rem;
            }
        }
    }


    .ps_box {
        width: 100%;

        >div {
            background-color: var(--darkColor);
            padding: 1rem .5rem;
            display: flex;
            border-radius: .4rem;
            flex-direction: column;
            font-size: 1rem;

            >span {
                color: var(--textColor);
            }

            >p {
                margin-top: 1.5rem;

                >span {
                    font-weight: 600;
                }
            }
        }
    }

    .reward_tips {
        text-align: center;
        font-size: .9rem;
        line-height: 1.1rem;
        padding-bottom: .5rem;
    }

    .reward_box {
        width: 100%;
        border-radius: .5rem;
        background: var(--darkColor1);
        margin-top: 1rem;
        min-height: 11rem;


        font-size: 1rem;
        padding: 1rem;
        color: var(--textColor);

        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1rem;

        .title {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1.1rem;
            letter-spacing: -0.05rem;

            >span {
                color: var(--primaryColor);
                font-weight: 700;
            }

            >button {
                width: 9rem;
                height: 2.5rem;
                border-radius: 2rem;
                font-weight: 600;
                background: var(--buttonColor);
                color: var(--textColor);

                &:disabled {
                    background: var(--buttonGray);
                }
            }
        }
    }

    .reward_done {
        color: var(--textGrayColor);
        position: relative;

        .done_flag {
            position: absolute;
            width: 5rem;
            height: 5rem;
            bottom: 1rem;
            right: 1rem;
        }
    }

}


.space_line {
    margin-top: 1rem;
}

.ul_box {
    list-style: none;

    li {
        display: flex;
        align-items: center; // ✅ 垂直居中
        gap: 0.5rem; // ✅ 控制圆点与文字间距

        &::before {
            content: "";
            display: inline-block;
            width: .8rem; // ✅ 控制圆点大小
            height: .8rem;
            border-radius: 50%;
            background-color: var(--textColor); // ✅ 控制颜色
            flex-shrink: 0; // 防止被压缩4
        }
    }
}

.money {
    color: var(--warningColor);
}