/* ============ 认证页 Vue3 + Element Plus 组件样式 ============ */

/* 登录/注册等表单页：左侧展示 banner 插画，右侧放登录卡片 */
.auth-body:has(.auth-wrap) {
    /*
     * 用「绝对定位分区」而非 flex/grid：
     * 页面里除 #app 外还有极验、toast、加载遮罩等第三方注入节点，
     * 若用 grid 它们会被当作 grid item 参与排布，可能挤出多余行影响布局。
     * 这里把 #app 固定在右侧区域内，插画作为背景铺在左侧，互不干扰。
     */
    position: relative;
    min-height: 100vh;
    background-color: #eef4ff;
    /*
     * 背景插画经 /api/img/index 签名访问，URL 由后端注入 --banner-url；
     * 变量缺失时回退到内置静态图，保证样式独立可用。
     * 拆成 longhand 而非 background 简写：简写内混用 var() 时，
     * 整条声明会延迟到计算值阶段才校验，可读性与容错都更差。
     */
    background-image: var(--banner-url, url("/static/assets/img/m-banner-bg.png"));
    background-position: left center;
    background-size: 66.667% auto;
    background-repeat: no-repeat;
}

/*
 * 登录页（含扫码 + 表单双栏）单独走「横矩形」方案：
 * 卡片整体拉宽、左右两栏并排，视觉上宽明显大于高。
 * 其余认证页（注册/忘记密码/验证码登录）不含 .auth-body-split，仍用窄卡片。
 */
.auth-body:has(.auth-body-split) {
    background-size: 50% auto;
}

/* 协议/回调等非表单页：保持中性背景 */
.auth-body {
    min-height: 100vh;
    background: var(--bg, #f8fafc);
}

/*
 * 右侧 1/3 区域：承载登录卡片。
 * 注意：Vue 挂载点是 <body> 下的 #app，卡片在 #app 内部，
 * 因此定位要作用在 #app 上；限定 :has(.auth-wrap) 以免影响协议页/回调页。
 */
.auth-body:has(.auth-wrap) > #app {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 66.667%;
    right: 0;
    display: flex;
    padding: 24px;
    /*
     * 用 overflow-y:auto + 卡片 margin:auto 实现「垂直居中且可滚动」。
     * 若改用 align-items:center，当卡片高于视窗时顶部会被裁掉且无法滚动到，
     * 是 flex 居中的经典缺陷。
     */
    overflow-y: auto;
}

/* 卡片本体：限制最大宽度，避免超宽屏下卡片过宽 */
.auth-wrap {
    margin: auto;
    width: 100%;
    max-width: 460px;
    position: relative;
}

/* 语言切换器（卡片右上角） */
.auth-lang-wrap {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
}

.auth-lang-select {
    height: 34px;
    padding: 0 30px 0 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.auth-lang-select:hover {
    border-color: var(--primary, #2563eb);
}

.auth-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 28px 30px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22), 0 8px 24px rgba(15, 23, 42, .12);
    border: 1px solid rgba(37, 99, 235, .10);
}

/*
 * 卡内两栏：左侧扫码登录 + 右侧账号密码表单，左右并排。
 * 窄屏时由下方媒体查询改为上下堆叠，避免挤爆。
 */
.auth-body-split {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;
}

/*
 * 登录页「横矩形」方案。
 * 卡片整体拉宽，配合左右两栏（扫码 + 表单）并排，使宽度明显大于高度，
 * 形成横幅式矩形，而非此前的竖长卡片。
 * 仅在双栏仍为横向排布时（>820px）生效；更窄时由下方媒体查询改为上下堆叠。
 */
