/* ================================================================
 *  ZC-THEME — 租车后台全局美化（参考 Shadcn/ui 设计语言）
 *  覆盖 FastAdmin + AdminLTE 默认样式
 *  色彩体系: 中性灰 + 紫蓝主色(#667eea) + 功能色
 * ================================================================ */

/* ── CSS Variables ── */
:root {
    --zc-primary: #667eea;
    --zc-primary-light: #818cf8;
    --zc-primary-dark: #4f46e5;
    --zc-success: #10b981;
    --zc-warning: #f59e0b;
    --zc-danger: #ef4444;
    --zc-info: #06b6d4;
    --zc-bg: #f8fafc;
    --zc-card: #ffffff;
    --zc-border: #e2e8f0;
    --zc-text: #1e293b;
    --zc-text-muted: #64748b;
    --zc-text-dim: #94a3b8;
    --zc-radius: 8px;
    --zc-radius-lg: 12px;
    --zc-shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
    --zc-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .06);
    --zc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
    --zc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
    --zc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --zc-transition: all .2s ease;
}

/* ── 全局基础 ── */
body.inside-header {
    background: var(--zc-bg) !important;
    font-family: var(--zc-font) !important;
    color: var(--zc-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── 内容区 ── */
.content {
    padding: 20px !important;
}

/* ── 面板/卡片 通用 ── */
.panel {
    border: 1px solid var(--zc-border) !important;
    border-radius: var(--zc-radius-lg) !important;
    box-shadow: var(--zc-shadow-sm) !important;
    overflow: hidden;
    transition: var(--zc-transition);
}

.panel:hover {
    box-shadow: var(--zc-shadow) !important;
}

.panel-heading {
    background: var(--zc-card) !important;
    border-bottom: 1px solid var(--zc-border) !important;
    padding: 16px 20px !important;
    font-weight: 600;
    font-size: 14px;
    color: var(--zc-text);
}

.panel-body {
    padding: 20px !important;
    background: var(--zc-card);
}

/* ── 表格美化 (Bootstrap Table) ── */
.fixed-table-container {
    border: none !important;
}

.bootstrap-table .fixed-table-container {
    border-radius: var(--zc-radius) !important;
    overflow: hidden;
}

.table>thead>tr>th {
    background: #f1f5f9 !important;
    border-bottom: 2px solid var(--zc-border) !important;
    color: var(--zc-text-muted) !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 12px 14px !important;
    white-space: nowrap;
}

.table>tbody>tr>td {
    padding: 12px 14px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: var(--zc-text);
    font-size: 13px;
    transition: background .15s;
}

.table>tbody>tr:hover>td {
    background: #f8fafc !important;
}

.table-striped>tbody>tr:nth-of-type(odd)>td {
    background: rgba(248, 250, 252, .5) !important;
}

.table-striped>tbody>tr:nth-of-type(odd):hover>td {
    background: #f1f5f9 !important;
}

/* 表格工具栏 */
.fixed-table-toolbar .columns,
.fixed-table-toolbar .search {
    margin-bottom: 12px;
}

.fixed-table-toolbar .search input {
    border-radius: var(--zc-radius) !important;
    border: 1px solid var(--zc-border) !important;
    padding: 6px 12px !important;
    font-size: 13px;
    transition: var(--zc-transition);
}

.fixed-table-toolbar .search input:focus {
    border-color: var(--zc-primary) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, .15) !important;
    outline: none;
}

/* 分页器 */
.fixed-table-pagination .pagination>li>a {
    border-radius: var(--zc-radius) !important;
    margin: 0 2px;
    border: 1px solid var(--zc-border) !important;
    color: var(--zc-text-muted);
    font-size: 13px;
    padding: 6px 12px;
    transition: var(--zc-transition);
}

.fixed-table-pagination .pagination>.active>a,
.fixed-table-pagination .pagination>.active>a:hover {
    background: var(--zc-primary) !important;
    border-color: var(--zc-primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(102, 126, 234, .3);
}

.fixed-table-pagination .pagination>li>a:hover {
    background: #f1f5f9 !important;
    border-color: var(--zc-border) !important;
}

/* ── 按钮美化 ── */
.btn {
    border-radius: var(--zc-radius) !important;
    font-weight: 500;
    font-size: 13px;
    padding: 7px 16px;
    border: none !important;
    transition: var(--zc-transition);
    letter-spacing: .3px;
}

.btn:active {
    transform: scale(.97);
}

.btn-primary {
    background: var(--zc-primary) !important;
    box-shadow: 0 1px 3px rgba(102, 126, 234, .4);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--zc-primary-dark) !important;
    box-shadow: 0 4px 8px rgba(102, 126, 234, .4);
}

.btn-success {
    background: var(--zc-success) !important;
    box-shadow: 0 1px 3px rgba(16, 185, 129, .3);
}

.btn-success:hover,
.btn-success:focus {
    background: #059669 !important;
    box-shadow: 0 4px 8px rgba(16, 185, 129, .3);
}

.btn-warning {
    background: var(--zc-warning) !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(245, 158, 11, .3);
}

.btn-warning:hover,
.btn-warning:focus {
    background: #d97706 !important;
    box-shadow: 0 4px 8px rgba(245, 158, 11, .3);
}

.btn-danger {
    background: var(--zc-danger) !important;
    box-shadow: 0 1px 3px rgba(239, 68, 68, .3);
}

.btn-danger:hover,
.btn-danger:focus {
    background: #dc2626 !important;
    box-shadow: 0 4px 8px rgba(239, 68, 68, .3);
}

.btn-info {
    background: var(--zc-info) !important;
    box-shadow: 0 1px 3px rgba(6, 182, 212, .3);
}

.btn-info:hover,
.btn-info:focus {
    background: #0891b2 !important;
    box-shadow: 0 4px 8px rgba(6, 182, 212, .3);
}

.btn-default {
    background: var(--zc-card) !important;
    border: 1px solid var(--zc-border) !important;
    color: var(--zc-text-muted) !important;
    box-shadow: var(--zc-shadow-sm);
}

.btn-default:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: var(--zc-text) !important;
}

