/* 全站登录弹窗 */
.login-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s;
}
.login-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
body.login-modal-open {
    overflow: hidden;
}
.login-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}
.login-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    padding: 28px 24px 24px;
    z-index: 1;
    text-align: center;
}
.login-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
}
.login-modal-close:hover {
    color: #334155;
    background: #f1f5f9;
}
.login-modal-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}
.login-modal-desc {
    margin: 0 0 20px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}
.login-modal-unconfigured .login-alert {
    text-align: left;
}
.mobile-nav-login-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    border: none;
    background: none;
    font-size: 15px;
    color: #0d6efd;
    text-align: left;
    cursor: pointer;
}
.mobile-nav-login-btn:hover {
    color: #0b5ed7;
}
button.head-login-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.login-page {
    background: #f5f7fa;
    min-height: 100vh;
}
.login-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 16px 48px;
    box-sizing: border-box;
}
.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    padding: 32px 28px;
    text-align: center;
}
.login-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}
.login-desc {
    margin: 0 0 24px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}
.login-qrcode-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.login-qrcode {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    position: relative;
    z-index: 1;
}
.login-status {
    margin: 0;
    font-size: 14px;
    color: #0d6efd;
}
.login-tip {
    margin: 16px 0 0;
    font-size: 12px;
    color: #94a3b8;
}
.login-alert {
    padding: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    font-size: 13px;
    color: #9a3412;
    text-align: left;
    line-height: 1.6;
}
.login-back {
    margin: 24px 0 0;
    font-size: 13px;
}
.login-back a {
    color: #64748b;
    text-decoration: none;
}
.login-back a:hover {
    color: #0d6efd;
}
.login-qrcode-box {
    position: relative;
    display: inline-block;
    width: 200px;
    height: 200px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.login-qrcode-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 2;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.login-qrcode-spinner.is-hidden {
    opacity: 0;
}
.login-qrcode-spinner span {
    display: block;
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: login-spinner 0.7s linear infinite;
}
@keyframes login-spinner {
    to {
        transform: rotate(360deg);
    }
}
.login-qrcode {
    display: block;
    border: none;
    border-radius: 0;
    background: transparent;
}
.login-refresh-btn {
    margin-top: 4px;
    padding: 6px 16px;
    font-size: 13px;
    color: #0d6efd;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    cursor: pointer;
}
.login-refresh-btn:hover {
    background: #dbeafe;
}
.login-status--error {
    color: #dc2626;
}
.login-status--scanning {
    color: #059669;
}
.login-status--success {
    color: #059669;
    font-weight: 600;
}

/* 会员中心 */
.user-center-page .login-main {
    padding-top: 100px;
}
.user-center-card {
    text-align: left;
    max-width: 480px;
}
.user-center-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}
.user-center-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.user-center-avatar--placeholder {
    display: block;
    background: linear-gradient(135deg, #93c5fd, #3b82f6);
}
.user-center-name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}
.user-center-id {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}
.user-center-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.user-center-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.user-center-list span {
    color: #64748b;
}
.user-center-list em {
    font-style: normal;
    color: #334155;
}
.user-center-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
