:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --secondary: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --gray-lighter: #e2e8f0;
    --border: #e2e8f0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 32px rgba(0, 0, 0, 0.15), 0 12px 24px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --radius-lg: 20px;
    --radius-sm: 10px;
    --radius-full: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), #22d3ee);
    --gradient-success: linear-gradient(135deg, var(--success), #34d399);
    --gradient-warning: linear-gradient(135deg, var(--warning), #fbbf24);
    --gradient-danger: linear-gradient(135deg, var(--danger), #f87171);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Poppins', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #fef7ff 0%, #f0f9ff 100%);
    color: var(--dark);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 移动端头部 - 在所有设备上显示作为导航切换 */
.mobile-header {
    display: flex !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    padding: 14px 16px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    z-index: 2000 !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.mobile-header h4 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.mobile-menu-btn {
    background: transparent !important;
    border: none !important;
    font-size: 22px !important;
    color: #1e293b !important;
    cursor: pointer !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    transition: all 0.3s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mobile-menu-btn:hover {
    background: #e2e8f0 !important;
    color: #4f46e5 !important;
}

.mobile-menu-btn:active {
    transform: scale(0.95) !important;
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow);
    padding: 24px 0;
    z-index: 1000;
    overflow-y: auto;
    transition: var(--transition);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.logo {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}

.logo p {
    font-size: 12px;
    color: var(--gray);
    margin-top: 4px;
}

.nav-menu {
    list-style: none;
    padding: 0;
}

.nav-item {
    padding: 14px 24px;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: var(--radius-lg);
    margin: 0 12px 6px 12px;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    opacity: 0;
    transition: var(--transition);
}

.nav-item:hover {
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary);
    transform: translateX(8px);
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.nav-item.active::before {
    opacity: 1;
}

.nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-item span {
    font-size: 14px;
    font-weight: 500;
}

.nav-item a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 20px;
}

/* 主内容区 */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    transition: var(--transition);
    padding-top: 70px;
}

/* 顶部栏 */
.topbar {
    background: white;
    box-shadow: var(--shadow);
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: var(--radius-lg);
    background: var(--gray-lighter);
    transition: var(--transition);
}

.user-info:hover {
    background: var(--gray-light);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: var(--gray);
}

/* 通知图标 */
.badge-notify {
    position: relative;
    font-size: 20px;
    color: var(--gray);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.badge-notify:hover {
    background: var(--gray-lighter);
    color: var(--primary);
}

.badge-notify .notify-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 内容区域 */
.content {
    padding: 24px;
}

/* 卡片 */
.card-custom {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
    transition: var(--transition);
    position: relative;
}

.card-custom:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.card-header-custom {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fef7ff 0%, #f0f9ff 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 20px;
}

/* 表单 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
    background: #ffffff;
    font-family: inherit;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    color: #1e293b;
    -webkit-text-fill-color: #1e293b;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    background-color: #ffffff;
    cursor: pointer;
    height: 44px;
    line-height: 1.5;
    color: #1e293b;
    -webkit-text-fill-color: #1e293b;
}

@supports (-webkit-touch-callout: none) {
    select.form-control {
        appearance: auto !important;
        -webkit-appearance: auto !important;
        background-image: none !important;
        background-color: #ffffff !important;
        padding-right: 14px !important;
        font-size: 16px !important;
        height: 44px !important;
        min-height: 44px !important;
        color: #1e293b !important;
        -webkit-text-fill-color: #1e293b !important;
        line-height: normal !important;
    }
}

select.form-control option {
    color: #1e293b !important;
    background: #ffffff !important;
    padding: 10px !important;
    -webkit-text-fill-color: #1e293b !important;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    color: white;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: white;
}

.btn-outline {
    background: white;
    border: 2px solid var(--border);
    color: var(--gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 提示框 */
.alert {
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-left: 4px solid;
}

.alert-danger {
    background: #fef2f2;
    border-left-color: var(--danger);
    color: #7f1d1d;
}

.alert-success {
    background: #f0fdf4;
    border-left-color: var(--success);
    color: #15803d;
}

.alert-warning {
    background: #fffbeb;
    border-left-color: var(--warning);
    color: #78350f;
}

.alert-info {
    background: #eff6ff;
    border-left-color: var(--info);
    color: #1e40af;
}

/* 表格 */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    background: var(--light);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--gray);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
}

.table tr:hover {
    background: var(--light);
}

/* 状态徽章 */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-approved {
    background: #dbeafe;
    color: #1e40af;
}

.badge-rejected {
    background: #fef2f2;
    color: #7f1d1d;
}

.badge-completed {
    background: #dcfce7;
    color: #15803d;
}

.badge-cancelled {
    background: #f3f4f6;
    color: #6b7280;
}

.badge-in_progress {
    background: #fef2f2;
    color: #7f1d1d;
}

.badge-in_use {
    background: #dbeafe;
    color: #1e40af;
}

.badge-reserved {
    background: #ede9fe;
    color: #5b21b6;
}

.badge-maintenance {
    background: #fef3c7;
    color: #92400e;
}

.badge-idle {
    background: #dcfce7;
    color: #15803d;
}

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

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.stat-icon.blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: var(--info);
    animation: float 3s ease-in-out infinite;
}

.stat-icon.green {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: var(--success);
    animation: float 3s ease-in-out infinite 0.5s;
}

.stat-icon.orange {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: var(--warning);
    animation: float 3s ease-in-out infinite 1s;
}

.stat-icon.red {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: var(--danger);
    animation: float 3s ease-in-out infinite 1.5s;
}

.stat-icon.purple {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: var(--secondary);
    animation: float 3s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--gray);
    margin-top: 4px;
}

