﻿/* 閲嶇疆鏍峰紡 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 椤甸潰瀹瑰櫒 - 绠€鍖栫増鏈?*/
.page-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.page-container.hidden {
    display: none;
}

/* 鐧诲綍椤甸潰鏍峰紡 */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
}

.login-title-text {
    display: block;
    margin-top: 10px;
}

.login-title-text h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-title-text p {
    color: #666;
    font-size: 14px;
}

.login-header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 8px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #333;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -10px;
}

.form-tips {
    font-size: 12px;
    color: #666;
}

.forgot-password-link {
    font-size: 12px;
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
}

/* 蹇樿瀵嗙爜妯℃€佹鏍峰紡 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay.hidden {
    display: none;
}

.modal-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.forgot-password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sms-code-group {
    display: flex;
    gap: 10px;
}

.sms-code-group input {
    flex: 1;
}

.btn-send-sms {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.btn-send-sms:hover:not(:disabled) {
    background: #764ba2;
}

.btn-send-sms:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.sms-timer {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

/* 涓婚〉闈㈡牱寮?*/
.main-page {
    display: flex;
    min-height: 100vh;
    background: #f5f5f5;
}

/* 渚ц竟鏍忔牱寮?*/
.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #34495e;
}

.sidebar-header h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.sidebar-header p {
    font-size: 12px;
    color: #bdc3c7;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item:hover {
    background: #34495e;
    color: white;
}

.nav-item.active {
    background: #3498db;
    color: white;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #34495e;
}

.logout-btn {
    width: 100%;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: #c0392b;
}

/* 涓诲唴瀹瑰尯 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-header {
    background: white;
    padding: 16px 24px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.header-logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-logout-btn:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}

.header-logout-btn i {
    font-size: 14px;
}

.content {
    flex: 1;
    padding: 24px;
}

/* 椤甸潰鍐呭 */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

/* 缁熻鍗＄墖 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-card:nth-child(1) .stat-icon { background: #3498db; }
.stat-card:nth-child(2) .stat-icon { background: #2ecc71; }
.stat-card:nth-child(3) .stat-icon { background: #f39c12; }
.stat-card:nth-child(4) .stat-icon { background: #e74c3c; }

.stat-info h3 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.stat-info p {
    color: #666;
    font-size: 14px;
}

/* 鍥捐〃鍖哄煙 */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.chart-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    margin-bottom: 20px;
    color: #333;
}

.chart {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 椤甸潰澶撮儴 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h3 {
    margin: 0;
    color: #333;
}

/* 绛涢€夊櫒 */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.filters select,
.filters input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filters input {
    flex: 1;
    max-width: 300px;
}

/* 琛ㄦ牸鏍峰紡 */
.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* 鎸夐挳鏍峰紡 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
}

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

/* 鐘舵€佹爣绛?*/
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-sold {
    background: #d1ecf1;
    color: #0c5460;
}

.status-passenger {
    background: #e3f2fd;
    color: #1565c0;
}

.status-commercial {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-offline {
    background: #f8d7da;
    color: #721c24;
}

/* 鍝嶅簲寮忚璁?*/
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .content {
        padding: 16px;
    }
}

/* 璋冭瘯宸ュ叿鏍峰紡 */
.debug-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.debug-section h4 {
    margin-top: 0;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.debug-section button {
    margin-right: 10px;
    margin-bottom: 5px;
}

#debugInfo {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* 鍔犺浇鍔ㄧ敾 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.loading-spinner i {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 10px;
}

/* 鍥剧墖鎳掑姞杞芥牱寮?*/
img.lazy-loading {
    opacity: 0.6;
    transition: opacity 0.3s;
    background: #f0f0f0;
}

img.lazy-loaded {
    opacity: 1;
    transition: opacity 0.3s;
}

img.lazy-error {
    opacity: 0.5;
    background: #f5f5f5;
}

.vehicle-images, .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.vehicle-images img, .image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* 娑堟伅鎻愮ず */
#messageContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 14px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
}