/* 小按钮组（表格操作栏） */
.btn-xs {
    padding: 3px 8px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
}

.btn-group>.btn {
    border-radius: 0 !important;
}

.btn-group>.btn:first-child {
    border-top-left-radius: var(--zc-radius) !important;
    border-bottom-left-radius: var(--zc-radius) !important;
}

.btn-group>.btn:last-child {
    border-top-right-radius: var(--zc-radius) !important;
    border-bottom-right-radius: var(--zc-radius) !important;
}

/* ── 表单控件 ── */
.form-control {
    border-radius: var(--zc-radius) !important;
    border: 1px solid var(--zc-border) !important;
    font-size: 13px;
    padding: 8px 12px !important;
    height: auto !important;
    min-height: 36px;
    box-shadow: none !important;
    transition: var(--zc-transition);
    color: var(--zc-text);
}

.form-control:focus {
    border-color: var(--zc-primary) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, .12) !important;
    outline: none;
}

.form-control::placeholder {
    color: var(--zc-text-dim);
}

.form-group label,
.control-label {
    font-weight: 500;
    color: var(--zc-text);
    font-size: 13px;
    margin-bottom: 6px;
}

/* Select2 下拉美化 */
.select2-container--default .select2-selection--single {
    border-radius: var(--zc-radius) !important;
    border: 1px solid var(--zc-border) !important;
    height: 36px !important;
    line-height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
    color: var(--zc-text);
    font-size: 13px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--zc-primary) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, .12) !important;
}

.select2-dropdown {
    border-radius: var(--zc-radius) !important;
    border: 1px solid var(--zc-border) !important;
    box-shadow: var(--zc-shadow-lg) !important;
    overflow: hidden;
}

.select2-results__option--highlighted[aria-selected] {
    background: var(--zc-primary) !important;
}

/* ── 状态标签 ── */
.label {
    border-radius: 20px !important;
    padding: 3px 10px !important;
    font-weight: 500;
    font-size: 11px !important;
    letter-spacing: .3px;
}

.label-success {
    background: rgba(16, 185, 129, .1) !important;
    color: #059669 !important;
}

.label-danger {
    background: rgba(239, 68, 68, .1) !important;
    color: #dc2626 !important;
}

.label-warning {
    background: rgba(245, 158, 11, .1) !important;
    color: #d97706 !important;
}

.label-info {
    background: rgba(6, 182, 212, .1) !important;
    color: #0891b2 !important;
}

