/* ============================================================
   基础重置
   ============================================================ */
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
}

/* ============================================================
   外层容器
   ============================================================ */
.app_container {
    width: 100vw;
    min-height: 100vh;
    background-image: url(/app/static/img/home_bg.jpg);
    background-size: cover;
}

.app_container .app_header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app_container .app_header .app_title {
    padding: 20px;
}

/* ============================================================
   通用容器
   ============================================================ */
.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================================
   首页 home1 区域
   ============================================================ */
.home {
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    padding: 0 10px;
}

.home .header {
    width: 100%;
    padding: 20px 0;
}

.home .header .logo img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.home .header .title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home .header .title img {
    width: 200px;
}

.home .main {
    width: 100%;
    background-color: #fff3;
    padding: 20px 10px;
    color: #666;
    box-sizing: border-box;
    border-radius: 10px;
}

/* 表单区域：输入框与按钮宽度统一，由 form-item 控制 */
.home .main .el-form {
    width: 100%;
}

.home .main .el-form-item {
    width: 80%;
    margin: 0 auto 18px;
}

.home .main .el-form-item:last-child {
    margin-bottom: 0;
}

/* 表单项内容：纵向排列 + 行间距 */
.home .main .el-form-item__content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
}

/* 输入框容器与按钮：宽度统一 100%，自适应 */
.home .main .el-input,
.home .main .el-input__wrapper,
.home .main .el-form-item__content .el-button {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 兑换规则 */
.home .main .cdkey_rule {
    padding: 15px 0;
    font-size: 14px;
    line-height: 1.8;
}

.home .main .cdkey_rule .rule_txt {
    font-size: 13px;
    color: #979797;
    line-height: 2;
}

/* 产品信息 */
.home .formData {
    display: flex;
    align-items: center;
    margin: 15px;
}

.home .formData .active img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.home .formData .sub-title {
    font-size: 14px;
    color: #409eff;
    margin-bottom: 10px;
}

.home .formData .formData-list {
    list-style: none;
    display: flex;
    justify-content: space-between;
}

.home .formData .formData-list li {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 二维码区域 */
.home .qrcode-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
    box-sizing: border-box;
    color: #666;
}

.home .qrcode-container .qrcode {
    width: 140px;
    height: 140px;
    position: relative;
}

.home .qrcode-container .qrcode-img {
    width: 140px;
    height: 140px;
    position: absolute;
}

.home .qrcode-container .qrcode_mask {
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fcfcfccc;
    position: absolute;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.home .qrcode-container .mask_icon {
    width: 30px;
    height: 30px;
}

.home .qrcode-container .mask_loading {
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px #aaa solid;
}

.home .qrcode-container .mask_err span {
    color: #fa5151;
    font-size: 14px;
}

.home .qrcode-container .mask_success span {
    color: #07c160;
    font-size: 14px;
}

.home .qrcode-container span {
    color: #aaa;
    padding: 10px 0;
    font-size: 12px;
}

/* 对话框按钮 */
.home .dialog-btn {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* 成功容器（旧版） */
.home .success-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home .success-container .success-title {
    font-size: 18px;
    color: #fa5151;
    font-weight: 700;
}

.home .success-container img {
    width: 150px;
}

.home .success-container .order_info {
    margin-top: 20px;
}

.home .success-container .order_info .order_title {
    font-weight: 700;
}

.home .success-container .order_info .order_title span {
    color: #aaa;
}

.home .success-container .success-subtitle {
    color: #aaa;
    margin: 20px 0;
}

/* ============================================================
   游戏列表（另一页面用）
   ============================================================ */
.home .main .game-title {
    color: #409eff;
    font-size: 16px;
    font-weight: 700;
}

.home .main .game-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    justify-items: center;
    align-items: center;
    padding: 0;
}

.home .main .game-list .game-item {
    width: 50px;
}

.home .main .game-list .game-item img {
    width: 100%;
    border-radius: 10px;
}

.home .main .game-list .game-item .game-name {
    font-size: 12px;
    margin-top: 10px;
    text-align: center;
}

.home .tool {
    background-color: #fff3;
    padding: 10px;
    color: #666;
    box-sizing: border-box;
    border-radius: 10px;
}

.home .tool .tool-list {
    list-style: none;
    padding: 0 20px;
    margin: 0;
    display: flex;
}

.home .tool .tool-list .tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home .tool .tool-list .tool-item .tool-name {
    font-size: 14px;
    margin-top: 10px;
}

/* ============================================================
   兑换成功页 home2
   ============================================================ */
.redeem-success {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 40px;
    text-align: center;
    box-sizing: border-box;
    display: none;
}

/* ========== 成功页图标居中 ========== */
.redeem-success .success-icon {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 14px;
    animation: zoomIn 0.6s ease;
}

.redeem-success .success-icon img {
    display: block;
    width: 72px;
    /* 按需要调整：60 / 72 / 80 */
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    /* 图标是方形图时加圆角更柔和，不需要可删 */
}

.redeem-success .title {
    color: #303133;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.redeem-success .info-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px #0000000f;
    margin-bottom: 20px;
}

.redeem-success .info-card .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.redeem-success .info-card .info-item .label {
    color: #606266;
    font-size: 11px;
    flex: 0 0 60px;
    text-align: left;
}

.redeem-success .info-card .info-item .value {
    color: #303133;
    font-size: 12px;
    font-weight: 500;
    flex: 1;
    text-align: right;
    word-break: break-all;
}

.redeem-success .info-card .el-divider {
    margin: 12px 0;
}

.redeem-success .action-area {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20%;
    box-sizing: border-box;
}

.redeem-success .action-area .el-button {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 40px !important;
    font-size: 16px !important;
    letter-spacing: 1px !important;
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================
   按钮统一样式
   ============================================================ */
.el-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    padding: 0 20px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    color: #4B5563 !important;
    background-color: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.el-button:hover {
    color: #3B82F6 !important;
    background-color: #EFF6FF !important;
    border-color: #3B82F6 !important;
}

.el-button:active {
    transform: scale(0.98) !important;
}

.el-button:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.4) !important;
    outline-offset: 1px !important;
}

.el-button>span {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

/* 主按钮 */
.el-button--primary {
    color: #FFFFFF !important;
    background-color: #3B82F6 !important;
    border-color: #3B82F6 !important;
}

.el-button--primary:hover {
    color: #FFFFFF !important;
    background-color: #2563EB !important;
    border-color: #2563EB !important;
}

.el-button--primary:active {
    background-color: #1D4ED8 !important;
    border-color: #1D4ED8 !important;
}

/* 成功按钮 */
.el-button--success {
    color: #FFFFFF !important;
    background-color: #10B981 !important;
    border-color: #10B981 !important;
}

.el-button--success:hover {
    color: #FFFFFF !important;
    background-color: #059669 !important;
    border-color: #059669 !important;
}

/* 圆角按钮 */
.el-button.is-round {
    border-radius: 9999px !important;
}

/* 大按钮 */
.el-button--large {
    height: 48px !important;
    padding: 0 28px !important;
    font-size: 16px !important;
}

/* 小按钮 */
.el-button--small {
    height: 32px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
}

/* 按钮禁用 */
.el-button.is-disabled,
.el-button.is-disabled:hover {
    color: #9CA3AF !important;
    background-color: #F3F4F6 !important;
    border-color: #E5E7EB !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ============================================================
   输入框统一样式
   ============================================================ */
.el-input {
    width: 100% !important;
    box-sizing: border-box !important;
}

.el-input__wrapper {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    background-color: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.el-input__wrapper:hover {
    border-color: #CBD5E1 !important;
    box-shadow: none !important;
}

.el-input__wrapper.is-focus,
.el-input__wrapper:focus-within {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.el-input__inner {
    width: 100% !important;
    height: 42px !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #1F2937 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.el-input__inner::placeholder {
    color: #9CA3AF !important;
}

/* 输入框禁用 */
.el-input.is-disabled .el-input__wrapper {
    background-color: #F3F4F6 !important;
    border-color: #E5E7EB !important;
}

.el-input.is-disabled .el-input__inner {
    color: #9CA3AF !important;
    cursor: not-allowed !important;
}

/* 文本域 */
.el-textarea__inner {
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    color: #1F2937 !important;
    background-color: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.el-textarea__inner:hover {
    border-color: #CBD5E1 !important;
}

.el-textarea__inner:focus {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
}

/* 表单错误态 */
.el-form-item.is-error .el-input__wrapper {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.el-form-item__error {
    padding-top: 4px !important;
    font-size: 12px !important;
    color: #EF4444 !important;
}

/* ============================================================
   布局修复（必须放最后）
   ============================================================ */

/* 首页表单按钮：垂直堆叠、与输入框同宽 */
.home .main .el-form-item__content {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.home .main .el-form-item__content .el-button {
    width: 100% !important;
    margin: 0 !important;
}

/* 成功页操作按钮：保持大 padding、满宽 */
.redeem-success .action-area .el-button {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 40px !important;
    font-size: 16px !important;
    letter-spacing: 1px !important;
}

/* ========== 输入框内图标 ========== */
.el-input__wrapper {
    position: relative !important;
}

.el-input__wrapper .input-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 14px !important;
    color: #9CA3AF !important;
    pointer-events: none !important;
    z-index: 1 !important;
    line-height: 1 !important;
    transition: color 0.2s !important;
}

/* 有图标时，输入框左侧留出图标空间 */
.el-input__wrapper .input-icon~.el-input__inner {
    padding-left: 30px !important;
}

/* 聚焦时图标变主色 */
.el-input__wrapper:focus-within .input-icon {
    color: #3B82F6 !important;
}


/* ===== login1 容器：最大宽度 800，视口不足时留外边距 ===== */
/* 默认隐藏 */
#login1 {
    display: none;

    --card-gap: 16px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    flex-direction: column;
    gap: var(--card-gap);
}

/* 显示时恢复 flex 布局 */
#login1.is-active {
    display: flex;
}

/* 视口低于 800 时，增加左右外边距，防止卡片顶边 */
@media (max-width: 800px) {
    #login1 {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 更小屏幕再适当加大留白、缩小间距 */
@media (max-width: 480px) {
    #login1 {
        --card-gap: 12px;
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* ===== 卡片通用：宽度 100%，跟随父容器 ===== */
#login1 .card {
    width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

#login1 .card-hover:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 28px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* 卡片背景色：柔和浅色系 */
#login1 .bg-blue-50 {
    background: #f2f7ff;
    border-color: #dbeafe;
}

#login1 .bg-green-50 {
    background: #f1fbf5;
    border-color: #dcfce7;
}

#login1 .bg-purple-50 {
    background: #faf6ff;
    border-color: #f3e8ff;
}

/* 隐藏的 state 输入框不参与布局 */
#login1 #state {
    display: none;
}

/* ===== 卡片标题与内容 ===== */
#login1 .card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 0;
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    letter-spacing: 0.3px;
}

#login1 .card-title i {
    font-size: 18px;
    opacity: 0.85;
}

#login1 .card-content {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    word-break: break-all;
}