@media (min-width: 821px) {
    /* 插画占左半屏，卡片区域从 50% 起，保证二者不重叠 */
    .auth-body:has(.auth-body-split) > #app {
        left: 50%;
    }
    .auth-body:has(.auth-body-split) .auth-wrap {
        max-width: 720px;
    }
    .auth-body:has(.auth-body-split) .auth-card {
        padding: 26px 34px;
    }
    /* 压缩纵向留白，进一步强化「宽 > 高」的矩形观感 */
    .auth-body:has(.auth-body-split) .auth-logo {
        margin-bottom: 12px;
    }
    .auth-body:has(.auth-body-split) .auth-form .el-form-item {
        margin-bottom: 12px;
    }
    .auth-body:has(.auth-body-split) .auth-links {
        margin-top: 16px;
    }
    /* 左栏随卡片加宽同步放大，避免右侧表单显得空 */
    .auth-body:has(.auth-body-split) .auth-qr-col {
        flex: 0 0 168px;
        padding-right: 26px;
    }
    .auth-body:has(.auth-body-split) .auth-qr-box {
        width: 150px;
        height: 150px;
    }
    .auth-body:has(.auth-body-split) .auth-qr-box img,
    .auth-body:has(.auth-body-split) .auth-qr-box canvas {
        width: 138px !important;
        height: 138px !important;
    }
    .auth-body:has(.auth-body-split) .auth-qr-loading {
        margin: 85px 0;
    }
    .auth-body:has(.auth-body-split) .auth-body-split {
        gap: 28px;
    }
}

/*
 * 中等宽度（821–1150px）：右半屏较窄，收紧二维码栏与内边距，
 * 保证表单区仍有可用输入宽度，避免被挤成一条缝。
 */
@media (min-width: 821px) and (max-width: 1150px) {
    .auth-body:has(.auth-body-split) .auth-card {
        padding: 22px 24px;
    }
    .auth-body:has(.auth-body-split) .auth-qr-col {
        flex: 0 0 132px;
        padding-right: 18px;
    }
    .auth-body:has(.auth-body-split) .auth-qr-box {
        width: 118px;
        height: 118px;
    }
    .auth-body:has(.auth-body-split) .auth-qr-box img,
    .auth-body:has(.auth-body-split) .auth-qr-box canvas {
        width: 106px !important;
        height: 106px !important;
    }
    .auth-body:has(.auth-body-split) .auth-qr-loading {
        margin: 68px 0;
    }
    .auth-body:has(.auth-body-split) .auth-body-split {
        gap: 18px;
    }
}

.auth-form-col {
    flex: 1 1 auto;
    min-width: 0;
}

/* 二维码栏（左）：右侧虚线分隔 */
.auth-qr-col {
    flex: 0 0 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 22px;
    border-right: 1px dashed var(--border);
}

.auth-qr-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.auth-qr-box {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.auth-qr-box img,
.auth-qr-box canvas {
    display: block;
    width: 110px !important;
    height: 110px !important;
}

.auth-qr-wrap {
    position: relative;
    display: inline-flex;
    cursor: default;
}

.auth-qr-wrap.is-expired {
    cursor: pointer;
}

.auth-qr-expired {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .88);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(1px);
}

.auth-qr-wrap.is-expired:hover .auth-qr-expired {
    background: rgba(255, 255, 255, .96);
}

.auth-qr-loading {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 70px 0;
}

.auth-qr-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 12px 0 8px;
    line-height: 1.5;
}

.auth-qr-tip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 中等宽度：收紧内边距，插画随 vw 自动缩小 */
@media (max-width: 1280px) {
    .auth-body:has(.auth-wrap) > #app {
        padding: 20px;
    }
}

/* 窄屏 / 手机：取消 2/3 + 1/3 分区，改为单列居中，隐藏背景插画 */
@media (max-width: 1060px) {
    .auth-body:has(.auth-wrap) {
        background: #f5f7fb;
    }
    .auth-body:has(.auth-wrap) > #app {
        position: static;
        padding: 20px 16px;
        min-height: 100vh;
        overflow-y: visible;
    }
    .auth-wrap {
        max-width: 440px;
    }
}

