/* 整车物流运营看板样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background: linear-gradient(135deg, #0a1428 0%, #1a2b42 50%, #0a1428 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 顶部标题栏 */
.header {
    height: 80px;
    background: linear-gradient(90deg, #1e3a5f 0%, #2d5aa0 50%, #1e3a5f 100%);
    border-bottom: 2px solid #ff6b35;
    display: flex;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.company-name {
    font-size: 18px;
    font-weight: bold;
    color: #ff6b35;
}

.header-center {
    flex: 2;
    text-align: center;
}

.header-center h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    background: linear-gradient(90deg, #ff6b35, #ffffff, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 14px;
    color: #ffb399;
    opacity: 0.8;
}

.header-right {
    flex: 1;
    text-align: right;
}

.datetime {
    font-size: 16px;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 5px;
}

.shift-info {
    font-size: 14px;
    color: #ffb399;
}

/* 主要内容区域 */
.main-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100vh - 120px);
}

/* 行布局 */
.row-1, .row-2, .row-3, .row-4 {
    display: flex;
    gap: 20px;
}

.row-1 {
    height: 280px;
}

.row-2 {
    height: 250px;
}

.row-3 {
    height: 300px;
}

.row-4 {
    height: 220px;
}

/* 面板样式 */
.panel {
    background: linear-gradient(135deg, #1a2b42 0%, #2d3f5f 100%);
    border: 1px solid #ff6b35;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.panel-header {
    background: linear-gradient(90deg, #2d5aa0 0%, #1e3a5f 100%);
    padding: 15px 20px;
    border-bottom: 1px solid #ff6b35;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 16px;
    color: #ffffff;
    font-weight: bold;
}

.panel-tabs {
    display: flex;
    gap: 10px;
}

.tab {
    padding: 5px 12px;
    font-size: 12px;
    border: 1px solid #ff6b35;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffb399;
}

.tab.active {
    background: #ff6b35;
    color: #1a2b42;
}

.panel-content {
    padding: 20px;
    height: calc(100% - 60px);
}

/* 生产监控面板 */
.production-monitor {
    flex: 2;
}

.production-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-item {
    flex: 1;
    background: #0f1a2e;
    border: 1px solid #2d3f5f;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: #ffb399;
    margin-bottom: 8px;
}

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

.stat-unit {
    font-size: 12px;
    color: #ffffff;
    opacity: 0.7;
}

.production-chart {
    height: 120px;
    background: #0f1a2e;
    border: 1px solid #2d3f5f;
    border-radius: 4px;
}

/* 车型分布面板 */
.vehicle-models {
    flex: 1;
}

.model-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.model-item {
    background: #0f1a2e;
    border: 1px solid #2d3f5f;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.model-name {
    font-size: 14px;
    color: #ffffff;
    font-weight: bold;
    min-width: 80px;
}

.model-count {
    font-size: 18px;
    font-weight: bold;
    color: #ff6b35;
    min-width: 50px;
}

.model-progress {
    flex: 1;
    height: 8px;
    background: #2d3f5f;
    border-radius: 4px;
    overflow: hidden;
}

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

.model-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

.model-status.normal {
    background: #10b981;
    color: #ffffff;
}

.model-status.warning {
    background: #f59e0b;
    color: #ffffff;
}

/* 仓储监控面板 */
.storage-monitor {
    flex: 1;
}

.storage-overview {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.storage-area {
    background: #0f1a2e;
    border: 1px solid #2d3f5f;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.area-name {
    font-size: 14px;
    color: #ffffff;
    font-weight: bold;
    min-width: 100px;
}

.area-capacity {
    font-size: 14px;
    color: #ffb399;
    min-width: 100px;
}

.area-capacity .current {
    color: #ff6b35;
    font-weight: bold;
}

.area-utilization {
    font-size: 16px;
    font-weight: bold;
    color: #ff6b35;
    min-width: 50px;
}

.area-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

.area-status.normal {
    background: #10b981;
    color: #ffffff;
}

.area-status.warning {
    background: #f59e0b;
    color: #ffffff;
}

.storage-chart {
    height: 80px;
    background: #0f1a2e;
    border: 1px solid #2d3f5f;
    border-radius: 4px;
}

/* 装载监控面板 */
.loading-monitor {
    flex: 1;
}

.loading-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.loading-item {
    flex: 1;
    background: #0f1a2e;
    border: 1px solid #2d3f5f;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
}

.item-label {
    font-size: 12px;
    color: #ffb399;
    margin-bottom: 8px;
}

.item-value {
    font-size: 20px;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 5px;
}

.item-icon {
    font-size: 16px;
}

.loading-queue h4 {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 10px;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.queue-item {
    background: #0f1a2e;
    border: 1px solid #2d3f5f;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.truck-info {
    font-size: 12px;
    color: #ffffff;
    font-weight: bold;
}

.load-progress {
    font-size: 12px;
    color: #ff6b35;
}

.estimated-time {
    font-size: 11px;
    color: #ffb399;
}

/* 运输监控面板 */
.transport-monitor {
    flex: 2;
}

.transport-map {
    width: 100%;
    height: 100%;
    background: #0f1a2e;
    border: 1px solid #2d3f5f;
    border-radius: 4px;
    position: relative;
    background-image: 
        radial-gradient(circle at 20% 30%, #ff6b35 2px, transparent 2px),
        radial-gradient(circle at 60% 70%, #10b981 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, #f59e0b 2px, transparent 2px);
}

.map-controls {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
}

.map-btn {
    padding: 5px 10px;
    font-size: 12px;
    border: 1px solid #ff6b35;
    border-radius: 4px;
    background: transparent;
    color: #ffb399;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-btn.active {
    background: #ff6b35;
    color: #1a2b42;
}

.route-legend {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(26, 43, 66, 0.9);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #2d3f5f;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: #ffb399;
}

.route-line {
    width: 20px;
    height: 3px;
    margin-right: 10px;
    border-radius: 2px;
}

.route-line.northeast {
    background: #ff6b35;
}

.route-line.north {
    background: #10b981;
}

.route-line.east {
    background: #f59e0b;
}

.route-line.south {
    background: #8b5cf6;
}

/* 交付监控面板 */
.delivery-monitor {
    flex: 1;
}

.delivery-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.delivery-kpi {
    flex: 1;
    background: #0f1a2e;
    border: 1px solid #2d3f5f;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    position: relative;
}

.kpi-title {
    font-size: 12px;
    color: #ffb399;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 18px;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 5px;
}

.kpi-trend {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 4px;
}

.kpi-trend.up {
    background: #10b981;
    color: #ffffff;
}

.kpi-trend.stable {
    background: #6b7280;
    color: #ffffff;
}

.delivery-regions h4 {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 10px;
}

.region-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.region-item {
    background: #0f1a2e;
    border: 1px solid #2d3f5f;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.region-name {
    font-size: 12px;
    color: #ffffff;
    min-width: 80px;
}

.region-progress {
    flex: 1;
    height: 6px;
    background: #2d3f5f;
    border-radius: 3px;
    overflow: hidden;
}

.region-count {
    font-size: 12px;
    color: #ff6b35;
    font-weight: bold;
    min-width: 60px;
    text-align: right;
}

/* 异常预警面板 */
.alerts-monitor {
    flex: 2;
}

.alert-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.alert-count {
    flex: 1;
    background: #0f1a2e;
    border: 1px solid #2d3f5f;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
}

.alert-count .count {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.alert-count .label {
    font-size: 12px;
    color: #ffb399;
}

.alert-count.high .count {
    color: #ef4444;
}

.alert-count.medium .count {
    color: #f59e0b;
}

.alert-count.low .count {
    color: #ff6b35;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: calc(100% - 100px);
    overflow-y: auto;
}

.alert-item {
    display: flex;
    align-items: center;
    background: #0f1a2e;
    border-left: 4px solid;
    border-radius: 4px;
    padding: 15px;
    gap: 15px;
}

.alert-item.high {
    border-left-color: #ef4444;
}

.alert-item.medium {
    border-left-color: #f59e0b;
}

.alert-item.low {
    border-left-color: #ff6b35;
}

.alert-time {
    font-size: 12px;
    color: #ffb399;
    min-width: 50px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.alert-desc {
    font-size: 12px;
    color: #ffb399;
}

.alert-action {
    min-width: 60px;
}

.btn-handle {
    padding: 5px 10px;
    font-size: 12px;
    border: 1px solid #ff6b35;
    border-radius: 4px;
    background: transparent;
    color: #ff6b35;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-handle:hover {
    background: #ff6b35;
    color: #1a2b42;
}

/* 绩效监控面板 */
.performance-monitor {
    flex: 1;
}

.performance-chart {
    height: 100px;
    background: #0f1a2e;
    border: 1px solid #2d3f5f;
    border-radius: 4px;
    margin-bottom: 15px;
}

.performance-targets {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.target-item {
    background: #0f1a2e;
    border: 1px solid #2d3f5f;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.target-name {
    font-size: 12px;
    color: #ffffff;
    min-width: 80px;
}

.target-current {
    font-size: 16px;
    font-weight: bold;
    color: #ff6b35;
    min-width: 40px;
}

.target-unit {
    font-size: 12px;
    color: #ffb399;
    min-width: 40px;
}

.target-status {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

.target-status.good {
    background: #10b981;
    color: #ffffff;
}

.target-status.warning {
    background: #f59e0b;
    color: #ffffff;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .row-1, .row-2, .row-3, .row-4 {
        flex-direction: column;
        height: auto;
    }
    
    .panel {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .header-center h1 {
        font-size: 20px;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .production-stats,
    .loading-stats,
    .delivery-stats {
        flex-direction: column;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.stat-value,
.kpi-value {
    animation: pulse 2s infinite;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-item {
    animation: slideIn 0.5s ease-out;
}

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

::-webkit-scrollbar-track {
    background: #1a2b42;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 3px;
}

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