/* ========================
 * 邮箱推送系统 - 用户前台样式
 * 通用样式请参见 common.css
 * ======================== */

@import url('common.css');

/* ========== 用户端顶部导航 ========== */
.topbar {
    background: #263445;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.topbar-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.topbar-logo {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    margin-right: 36px;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    flex: 1;
}

.topbar-nav .menu {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.topbar-nav .menu > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 14px;
    color: #cfd8dc;
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    transition: all .2s;
    white-space: nowrap;
}

.topbar-nav .menu > a:hover,
.topbar-nav .menu.active > a {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.topbar-nav .menu.active > a {
    background: rgba(64,158,255,.2);
    color: #409eff;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    padding: 6px 0;
    display: none;
    z-index: 2000;
}

.dropdown a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: #303133;
    text-decoration: none;
}

.dropdown a:hover,
.dropdown a.active {
    background: #f5f7fa;
    color: #409eff;
}

.topbar-nav .menu:hover .dropdown {
    display: block;
}

.user-menu {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 右侧工具栏容器 */
.topbar-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
}

/* 语言切换 */
.lang-switch {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 0 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 6px;
    color: #cfd8dc;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
}

.lang-btn:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

.lang-label {
    font-weight: 500;
}

.lang-arrow {
    font-size: 10px;
    opacity: .7;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    min-width: 150px;
    padding: 6px;
    z-index: 1100;
    overflow: hidden;
}

.lang-dropdown.show {
    display: block;
    animation: langFadeIn .15s ease;
}

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background .15s;
}

/* 内联 SVG 国旗图标（解决 Windows 下国旗 Emoji 不渲染的问题） */
.lang-flag {
    display: inline-block;
    width: 20px;
    height: 14px;
    border-radius: 2px;
    vertical-align: middle;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

.lang-btn .lang-flag {
    width: 16px;
    height: 11px;
}

.lang-option:hover {
    background: #f0f4f8;
}

.lang-option.active {
    background: #ecf5ff;
    color: #409eff;
    font-weight: 600;
}

.user-trigger {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 14px;
    font-size: 14px;
    color: #cfd8dc;
    cursor: pointer;
    transition: background .2s;
}

.user-trigger:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.user-trigger .arrow {
    font-size: 12px;
    margin-left: 4px;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    padding: 6px 0;
    display: none;
    z-index: 2000;
}

.user-dropdown.show {
    display: block;
    animation: fadeDown .2s ease;
}

.user-info {
    padding: 12px 16px;
    border-bottom: 1px solid #ebeef5;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #303133;
}

.user-id {
    font-size: 12px;
    color: #909399;
    margin-top: 2px;
}

.user-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-links a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: #303133;
    text-decoration: none;
}

.user-links a:hover {
    background: #f5f7fa;
    color: #409eff;
}

.guest-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.link-login,
.link-register {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
}

.link-login {
    color: #cfd8dc;
    border: 1px solid rgba(255,255,255,.3);
}

.link-login:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.link-register {
    background: #409eff;
    color: #fff;
}

.link-register:hover {
    background: #3078d6;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 退出登录弹窗 ========== */
.user-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.user-modal-mask.show {
    display: flex;
    animation: fadeIn .2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.user-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    width: 360px;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    animation: popIn .25s ease;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(.9); }
    to { opacity: 1; transform: scale(1); }
}

.user-modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.user-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 8px;
}

.user-modal-desc {
    font-size: 14px;
    color: #909399;
    line-height: 1.6;
    margin-bottom: 24px;
}

.user-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.user-modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}

.user-modal-btn.cancel {
    background: #f2f3f5;
    color: #606266;
}

.user-modal-btn.cancel:hover {
    background: #e5e6e8;
}

.user-modal-btn.confirm {
    background: #f56c6c;
    color: #fff;
}

.user-modal-btn.confirm:hover {
    background: #e45c5c;
}

/* ============================================================
 * 用户端页面通用样式
 * 各页面使用 -N 后缀类名，此处按组件类型统一分组
 * ============================================================ */

/* ========== 页面容器 ========== */
.container-1,
.container-2,
.container-4,
.container-5,
.container-6,
.container-8,
.container-9 {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.container-4 {
    max-width: 900px;
}

.container-5 {
    max-width: 1100px;
}

.container-6 {
    max-width: 1100px;
}

.container-8 {
    max-width: 800px;
}

.container-9 {
    max-width: 640px;
}

/* ========== 页面标题/头部 ========== */
.admin-header-4,
.top-bar-6,
.header-bar-5 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-header-4 h1,
.top-bar-6 h1,
.header-bar-5 h1 {
    font-size: 20px;
    font-weight: 600;
    color: #303133;
    margin: 0;
}

.admin-header-4 span,
.top-bar-6 span,
.subtitle-4 {
    font-size: 13px;
    color: #909399;
}

.page-title-1 {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #409eff;
}

/* ========== 卡片 ========== */
.card-1,
.card-4,
.card-9 {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header-4 {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #303133;
    border-bottom: 1px solid #f0f0f0;
    background: #fafbfc;
}

.card-body-4 {
    padding: 20px;
}

.card-1 {
    padding: 24px;
}

.card-9 {
    padding: 28px;
}

.card-9 h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #303133;
}

/* ========== 状态卡片 (realname) ========== */
.status-card-9 {
    text-align: center;
    padding: 36px 24px;
}

.status-icon-9 {
    font-size: 48px;
    margin-bottom: 12px;
}

.status-title-9 {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 8px;
}

.status-desc-9 {
    font-size: 14px;
    color: #909399;
}

/* ========== 表单 ========== */
.form-group-1,
.form-group-4,
.form-group-9 {
    margin-bottom: 18px;
}

.form-group-1 label,
.form-group-4 label,
.form-group-9 label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #606266;
}

.form-group-1 input,
.form-control-4,
.form-control-9,
.form-group-9 input,
.form-group-9 textarea,
.form-group-4 textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    background: #fff;
    color: #303133;
    font-family: inherit;
}

.form-control-4:focus,
.form-control-9:focus,
.form-group-1 input:focus,
.form-group-9 input:focus,
.form-group-9 textarea:focus,
.form-group-4 textarea:focus {
    border-color: #409eff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(64,158,255,.12);
}

.form-group-9 small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #909399;
}

/* ========== 按钮 ========== */
.btn-4,
.btn-6,
.btn-9 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.5;
}

