/* 移动端专用样式 */
:root {
    --mobile-primary: #3b82f6;
    --mobile-secondary: #64748b;
    --mobile-success: #10b981;
    --mobile-warning: #f59e0b;
    --mobile-danger: #ef4444;
    --mobile-bg: #f8fafc;
    --mobile-card: #ffffff;
    --mobile-border: #e2e8f0;
    --mobile-text: #1e293b;
    --mobile-text-light: #64748b;
    --mobile-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --mobile-radius: 12px;
    --mobile-radius-sm: 8px;
}

/* 移动端全局样式 */
@media (max-width: 768px) {
    body {
        background: var(--mobile-bg);
        padding-bottom: 80px;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .container-fluid {
        padding: 0 16px;
        max-width: 100%;
    }
    
    /* 移动端卡片 */
    .card {
        border-radius: var(--mobile-radius);
        box-shadow: var(--mobile-shadow);
        margin-bottom: 16px;
        border: 1px solid var(--mobile-border);
    }
    
    .card-body {
        padding: 16px;
    }
    
    .card-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 12px;
        color: var(--mobile-text);
    }
    
    /* 移动端统计卡片 */
    .stat-card {
        padding: 16px;
        text-align: center;
        border-radius: var(--mobile-radius);
        background: var(--mobile-card);
        box-shadow: var(--mobile-shadow);
        margin-bottom: 12px;
    }
    
    .stat-number {
        font-size: 20px;
        font-weight: 700;
        color: var(--mobile-primary);
        margin-bottom: 4px;
    }
    
    .stat-label {
        font-size: 12px;
        color: var(--mobile-text-light);
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* 移动端按钮 */
    .btn {
        border-radius: var(--mobile-radius-sm);
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 500;
        border: none;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 44px;
    }
    
    .btn-primary {
        background: var(--mobile-primary);
        color: white;
        box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    }
    
    .btn-primary:hover {
        background: #2563eb;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
    }
    
    .btn-success {
        background: var(--mobile-success);
        color: white;
    }
    
    .btn-outline-primary {
        border: 2px solid var(--mobile-primary);
        color: var(--mobile-primary);
        background: transparent;
    }
    
    .btn-outline-primary:hover {
        background: var(--mobile-primary);
        color: white;
    }
    
    .btn-sm {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
    }
    
    /* 移动端表单 */
    .form-control {
        border: 2px solid var(--mobile-border);
        border-radius: var(--mobile-radius-sm);
        padding: 12px 16px;
        font-size: 16px;
        background: var(--mobile-card);
        transition: all 0.2s ease;
        min-height: 44px;
    }
    
    .form-control:focus {
        border-color: var(--mobile-primary);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        outline: none;
    }
    
    .form-label {
        font-weight: 600;
        color: var(--mobile-text);
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    .form-select {
        border: 2px solid var(--mobile-border);
        border-radius: var(--mobile-radius-sm);
        padding: 12px 16px;
        background: var(--mobile-card);
        font-size: 16px;
        min-height: 44px;
    }
    
    /* 移动端表格 */
    .table {
        font-size: 12px;
        border-radius: var(--mobile-radius);
        overflow: hidden;
        box-shadow: var(--mobile-shadow);
    }
    
    .table thead th {
        padding: 12px 8px;
        font-size: 12px;
        font-weight: 600;
        background: #f8fafc;
        border: none;
    }
    
    .table tbody td {
        padding: 12px 8px;
        border-color: var(--mobile-border);
        vertical-align: middle;
    }
    
    .table tbody tr:hover {
        background: rgba(59, 130, 246, 0.05);
    }
    
    /* 移动端徽章 */
    .badge {
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 10px;
        font-weight: 500;
    }
    
    .badge-success {
        background: var(--mobile-success);
        color: white;
    }
    
    .badge-warning {
        background: var(--mobile-warning);
        color: white;
    }
    
    .badge-danger {
        background: var(--mobile-danger);
        color: white;
    }
    
    .badge-primary {
        background: var(--mobile-primary);
        color: white;
    }
    
    /* 移动端警告框 */
    .alert {
        border-radius: var(--mobile-radius);
        padding: 12px 16px;
        margin-bottom: 16px;
        font-size: 14px;
        font-weight: 500;
        border: none;
    }
    
    .alert-success {
        background: rgba(16, 185, 129, 0.1);
        color: #065f46;
        border-left: 4px solid var(--mobile-success);
    }
    
    .alert-danger {
        background: rgba(239, 68, 68, 0.1);
        color: #991b1b;
        border-left: 4px solid var(--mobile-danger);
    }
    
    .alert-warning {
        background: rgba(245, 158, 11, 0.1);
        color: #92400e;
        border-left: 4px solid var(--mobile-warning);
    }
    
    /* 移动端底部导航栏 */
    .mobile-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 64px;
        background: var(--mobile-card);
        border-top: 1px solid var(--mobile-border);
        display: flex;
        align-items: center;
        justify-content: space-around;
        z-index: 1030;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .mobile-tabbar a {
        flex: 1;
        text-align: center;
        padding: 8px 4px;
        color: var(--mobile-text-light);
        text-decoration: none;
        font-size: 11px;
        font-weight: 500;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        transition: all 0.2s ease;
        border-radius: 8px;
        margin: 0 4px;
    }
    
    .mobile-tabbar a.active {
        color: var(--mobile-primary);
        font-weight: 600;
        background: rgba(59, 130, 246, 0.1);
    }
    
    .mobile-tabbar a i {
        font-size: 18px;
    }
    
    /* 移动端浮动按钮 */
    .fab {
        position: fixed;
        bottom: 80px;
        right: 16px;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--mobile-primary);
        color: white;
        border: none;
        font-size: 20px;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
        z-index: 1020;
        transition: all 0.3s ease;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .fab:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
    }
    
    /* 移动端图表容器 */
    .chart-container {
        height: 250px;
        padding: 16px;
        background: var(--mobile-card);
        border-radius: var(--mobile-radius);
        box-shadow: var(--mobile-shadow);
    }
    
    /* 移动端分页 */
    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
        margin-top: 16px;
        flex-wrap: wrap;
    }
    
    .page-link {
        padding: 8px 12px;
        border: 1px solid var(--mobile-border);
        border-radius: var(--mobile-radius-sm);
        color: var(--mobile-text-light);
        text-decoration: none;
        font-size: 12px;
        transition: all 0.2s ease;
        min-width: 36px;
        text-align: center;
    }
    
    .page-link:hover {
        background: var(--mobile-primary);
        color: white;
        border-color: var(--mobile-primary);
    }
    
    .page-link.active {
        background: var(--mobile-primary);
        color: white;
        border-color: var(--mobile-primary);
    }
    
    /* 移动端列表组 */
    .list-group-item {
        padding: 12px 0;
        border: none;
        border-bottom: 1px solid var(--mobile-border);
    }
    
    .list-group-item:last-child {
        border-bottom: none;
    }
    
    /* 移动端输入组 */
    .input-group {
        display: flex;
        width: 100%;
    }
    
    .input-group .form-control {
        border-radius: var(--mobile-radius-sm) 0 0 var(--mobile-radius-sm);
        border-right: none;
    }
    
    .input-group .btn {
        border-radius: 0 var(--mobile-radius-sm) var(--mobile-radius-sm) 0;
        border-left: none;
    }
    
    /* 移动端网格 */
    .row.g-2 {
        --bs-gutter-x: 8px;
        --bs-gutter-y: 8px;
    }
    
    .row.g-3 {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }
    
    /* 移动端文本 */
    .text-muted {
        color: var(--mobile-text-light) !important;
    }
    
    .fw-semibold {
        font-weight: 600;
    }
    
    .fw-bold {
        font-weight: 700;
    }
    
    .small {
        font-size: 12px;
    }
    
    /* 移动端图标 */
    .bi {
        font-size: 16px;
    }
    
    /* 移动端隐藏元素 */
    .desktop-only {
        display: none !important;
    }
    
    /* 移动端显示元素 */
    .mobile-only {
        display: block !important;
    }
    
    /* 移动端特殊布局 */
    .mobile-stack {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .mobile-horizontal {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .mobile-center {
        text-align: center;
    }
    
    .mobile-full-width {
        width: 100%;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .container-fluid {
        padding: 0 12px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .form-control,
    .form-select {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .mobile-tabbar a {
        font-size: 10px;
        padding: 6px 2px;
    }
    
    .mobile-tabbar a i {
        font-size: 16px;
    }
} 