#login1 .text-primary {
    color: #3b82f6;
}

#login1 .text-secondary {
    color: #10b981;
}

#login1 .text-purple-500 {
    color: #a855f7;
}

/* ===== 步骤按钮组 ===== */
#demoTabsHeader {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

#demoTabsHeader .layui-btn {
    flex: 1;
    min-width: 80px;
    height: 36px;
    line-height: 36px;
    margin: 0 !important;
    font-size: 13px;
    border-radius: 8px;
}

/* ===== 表单输入与按钮 ===== */
#login1 .form-group {
    margin-bottom: 12px;
}

#login1 .layui-input {
    width: 100%;
    height: 42px;
    line-height: 42px;
    padding-left: 12px;
    font-size: 14px;
    border-radius: 8px;
    border-color: #e5e7eb;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#login1 .layui-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

#login1 .layui-btn {
    height: 38px;
    line-height: 38px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#login1 .layui-btn-normal {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

#login1 .layui-btn-normal:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

#login1 #rea1 {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #f59e0b;
}

/* ===== 充值结果卡片 ===== */
#login1 .layui-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

#login1 .layui-card-body {
    padding: 14px 16px;
}

/* ===== 只读信息行 ===== */
#login1 .info-row {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 6px 0;
    border-bottom: 1px dashed #eef0f3;
}

