/* 页面通用样式 */
.page-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 统计卡片行 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: rgba(16, 42, 88, 0.4);
    border: 1px solid rgba(64, 169, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.stat-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.stat-icon.blue {
    background: linear-gradient(135deg, rgba(64, 169, 255, 0.3), rgba(64, 169, 255, 0.1));
    box-shadow: 0 0 20px rgba(64, 169, 255, 0.3);
}

.stat-icon.green {
    background: linear-gradient(135deg, rgba(82, 196, 26, 0.3), rgba(82, 196, 26, 0.1));
    box-shadow: 0 0 20px rgba(82, 196, 26, 0.3);
}

.stat-icon.yellow {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.stat-icon.cyan {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 212, 255, 0.1));
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.stat-icon.red {
    background: linear-gradient(135deg, rgba(255, 77, 79, 0.3), rgba(255, 77, 79, 0.1));
    box-shadow: 0 0 20px rgba(255, 77, 79, 0.3);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.stat-trend {
    font-size: 12px;
    font-weight: bold;
}

.stat-trend.up {
    color: #52c41a;
}

.stat-trend.down {
    color: #ff4d4f;
}

/* 内容网格 */
.content-grid {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    flex: 1;
}

.panel-large {
    grid-row: span 1;
}

/* 搜索和筛选 */
.panel-actions {
    display: flex;
    gap: 10px;
}

.search-input {
    background: rgba(16, 42, 88, 0.6);
    border: 1px solid rgba(64, 169, 255, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    width: 180px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.filter-btn {
    background: rgba(64, 169, 255, 0.2);
    border: 1px solid rgba(64, 169, 255, 0.3);
    border-radius: 6px;
    padding: 8px 16px;
    color: #00d4ff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(64, 169, 255, 0.4);
}

/* 数据表格 */
.vehicle-table-container {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

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

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(64, 169, 255, 0.1);
    font-size: 13px;
}

.data-table th {
    background: rgba(16, 42, 88, 0.6);
    color: #00d4ff;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(64, 169, 255, 0.1);
}

.data-table td {
    color: rgba(255, 255, 255, 0.8);
}

.plate {
    background: rgba(64, 169, 255, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    color: #fff;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.online {
    background: rgba(82, 196, 26, 0.2);
    color: #52c41a;
    border: 1px solid rgba(82, 196, 26, 0.3);
}

.status-badge.offline {
    background: rgba(140, 140, 140, 0.2);
    color: #8c8c8c;
    border: 1px solid rgba(140, 140, 140, 0.3);
}

.status-badge.warning {
    background: rgba(255, 77, 79, 0.2);
    color: #ff4d4f;
    border: 1px solid rgba(255, 77, 79, 0.3);
}

.action-link {
    background: transparent;
    border: 1px solid rgba(64, 169, 255, 0.5);
    color: #00d4ff;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.action-link:hover {
    background: rgba(64, 169, 255, 0.2);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(64, 169, 255, 0.1);
}

.page-btn {
    background: rgba(16, 42, 88, 0.6);
    border: 1px solid rgba(64, 169, 255, 0.3);
    color: #00d4ff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: rgba(64, 169, 255, 0.3);
}

.page-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* 类型列表 */
.type-list {
    margin-top: 20px;
}

.type-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(64, 169, 255, 0.1);
}

.type-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.type-name {
    flex: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.type-value {
    font-size: 13px;
    color: #fff;
    font-weight: bold;
}

/* 状态汇总 */
.status-summary {
    margin-top: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(64, 169, 255, 0.1);
}

.summary-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.summary-value {
    font-size: 14px;
    font-weight: bold;
}

/* 图表容器 */
.pie-chart {
    width: 100%;
    height: 200px;
}

/* 响应式 */
@media (max-width: 1400px) {
    .content-grid {
        grid-template-columns: 250px 1fr 250px;
    }
}

@media (max-width: 1200px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .panel-large {
        order: -1;
    }
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}
