/* ===== 弹窗通用样式（登录页 + 主框架页共用） ===== */

.login-dialog .el-dialog {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(13, 42, 85, 0.18);
}

.login-dialog .el-dialog__header {
    margin: 0;
    padding: 1.125rem 1.5rem;
    background: linear-gradient(135deg, #3372D8 0%, #1E4FA0 100%);
    position: relative;
}

.login-dialog .el-dialog__title {
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 600;
}

.login-dialog .el-dialog__headerbtn {
    top: 0.875rem;
    right: 1rem;
    width: 1.75rem;
    height: 1.75rem;
}

.login-dialog .el-dialog__headerbtn .el-dialog__close {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
}

.login-dialog .el-dialog__headerbtn:hover .el-dialog__close {
    color: #fff;
}

.login-dialog .el-dialog__footer {
    padding: 1rem 1.5rem 1.25rem;
}

.login-dialog .el-dialog__footer .el-button--primary {
    min-width: 5.5rem;
    border-radius: 4px;
    font-size: 0.9375rem;
}

.login-dialog .el-dialog__footer .el-button--default {
    min-width: 5.5rem;
    border-radius: 4px;
    font-size: 0.9375rem;
}

.login-dialog .el-input {
    --el-input-font-size: 0.9375rem;
}

.login-dialog .el-input__inner {
    font-size: 0.9375rem;
}

.dlg-icon-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.dlg-icon-title .dlg-icon {
    width: 1.375rem;
    height: 1.375rem;
    flex-shrink: 0;
}

.dlg-icon-title .dlg-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #fff;
}

/* ===== 选择帐号弹框（登录选账号 + 登录后切换账号共用） =====
 * 视觉依据 Figma：AgVo4WSBEPcgnQPa8OIO9h / node 1076-5704
 * 弹窗 420px / 圆角 8px；标题白底 56px + 1px 分隔线；
 * 正文 24px 内边距；账号卡片 56px 高、圆角 8px、底色 #F5F7FA，选中态蓝色外描边。
 */
/* 注意：EP 把传入的 class 挂在 .el-dialog 自身，需用复合选择器；descendant 写法不会命中。
 * EP 默认给 .el-dialog 16px 内边距，会把标题分隔线挤成内缩一段（稿中为通栏），这里清零。 */
.el-dialog.account-select-dialog {
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.account-select-dialog .el-dialog__header {
    display: flex;
    align-items: center;
    height: 3.5rem;
    margin-right: 0;
    padding: 0 1.5rem;
    background: #fff;
    border-bottom: 1px solid #F0F0F0;
}

.account-select-dialog .as-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    color: #1F2937;
}

.account-select-dialog .el-dialog__headerbtn {
    /* top:50% 是按 header 去掉 1px 分隔线后的 55px 内容高算的，会比稿中位置高 0.5px；
     * 且 EP 的按钮是普通块级（图标走基线对齐），图标整体偏高，这里改为固定 top + flex 居中。 */
    top: 0.75rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-select-dialog .el-dialog__headerbtn .el-dialog__close {
    font-size: 1.125rem;
    color: #8C8C8C;
}

.account-select-dialog .el-dialog__headerbtn:hover .el-dialog__close {
    color: #1F2937;
}

.account-select-dialog .el-dialog__body {
    padding: 1.5rem;
}

.as-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-height: 20rem;
    overflow-y: auto;
    /* 1px 内边距 + 负外边距：让卡片描边不被滚动容器裁掉，同时不改变列表位置 */
    padding: 1px;
    margin: -1px;
}

.as-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 3.5rem;
    padding: 0 0.625rem;
    border-radius: 8px;
    background: #F5F7FA;
    cursor: pointer;
    transition: box-shadow .15s;
}

.as-item:hover {
    box-shadow: 0 0 0 1px rgba(51, 114, 216, .35);
}

.as-item.selected {
    box-shadow: 0 0 0 1px var(--brand, #3372D8);
}

.as-list.is-busy .as-item {
    cursor: default;
}

.as-list.is-busy .as-item:not(.selected):hover {
    box-shadow: none;
}

.as-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--brand, #3372D8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.as-avatar-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: block;
}