/* 手机竖屏：隐藏二维码栏，表单卡片占满 */
@media (max-width: 820px) {
    .auth-lang-wrap {
        top: 14px;
        right: 14px;
        z-index: 3;
    }
    .auth-wrap {
        width: 100%;
        max-width: 420px;
    }
    /* 手机竖屏：卡片变宽，二维码栏换到表单上方并居中 */
    .auth-body-split {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .auth-form-col {
        width: 100%;
    }
    .auth-qr-col {
        flex: 0 0 auto;
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        padding-right: 0;
        padding-bottom: 14px;
        border-right: none;
        border-bottom: 1px dashed var(--border);
    }
    .auth-qr-title {
        margin-bottom: 0;
    }
    .auth-qr-box {
        width: 104px;
        height: 104px;
    }
    .auth-qr-box img,
    .auth-qr-box canvas {
        width: 94px !important;
        height: 94px !important;
    }
}
html[data-theme="dark"] .auth-lang-select {
    background-color: rgba(31, 41, 55, .92);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, .4);
}

html[data-theme="dark"] .auth-body:has(.auth-wrap) {
    /* 深色下叠一层压暗渐变；插画同样走签名变量，缺失时回退内置图 */
    background-color: #0a0c10;
    background-image:
        linear-gradient(180deg, rgba(15, 17, 21, .55) 0%, rgba(10, 12, 16, .7) 100%),
        var(--banner-url, url("/static/assets/img/m-banner-bg.png"));
    background-position: left center;
    background-size: 66.667% auto;
    background-repeat: no-repeat;
}

/* 登录页（横矩形）：插画占左半屏，与浅色方案保持一致 */
html[data-theme="dark"] .auth-body:has(.auth-body-split) {
    background-size: 50% auto;
}

/* 窄屏 / 手机（深色）：隐藏背景插画 */
@media (max-width: 1060px) {
    html[data-theme="dark"] .auth-body:has(.auth-wrap) {
        background: #0a0c10;
    }
}


.auth-logo {
    text-align: center;
    margin-bottom: 18px;
}

.auth-logo .brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.auth-logo .brand-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: contain;
}

.auth-logo svg {
    color: var(--primary);
    margin-bottom: 10px;
}

.auth-logo h1,
.auth-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--text);
    line-height: 1.3;
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 6px;
}

.auth-form {
    margin-top: 4px;
}

.auth-form .el-form-item {
    margin-bottom: 14px;
}

.auth-form .el-form-item:last-of-type {
    margin-bottom: 0;
}

.auth-form .el-input__wrapper {
    border-radius: var(--radius-sm);
    box-shadow: 0 0 0 1px var(--border) inset;
    padding: 1px 12px;
}

.auth-form .el-input__wrapper.is-focus {
    box-shadow: 0 0 0 1px var(--primary) inset, 0 0 0 3px var(--primary-light);
}

.auth-form .el-input__inner {
    height: 42px;
    line-height: 42px;
    font-size: 14px;
    color: var(--text);
}

.auth-form .el-input__prefix {
    color: var(--text-muted);
}

.auth-form .el-button--large {
    height: 44px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
}

.auth-form .el-button--primary {
    --el-button-bg-color: var(--primary);
    --el-button-border-color: var(--primary);
    --el-button-hover-bg-color: var(--primary-hover);
    --el-button-hover-border-color: var(--primary-hover);
    --el-button-active-bg-color: var(--primary-hover);
    --el-button-active-border-color: var(--primary-hover);
}

.auth-form .btn-block {
    width: 100%;
}

.auth-form .el-form-item + .btn-block,
.auth-form .btn-block + .btn-block {
    margin-top: 12px;
}

/* 一键登录按钮 */
.auth-form .pnvs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    line-height: 1;
    margin-left: 0;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #d1d5db;
    color: #111827;
    background: #ffffff;
    box-shadow: none;
    padding: 0 19px;
}

