/* 售后服务看板样式 - 蓝紫色主题 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 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(102, 126, 234, 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: #e0e7ff;
}

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

.header-center h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

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

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

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

.service-status {
    font-size: 14px;
    color: #c7d2fe;
}

.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(102, 126, 234, 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(102, 126, 234, 0.4);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(102, 126, 234, 0.2);
    border-bottom: 1px solid rgba(102, 126, 234, 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(102, 126, 234, 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(102, 126, 234, 0.6);
}

/* 服务总览 */
.service-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(#667eea 0deg, #667eea 352deg, rgba(255,255,255,0.2) 352deg);
    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: #667eea;
    margin-bottom: 5px;
}

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

.service-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(102, 126, 234, 0.2);
}

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

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

/* 服务分类 */
.service-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(102, 126, 234, 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: #c7d2fe;
}

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

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

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

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

.service-alert.urgent {
    border-left-color: #ef4444;
}

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

.service-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;
}

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

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

.service-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: #c7d2fe;
}

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

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

.btn-handle:hover {
    background: rgba(102, 126, 234, 0.8);
}

/* 备件管理 */
.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(102, 126, 234, 0.2);
    flex: 1;
}

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

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

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

.parts-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.parts-category {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.category-name {
    min-width: 100px;
    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, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

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

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

/* 服务网点 */
.network-overview {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.network-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    flex: 1;
}

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

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

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

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

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

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

.region-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(102, 126, 234, 0.2);
}

.region-name {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
}

.region-count {
    font-size: 14px;
    color: #c7d2fe;
}

.region-coverage {
    font-size: 14px;
    color: #10b981;
}

/* 客户满意度 */
.satisfaction-overview {
    display: flex;
    gap: 30px;
    align-items: center;
}

.satisfaction-score {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.score-value {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
}

.score-stars {
    font-size: 24px;
}

.score-label {
    font-size: 14px;
    color: #c7d2fe;
}

.satisfaction-breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

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

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

.breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.breakdown-score {
    font-size: 14px;
    color: #667eea;
    min-width: 50px;
    text-align: right;
}

/* 服务效率 */
.efficiency-overview {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.efficiency-kpis {
    display: flex;
    gap: 20px;
}

.kpi-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(102, 126, 234, 0.2);
}

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

.kpi-info {
    flex: 1;
}

.kpi-label {
    font-size: 14px;
    color: #c7d2fe;
    margin-bottom: 5px;
}

.kpi-value {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

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

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

.kpi-trend.stable {
    color: #f59e0b;
}

.efficiency-chart {
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* 技师管理 */
.technician-overview {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.technician-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    flex: 1;
}

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

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

.level-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(102, 126, 234, 0.2);
}

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

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

.level-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.level-count {
    font-size: 14px;
    color: #c7d2fe;
    min-width: 80px;
    text-align: right;
}

/* 培训计划 */
.training-overview {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.training-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    flex: 1;
}

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

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

.course-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(102, 126, 234, 0.2);
}

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

.course-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.progress-text {
    font-size: 12px;
    color: #667eea;
    min-width: 35px;
}

.course-participants {
    font-size: 12px;
    color: #c7d2fe;
    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;
    }
    
    .service-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .service-categories {
        flex-direction: column;
    }
    
    .satisfaction-overview {
        flex-direction: column;
    }
    
    .efficiency-kpis {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .panel-content {
        padding: 20px;
    }
    
    .service-numbers {
        grid-template-columns: 1fr;
    }
    
    .network-stats {
        flex-direction: column;
    }
    
    .technician-stats {
        flex-direction: column;
    }
    
    .training-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(102, 126, 234, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}