.as-info {
    flex: 1;
    min-width: 0;
}

.as-id {
    font-size: 1rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #1F2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.as-name {
    font-size: 0.75rem;
    line-height: 1rem;
    color: #374151;
    margin-top: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.as-loading {
    color: var(--brand, #3372D8);
    flex-shrink: 0;
}

/* ── switch 模式：当前账号卡片（与列表卡片同规格，右侧「当前账号」标记区分）── */
.as-current {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 3.5rem;
    padding: 0 0.625rem;
    border-radius: 8px;
    margin-bottom: 0.625rem;
    background: #F5F7FA;
}

.as-current__tag {
    font-size: 0.75rem;
    color: var(--brand, #3372D8);
    background: #E8F1FE;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── switch 模式：行内「切换」按钮 ── */
.as-switch-btn {
    font-size: 0.875rem;
    color: var(--brand, #3372D8);
    cursor: pointer;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    transition: background .15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.as-switch-btn:hover {
    background: #E8F1FE;
}

/* ===== 密码修改弹窗 ===== */
.pwd-dialog .el-dialog__body {
    padding: 1.5rem 1.75rem;
}

.pwd-form {
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
}

.pwd-form .el-input {
    width: 100%;
}

.pwd-form .el-input__wrapper {
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    transition: box-shadow 0.2s;
}

.pwd-form .el-input__inner {
    height: 2.25rem;
    line-height: 2.25rem;
    font-size: 0.9375rem;
}

/* ===== 绑定手机号弹窗 ===== */
.bind-dialog .el-dialog__body {
    padding: 1.5rem 1.75rem 1.75rem 0;
}

.bind-grid {
    display: grid;
    grid-template-columns: 6.25rem 1fr;
    gap: 1.125rem 0.875rem;
    align-items: center;
}

.bind-grid label {
    text-align: right;
    font-size: 0.9375rem;
    color: var(--text-2, #666);
    white-space: nowrap;
    font-weight: 500;
}

.bind-grid .el-input__wrapper {
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    transition: box-shadow 0.2s;
}

.bind-grid .el-input__inner {
    height: 2.125rem;
    line-height: 2.125rem;
    font-size: 0.9375rem;
}

.bind-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.bind-row .el-input {
    flex: 1;
}

.code-img-btn {
    cursor: pointer;
    height: 2.25rem;
    border-radius: 4px;
    border: 1px solid var(--divider, #E5EAF2);
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.code-img-btn:hover {
    opacity: 0.75;
}

.bind-sms-btn.el-button {
    background: var(--brand, #3372D8);
    border-color: var(--brand, #3372D8);
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    height: 2.25rem;
    line-height: 2.25rem;
    min-width: 6.875rem;
    padding: 0 0.75rem;
}

.bind-sms-btn.el-button:hover:not(:disabled) {
    background: #2B63C2;
    border-color: #2B63C2;
}

.bind-sms-btn.el-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== 登录安全二次验证弹窗 ===== */
.safe-dialog .el-dialog__body {
    padding: 1.5rem 1.75rem 0.5rem;
}

.safe-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.safe-tip {
    font-size: 0.875rem;
    color: var(--text-2, #666);
    margin: 0;
}

.safe-row {
    display: flex;
    gap: 0.625rem;
    align-items: center;
}

.safe-row .el-input {
    flex: 1;
}

.safe-row .el-input__wrapper {
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    transition: box-shadow 0.2s;
}

.safe-row .el-input__inner {
    height: 2.25rem;
    line-height: 2.25rem;
    font-size: 0.9375rem;
}

.safe-label {
    font-size: 0.875rem;
    color: var(--text-2, #666);
    white-space: nowrap;
}

.safe-phone {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-1, #333);
    letter-spacing: 1px;
}

.safe-sms-btn.el-button {
    background: var(--brand, #3372D8);
    border-color: var(--brand, #3372D8);
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    height: 2.25rem;
    line-height: 2.25rem;
    min-width: 6rem;
    padding: 0 0.75rem;
}

.safe-sms-btn.el-button:hover:not(:disabled) {
    background: #2B63C2;
    border-color: #2B63C2;
}

.safe-sms-btn.el-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}