.auth-form .pnvs-btn .el-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.auth-form .pnvs-btn:hover {
    border-color: var(--primary, #4f46e5);
    color: var(--primary, #4f46e5);
    background: #f5f7ff;
}

/* 一键登录不可用提示 */
.auth-form .pnvs-unavailable {
    margin: 12px 0;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

/* 验证码行 */
.auth-form .captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.auth-form .captcha-row .captcha-input {
    flex: 1;
    min-width: 0;
}

.auth-form .captcha-row .captcha-img {
    flex: 0 0 auto;
    height: 46px;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
}

/* 短信验证码行 */
.auth-form .sms-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.auth-form .sms-row .sms-input {
    flex: 1;
    min-width: 0;
}

.auth-form .sms-row .sms-btn {
    flex: 0 0 auto;
    height: 46px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/* 底部链接 */
.auth-links {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--primary);
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links-sep {
    margin: 0 8px;
    color: var(--border);
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 12px;
    color: var(--text-muted);
    opacity: .8;
}

/* 极验容器 */
#geetest-box {
    margin-bottom: 4px;
}

/* 响应式 */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
    }
}

/* ============ 本机号码一键登录：全屏 UI 框架 ============ */
.pnvs-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 24, 39, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.pnvs-panel {
    width: 100%;
    max-width: 360px;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, .30), 0 1px 3px rgba(16, 24, 40, .12);
    overflow: hidden;
    animation: pnvs-pop .28s cubic-bezier(.34, 1.56, .64, 1);
}

.pnvs-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.pnvs-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.pnvs-panel-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background .2s, color .2s;
}

.pnvs-panel-close:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.pnvs-panel-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 36px;
}

.pnvs-loader {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 22px;
}

.pnvs-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--primary-light);
    border-top-color: var(--primary);
    animation: pnvs-spin 1s linear infinite;
}

.pnvs-loader-core {
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: var(--primary);
    opacity: .85;
    animation: pnvs-pulse 1.4s ease-in-out infinite;
}

.pnvs-status {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    animation: pnvs-text-in .3s ease;
}

.pnvs-tips {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
    animation: pnvs-text-in .3s ease;
}

.pnvs-pre-mount {
    width: 100%;
}

.pnvs-pre-mount:empty {
    display: none;
}

@keyframes pnvs-spin {
    to { transform: rotate(360deg); }
}

@keyframes pnvs-pulse {
    0%, 100% { transform: scale(.85); opacity: .6; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes pnvs-pop {
    from { transform: scale(.9) translateY(12px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes pnvs-text-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.pnvs-fade-enter-active,
.pnvs-fade-leave-active {
    transition: opacity .22s ease;
}

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

/* ============ 协议页面 ============ */
.agreement-wrap {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    background: var(--bg);
}

.agreement-card {
    width: 100%;
    max-width: 720px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .08);
    padding: 32px 28px;
}

.agreement-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin: 0 0 24px;
}

.agreement-content {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.agreement-content h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 24px 0 10px;
}

.agreement-content p {
    margin: 6px 0;
}

.agreement-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 0;
    font-size: 14px;
}

.agreement-updated {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: .75;
    text-align: center;
    margin-bottom: 12px !important;
}

.agreement-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.agreement-footer a {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.agreement-footer a:hover {
    text-decoration: underline;
}

/* ============ 聚合登录 ============ */
.oauth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0 14px;
    color: var(--text-muted);
    font-size: 12px;
}

.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.oauth-divider span {
    padding: 0 14px;
}

.oauth-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.oauth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .2s ease;
    font-size: 13px;
    color: var(--text-secondary);
}

.oauth-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 24, 40, .08);
}

.oauth-btn-label {
    font-weight: 600;
}

.agreement-link {
    color: var(--primary);
    font-weight: 600;
}