.label-primary {
    background: rgba(102, 126, 234, .1) !important;
    color: var(--zc-primary-dark) !important;
}

.label-default {
    background: #f1f5f9 !important;
    color: var(--zc-text-muted) !important;
}

/* ── 弹窗 / Modal ── */
.modal-content {
    border-radius: var(--zc-radius-lg) !important;
    border: none !important;
    box-shadow: var(--zc-shadow-lg) !important;
    overflow: hidden;
}

.modal-header {
    background: var(--zc-card);
    border-bottom: 1px solid var(--zc-border) !important;
    padding: 16px 24px !important;
}

.modal-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--zc-text);
}

.modal-body {
    padding: 24px !important;
}

.modal-footer {
    border-top: 1px solid var(--zc-border) !important;
    padding: 12px 24px !important;
    background: #fafbfc;
}

.modal-backdrop.in {
    opacity: .4 !important;
}

/* ── 面包屑 ── */
.breadcrumb {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px;
}

.breadcrumb>li>a {
    color: var(--zc-text-muted);
}

.breadcrumb>.active {
    color: var(--zc-text);
    font-weight: 500;
}

/* ── Layer 弹层 ── */
.layui-layer {
    border-radius: var(--zc-radius-lg) !important;
    box-shadow: var(--zc-shadow-lg) !important;
    overflow: hidden;
}

.layui-layer-title {
    background: var(--zc-card) !important;
    border-bottom: 1px solid var(--zc-border) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: var(--zc-text) !important;
    padding: 0 20px !important;
    line-height: 48px !important;
    height: 48px !important;
}

.layui-layer-btn a {
    border-radius: var(--zc-radius) !important;
    font-size: 13px !important;
}

.layui-layer-btn .layui-layer-btn0 {
    background: var(--zc-primary) !important;
    border-color: var(--zc-primary) !important;
}

/* ── 导航Tab ── */
.nav-tabs {
    border-bottom: 2px solid var(--zc-border) !important;
}

.nav-tabs>li>a {
    border-radius: var(--zc-radius) var(--zc-radius) 0 0 !important;
    color: var(--zc-text-muted);
    font-weight: 500;
    font-size: 13px;
    padding: 10px 18px;
    border: none !important;
    transition: var(--zc-transition);
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:hover,
.nav-tabs>li.active>a:focus {
    color: var(--zc-primary) !important;
    border: none !important;
    border-bottom: 2px solid var(--zc-primary) !important;
    background: transparent !important;
    font-weight: 600;
}

.nav-tabs>li>a:hover {
    background: #f1f5f9 !important;
    color: var(--zc-text) !important;
}

/* ── 滚动条美化 ── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

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

/* ── Alert / 提示框 ── */
.alert {
    border-radius: var(--zc-radius) !important;
    border: none !important;
    font-size: 13px;
    padding: 12px 16px !important;
}

.alert-success {
    background: rgba(16, 185, 129, .08) !important;
    color: #065f46 !important;
}

.alert-warning {
    background: rgba(245, 158, 11, .08) !important;
    color: #92400e !important;
}

.alert-danger {
    background: rgba(239, 68, 68, .08) !important;
    color: #991b1b !important;
}

.alert-info {
    background: rgba(6, 182, 212, .08) !important;
    color: #155e75 !important;
}

/* ── 工具提示 ── */
.tooltip-inner {
    border-radius: 6px;
    font-size: 12px;
    padding: 6px 10px;
    background: #1e293b;
}

/* ── 通用辅助 ── */
.text-muted {
    color: var(--zc-text-muted) !important;
}

/* 隐藏 FastAdmin 底部版权栏 iframe 内 */
.inside-header .wrapper {
    min-height: 100vh;
}

/* ── 表格操作列按钮间距 ── */
.btn-editone,
.btn-delone,
.btn-change {
    margin: 0 2px;
}

/* ── nice-validator ── */
.n-invalid {
    border-color: var(--zc-danger) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .1) !important;
}

/* ── 动画 ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.wrapper-content {
    animation: fadeInUp .35s ease both;
}

/* ── Dropdown 菜单 ── */
.dropdown-menu {
    border-radius: var(--zc-radius) !important;
    border: 1px solid var(--zc-border) !important;
    box-shadow: var(--zc-shadow-lg) !important;
    padding: 4px !important;
    min-width: 160px;
}