#login1 .info-row:last-child {
    border-bottom: none;
}

#login1 .info-label {
    flex: 0 0 84px;
    font-size: 13px;
    color: #6b7280;
    text-align: right;
    padding-right: 12px;
    box-sizing: border-box;
}

#login1 .info-value {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #111827;
    font-weight: 500;
    word-break: break-all;
    text-align: right;
}

/* 刷新按钮 */
#login1 [data-type="Load"] {
    margin-top: 12px;
    border-radius: 8px;
    background-color: #10b981;
    border-color: #10b981;
}

#login1 [data-type="Load"]:hover {
    background-color: #059669;
    border-color: #059669;
}

/* 充值说明卡片文字 */
#login1 .bg-purple-50 {
    font-size: 13.5px;
    line-height: 1.8;
    color: #4b5563;
}

#demoTabsHeader .layui-btn.layui-this {
    border-color: #eee;
    color: unset;
}

#demoTabsBody .test-item {
    display: none;
}



/* 小屏卡片内边距微调 */
@media (max-width: 480px) {
    #login1 .card {
        padding: 16px;
    }
}

/* ============================================================
   确认对话框 —— 居中 + 限宽 + 移动端留边
   ============================================================ */

/* 遮罩层：全屏居中容器 */
.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 24px;
    /* 桌面端四周留白 */
    box-sizing: border-box;
    overflow-y: auto;
    /* 内容超高时可滚动 */
}