.agreement-link:hover {
    text-decoration: underline;
}
/*
 * 协议勾选行：必须允许换行。
 * Element Plus 默认给 .el-checkbox 设了 white-space:nowrap，
 * 中文时文案短看不出问题，但英/日/繁等译文明显更长，会整行溢出卡片被裁切。
 * 这里放开换行并按「多行文本 + 顶部对齐复选框」排版。
 */
.auth-form .el-checkbox {
    white-space: normal;
    height: auto;
    align-items: flex-start;
    line-height: 1.6;
}

.auth-form .el-checkbox__label {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.6;
    font-size: 13px;
}

.auth-form .el-checkbox__input {
    margin-top: 2px;
}

.auth-form .el-checkbox__label a {
    white-space: nowrap;
}

/* 底部链接行：允许换行，避免多语言下溢出 */
.auth-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    row-gap: 6px;
}

/* ============ 绑定已有账号弹窗 ============ */
.bind-tip {
    width: 100%;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 18px;
    padding: 12px 14px;
    background: var(--primary-light);
    border-radius: 10px;
    text-align: left;
}

.bind-form {
    width: 100%;
}

.bind-form .el-form-item {
    margin-bottom: 16px;
}

/* ============ 聚合登录图标 ============ */
.oauth-btn-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    font-size: 20px;
    line-height: 1;
}

.oauth-btn-icon.fa,
.oauth-btn-icon.bi {
    font-style: normal;
}

.oauth-btn-icon.bi::before {
    vertical-align: 0;
}