.dropdown-menu>li>a {
    padding: 8px 14px !important;
    font-size: 13px;
    color: var(--zc-text);
    border-radius: 6px;
    transition: background .15s;
}

.dropdown-menu>li>a:hover,
.dropdown-menu>li>a:focus {
    background: #f1f5f9 !important;
    color: var(--zc-text) !important;
}

/* ── SelectPage 插件 ── */
.sp_container {
    border-radius: var(--zc-radius) !important;
    border: 1px solid var(--zc-border) !important;
    box-shadow: var(--zc-shadow-lg) !important;
    overflow: hidden;
}

.sp_container .sp_input {
    border-radius: var(--zc-radius) !important;
    border: 1px solid var(--zc-border) !important;
}

.sp_container .sp_input:focus {
    border-color: var(--zc-primary) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, .12) !important;
}

.sp_container .sp_element_box .sp_result_area li.sp_over,
.sp_container .sp_element_box .sp_result_area li:hover {
    background: #f1f5f9 !important;
}

.sp_container .sp_element_box .sp_result_area li.selected {
    background: rgba(102, 126, 234, .08) !important;
    color: var(--zc-primary);
    font-weight: 500;
}

.bind-coach-layer .bind-coach-select-form {
    padding: 24px;
}

.bind-coach-layer .bind-coach-search {
    position: relative;
    margin-top: 10px;
}

.bind-coach-layer .bind-coach-search .form-control {
    height: 38px;
    padding-right: 36px;
    border-radius: 8px;
    border-color: #dbe4f0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.bind-coach-layer .bind-coach-search .fa-search {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #8fa1b8;
}

.bind-coach-layer .bind-coach-result {
    margin-top: 14px;
    height: 240px;
    overflow-y: auto;
    border: 1px solid #edf1f7;
    border-radius: 10px;
    background: #f8fafc;
}

.bind-coach-layer .bind-coach-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid #edf1f7;
    background: #fff;
    transition: all .18s ease;
}

.bind-coach-layer .bind-coach-item:hover,
.bind-coach-layer .bind-coach-item.active {
    background: #eef5ff;
}

.bind-coach-layer .bind-coach-item.active {
    box-shadow: inset 3px 0 0 #3B82F6;
}

.bind-coach-layer .bind-coach-avatar {
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    border-radius: 50%;
    color: #3B82F6;
    background: #eaf2ff;
}

.bind-coach-layer .bind-coach-main {
    flex: 1;
    min-width: 0;
}

.bind-coach-layer .bind-coach-name {
    color: #1f2937;
    font-weight: 600;
}

.bind-coach-layer .bind-coach-meta {
    margin-top: 4px;
    color: #7b8798;
    font-size: 12px;
}

.bind-coach-layer .bind-coach-check {
    display: none;
    color: #3B82F6;
}

.bind-coach-layer .bind-coach-item.active .bind-coach-check {
    display: block;
}

.bind-coach-layer .bind-coach-empty,
.bind-coach-layer .bind-coach-loading {
    padding: 42px 0;
    text-align: center;
    color: #8fa1b8;
}

/* ── 图片上传区域 ── */
.plupload .thumbnail,
.faupload .thumbnail {
    border-radius: var(--zc-radius) !important;
    border: 2px dashed var(--zc-border) !important;
    transition: border-color .2s;
}

.plupload .thumbnail:hover,
.faupload .thumbnail:hover {
    border-color: var(--zc-primary) !important;
}

/* ── 进度条 ── */
.progress {
    border-radius: 20px !important;
    height: 8px !important;
    background: #f1f5f9 !important;
    overflow: hidden;
}

.progress-bar {
    border-radius: 20px !important;
    background: linear-gradient(90deg, var(--zc-primary), var(--zc-primary-light)) !important;
}

/* ── 表格内操作按钮组 ── */
.btn-group .btn+.btn {
    margin-left: 1px;
}

.table .btn-xs {
    padding: 2px 8px !important;
    font-size: 11px !important;
}

/* ── FastAdmin panel-intro 标题条优化 ── */
.panel-intro .panel-heading {
    padding: 12px 20px 0 !important;
    border-bottom: none !important;
}

