/* ============================================================
   common.css - ModernPay 通用样式
   包含：全局样式、卡片、导航、统计卡片、图表、表格、弹窗等
   ============================================================ */


/* ============================================================
   Vue 未编译前隐藏（防止 {{ }} 闪烁）
   ============================================================ */
[v-cloak] {
    display: none !important;
}


/* ============================================================
   1. 全局样式
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f0f2f5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.text-muted-light {
    color: #5e6f8d;
}

.text-purple {
    color: #6f4ef0;
}

/* ============================================================
   2. 加载状态
   ============================================================ */
.page-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f4f7fb;
}

.page-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #2a6df4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================================
   3. 卡片样式
   ============================================================ */
.card-dash {
    border-radius: 16px;
    border: none;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.card-dash:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card-dash .card-header-custom {
    padding: 16px 20px 0 20px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-dash .card-body-custom {
    padding: 16px 20px 20px 20px;
}

/* ============================================================
   4. 顶部导航
   ============================================================ */
.top-nav {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #0b1a33;
    letter-spacing: -0.5px;
}

.logo-text .dot {
    color: #2a6df4;
}

.version-badge {
    background: #f0f2f5;
    color: #5e6f8d;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 40px;
    border: 1px solid #e8ecf1;
}

/* ============================================================
   5. 角色徽章
   ============================================================ */
.role-badge {
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
}

.role-badge.admin {
    background: #eef3ff;
    color: #2a6df4;
}

.role-badge.operator {
    background: #f0edff;
    color: #6f4ef0;
}

.role-badge.merchant {
    background: #e6f9ed;
    color: #1d9b5e;
}

.role-badge.agent {
    background: #fff4e5;
    color: #d48c2b;
}

.role-badge.user {
    background: #f1f5f9;
    color: #5e6f8d;
}

/* ============================================================
   6. 语言切换按钮
   ============================================================ */
.lang-switch-btn {
    background: transparent;
    border: 1px solid #e8ecf1;
    color: #5e6f8d;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 40px;
    transition: all 0.2s;
    cursor: pointer;
}

.lang-switch-btn:hover {
    background: #eef3ff;
    border-color: #2a6df4;
    color: #2a6df4;
}

.lang-switch-btn .active-lang {
    font-weight: 600;
    color: #2a6df4;
}

/* ============================================================
   7. 登出按钮
   ============================================================ */
.logout-btn {
    background: transparent;
    border: none;
    color: #5e6f8d;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #fde8e8;
    color: #b02a37;
}

/* ============================================================
   8. 统计卡片
   ============================================================ */
.stat-card {
    padding: 16px 18px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    transition: all 0.2s;
    cursor: default;
}

.stat-card:hover {
    border-color: #2a6df4;
    box-shadow: 0 2px 8px rgba(42, 109, 244, 0.08);
}

.stat-card .stat-label {
    font-size: 12px;
    color: #8a9bb5;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-card .stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #0b1a33;
    margin-top: 2px;
}

.stat-card .stat-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-icon-wrap.blue {
    background: #eef3ff;
    color: #2a6df4;
}

.stat-icon-wrap.green {
    background: #e6f9ed;
    color: #1d9b5e;
}

.stat-icon-wrap.orange {
    background: #fff4e5;
    color: #d48c2b;
}

.stat-icon-wrap.purple {
    background: #f0edff;
    color: #6f4ef0;
}

.stat-icon-wrap.red {
    background: #fde8e8;
    color: #b02a37;
}

.stat-icon-wrap.cyan {
    background: #e6f7ff;
    color: #0d6efd;
}

.stat-change {
    font-size: 12px;
    display: flex;
    align-items: center;
}

.stat-change.up {
    color: #1d9b5e;
}

.stat-change.down {
    color: #b02a37;
}

/* ============================================================
   9. 筛选区域
   ============================================================ */
.filter-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.filter-section .form-label {
    font-size: 12px;
    font-weight: 500;
    color: #5e6f8d;
}

.filter-section .form-control,
.filter-section .form-select {
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 13px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
}

.filter-section .form-control:focus,
.filter-section .form-select:focus {
    border-color: #2a6df4;
    box-shadow: 0 0 0 3px rgba(42, 109, 244, 0.08);
}

/* ============================================================
   10. 按钮
   ============================================================ */
.btn-outline-custom {
    border-radius: 40px;
    padding: 6px 18px;
    font-size: 13px;
}

.btn-action-sm {
    padding: 3px 10px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 500;
    border: none;
    transition: 0.2s;
}

.btn-action-sm:hover {
    transform: translateY(-1px);
}

.btn-action-sm.btn-outline-primary {
    color: #2a6df4;
    border: 1px solid #2a6df4;
    background: transparent;
}

.btn-action-sm.btn-outline-primary:hover {
    background: #eef3ff;
}

.btn-action-sm.btn-outline-secondary {
    color: #5e6f8d;
    border: 1px solid #5e6f8d;
    background: transparent;
}

.btn-action-sm.btn-outline-secondary:hover {
    background: #f1f5f9;
}

.btn-action-sm.btn-outline-success {
    color: #1d9b5e;
    border: 1px solid #1d9b5e;
    background: transparent;
}

.btn-action-sm.btn-outline-success:hover {
    background: #e6f9ed;
}

.btn-action-sm.btn-outline-danger {
    color: #dc3545;
    border: 1px solid #dc3545;
    background: transparent;
}

.btn-action-sm.btn-outline-danger:hover {
    background: #fde8e8;
}

.btn-action-sm.btn-outline-warning {
    color: #d48c2b;
    border: 1px solid #d48c2b;
    background: transparent;
}

.btn-action-sm.btn-outline-warning:hover {
    background: #fff4e5;
}

.btn-action-sm.btn-outline-info {
    color: #0d6efd;
    border: 1px solid #0d6efd;
    background: transparent;
}

.btn-action-sm.btn-outline-info:hover {
    background: #e6f0ff;
}

.btn-action-sm.btn-retry {
    background: #fff4e5;
    color: #d48c2b;
}

.btn-action-sm.btn-retry:hover {
    background: #fde8d0;
}

.btn-action-sm.btn-success {
    background: #e6f9ed;
    color: #1d9b5e;
}

.btn-action-sm.btn-success:hover {
    background: #c8f0d8;
}

.btn-action-sm.btn-danger {
    background: #fde8e8;
    color: #b02a37;
}

.btn-action-sm.btn-danger:hover {
    background: #fcd0d0;
}

.btn-action-sm.btn-warning {
    background: #fff4e5;
    color: #d48c2b;
}

.btn-action-sm.btn-warning:hover {
    background: #fde8d0;
}

.btn-action-sm.btn-info {
    background: #e6f0ff;
    color: #0d6efd;
}

.btn-action-sm.btn-info:hover {
    background: #cce0ff;
}

/* ============================================================
   删除确认弹窗 - 危险操作样式
   ============================================================ */
.delete-warning-box {
    background: #fde8e8;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    padding: 14px;
    font-size: 13px;
    color: #842029;
}

.delete-warning-box .user-highlight {
    font-weight: 700;
    color: #b02a37;
}

.delete-option {
    padding: 10px 12px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-option:hover {
    border-color: #dc3545;
    background: #fff5f5;
}

.delete-option.selected {
    border-color: #dc3545;
    background: #fde8e8;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.delete-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #dc3545;
}

/* 危险按钮 */
.btn-danger-soft {
    background: #fde8e8;
    color: #b02a37;
    border: 1px solid #f5c6cb;
    border-radius: 40px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
}

.btn-danger-soft:hover {
    background: #b02a37;
    color: #fff;
    border-color: #b02a37;
}

/* 通用小按钮（复用 btn-action-sm 逻辑） */
.btn-action-sm.danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-action-sm.danger:hover {
    background: #dc3545;
    color: #fff;
}

/* ============================================================
   11. 表格
   ============================================================ */
.table-custom th {
    font-weight: 600;
    color: #334155;
    border-top: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 10px 12px;
    background: #f8fafc;
    white-space: nowrap;
}

.table-custom td {
    font-size: 13px;
    vertical-align: middle;
    padding: 10px 12px;
}

.table-custom tr:hover {
    background: #f8fafc;
}

/* ============================================================
   12. 状态徽章
   ============================================================ */
.status-badge.frozen {
    background: #e6f0ff;
    color: #0d6efd;
}

.status-badge {
    padding: 3px 12px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.pending {
    background: #fff4e5;
    color: #d48c2b;
}

.status-badge.running {
    background: #eef3ff;
    color: #2a6df4;
}

.status-badge.success {
    background: #e6f9ed;
    color: #1d9b5e;
}

.status-badge.failed {
    background: #fde8e8;
    color: #b02a37;
}

.status-badge.waiting {
    background: #f0edff;
    color: #6f4ef0;
}

.status-badge.active {
    background: #e6f9ed;
    color: #1d9b5e;
}

.status-badge.inactive {
    background: #fde8e8;
    color: #b02a37;
}

.status-badge.refund {
    background: #eef3ff;
    color: #2a6df4;
}

.status-badge.cancelled {
    background: #f1f5f9;
    color: #5e6f8d;
}

.status-badge.frozen {
    background: #e6f7ff;
    color: #0d6efd;
}

/* ============================================================
   13. 状态徽章小号
   ============================================================ */
.status-badge-sm {
    padding: 2px 10px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge-sm.pending {
    background: #fff4e5;
    color: #d48c2b;
}

.status-badge-sm.running {
    background: #eef3ff;
    color: #2a6df4;
}

.status-badge-sm.success {
    background: #e6f9ed;
    color: #1d9b5e;
}

.status-badge-sm.failed {
    background: #fde8e8;
    color: #b02a37;
}

.status-badge-sm.waiting {
    background: #f0edff;
    color: #6f4ef0;
}

/* ============================================================
   14. 分类徽章
   ============================================================ */
.category-badge {
    padding: 2px 10px;
    border-radius: 40px;
    font-size: 10px;
    font-weight: 600;
}

.category-badge.jc_recharge {
    background: #eef3ff;
    color: #2a6df4;
}

.category-badge.jc_withdraw {
    background: #f0edff;
    color: #6f4ef0;
}

.category-badge.ep_recharge {
    background: #e6f9ed;
    color: #1d9b5e;
}

.category-badge.ep_withdraw {
    background: #fff4e5;
    color: #d48c2b;
}

.category-badge.bank_withdraw {
    background: #fde8e8;
    color: #b02a37;
}

/* ============================================================
   15. 柱状图
   ============================================================ */
.chart-wrapper {
    padding: 8px 4px 4px 4px;
    background: #ffffff;
    border-radius: 12px;
}

.chart-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    padding: 0 2px;
    position: relative;
}

.chart-grid {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
}

.chart-grid .grid-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed #eef2f6;
}

.chart-grid .grid-line:nth-child(1) {
    top: 75%;
}

.chart-grid .grid-line:nth-child(2) {
    top: 50%;
}

.chart-grid .grid-line:nth-child(3) {
    top: 25%;
}

.month-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.bar-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 85%;
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 30px;
    min-width: 10px;
    height: 100%;
    justify-content: flex-end;
}

.bar-value {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.2;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.bar-value.blue-text {
    color: #2a6df4;
}

.bar-value.green-text {
    color: #1d9b5e;
}

.bar-value .unit {
    font-size: 8px;
    font-weight: 400;
    color: #8a9bb5;
}

.bar {
    width: 100%;
    border-radius: 3px 3px 0 0;
    transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    min-height: 3px;
}

.bar.blue {
    background: #2a6df4;
}

.bar.green {
    background: #1d9b5e;
}

.month-label {
    font-size: 12px;
    color: #5e6f8d;
    margin-top: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.chart-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #5e6f8d;
}

.chart-legend-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.chart-legend-item .dot.blue {
    background: #2a6df4;
}

.chart-legend-item .dot.green {
    background: #1d9b5e;
}

.chart-footer .max-info {
    font-size: 12px;
    color: #8a9bb5;
}

.chart-footer .max-info strong {
    color: #2a6df4;
}

/* ============================================================
   16. 近期订单列表
   ============================================================ */
.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item .order-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-item .order-id {
    font-weight: 600;
    font-size: 13px;
    color: #0b1a33;
}

.order-item .order-customer {
    font-size: 12px;
    color: #8a9bb5;
}

.order-item .order-amount {
    font-weight: 600;
    font-size: 13px;
    color: #0b1a33;
}

/* ============================================================
   17. 上游渠道
   ============================================================ */
.upstream-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #f8fafc;
    border-radius: 10px;
}

.upstream-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.upstream-dot.online {
    background: #1d9b5e;
}

.upstream-dot.maintenance {
    background: #d48c2b;
}

.upstream-dot.offline {
    background: #b02a37;
}

.upstream-name {
    font-size: 12px;
    font-weight: 500;
    color: #0b1a33;
    flex: 1;
}

.upstream-load {
    font-size: 11px;
    color: #8a9bb5;
}

.upstream-badge {
    font-size: 9px;
    padding: 1px 8px;
    border-radius: 40px;
    font-weight: 600;
}

.upstream-badge.online {
    background: #e6f9ed;
    color: #1d9b5e;
}

.upstream-badge.maintenance {
    background: #fff4e5;
    color: #d48c2b;
}

.upstream-badge.offline {
    background: #fde8e8;
    color: #b02a37;
}

.upstream-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 500;
}

.upstream-status.online {
    background: #e6f9ed;
    color: #1d9b5e;
}

.upstream-status.maintenance {
    background: #fff4e5;
    color: #d48c2b;
}

.upstream-status.offline {
    background: #fde8e8;
    color: #b02a37;
}

/* ============================================================
   18. 弹窗
   ============================================================ */
.modal-custom .modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-custom .modal-header {
    border-bottom: none;
    padding: 20px 24px 0;
}

.modal-custom .modal-body {
    padding: 20px 24px;
}

.modal-custom .modal-footer {
    border-top: 1px solid #f0f2f5;
    padding: 16px 24px;
}

/* ============================================================
   19. Toast
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast-custom {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    animation: slideUp 0.3s ease-out;
}

.toast-custom.success {
    border-left: 4px solid #1d9b5e;
}

.toast-custom.error {
    border-left: 4px solid #b02a37;
}

.toast-custom.warning {
    border-left: 4px solid #d48c2b;
}

.toast-custom.info {
    border-left: 4px solid #2a6df4;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   20. 空状态
   ============================================================ */
.empty-state {
    padding: 40px 0;
    text-align: center;
    color: #94a3b8;
}

.empty-state i {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    color: #e2e8f0;
}

/* ============================================================
   21. 用户类型标签
   ============================================================ */
.user-tag {
    padding: 2px 10px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 500;
    background: #f1f5f9;
    color: #0b1a33;
}

.user-tag.merchant {
    background: #eef3ff;
    color: #2a6df4;
}

.user-tag.platform {
    background: #f0edff;
    color: #6f4ef0;
}

.user-tag.agent {
    background: #e6f9ed;
    color: #1d9b5e;
}

.user-tag.super_admin {
    background: #fde8e8;
    color: #b02a37;
}

.user-tag.operator {
    background: #e6f7ff;
    color: #0d6efd;
}

/* ============================================================
   22. 白名单标签
   ============================================================ */
.whitelist-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.whitelist-tag {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 600;
    background: #eef3ff;
    color: #2a6df4;
}

.whitelist-tag.empty {
    background: #f1f5f9;
    color: #94a3b8;
}

/* ============================================================
   23. 侧边栏
   ============================================================ */
.sidebar-wrapper {
    position: sticky;
    top: 20px;
}

.sidebar .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #2a6df4;
    flex-shrink: 0;
}

