.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.login-modal.show {
    display: flex;
}

.login-modal > div:first-child {
    background: var(--white);
    width: 420px;
    max-width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.login-tabs {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}
.tab-item {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}
.tab-item::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: var(--primary);
}
.close-btn {
    position: absolute;
    right: 14px;
    top: 12px;
    font-size: 22px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
}
.close-btn:hover {
    color: var(--warn-red);
}

.login-panel {
    padding: 24px;
    display: block;
}

.qrcode-wrap {
    text-align: center;
}
#qrcodeBox {
    width: 184px;
    height: 184px;
    margin: 0 auto 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
#qrcodeBox img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}
#wechatStatus {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    text-align: center;
}
.qrcode-tip {
    font-size: 22px;
    font-weight:700;
    color: var(--text-main);
    margin-bottom: 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.qrcode-tip svg {
    width: 30px;
    height: 30px;
}
.login-tip {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: center;
    display:none;
}
.qq-login-btn {
    width: 100%;
    height: 42px;
    border: none;
    background: #12b7f5;
    color: #fff;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}
.qq-login-btn:hover {
    opacity: 0.92;
}
.qq-login-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 576px) {
    .login-modal > div:first-child {
        width: 100%;
    }
    .login-panel {
        padding: 18px;
    }
    .tab-item {
        padding: 12px 0;
        font-size: 13px;
    }
}

.nav-user .user-info-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    /*border: 1px solid var(--border);*/
    /*border-radius: var(--radius-md);*/
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}
.nav-user .user-info-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: #fcfdff;
}
.user-info-card .user-avatar {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.user-info-card .user-name {
    font-size: 16px;
    line-height: 1;
}