.panel-intro .panel-heading .nav-tabs {
    border-bottom: 2px solid #f1f5f9 !important;
    margin-top: 8px;
}

.panel-intro .panel-heading .nav-tabs>li>a {
    padding: 8px 16px !important;
    font-size: 13px;
    margin-bottom: -2px;
}

/* ── 工具栏按钮组间距 ── */
.toolbar .btn {
    margin-right: 6px;
    margin-bottom: 6px;
}

/* ── 右键菜单 / contextmenu ── */
.contextmenu {
    border-radius: var(--zc-radius) !important;
    box-shadow: var(--zc-shadow-lg) !important;
    border: 1px solid var(--zc-border) !important;
    padding: 4px !important;
}

.contextmenu li a {
    border-radius: 6px;
    padding: 6px 12px !important;
}

/* ── Layer iframe 内容区 ── */
.layui-layer-iframe .layui-layer-content {
    border-radius: 0 0 var(--zc-radius-lg) var(--zc-radius-lg);
}

/* ── 表格全选 checkbox ── */
.table .bs-checkbox .th-inner {
    padding: 0 !important;
}

/* ── Toastr 通知 ── */
.toast {
    border-radius: var(--zc-radius) !important;
    box-shadow: var(--zc-shadow-md) !important;
}

/* ── 数字输入框微调 ── */
input[type="number"]::-webkit-inner-spin-button {
    opacity: .5;
}

/* ── 面板内搜索栏对齐 ── */
.fixed-table-toolbar .bars {
    margin-bottom: 12px;
}

/* ════════════════════════════════════════════════════════════════
 *  ZC-BOOST：列表页通用增强组件
 * ════════════════════════════════════════════════════════════════ */

/* ── 顶部统计卡 ── */
.zc-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 16px 20px 8px;
    background: var(--zc-card);
    border-bottom: 1px solid var(--zc-border);
}

.zc-stats-skeleton,
.zc-stats-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--zc-text-dim);
    padding: 16px;
    font-size: 13px;
}

.zc-stat-card {
    background: linear-gradient(135deg, #f8fafc, #fff);
    border: 1px solid var(--zc-border);
    border-radius: var(--zc-radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--zc-transition);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.zc-stat-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--zc-primary);
    transition: width .25s;
}

.zc-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--zc-shadow-md);
    border-color: transparent;
}

.zc-stat-card:hover::before {
    width: 6px;
}

.zc-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: rgba(102, 126, 234, .1);
    color: var(--zc-primary);
}

.zc-stat-body {
    flex: 1;
    min-width: 0;
}

.zc-stat-label {
    font-size: 12px;
    color: var(--zc-text-muted);
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: .3px;
}

.zc-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--zc-text);
    line-height: 1.1;
    word-break: break-all;
}

/* sparkline 与涨跌徽章 */
.zc-stat-spark {
    margin-top: 6px;
    height: 24px;
    overflow: hidden;
}

.zc-stat-spark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.zc-trend {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 0 6px;
    border-radius: 10px;
    margin-left: 4px;
    line-height: 18px;
    vertical-align: 1px;
}

.zc-trend-up {
    color: #dc2626;
    background: rgba(239, 68, 68, .1);
}

.zc-trend-down {
    color: #059669;
    background: rgba(16, 185, 129, .1);
}

.zc-trend-flat {
    color: #64748b;
    background: rgba(100, 116, 139, .1);
}

/* dashboard ZC 业务卡（不带 .zc-stat-card 后缀的图标 class） */
.zc-stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.zc-stat-card__body {
    flex: 1;
    padding-left: 12px;
}

.zc-stat-card__label {
    color: var(--zc-muted);
    font-size: 12px;
}

.zc-stat-card__value {
    font-size: 22px;
    font-weight: 700;
    color: var(--zc-text);
    margin-top: 2px;
}

.zc-color-primary .zc-stat-card__icon {
    background: var(--zc-primary);
}

.zc-color-success .zc-stat-card__icon {
    background: var(--zc-success);
}

.zc-color-warning .zc-stat-card__icon {
    background: var(--zc-warning);
}

.zc-color-danger .zc-stat-card__icon {
    background: var(--zc-danger);
}

.zc-color-info .zc-stat-card__icon {
    background: var(--zc-info);
}

.zc-color-purple .zc-stat-card__icon {
    background: #8b5cf6;
}