.confirm-modal.is-open {
    display: flex;
}

.confirm-modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: confirmFadeIn 0.2s ease;
}

/* 对话框本体：居中 + 最大宽度限制 */
.confirm-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    /* 桌面端最大宽度 */
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    animation: confirmZoomIn 0.25s ease;
    overflow: hidden;
    box-sizing: border-box;
}

/* Header */
.confirm-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #F0F1F3;
    flex-shrink: 0;
}

.confirm-modal__header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.4;
}

.confirm-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #9CA3AF;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.confirm-modal__close:hover {
    background: #F3F4F6;
    color: #4B5563;
}

/* Body：内容区可滚动，不撑破弹窗 */
.confirm-modal__body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.confirm-modal__tip {
    margin: 0 0 16px;
    font-size: 13px;
    color: #6B7280;
    line-height: 1.6;
}

/* 账号列表 */
.account-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
}

.account-item:hover {
    border-color: #CBD5E1;
    background: #FAFBFC;
}

.account-item:focus-visible {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.account-item.is-selected {
    border-color: #3B82F6;
    background: #EFF6FF;
    box-shadow: 0 0 0 1px #3B82F6 inset;
}

/* 头像 */
.account-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-avatar__fallback {
    color: #9CA3AF;
    font-size: 18px;
    z-index: 0;
}

/* 信息 */
.account-info {
    flex: 1;
    min-width: 0;
}

.account-name {
    font-size: 14px;
    font-weight: 500;
    color: #1F2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.account-id {
    font-size: 12px;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 勾选图标 */
.account-check {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: #D1D5DB;
    transition: color 0.2s;
}

.account-item.is-selected .account-check {
    color: #3B82F6;
}

.account-check i {
    font-size: 20px;
    line-height: 1;
}

/* 空状态 */
.account-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    color: #9CA3AF;
    text-align: center;
}

.account-empty i {
    font-size: 32px;
    margin-bottom: 10px;
}

.account-empty p {
    margin: 0;
    font-size: 13px;
}

/* 操作按钮 */
.confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.confirm-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
    box-sizing: border-box;
}

.confirm-actions .btn:active {
    transform: scale(0.98);
}

.confirm-actions .btn i {
    font-size: 15px;
}

.btn.btn-default {
    color: #4B5563;
    background: #fff;
    border-color: #E5E7EB;
}

.btn.btn-default:hover {
    color: #3B82F6;
    border-color: #3B82F6;
    background: #EFF6FF;
}

.btn.btn-primary {
    color: #fff;
    background: #3B82F6;
    border-color: #3B82F6;
}

.btn.btn-primary:hover {
    background: #2563EB;
    border-color: #2563EB;
}

.btn.btn-primary.is-disabled,
.btn.btn-primary:disabled {
    background: #93C5FD;
    border-color: #93C5FD;
    cursor: not-allowed;
    transform: none;
}

/* 动画 */
@keyframes confirmFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes confirmZoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================
   移动端：保持居中，但四周留出空隙
   ============================================================ */
@media (max-width: 480px) {
    .confirm-modal {
        padding: 16px;
        /* 手机端四周留白 */
    }

    .confirm-modal__dialog {
        max-width: 100%;
        max-height: calc(100vh - 32px);
        border-radius: 16px;
        /* 保持圆角，不再贴底 */
    }

    .confirm-modal__header {
        padding: 16px;
    }

    .confirm-modal__header h2 {
        font-size: 16px;
    }

    .confirm-modal__body {
        padding: 16px;
    }

    .account-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .account-avatar {
        width: 40px;
        height: 40px;
    }

    .confirm-actions .btn {
        height: 42px;
        font-size: 13px;
    }
}

/* 超小屏（窄于 360px）进一步收窄留白 */
@media (max-width: 360px) {
    .confirm-modal {
        padding: 12px;
    }

    .confirm-modal__dialog {
        max-height: calc(100vh - 24px);
    }
}