/* 网格布局 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 分页 */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.pagination a {
    background: white;
    color: var(--gray);
    border: 1px solid var(--border);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box .form-control {
    flex: 1;
    min-width: 200px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    color: var(--gray-light);
}

.empty-state h5 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--gray);
}

.empty-state p {
    font-size: 14px;
    color: var(--gray-light);
}

/* 车辆选择网格 */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.vehicle-card {
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    background: white;
    box-shadow: var(--shadow);
}

.vehicle-card:hover {
    background: var(--light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.vehicle-card.selected {
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 2px var(--primary);
}

.vehicle-card .plate {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.vehicle-card .info {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}

.vehicle-card .status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    background: var(--light);
    padding: 10px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 2px solid var(--border);
}

.checkbox-item:hover {
    background: white;
    border-color: var(--primary);
}

.checkbox-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* 标签页 */
.nav-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.nav-tabs .tab-item {
    padding: 12px 20px;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: var(--transition);
    border-radius: var(--radius) var(--radius) 0 0;
}

.nav-tabs .tab-item:hover {
    background: var(--light);
    color: var(--primary);
}

.nav-tabs .tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: white;
}

/* 模态窗口 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-dialog {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
}

.modal-dialog * {
    pointer-events: auto;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-lighter);
    color: var(--dark);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Toast提示 */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--dark);
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    z-index: 3000;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 进度条 */
.progress {
    height: 8px;
    background: var(--gray-lighter);
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 时间线 */
.timeline {
    padding: 16px 0;
}

.timeline-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 40px;
    bottom: -16px;
    width: 2px;
    background: var(--border);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

.timeline-content h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
}

.timeline-content p {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--gray-lighter);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== 响应式设计 ==================== */

/* 手机端 (< 768px) */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: var(--shadow-xl);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding-top: 70px;
    }

    .topbar {
        padding: 16px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .topbar-left {
        justify-content: space-between;
    }

    .topbar-right {
        justify-content: space-between;
    }

    .user-details {
        display: none;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .content {
        padding: 16px;
    }

    .card-custom {
        margin-bottom: 20px;
    }

    .card-header-custom {
        padding: 16px 20px;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .card-title {
        font-size: 18px;
        font-weight: 700;
    }

    .card-body {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
        border-radius: var(--radius-lg);
    }

    .stat-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 14px;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .vehicle-card {
        padding: 20px;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
    }

    .vehicle-card .plate {
        font-size: 18px;
        font-weight: 700;
    }

    .vehicle-card .info {
        font-size: 14px;
    }

    .btn-group {
        flex-direction: column;
        gap: 12px;
    }

    .btn-group .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }

    .search-box {
        flex-direction: column;
        gap: 12px;
    }

    .search-box .form-control {
        min-width: 100%;
        padding: 14px 16px;
    }

    .table {
        font-size: 14px;
    }

    .table th, .table td {
        padding: 12px 14px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pagination a, .pagination span {
        padding: 10px 16px;
        font-size: 14px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .form-control {
        padding: 14px 16px;
        font-size: 14px;
        border-radius: var(--radius-lg);
    }

    .modal-dialog {
        margin: 16px;
        max-height: calc(100vh - 32px);
        border-radius: var(--radius-lg);
    }

    .modal-header {
        padding: 20px 24px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .modal-title {
        font-size: 18px;
        font-weight: 700;
    }

    .modal-body {
        padding: 24px;
    }

    .modal-footer {
        padding: 20px 24px;
        flex-direction: column;
        gap: 12px;
    }

    .modal-footer .btn {
        width: 100%;
        padding: 14px 20px;
    }

    .nav-tabs {
        gap: 4px;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .nav-tabs .tab-item {
        padding: 12px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    .alert {
        padding: 16px 20px;
        border-radius: var(--radius-lg);
        margin-bottom: 16px;
    }

    .badge {
        padding: 6px 16px;
        font-size: 13px;
        border-radius: var(--radius-full);
    }

    .checkbox-item {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: var(--radius-lg);
    }

    .timeline-item {
        padding: 20px 0;
    }

    .timeline-dot {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .timeline-content h6 {
        font-size: 16px;
        font-weight: 600;
    }

    .timeline-content p {
        font-size: 14px;
    }

    .empty-state {
        padding: 60px 20px;
    }

    .empty-state i {
        font-size: 72px;
        margin-bottom: 20px;
    }

    .empty-state h5 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .empty-state p {
        font-size: 14px;
    }
}

/* 平板端 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-left: 240px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .vehicle-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 大屏幕 (> 1024px) */
@media (min-width: 1025px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 打印样式 */
@media print {
    .sidebar, .mobile-header, .topbar, .btn, .modal {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
        padding-top: 0 !important;
    }
    .content {
        padding: 0 !important;
    }
    .card-custom {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* 辅助类 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-muted {
    color: var(--gray);
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.hidden {
    display: none !important;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-lighter);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}