.oauth-btn-qq .oauth-btn-icon { color: #12b7f5; }
.oauth-btn-wechat .oauth-btn-icon,
.oauth-btn-wx .oauth-btn-icon { color: #07c160; }
.oauth-btn-alipay .oauth-btn-icon { color: #1677ff; }
.oauth-btn-sina .oauth-btn-icon { color: #e6162d; }
.oauth-btn-baidu .oauth-btn-icon { color: #2932e1; }
.oauth-btn-douyin .oauth-btn-icon { color: #000000; }
.oauth-btn-wework .oauth-btn-icon { color: #2f7dff; }
.oauth-btn-dingtalk .oauth-btn-icon { color: #0089ff; }
.oauth-btn-huawei .oauth-btn-icon { color: #cf0a2c; }
.oauth-btn-xiaomi .oauth-btn-icon { color: #ff6900; }
.oauth-btn-feishu .oauth-btn-icon { color: #3370ff; }
.oauth-btn-gitee .oauth-btn-icon { color: #c71d23; }
.oauth-btn-google .oauth-btn-icon { color: #ea4335; }
.oauth-btn-twitter .oauth-btn-icon { color: #1da1f2; }
.oauth-btn-github .oauth-btn-icon { color: #24292f; }
.oauth-btn-microsoft .oauth-btn-icon { color: #00a4ef; }

.oauth-btn-qq { color: #12b7f5; }
.oauth-btn-wechat,
.oauth-btn-wx { color: #07c160; }
.oauth-btn-alipay { color: #1677ff; }
.oauth-btn-sina { color: #e6162d; }
.oauth-btn-baidu { color: #2932e1; }
.oauth-btn-douyin { color: #000000; }
.oauth-btn-wework { color: #2f7dff; }
.oauth-btn-dingtalk { color: #0089ff; }
.oauth-btn-huawei { color: #cf0a2c; }
.oauth-btn-xiaomi { color: #ff6900; }
.oauth-btn-feishu { color: #3370ff; }
.oauth-btn-gitee { color: #c71d23; }
.oauth-btn-google { color: #ea4335; }
.oauth-btn-twitter { color: #1da1f2; }
.oauth-btn-github { color: #24292f; }
.oauth-btn-microsoft { color: #00a4ef; }

.oauth-btn-qq:hover {
    border-color: #12b7f5;
    color: #12b7f5;
    background: rgba(18, 183, 245, .06);
}

.oauth-btn-wechat:hover,
.oauth-btn-wx:hover {
    border-color: #07c160;
    color: #07c160;
    background: rgba(7, 193, 96, .06);
}

.oauth-btn-alipay:hover {
    border-color: #1677ff;
    color: #1677ff;
    background: rgba(22, 119, 255, .06);
}

.oauth-btn-sina:hover {
    border-color: #e6162d;
    color: #e6162d;
    background: rgba(230, 22, 45, .06);
}

.oauth-btn-baidu:hover {
    border-color: #2932e1;
    color: #2932e1;
    background: rgba(41, 50, 225, .06);
}

.oauth-btn-douyin:hover {
    border-color: #000000;
    color: #000000;
    background: rgba(0, 0, 0, .06);
}

.oauth-btn-wework:hover {
    border-color: #2f7dff;
    color: #2f7dff;
    background: rgba(47, 125, 255, .06);
}

.oauth-btn-dingtalk:hover {
    border-color: #0089ff;
    color: #0089ff;
    background: rgba(0, 137, 255, .06);
}

.oauth-btn-huawei:hover {
    border-color: #cf0a2c;
    color: #cf0a2c;
    background: rgba(207, 10, 44, .06);
}

.oauth-btn-xiaomi:hover {
    border-color: #ff6900;
    color: #ff6900;
    background: rgba(255, 105, 0, .06);
}

.oauth-btn-feishu:hover {
    border-color: #3370ff;
    color: #3370ff;
    background: rgba(51, 112, 255, .06);
}

.oauth-btn-gitee:hover {
    border-color: #c71d23;
    color: #c71d23;
    background: rgba(199, 29, 35, .06);
}

.oauth-btn-google:hover {
    border-color: #ea4335;
    color: #ea4335;
    background: rgba(234, 67, 53, .06);
}

.oauth-btn-twitter:hover {
    border-color: #1da1f2;
    color: #1da1f2;
    background: rgba(29, 161, 242, .06);
}

.oauth-btn-github:hover {
    border-color: #24292f;
    color: #24292f;
    background: rgba(36, 41, 47, .06);
}

.oauth-btn-microsoft:hover {
    border-color: #00a4ef;
    color: #00a4ef;
    background: rgba(0, 164, 239, .06);
}

/* ============ 协议弹窗 ============ */
.agreement-panel {
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.agreement-body {
    flex: 1;
    overflow-y: auto;
    text-align: left;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    padding: 4px 2px;
}

.agreement-body p {
    margin: 0 0 10px;
}

.agreement-body .agreement-updated {
    font-size: 12px;
    opacity: .75;
    text-align: center;
    margin-bottom: 14px;
}

.agreement-body h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 18px 0 8px;
}

.agreement-loading,
.agreement-body .agreement-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 0;
}

.agreement-panel-footer {
    padding: 14px 20px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

/* ============ 聚合登录弹窗 ============ */
.oauth-modal-panel {
    max-width: 380px;
}

.oauth-modal-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    vertical-align: middle;
    font-size: 22px;
    line-height: 1;
}

.oauth-modal-icon.fa,
.oauth-modal-icon.bi {
    font-style: normal;
}

.oauth-modal-icon.bi::before {
    vertical-align: 0;
}

.pnvs-panel-head .oauth-modal-icon.fa,
.pnvs-panel-head .oauth-modal-icon.bi {
    color: var(--primary);
}

.oauth-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.oauth-modal-loading {
    position: relative;
    width: 52px;
    height: 52px;
}

.oauth-modal-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

.oauth-modal-agreement {
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.oauth-modal-agreement .el-checkbox {
    white-space: normal;
    line-height: 1.6;
}

.oauth-qrcode-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.oauth-qrcode-box {
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.oauth-qrcode-box img,
.oauth-qrcode-img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.oauth-modal-jump {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

.oauth-modal-jump:hover {
    text-decoration: underline;
}

/* 扫一扫为移动端专属功能，PC 端一律隐藏入口（不依赖屏幕宽度） */
.tb-scan-btn {
    display: none !important;
}