.message.show {
    transform: translateX(0);
    opacity: 1;
}

.message-success {
    background: #28a745;
}

.message-error {
    background: #dc3545;
}

.message-warning {
    background: #ffc107;
    color: #333;
}

.message-info {
    background: #17a2b8;
}

/* 妯℃€佹鏍峰紡 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 琛ㄥ崟鏍峰紡 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

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

/* 鏂囦欢涓婁紶鏍峰紡 */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-area.drag-over {
    border-color: #3b82f6;
    background: #dbeafe;
}

.upload-area i {
    font-size: 24px;
    color: #6b7280;
    margin-bottom: 8px;
}

.upload-area p {
    margin: 4px 0;
    color: #374151;
    font-size: 14px;
}

.upload-tip {
    font-size: 12px !important;
    color: #6b7280 !important;
}

.uploaded-images {
    margin-top: 12px;
}

.uploaded-image {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: #e0e7ff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.file-icon i {
    font-size: 18px;
    color: #3730a3;
}

.image-info {
    flex: 1;
}

.image-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.image-size {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.remove-image {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.remove-image:hover {
    background: #dc2626;
}

/* 鎼滅储绛涢€夋牱寮?*/
.search-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.file-upload {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.file-upload:hover {
    border-color: #667eea;
}

.file-upload.dragover {
    border-color: #667eea;
    background: #f8f9ff;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-icon {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

.file-upload-text {
    color: #666;
    font-size: 14px;
}

.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.file-preview-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}

.file-preview-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.file-preview-item .file-info {
    padding: 8px;
    font-size: 12px;
    color: #666;
}

.file-preview-item .file-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 鍒嗛〉鏍峰紡 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background: #f8f9fa;
}

.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 鏂板鏍峰紡 */
.header-actions {
    display: flex;
    gap: 10px;
}

/* 杞﹁締璇︽儏椤甸潰鏍峰紡 */
.vehicle-detail {
    max-width: 800px;
}

.detail-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.detail-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.detail-item span {
    color: #333;
    font-size: 14px;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e1e5e9;
}

.notes-content {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    color: #333;
    line-height: 1.6;
}

.vehicle-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.image-item {
    text-align: center;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: translateY(-2px);
}

.image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
}

.image-name {
    padding: 8px;
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
}

.no-images {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.error-message i {
    font-size: 48px;
    color: #f39c12;
    margin-bottom: 15px;
}

.error-message h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.error-message p {
    margin: 0;
    font-size: 14px;
}

.image-modal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
}

.image-modal img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.vehicle-summary {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-input-group {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.search-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-panel {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.mileage-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mileage-range label {
    margin: 0;
    font-weight: 500;
    color: #333;
}

.mileage-range input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: #e3f2fd;
    color: #1976d2;
}

.count-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: #ffebee;
    color: #d32f2f;
}

.page-description {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

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

.btn-success {
    background: #28a745;
    color: white;
    border: 1px solid #28a745;
}

.btn-success:hover {
    background: #218838;
    border-color: #1e7e34;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
    border: 1px solid #ffc107;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #d39e00;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* 杞︾墝鍙锋牱寮?*/
.plate-number {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

.plate-number:hover {
    color: #0056b3;
}

/* 杞﹁締鍥剧墖鏍峰紡 */
.vehicle-image {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vehicle-image img {
    border-radius: 4px;
    border: 1px solid #ddd;
}

.image-info {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

/* 鐘舵€佹寜閽牱寮?*/
.status-btn {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-btn.status-pending {
    background: #ffc107;
    color: #212529;
}

.status-btn.status-active {
    background: #28a745;
    color: white;
}

.status-btn.status-sold {
    background: #6c757d;
    color: white;
}

.status-btn.status-offline {
    background: #dc3545;
    color: white;
}

.status-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* 璧勬柟淇℃伅鏍峰紡 */
.funder-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.funder-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.batch-name {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* 鍥剧墖绠＄悊鏍峰紡 */
.image-upload-section {
    margin-top: 15px;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.image-preview-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-container {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview-item:hover .image-overlay {
    opacity: 1;
}

.btn-edit-image, .btn-delete-image {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit-image:hover {
    background: #28a745;
    color: white;
}

.btn-delete-image:hover {
    background: #dc3545;
    color: white;
}

.image-info {
    padding: 10px;
}

.image-name-input {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 5px;
}

.image-size {
    color: #666;
    font-size: 11px;
}

.file-upload {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.file-upload:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-upload-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 10px;
}

.file-upload-text {
    color: #666;
    font-size: 14px;
}

.file-upload-text small {
    display: block;
    margin-top: 5px;
    color: #999;
}
.image-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.image-size {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.remove-image {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.remove-image:hover {
    background: #dc2626;
}

/* 鎼滅储绛涢€夋牱寮?*/
.search-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.file-upload {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.file-upload:hover {
    border-color: #667eea;
}

.file-upload.dragover {
    border-color: #667eea;
    background: #f8f9ff;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-icon {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

.file-upload-text {
    color: #666;
    font-size: 14px;
}

.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.file-preview-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}

.file-preview-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.file-preview-item .file-info {
    padding: 8px;
    font-size: 12px;
    color: #666;
}

.file-preview-item .file-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 鍒嗛〉鏍峰紡 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background: #f8f9fa;
}

.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 鏂板鏍峰紡 */
.header-actions {
    display: flex;
    gap: 10px;
}

/* 杞﹁締璇︽儏椤甸潰鏍峰紡 */
.vehicle-detail {
    max-width: 800px;
}

.detail-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.detail-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.detail-item span {
    color: #333;
    font-size: 14px;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e1e5e9;
}

.notes-content {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    color: #333;
    line-height: 1.6;
}

.vehicle-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.image-item {
    text-align: center;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: translateY(-2px);
}

.image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
}

.image-name {
    padding: 8px;
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
}

.no-images {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.error-message i {
    font-size: 48px;
    color: #f39c12;
    margin-bottom: 15px;
}

.error-message h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.error-message p {
    margin: 0;
    font-size: 14px;
}

.image-modal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
}

.image-modal img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.vehicle-summary {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-input-group {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.search-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-panel {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.mileage-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mileage-range label {
    margin: 0;
    font-weight: 500;
    color: #333;
}

.mileage-range input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: #e3f2fd;
    color: #1976d2;
}

.count-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: #ffebee;
    color: #d32f2f;
}

.page-description {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

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

.btn-success {
    background: #28a745;
    color: white;
    border: 1px solid #28a745;
}

.btn-success:hover {
    background: #218838;
    border-color: #1e7e34;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
    border: 1px solid #ffc107;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #d39e00;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* 杞︾墝鍙锋牱寮?*/
.plate-number {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

.plate-number:hover {
    color: #0056b3;
}

/* 杞﹁締鍥剧墖鏍峰紡 */
.vehicle-image {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vehicle-image img {
    border-radius: 4px;
    border: 1px solid #ddd;
}

.image-info {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

/* 鐘舵€佹寜閽牱寮?*/
.status-btn {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-btn.status-pending {
    background: #ffc107;
    color: #212529;
}

.status-btn.status-active {
    background: #28a745;
    color: white;
}

.status-btn.status-sold {
    background: #6c757d;
    color: white;
}

.status-btn.status-offline {
    background: #dc3545;
    color: white;
}

.status-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* 璧勬柟淇℃伅鏍峰紡 */
.funder-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.funder-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.batch-name {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* 鍥剧墖绠＄悊鏍峰紡 */
.image-upload-section {
    margin-top: 15px;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.image-preview-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-container {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview-item:hover .image-overlay {
    opacity: 1;
}

.btn-edit-image, .btn-delete-image {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit-image:hover {
    background: #28a745;
    color: white;
}

.btn-delete-image:hover {
    background: #dc3545;
    color: white;
}

.image-info {
    padding: 10px;
}

.image-name-input {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 5px;
}

.image-size {
    color: #666;
    font-size: 11px;
}

.file-upload {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.file-upload:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-upload-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 10px;
}

.file-upload-text {
    color: #666;
    font-size: 14px;
}

.file-upload-text small {
    display: block;
    margin-top: 5px;
    color: #999;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 杞﹁締璇︽儏寮圭獥鏍峰紡 */
.vehicle-detail-content {
    max-height: 70vh;
    overflow-y: auto;
}

.detail-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.detail-section h4 {
    margin-bottom: 16px;
    color: #007bff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h5 {
    margin-bottom: 12px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item label {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    margin-bottom: 4px;
}

.detail-item span {
    color: #212529;
    font-size: 14px;
    word-break: break-word;
}

.plate-number {
    color: #007bff !important;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-sold {
    background: #f8d7da;
    color: #721c24;
}

.status-offline {
    background: #e2e3e5;
    color: #383d41;
}

/* 杞﹁締鍥剧墖鏍峰紡 */
.vehicle-images {
    margin-top: 16px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.image-item:hover {
    transform: scale(1.05);
}

.image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.image-item img:hover {
    opacity: 0.8;
}

.no-images {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-images i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* 璇勪及鎶ュ憡鏍峰紡 */
.vehicle-reports {
    margin-top: 16px;
}

.report-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.report-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.report-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.report-item i {
    color: #dc3545;
    font-size: 16px;
}

.report-item span {
    flex: 1;
    font-size: 14px;
    color: #495057;
}

/* 澶囨敞鏍峰紡 */
.notes-content {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    white-space: pre-wrap;
}

/* 鍥剧墖棰勮妯℃€佹 */
.image-preview {
    text-align: center;
    padding: 20px;
}

.image-preview img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 鍥剧墖棰勮妯℃€佹浼樺寲鏍峰紡 */
.image-preview-modal {
    z-index: 10001;
}

.image-preview-modal .modal-content {
    background: transparent;
    box-shadow: none;
    border: none;
}

.image-preview-modal .modal-header {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.image-preview-modal .modal-header .modal-close {
    color: white;
}

.image-preview-modal .modal-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.image-preview-body {
    background: rgba(0, 0, 0, 0.95) !important;
}

.image-preview-body img {
    max-width: 95vw !important;
    max-height: 95vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* 图片计数器样式 */
.image-counter {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: normal;
    margin-left: 10px;
}

/* 图片导航按钮优化 */
.image-nav-prev,
.image-nav-next {
    user-select: none;
    -webkit-user-select: none;
}

.image-nav-left,
.image-nav-right {
    user-select: none;
    -webkit-user-select: none;
}

.image-nav-left:hover,
.image-nav-right:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 鏂囦欢涓婁紶鍖哄煙鏍峰紡 */
.upload-area {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    margin-bottom: 16px;
}

.upload-area:hover {
    border-color: #0056b3;
    background: #e3f2fd;
}

.upload-area.drag-over {
    border-color: #28a745;
    background: #d4edda;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 16px;
}

.upload-text {
    font-size: 16px;
    color: #495057;
    margin-bottom: 8px;
    font-weight: 500;
}

.upload-hint {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 0;
}

/* 璇勪及鎶ュ憡涓婁紶鍖哄煙鏍峰紡 */
#editAssessmentReportsUpload {
    border-color: #6c757d;
    background: #f8f9fa;
}

#editAssessmentReportsUpload:hover {
    border-color: #495057;
    background: #e9ecef;
}

#editAssessmentReportsUpload .upload-icon {
    color: #6c757d;
}

/* 宸蹭笂浼犳枃浠跺垪琛ㄦ牱寮?*/
.uploaded-files {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.uploaded-file-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.file-info i {
    font-size: 16px;
    color: #007bff;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* 鏂囦欢棰勮鏍峰紡 */
.file-preview {
    width: 60px;
    height: 60px;
    min-width: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid #e9ecef;
    background: #f8f9fa;
}

.file-preview:hover {
    transform: scale(1.05);
    border-color: #007bff;
}

.preview-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.file-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.file-details .file-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-details .file-size {
    font-size: 12px;
    color: #666;
}

.file-details .file-name {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.file-details .file-size {
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.file-info i.fa-file-pdf {
    color: #dc3545;
}

.file-name {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
}

.remove-file {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.remove-file:hover {
    background: #f8d7da;
    color: #721c24;
}

.remove-file i {
    font-size: 12px;
}

/* 琛ㄥ崟缁勬牱寮忎紭鍖?*/
.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 琛ㄥ崟琛屾牱寮?*/
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* 蹇呭～瀛楁鏍囪瘑 */
.form-group label:after {
    content: '';
}

.form-group label[for*="required"]:after,
.form-group label:has(+ input[required]):after,
.form-group label:has(+ select[required]):after {
    content: ' *';
    color: #dc3545;
}

/* 鍝嶅簲寮忚璁?*/
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .image-item img {
        height: 100px;
    }
    
    .vehicle-detail-content {
        max-height: 60vh;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .upload-text {
        font-size: 14px;
    }
    
    .upload-hint {
        font-size: 12px;
    }
}

/* 琛ㄥ崟鍒嗙粍鏍峰紡 - 鐢ㄤ簬娣诲姞/缂栬緫杞﹁締琛ㄥ崟 */
.scrollable-modal {
    max-height: 80vh;
    overflow-y: auto;
}

.form-section {
    margin-bottom: 24px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.form-section .section-title {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section .section-title i {
    font-size: 18px;
}

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

.form-grid .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-grid .form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.form-grid .form-group input,
.form-grid .form-group select,
.form-grid .form-group textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-grid .form-group input:focus,
.form-grid .form-group select:focus,
.form-grid .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

.form-grid .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        padding: 16px;
    }
}

/* 绛涢€夊櫒鏍峰紡 - 鍗曡甯冨眬 */
.filters-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.filters-row {
    display: flex;
    gap: 16px;
    flex: 1;
    flex-wrap: nowrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}

.filter-group label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-actions {
    display: flex;
    gap: 12px;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

@media (max-width: 1400px) {
    .filters-row {
        flex-wrap: wrap;
    }
    
    .filter-group {
        min-width: 120px;
    }
}

/* 杞﹁締鍚嶇О鍒楁牱寮忎紭鍖?*/
#vehiclesTable td:nth-child(2) {
    padding: 8px 10px;
    line-height: 1.3;
    font-size: 14px;
}

#vehiclesTable th:nth-child(2) {
    padding: 12px 10px;
}

/* Modal Styles - 浼樺寲澶у皬鍜屽竷灞€ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
}

.modal.active,
.modal.fade-in {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    max-height: 85vh;
    width: 95%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal.fade-in {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.fade-in.show {
    opacity: 1;
}

.modal > div {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #666;
}

.modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(85vh - 100px);
}

.modal-body .form-group {
    margin-bottom: 12px;
}

.modal-body .form-section {
    margin-bottom: 20px;
}

.modal-body .section-title {
    margin-bottom: 14px;
    font-size: 15px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.modal-body .form-group input,
.modal-body .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.modal-body .form-group input:focus,
.modal-body .form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.modal-footer .btn {
    padding: 9px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-footer .btn-primary {
    background: #667eea;
    color: white;
}

.modal-footer .btn-primary:hover {
    background: #5568d3;
}

.modal-footer .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.modal-footer .btn-secondary:hover {
    background: #e5e7eb;
}

/* 鍝嶅簲寮忚璁?*/
@media (max-width: 768px) {
    .modal.active {
        padding: 10px;
    }
    
    .modal > div {
        width: 95%;
        max-height: 90vh;
    }
}

