/* 设备管理看板样式 - 深灰橙色主题 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 50%, #2d3748 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 顶部标题栏 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(237, 137, 54, 0.3);
}

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

.logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
    color: #fed7aa;
}

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

.header-center h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #ed8936, #dd6b20);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(237, 137, 54, 0.5);
}

.subtitle {
    font-size: 14px;
    color: #fbb6ce;
    letter-spacing: 2px;
}

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

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

.equipment-status {
    font-size: 14px;
    color: #fbb6ce;
}

.status-excellent {
    color: #10b981;
    font-weight: 600;
}

/* 主要内容区域 */
.main-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1920px;
    margin: 0 auto;
}

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

/* 面板样式 */
.panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(237, 137, 54, 0.2);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(237, 137, 54, 0.4);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(237, 137, 54, 0.2);
    border-bottom: 1px solid rgba(237, 137, 54, 0.3);
}

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

.panel-content {
    padding: 25px;
}

/* 标签页 */
.panel-tabs {
    display: flex;
    gap: 10px;
}

.tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tab.active, .tab:hover {
    background: rgba(237, 137, 54, 0.6);
    color: #ffffff;
}

/* 控制按钮 */
.monitor-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.control-btn.active, .control-btn:hover {
    background: rgba(237, 137, 54, 0.6);
}

/* 设备总览 */
.equipment-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.stat-circle {
    position: relative;
    width: 150px;
    height: 150px;
}

.circle-chart {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#ed8936 0deg, #ed8936 339deg, rgba(255,255,255,0.2) 339deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circle-inner {
    width: 120px;
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.circle-value {
    font-size: 24px;
    font-weight: 700;
    color: #ed8936;
    margin-bottom: 5px;
}

.circle-label {
    font-size: 12px;
    color: #fbb6ce;
}

.equipment-numbers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex: 1;
}

.number-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(237, 137, 54, 0.2);
}

.number-label {
    font-size: 14px;
    color: #fbb6ce;
    margin-bottom: 8px;
}

.number-value {
    font-size: 24px;
    font-weight: 700;
    color: #ed8936;
}

/* 设备分类 */
.equipment-categories {
    display: flex;
    gap: 20px;
}

.category-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(237, 137, 54, 0.2);
}

.category-icon {
    font-size: 32px;
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 5px;
}

.category-count {
    font-size: 14px;
    color: #fbb6ce;
}

.category-rate {
    font-size: 18px;
    font-weight: 600;
    color: #10b981;
}

/* 实时监控 */
.equipment-alerts {
    height: 300px;
    overflow-y: auto;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.equipment-alert {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid;
}

.equipment-alert.critical {
    border-left-color: #ef4444;
}

.equipment-alert.warning {
    border-left-color: #f59e0b;
}

.equipment-alert.info {
    border-left-color: #3b82f6;
}

.alert-priority {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.equipment-alert.critical .alert-priority {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.equipment-alert.warning .alert-priority {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.equipment-alert.info .alert-priority {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.alert-content {
    flex: 1;
}

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

.alert-details {
    font-size: 14px;
    color: #fbb6ce;
}

.alert-time {
    font-size: 12px;
    color: #9ca3af;
}

.btn-handle {
    padding: 6px 12px;
    background: rgba(237, 137, 54, 0.6);
    border: none;
    border-radius: 15px;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-handle:hover {
    background: rgba(237, 137, 54, 0.8);
}

/* 维护计划 */
.maintenance-overview {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.maintenance-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.maintenance-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(237, 137, 54, 0.2);
    flex: 1;
}

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

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

.stat-unit {
    font-size: 12px;
    color: #9ca3af;
}

.maintenance-schedule h4 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 15px;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(237, 137, 54, 0.2);
}

.schedule-time {
    min-width: 60px;
    font-size: 14px;
    color: #ed8936;
    font-weight: 600;
}

.schedule-equipment {
    min-width: 120px;
    font-size: 14px;
    color: #ffffff;
}

.schedule-type {
    flex: 1;
    font-size: 14px;
    color: #fbb6ce;
}

.schedule-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.schedule-status.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.schedule-status.ongoing {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.schedule-status.planned {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* 设备利用率 */
.utilization-overview {
    display: flex;
    gap: 30px;
    align-items: center;
}

.utilization-chart {
    flex: 1;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(237, 137, 54, 0.2);
}

.utilization-details {
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(237, 137, 54, 0.2);
}

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

.detail-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.detail-fill {
    height: 100%;
    background: linear-gradient(90deg, #ed8936, #dd6b20);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.detail-value {
    font-size: 14px;
    color: #ed8936;
    min-width: 40px;
    text-align: right;
}

/* 故障分析 */
.fault-overview {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.fault-stat {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(237, 137, 54, 0.2);
}

.stat-count {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 5px;
}

.fault-trend h4 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 15px;
}

.trend-chart {
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(237, 137, 54, 0.2);
}

/* 能耗监控 */
.energy-overview {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.energy-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.energy-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(237, 137, 54, 0.2);
    flex: 1;
}

.stat-icon {
    font-size: 32px;
}

.stat-info {
    text-align: center;
}

.energy-efficiency h4 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 15px;
}

.efficiency-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.efficiency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(237, 137, 54, 0.2);
}

.efficiency-name {
    font-size: 14px;
    color: #ffffff;
}

.efficiency-value {
    font-size: 16px;
    font-weight: 600;
    color: #ed8936;
}

.efficiency-trend {
    font-size: 12px;
}

.efficiency-trend.up {
    color: #10b981;
}

.efficiency-trend.down {
    color: #ef4444;
}

/* 备件管理 */
.parts-overview {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.parts-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.parts-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(237, 137, 54, 0.2);
    flex: 1;
}

.parts-categories h4 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 15px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(237, 137, 54, 0.2);
}

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

.category-stock {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stock-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.stock-fill {
    height: 100%;
    background: linear-gradient(90deg, #ed8936, #dd6b20);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.stock-percent {
    font-size: 12px;
    color: #ed8936;
    min-width: 35px;
}

.category-count {
    font-size: 12px;
    color: #fbb6ce;
    min-width: 80px;
    text-align: right;
}

/* 技术人员 */
.staff-overview {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.staff-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.staff-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(237, 137, 54, 0.2);
    flex: 1;
}

.staff-skills h4 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 15px;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(237, 137, 54, 0.2);
}

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

.skill-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #ed8936, #dd6b20);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.skill-count {
    font-size: 12px;
    color: #fbb6ce;
    min-width: 60px;
    text-align: right;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .row-1, .row-2, .row-3, .row-4 {
        grid-template-columns: 1fr;
    }
    
    .header-center h1 {
        font-size: 28px;
    }
    
    .equipment-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .equipment-categories {
        flex-direction: column;
    }
    
    .utilization-overview {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .panel-content {
        padding: 20px;
    }
    
    .equipment-numbers {
        grid-template-columns: 1fr;
    }
    
    .maintenance-stats {
        flex-direction: column;
    }
    
    .energy-stats {
        flex-direction: column;
    }
    
    .parts-stats {
        flex-direction: column;
    }
    
    .staff-stats {
        flex-direction: column;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel {
    animation: fadeInUp 0.6s ease-out;
}

.panel:nth-child(1) { animation-delay: 0.1s; }
.panel:nth-child(2) { animation-delay: 0.2s; }
.panel:nth-child(3) { animation-delay: 0.3s; }
.panel:nth-child(4) { animation-delay: 0.4s; }

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(237, 137, 54, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(237, 137, 54, 0.8);
}