body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    height: 100%;
}

svg {
    display: block;
}

.container {
    width: 100%;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
    background-color: #171A21;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.header, .footer {
    text-align: center;
}

.header {
    background: url(../images/logobg.png) top left no-repeat;
    background-size: 100% auto;
}

.user-info {
    width: 95%;
    height: 80px;
    background: url(../images/userbg.png) center no-repeat;
    background-size: cover;
    margin: 30px auto 0;
    display: flex;
    align-items: center;
    border-radius: 8px;
}

    .user-info .info-left,
    .user-info .info-right {
        flex: 1 0 50%;
    }

/*.info-left .top {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .info-left .top span {
        transform: translate(2px, 2px);
    }*/

.info-left .username span {
    font-size: 1.167rem;
    color: #E5B979;
    word-break: break-word;
}

.info-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    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 {
        line-height: 14px;
        color: #fff;
    }

nav {
    width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.nav-left {
    display: flex;
    column-gap: 1rem;
}

    .nav-left a {
        padding-bottom: 5px;
        color: #808080;
    }

        .nav-left a.active {
            border-bottom: 2px solid #ff8100;
            color: #ff8100;
        }

.nav-right {
    margin-inline-end: 0.5rem;
}

    .nav-right button {
        width: 7rem;
        border-radius: 5px;
    }

.main {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    margin: 0 auto;
}

    .main .content {
        width: 95%;
        margin: 0 auto;
        margin-block: 1.1rem;
    }

/*.navigation ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.navigation li {
    display: flex;
    align-items: center;
    padding: 0.834rem 0.667rem;
    column-gap: 2px;
    background-color: #12151B;
    border-radius: 4px;
    box-sizing: border-box;
    border: 1px solid #12151B;
    color: #AAB8D5;
}

.navigation span {
    line-height: 14px;
}

.navigation li.active {
    border: 1px solid #F3B867;
    color: #F3B867;
}*/

.empty {
    background-color: #1f2229;
    border-radius: 10px;
}

.item {
    margin-bottom: 10px;
    background: #1F2229;
    border-radius: 10px;
    padding: 10px;
}

.activity {
    /*height: 55px;*/
    display: flex;
    column-gap: 8px;
    align-items: center;
}

    .activity .text {
        /*height: 55px;*/
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
        gap: 5px;
    }

.activity-name .title,
.activity-date .title {
    color: #EAC88E;
}

.activity-name {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical; /* 设置盒子布局为纵向 */
    -webkit-line-clamp: 2; /* 限制显示的行数 */
    text-overflow: ellipsis; /* 超出显示省略号 */
}

    .activity-name .details {
        word-break: break-all; /* 超出宽度时强制换行 */
    }

.activity-date {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

    .activity-date .title {
        font-size: 0.86rem;
    }
    .activity-date em {
        font-size: 1.2rem;
        font-weight: 700;
        font-style: normal;
    }

    .activity-date .time {
        color: #838FA0;
        font-size: 0.833rem;
    }

.buttons {
    margin-block-start: 15px;
    text-align: right;
}

    .buttons button {
        width: 7rem;
        border-radius: 5px;
        background: none;
    }

        .buttons button:last-of-type {
            margin-inline-start: 20px;
        }

.footer p {
    margin-block: 1rem 1rem;
    line-height: 1rem;
}

.custom-popup {
    width: 90%;
}

.popup {
    padding: 0 18px 18px;
    min-height: 300px;
}

    .popup p {
        margin-block: 1rem 1rem;
        line-height: 1.45rem;
    }

    .popup .title {
        font-size: 1.333rem;
        text-align: center;
        line-height: 1.333rem;
    }

    .popup .title,
    .popup .title-color {
        color: #EAC88E;
    }

    .popup .time {
        color: #838FA0;
        white-space: nowrap;
    }

    .popup .content {
        background-color: #12151B;
        border-radius: 10px;
        height: 220px;
        width: 100%;
        overflow-y: auto;
        padding: 12px;
        box-sizing: border-box;
    }

        .popup .content pre {
            line-height: 1.45rem;
            color: #838FA0;
            font-family: inherit;
            margin: 0;
            white-space: normal;
        }

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: center;
}

table th {
    font-size: 1rem;
    color: rgb(255 255 255 / 85%);
    padding: 10px;
    letter-spacing: 0.07rem;
    background: #1d1d1d;
    border-right: 1px solid #303030;
}

table td {
    height: 3rem;
    color: #838FA0;
    border-bottom: 1px solid rgb(229 229 229 / 29%);
}

table th:last-of-type {
    border-right: none;
}

.table-container {
    min-height: 320px;
    max-height: 350px;
    overflow-y: auto;
}

/*.table-container thead {
        position: sticky;
        top: 0;
        z-index: 1;
    }*/

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.popup-successed {
    width: 250px;
    height: 250px;
    padding: 35px 18px;
    background: linear-gradient(180deg, #FDEADD 0%, #FFF7F3 100%);
    border-radius: 24px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .popup-successed .text-box {
        color: #5A524E;
    }

        .popup-successed .text-box span {
            color: #9E6F43;
        }

.text-box h2 {
    margin-block: 0.83em;
}

.text-box p {
    margin-block: 1em;
}


.close {
    height: 32px;
    background: url(../images/close.png) center no-repeat;
    background-size: contain;
    margin-block-start: 10px;
    cursor: pointer;
}

@media(min-width: 500px) {
    nav {
        width: 90%;
    }

    .custom-popup {
        width: 450px;
    }

    .table-container {
        max-height: 400px;
    }

    .popup .content {
        height: 320px;
    }
}

.van-empty__image {
    opacity: .6;
}

:root {
    --van-popup-close-icon-size: 11px !important;
}