.zc-color-pink .zc-stat-card__icon {
    background: #ec4899;
}

.zc-color-gray .zc-stat-card__icon {
    background: #94a3b8;
}

/* 颜色变体 */
.zc-stat-primary::before {
    background: var(--zc-primary);
}

.zc-stat-primary .zc-stat-icon {
    background: rgba(102, 126, 234, .12);
    color: var(--zc-primary-dark);
}

.zc-stat-success::before {
    background: var(--zc-success);
}

.zc-stat-success .zc-stat-icon {
    background: rgba(16, 185, 129, .12);
    color: #059669;
}

.zc-stat-warning::before {
    background: var(--zc-warning);
}

.zc-stat-warning .zc-stat-icon {
    background: rgba(245, 158, 11, .12);
    color: #d97706;
}

.zc-stat-danger::before {
    background: var(--zc-danger);
}

.zc-stat-danger .zc-stat-icon {
    background: rgba(239, 68, 68, .12);
    color: #dc2626;
}

.zc-stat-info::before {
    background: var(--zc-info);
}

.zc-stat-info .zc-stat-icon {
    background: rgba(6, 182, 212, .12);
    color: #0891b2;
}

.zc-stat-purple::before {
    background: #a855f7;
}

.zc-stat-purple .zc-stat-icon {
    background: rgba(168, 85, 247, .12);
    color: #9333ea;
}

.zc-stat-pink::before {
    background: #ec4899;
}

.zc-stat-pink .zc-stat-icon {
    background: rgba(236, 72, 153, .12);
    color: #db2777;
}

.zc-stat-gray::before {
    background: #94a3b8;
}

.zc-stat-gray .zc-stat-icon {
    background: rgba(148, 163, 184, .15);
    color: #64748b;
}

/* ── 快捷筛选条 ── */
.zc-quickfilter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px;
    background: #fafbfc;
    border-bottom: 1px solid var(--zc-border);
}

.zc-quickbtn {
    padding: 5px 14px;
    font-size: 12px;
    border-radius: 20px;
    background: #fff;
    color: var(--zc-text-muted);
    border: 1px solid var(--zc-border);
    transition: var(--zc-transition);
    text-decoration: none !important;
    font-weight: 500;
}

.zc-quickbtn:hover {
    border-color: var(--zc-primary);
    color: var(--zc-primary);
    background: rgba(102, 126, 234, .04);
    text-decoration: none;
}