.btn-primary-4,
.btn-primary-9,
.btn-9.btn-primary-9 {
    background: linear-gradient(135deg, #409eff, #66b1ff);
    color: #fff;
}

.btn-primary-4:hover,
.btn-primary-9:hover {
    box-shadow: 0 4px 12px rgba(64,158,255,.35);
    transform: translateY(-1px);
}

.btn-secondary-4 {
    background: #f2f3f5;
    color: #606266;
    border: 1px solid #dcdfe6;
}

.btn-secondary-4:hover {
    background: #e5e6e8;
}

.btn-view-6 {
    background: #ecf5ff;
    color: #409eff;
    border: 1px solid #b3d8ff;
    padding: 6px 14px;
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
}

.btn-view-6:hover {
    background: #409eff;
    color: #fff;
}

.btn-danger-6 {
    background: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fbc4c4;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-danger-6:hover {
    background: #f56c6c;
    color: #fff;
}

.btn-warning-6 {
    background: #fdf6ec;
    color: #e6a23c;
    border: 1px solid #f5dab1;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-warning-6:hover {
    background: #e6a23c;
    color: #fff;
}

/* mass_detail 按钮 */
.btn-back-5,
.btn-primary-5,
.btn-warning-5,
.btn-resend-all-5,
.btn-delete-all-5,
.btn-resend-one-5,
.btn-delete-failed-5,
.btn-delete-success-5 {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}

.btn-back-5 {
    background: #f2f3f5;
    color: #606266;
    border: 1px solid #dcdfe6;
}

.btn-primary-5 {
    background: #409eff;
    color: #fff;
}

.btn-warning-5 {
    background: #e6a23c;
    color: #fff;
}

.btn-resend-all-5,
.btn-resend-one-5 {
    background: #ecf5ff;
    color: #409eff;
    border: 1px solid #b3d8ff;
}

.btn-delete-all-5,
.btn-delete-failed-5,
.btn-delete-success-5 {
    background: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fbc4c4;
}

.btn-resend-all-5:hover,
.btn-resend-one-5:hover {
    background: #409eff;
    color: #fff;
}

.btn-delete-all-5:hover,
.btn-delete-failed-5:hover,
.btn-delete-success-5:hover {
    background: #f56c6c;
    color: #fff;
}

/* ========== 操作栏 ========== */
.action-bar-4 {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-bottom: 40px;
}

/* ========== 提示信息 ========== */
.alert-1,
.alert-4,
.alert-6,
.alert-8,
.alert-9 {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success-1,
.alert-success-4,
.alert-success-6,
.alert-success-8,
.alert-success-9 {
    background: #f0f9eb;
    color: #67c23a;
    border: 1px solid #c2e7b0;
}

.alert-error-1,
.alert-error-8,
.alert-danger-9 {
    background: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fbc4c4;
}

.alert-warning-4 {
    background: #fdf6ec;
    color: #e6a23c;
    border: 1px solid #f5dab1;
}

/* ========== 数据表格 (mass_log) ========== */
.data-table-6 {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    font-size: 14px;
}

.data-table-6 th {
    background: #f5f7fa;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: #606266;
    border-bottom: 2px solid #ebeef5;
    white-space: nowrap;
}

.data-table-6 td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #303133;
}

.data-table-6 tr:hover td {
    background: #f5f7fa;
}

/* ========== 状态标签 ========== */
.status-tag-6 {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.4;
}

.mass-title-6 {
    display: block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-wait-6 {
    background: #fdf6ec;
    color: #e6a23c;
}

.status-sending-6 {
    background: #ecf5ff;
    color: #409eff;
}

.status-success-6 {
    background: #f0f9eb;
    color: #67c23a;
}

.status-failed-6 {
    background: #fef0f0;
    color: #f56c6c;
}

.status-stopped-6 {
    background: #f4f4f5;
    color: #909399;
}

/* ========== 统计网格 (mass_detail) ========== */
.stats-grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card-5 {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.stat-card-5.clickable-5 {
    cursor: pointer;
    transition: box-shadow .2s;
}

.stat-card-5.clickable-5:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.stat-value-5 {
    font-size: 22px;
    font-weight: 700;
    color: #303133;
    margin-bottom: 4px;
}

.stat-title-5 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-label-5 {
    font-size: 12px;
    color: #909399;
}

/* ========== 状态徽章 (mass_detail) ========== */
.status-badge-5 {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge-5.status-0 { background: #fdf6ec; color: #e6a23c; }
.status-badge-5.status-1 { background: #ecf5ff; color: #409eff; }
.status-badge-5.status-2 { background: #f0f9eb; color: #67c23a; }
.status-badge-5.status-3 { background: #fef0f0; color: #f56c6c; }
.status-badge-5.status-4 { background: #f4f4f5; color: #909399; }

/* ========== 任务信息 (mass_detail) ========== */
.task-info-5 {
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.task-info-row-5 {
    font-size: 14px;
    color: #606266;
}

/* ========== 区块标题 (mass_detail) ========== */
.section-title-5 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title-5 h3 {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    margin: 0;
}

.section-actions-5 {
    display: flex;
    gap: 8px;
}

/* ========== 收件人列表 (mass_detail) ========== */
.recipient-list-5 {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.recipient-header-5 {
    display: grid;
    grid-template-columns: 0.5fr 1.8fr 0.8fr 1.6fr 1.3fr 1fr;
    padding: 12px 16px;
    background: #f5f7fa;
    font-size: 13px;
    font-weight: 600;
    color: #606266;
    align-items: center;
}

.recipient-item-5 {
    display: grid;
    grid-template-columns: 0.5fr 1.8fr 0.8fr 1.6fr 1.3fr 1fr;
    padding: 10px 16px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    align-items: center;
}

.recipient-num-5 {
    color: #909399;
    font-size: 12px;
    text-align: center;
}

.recipient-email-5 {
    color: #303133;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipient-status-5 {
    font-size: 12px;
    font-weight: 500;
}

.recipient-status-5 .status-wait-5 { color: #e6a23c; }
.recipient-status-5 .status-sending-5 { color: #409eff; }
.recipient-status-5 .status-success-5 { color: #67c23a; }
.recipient-status-5 .status-failed-5 { color: #f56c6c; }

.recipient-error-5 {
    color: #909399;
    min-width: 220px;
    max-width: 360px;
}
.recipient-error__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.recipient-error__empty {
    color: #c0c4cc;
}

/* 邮件错误标签 */
.email-error {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}
.email-error--danger {
    background: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fbc4c4;
}
.email-error--warning {
    background: #fdf6ec;
    color: #e6a23c;
    border: 1px solid #f5dab1;
}
.email-error--info {
    background: #ecf5ff;
    color: #409eff;
    border: 1px solid #b3d8ff;
}
.email-error__hint {
    font-size: 11px;
    color: #909399;
    line-height: 1.5;
    padding: 0 2px;
}

.recipient-time-5 {
    color: #909399;
    font-size: 12px;
}

.recipient-action-5 {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ========== 空提示 ========== */
.empty-tip-5,
.empty-tip-6 {
    text-align: center;
    padding: 40px 20px;
    color: #909399;
    font-size: 14px;
}

.empty-tip-5 a,
.empty-tip-6 a {
    color: #409eff;
    text-decoration: none;
}

/* ========== 分页 ========== */
.pagination-5,
.pagination-6 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination-5 a,
.pagination-5 span,
.page-btn-6,
.page-btn-6:link {
    padding: 6px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    color: #606266;
    background: #fff;
}

.pagination-5 a:hover,
.page-btn-6:hover {
    background: #f5f7fa;
    color: #409eff;
}

.current-5,
.page-btn-6.active-6 {
    background: #409eff;
    color: #fff;
    border-color: #409eff;
}

.disabled-5,
.page-btn-6.disabled-6 {
    color: #c0c4cc;
    background: #f5f5f5;
    cursor: not-allowed;
}

.pagination-info-6 {
    text-align: center;
    font-size: 12px;
    color: #909399;
    margin-top: 12px;
}

.pagination-6 form {
    margin-right: 12px;
}

.pagination-6 label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #606266;
}

.pagination-6 select {
    padding: 6px 10px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 13px;
    color: #606266;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: all .2s ease;
}

.pagination-6 select:hover,
.pagination-6 select:focus {
    border-color: #409eff;
    color: #409eff;
}

.pagination-6 select:focus {
    box-shadow: 0 0 0 2px rgba(64, 158, 255, .2);
}

/* ========== 弹窗 (mass_detail) ========== */
.modal-overlay-5 {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay-5.show-5 {
    display: flex;
}

.modal-box-5 {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    width: 600px;
    max-width: 92vw;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.modal-compact-5 {
    width: 400px;
    text-align: center;
}

.modal-title-5 {
    font-size: 17px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 12px;
}

.modal-subtitle-5 {
    font-size: 13px;
    color: #909399;
    margin-bottom: 16px;
}

.modal-subtitle-5 strong {
    color: #606266;
    margin-right: 6px;
}

.modal-subtitle-5 strong + strong {
    margin-left: 16px;
}

.modal-box-5 hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 12px 0;
}

.mail-render-5 {
    font-size: 14px;
    color: #303133;
    line-height: 1.8;
}

.modal-text-5 {
    font-size: 14px;
    color: #606266;
    margin-bottom: 20px;
}

.modal-actions-5 {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn-5 {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}

.modal-btn-5.cancel-5 {
    background: #f2f3f5;
    color: #606266;
}

.modal-btn-5.danger-5 {
    background: #f56c6c;
    color: #fff;
}

.modal-btn-5.resend-5 {
    background: #409eff;
    color: #fff;
}

/* ========== 弹窗 (mass_log) ========== */
.modal-mask-6 {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-mask-6.show {
    display: flex;
}

.modal-box-6 {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    width: 400px;
    max-width: 92vw;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.modal-bar-6 {
    height: 4px;
    background: linear-gradient(90deg, #409eff, #66b1ff);
}

.modal-header-6 {
    padding: 20px 24px 8px;
    font-size: 17px;
    font-weight: 600;
    color: #303133;
}

.modal-body-6 {
    padding: 8px 24px 20px;
    font-size: 14px;
    color: #606266;
}

.modal-footer-6 {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
    justify-content: flex-end;
}

.btn-cancel-6,
.btn-confirm-6 {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}

.btn-cancel-6 {
    background: #f2f3f5;
    color: #606266;
}

.btn-cancel-6:hover {
    background: #e5e6e8;
}

.btn-confirm-6 {
    background: #f56c6c;
    color: #fff;
}

.btn-confirm-6:hover {
    background: #e45c5c;
}

/* ========== 套餐网格 (purchase_quota) ========== */
.quota-info-8 {
    background: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #606266;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.quota-info-8 strong {
    color: #303133;
}

.pkg-grid-8 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.pkg-8 {
    background: #fff;
    border: 2px solid #ebeef5;
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    transition: border-color .2s, box-shadow .2s;
}

.pkg-8:hover {
    border-color: #409eff;
    box-shadow: 0 4px 16px rgba(64,158,255,.1);
}

.pkg-8 h4 {
    font-size: 15px;
    font-weight: 600;
    color: #303133;
    margin: 0 0 10px;
}

.pkg-amount-8 {
    font-size: 24px;
    font-weight: 700;
    color: #409eff;
    margin-bottom: 6px;
}

.pkg-price-8 {
    font-size: 18px;
    font-weight: 600;
    color: #e4393c;
    margin-bottom: 14px;
}

.pkg-btn-8 {
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #409eff, #66b1ff);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}

.pkg-btn-8:hover {
    box-shadow: 0 4px 12px rgba(64,158,255,.35);
    transform: translateY(-1px);
}

/* ========== 统计卡片 (user_api) ========== */
.row-4 {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.col-4 {
    flex: 1;
}

.stat-card-4 {
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid #e0ecff;
    border-radius: 14px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all .3s;
}

.stat-card-4:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(64,158,255,.15);
}

.stat-card-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #409eff, #66b1ff);
}

.stat-title {
    font-size: 13px;
    color: #606266;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #303133;
    line-height: 1.2;
}

.stat-sub {
    font-size: 12px;
    color: #909399;
    margin-top: 8px;
    line-height: 1.6;
}

.stat-cost {
    font-size: 13px;
    color: #f56c6c;
    margin-top: 8px;
    font-weight: 600;
}

/* ========== 代码示例区域 ========== */
.code-preview-4 {
    position: relative;
    background: #1e1e2e;
    border-radius: 14px;
    overflow: hidden;
    margin: 0;
}

.code-preview-4 .code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #2a2a3e;
    border-bottom: 1px solid #3a3a4e;
}

.code-preview-4 .code-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a0a0b0;
    font-size: 13px;
}

.code-preview-4 .code-dots {
    display: flex;
    gap: 6px;
}

.code-preview-4 .code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.code-preview-4 .code-dots span:nth-child(1) { background: #ff5f57; }
.code-preview-4 .code-dots span:nth-child(2) { background: #ffbd2e; }
.code-preview-4 .code-dots span:nth-child(3) { background: #28c840; }

.code-preview-4 .copy-btn {
    background: rgba(255,255,255,.1);
    color: #a0a0b0;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}

.code-preview-4 .copy-btn:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.code-preview-4 pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-preview-4 pre code {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.8;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    white-space: pre;
    background: none;
    text-shadow: none;
}
.code-preview-4 pre code * {
    background: none !important;
    color: #ffffff !important;
}

.code-preview-4 .copy-tip {
    position: absolute;
    top: 12px;
    right: 16px;
    background: #28c840;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all .2s;
    pointer-events: none;
}

.code-preview-4 .copy-tip.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========== API Key 区域 ========== */
.api-key-box {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.api-key-input {
    flex: 1;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fbff, #f0f5ff);
    border: 1px solid #d0e0ff;
    border-radius: 10px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #303133;
    word-break: break-all;
    user-select: all;
}

.api-key-tip {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fdf6ec;
    border: 1px solid #faecd8;
    border-radius: 8px;
    font-size: 12px;
    color: #e6a23c;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========== 安全设置区域 ========== */
.security-box {
    padding: 16px;
    background: #f8f9fb;
    border-radius: 10px;
    border: 1px solid #ebeef5;
}

.security-box code {
    display: block;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #303133;
    margin: 8px 0 12px;
    word-break: break-all;
}

.security-tip {
    font-size: 12px;
    color: #909399;
    line-height: 1.6;
}

/* ========== 弹窗样式 ========== */
.modal-mask-4 {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: maskFadeIn .2s ease;
}

.modal-mask-4.show {
    display: flex;
}

@keyframes maskFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box-4 {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: modalSlideIn .3s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon-4 {
    font-size: 48px;
    margin-bottom: 16px;
    animation: iconBounce .4s ease .1s both;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.modal-title-4 {
    font-size: 22px;
    font-weight: 700;
    color: #303133;
    margin-bottom: 12px;
}

.modal-text-4 {
    font-size: 15px;
    color: #606266;
    line-height: 1.7;
    margin-bottom: 28px;
}

.modal-actions-4 {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-actions-4 .btn-4 {
    min-width: 100px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all .25s;
    cursor: pointer;
    border: none;
}

.modal-actions-4 .btn-default-4 {
    background: #f4f4f5;
    color: #606266;
    border: 1px solid #dcdfe6;
}

.modal-actions-4 .btn-default-4:hover {
    background: #e9e9eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.modal-actions-4 .btn-danger-4 {
    background: linear-gradient(135deg, #f56c6c 0%, #ff7875 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(245,108,108,.3);
}

.modal-actions-4 .btn-danger-4:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245,108,108,.4);
}

/* ========== 全局Toast提示 ========== */
.global-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #303133;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
    opacity: 0;
    pointer-events: none;
    transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
    z-index: 10000;
    white-space: nowrap;
}

.global-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========== 修改密码页 ========== */
.pwd-wrapper {
    position: relative;
}

.pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 13px;
    color: #409eff;
    user-select: none;
}

.form-tip-1 {
    font-size: 12px;
    color: #909399;
    margin-top: 4px;
}

/* ========== 首页 dashboard (-2 后缀) ========== */

/* --- 欢迎横幅 --- */
.welcome-2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(102,126,234,.25);
    position: relative;
    overflow: hidden;
}

.welcome-2::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.welcome-2::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}

.welcome-greeting-2 {
    font-size: 22px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.welcome-date-2 {
    font-size: 14px;
    opacity: .9;
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,.2);
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.tip-2 {
    background: linear-gradient(135deg, #ecf5ff 0%, #f0f7ff 100%);
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #3a7bd5;
    border: 1px solid #d6e4ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-2.text-danger-2 {
    background: linear-gradient(135deg, #fff1f0 0%, #ffece8 100%);
    color: #cf1322;
    border-color: #ffa39e;
}

.tip-2.text-warning-2 {
    background: linear-gradient(135deg, #fffbe6 0%, #fff7cc 100%);
    color: #d48806;
    border-color: #ffe58f;
}

/* --- 统计卡片 --- */
.stats-grid-2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card-2 {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #409eff;
}

.stat-card-2:nth-child(1)::before { background: linear-gradient(90deg, #409eff, #66b1ff); }
.stat-card-2:nth-child(2)::before { background: linear-gradient(90deg, #67c23a, #95d475); }
.stat-card-2:nth-child(3)::before { background: linear-gradient(90deg, #e6a23c, #f0b860); }
.stat-card-2:nth-child(4)::before { background: linear-gradient(90deg, #909399, #b1b3b8); }

.stat-card-2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
}

.stat-card-2 h3 {
    font-size: 13px;
    color: #909399;
    margin: 0 0 10px;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.stat-card-2 p {
    font-size: 26px;
    font-weight: 700;
    color: #303133;
    margin: 0;
    line-height: 1.2;
}

.text-success-2 { color: #67c23a; }
.text-warning-2 { color: #e6a23c; }
.text-danger-2 { color: #f56c6c; }
.text-primary-2 { color: #409eff; }

/* --- 费用区域 --- */
.fee-section-2 {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
    align-items: end;
}

.fee-card-2 {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.fee-card-2:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

.fee-card-2.highlight-2 {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    border: none;
    position: relative;
}

.fee-card-2.highlight-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #409eff, #66b1ff);
    border-radius: 14px 14px 0 0;
}

/* 左侧信息卡片 (SMTP/额度) */
.fee-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.fee-item-2 {
    padding: 14px 16px;
    background: #f8f9fc;
    border-radius: 10px;
    border: 1px solid #eef1f5;
    transition: all .2s;
}

.fee-item-2:hover {
    background: #f0f4fa;
    border-color: #dde3ec;
}

.fee-label-2 {
    font-size: 12px;
    color: #909399;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.fee-value-2 {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
}

/* --- 额度使用进度 --- */
.quota-progress-2 {
    margin-top: 16px;
    padding: 14px;
    background: #f8f9fc;
    border-radius: 10px;
}

.quota-header-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.quota-title-2 {
    font-size: 13px;
    font-weight: 600;
    color: #303133;
}

.quota-pct-2 {
    font-size: 14px;
    font-weight: 700;
    color: #409eff;
}

.quota-bar-2 {
    height: 8px;
    background: #e8ecf2;
    border-radius: 4px;
    overflow: hidden;
}

.quota-bar-fill-2 {
    height: 100%;
    border-radius: 4px;
    transition: width .6s ease;
}

.quota-bar-fill-2.quota-normal   { background: linear-gradient(90deg, #67c23a, #95d475); }
.quota-bar-fill-2.quota-warning  { background: linear-gradient(90deg, #e6a23c, #f0c78a); }
.quota-bar-fill-2.quota-danger   { background: linear-gradient(90deg, #f56c6c, #f89898); }

.quota-info-2 {
    font-size: 11px;
    color: #909399;
    margin-top: 8px;
}

/* --- 本月统计 --- */
.month-stats-2 {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef1f5;
}

.month-title-2 {
    font-size: 13px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 10px;
}

.month-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.month-item-2 {
    text-align: center;
    padding: 10px 6px;
    background: #f8f9fc;
    border-radius: 8px;
}

.month-num-2 {
    font-size: 16px;
    font-weight: 700;
    color: #303133;
}

.month-label-2 {
    font-size: 11px;
    color: #909399;
    margin-top: 2px;
}

/* 中央健康体检卡 */
.fee-card-2.highlight-2 .fee-label-2 {
    font-size: 15px;
    margin-bottom: 16px;
    color: #303133;
    font-weight: 600;
}

.send-main-2 {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 12px 0 20px;
}

.send-count-2 {
    font-size: 56px;
    font-weight: 700;
    background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.send-unit-2 {
    font-size: 18px;
    color: #909399;
    font-weight: 500;
}

.send-meta-2 {
    font-size: 13px;
    color: #606266;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(255,255,255,.6);
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

.meta-row-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-row-2 strong {
    color: #303133;
    font-weight: 600;
}

.health-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 600;
    letter-spacing: .5px;
}

.health-normal { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); color: #2e7d32; }
.health-warning { background: linear-gradient(135deg, #fff8e1, #ffecb3); color: #e65100; }
.health-danger { background: linear-gradient(135deg, #ffebee, #ffcdd2); color: #c62828; }

.trial-info-2 {
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff8e1, #fff3e0);
    border-radius: 10px;
    font-size: 13px;
    color: #e65100;
    border: 1px solid #ffe0b2;
    font-weight: 500;
}

.send-warning-2 {
    padding: 12px 16px;
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border-radius: 10px;
    font-size: 13px;
    color: #c62828;
    border: 1px solid #ffcdd2;
    font-weight: 500;
}

/* 右侧操作卡片 */
.fee-actions-2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    text-decoration: none;
    letter-spacing: .5px;
}

.btn-primary-2 {
    background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(64,158,255,.3);
}

.btn-primary-2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64,158,255,.4);
}

.btn-success-2 {
    background: linear-gradient(135deg, #67c23a 0%, #95d475 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(103,194,58,.3);
}

.btn-success-2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103,194,58,.4);
}

/* --- 今日发送详情 --- */
.today-breakdown-2 {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255,255,255,.7);
    border-radius: 10px;
    border: 1px solid #e8ecf2;
}

.breakdown-title-2 {
    font-size: 13px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 12px;
}

.breakdown-bar-2 {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #eef1f5;
}

.bar-seg {
    height: 100%;
    transition: width .4s ease;
}

.bar-success-2 { background: linear-gradient(90deg, #67c23a, #95d475); }
.bar-failed-2  { background: linear-gradient(90deg, #f56c6c, #f89898); }
.bar-unsub-2  { background: linear-gradient(90deg, #e6a23c, #f0c78a); }

.breakdown-stats-2 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bd-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #606266;
    gap: 6px;
}

.bd-item em {
    margin-left: auto;
    font-style: normal;
    font-weight: 600;
    color: #303133;
}

.bd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.bd-success-2 .bd-dot { background: #67c23a; }
.bd-failed-2 .bd-dot  { background: #f56c6c; }
.bd-unsub-2 .bd-dot  { background: #e6a23c; }

.breakdown-empty-2 {
    text-align: center;
    color: #909399;
    font-size: 13px;
    padding: 12px 0;
}

/* --- 近7天趋势 --- */
.week-trend-2 {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255,255,255,.7);
    border-radius: 10px;
    border: 1px solid #e8ecf2;
}

.trend-title-2 {
    font-size: 13px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 12px;
}

.trend-bars-2 {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}

.trend-col-2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.trend-bar-inner-2 {
    width: 100%;
    background: linear-gradient(180deg, #409eff 0%, #66b1ff 100%);
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    transition: height .4s ease;
}

.trend-label-2 {
    font-size: 10px;
    color: #909399;
    margin-top: 4px;
    white-space: nowrap;
}

/* --- 最近消费 --- */
.recent-orders-2 {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eef1f5;
}

.recent-title-2 {
    font-size: 13px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 10px;
}

.recent-list-2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-item-2 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8f9fc;
    border-radius: 8px;
    font-size: 12px;
}

.recent-amount-2 {
    font-weight: 600;
    color: #303133;
}

.recent-type-2 {
    color: #909399;
    flex: 1;
}

.recent-time-2 {
    color: #b0b3b8;
    font-size: 11px;
}

.recent-empty-2 {
    text-align: center;
    color: #909399;
    font-size: 12px;
    padding: 10px 0;
}

/* --- 快捷入口 --- */
.quick-links-2 {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef1f5;
}

.quick-title-2 {
    font-size: 13px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 10px;
}

.quick-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quick-link-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    background: #f8f9fc;
    border-radius: 10px;
    text-decoration: none;
    color: #606266;
    font-size: 12px;
    transition: all .2s;
    border: 1px solid transparent;
}

.quick-link-2:hover {
    background: #ecf5ff;
    border-color: #d9ecff;
    color: #409eff;
    transform: translateY(-2px);
}

.quick-icon-2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.quick-label-2 {
    font-weight: 500;
}

/* --- API Key 区域 --- */
.api-key-section-2 {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: box-shadow .3s;
}

.api-key-section-2:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

.api-key-section-2 h2 {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    margin: 0 0 16px;
}

.api-key-display-2 {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.api-key-display-2 input {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid #e4e7ed;
    border-radius: 10px;
    font-size: 13px;
    background: #f8f9fc;
    color: #303133;
    font-family: Consolas, Monaco, monospace;
    transition: all .2s;
}

.api-key-display-2 input:focus {
    border-color: #409eff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(64,158,255,.1);
    outline: none;
}

.api-key-display-2 button {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

#copyApiKeyBtn {
    background: linear-gradient(135deg, #409eff, #66b1ff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(64,158,255,.25);
}

#copyApiKeyBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64,158,255,.35);
}

#resetApiKeyBtn {
    background: #f2f3f5;
    color: #606266;
    border: 1px solid #e4e7ed;
}

#resetApiKeyBtn:hover {
    background: #e5e6e8;
    transform: translateY(-2px);
}

.bottom-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.bottom-grid-2 .api-key-section-2 {
    margin-bottom: 0;
    height: 100%;
}

.bottom-section-2 {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.bottom-section-2 .tip-2 {
    margin-bottom: 16px;
}

.bottom-section-2 footer {
    padding: 16px 0 0;
    border-top: 1px solid #ebeef5;
}

/* footer */
footer {
    text-align: center;
    font-size: 13px;
    color: #909399;
    background: transparent;
}

/* Toast */
.toast-2 {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    background: linear-gradient(135deg, #303133 0%, #48494d 100%);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 99999;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    backdrop-filter: blur(8px);
}

.toast-2.show-2 {
    transform: translateX(-50%) translateY(0);
}

/* Modal */
.modal-overlay-2 {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay-2.show-2 {
    display: flex;
    animation: modalFadeIn .2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box-2 {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    width: 400px;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,.3);
    animation: modalPopIn .25s cubic-bezier(.4, 0, .2, 1);
}

@keyframes modalPopIn {
    from { 
        opacity: 0; 
        transform: scale(.9) translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.modal-icon-2 {
    font-size: 56px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.1));
}

.modal-title-2 {
    font-size: 20px;
    font-weight: 700;
    color: #303133;
    margin-bottom: 10px;
}

.modal-text-2 {
    font-size: 14px;
    color: #606266;
    line-height: 1.7;
    margin-bottom: 28px;
}

.modal-actions-2 {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn-2 {
    padding: 10px 28px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

.modal-btn-2.cancel-2 {
    background: #f2f3f5;
    color: #606266;
}

.modal-btn-2.cancel-2:hover {
    background: #e5e6e8;
    transform: translateY(-2px);
}

.modal-btn-2.confirm-2 {
    background: linear-gradient(135deg, #409eff, #66b1ff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(64,158,255,.3);
}

.modal-btn-2.confirm-2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64,158,255,.4);
}

.modal-btn-2.danger-2 {
    background: linear-gradient(135deg, #f56c6c, #f78989);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245,108,108,.3);
}

.modal-btn-2.danger-2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,108,108,.4);
}

/* --- 响应式：dashboard --- */
@media (max-width: 900px) {
    .stats-grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .fee-section-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bottom-grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fee-card-2.highlight-2 {
        order: -1;
    }
    
    .send-count-2 {
        font-size: 44px;
    }
}

@media (max-width: 600px) {
    .stats-grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .welcome-2 {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 24px 20px;
    }
    
    .welcome-greeting-2 {
        font-size: 18px;
    }
    
    .stat-card-2 {
        padding: 16px;
    }
    
    .stat-card-2 p {
        font-size: 22px;
    }
    
    .fee-card-2 {
        padding: 20px;
    }
    
    .send-count-2 {
        font-size: 36px;
    }
    
    .api-key-display-2 {
        flex-direction: column;
    }
    
    .api-key-display-2 input {
        width: 100%;
    }
    
    .api-key-display-2 button {
        width: 100%;
    }
    
    .modal-box-2 {
        padding: 28px 24px;
    }
    
    .modal-actions-2 {
        flex-direction: column;
    }
    
    .modal-btn-2 {
        width: 100%;
    }
}

/* ========== 响应式 - 用户端 ========== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .topbar-nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #263445;
        flex-direction: column;
        padding: 8px 12px;
        height: auto;
        gap: 0;
    }

    .topbar-nav.open {
        display: flex;
    }

    .topbar-nav .menu {
        width: 100%;
        height: auto;
    }

    .topbar-nav .menu > a {
        width: 100%;
        padding: 12px 14px;
    }

    .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        background: rgba(0,0,0,.2);
        border-radius: 0;
        padding: 0;
    }

    .topbar-nav .menu.open .dropdown {
        display: block;
    }

    .topbar-nav .dropdown a {
        color: #fff;
    }

    .topbar-nav .dropdown a:hover {
        color: #409eff;
        background: rgba(255,255,255,.1);
    }

    .topbar-nav .menu.open > a::after {
        content: ' ▲';
    }

    .user-menu {
        width: auto;
    }

    .lang-btn {
        height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .lang-label {
        display: none;
    }

    .lang-btn::before {
        /* 只显示地球图标 */
    }

    .lang-dropdown {
        right: -40px;
    }

    .container-1,
    .container-2,
    .container-4,
    .container-5,
    .container-6,
    .container-8,
    .container-9 {
        padding: 12px;
    }

    .data-table-6 {
        font-size: 12px;
    }

    .data-table-6 th,
    .data-table-6 td {
        padding: 8px;
    }

    .recipient-header-5,
    .recipient-item-5 {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .row-4 {
        flex-direction: column;
    }
}

/* ========== 用户登录页（-3 后缀类） ========== */
.login-page-3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container-3 {
    width: 100%;
    max-width: 400px;
}

.auth-box-3 {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    padding: 40px 32px;
}

.auth-box-3 h2 {
    text-align: center;
    color: #2c3e50;
    margin: 0 0 28px;
    font-size: 24px;
    font-weight: 600;
}

.alert-3 {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error-3 {
    background: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
}

.form-group-3 {
    margin-bottom: 20px;
}

.form-group-3 label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #606266;
}

.form-group-3 input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.form-group-3 input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102,126,234,.12);
}

/* 修复浏览器自动填充（Chrome/Safari）导致的黄色/绿色背景 */
.form-group-3 input:-webkit-autofill,
.form-group-3 input:-webkit-autofill:hover,
.form-group-3 input:-webkit-autofill:focus,
.form-group-3 input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #303133 !important;
    caret-color: #303133;
    transition: background-color 5000s ease-in-out 0s;
}
.form-group-3 input:-moz-autofill {
    background-color: #fff !important;
    color: #303133 !important;
}

.captcha-wrapper-3 {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-wrapper-3 input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 14px;
}

.captcha-wrapper-3 input:-webkit-autofill,
.captcha-wrapper-3 input:-webkit-autofill:hover,
.captcha-wrapper-3 input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #303133 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.captcha-wrapper-3 img {
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
}

.form-group-3 small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #909399;
}

.btn-3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}

.btn-primary-3 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.btn-primary-3:hover {
    box-shadow: 0 6px 20px rgba(102,126,234,.4);
    transform: translateY(-1px);
}

.auth-link-3 {
    text-align: center;
    margin-top: 20px;
    color: #6b7a8f;
    font-size: 14px;
}

.auth-link-3 a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

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

/* 登录页底部"注册 | 忘记密码"双链接行 */
.auth-link-row-3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-link-row-3 .forgot-link-3 {
    color: #f56c6c;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.auth-link-row-3 .forgot-link-3:hover {
    text-decoration: underline;
}

/* 忘记密码页面样式 */
.forgot-tip-3 {
    font-size: 13px;
    color: #909399;
    line-height: 1.6;
    margin: 0 0 20px;
    padding: 12px 14px;
    background: #f4f4f5;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.alert-success-3 {
    background: #f0f9eb;
    color: #67c23a;
    border: 1px solid #e1f3d8;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.alert-warning-3 {
    background: #fdf6ec;
    color: #e6a23c;
    border: 1px solid #faecd8;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.alert-warning-3 small {
    color: #909399;
    font-size: 12px;
}

.email-code-row-3 {
    display: flex;
    gap: 10px;
    align-items: center;
}

.email-code-row-3 input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

.email-code-row-3 input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102,126,234,.12);
}

.email-code-row-3 input:-webkit-autofill,
.email-code-row-3 input:-webkit-autofill:hover,
.email-code-row-3 input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #303133 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.btn-secondary-3 {
    width: auto;
    background: #f4f4f5;
    color: #606266;
    border: 1px solid #dcdfe6;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    min-width: 110px;
    transition: all .2s;
    flex-shrink: 0;
}

.btn-secondary-3:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.btn-secondary-3:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.email-code-msg-3 {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #909399;
    min-height: 16px;
}

/* 登录页底部备案号（手机端不再右超出） */
.auth-beian {
    margin: 20px 0 0;
    padding: 0 16px;
    color: #909399;
    font-size: 12px;
    text-align: center;
    line-height: 1.7;
    word-break: break-all;
    word-wrap: break-word;
    white-space: normal;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 2px;
    max-width: 100%;
}
.auth-beian__item {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}
.auth-beian__item--psb {
    display: inline-flex;
    align-items: center;
    vertical-align: baseline;
}
.auth-beian__psb-img {
    height: 14px;
    width: auto;
    vertical-align: middle;
    margin-right: 4px;
    flex-shrink: 0;
}
.auth-beian__sep {
    margin: 0 4px;
    color: #c0c4cc;
    flex-shrink: 0;
}
.auth-beian__link {
    color: #909399;
    text-decoration: none;
    word-break: break-all;
    overflow-wrap: anywhere;
}
.auth-beian__link:hover {
    color: #667eea;
    text-decoration: underline;
}
@media (max-width: 480px) {
    .auth-beian {
        flex-direction: column;
        padding: 0 14px;
        gap: 4px;
    }
    .auth-beian__sep {
        display: none;
    }
}

/* ========== 用户注册页（-10 后缀类） ========== */
.register-page-10 {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container-10 {
    width: 100%;
    max-width: 440px;
}

.auth-box-10 {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
    padding: 36px 32px;
}

.auth-box-10 h2 {
    text-align: center;
    color: #2c3e50;
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
}

.tip-10 {
    text-align: center;
    color: #67c23a;
    font-size: 13px;
    margin-bottom: 24px;
}

.alert-10 {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error-10 {
    background: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
}

.alert-warning-10 {
    background: #fdf6ec;
    color: #e6a23c;
    border: 1px solid #faecd8;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.alert-warning-10 small {
    color: #909399;
    font-size: 12px;
}

.form-group-10 {
    margin-bottom: 18px;
}

.form-group-10 label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #606266;
}

.form-control-10 {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.form-control-10:focus {
    border-color: #409eff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(64,158,255,.12);
}

.email-code-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.email-code-row .form-control-10 {
    flex: 1;
}

.captcha-wrapper-10 {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-wrapper-10 .form-control-10 {
    flex: 1;
}

.captcha-wrapper-10 img {
    height: 42px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-10 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.btn-secondary-10 {
    background: #f2f3f5;
    color: #606266;
    border: 1px solid #dcdfe6;
}

.btn-secondary-10:hover {
    background: #e5e6e8;
}

.btn-secondary-10:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.btn-primary-10 {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 15px;
}

.btn-primary-10:hover {
    box-shadow: 0 6px 20px rgba(102,126,234,.4);
    transform: translateY(-1px);
}

.auth-link-10 {
    text-align: center;
    margin-top: 18px;
    color: #6b7a8f;
    font-size: 14px;
}

.auth-link-10 a {
    color: #409eff;
    text-decoration: none;
    font-weight: 500;
}

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

/* ============================================================
   现代 Dashboard 样式系统 (dash-)
   ============================================================ */

/* ----- CSS 变量 ----- */
:root {
    --dash-bg: #f4f6fa;
    --dash-card-bg: #ffffff;
    --dash-card-radius: 16px;
    --dash-card-shadow: 0 1px 3px rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.06);
    --dash-text: #18181b;
    --dash-text-secondary: #71717a;
    --dash-text-muted: #a1a1aa;
    --dash-border: #e4e4e7;
    --dash-primary: #6366f1;
    --dash-primary-hover: #4f46e5;
    --dash-primary-light: #eef2ff;
    --dash-success: #10b981;
    --dash-success-light: #ecfdf5;
    --dash-warning: #f59e0b;
    --dash-warning-light: #fffbeb;
    --dash-danger: #ef4444;
    --dash-danger-light: #fef2f2;
    --dash-orange: #f97316;
    --dash-orange-light: #fff7ed;
    --dash-purple: #8b5cf6;
    --dash-purple-light: #f5f3ff;
    --dash-blue: #3b82f6;
    --dash-blue-light: #eff6ff;
    --dash-gap: 20px;
    --dash-transition: .2s cubic-bezier(.4,0,.2,1);
}

/* ----- 全局基础 ----- */
html { scroll-behavior: smooth; }
::selection { background: rgba(99,102,241,.18); color: #18181b; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1aa; }

body { background: var(--dash-bg); color: var(--dash-text); }

/* ----- 容器 ----- */
.dash-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 32px 24px 40px;
    animation: dashFadeUp .45s ease;
}
@keyframes dashFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   欢迎横幅
   ============================================================ */
.dash-welcome {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 20px;
    padding: 28px 36px;
    margin-bottom: var(--dash-gap);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(99,102,241,.18);
}
.dash-welcome__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}
.dash-welcome__decor {
    position: absolute;
    right: -40px; top: -40px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
    z-index: 1;
}
.dash-welcome__decor::after {
    content: '';
    position: absolute;
    right: 100px; top: 60px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.dash-welcome__greeting {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -.02em;
}
.dash-welcome__subtitle {
    font-size: 13px;
    color: rgba(255,255,255,.78);
    margin: 0;
}
.dash-welcome__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dash-version {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.12);
    padding: 4px 10px;
    border-radius: 20px;
}

/* 通知条 */
.dash-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: var(--dash-gap);
    font-size: 14px;
    color: var(--dash-text-secondary);
    animation: dashFadeUp .45s .05s ease backwards;
}
.dash-notice i { color: var(--dash-primary); font-size: 15px; }

/* ============================================================
   数据概览卡片
   ============================================================ */
.dash-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--dash-gap);
    margin-bottom: var(--dash-gap);
}
.dash-overview__card {
    background: var(--dash-card-bg);
    border-radius: var(--dash-card-radius);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--dash-card-shadow);
    border: 1px solid var(--dash-border);
    transition: box-shadow var(--dash-transition), transform var(--dash-transition);
    animation: dashFadeUp .45s ease backwards;
}
.dash-overview__card:nth-child(1) { animation-delay: .06s; }
.dash-overview__card:nth-child(2) { animation-delay: .10s; }
.dash-overview__card:nth-child(3) { animation-delay: .14s; }
.dash-overview__card:nth-child(4) { animation-delay: .18s; }
.dash-overview__card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

/* 卡片底部操作栏（充值入口） */
.dash-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px -24px -22px;
    padding: 11px 24px;
    border-top: 1px solid rgba(0,0,0,0.04);
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    transition: all .25s ease;
    cursor: pointer;
}
.dash-card-footer:hover {
    background: rgba(102,126,234,0.06);
    color: #5a67d8;
}
.dash-card-footer i {
    font-size: 11px;
    transition: transform .25s ease;
}
.dash-card-footer:hover .fa-angle-right {
    transform: translateX(3px);
}

.dash-overview__icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.dash-icon--blue   { background: var(--dash-blue-light); color: var(--dash-blue); }
.dash-icon--green  { background: var(--dash-success-light); color: var(--dash-success); }
.dash-icon--orange { background: var(--dash-orange-light); color: var(--dash-orange); }
.dash-icon--purple { background: var(--dash-purple-light); color: var(--dash-purple); }

.dash-overview__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.dash-overview__label {
    font-size: 12px;
    color: var(--dash-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.dash-overview__value {
    font-size: 20px;
    font-weight: 700;
    color: var(--dash-text);
    letter-spacing: -.01em;
}
.dash-overview__value small {
    font-size: 13px;
    font-weight: 400;
    color: var(--dash-text-muted);
}
.dash-overview__unit {
    font-size: 12px;
    color: var(--dash-text-muted);
    margin-top: -2px;
}

.dash-text--success { color: var(--dash-success) !important; }
.dash-text--warning { color: var(--dash-warning) !important; }
.dash-text--danger  { color: var(--dash-danger) !important; }
.dash-text--muted   { color: var(--dash-text-muted) !important; }
.dash-text--bold    { font-weight: 600 !important; }

/* ============================================================
   通用卡片
   ============================================================ */
.dash-card {
    background: var(--dash-card-bg);
    border-radius: var(--dash-card-radius);
    box-shadow: var(--dash-card-shadow);
    border: 1px solid var(--dash-border);
    padding: 24px;
    transition: box-shadow var(--dash-transition);
}

/* 在 grid 布局中由 gap 控制间距，避免最后一个卡片 margin 不一致 */
.dash-main > .dash-card {
    margin-bottom: 0;
}

.dash-card:last-child { margin-bottom: 0; }
.dash-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--dash-border);
}
.dash-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dash-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-card__title i { color: var(--dash-primary); font-size: 14px; }
.dash-card__tip {
    font-size: 12px;
    color: var(--dash-text-muted);
    margin-top: 10px;
}
.dash-empty {
    text-align: center;
    padding: 32px 0;
    color: var(--dash-text-muted);
    font-size: 13px;
}
.dash-empty--sm { padding: 20px 0; font-size: 12px; }

/* ============================================================
   双列布局（Flat Grid 行级对齐，无兼容性问题）
   ============================================================ */
.dash-main {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--dash-gap);
    margin-bottom: var(--dash-gap);
    align-items: stretch;
}

/* 安全设置卡片：内容撑满所在行高度 */
.dash-card--security {
    display: flex;
    flex-direction: column;
}
.dash-card--security .dash-settings {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.dash-card--security .dash-settings textarea {
    flex: 1 1 auto;
    min-height: 120px;
}

/* 快捷入口卡片：与安全设置等高且内容垂直居中 */
.dash-card--quick {
    display: flex;
    flex-direction: column;
}
.dash-card--quick .dash-links {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-content: center;
}

/* ============================================================
   健康卡片（可发送额度）
   ============================================================ */
.dash-card--health {
    border-left: 3px solid var(--dash-primary);
}
.dash-health__main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0 20px;
}
.dash-health__count {
    font-size: 48px;
    font-weight: 800;
    color: var(--dash-primary);
    line-height: 1;
    letter-spacing: -.03em;
}
.dash-health__unit {
    font-size: 16px;
    color: var(--dash-text-secondary);
    font-weight: 500;
}
.dash-health__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.dash-health__item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dash-health__item-label {
    font-size: 11px;
    color: var(--dash-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.dash-health__item-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--dash-text);
}

/* 额度并排卡片 */
.dash-quota-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
    width: 100%;
    flex: 1;
    min-width: 0;
}
.dash-quota-card {
    border-radius: 14px;
    padding: 18px 16px;
    position: relative;
    overflow: hidden;
    color: #fff;
    min-width: 0;
}
.dash-quota-card--blue {
    background: linear-gradient(135deg, #667eea 0%, #409eff 100%);
}
.dash-quota-card--purple {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}
.dash-quota-card__icon {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 22px;
    opacity: .35;
}
.dash-quota-card__num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2px;
}
.dash-quota-card__label {
    font-size: 12px;
    opacity: .85;
    margin-bottom: 12px;
}
.dash-quota-card__bar {
    height: 5px;
    background: rgba(255,255,255,.25);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.dash-quota-card__fill {
    height: 100%;
    background: #fff;
    border-radius: 3px;
    transition: width .3s ease;
}
.dash-quota-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    opacity: .85;
}

.dash-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
}
.dash-alert--warning { background: var(--dash-warning-light); color: #92400e; border: 1px solid #fde68a; }
.dash-alert--danger  { background: var(--dash-danger-light);  color: #991b1b; border: 1px solid #fecaca; }
.dash-mt { margin-top: 14px; }

/* ============================================================
   徽章
   ============================================================ */
.dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    border: 1px solid transparent;
}
.dash-badge i { font-size: 11px; }
.dash-badge--success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-color: #6ee7b7;
    box-shadow: 0 2px 8px rgba(16, 185, 129, .15);
}
.dash-badge--warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-color: #fcd34d;
    box-shadow: 0 2px 8px rgba(245, 158, 11, .15);
}
.dash-badge--danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-color: #fca5a5;
    box-shadow: 0 2px 8px rgba(239, 68, 68, .15);
}
.dash-badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    position: relative;
}
.dash-badge__dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    opacity: .4;
    animation: dash-pulse 1.8s ease-out infinite;
}
@keyframes dash-pulse {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: .6; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* ============================================================
   图表 - 近7天趋势
   ============================================================ */
.dash-chart { padding-top: 4px; }
.dash-chart__bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    height: 160px;
    padding: 0 4px;
}
.dash-chart__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
}
.dash-chart__bar {
    width: 100%;
    max-width: 44px;
    background: linear-gradient(180deg, var(--dash-primary) 0%, #a5b4fc 100%);
    border-radius: 8px 8px 4px 4px;
    min-height: 4px;
    position: relative;
    transition: filter var(--dash-transition);
    cursor: pointer;
}
.dash-chart__bar:hover { filter: brightness(.85); }
.dash-chart__tooltip {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dash-text);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity var(--dash-transition);
}
.dash-chart__bar:hover .dash-chart__tooltip { opacity: 1; }
.dash-chart__label {
    font-size: 11px;
    color: var(--dash-text-muted);
    font-weight: 500;
}

/* ============================================================
   今日发送详情
   ============================================================ */
.dash-breakdown__bar {
    display: flex;
    height: 10px;
    border-radius: 50px;
    overflow: hidden;
    background: #f4f4f5;
    margin-bottom: 16px;
}
.dash-breakdown__seg--success { background: var(--dash-success); }
.dash-breakdown__seg--fail    { background: var(--dash-danger); }
.dash-breakdown__seg--unsub   { background: var(--dash-text-muted); }

.dash-breakdown__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.dash-breakdown__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--dash-text-secondary);
}
.dash-breakdown__item strong { color: var(--dash-text); font-size: 14px; margin: 0 2px 0 4px; }
.dash-breakdown__item em { color: var(--dash-text-muted); font-style: normal; font-size: 11px; }
.dash-breakdown__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dash-breakdown__dot--success { background: var(--dash-success); }
.dash-breakdown__dot--fail    { background: var(--dash-danger); }
.dash-breakdown__dot--unsub   { background: var(--dash-text-muted); }

/* ============================================================
   信息列表
   ============================================================ */
.dash-info-list { display: flex; flex-direction: column; }
.dash-info-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #f4f4f5;
}
.dash-info-list__item:first-child { padding-top: 0; }
.dash-info-list__item:last-child  { border-bottom: none; padding-bottom: 0; }
.dash-info-list__label {
    font-size: 13px;
    color: var(--dash-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-info-list__label i { color: var(--dash-text-muted); font-size: 12px; width: 14px; text-align: center; }
.dash-info-list__val {
    font-size: 13px;
    font-weight: 600;
    color: var(--dash-text);
}

/* ============================================================
   进度条
   ============================================================ */
.dash-progress { margin-top: 18px; padding-top: 18px; border-top: 1px solid #f4f4f5; }
.dash-progress__header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--dash-text-secondary);
    margin-bottom: 8px;
}
.dash-progress__track {
    height: 8px;
    background: #f4f4f5;
    border-radius: 50px;
    overflow: hidden;
}
.dash-progress__fill {
    height: 100%;
    border-radius: 50px;
    transition: width .6s ease;
}
.dash-progress__fill--green  { background: linear-gradient(90deg, var(--dash-success), #34d399); }
.dash-progress__fill--yellow { background: linear-gradient(90deg, var(--dash-warning), #fbbf24); }
.dash-progress__fill--red    { background: linear-gradient(90deg, var(--dash-danger),  #f87171); }
.dash-progress__info {
    font-size: 11px;
    color: var(--dash-text-muted);
    margin-top: 6px;
    display: block;
}

/* ============================================================
   本月统计网格
   ============================================================ */
.dash-month-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.dash-month-grid__item {
    text-align: center;
    padding: 14px 8px;
    background: #f8fafc;
    border-radius: 10px;
}
.dash-month-grid__num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--dash-text);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}
.dash-month-grid__label {
    font-size: 11px;
    color: var(--dash-text-muted);
}
.dash-month-grid__item--success .dash-month-grid__num { color: var(--dash-success); }
.dash-month-grid__item--fail    .dash-month-grid__num { color: var(--dash-danger); }
.dash-month-grid__item--cost    .dash-month-grid__num { color: var(--dash-orange); }

/* 消耗金额可能较长（¥1234.56），字号缩小以适配 */
.dash-month-grid__item--cost .dash-month-grid__num {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* ============================================================
   账户状态
   ============================================================ */
.dash-status-pair { display: flex; flex-direction: column; }
.dash-status-pair__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #f4f4f5;
}
.dash-status-pair__item:first-child { padding-top: 0; }
.dash-status-pair__item:last-child  { border-bottom: none; padding-bottom: 0; }
.dash-status-pair__label {
    font-size: 13px;
    color: var(--dash-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 操作按钮区域 */
.dash-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f4f4f5;
}

/* ============================================================
   最近消费列表
   ============================================================ */
.dash-order-list { display: flex; flex-direction: column; }
.dash-order-list__item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f4f4f5;
}
.dash-order-list__item:first-child { padding-top: 0; }
.dash-order-list__item:last-child  { border-bottom: none; padding-bottom: 0; }
.dash-order-list__amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--dash-text);
    min-width: 70px;
}
.dash-order-list__type {
    font-size: 12px;
    color: var(--dash-text-muted);
    flex: 1;
}
.dash-order-list__time {
    font-size: 11px;
    color: var(--dash-text-muted);
}

/* ============================================================
   快捷入口
   ============================================================ */
.dash-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.dash-links__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    background: #f8fafc;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--dash-transition);
    color: var(--dash-text-secondary);
}
.dash-links__item:hover {
    background: var(--dash-primary-light);
    border-color: var(--dash-primary);
    color: var(--dash-primary);
    transform: translateY(-2px);
}
.dash-links__item i { font-size: 20px; }
.dash-links__item span { font-size: 12px; font-weight: 500; }

/* ============================================================
   API 密钥 & 安全设置
   ============================================================ */
.dash-card--apikey {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4ff 100%);
    border: 1px solid #e0e7ff;
    position: relative;
    overflow: hidden;
}
.dash-card--apikey::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.dash-apikey__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.dash-apikey {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.dash-apikey__input-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.dash-apikey__input-wrap:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.dash-apikey__input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    flex: 1;
    min-width: 0;
}
.dash-apikey__input i {
    color: #6366f1;
    font-size: 16px;
    flex-shrink: 0;
}
.dash-apikey__input input {
    flex: 1;
    border: none;
    background: none;
    padding: 14px 0;
    font-size: 14px;
    color: #1e293b;
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    outline: none;
    min-width: 0;
    letter-spacing: 0.3px;
}
.dash-apikey__toggle {
    width: 44px;
    height: 100%;
    min-height: 48px;
    border: none;
    border-left: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-apikey__toggle:hover {
    background: #eef2ff;
    color: #6366f1;
}
.dash-apikey__btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: stretch;
}
.dash-apikey__btns .dash-btn {
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
    min-height: 48px;
}
.dash-btn--danger-outline {
    border-color: #fecaca;
    color: #dc2626;
    background: #fff;
}
.dash-btn--danger-outline:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}
.dash-card--apikey .dash-card__tip {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    color: #4338ca;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.6;
}
.dash-card--apikey .dash-card__tip i {
    margin-right: 6px;
    color: #6366f1;
}
.dash-card--apikey .dash-card__tip code {
    background: rgba(99, 102, 241, 0.15);
    color: #4338ca;
    padding: 2px 7px;
    border-radius: 5px;
    font-family: 'SF Mono', 'Cascadia Code', monospace;
    font-size: 11.5px;
}

.dash-settings textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    font-size: 13px;
    color: var(--dash-text);
    background: #fafbfc;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    transition: border-color var(--dash-transition);
    font-family: inherit;
    margin-top: 12px;
    min-height: 120px;
}
.dash-settings textarea:focus { border-color: var(--dash-primary); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.dash-settings .dash-btn { margin-top: 12px; }

/* ============================================================
   按钮系统
   ============================================================ */
.dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--dash-transition);
    white-space: nowrap;
    letter-spacing: .01em;
}
.dash-btn--primary {
    background: var(--dash-primary);
    color: #fff;
}
.dash-btn--primary:hover {
    background: var(--dash-primary-hover);
    box-shadow: 0 4px 14px rgba(99,102,241,.25);
    transform: translateY(-1px);
}
.dash-btn--success {
    background: var(--dash-success);
    color: #fff;
}
.dash-btn--success:hover {
    filter: brightness(.92);
    box-shadow: 0 4px 14px rgba(16,185,129,.25);
    transform: translateY(-1px);
}
.dash-btn--danger {
    background: var(--dash-danger);
    color: #fff;
}
.dash-btn--danger:hover {
    filter: brightness(.92);
    box-shadow: 0 4px 14px rgba(239,68,68,.25);
    transform: translateY(-1px);
}
.dash-btn--outline {
    background: #fff;
    color: var(--dash-text);
    border: 1px solid var(--dash-border);
}
.dash-btn--outline:hover {
    border-color: var(--dash-primary);
    color: var(--dash-primary);
    background: var(--dash-primary-light);
}
.dash-btn--ghost {
    background: rgba(255,255,255,.15);
    color: #fff;
    backdrop-filter: blur(4px);
}
.dash-btn--ghost:hover {
    background: rgba(255,255,255,.25);
}
.dash-btn--sm { font-size: 12px; padding: 7px 14px; border-radius: 8px; }
.dash-btn--block { width: 100%; }
.dash-btn:disabled { opacity: .55; pointer-events: none; }
.dash-btn:active { transform: translateY(0) !important; }

/* ============================================================
   页脚
   ============================================================ */
.dash-footer {
    text-align: center;
    padding: 20px 0 10px;
}
.dash-footer__warn {
    font-size: 12px;
    color: var(--dash-text-muted);
    padding: 14px 20px;
    background: var(--dash-danger-light);
    border-radius: 10px;
    border: 1px solid #fecaca;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.dash-footer__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: var(--dash-text-muted);
}
.dash-footer__dot {
    width: 3px; height: 3px;
    background: var(--dash-text-muted);
    border-radius: 50%;
}
.dash-footer__beian {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--dash-text-muted);
}
.dash-footer__beian a {
    color: var(--dash-text-muted);
    text-decoration: none;
    transition: color .2s;
}
.dash-footer__beian a:hover {
    color: var(--dash-primary);
    text-decoration: underline;
}

/* 客服悬浮二维码 */
.dash-service {
    position: relative;
    cursor: default;
    color: var(--dash-primary);
    font-weight: 500;
    border-bottom: 1px dashed var(--dash-primary);
}
.dash-service__qrcode {
    display: none;
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    padding: 8px;
    width: 160px;
    height: 160px;
    box-sizing: border-box;
}
.dash-service__qrcode::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #fff;
}
.dash-service__qrcode img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.dash-service:hover .dash-service__qrcode {
    display: block;
}

/* ============================================================
   Toast
   ============================================================ */
.dash-toast {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    background: #18181b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    z-index: 9999;
    pointer-events: none;
    transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.dash-toast--show { transform: translateX(-50%) translateY(0); }

/* ============================================================
   Modal
   ============================================================ */
.dash-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.dash-modal--show { opacity: 1; pointer-events: auto; }
.dash-modal__box {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px 24px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
    transform: scale(.94);
    transition: transform .25s ease;
}
.dash-modal--show .dash-modal__box { transform: scale(1); }
.dash-modal__icon   { font-size: 40px; margin-bottom: 12px; }
.dash-modal__title  { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--dash-text); }
.dash-modal__text   { font-size: 14px; color: var(--dash-text-secondary); line-height: 1.6; }
.dash-modal__actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    justify-content: center;
}
.dash-modal__actions .dash-btn { min-width: 100px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .dash-main {
        grid-template-columns: 1fr;
    }
    .dash-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .dash-container { padding: 20px 14px 28px; }
    .dash-welcome { padding: 22px 20px; border-radius: 16px; }
    .dash-welcome__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .dash-welcome__greeting { font-size: 18px; }
    .dash-overview {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .dash-overview__card { padding: 16px; }
    .dash-card-footer { margin: 12px -16px -16px; padding: 9px 16px; }
    .dash-overview__value { font-size: 16px; }
    .dash-overview__icon { width: 38px; height: 38px; font-size: 17px; border-radius: 10px; }
    .dash-apikey { flex-direction: column; align-items: stretch; }
    .dash-apikey__btns { justify-content: flex-end; }
    .dash-month-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-health__count { font-size: 36px; }
    .dash-card { padding: 18px; }
    .dash-chart__bars { height: 120px; }
}

/* ============================================================
   user_api.php - API 密钥美化 & 统计卡片
   ============================================================ */
.card-4--apikey {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4ff 100%);
    border: 1px solid #e0e7ff;
    position: relative;
    overflow: hidden;
}
.card-4--apikey::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.card-4--apikey .card-header-4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}
.api-key-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.api-key-box-2 {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.api-key-input-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.api-key-input-wrap:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.api-key-input-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    flex: 1;
    min-width: 0;
}
.api-key-input-inner i {
    color: #6366f1;
    font-size: 16px;
    flex-shrink: 0;
}
.api-key-input-inner input {
    flex: 1;
    border: none;
    background: none;
    padding: 14px 0;
    font-size: 14px;
    color: #1e293b;
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    outline: none;
    min-width: 0;
    letter-spacing: 0.3px;
}
.api-key-toggle {
    width: 44px;
    height: 100%;
    min-height: 48px;
    border: none;
    border-left: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.api-key-toggle:hover {
    background: #eef2ff;
    color: #6366f1;
}
.api-key-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: stretch;
}
.api-key-btns .btn-4 {
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
    min-height: 48px;
}
.btn-danger-outline-4 {
    border: 1px solid #fecaca;
    color: #dc2626;
    background: #fff;
}
.btn-danger-outline-4:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}
.api-key-tip-2 {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    color: #4338ca;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.6;
}
.api-key-tip-2 i {
    margin-right: 6px;
    color: #6366f1;
}
.api-key-tip-2 code {
    background: rgba(99, 102, 241, 0.15);
    color: #4338ca;
    padding: 2px 7px;
    border-radius: 5px;
    font-family: 'SF Mono', 'Cascadia Code', monospace;
    font-size: 11.5px;
}

/* 统计卡片 - 额度显示 */
.stat-quota {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.stat-quota-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}
.stat-quota--single {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
}
.stat-quota--mass {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #6d28d9;
}

/* ============================================================
   realname.php - 文件上传预览 & 悬浮放大
   ============================================================ */
.file-upload-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.file-upload-wrap .file-input {
    padding: 8px;
    border: 1px dashed #dcdfe6;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s;
}
.file-upload-wrap .file-input:hover {
    border-color: #409eff;
    background: #ecf5ff;
}
.file-preview {
    width: 200px;
    height: 130px;
    border: 2px dashed #dcdfe6;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.25s ease;
}
.file-preview:hover {
    border-color: #409eff;
    box-shadow: 0 4px 16px rgba(64, 158, 255, 0.15);
    transform: translateY(-2px);
}
.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.file-preview-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #909399;
}
.file-preview-placeholder i {
    font-size: 36px;
    color: #c0c4cc;
}
.file-preview-placeholder span {
    font-size: 12px;
}

/* 悬浮放大预览层 */
.image-zoom-layer {
    position: fixed;
    z-index: 9999;
    width: 500px;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: #fff;
    border: 3px solid #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.image-zoom-layer.show {
    opacity: 1;
    visibility: visible;
}
.image-zoom-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f7fa;
}

/* ============================================================
   mass.php - 收件人表格 & 导入功能
   ============================================================ */
.recipients-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.btn-sm-4 {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}
.recipients-table-wrap {
    border: 1px solid #ebeef5;
    border-radius: 8px;
    overflow: hidden;
    max-height: 420px;
    overflow-y: auto;
}
.recipients-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.recipients-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}
.recipients-table thead th {
    background: #f5f7fa;
    color: #606266;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
    white-space: nowrap;
}
.recipients-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f2f6fc;
    color: #303133;
}
.recipients-table tbody tr:hover {
    background: #f5f7fa;
}
.recipients-table tbody tr:last-child td {
    border-bottom: none;
}
.recipient-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}
.recipient-status.valid {
    background: #f0f9eb;
    color: #67c23a;
}
.recipient-status.invalid {
    background: #fef0f0;
    color: #f56c6c;
}
.recipient-remove {
    color: #f56c6c;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
}
.recipient-remove:hover {
    background: #fef0f0;
}
.empty-row td {
    padding: 40px 20px !important;
    text-align: center;
}
.empty-tip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #909399;
}
.empty-tip i {
    font-size: 48px;
    color: #c0c4cc;
}
.empty-tip p {
    margin: 0;
    font-size: 13px;
}

/* 粘贴导入弹窗 */
.paste-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.paste-modal-inner {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 560px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.paste-modal-inner h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #303133;
}
.paste-modal-inner textarea {
    width: 100%;
    min-height: 200px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    font-family: 'Consolas', monospace;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}
.paste-modal-inner textarea:focus {
    border-color: #409eff;
}
.paste-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

/* ============================================================
   Summernote 弹窗优化
   ============================================================ */
.note-modal .modal-dialog .modal-content,
.modal.note-modal .modal-content,
body > .modal .modal-content {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: none;
}
.note-modal .modal-dialog .modal-header,
.modal.note-modal .modal-header,
body > .modal .modal-header {
    background: #f5f7fa;
    border-bottom: 1px solid #ebeef5;
    padding: 14px 20px;
}
.note-modal .modal-dialog .modal-header .modal-title,
.modal.note-modal .modal-title,
body > .modal .modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #303133;
}
.note-modal .modal-dialog .modal-body,
.modal.note-modal .modal-body,
body > .modal .modal-body {
    padding: 20px;
}
.note-modal .modal-dialog .modal-body label,
.modal.note-modal .modal-body label,
body > .modal .modal-body label {
    font-size: 13px;
    color: #606266;
    margin-bottom: 8px;
    display: inline-block;
    font-weight: 500;
}
.note-modal .modal-dialog .modal-body input[type="text"],
.note-modal .modal-dialog .modal-body input[type="number"],
.note-modal .modal-dialog .modal-body input[type="url"],
.modal.note-modal .modal-body input[type="text"],
.modal.note-modal .modal-body input[type="number"],
.modal.note-modal .modal-body input[type="url"],
body > .modal .modal-body input[type="text"],
body > .modal .modal-body input[type="number"],
body > .modal .modal-body input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}
.note-modal .modal-dialog .modal-body input:focus,
.modal.note-modal .modal-body input:focus,
body > .modal .modal-body input:focus {
    border-color: #409eff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.1);
}
.note-modal .modal-dialog .modal-footer,
.modal.note-modal .modal-footer,
body > .modal .modal-footer {
    padding: 12px 20px;
    background: #fafbfc;
    border-top: 1px solid #ebeef5;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
}
.note-modal .modal-dialog .modal-footer::before,
.note-modal .modal-dialog .modal-footer::after,
.modal.note-modal .modal-footer::before,
.modal.note-modal .modal-footer::after,
body > .modal .modal-footer::before,
body > .modal .modal-footer::after {
    display: none !important;
}
.note-modal .modal-dialog .modal-footer .btn,
.modal.note-modal .modal-footer .btn,
body > .modal .modal-footer .btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    transition: all 0.2s;
    margin: 0;
}
.note-modal .modal-dialog .modal-footer .btn-primary,
.modal.note-modal .modal-footer .btn-primary,
body > .modal .modal-footer .btn-primary {
    background: linear-gradient(135deg, #409eff, #66b1ff) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
}
.note-modal .modal-dialog .modal-footer .btn-primary:hover,
.modal.note-modal .modal-footer .btn-primary:hover,
body > .modal .modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #337ecc, #409eff) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.4);
}
.note-modal .modal-dialog .modal-footer .btn-default,
.note-modal .modal-dialog .modal-footer [data-dismiss],
.modal.note-modal .modal-footer .btn-default,
.modal.note-modal .modal-footer [data-dismiss],
body > .modal .modal-footer .btn-default,
body > .modal .modal-footer [data-dismiss] {
    background: #fff !important;
    border: 1px solid #dcdfe6 !important;
    color: #606266 !important;
}
.note-modal .modal-dialog .modal-footer .btn-default:hover,
.note-modal .modal-dialog .modal-footer [data-dismiss]:hover,
.modal.note-modal .modal-footer .btn-default:hover,
.modal.note-modal .modal-footer [data-dismiss]:hover,
body > .modal .modal-footer .btn-default:hover,
body > .modal .modal-footer [data-dismiss]:hover {
    border-color: #c0c4cc !important;
    color: #303133 !important;
    background: #f5f7fa !important;
}

/* Summernote 弹窗：按钮位置优化 */
.note-modal .modal-dialog .modal-footer,
.modal.note-modal .modal-footer,
body > .modal .modal-footer {
    padding: 12px 28px 20px !important;
    margin-top: -8px !important;
}
.note-modal .modal-dialog .modal-footer .btn,
.modal.note-modal .modal-footer .btn,
body > .modal .modal-footer .btn {
    margin: 0 10px 0 0 !important;
    padding: 10px 24px !important;
}

/* ============================================================
   mass.php - 头部额度卡片
   ============================================================ */
.header-quota-cards {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.hq-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
}
.hq-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.hq-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}
.hq-single .hq-icon {
    background: linear-gradient(135deg, #409eff, #66b1ff);
}
.hq-mass .hq-icon {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}
.hq-price .hq-icon {
    background: linear-gradient(135deg, #67c23a, #85ce61);
}
.hq-balance .hq-icon {
    background: linear-gradient(135deg, #e6a23c, #f0c78a);
}
.hq-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hq-label {
    font-size: 12px;
    color: #909399;
    font-weight: 500;
}
.hq-value {
    font-size: 20px;
    font-weight: 700;
    color: #303133;
    line-height: 1.2;
    font-family: 'DIN', 'Helvetica Neue', Arial, sans-serif;
}
.hq-value span {
    font-size: 12px;
    font-weight: 500;
    color: #909399;
    margin-left: 2px;
}

@media (max-width: 640px) {
    .header-quota-cards {
        width: 100%;
    }
    .hq-card {
        flex: 1;
        min-width: 140px;
    }
}