.sidebar .nav-link-custom {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    color: #5e6f8d;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.sidebar .nav-link-custom:hover {
    background: #f1f5f9;
    color: #0b1a33;
}

.sidebar .nav-link-custom.active {
    background: #eef3ff;
    color: #2a6df4;
}

.sidebar .nav-link-custom i {
    width: 20px;
    margin-right: 10px;
    font-size: 16px;
}

.sidebar .nav-link-custom .menu-badge {
    font-size: 10px;
    padding: 1px 8px;
    border-radius: 40px;
    margin-left: 8px;
}

.sidebar .sub-menu {
    padding-left: 20px;
}

.sidebar .sub-menu .nav-link-custom {
    font-size: 13px;
    padding: 6px 12px;
}

.sidebar .sub-menu .nav-link-custom i {
    width: 16px;
    font-size: 10px;
    margin-right: 8px;
}

/* ============================================================
   24. 搜索下拉联动组件
   ============================================================ */
.search-select-wrapper {
    position: relative;
}

.search-select-wrapper .form-control {
    border-radius: 10px 10px 0 0;
    border-bottom: none;
    cursor: pointer;
    padding-right: 35px;
    background: #ffffff;
}

.search-select-wrapper .form-control:focus {
    border-color: #2a6df4;
    box-shadow: 0 0 0 3px rgba(42, 109, 244, 0.08);
}