.zc-quickbtn.active {
    background: var(--zc-primary);
    border-color: var(--zc-primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(102, 126, 234, .3);
}

.zc-quickbtn.active:hover {
    background: var(--zc-primary-dark);
    color: #fff;
}

.zc-quickbtn.zc-quickreset {
    color: #94a3b8;
    margin-left: auto;
}

.zc-quickbtn.zc-quickreset:hover {
    color: var(--zc-danger);
    border-color: var(--zc-danger);
    background: rgba(239, 68, 68, .04);
}

/* ── 底部合计行 ── */
.zc-sum-row {
    background: linear-gradient(90deg, rgba(102, 126, 234, .05), rgba(118, 75, 162, .05));
    border-top: 1px dashed var(--zc-border);
    padding: 10px 16px;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    color: var(--zc-text);
}

.zc-sum-row:empty {
    display: none;
}

.zc-sum-label {
    color: var(--zc-text-muted);
    font-weight: 600;
    margin-right: 4px;
}

.zc-sum-label .fa {
    color: var(--zc-primary);
    margin-right: 4px;
}

.zc-sum-item em {
    font-style: normal;
    color: var(--zc-text-muted);
    margin-right: 4px;
}

.zc-sum-item b {
    color: var(--zc-primary-dark);
    font-weight: 700;
    font-size: 14px;
}

/* ── 表格单元格定制 ── */
.zc-cell-money {
    color: #059669;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}

.zc-cell-money-big {
    color: var(--zc-primary-dark);
    font-size: 14px;
}

.zc-cell-mobile,
.zc-cell-orderno,
.zc-cell-plate {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 12.5px;
}

.zc-cell-orderno {
    color: var(--zc-text);
    font-weight: 500;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

.zc-cell-plate {
    background: linear-gradient(180deg, #2563eb, #1e40af);
    color: #fff;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
    display: inline-block;
}

.zc-cell-mobile .fa {
    color: #94a3b8;
    margin-right: 2px;
}

.zc-cell-time {
    color: var(--zc-text-muted);
    font-size: 12px;
}

/* 用户单元格 */
.zc-cell-user {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.zc-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
    border: 1px solid var(--zc-border);
}

.zc-cell-user-text {
    min-width: 0;
    line-height: 1.2;
}

.zc-cell-user-text>div {
    color: var(--zc-text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zc-cell-user-text small {
    color: var(--zc-text-dim);
    font-size: 11px;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
}

/* ── 状态指示点 ── */
.zc-status-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    line-height: 1.6;
}

.zc-status-dot .zc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .04);
    flex-shrink: 0;
}

.zc-status-default {
    color: #64748b;
    background: rgba(100, 116, 139, .08);
}

.zc-status-success {
    color: #059669;
    background: rgba(16, 185, 129, .1);
}

.zc-status-info {
    color: #0891b2;
    background: rgba(6, 182, 212, .1);
}

.zc-status-warning {
    color: #d97706;
    background: rgba(245, 158, 11, .1);
}

.zc-status-danger {
    color: #dc2626;
    background: rgba(239, 68, 68, .1);
}

.zc-status-primary {
    color: var(--zc-primary-dark);
    background: rgba(102, 126, 234, .1);
}

.zc-status-purple {
    color: #9333ea;
    background: rgba(168, 85, 247, .1);
}

.zc-status-pending {
    color: #d97706;
    background: rgba(245, 158, 11, .12);
}

.zc-status-pending .zc-dot {
    animation: zc-pulse 1.5s infinite;
}

@keyframes zc-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(.85);
    }
}

/* ── 工具栏增强 ── */
.zc-toolbar-extra {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
}

/* 操作列按钮组美化 */
.btn-magic {
    transition: var(--zc-transition);
}

/* 列表页 panel-body 内边距优化 */
.panel-intro .panel-body {
    padding: 0 !important;
}

.panel-intro .widget-body {
    padding: 16px 20px;
}

/* ── 响应式适配（手机/平板/小笔记本） ── */

/* 平板：1024 以下让统计卡更紧凑，工具栏可换行 */
@media (max-width: 1024px) {
    .zc-stats-bar {
        grid-template-columns: repeat(3, 1fr);
        padding: 12px;
    }

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

    .zc-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .zc-stat-value {
        font-size: 20px;
    }

    .fixed-table-toolbar .btn-group,
    .fixed-table-toolbar .dropdown,
    .fixed-table-toolbar .btn {
        margin-bottom: 4px;
    }
}

/* 手机：768 以下两列布局，工具栏可水平滑动 */
@media (max-width: 768px) {
    .zc-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px;
        gap: 10px;
    }

    .zc-stat-card {
        padding: 10px 12px;
    }

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

    .zc-stat-value {
        font-size: 16px;
    }

    .zc-stat-spark {
        height: 18px;
    }

    .zc-quickfilter {
        padding: 8px 12px;
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .zc-quickbtn {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .zc-sum-row {
        padding: 10px 12px;
        gap: 12px;
        overflow-x: auto;
    }

    /* 列表工具栏水平滑动 */
    .fixed-table-toolbar {
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .fixed-table-toolbar .columns,
    .fixed-table-toolbar .columns-right,
    .fixed-table-toolbar .search {
        display: inline-block !important;
        float: none !important;
        vertical-align: middle;
    }

    /* dashboard ZC 业务卡 */
    .zc-stat-card__icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .zc-stat-card__value {
        font-size: 16px;
    }
}

/* 超小屏：480 以下单列 */
@media (max-width: 480px) {
    .zc-stats-bar {
        grid-template-columns: 1fr;
    }

    .zc-stat-card,
    .zc-stat-card[class*="zc-color-"] {
        padding: 10px 12px;
    }

    /* 隐藏次要面包屑等占位 */
    .panel-intro>.panel-heading .nav-tabs>li:nth-child(n+2) {
        display: none;
    }
}

/* 触摸友好：放大点击区域 */
@media (hover: none) and (pointer: coarse) {

    .zc-quickbtn,
    .zc-stat-card,
    .zc-sum-item {
        min-height: 36px;
    }
}