/**
 * 先手共创生态平台 - 移动端样式
 * 版本: v1.0.0
 * 支持主题: 紫色(purple) / 蓝色(blue) / 浅色(light)
 * 断点策略: max-width: 1024px 统一移动端视图（含平板）
 */

/* ============================================================
   1. CSS 变量 - 主题配色系统
   ============================================================ */

:root {
    /* 默认主题：紫色 */
    --m-primary: #4F46E5;
    --m-primary-light: #818CF8;
    --m-primary-dark: #3730A3;
    --m-primary-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --m-primary-bg: #EEF2FF;
    
    /* 语义色 */
    --m-success: #10B981;
    --m-success-bg: #D1FAE5;
    --m-warning: #F59E0B;
    --m-warning-bg: #FEF3C7;
    --m-danger: #EF4444;
    --m-danger-bg: #FEE2E2;
    --m-info: #3B82F6;
    --m-info-bg: #DBEAFE;
    --m-purple: #7C3AED;
    --m-purple-bg: #EDE9FE;
    --m-teal: #14B8A6;
    --m-teal-bg: #CCFBF1;
    
    /* 文本色 */
    --m-text1: #1F2937;
    --m-text2: #6B7280;
    --m-text3: #9CA3AF;
    --m-text4: #D1D5DB;
    
    /* 背景色 */
    --m-bg: #F3F4F6;
    --m-card-bg: #FFFFFF;
    --m-border: #E5E7EB;
    --m-border-light: #F3F4F6;
    
    /* 圆角 */
    --m-radius: 14px;
    --m-radius-sm: 10px;
    --m-radius-xs: 6px;
    --m-radius-btn: 30px;
    
    /* 阴影 */
    --m-shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --m-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --m-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    
    /* 导航高度 */
    --m-nav-height: 60px;
    --m-top-nav-height: 110px;
    
    /* 安全区域 */
    --m-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* 蓝色主题 */
[data-theme="blue"] {
    --m-primary: #2563EB;
    --m-primary-light: #60A5FA;
    --m-primary-dark: #1D4ED8;
    --m-primary-gradient: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    --m-primary-bg: #EFF6FF;
}

/* 浅色主题 */
[data-theme="light"] {
    --m-primary: #4F46E5;
    --m-primary-light: #818CF8;
    --m-primary-dark: #3730A3;
    --m-primary-gradient: none;
    --m-primary-bg: #F9FAFB;
    --m-bg: #FFFFFF;
}

/* 绿色主题 */
[data-theme="green"] {
    --m-primary: #059669;
    --m-primary-light: #34D399;
    --m-primary-dark: #047857;
    --m-primary-gradient: linear-gradient(135deg, #059669 0%, #10B981 100%);
    --m-primary-bg: #ECFDF5;
}

/* 橙色主题 */
[data-theme="orange"] {
    --m-primary: #EA580C;
    --m-primary-light: #FB923C;
    --m-primary-dark: #C2410C;
    --m-primary-gradient: linear-gradient(135deg, #EA580C 0%, #F97316 100%);
    --m-primary-bg: #FFF7ED;
}

/* 粉色主题 */
[data-theme="pink"] {
    --m-primary: #DB2777;
    --m-primary-light: #F472B6;
    --m-primary-dark: #BE185D;
    --m-primary-gradient: linear-gradient(135deg, #DB2777 0%, #EC4899 100%);
    --m-primary-bg: #FDF2F8;
}

/* 深色主题 */
[data-theme="dark"] {
    --m-primary: #818CF8;
    --m-primary-light: #A5B4FC;
    --m-primary-dark: #6366F1;
    --m-primary-gradient: linear-gradient(135deg, #4338CA 0%, #6366F1 100%);
    --m-primary-bg: #1E1B4B;
    --m-text1: #F9FAFB;
    --m-text2: #D1D5DB;
    --m-text3: #9CA3AF;
    --m-bg: #111827;
    --m-card-bg: #1F2937;
    --m-border: #374151;
    --m-border-light: #1F2937;
}

/* ============================================================
   2. 基础重置与布局
   ============================================================ */

@media (max-width: 1024px) {
    /* 隐藏 PC 端元素 */
    .sidebar,
    .mobile-menu-toggle,
    .pc-view {
        display: none !important;
    }
    
    /* 主内容区域全宽 */
    .col-md-10,
    main[class*="col-md"] {
        max-width: 100% !important;
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .container-fluid > .row {
        margin: 0 !important;
    }
    
    /* 页面基础样式 */
    body {
        background: var(--m-bg);
        font-size: 14px;
        color: var(--m-text1);
        -webkit-font-smoothing: antialiased;
        padding-bottom: calc(var(--m-nav-height) + var(--m-safe-bottom) + 10px);
    }
    
    /* 移动端视图容器 */
    .mobile-view {
        display: block;
        max-width: 100%;
        margin: 0 auto;
        padding-bottom: 20px;
    }
    
    /* PC 端表格隐藏 */
    .table-card,
    .table-responsive {
        display: none !important;
    }
    /* PC搜索区移动端适配 */
    .search-area {
        padding: 0 12px 12px;
    }
    .search-area .form-control,
    .search-area .form-select {
        font-size: 13px;
        padding: 8px 12px;
        border-radius: 8px;
    }
    .search-area .btn {
        font-size: 13px;
        padding: 8px 14px;
    }
    /* PC页面标题 - 仅在有自动卡片的页面显示 */
    body.m-auto-cards-active .page-header {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        margin: 0;
        gap: 8px;
    }
    body.m-auto-cards-active .page-header h5 {
        font-size: 17px;
        font-weight: 700;
        margin: 0;
        color: #111827;
    }
    body.m-auto-cards-active .page-header .header-actions {
        width: 100%;
    }
    body.m-auto-cards-active .page-header .btn {
        font-size: 13px;
        padding: 6px 14px;
    }
}

/* ============================================================
   3. 顶部导航栏
   ============================================================ */

@media (max-width: 1024px) {
    .m-top-nav {
        background: var(--m-primary-gradient);
        color: #fff;
        padding: 16px 16px 12px;
        position: sticky;
        top: 0;
        z-index: 100;
        border-radius: 16px;
        margin: 8px 12px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 52px;
    }
    
    [data-theme="light"] .m-top-nav {
        background: #fff;
        color: var(--m-text1);
        border-bottom: 1px solid var(--m-border);
        box-shadow: var(--m-shadow-sm);
    }
    
    /* 顶部导航左右布局 */
    .m-top-nav-left,
    .m-top-nav-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .m-top-nav-left {
        flex: 1;
    }
    
    .m-top-title {
        font-size: 17px;
        font-weight: 600;
    }
    
    .m-nav-btn {
        font-size: 12px;
        padding: 4px 12px;
        border-radius: 12px;
        background: rgba(255,255,255,0.2);
        color: #fff;
        text-decoration: none;
        transition: all 0.2s;
    }
    
    .m-nav-btn:hover {
        background: rgba(255,255,255,0.3);
    }
    
    [data-theme="light"] .m-nav-btn {
        background: var(--m-primary-light);
        color: var(--m-primary);
    }
    
    .m-top-nav .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }
    
    .m-top-nav .nav-title {
        font-size: 17px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    [data-theme="light"] .m-top-nav .nav-title {
        color: var(--m-text1);
    }
    
    .m-top-nav .nav-actions {
        display: flex;
        gap: 14px;
        align-items: center;
    }
    
    .m-top-nav .nav-actions i {
        font-size: 18px;
        cursor: pointer;
        opacity: 0.9;
    }
    
    .m-top-nav .nav-actions i:active {
        opacity: 0.6;
    }
    
    /* 视图切换按钮 */
    .m-view-toggle {
        background: rgba(255,255,255,0.2);
        border-radius: 20px;
        padding: 3px;
        display: flex;
        font-size: 12px;
    }
    
    [data-theme="light"] .m-view-toggle {
        background: var(--m-bg);
    }
    
    .m-view-toggle span {
        padding: 4px 12px;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.2s;
        color: rgba(255,255,255,0.8);
    }
    
    [data-theme="light"] .m-view-toggle span {
        color: var(--m-text2);
    }
    
    .m-view-toggle span.active {
        background: #fff;
        color: var(--m-primary);
        font-weight: 500;
    }
    
    [data-theme="light"] .m-view-toggle span.active {
        background: var(--m-primary);
        color: #fff;
    }
    
    /* 主题切换按钮 */
    .m-theme-toggle {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255,255,255,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border: none;
        color: #fff;
        font-size: 14px;
    }
    
    [data-theme="light"] .m-theme-toggle {
        background: var(--m-bg);
        color: var(--m-text1);
    }
    
    .m-theme-toggle:active {
        transform: scale(0.92);
    }
}

/* ============================================================
   4. 搜索栏
   ============================================================ */

@media (max-width: 1024px) {
    .m-search-bar {
        display: flex;
        gap: 8px;
        margin-top: 4px;
        padding: 12px 16px;
        background: var(--m-card-bg);
        border-radius: var(--m-radius);
        margin: 12px 16px 0;
    }
    
    .m-search-input-wrap {
        flex: 1;
        position: relative;
        display: flex;
        align-items: center;
    }
    
    .m-search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--m-text3);
        font-size: 14px;
        z-index: 1;
        pointer-events: none;
    }
    
    .m-search-input {
        width: 100%;
        padding: 10px 12px 10px 38px;
        border: none;
        border-radius: var(--m-radius-sm);
        font-size: 14px;
        background: var(--m-bg);
        outline: none;
        transition: box-shadow 0.2s;
        box-sizing: border-box;
    }
    
    [data-theme="light"] .m-search-input {
        background: var(--m-bg);
        border: 1px solid var(--m-border);
    }
    
    .m-search-input:focus {
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    }
    
    /* 搜索栏内的按钮 */
    .m-search-filter-btn {
        padding: 10px 14px;
        border: none;
        border-radius: var(--m-radius-sm);
        background: var(--m-primary);
        color: #fff;
        font-size: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        transition: all 0.2s;
        flex-shrink: 0;
    }
    
    .m-search-filter-btn:active {
        transform: scale(0.95);
    }
    
    /* 搜索栏内的搜索按钮 */
    .m-search-submit {
        padding: 10px 16px;
        border: none;
        border-radius: var(--m-radius-sm);
        background: var(--m-primary);
        color: #fff;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        transition: all 0.2s;
        flex-shrink: 0;
        gap: 4px;
    }
    
    .m-search-submit:active {
        transform: scale(0.95);
    }
    
    /* 搜索栏内的重置按钮 */
    .m-search-reset {
        padding: 10px 14px;
        border: 1px solid var(--m-border);
        border-radius: var(--m-radius-sm);
        background: var(--m-card-bg);
        color: var(--m-text2);
        font-size: 13px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        transition: all 0.2s;
        flex-shrink: 0;
        text-decoration: none;
    }
    
    .m-search-reset:active {
        transform: scale(0.95);
        background: var(--m-bg);
    }
    
    /* 搜索栏内的多个按钮 */
    .m-search-btns {
        display: flex;
        gap: 6px;
        flex-shrink: 0;
        align-items: center;
    }
    
    .m-filter-btn {
        padding: 10px 14px;
        border: none;
        border-radius: var(--m-radius-sm);
        background: rgba(255,255,255,0.2);
        color: #fff;
        font-size: 13px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
        transition: all 0.2s;
    }
    
    [data-theme="light"] .m-filter-btn {
        background: var(--m-bg);
        color: var(--m-text1);
        border: 1px solid var(--m-border);
    }
    
    .m-filter-btn:active {
        transform: scale(0.95);
    }
    
    /* 独立搜索栏（不在顶部导航内） */
    .m-search-standalone {
        padding: 12px 16px;
        background: var(--m-card-bg);
    }
    
    .m-search-standalone .m-search-bar {
        margin-top: 0;
    }
    
    .m-search-standalone .m-search-input input {
        background: var(--m-bg);
        border: 1px solid var(--m-border);
    }
    
    .m-search-standalone .m-filter-btn {
        background: var(--m-primary);
        color: #fff;
    }
    
    /* 快速筛选标签容器 */
    .m-quick-tags {
        display: flex;
        gap: 8px;
        padding: 12px 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .m-quick-tags::-webkit-scrollbar {
        display: none;
    }
    
    /* 快速筛选标签 */
    .m-tag {
        padding: 6px 14px;
        border-radius: 16px;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.2s;
        background: var(--m-card-bg);
        color: var(--m-text2);
        border: 1px solid var(--m-border);
        text-decoration: none;
        display: inline-block;
    }
    
    .m-tag.active {
        background: var(--m-primary);
        color: #fff;
        border-color: var(--m-primary);
    }
    
    .m-tag:active {
        transform: scale(0.95);
    }
}
/* ============================================================
   5. 筛选面板
   ============================================================ */

@media (max-width: 1024px) {
    .m-filter-mask {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 200;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .m-filter-mask.show {
        display: block;
        opacity: 1;
    }
    
    .m-filter-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--m-card-bg);
        border-radius: 20px 20px 0 0;
        padding: 20px 16px;
        padding-bottom: calc(20px + var(--m-safe-bottom));
        max-height: 70vh;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 201;
    }
    
    .m-filter-mask.show .m-filter-panel,
    .m-filter-panel.show {
        transform: translateY(0);
    }
    
    .m-filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--m-border-light);
        font-size: 16px;
        font-weight: 600;
        color: var(--m-text1);
    }
    
    .m-filter-header h6 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }
    
    .m-filter-header button {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--m-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border: none;
        color: var(--m-text2);
        font-size: 14px;
    }
    
    .m-filter-close {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--m-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border: none;
        color: var(--m-text2);
    }
    
    .m-filter-group {
        margin-bottom: 16px;
    }
    
    .m-filter-group label,
    .m-filter-body .m-form-group label {
        font-size: 13px;
        color: var(--m-text2);
        margin-bottom: 6px;
        display: block;
    }
    
    .m-filter-group select,
    .m-filter-group input,
    .m-filter-body .m-form-input,
    .m-filter-body .m-form-select {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid var(--m-border);
        border-radius: var(--m-radius-sm);
        font-size: 14px;
        outline: none;
        background: var(--m-card-bg);
    }

    .m-filter-body {
        padding: 0;
    }

    .m-filter-footer {
        display: flex;
        gap: 12px;
        margin-top: 20px;
    }
    
    .m-filter-group select:focus,
    .m-filter-group input:focus {
        border-color: var(--m-primary);
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }
    
    .m-filter-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .m-filter-actions {
        display: flex;
        gap: 12px;
        margin-top: 20px;
    }
    
    .m-filter-actions button {
        flex: 1;
        padding: 12px;
        border-radius: var(--m-radius-sm);
        font-size: 14px;
        font-weight: 500;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .m-filter-actions .btn-reset {
        background: var(--m-bg);
        color: var(--m-text2);
    }
    
    .m-filter-actions .btn-submit {
        background: var(--m-primary);
        color: #fff;
    }
    
    .m-filter-actions button:active {
        transform: scale(0.97);
    }
}

/* ============================================================
   6. 状态标签
   ============================================================ */

@media (max-width: 1024px) {
    .m-status-tabs {
        display: flex;
        overflow-x: auto;
        padding: 12px 16px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .m-status-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .m-status-tab {
        padding: 6px 16px;
        border-radius: var(--m-radius-btn);
        font-size: 13px;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.2s;
        border: none;
        background: var(--m-card-bg);
        color: var(--m-text2);
        box-shadow: var(--m-shadow-sm);
    }
    
    .m-status-tab.active {
        background: var(--m-primary);
        color: #fff;
    }
    
    .m-status-tab:active {
        transform: scale(0.95);
    }
    
    /* 状态标签颜色变体 */
    .m-status-tab.success { background: var(--m-success-bg); color: var(--m-success); }
    .m-status-tab.success.active { background: var(--m-success); color: #fff; }
    .m-status-tab.warning { background: var(--m-warning-bg); color: var(--m-warning); }
    .m-status-tab.warning.active { background: var(--m-warning); color: #fff; }
    .m-status-tab.danger { background: var(--m-danger-bg); color: var(--m-danger); }
    .m-status-tab.danger.active { background: var(--m-danger); color: #fff; }
    .m-status-tab.info { background: var(--m-info-bg); color: var(--m-info); }
    .m-status-tab.info.active { background: var(--m-info); color: #fff; }
}
/* ============================================================
   7. 卡片列表
   ============================================================ */

@media (max-width: 1024px) {
    .m-list-container {
        padding: 0 16px;
    }
    
    .m-list-cards {
        padding: 0 16px 16px;
    }
    
    .m-list-cards .m-card:last-child {
        margin-bottom: 0;
    }
    
    .m-card {
        background: var(--m-card-bg);
        border-radius: var(--m-radius);
        padding: 14px;
        margin-bottom: 10px;
        box-shadow: var(--m-shadow-sm);
        cursor: pointer;
        transition: all 0.2s;
        border: 1px solid transparent;
    }
    
    .m-card:active {
        transform: scale(0.98);
        box-shadow: var(--m-shadow-md);
    }
    
    .m-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 10px;
    }
    
    .m-card-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--m-text1);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .m-card-badge {
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 11px;
        font-weight: 500;
    }
    
    .m-badge-sa { background: var(--m-purple-bg); color: var(--m-purple); }
    .m-badge-admin { background: var(--m-danger-bg); color: var(--m-danger); }
    .m-badge-branch { background: var(--m-warning-bg); color: var(--m-warning); }
    .m-badge-partner { background: var(--m-info-bg); color: var(--m-info); }
    .m-badge-emp { background: var(--m-teal-bg); color: var(--m-teal); }
    
    .m-card-status {
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 500;
    }
    
    .m-card-status.success { background: var(--m-success-bg); color: var(--m-success); }
    .m-card-status.warning { background: var(--m-warning-bg); color: var(--m-warning); }
    .m-card-status.danger { background: var(--m-danger-bg); color: var(--m-danger); }
    .m-card-status.info { background: var(--m-info-bg); color: var(--m-info); }
    .m-card-status.purple { background: var(--m-purple-bg); color: var(--m-purple); }
    .m-card-status.default { background: var(--m-bg); color: var(--m-text2); }
    
    .m-card-body {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .m-card-row {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: var(--m-text2);
    }
    
    .m-card-row i {
        width: 14px;
        color: var(--m-text3);
        font-size: 12px;
    }
    
    .m-card-row .label {
        color: var(--m-text3);
        min-width: 50px;
    }
    
    .m-card-row .value {
        color: var(--m-text1);
    }
    
    .m-card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--m-border-light);
    }
    
    .m-card-meta {
        font-size: 12px;
        color: var(--m-text3);
    }
    
    .m-card-actions {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--m-border);
    }
    
    .m-card-btn {
        flex: 1;
        padding: 8px 12px;
        border-radius: var(--m-radius-sm);
        font-size: 13px;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
        background: var(--m-bg);
        color: var(--m-text2);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }
    
    .m-card-btn:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
    
    .m-card-btn.primary {
        background: var(--m-primary-light);
        color: var(--m-primary);
    }
    
    .m-card-btn.danger {
        background: #fef2f2;
        color: var(--m-danger);
    }
    
    .m-card-btn.success {
        background: #ecfdf5;
        color: var(--m-success);
    }
    
    .m-card-btn-primary {
        background: var(--m-primary-light);
        color: var(--m-primary);
    }
    
    .m-card-btn-danger {
        background: #fef2f2;
        color: var(--m-danger);
    }
    
    .m-card-btn-success {
        background: #ecfdf5;
        color: var(--m-success);
    }
    
    .m-status-tag {
        display: inline-flex;
        align-items: center;
        padding: 3px 10px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.4;
        white-space: nowrap;
    }
    
    .m-status-secondary { background: #f3f4f6; color: #6b7280; }
    .m-status-info { background: #dbeafe; color: #2563eb; }
    .m-status-danger { background: #fee2e2; color: #dc2626; }
    .m-status-warning { background: #fef3c7; color: #d97706; }
    .m-status-primary { background: #ede9fe; color: #7c3aed; }
    .m-status-success { background: #d1fae5; color: #059669; }
    .m-status-cyan { background: #cffafe; color: #0891b2; }
    
    .m-card-actions .btn-action {
        padding: 6px 12px;
        border-radius: var(--m-radius-xs);
        font-size: 12px;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .m-card-actions .btn-action:active {
        transform: scale(0.92);
    }
    
    .m-card-actions .btn-primary {
        background: var(--m-primary);
        color: #fff;
    }
    
    .m-card-actions .btn-success {
        background: var(--m-success);
        color: #fff;
    }
    
    .m-card-actions .btn-warning {
        background: var(--m-warning);
        color: #fff;
    }
    
    .m-card-actions .btn-danger {
        background: var(--m-danger-bg);
        color: var(--m-danger);
    }
    
    .m-card-actions .btn-outline {
        background: transparent;
        color: var(--m-text2);
        border: 1px solid var(--m-border);
    }
}

/* ============================================================
   8. 详情页覆盖层
   ============================================================ */

@media (max-width: 1024px) {
    .m-detail-page {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--m-bg);
        z-index: 300;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 8px;
    }
    
    .m-detail-page.show {
        display: block;
        animation: slideInRight 0.3s ease;
    }
    
    @keyframes slideInRight {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }
    
    .m-detail-header {
        background: var(--m-primary-gradient);
        color: #fff;
        padding: 16px;
        border-radius: 16px;
        margin: 0 12px;
        z-index: 10;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    [data-theme="light"] .m-detail-header {
        background: #fff;
        color: var(--m-text1);
        border-bottom: 1px solid var(--m-border);
    }
    
    .m-detail-back {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255,255,255,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border: none;
        color: inherit;
        font-size: 16px;
    }
    
    [data-theme="light"] .m-detail-back {
        background: var(--m-bg);
    }
    
    .m-detail-title {
        flex: 1;
        font-size: 17px;
        font-weight: 600;
    }
    
    .m-detail-actions {
        display: flex;
        gap: 10px;
    }
    
    .m-detail-actions button {
        padding: 8px 16px;
        border-radius: var(--m-radius-sm);
        font-size: 13px;
        border: none;
        cursor: pointer;
        background: rgba(255,255,255,0.2);
        color: inherit;
    }
    
    [data-theme="light"] .m-detail-actions button {
        background: var(--m-bg);
    }
    
    .m-detail-content {
        padding: 16px;
    }
    
    .m-detail-section {
        background: var(--m-card-bg);
        border-radius: var(--m-radius);
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: var(--m-shadow-sm);
    }
    
    .m-detail-section-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--m-text1);
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--m-border-light);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .m-detail-section-title i {
        color: var(--m-primary);
    }
    
    .m-detail-field {
        display: flex;
        padding: 8px 0;
        font-size: 14px;
    }
    
    .m-detail-field:not(:last-child) {
        border-bottom: 1px solid var(--m-border-light);
    }
    
    .m-detail-label {
        width: 80px;
        color: var(--m-text3);
        flex-shrink: 0;
    }
    
    .m-detail-value {
        flex: 1;
        color: var(--m-text1);
        word-break: break-all;
    }
    
    .m-detail-footer {
        position: sticky;
        bottom: 0;
        background: var(--m-card-bg);
        padding: 12px 16px;
        padding-bottom: calc(12px + var(--m-safe-bottom));
        border-top: 1px solid var(--m-border);
        display: flex;
        gap: 12px;
    }
    
    .m-detail-footer button {
        flex: 1;
        padding: 12px;
        border-radius: var(--m-radius-sm);
        font-size: 14px;
        font-weight: 500;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .m-detail-footer button:active {
        transform: scale(0.97);
    }
    
    .m-detail-footer .btn-primary {
        background: var(--m-primary);
        color: #fff;
    }
    
    .m-detail-footer .btn-danger {
        background: var(--m-danger-bg);
        color: var(--m-danger);
    }
}

/* ============================================================
   9. 底部导航
   ============================================================ */

@media (max-width: 1024px) {
    .m-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--m-card-bg);
        border-top: 1px solid var(--m-border);
        display: flex;
        justify-content: space-around;
        padding: 8px 0;
        padding-bottom: calc(8px + var(--m-safe-bottom));
        z-index: 100;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
    
    .m-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 4px 12px;
        color: var(--m-text3);
        text-decoration: none;
        transition: color 0.2s;
        position: relative;
        cursor: pointer;
    }
    
    .m-nav-item.active {
        color: var(--m-primary);
    }
    
    .m-nav-item i {
        font-size: 20px;
    }
    
    .m-nav-item span {
        font-size: 11px;
    }
    
    .m-nav-badge {
        position: absolute;
        top: 0;
        right: 4px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 9px;
        background: var(--m-danger);
        color: #fff;
        font-size: 10px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .m-nav-badge:empty {
        display: none;
    }
    
    .m-nav-dot {
        position: absolute;
        top: 4px;
        right: 8px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--m-danger);
    }
    
    .m-nav-dot:empty {
        display: none;
    }
}

/* ============================================================
   10. 更多菜单
   ============================================================ */

@media (max-width: 1024px) {
    .m-more-mask {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 150;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .m-more-mask.show {
        display: block;
        opacity: 1;
    }
    
    .m-more-panel {
        position: fixed;
        bottom: calc(var(--m-nav-height) + var(--m-safe-bottom));
        left: 0;
        right: 0;
        background: var(--m-card-bg);
        border-radius: 20px 20px 0 0;
        padding: 16px;
        max-height: 60vh;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    .m-more-mask.show .m-more-panel {
        transform: translateY(0);
    }
    
    .m-more-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--m-border-light);
    }
    
    .m-more-header h6 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }
    
    .m-more-close {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--m-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border: none;
        color: var(--m-text2);
    }
    
    .m-more-group {
        margin-bottom: 16px;
    }
    
    .m-more-group-title {
        font-size: 13px;
        color: var(--m-text3);
        margin-bottom: 8px;
        padding-left: 4px;
    }
    
    .m-more-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .m-more-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 12px 8px;
        border-radius: var(--m-radius-sm);
        background: var(--m-bg);
        text-decoration: none;
        color: var(--m-text1);
        transition: all 0.2s;
    }
    
    .m-more-item:active {
        transform: scale(0.95);
        background: var(--m-primary-bg);
    }
    
    .m-more-item i {
        font-size: 22px;
        color: var(--m-primary);
    }
    
    .m-more-item span {
        font-size: 12px;
        text-align: center;
    }
}
/* ============================================================
   11. 统计卡片（首页看板/入离职等）
   ============================================================ */

@media (max-width: 1024px) {
    .m-stat-grid,
    .m-dashboard-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 12px 12px 8px;
        margin-top: 0;
    }
    
    .m-stat-card {
        background: var(--m-card-bg);
        border-radius: var(--m-radius);
        padding: 14px 12px;
        position: relative;
        overflow: hidden;
        box-shadow: var(--m-shadow-sm);
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }
    
    .m-stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
    }
    
    .m-stat-card.blue::before { background: var(--m-info); }
    .m-stat-card.green::before { background: var(--m-success); }
    .m-stat-card.orange::before { background: var(--m-warning); }
    .m-stat-card.purple::before { background: var(--m-purple); }
    .m-stat-card.red::before { background: var(--m-danger); }
    .m-stat-card.teal::before { background: var(--m-teal); }
    
    .m-stat-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    .m-stat-card.blue .m-stat-icon { background: var(--m-info-bg); color: var(--m-info); }
    .m-stat-card.green .m-stat-icon { background: var(--m-success-bg); color: var(--m-success); }
    .m-stat-card.orange .m-stat-icon { background: var(--m-warning-bg); color: var(--m-warning); }
    .m-stat-card.purple .m-stat-icon { background: var(--m-purple-bg); color: var(--m-purple); }
    .m-stat-card.red .m-stat-icon { background: var(--m-danger-bg); color: var(--m-danger); }
    .m-stat-card.teal .m-stat-icon { background: var(--m-teal-bg); color: var(--m-teal); }
    
    .m-stat-number {
        font-size: clamp(14px, 5vw, 22px);
        font-weight: 700;
        color: var(--m-text1);
        margin-bottom: 2px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
    
    .m-stat-label {
        font-size: 12px;
        color: var(--m-text2);
    }
}

/* ============================================================
   12. 跑马灯（第二套样式，匹配 dashboard.php HTML 结构）
   见下方 section 25 跑马灯增强样式
   ============================================================ */

/* ============================================================
   13. 排行榜
   ============================================================ */

@media (max-width: 1024px) {
    .m-section-card {
        background: var(--m-card-bg);
        border-radius: var(--m-radius);
        margin: 0 16px 12px;
        padding: 16px;
        box-shadow: var(--m-shadow-sm);
    }
    
    .m-section-title {
        font-size: 15px;
        font-weight: 600;
        color: var(--m-text1);
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .m-section-title i {
        color: var(--m-primary);
    }
    
    .m-top-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .m-top-list li {
        display: flex;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--m-border-light);
    }
    
    .m-top-list li:last-child {
        border-bottom: none;
    }
    
    .m-top-rank {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 700;
        margin-right: 12px;
        background: var(--m-bg);
        color: var(--m-text3);
    }
    
    .m-top-rank.gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #fff; }
    .m-top-rank.silver { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #fff; }
    .m-top-rank.bronze { background: linear-gradient(135deg, #CD7F32, #B87333); color: #fff; }
    
    .m-top-name {
        flex: 1;
        font-size: 14px;
        color: var(--m-text1);
    }
    
    .m-top-value {
        font-size: 14px;
        font-weight: 600;
        color: var(--m-primary);
    }
    
    .m-top-empty {
        text-align: center;
        color: var(--m-text3);
        padding: 20px 0;
        font-size: 13px;
    }
}

/* ============================================================
   14. 图表容器
   ============================================================ */

@media (max-width: 1024px) {
    .m-chart-container {
        position: relative;
        width: 100%;
        height: 200px;
        margin: 0 auto;
    }
    
    .m-chart-container canvas {
        max-height: 200px;
    }
    
    .m-today-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .m-today-item {
        background: var(--m-bg);
        border-radius: var(--m-radius-sm);
        padding: 12px;
        text-align: center;
    }
    
    .m-today-item .value {
        font-size: 20px;
        font-weight: 700;
        color: var(--m-primary);
    }
    
    .m-today-item .label {
        font-size: 12px;
        color: var(--m-text2);
        margin-top: 4px;
    }
}

/* ============================================================
   15. 分页
   ============================================================ */

@media (max-width: 1024px) {
    .m-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding: 16px;
    }
    
    .m-pagination a,
    .m-pagination span {
        min-width: 32px;
        height: 32px;
        padding: 0 10px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        text-decoration: none;
        transition: all 0.2s;
    }
    
    .m-pagination a {
        background: var(--m-card-bg);
        color: var(--m-text2);
        border: 1px solid var(--m-border);
    }
    
    .m-pagination a:active {
        transform: scale(0.92);
    }
    
    .m-pagination a.active,
    .m-pagination span.current {
        background: var(--m-primary);
        color: #fff;
        border-color: var(--m-primary);
    }
    
    .m-pagination a.disabled {
        opacity: 0.4;
        pointer-events: none;
    }
    
    .m-pagination .page-info {
        font-size: 12px;
        color: var(--m-text3);
        margin: 0 8px;
    }
}

/* ============================================================
   16. ActionSheet
   ============================================================ */

@media (max-width: 1024px) {
    .m-actionsheet-mask {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 250;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .m-actionsheet-mask.show {
        display: block;
        opacity: 1;
    }
    
    .m-actionsheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--m-bg);
        border-radius: 16px 16px 0 0;
        padding: 8px;
        padding-bottom: calc(8px + var(--m-safe-bottom));
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 251;
    }
    
    .m-actionsheet-mask.show + .m-actionsheet,
    .m-actionsheet.show {
        transform: translateY(0);
    }
    
    .m-actionsheet-item {
        padding: 14px;
        text-align: center;
        font-size: 15px;
        color: var(--m-text1);
        background: var(--m-card-bg);
        border-radius: var(--m-radius-sm);
        margin-bottom: 6px;
        cursor: pointer;
        transition: background 0.2s;
    }
    
    .m-actionsheet-item:active {
        background: var(--m-border-light);
    }
    
    .m-actionsheet-item.danger {
        color: var(--m-danger);
    }
    
    .m-actionsheet-cancel {
        padding: 14px;
        text-align: center;
        font-size: 15px;
        color: var(--m-text2);
        background: var(--m-card-bg);
        border-radius: var(--m-radius-sm);
        margin-top: 8px;
        cursor: pointer;
        font-weight: 500;
    }
}

/* ============================================================
   17. 表单元素
   ============================================================ */

@media (max-width: 1024px) {
    .m-form-group {
        margin-bottom: 16px;
    }
    
    .m-form-label {
        font-size: 13px;
        color: var(--m-text2);
        margin-bottom: 6px;
        display: block;
    }
    
    .m-form-label .required {
        color: var(--m-danger);
    }
    
    .m-form-input,
    .m-form-select,
    .m-form-textarea {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid var(--m-border);
        border-radius: var(--m-radius-sm);
        font-size: 14px;
        outline: none;
        background: var(--m-card-bg);
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    
    .m-form-input:focus,
    .m-form-select:focus,
    .m-form-textarea:focus {
        border-color: var(--m-primary);
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }
    
    .m-form-textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    .m-form-hint {
        font-size: 12px;
        color: var(--m-text3);
        margin-top: 4px;
    }
    
    .m-form-error {
        font-size: 12px;
        color: var(--m-danger);
        margin-top: 4px;
    }
    
    .m-btn {
        padding: 12px 20px;
        border-radius: var(--m-radius-sm);
        font-size: 14px;
        font-weight: 500;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    .m-btn:active {
        transform: scale(0.97);
    }
    
    .m-btn-primary {
        background: var(--m-primary);
        color: #fff;
    }
    
    .m-btn-success {
        background: var(--m-success);
        color: #fff;
    }
    
    .m-btn-danger {
        background: var(--m-danger);
        color: #fff;
    }
    
    .m-btn-outline {
        background: transparent;
        color: var(--m-text2);
        border: 1px solid var(--m-border);
    }
    
    .m-btn-ghost {
        background: var(--m-bg);
        color: var(--m-text2);
    }
    
    .m-btn-sm {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .m-btn-block {
        flex: 1;
        width: 100%;
    }
}

/* ============================================================
   18. 空状态
   ============================================================ */

@media (max-width: 1024px) {
    .m-empty {
        text-align: center;
        padding: 40px 20px;
    }
    
    .m-empty i {
        font-size: 48px;
        color: var(--m-text4);
        margin-bottom: 12px;
    }
    
    .m-empty-text {
        font-size: 14px;
        color: var(--m-text3);
    }
    
    .m-empty-action {
        margin-top: 16px;
    }
}

/* ============================================================
   19. 加载状态
   ============================================================ */

@media (max-width: 1024px) {
    .m-loading {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 40px;
    }
    
    .m-spinner {
        width: 32px;
        height: 32px;
        border: 3px solid var(--m-border);
        border-top-color: var(--m-primary);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }
    
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
}

/* ============================================================
   20. Toast 提示
   ============================================================ */

@media (max-width: 1024px) {
    .m-toast {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0,0,0,0.8);
        color: #fff;
        padding: 12px 24px;
        border-radius: var(--m-radius-sm);
        font-size: 14px;
        z-index: 9999;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }
    
    .m-toast.show {
        opacity: 1;
    }
}

/* ============================================================
   21. 确认对话框
   ============================================================ */

@media (max-width: 1024px) {
    .m-confirm-mask {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 400;
        align-items: center;
        justify-content: center;
    }
    
    .m-confirm-mask.show {
        display: flex;
    }
    
    .m-confirm-box {
        background: var(--m-card-bg);
        border-radius: var(--m-radius);
        padding: 24px;
        width: 280px;
        text-align: center;
    }
    
    .m-confirm-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--m-text1);
        margin-bottom: 8px;
    }
    
    .m-confirm-content {
        font-size: 14px;
        color: var(--m-text2);
        margin-bottom: 20px;
    }
    
    .m-confirm-actions {
        display: flex;
        gap: 12px;
    }
    
    .m-confirm-actions button {
        flex: 1;
        padding: 10px;
        border-radius: var(--m-radius-sm);
        font-size: 14px;
        border: none;
        cursor: pointer;
    }
    
    .m-confirm-actions .btn-cancel {
        background: var(--m-bg);
        color: var(--m-text2);
    }
    
    .m-confirm-actions .btn-confirm {
        background: var(--m-primary);
        color: #fff;
    }
    
    .m-confirm-actions .btn-danger {
        background: var(--m-danger);
        color: #fff;
    }
}

/* ============================================================
   22. 辅助类
   ============================================================ */

@media (max-width: 1024px) {
    .m-text-primary { color: var(--m-primary); }
    .m-text-success { color: var(--m-success); }
    .m-text-warning { color: var(--m-warning); }
    .m-text-danger { color: var(--m-danger); }
    .m-text-muted { color: var(--m-text3); }
    
    .m-bg-primary { background: var(--m-primary-bg); }
    .m-bg-success { background: var(--m-success-bg); }
    .m-bg-warning { background: var(--m-warning-bg); }
    .m-bg-danger { background: var(--m-danger-bg); }
    
    .m-mt-1 { margin-top: 4px; }
    .m-mt-2 { margin-top: 8px; }
    .m-mt-3 { margin-top: 12px; }
    .m-mt-4 { margin-top: 16px; }
    .m-mb-1 { margin-bottom: 4px; }
    .m-mb-2 { margin-bottom: 8px; }
    .m-mb-3 { margin-bottom: 12px; }
    .m-mb-4 { margin-bottom: 16px; }
    
    .m-p-2 { padding: 8px; }
    .m-p-3 { padding: 12px; }
    .m-p-4 { padding: 16px; }
    
    .m-flex { display: flex; }
    .m-flex-center { display: flex; align-items: center; justify-content: center; }
    .m-flex-between { display: flex; align-items: center; justify-content: space-between; }
    .m-flex-1 { flex: 1; }
    .m-gap-1 { gap: 4px; }
    .m-gap-2 { gap: 8px; }
    .m-gap-3 { gap: 12px; }
    
    .m-text-sm { font-size: 12px; }
    .m-text-base { font-size: 14px; }
    .m-text-lg { font-size: 16px; }
    .m-text-xl { font-size: 18px; }
    .m-font-bold { font-weight: 600; }
    
    .m-hidden { display: none !important; }
    .m-block { display: block !important; }
}

/* ============================================================
   23. 底部安全间距
   ============================================================ */

@media (max-width: 1024px) {
    .m-bottom-spacer {
        height: calc(var(--m-nav-height) + var(--m-safe-bottom));
    }
}
/* ============================================================
   24. 首页看板 - Dashboard 专属样式
   ============================================================ */

@media (max-width: 1024px) {
    .m-dashboard-welcome {
        padding: 12px 16px 4px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .m-welcome-text {
        font-size: 14px;
        color: var(--m-text2);
    }
    
    .m-welcome-text strong {
        color: var(--m-text1);
        font-weight: 600;
    }
    
    .m-welcome-paid {
        font-size: 12px;
        color: var(--m-success);
        background: var(--m-success-bg);
        padding: 4px 10px;
        border-radius: 12px;
    }
    
    .m-marquee {
        background: var(--m-card-bg);
        border-radius: var(--m-radius);
        padding: 10px 16px;
        margin: 8px 16px 12px;
        overflow: hidden;
        box-shadow: var(--m-shadow-sm);
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .m-marquee-label {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--m-primary-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--m-primary);
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .m-marquee-track {
        flex: 1;
        overflow: hidden;
        display: flex;
        white-space: nowrap;
        animation: marqueeScroll 30s linear infinite;
    }
    
    .m-marquee-track .m-marquee-item {
        flex: 0 0 auto;
        padding-right: 40px;
        font-size: 13px;
        color: var(--m-text2);
        white-space: nowrap;
    }
    
    .m-marquee-track .m-marquee-item b {
        color: var(--m-primary);
        font-weight: 600;
    }
    
    @keyframes marqueeScroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
    
    .m-stat-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 12px 16px 8px;
        margin-top: 0;
    }
    
    .m-stat-card {
        background: var(--m-card-bg);
        border-radius: var(--m-radius);
        padding: 14px 12px;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: var(--m-shadow-sm);
        transition: transform 0.2s;
    }
    
    .m-stat-card:active {
        transform: scale(0.98);
    }
    
    .m-stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .m-stat-icon.blue { background: #EEF2FF; color: #4F46E5; }
    .m-stat-icon.green { background: #ECFDF5; color: #10B981; }
    .m-stat-icon.orange { background: #FFFBEB; color: #F59E0B; }
    .m-stat-icon.purple { background: #F5F3FF; color: #7C3AED; }
    .m-stat-icon.red { background: #FEF2F2; color: #EF4444; }
    .m-stat-icon.teal { background: #F0FDFA; color: #14B8A6; }
    
    .m-stat-info {
        flex: 1;
        min-width: 0;
    }
    
    .m-stat-number {
        font-size: clamp(14px, 5vw, 22px);
        font-weight: 700;
        color: var(--m-text1);
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
    
    .m-stat-amount {
        font-size: clamp(11px, 3.5vw, 16px);
        letter-spacing: -0.3px;
    }
    
    .m-stat-label {
        font-size: 12px;
        color: var(--m-text3);
        margin-top: 2px;
    }
    
    .m-section-card {
        background: var(--m-card-bg);
        border-radius: var(--m-radius);
        margin: 0 12px 8px;
        padding: 12px;
        box-shadow: var(--m-shadow-sm);
    }
    
    .m-section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }
    
    .m-section-title {
        font-size: 15px;
        font-weight: 600;
        color: var(--m-text1);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .m-section-title i {
        font-size: 14px;
    }
    
    .m-top-list {
        padding: 0;
        margin: 0;
    }
    
    .m-top-item {
        display: flex;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--m-border-light);
    }
    
    .m-top-item:last-child {
        border-bottom: none;
    }
    
    .m-top-rank {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 600;
        border-radius: 50%;
        margin-right: 12px;
        flex-shrink: 0;
    }
    
    .m-top-rank.m-rank-1 {
        background: linear-gradient(135deg, #FFD700, #FFA500);
        color: #fff;
    }
    
    .m-top-rank.m-rank-2 {
        background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
        color: #fff;
    }
    
    .m-top-rank.m-rank-3 {
        background: linear-gradient(135deg, #CD7F32, #B8860B);
        color: #fff;
    }
    
    .m-top-rank.m-rank-4,
    .m-top-rank.m-rank-5 {
        background: var(--m-bg);
        color: var(--m-text2);
    }
    
    .m-top-name {
        flex: 1;
        font-size: 14px;
        color: var(--m-text1);
    }
    
    .m-top-count {
        font-size: 14px;
        font-weight: 600;
        color: var(--m-primary);
    }
    
    .m-chart-wrapper {
        position: relative;
        width: 100%;
        height: 180px;
    }
    
    .m-chart-wrapper canvas {
        width: 100% !important;
        height: 100% !important;
    }
    
    .m-empty-inline {
        text-align: center;
        color: var(--m-text3);
        padding: 20px 0;
        font-size: 14px;
    }
    
    .m-role-badge {
        font-size: 12px;
        padding: 4px 12px;
        border-radius: 12px;
        margin-left: 10px;
        font-weight: 600;
        display: inline-block;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .m-role-super_admin { background: rgba(124, 58, 237, 0.15); color: #7C3AED; }
    .m-role-admin { background: rgba(220, 53, 69, 0.12); color: #dc3545; }
    .m-role-branch { background: rgba(255, 193, 7, 0.15); color: #b8860b; }
    .m-role-partner { background: rgba(13, 110, 253, 0.12); color: #0d6efd; }
    .m-role-employee { background: rgba(13, 202, 240, 0.12); color: #0aa2c0; }
    .m-role-guest { background: rgba(108, 117, 125, 0.12); color: #6c757d; }
}

[data-theme="light"] .m-role-super_admin { background: rgba(124, 58, 237, 0.1); color: #7C3AED; }
[data-theme="light"] .m-role-admin { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
[data-theme="light"] .m-role-branch { background: rgba(245, 158, 11, 0.1); color: #D97706; }
[data-theme="light"] .m-role-partner { background: rgba(59, 130, 246, 0.1); color: #2563EB; }
[data-theme="light"] .m-role-employee { background: rgba(20, 184, 166, 0.1); color: #0D9488; }

/* ============================================================
   25. 移动端弹窗（Modal）
   ============================================================ */

@media (max-width: 1024px) {
    .m-modal-mask {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 350;
    }
    .m-modal-mask.show {
        display: block;
    }

    .m-modal {
        display: none;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: var(--m-card-bg);
        border-radius: 16px 16px 0 0;
        z-index: 360;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        animation: slideUpModal 0.3s ease;
    }
    .m-modal.show {
        display: block;
    }
    @keyframes slideUpModal {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .m-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid var(--m-border-light);
        font-size: 16px;
        font-weight: 600;
        color: var(--m-text1);
        position: sticky;
        top: 0;
        background: var(--m-card-bg);
        z-index: 1;
    }
    .m-modal-header button {
        width: 32px; height: 32px;
        border-radius: 50%;
        border: none;
        background: var(--m-bg);
        color: var(--m-text2);
        font-size: 16px;
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
    }

    .m-modal-body {
        padding: 20px;
    }

    .m-modal-footer {
        display: flex;
        gap: 12px;
        padding: 16px 20px;
        border-top: 1px solid var(--m-border-light);
        position: sticky;
        bottom: 0;
        background: var(--m-card-bg);
        padding-bottom: calc(16px + var(--m-safe-bottom));
    }

    .m-form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .m-form-group label {
        font-size: 13px;
        color: var(--m-text2);
        margin-bottom: 6px;
        display: block;
    }

    .required-star {
        color: var(--m-danger);
        margin-right: 2px;
    }
}

/* ============================================================
   26. 详情页增强样式
   ============================================================ */

@media (max-width: 1024px) {
    .m-detail-page .m-detail-header {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .m-back-btn {
        width: 36px; height: 36px;
        border-radius: 50%;
        background: rgba(255,255,255,0.2);
        display: flex; align-items: center; justify-content: center;
        border: none;
        color: #fff;
        font-size: 16px;
        cursor: pointer;
    }
    [data-theme="light"] .m-back-btn {
        background: var(--m-bg);
        color: var(--m-text1);
    }

    .m-detail-title {
        flex: 1;
        font-size: 17px;
        font-weight: 600;
    }

    .m-detail-actions {
        display: flex;
        gap: 8px;
    }

    .m-detail-body {
        padding: 0;
    }

    .m-detail-section {
        text-align: left;
        padding: 16px;
        background: var(--m-card-bg);
        margin: 12px 16px;
        border-radius: var(--m-radius);
        box-shadow: var(--m-shadow-sm);
    }
    
    /* 详情页区块标题（基本信息/面试信息/操作信息等） */
    .m-detail-section-title {
        font-size: 15px;
        font-weight: 700;
        color: var(--m-text1);
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--m-border-light);
    }
    
    /* 详情页首区块（头像区）保持居中 */
    .m-detail-section:first-child {
        text-align: center;
        padding: 24px 20px 16px;
    }

    .m-detail-avatar {
        width: 64px; height: 64px;
        border-radius: 50%;
        background: rgba(79,70,229,0.08);
        color: var(--m-primary);
        display: flex; align-items: center; justify-content: center;
        font-size: 28px;
        margin: 0 auto 12px;
        border: 2px solid rgba(79,70,229,0.15);
    }

    .m-detail-name {
        font-size: 20px;
        font-weight: 700;
        color: var(--m-text1);
        margin: 0 0 8px;
    }

    .m-detail-tags {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .m-gender-tag {
        font-size: 11px;
        padding: 2px 8px;
        border-radius: 10px;
        font-weight: 500;
    }
    .m-gender-tag.male { background: #EEF2FF; color: #4F46E5; }
    .m-gender-tag.female { background: #FDF2F8; color: #EC4899; }
    [data-theme="light"] .m-gender-tag.male { background: #EEF2FF; color: #4F46E5; }
    [data-theme="light"] .m-gender-tag.female { background: #FDF2F8; color: #EC4899; }

    .m-info-tag {
        font-size: 11px;
        padding: 2px 8px;
        border-radius: 10px;
        background: var(--m-bg);
        color: var(--m-text2);
    }

    .m-detail-info-list {
        margin: 0 16px 12px;
        background: var(--m-card-bg);
        border-radius: var(--m-radius);
        box-shadow: var(--m-shadow-sm);
        overflow: hidden;
    }

    .m-detail-info-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid var(--m-border-light);
    }
    .m-detail-info-row:last-child {
        border-bottom: none;
    }

    .m-detail-info-label {
        font-size: 13px;
        color: var(--m-text3);
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    .m-detail-info-label i {
        width: 16px;
        text-align: center;
        color: var(--m-primary);
    }

    .m-detail-info-value {
        font-size: 14px;
        color: var(--m-text1);
        font-weight: 500;
        text-align: right;
        margin-left: 12px;
    }
    .m-detail-info-value a {
        color: var(--m-primary);
        text-decoration: none;
    }

    .m-detail-bottom-actions {
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-bottom: calc(16px + var(--m-safe-bottom));
    }

    .m-role-tag {
        font-size: 10px;
        padding: 1px 6px;
        border-radius: 8px;
        margin-left: 4px;
        font-weight: 500;
    }
    .m-role-tag.sa { background: rgba(124,58,237,0.15); color: #7C3AED; }
    .m-role-tag.admin { background: rgba(239,68,68,0.15); color: #EF4444; }
    .m-role-tag.branch { background: rgba(245,158,11,0.15); color: #D97706; }
    .m-role-tag.partner { background: rgba(59,130,246,0.15); color: #2563EB; }
    .m-role-tag.emp { background: rgba(20,184,166,0.15); color: #0D9488; }
    /* 角色标签 - 带前缀全名（兼容其他页面JS输出） */
    .m-role-tag.m-role-super_admin { background: rgba(124,58,237,0.15); color: #7C3AED; }
    .m-role-tag.m-role-admin { background: rgba(239,68,68,0.15); color: #EF4444; }
    .m-role-tag.m-role-branch { background: rgba(245,158,11,0.15); color: #D97706; }
    .m-role-tag.m-role-partner { background: rgba(59,130,246,0.15); color: #2563EB; }
    .m-role-tag.m-role-employee { background: rgba(20,184,166,0.15); color: #0D9488; }
}

/* ============================================================
   27. 空状态 & 计数徽章
   ============================================================ */

@media (max-width: 1024px) {
    .m-empty-state {
        text-align: center;
        padding: 48px 20px;
        color: var(--m-text3);
    }
    .m-empty-state i {
        font-size: 48px;
        margin-bottom: 12px;
        opacity: 0.4;
    }
    .m-empty-state p {
        font-size: 14px;
        margin: 0;
    }

    .m-count-badge {
        font-size: 11px;
        background: rgba(255,255,255,0.2);
        color: #fff;
        padding: 2px 8px;
        border-radius: 10px;
        margin-left: 8px;
    }
    [data-theme="light"] .m-count-badge {
        background: var(--m-bg);
        color: var(--m-text2);
    }
}
/* ============================================================
   批量操作栏样式（PC端简历列表）
   ============================================================ */
.batch-actions-bar {
    padding: 12px 16px;
    background: var(--m-bg-card, #fff);
    border-bottom: 1px solid var(--m-border, #e5e7eb);
    border-radius: 12px 12px 0 0;
}

.batch-actions-bar .form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.batch-actions-bar .form-check-input:checked {
    background-color: var(--m-primary, #4F46E5);
    border-color: var(--m-primary, #4F46E5);
}

.batch-actions-bar .selected-count {
    font-size: 13px;
}

.batch-actions-bar .selected-count strong {
    color: var(--m-primary, #4F46E5);
    font-size: 15px;
}

.batch-actions-bar #batchExportBtn {
    font-size: 13px;
    padding: 6px 12px;
}

.batch-actions-bar #batchExportBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 移动端详情页底部提示 */
.m-detail-footer {
    padding: 12px 16px;
    text-align: center;
    background: var(--m-bg-card, #fff);
    border-top: 1px solid var(--m-border, #e5e7eb);
}

.m-detail-footer small {
    font-size: 12px;
    color: var(--m-text3, #9ca3af);
}

/* 统计卡片点击详情弹窗 */
.m-stats-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.m-stats-detail-modal.show {
    display: flex;
}

.m-stats-detail-content {
    background: var(--m-bg-card, #fff);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.m-stats-detail-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--m-border, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.m-stats-detail-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.m-stats-detail-header button {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--m-text2, #6b7280);
    cursor: pointer;
    padding: 4px 8px;
}

.m-stats-detail-body {
    padding: 16px 20px;
}

.m-stats-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--m-border, #e5e7eb);
}

.m-stats-detail-item:last-child {
    border-bottom: none;
}

.m-stats-detail-item .label {
    font-size: 14px;
    color: var(--m-text2, #6b7280);
}

.m-stats-detail-item .value {
    font-size: 15px;
    font-weight: 600;
    color: var(--m-text, #1f2937);
}

/* ============================================================
   主题切换按钮（水滴图标）
   ============================================================ */
.m-theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.m-theme-btn:active {
    transform: scale(0.9);
    background: rgba(255,255,255,0.3);
}

/* 新增按钮（右上角圆形加号） */
.m-nav-btn-add {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.m-nav-btn-add:active {
    transform: scale(0.9);
    background: rgba(255,255,255,0.3);
}

/* 详情页修改按钮 */
.m-edit-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.m-edit-btn:active {
    transform: scale(0.92);
    background: rgba(255,255,255,0.3);
}
[data-theme="light"] .m-edit-btn {
    background: var(--m-primary);
    border-color: var(--m-primary);
    color: #fff;
}

.m-nav-btn-edit {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.m-nav-btn-edit:active {
    transform: scale(0.9);
    background: rgba(255,255,255,0.3);
}

/* ============================================================
   列表卡片图标颜色区分
   ============================================================ */
.m-card-info .fa-building {
    color: #3B82F6;
    margin-right: 6px;
}

.m-card-info .fa-briefcase {
    color: #8B5CF6;
    margin-right: 6px;
}

.m-card-info .fa-phone {
    color: #10B981;
    margin-right: 6px;
}

.m-card-info .fa-calendar {
    color: #F59E0B;
    margin-right: 6px;
}

.m-card-info .fa-coins {
    color: #EF4444;
    margin-right: 6px;
}

.m-card-info .fa-user {
    color: #6B7280;
    margin-right: 6px;
}

/* ============================================================
   统计记录列表样式（Dashboard 统计卡片详情）
   ============================================================ */
.m-stats-record-list { padding: 0; }
.m-stats-record-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; border-bottom: 1px solid var(--m-border, #f0f0f0);
}
.m-stats-record-item:last-child { border-bottom: none; }
.m-stats-record-name { font-weight: 600; font-size: 14px; color: var(--m-text1); }
.m-stats-record-info { font-size: 12px; color: var(--m-text3); }
.m-stats-record-date { font-size: 12px; color: var(--m-text2); }
.m-stats-record-status { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: rgba(79,70,229,0.1); color: var(--m-primary); }
/* ============================================================
   简历详情页头像样式
   ============================================================ */
.m-detail-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(79,70,229,0.08);
    border: 2px solid rgba(79,70,229,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--m-primary, #4F46E5);
    margin: 0 auto 12px;
}
.m-detail-name {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--m-text1, #1f2937);
    margin-bottom: 10px;
}
.m-detail-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.m-gender-tag {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}
.m-gender-tag.male { background: #dbeafe; color: #2563eb; }
.m-gender-tag.female { background: #fce7f3; color: #db2777; }
.m-info-tag {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    background: #f3f4f6;
    color: #6b7280;
}
.m-detail-info-list {
    border-top: 1px solid var(--m-border, #f0f0f0);
}
.m-detail-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--m-border, #f0f0f0);
    font-size: 14px;
}
.m-detail-info-row:last-child { border-bottom: none; }
.m-detail-info-label {
    color: var(--m-text3, #9ca3af);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.m-detail-info-label i { font-size: 14px; }
.m-detail-info-value {
    color: var(--m-text1, #1f2937);
    text-align: right;
    flex: 1;
    word-break: break-all;
}
.m-detail-info-value a {
    color: var(--m-primary, #4F46E5);
    text-decoration: none;
}
.m-detail-bottom-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.m-detail-bottom-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.m-rol-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 11px;
    margin-left: 4px;
}
.m-rol-tag.super { background: #ede9fe; color: #7c3aed; }
.m-rol-tag.admin { background: #fef2f2; color: #dc2626; }
.m-rol-tag.branch { background: #fef3c7; color: #d97706; }
.m-rol-tag.partner { background: #dbeafe; color: #2563eb; }
.m-rol-tag.employee { background: #ecfdf5; color: #059669; }

/* ============================================================
   通用：PC表格自动转移动端卡片
   ============================================================ */
@media (max-width: 1024px) {
    .m-auto-card-list {
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .m-auto-card {
        background: #fff;
        border-radius: 12px;
        padding: 14px 16px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        border: 1px solid rgba(0,0,0,0.04);
    }
    .m-auto-card-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 5px 0;
        font-size: 13px;
        line-height: 1.5;
        border-bottom: 1px solid #f5f5f5;
    }
    .m-auto-card-row:last-child {
        border-bottom: none;
    }
    .m-auto-card-label {
        color: #9ca3af;
        flex-shrink: 0;
        min-width: 60px;
        margin-right: 12px;
    }
    .m-auto-card-value {
        color: #1f2937;
        text-align: right;
        word-break: break-all;
        flex: 1;
    }
    .m-auto-card-title .m-auto-card-value {
        font-weight: 600;
        font-size: 14px;
        color: #111827;
    }
    /* 空状态 */
    .m-empty-state {
        text-align: center;
        padding: 60px 20px;
        color: #9ca3af;
    }
    .m-empty-state i {
        font-size: 40px;
        margin-bottom: 12px;
        display: block;
    }
    .m-empty-state p {
        font-size: 14px;
        margin: 0;
    }
    /* 分页适配 */
    .pagination {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 4px;
        padding: 12px 0;
    }
    .pagination .page-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ============================================================
   v11 新增 - 项目/企业/系统/监控/渠道页面通用样式
   ============================================================ */

@media (max-width: 1024px) {

    /* 收藏按钮 */
    .fav-btn {
        font-size: 20px;
        color: #D1D5DB;
        cursor: pointer;
        transition: color 0.2s, transform 0.2s;
        padding: 4px;
    }
    .fav-btn.fa-solid {
        color: #F59E0B;
    }
    .fav-btn:active {
        transform: scale(1.3);
    }

    /* 卡片内状态徽章（开放/关闭） */
    .m-card-badge {
        font-size: 12px;
        padding: 2px 10px;
        border-radius: 20px;
        font-weight: 500;
        white-space: nowrap;
    }
    .m-card-badge.badge-success {
        background: var(--m-success-bg);
        color: var(--m-success);
    }
    .m-card-badge.badge-secondary {
        background: #f3f4f6;
        color: #6b7280;
    }

    /* JD链接 */
    .jd-link {
        color: var(--m-primary);
        text-decoration: none;
        font-size: 13px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 2px 8px;
        background: var(--m-primary-bg);
        border-radius: var(--m-radius-xs);
    }
    .jd-link:active {
        opacity: 0.7;
    }

    /* 卡片内文字颜色辅助类 */
    .m-card-value.text-primary {
        color: var(--m-primary) !important;
        font-weight: 600;
    }
    .m-card-value.text-success {
        color: var(--m-success) !important;
        font-weight: 600;
    }
    .m-card-value.text-danger {
        color: var(--m-danger) !important;
        font-weight: 600;
    }
    .m-card-value.text-warning {
        color: var(--m-warning) !important;
        font-weight: 600;
    }

    /* 金额高亮 */
    .m-amount {
        color: var(--m-success);
        font-weight: 700;
        font-size: 15px;
    }

    /* 长内容截断 */
    .m-text-truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 200px;
        display: inline-block;
        vertical-align: bottom;
    }

    /* 操作日志内容区域 */
    .m-log-content {
        font-size: 13px;
        color: var(--m-text2);
        line-height: 1.5;
        word-break: break-all;
    }

    /* 审核变更内容 */
    .m-change-summary {
        font-size: 12px;
        line-height: 1.6;
        color: var(--m-text2);
    }
    .m-change-summary span {
        display: inline;
    }

    /* 角色标签在小卡片内的紧凑样式 */
    .m-card .m-role-tag {
        font-size: 11px;
        padding: 1px 8px;
    }

    /* 状态标签在小卡片内的紧凑样式 */
    .m-card .m-status-tag {
        font-size: 11px;
        padding: 1px 8px;
    }

    /* 拨号链接 */
    .m-card-value a[href^="tel:"] {
        color: var(--m-primary);
        text-decoration: none;
        font-weight: 500;
    }

    /* 表格内复选框移动端隐藏（settlement页面不需要全选） */
    .m-card input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--m-primary);
    }
}