.search-select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #94a3b8;
    pointer-events: none;
    transition: transform 0.2s;
}

.search-select-wrapper.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    background: #ffffff;
    border: 1.5px solid #2a6df4;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    z-index: 1000;
    margin-top: -1px;
}

.dropdown-item {
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: 1px solid #f0f2f5;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #eef3ff;
}

.dropdown-item.active {
    background: #eef3ff;
    border-left: 3px solid #2a6df4;
}

.dropdown-empty {
    padding: 20px 14px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.dropdown-list::-webkit-scrollbar {
    width: 4px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 0 0 10px 0;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================================
   25. 响应式
   ============================================================ */
@media (max-width: 768px) {
    .top-nav {
        padding: 10px 16px;
    }

    .stat-card .stat-value {
        font-size: 18px;
    }

    .stat-card {
        padding: 12px 14px;
    }

    .chart-body {
        height: 150px;
    }

    .bar-value {
        font-size: 9px;
    }

    .bar-value .unit {
        font-size: 7px;
    }

    .month-label {
        font-size: 10px;
        margin-top: 6px;
    }

    .bar-item {
        max-width: 16px;
        min-width: 8px;
    }

    .bar-row {
        gap: 2px;
    }

    .chart-footer {
        gap: 12px;
        flex-wrap: wrap;
    }

    .chart-footer .chart-legend-item {
        font-size: 10px;
    }

    .order-item {
        padding: 8px 0;
    }

    .order-item .order-id {
        font-size: 12px;
    }

    .card-dash .card-body-custom {
        padding: 12px 16px 16px 16px;
    }

    .hide-mobile {
        display: none !important;
    }

    .filter-section .row {
        gap: 8px;
    }

    .table-custom th,
    .table-custom td {
        font-size: 11px;
        padding: 6px 8px;
    }

    .toast-custom {
        min-width: 200px;
        font-size: 13px;
    }

    .settings-sidebar .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }

    .settings-sidebar {
        min-height: auto;
    }

    .info-row .label {
        width: 80px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .stat-card .stat-value {
        font-size: 16px;
    }

    .stat-card .stat-icon-wrap {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .chart-body {
        height: 120px;
    }

    .bar-value {
        font-size: 8px;
    }

    .bar-value .unit {
        font-size: 6px;
    }

    .month-label {
        font-size: 8px;
        margin-top: 4px;
    }

    .bar-item {
        max-width: 12px;
        min-width: 6px;
    }

    .bar-row {
        gap: 2px;
    }

    .chart-footer {
        gap: 6px;
    }

    .chart-footer .chart-legend-item {
        font-size: 8px;
    }

    .chart-footer .max-info {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 28px 20px;
        border-radius: 24px;
    }
}

/* ============================================================
   27. 登录注册页面通用样式（追加）
   ============================================================ */

/* 主容器 */
.auth-container {
    max-width: 480px;
    width: 100%;
    background: #ffffff;
    border-radius: 32px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Logo 和标题 */
.brand-logo {
    font-size: 28px;
    font-weight: 700;
    color: #0b1a33;
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.brand-logo i {
    color: #2a6df4;
    margin-right: 8px;
}

.brand-subtitle {
    text-align: center;
    color: #5e6f8d;
    font-size: 14px;
    margin-bottom: 28px;
}

/* 模式切换标签 */
.mode-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 28px;
}

.mode-tab {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: #5e6f8d;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    background: transparent;
}

.mode-tab.active {
    background: #ffffff;
    color: #0b1a33;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.mode-tab:hover:not(.active) {
    color: #0b1a33;
}

/* 表单通用 */
.form-group {
    margin-bottom: 5px;
}

.form-label {
    font-weight: 500;
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 5px;
}

.form-control {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    background: #fafbfc;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #2a6df4;
    box-shadow: 0 0 0 4px rgba(42, 109, 244, 0.10);
    background: #ffffff;
}

/* 输入框图标 */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-control {
    padding-left: 44px;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
}

/* 密码显示切换 */
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    z-index: 2;
}

.password-toggle:hover {
    color: #0b1a33;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    background: #2a6df4;
    color: #ffffff;
    border: none;
    transition: all 0.2s ease;
    margin-top: 6px;
}

.btn-submit:hover {
    background: #1a5cd4;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(42, 109, 244, 0.30);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 额外链接 */
.extra-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 13px;
}

.extra-links a {
    color: #5e6f8d;
    text-decoration: none;
    transition: color 0.2s;
}

.extra-links a:hover {
    color: #2a6df4;
}

/* 消息提示 */
.message-box {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-box.success {
    background: #e6f9ed;
    color: #1a7a4a;
}

.message-box.error {
    background: #fde8e8;
    color: #b02a37;
}

.message-box.info {
    background: #eef3ff;
    color: #1a5cd4;
}

/* 注册提示 */
.register-hint {
    text-align: center;
    font-size: 13px;
    color: #5e6f8d;
    margin-top: 16px;
}

.register-hint a {
    color: #2a6df4;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.register-hint a:hover {
    text-decoration: underline;
}

/* 分隔线 */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0 18px;
    color: #94a3b8;
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider::before {
    margin-right: 16px;
}

.divider::after {
    margin-left: 16px;
}

/* 淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.35s ease forwards;
}

/* 加载动画 */
.auth-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #2a6df4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.auth-loading p {
    margin-top: 16px;
    color: #5e6f8d;
    font-size: 14px;
}

/* 已登录卡片 */
.logged-in-card {
    text-align: center;
    padding: 20px 0;
}

.logged-in-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #2a6df4;
    margin: 0 auto 16px;
    font-weight: 600;
}

.logged-in-card .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.logged-in-card .user-name {
    font-size: 20px;
    font-weight: 700;
    color: #0b1a33;
}

.logged-in-card .user-email {
    color: #5e6f8d;
    font-size: 14px;
    margin-top: 4px;
}

.logged-in-card .user-role {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    background: #eef3ff;
    color: #2a6df4;
}

.logged-in-card .action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.logged-in-card .action-buttons .btn {
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
}

.btn-go-dashboard {
    background: #2a6df4;
    color: #fff;
    border: none;
    transition: all 0.2s;
}

.btn-go-dashboard:hover {
    background: #1a5cd4;
    color: #fff;
    transform: translateY(-1px);
}

.btn-logout {
    background: #f1f5f9;
    color: #1e293b;
    border: none;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #fee9e9;
    color: #b02a37;
}

.captcha-wrapper .btn-send-code {
    flex-shrink: 0;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    background: #2a6df4;
    color: #ffffff;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 110px;
}

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

.captcha-wrapper .form-control {
    flex: 1;
    padding-left: 44px;
}

.captcha-wrapper .btn-send-code:hover:not(:disabled) {
    background: #1a5cd4;
}

.captcha-wrapper .btn-send-code:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #94a3b8;
}

.captcha-wrapper .btn-send-code.sending {
    background: #94a3b8;
}

/* ============================================================
   补单结果选择器
   ============================================================ */
.result-options {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.result-options .btn-option {
    flex: 1;
    padding: 16px 12px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 80px;
}

.result-options .btn-option:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.result-options .btn-option .icon {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.result-options .btn-option .label {
    font-size: 14px;
    font-weight: 600;
}

/* 补单成功 - 选中态 */
.result-options .btn-option.selected-success {
    border-color: #1d9b5e;
    background: #e6f9ed;
    box-shadow: 0 0 0 3px rgba(29, 155, 94, 0.1);
}

.result-options .btn-option.selected-success .icon,
.result-options .btn-option.selected-success .label {
    color: #0a7c42 !important;
}

/* 补单失败 - 选中态 */
.result-options .btn-option.selected-failed {
    border-color: #b02a37;
    background: #fde8e8;
    box-shadow: 0 0 0 3px rgba(176, 42, 55, 0.1);
}

.result-options .btn-option.selected-failed .icon,
.result-options .btn-option.selected-failed .label {
    color: #b02a37 !important;
}