/* ============================================================
 * 文件: /static/css/user/idp.css
 * 描述: 赵萝卜统一身份认证 · 全站样式（登录/注册/资料/实名/授权）
 * ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
        'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: #2980b9; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶栏 ---------- */
.idp-top {
    background: #2c3e50;
    color: #fff;
    padding: 14px 0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .12);
}
.idp-top .inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.idp-top .brand { color: #fff; font-weight: 600; font-size: 16px; }
.idp-top nav a { color: #dbe4ec; margin-left: 16px; font-size: 13px; }

/* ---------- 布局 ---------- */
.wrap {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 16px 56px;
}
.card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 36px rgba(15, 23, 42, .08);
    padding: 30px 30px 26px;
}
.card.wide { max-width: 760px; }

.card h1 { font-size: 22px; margin-bottom: 6px; }
.card .sub { color: #7f8c8d; font-size: 13.5px; margin-bottom: 22px; }

/* 窄屏：卡片铺满、留白收紧，避免内容被挤成一条 */
@media (max-width: 640px) {
    .wrap { padding: 18px 10px 40px; }
    .card { padding: 22px 16px 20px; border-radius: 14px; }
    .card h1 { font-size: 20px; }
    .card .sub { font-size: 13px; margin-bottom: 18px; }
}

footer.idp-foot {
    text-align: center;
    color: #a6b1bb;
    font-size: 12px;
    padding: 0 0 28px;
}

/* ---------- 登录页：左右滑动的分步页面 ---------- */
.login-card { padding: 0; max-width: 560px; overflow: hidden; }
.login-stage {
    position: relative;
    overflow: hidden;
    transition: height .38s cubic-bezier(.32, .72, .28, 1);
}
.login-track {
    display: flex;
    width: 100%;
    transition: transform .42s cubic-bezier(.32, .72, .28, 1);
    will-change: transform;
    touch-action: pan-y;
}
.login-panel {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
    padding: 26px 28px 28px;
}
.login-panel h1 { font-size: 22px; margin-bottom: 8px; }
.login-panel .sub { color: #7f8c8d; font-size: 13.5px; margin-bottom: 20px; }

.lp-icon { font-size: 34px; line-height: 1; margin-bottom: 12px; }
.lp-desc { color: #5b6b7b; font-size: 14px; line-height: 1.9; margin: 0 0 22px; }
.lp-hint { color: #95a5a6; font-size: 12.5px; line-height: 1.8; margin-top: 16px; }
.lp-countdown { color: #a6b1bb; text-align: center; }
.lp-actions { display: flex; gap: 10px; }
.lp-actions .btn { flex: 1 1 0; }
.lp-two { display: flex; gap: 10px; }
.lp-two .btn { flex: 1 1 50%; }

.lp-back {
    border: none;
    background: none;
    color: #7f8c8d;
    font-family: inherit;
    font-size: 13px;
    padding: 0 0 12px;
    cursor: pointer;
}
.lp-back:hover { color: #2c3e50; }

.lp-lead { text-align: center; font-size: 14px; color: #41546b; margin: 2px 0 14px; }

/* 登录首页顶部那句「推荐选择您喜欢的第三方以继续」 */
.lp-welcome {
    text-align: center;
    font-size: 19px;
    font-weight: 600;
    color: #2c3e50;
    margin: 6px 0 18px;
    line-height: 1.5;
}

.lp-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: #a6b1bb;
    font-size: 12.5px;
    white-space: nowrap;
}
.lp-divider::before,
.lp-divider::after { content: ''; flex: 1; height: 1px; background: #eef2f6; }

/* 第三方：悬浮小胶囊 */
.providers-float {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.provider-float {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid #e6ecf2;
    background: #f7f9fb;
    color: #2c3e50;
    font-size: 13.5px;
    text-decoration: none;
    animation: floatY 4.2s ease-in-out infinite;
    transition: box-shadow .18s, border-color .18s;
}
.provider-float:nth-child(2) { animation-delay: .55s; }
.provider-float:nth-child(3) { animation-delay: 1.1s; }
.provider-float:nth-child(4) { animation-delay: 1.65s; }
.provider-float:hover {
    border-color: #cfd9e3;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .09);
}
.provider-float img,
.provider-float .pf-fallback {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}
.provider-float .pf-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2c3e50;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@media (max-width: 640px) {
    .login-panel { padding: 22px 16px 24px; }
    .login-panel h1 { font-size: 20px; }
}

@media (max-width: 380px) {
    .lp-actions, .lp-two { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .provider-float { animation: none; }
    .login-track { transition: none; }
}

/* 两步验证页：从右侧滑入 */
.mfa-slide { animation: mfaSlideIn .42s cubic-bezier(.32, .72, .28, 1) both; }
@keyframes mfaSlideIn {
    from { opacity: 0; transform: translateX(26px) scale(.988); }
    to { opacity: 1; transform: none; }
}


/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 12px; color: #95a5a6; margin-top: 4px; }
.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=tel],
.field input[type=number],
.field select,
.field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #dfe6ec;
    border-radius: 9px;
    font-size: 14.5px;
    font-family: inherit;
    background: #fbfcfd;
    color: #2c3e50;
    transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: #e67e22;
    background: #fff;
}
.field textarea { min-height: 90px; resize: vertical; }

.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.row.tight { gap: 8px; }

.btn {
    display: inline-block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: #e67e22;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, opacity .15s;
}
.btn:hover:not(:disabled) { background: #d35400; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: #fff; color: #2c3e50; border: 1px solid #dfe6ec; }
.btn.ghost:hover:not(:disabled) { background: #f2f5f8; }
.btn.small { width: auto; padding: 9px 16px; font-size: 13.5px; }
.btn.danger { background: #e74c3c; }
.btn.link {
    width: auto; background: none; color: #2980b9;
    padding: 0; font-size: 13.5px; font-weight: 500;
}
.btn.link:hover { background: none; text-decoration: underline; }

.actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.actions .btn { width: auto; flex: 1; }

/* ---------- 提示 ---------- */
.alert {
    display: none;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 13.5px;
    margin-bottom: 16px;
    line-height: 1.6;
}
.alert.show { display: block; }
.alert.error { background: #fdecea; color: #a02c22; border: 1px solid #f5b7b1; }
.alert.ok { background: #eafaf1; color: #1b6b42; border: 1px solid #bfe8d0; }
.alert.info { background: #eef4ff; color: #2b4a8b; border: 1px solid #c9d8f7; }
.alert.warn { background: #fff8ec; color: #7a5312; border: 1px solid #f5d9a8; }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tab {
    padding: 7px 14px;
    border-radius: 18px;
    font-size: 13px;
    background: #eef2f6;
    color: #41546b;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.tab.on { background: #2c3e50; color: #fff; }
.tab:disabled { opacity: .45; cursor: not-allowed; }
.panel { display: none; }
.panel.on { display: block; }

/* ---------- 人机验证（弹窗式，页面无需预留挂载点） ---------- */

/* ---------- 三方登录 ---------- */
.providers { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.provider {
    flex: 1;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #dfe6ec;
    border-radius: 10px;
    background: #fff;
    color: #2c3e50;
    font-size: 14px;
}
.provider:hover { background: #f7f9fb; text-decoration: none; }

/* ---------- 资料页 ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }

/* 个人中心里内嵌的「改邮箱 / 改手机号」表单 */
.cc-form { margin-top: 4px; }
.cc-methods { margin: 4px 0 14px; }
.cc-methods .tabs { margin-bottom: 12px; }
.cc-code { margin-top: 14px; }
.cc-unbind { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #eef2f6; }

/* 恢复助记词 */
.mfa-recovery {
    margin: 18px 0 0;
    padding: 14px 16px;
    border: 1px dashed #f0d9b5;
    border-radius: 10px;
    background: #fffaf3;
}
.mfa-recovery h3 { font-size: 14px; margin: 0 0 8px; color: #8a5a15; }
.recovery-words {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
    margin: 10px 0 12px;
    padding-left: 24px;
    font-size: 14px;
    color: #2c3e50;
}
.recovery-words li { line-height: 1.8; }
@media (max-width: 480px) { .recovery-words { grid-template-columns: 1fr; } }
.mfa-saved { display: block; margin-top: 12px; }

/* 左侧选项 + 右侧内容 */
.profile-layout { display: flex; gap: 22px; align-items: flex-start; margin-top: 6px; }
.profile-nav {
    flex: 0 0 168px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: sticky;
    top: 16px;
}
.profile-nav .nav-item {
    text-align: left;
    padding: 9px 12px;
    border: none;
    border-radius: 9px;
    background: none;
    font-family: inherit;
    font-size: 14px;
    color: #41546b;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.profile-nav .nav-item:hover { background: #eef2f6; }
.profile-nav .nav-item.on { background: #2c3e50; color: #fff; }
.profile-nav .nav-item.danger { color: #c0392b; }
.profile-nav .nav-item.danger:hover { background: #fdecea; }
.profile-nav .nav-item.danger.on { background: #c0392b; color: #fff; }
.profile-nav .nav-sep-line { height: 1px; background: #eef2f6; margin: 6px 6px; }

/* 移动端：菜单收起 / 展开按钮（桌面端隐藏） */
.profile-nav-toggle { display: none; }

.profile-body { flex: 1; min-width: 0; }
.pane { display: none; }
.pane.on { display: block; animation: paneIn .16s ease-out; }
@keyframes paneIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.pane h2 { font-size: 16px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.pane h3 { font-size: 15px; margin: 0 0 12px; }

@media (max-width: 720px) {
    .profile-layout { flex-direction: column; gap: 12px; }

    /* 顶部的「☰ 当前项 ▾」按钮 */
    .profile-nav-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 11px 14px;
        border: 1px solid #e3e9ef;
        border-radius: 10px;
        background: #fbfcfd;
        color: #2c3e50;
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        text-align: left;
    }
    .profile-nav-toggle .nav-toggle-icon { font-size: 15px; color: #41546b; }
    .profile-nav-toggle .nav-toggle-current {
        flex: 1;
        min-width: 0;
        font-weight: 500;
        color: #41546b;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .profile-nav-toggle .nav-toggle-caret {
        color: #95a5a6;
        font-size: 12px;
        transition: transform .18s;
    }
    .profile-nav-toggle.open { border-color: #cfd9e3; background: #fff; }
    .profile-nav-toggle.open .nav-toggle-caret { transform: rotate(180deg); }

    /* 菜单：默认收起，点开变成竖排列表 */
    .profile-nav {
        display: none;
        flex: none;
        flex-direction: column;
        gap: 2px;
        width: 100%;
        position: static;
        overflow: visible;
        padding: 6px;
        border: 1px solid #e3e9ef;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
    }
    .profile-nav.open { display: flex; }
    .profile-nav .nav-item { white-space: normal; width: 100%; }
    .profile-nav .nav-sep-line { margin: 5px 8px; }
}

.section {
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    background: #fbfcfd;
}
.section h2 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.section .muted { color: #7f8c8d; font-size: 13px; }

.avatar-box { display: flex; align-items: center; gap: 16px; }
.avatar-box img, .avatar-box .ph {
    width: 72px; height: 72px; border-radius: 50%;
    object-fit: cover; background: #ecf0f1;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #bdc3c7; flex-shrink: 0;
}

.badge {
    display: inline-block;
    font-size: 12px;
    padding: 1px 9px;
    border-radius: 10px;
    background: #eef2f6;
    color: #41546b;
}
.badge.ok { background: #eafaf1; color: #1b6b42; }
.badge.warn { background: #fff8ec; color: #7a5312; }
.badge.err { background: #fdecea; color: #a02c22; }

.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 10px;
}
.list-item .grow { flex: 1; min-width: 0; }
.list-item .name { font-weight: 600; font-size: 14px; }
.list-item .meta { font-size: 12px; color: #95a5a6; word-break: break-all; }

.secret {
    font-family: 'Consolas', 'Monaco', monospace;
    background: #1f2a36;
    color: #dfe8f1;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
    letter-spacing: 2px;
    word-break: break-all;
    margin: 8px 0;
}

.spinner {
    width: 26px; height: 26px;
    border: 3px solid #e3e9ee;
    border-top-color: #e67e22;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.center { text-align: center; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.small { font-size: 12.5px; color: #7f8c8d; }
.divider {
    display: flex; align-items: center; gap: 10px;
    color: #b0bcc6; font-size: 12px; margin: 20px 0;
}
.divider::before, .divider::after {
    content: ''; flex: 1; height: 1px; background: #eef2f6;
}

.toast {
    position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
    background: #2c3e50; color: #fff; font-size: 13.5px;
    padding: 11px 20px; border-radius: 8px;
    opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 90;
}
.toast.show { opacity: 1; }

/* ---------- 身份认证首页 ---------- */
.idp-hero { padding-bottom: 6px; margin-bottom: 22px; border-bottom: 1px solid #eef2f6; }
.idp-hero h1 { font-size: 26px; line-height: 1.35; margin-bottom: 10px; }
.idp-hero .sub { color: #7f8c8d; font-size: 14px; margin-bottom: 20px; }

.idp-state { margin-bottom: 8px; }
.idp-user { margin-bottom: 16px; }
.idp-user .name { font-weight: 600; font-size: 16px; }
.idp-user .meta { color: #7f8c8d; font-size: 13px; }

.idp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 640px) { .idp-grid { grid-template-columns: 1fr; } }

.idp-feature {
    display: block;
    padding: 16px 18px;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    background: #fff;
    color: #2c3e50;
    transition: border-color .15s, box-shadow .15s;
}
.idp-feature:hover {
    text-decoration: none;
    border-color: #f0c9a0;
    box-shadow: 0 6px 18px rgba(230, 126, 34, .08);
}
.idp-feature strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.idp-feature span { display: block; font-size: 12.5px; color: #7f8c8d; line-height: 1.7; }

/* ---------- 强调文字 ---------- */
.text-big { font-size: 15.5px; line-height: 1.9; color: #2c3e50; }
.text-big a { font-weight: 600; }

/* ---------- MFA 二维码 ---------- */
.mfa-qr {
    margin: 6px 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
}
.mfa-qr img {
    display: block;
    padding: 10px;
    background: #fff;
    border: 1px solid #e3eaf1;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.06);
}

/* ---------- 右上角通知 ---------- */
.idp-toast-wrap {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.idp-toast-item {
    pointer-events: auto;
    min-width: 200px;
    max-width: 360px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.65;
    box-shadow: 0 10px 30px rgba(20, 40, 70, 0.18);
    border-left: 4px solid #2b7cd3;
    opacity: 0;
    transform: translateX(14px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    cursor: pointer;
    word-break: break-word;
}
.idp-toast-item.show {
    opacity: 1;
    transform: none;
}
.idp-toast-item.ok { border-left-color: #1b9e5a; }
.idp-toast-item.error { border-left-color: #c0392b; }
.idp-toast-item.warn { border-left-color: #d68910; }
.idp-toast-item.info { border-left-color: #2b7cd3; }
@media (max-width: 560px) {
    .idp-toast-wrap { top: 12px; left: 12px; right: 12px; }
    .idp-toast-item { max-width: none; }
}

/* ---------- 协议勾选 ---------- */
.agree-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 0 16px;
    font-size: 13px;
    line-height: 1.7;
    color: #5b6b7b;
    cursor: pointer;
}
.agree-line input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    accent-color: #e67e22;
}
.agree-line a { color: #2b7cd3; }



/* ---------- 一键登录网络提示 ---------- */
.net-hint {
    padding: 14px 16px;
    border-radius: 12px;
    border-left: 4px solid #2b7cd3;
    font-size: 14px;
    line-height: 1.7;
}
.net-hint strong { font-size: 15px; }
.net-hint.warn { border-left-color: #e6a23c; }
.net-hint.ok { border-left-color: #1b9e5a; }
.net-hint-desc {
    margin-top: 4px;
    font-size: 13px;
    color: #5b6b7b;
    line-height: 1.7;
}
.net-hint.show { display: block !important; }

/* ---------- 营销订阅勾选（完善资料 / 绑定邮箱） ---------- */
.optin-box {
    margin: 16px 0;
    padding: 14px 16px;
    background: #fff7ec;
    border: 1px solid #f3d9b5;
    border-left: 4px solid #e67e22;
    border-radius: 10px;
}
.optin-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #2c3e50;
    cursor: pointer;
}
.optin-label input[type="checkbox"] {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #e67e22;
    cursor: pointer;
}
.optin-label strong { color: #c9660a; }
.optin-hint {
    margin-top: 6px;
    padding-left: 28px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #8a6b45;
}

/* ---------- 通行密钥列表 ---------- */
.pk-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-top: 10px;
    background: #f7f9fb;
    border: 1px solid #eef2f6;
    border-radius: 10px;
}
.pk-item b { color: #2c3e50; font-size: 14px; }
.pk-item .small { color: #7f8c8d; margin-top: 4px; }

/* ---------- 登录/注册前的协议同意弹窗 ---------- */
.consent-mask {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, .48);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.consent-card {
    width: 440px;
    max-width: 100%;
    max-height: 86vh;
    overflow: auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 24px 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}
.consent-card h2 { margin: 0 0 10px; font-size: 18px; color: #1f2937; }
.consent-links { margin: 12px 0 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.consent-links a { color: #e67e22; font-weight: 600; text-decoration: none; }
.consent-links a:hover { text-decoration: underline; }
.consent-tip { color: #7f8c8d; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.consent-actions .btn { min-width: 108px; }
@media (max-width: 520px) {
    .consent-card { padding: 20px 18px 16px; }
    .consent-actions { flex-direction: column-reverse; }
    .consent-actions .btn { width: 100%; }
}

/* ---------- 个人中心 · 赞助管理 ---------- */
.sp-box {
    margin-top: 14px;
    padding: 14px 16px;
    background: #f7f9fb;
    border: 1px solid #eef2f6;
    border-radius: 12px;
}
.sp-box-title { font-weight: 700; color: #2c3e50; margin-bottom: 6px; }
.sp-box .hint { margin-top: 6px; }
.sp-h3 { font-size: 15px; color: #2c3e50; margin: 22px 0 8px; }
.sp-confirm { background: #fffaf3; border-color: #f5d7b3; }
.sp-confirm select, .sp-confirm input[type="number"] {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #dbe4ee;
    border-radius: 9px;
    font-size: 14px;
    background: #fff;
}

/* ---------- MFA 绑定指引：App 下载二维码 ---------- */
.mfa-guide { margin: 16px 0 6px; border: 1px solid #f5d9a8; background: #fffaf0; border-radius: 10px; padding: 14px 16px; }
.mfa-guide h3 { margin: 0 0 6px; font-size: 15px; color: #7a5312; }
.mfa-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 8px; }
.mfa-app { text-align: center; background: #fff; border: 1px solid #f3e2c7; border-radius: 10px; padding: 10px 8px; }
.mfa-app-qr { display: flex; justify-content: center; margin-bottom: 6px; min-height: 96px; align-items: center; }
.mfa-app-name { font-size: 13px; font-weight: 600; color: #2c3e50; word-break: break-word; }
.mfa-app-note { font-size: 11.5px; color: #8a97a5; line-height: 1.5; margin: 4px 0; }
.mfa-app a { font-size: 12px; }

/* ---------- 站内通知（邮箱为占位符的账号）---------- */
#inappBox { margin-top: 26px; padding-top: 18px; border-top: 1px dashed #e3e8ee; }
.inapp-h { margin: 0 0 6px; font-size: 15px; color: #2c3e50; }
.inapp-item { border: 1px solid #e3e8ee; border-left-width: 3px; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.inapp-item.unread { border-color: #f5d9a8; border-left-color: #f0a64a; background: #fffaf0; }
.inapp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.inapp-title { font-size: 14px; font-weight: 600; color: #2c3e50; }
.inapp-time { font-size: 12px; color: #8a97a5; white-space: nowrap; }
.inapp-body { font-size: 13px; line-height: 1.7; color: #4a5568; word-break: break-word; }

/* ---------- 图形验证码（学校账号核验页，取自 /api/stuxkjcsl/captcha.php） ---------- */
/* 与 .field input 同高、同边框、同圆角，视觉上就是站点自己的一组控件 */
.field-captcha { display: flex; gap: 10px; align-items: stretch; }
.field-captcha input[type=text] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}
.field-captcha img {
    flex: 0 0 auto;
    width: 122px;
    height: 46px;
    padding: 2px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #dfe6ec;
    border-radius: 9px;
    cursor: pointer;
}
.field-captcha img:hover { border-color: #e67e22; }

/* ---------- 全屏加载遮罩 ---------- */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, .72);
    color: #5d6b78;
    font-size: 14px;
}
.spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(230, 126, 34, .25);
    border-top-color: #e67e22;
    animation: idp-spin .8s linear infinite;
}
@keyframes idp-spin { to { transform: rotate(360deg); } }

/* ---------- 键值信息列表（核验结果） ---------- */
.info-list {
    border: 1px solid #dfe6ec;
    border-radius: 10px;
    overflow: hidden;
    margin: 16px 0 20px;
}
.info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    font-size: 14px;
}
.info-row + .info-row { border-top: 1px solid #f0f4f8; }
.info-row .label { color: #8a97a5; flex: 0 0 auto; }
.info-row .value { color: #2c3e50; text-align: right; word-break: break-all; }


