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

* {
    box-sizing: border-box;
}

svg {
    display: block;
}

button {
    border: 1px solid #fff;
    border-radius: 22px;
    color: #fff;
    padding: 7px 22px;
    background: linear-gradient(180deg, #019EFE 0%, #0069FF 100%);
    cursor: pointer;
    white-space: nowrap;
}

p {
    margin: 0;
}

header, main, footer {
    width: 90%;
    margin: 0 auto;
}

footer {
    height: 40px;
}

.container {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    max-width: 500px;
    margin: 0 auto;
    background-color: #0B0E38;
}

    .container .content-wrap {
        background: #0B0E38 url(../images/bg.png) top center no-repeat;
        background-size: 100%;
        color: #fff;
        position: relative;
        display: flex;
        flex-direction: column;
        padding-top: calc(150px + 6vh);
    }

    .user-info {
        width: 100%;
        background-color: #1B204CCC;
        border: 1px solid #2B3B8C;
        border-radius: 8px;
        display: flex;
        padding: 2.5vh 0;
    }

    .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 .username {
        font-size: 1.167rem;
        color: #E5B979;
        word-break: break-word;
        font-weight: bold;
    }

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

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

    .info-right a {
        color: #fff;
        margin-left: 5px;
    }

.mt-8 {
    margin-top: 8px;
}

.border {
    border: 1px solid #242D5C;
}

.blue {
    color: #007CFE;
}

.head-box .title,
.activity-content .title {
    margin: 10px 0;
    font-weight: bold;
    border-left: 5px solid #0069ff;
    padding-left: 5px;
}

.head-box {
    padding: 10px 0;
}

.select-box {
    display: flex;
    align-items: center;
}

    .select-box > * {
        flex: 1 0 50%;
    }

.search-box {
    text-align: center;
}

.select {
    width: 100%;
    height: 3rem;
    background: #1B204C;
    padding: 0 25px 0 15px;
    color: #fff;
    font-size: inherit;
    -webkit-appearance: none; /* 针对 Safari 和 Chrome */
    -moz-appearance: none; /* 针对 Firefox */
    appearance: none;
    background-image: url(../images/down.png);
    background-position: right 5px center;
    background-repeat: no-repeat;
    background-size: 20px;
    outline: none;
}

select::-ms-expand {
    display: none; /* 隐藏 IE 和 Edge 的下拉箭头 */
}

.activity-content {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

    .activity-content .title {
        margin-bottom: 0;
    }

    .activity-content table td {
        height: 2.4rem;
        white-space: nowrap;
    }

.description {
    padding: 8px;
    background-color: #11173E;
}

    .description p.text {
        color: #668ab1;
        font-size: 0.88rem;
        line-height: 1.5rem;
    }


.custom-popup {
    width: 90%;
    border: 2px solid #2B3B8C;
    background: linear-gradient(180deg, #161945 0%, #0B0E38 100%);
}

.popup {
    padding: 0 15px 15px;
    min-height: 300px;
}

    .popup .title {
        margin: 1rem 0;
        font-size: 1.2rem;
        text-align: center;
    }

    .popup .activity-name {
        text-align: center;
        margin-top: -.7rem;
        color: #0069ff;
    }

.details-content {
    margin-top: 2rem;
}

    .details-content .head {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .details-content .head > * {
            flex: 0 0 50%;
        }

        .details-content .head .select {
            width: 90%;
            height: 2.6rem;
            background-position: right 14px center;
            background-color: #0E123D;
            background-size: 17px;
            padding-left: 15px;
            padding-right: 15px;
        }

        .details-content .head .search-btn {
            padding-left: 10px;
        }

.select-container {
    position: relative;
}

/* 下拉列表样式 */
.dropdown-list {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    /*max-height: 300px;
    overflow-y: auto;*/
    background-color: #1B204C;
    border: 1px solid #242D5C;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

    .dropdown-list .results {
        max-height: 300px;
        overflow-y: auto;
    }

    .dropdown-list .selected {
        background: #2b3b8c;
    }

    .dropdown-list .cell:hover {
        background: #2b3b8c;
    }

/* 无结果提示样式 */
.no-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px;
    background-color: #1B204C;
    border: 1px solid #242D5C;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-align: center;
    color: #999;
    z-index: 1000;
}

/* 动画效果 */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.2s;
}

.fade-enter-from, .fade-leave-to {
    opacity: 0;
}



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

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

th, td {
    text-align: center;
    border: 1px solid #242D5C;
}

table th {
    font-size: 1rem;
    color: #557394;
    padding: 10px 0;
    background: #1B204D;
}

table td {
    height: 3rem;
    color: #838FA0;
    font-size: 0.9rem;
    padding: 0 5px;
}

    table td.white {
        color: #fff;
    }

    table td button.custom-button {
        padding: 0.2rem 0;
        width: 4.2rem;
        border: 1px solid #fff;
        border-radius: 22px;
        color: #fff;
        background: linear-gradient(180deg, #019EFE 0%, #0069FF 100%);
        cursor: pointer;
        white-space: nowrap;
        height: auto;
    }

    table td button[disabled] {
        border: 1px solid #FFFFFF33;
        color: #FFFFFF33;
        background: linear-gradient(180deg, #2D3467 0%, #1B204C 100%);
        cursor: default;
    }

.overlay-successed {
    background-image: url(../images/overlaybg.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 500px;
    max-width: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.successed-popup {
    width: 70%;
}

.successed-content {
    border-radius: var(--van-popup-round-border-radius);
    background: linear-gradient(180deg, #161945 0%, #0B0E38 100%);
    border: 2px solid #2B3B8C;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 30px;
    position: relative;
}

    .successed-content .coin {
        margin-top: 20px;
    }

    .successed-content .text {
        font-size: 1.5rem;
        font-weight: bold;
        margin: 10px 0 20px;
    }

    .successed-content .texts {
        margin: 10px 0 15px;
        color: #557394;
        font-size: 0.9rem;
    }

    .successed-content .money {
        padding: 8px 30px;
        background: #000;
        border-radius: 30px;
        font-size: 1.5rem;
    }

    .successed-content button {
        margin-top: 25px;
        width: 200px;
        height: 40px;
    }

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


@media(min-width: 500px) {
    html, body {
        font-size: 15px;
    }

    /*.container {
        padding-top: 255px;
    }*/

    .custom-popup {
        width: 450px;
    }

    .successed-popup {
        width: 300px;
    }

    .table-container {
        max-height: 400px;
    }

    ::-webkit-scrollbar {
        width: 5px;
        height: 5px;
    }

    ::-webkit-scrollbar-track-piece {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 6px;
    }

    ::-webkit-scrollbar-thumb:vertical {
        height: 5px;
        background-color: rgba(125, 125, 125, 0.7);
        border-radius: 6px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background-color: rgba(125, 125, 125, 0.9);
        cursor: pointer;
    }

    ::-webkit-scrollbar-thumb:horizontal {
        width: 5px;
        background-color: rgba(125, 125, 125, 0.7);
        border-radius: 6px;
    }
}

.van-search {
    padding: 0;
    background: none;
}

.van-search__content {
    background: #10132b;
    border-bottom: 1px solid #242D5C;
}

.van-field__control {
    color: #fff;
}

.van-cell {
    background: none;
    color: #fff;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

    .van-cell:after {
        border-bottom: 1px solid #2b3b8c;
    }
