/* 大屏展示页面专用样式 */

/* 全局大屏样式重置 */
body {
    background: linear-gradient(135deg, #0c1426 0%, #1a2332 50%, #0f1419 100%);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', sans-serif;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100vh;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

#app {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 主要内容区域 */
.dashboard-main {
    margin-left: 0;
}

/* 顶部导航栏样式 */
.dashboard-header {
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
    border-bottom: 2px solid #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    height: 60px;
    line-height: 60px;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0 15px;
    height: 100%;
    box-sizing: border-box;
}

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

.header-left .logo h2 {
    color: #ffffff;
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    height: 100%;
}

.console-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 4px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    white-space: nowrap;
    height: 32px;
    box-sizing: border-box;
}

.console-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.console-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    white-space: nowrap;
}

.user-name {
    font-weight: 500;
}

/* 退出登录按钮样式 */
.logout-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
}

.console-btn svg {
    flex-shrink: 0;
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    min-width: 100px;
    height: 100%;
    justify-content: center;
}

.time-display {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.date-display {
    font-size: 11px;
    color: #e2e8f0;
    opacity: 0.8;
    line-height: 1.2;
}

/* 主要内容区域 */
.dashboard-main {
    padding: 0;
    width: 100%;
    margin: 0;
    height: calc(100vh - 60px);
    overflow-x: auto;
    overflow-y: hidden;
    box-sizing: border-box;
}

/* 通用区域样式 */
.dashboard-section {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.section-header {
    margin-bottom: 10px;
    text-align: center;
}

.section-header h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    color: #94a3b8;
    font-size: 12px;
    opacity: 0.8;
}

/* 左侧区域：设备统计和新度系数 */
.left-section {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

/* 设备统计区域 */
.equipment-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 各基层设备分布区域 */
.distribution-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chart-container {
    position: relative;
    flex: 1;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 6px;
    padding: 6px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    min-height: 0;
}

.chart-container canvas {
    max-width: 100%;
    max-height: 100%;
}

/* 中间区域：地图 */
.center-section {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 地图区域 */
.map-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.personnel-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
    padding: 6px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 80px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #1e40af);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.on-duty-card::before {
    background: linear-gradient(90deg, #10b981, #059669, #047857);
}

.management-card::before {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #1e40af);
}

.technical-card::before {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed, #6d28d9);
}

.production-card::before {
    background: linear-gradient(90deg, #f59e0b, #d97706, #b45309);
}

.off-duty-card::before {
    background: linear-gradient(90deg, #ef4444, #dc2626, #b91c1c);
}

.card-icon {
    font-size: 32px;
    opacity: 0.9;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
    min-width: 0;
}

.card-title {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}

.card-value {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-trend {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trend-up {
    color: #10b981;
    font-weight: 600;
    font-size: 12px;
}

.trend-down {
    color: #ef4444;
    font-weight: 600;
    font-size: 12px;
}

.trend-text {
    color: #94a3b8;
    font-size: 10px;
}

/* 地图内容区域 */
.map-content {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.map-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 6px;
    padding: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.map-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #e2e8f0;
}

.legend-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-color.green {
    background: #10b981;
}

.legend-color.yellow {
    background: #f59e0b;
}

.legend-color.red {
    background: #ef4444;
}

/* 右侧区域：人员统计和安全事件 */
.right-section {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

/* 人员统计区域 */
.personnel-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 安全事件区域 */
.safety-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.metrics-container,
.safety-container {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 6px;
    padding: 6px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.newness-chart-container,
.safety-chart-container {
    position: relative;
    flex: 1;
    margin-top: 8px;
    min-height: 0;
}

.newness-chart-container canvas,
.safety-chart-container canvas {
    max-width: 100%;
    max-height: 100%;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .dashboard-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px;
    }
    
    .left-section {
        grid-column: 1;
        grid-row: 1;
        flex-direction: row;
        gap: 8px;
    }
    
    .center-section {
        grid-column: 1;
        grid-row: 2;
    }
    
    .right-section {
        grid-column: 1;
        grid-row: 3;
        flex-direction: row;
        gap: 8px;
    }
    
    .equipment-section,
    .newness-section {
        flex: 1;
    }
    
    .personnel-section,
    .safety-section {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 6px;
        gap: 6px;
        grid-template-rows: auto auto auto auto;
    }
    
    .dashboard-section {
        padding: 8px;
    }
    
    .header-content {
        padding: 0 10px;
    }
    
    .header-left .logo h2 {
        font-size: 18px;
    }
    
    
    .console-btn {
        padding: 3px 6px;
        font-size: 10px;
        height: 28px;
    }
    
    .console-btn svg {
        width: 10px;
        height: 10px;
    }
    
    .time-display {
        font-size: 16px;
    }
    
    
    .date-display {
        font-size: 10px;
    }
    
    .section-header h3 {
        font-size: 16px;
    }
    
    .section-subtitle {
        font-size: 10px;
    }
    
    .left-section,
    .right-section {
        flex-direction: column;
        gap: 6px;
    }
    
    .card-icon {
        font-size: 24px;
    }
    
    .card-value {
        font-size: 20px;
    }
}

/* 移除动画效果以避免闪烁 */
.dashboard-section {
    opacity: 1;
    transform: none;
}

.stat-card {
    opacity: 1;
    transform: none;
}

/* 滚动条样式 - 隐藏横向滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 0px; /* 隐藏横向滚动条 */
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* 完全隐藏横向滚动条 */
*::-webkit-scrollbar:horizontal {
    height: 0px;
    display: none;
}

/* Firefox 滚动条样式 */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.5) rgba(15, 23, 42, 0.5);
}

/* 选项卡样式 */
.tab-container {
    width: 100%;
}

.tab-nav {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
    margin-bottom: 4px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.tab-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #e2e8f0;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 司机统计卡片样式 */
.driver-total-card {
    background: linear-gradient(135deg, #059669, #047857);
}

.driver-working-card {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}


/* 全屏地图布局样式 */
.fullscreen-map-container {
    position: relative;
    width: 100vw;
    height: calc(100vh - 60px);
    min-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 左侧数据面板 */
.left-data-panel {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    height: 80%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
    /* 确保面板内容可以滚动 */
    overflow: hidden;
}

/* 右侧数据面板 */
.right-data-panel {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    height: 80%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

/* 数据区域样式 */
.data-section {
    background: rgba(30, 41, 59, 0.95);
    border-radius: 12px;
    padding: 12px;
    /* 移除backdrop-filter以提升性能 */
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* 启用硬件加速 */
    transform: translateZ(0);
    will-change: transform;
}

.data-section .section-header {
    flex-shrink: 0;
    margin-bottom: 8px;
}

.data-section .section-header h3 {
    font-size: 14px;
    margin: 0 0 4px 0;
    color: #ffffff;
}

.data-section .section-subtitle {
    font-size: 10px;
    color: #94a3b8;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* 滚动提示样式 */
.scroll-hint {
    color: #3b82f6;
    font-size: 9px;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: pulse-hint 3s ease-in-out infinite;
}

@keyframes pulse-hint {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* 高亮数字样式 */
.highlight-number {
    font-size: 14px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin: 0 2px;
    display: inline-block;
    animation: pulse-glow 2s ease-in-out infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.total-highlight {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.working-highlight {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* 高亮数字动画 */
@keyframes pulse-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    }
}

.working-highlight {
    animation: pulse-glow-green 2s ease-in-out infinite;
}

@keyframes pulse-glow-green {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    }
}

/* 人员表格容器 */
.personnel-table-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* 人员表格样式 */
.personnel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #ffffff;
    table-layout: fixed;
    min-width: 225px;
    width: max-content;
}

.personnel-table thead {
    background: rgba(59, 130, 246, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.personnel-table th {
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 11px;
    white-space: nowrap;
}

/* 设置各列宽度 */
.personnel-table th:nth-child(1),
.personnel-table td:nth-child(1) {
    width: 90px;
    min-width: 90px;
}

.personnel-table th:nth-child(2),
.personnel-table td:nth-child(2) {
    width: 60px;
    min-width: 60px;
}

.personnel-table th:nth-child(3),
.personnel-table td:nth-child(3) {
    width: 60px;
    min-width: 60px;
}

.personnel-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.personnel-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* 人员类型列 */
.personnel-type {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 70px;
    white-space: nowrap;
}

.personnel-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.personnel-name {
    font-weight: 500;
    color: #ffffff;
    font-size: 12px;
    white-space: nowrap;
}

/* 人员数量列 */
.personnel-total,
.personnel-onsite,
.personnel-current-site {
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    min-width: 30px;
}

.personnel-total {
    color: #3b82f6;
}

.personnel-onsite {
    color: #10b981;
}

.personnel-current-site {
    color: #f59e0b;
}

/* 出勤率列 */
.personnel-rate {
    min-width: 80px;
}

.personnel-table .rate-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.personnel-table .rate-value {
    font-size: 10px;
    font-weight: 600;
    color: #f59e0b;
    text-align: center;
}

.personnel-table .rate-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.personnel-table .rate-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.data-section canvas {
    max-width: 100%;
    max-height: 100%;
}

/* 表格容器 */
/* 表格容器 */
.table-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* Excel格式表格容器 */
.excel-table-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    /* 确保滚动条可见 */
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.5) rgba(15, 23, 42, 0.3);
    /* 强制显示水平滚动条 */
    white-space: nowrap;
}

/* 为Excel表格容器添加自定义滚动条样式 */
.excel-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.excel-table-container::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 4px;
}

.excel-table-container::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.excel-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

.excel-table-container::-webkit-scrollbar-corner {
    background: rgba(15, 23, 42, 0.3);
}

/* 强制显示水平滚动条 */
.excel-table-container {
    overflow-x: scroll !important;
}

/* 确保表格内容不会被压缩 */
.excel-distribution-table {
    white-space: nowrap;
}

/* 分布表格容器 */
.distribution-table-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* Excel格式分布表格样式 */
.excel-distribution-table {
    border-collapse: collapse;
    font-size: 10px;
    color: #ffffff;
    table-layout: auto; /* 改为auto以支持max-content */
    min-width: 600px; /* 减少最小宽度，因为列宽度缩小了一半 */
    width: max-content; /* 让表格根据内容自动调整宽度 */
}

.excel-distribution-table thead {
    background: rgba(59, 130, 246, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.excel-distribution-table th {
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    color: #e2e8f0;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 9px;
    background: rgba(30, 41, 59, 0.8);
}

.excel-distribution-table .unit-header {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
}

.excel-distribution-table .category-header {
    font-size: 10px;
    font-weight: 700;
}

.excel-distribution-table .sub-header th {
    font-size: 8px;
    padding: 6px 2px;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
}

/* 为不同设备类型列设置合适的宽度 */
.excel-distribution-table .sub-header th:nth-child(2), /* 叉车 */
.excel-distribution-table .sub-header th:nth-child(3), /* 吊车 */
.excel-distribution-table .sub-header th:nth-child(4), /* 装载机 */
.excel-distribution-table .sub-header th:nth-child(5), /* 牵引车 */
.excel-distribution-table .sub-header th:nth-child(6), /* 高塔吊 */
.excel-distribution-table .sub-header th:nth-child(7), /* 自卸车 */
.excel-distribution-table .sub-header th:nth-child(8), /* 多功能装载机 */
.excel-distribution-table .sub-header th:nth-child(9), /* 挖掘机/推耙机 */
.excel-distribution-table .sub-header th:nth-child(10), /* 洒水车/抑尘车 */
.excel-distribution-table .sub-header th:nth-child(11), /* 吸污车/吸尘车 */
.excel-distribution-table .sub-header th:nth-child(12), /* 随车吊 */
.excel-distribution-table .sub-header th:nth-child(13), /* 高空车 */
.excel-distribution-table .sub-header th:nth-child(14), /* 推土机 */
.excel-distribution-table .sub-header th:nth-child(15) { /* 挖掘机 */
    width: 40px;
    min-width: 40px;
    max-width: none;
}

/* 对应数据列的宽度 */
.excel-distribution-table td:nth-child(2),
.excel-distribution-table td:nth-child(3),
.excel-distribution-table td:nth-child(4),
.excel-distribution-table td:nth-child(5),
.excel-distribution-table td:nth-child(6),
.excel-distribution-table td:nth-child(7),
.excel-distribution-table td:nth-child(8),
.excel-distribution-table td:nth-child(9),
.excel-distribution-table td:nth-child(10),
.excel-distribution-table td:nth-child(11),
.excel-distribution-table td:nth-child(12),
.excel-distribution-table td:nth-child(13),
.excel-distribution-table td:nth-child(14),
.excel-distribution-table td:nth-child(15) {
    width: 40px;
    min-width: 40px;
    max-width: none;
}

.excel-distribution-table td {
    padding: 6px 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    text-align: center;
    font-size: 9px;
    font-weight: 500;
}

.excel-distribution-table .unit-cell {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    font-weight: 600;
    font-size: 10px;
    border-right: 2px solid rgba(59, 130, 246, 0.3);
}

.excel-distribution-table .data-cell {
    background: rgba(15, 23, 42, 0.3);
    color: #ffffff;
    font-weight: 500;
    transition: all 0.2s ease;
}

.excel-distribution-table .data-cell:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.excel-distribution-table .data-cell.rate-100 {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    font-weight: 600;
}

.excel-distribution-table .data-cell.rate-high {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.excel-distribution-table .data-cell.rate-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.excel-distribution-table .data-cell.rate-low {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.excel-distribution-table .data-cell.empty-cell {
    background: rgba(0, 0, 0, 0.2);
    color: #6b7280;
}

.excel-distribution-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.excel-distribution-table tbody tr:hover .unit-cell {
    background: rgba(59, 130, 246, 0.2);
}

/* 分布表格样式 */
.distribution-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    color: #ffffff;
}

.distribution-table thead {
    background: rgba(59, 130, 246, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.distribution-table th {
    padding: 6px 4px;
    text-align: left;
    font-weight: 600;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 10px;
}

.distribution-table td {
    padding: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.distribution-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* 队伍名称列 */
.team-name {
    font-weight: 600;
    color: #3b82f6;
    text-align: center;
    min-width: 40px;
}

/* 设备类型列 */
.distribution-table .equipment-type {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.distribution-table .equipment-icon {
    font-size: 12px;
    flex-shrink: 0;
}

.distribution-table .equipment-name {
    font-weight: 500;
    color: #ffffff;
    font-size: 10px;
}

/* 设备数量列 */
.distribution-table .equipment-total,
.distribution-table .equipment-working {
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    min-width: 50px;
}

.distribution-table .equipment-total {
    color: #3b82f6;
}

.distribution-table .equipment-working {
    color: #10b981;
}

/* 使用率列 */
.distribution-table .equipment-rate {
    min-width: 70px;
}

.distribution-table .rate-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.distribution-table .rate-value {
    font-size: 9px;
    font-weight: 600;
    color: #f59e0b;
    text-align: center;
}

.distribution-table .rate-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.distribution-table .rate-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 设备表格列宽分配 */
.equipment-table th:nth-child(1),
.equipment-table td:nth-child(1) {
    width: 30%;
}

.equipment-table th:nth-child(2),
.equipment-table td:nth-child(2) {
    width: 20%;
}

.equipment-table th:nth-child(3),
.equipment-table td:nth-child(3) {
    width: 20%;
}

.equipment-table th:nth-child(4),
.equipment-table td:nth-child(4) {
    width: 30%;
}
.equipment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
    color: #ffffff;
    table-layout: fixed;
}

.equipment-table thead {
    background: rgba(59, 130, 246, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.equipment-table th {
    padding: 6px 4px;
    text-align: left;
    font-weight: 600;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 9px;
}

.equipment-table td {
    padding: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.equipment-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* 设备类型列 */
.equipment-type {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 80px;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.equipment-icon {
    font-size: 12px;
    flex-shrink: 0;
}

.equipment-name {
    font-weight: 500;
    color: #ffffff;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 设备数量列 */
.equipment-total,
.equipment-working {
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    min-width: 60px;
    max-width: 60px;
}

.equipment-total {
    color: #3b82f6;
}

.equipment-working {
    color: #10b981;
}

/* 作业率列 */
.equipment-rate {
    min-width: 80px;
    max-width: 80px;
}

.rate-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rate-value {
    font-size: 9px;
    font-weight: 600;
    color: #f59e0b;
    text-align: center;
}

.rate-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.rate-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 人员卡片样式 */
.data-section .personnel-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.data-section .stat-card {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.data-section .stat-card:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.data-section .stat-card .card-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.data-section .stat-card .card-content {
    flex: 1;
    min-width: 0;
}

.data-section .stat-card .card-title {
    font-size: 12px;
    color: #e2e8f0;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.data-section .stat-card .card-value {
    font-size: 18px;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

/* 地图图例覆盖层 */
.map-legend-overlay {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.95);
    border-radius: 12px;
    padding: 12px 16px;
    /* 移除backdrop-filter以提升性能 */
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 10;
    /* 启用硬件加速 */
    transform: translateX(-50%) translateZ(0);
    will-change: transform;
}

.legend-title {
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.map-legend {
    display: flex;
    gap: 16px;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #e2e8f0;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.legend-color.green {
    background: #10b981;
}

.legend-color.yellow {
    background: #f59e0b;
}

.legend-color.red {
    background: #ef4444;
}

/* 车辆信息弹窗样式 */
.vehicle-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 20px 24px;
    background: rgba(15, 23, 42, 0.8);
}

.vehicle-info-section {
    margin-bottom: 20px;
}

.vehicle-info-section h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

.info-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.status-working {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.performance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.performance-item {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.performance-label {
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 4px;
}

.performance-value {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.driver-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 12px;
}

.driver-avatar {
    font-size: 32px;
    flex-shrink: 0;
}

.driver-details {
    flex: 1;
}

.driver-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.driver-id,
.driver-status {
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 2px;
}

.modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: 1px solid #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 地图热区样式 */
.map-hotspots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hotspot {
    position: absolute;
    cursor: pointer;
    pointer-events: auto;
    z-index: 20;
}

.loader-hotspot {
    top: 30%;
    left: 45%;
}

.hotspot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hotspot-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    z-index: 21;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* 响应式设计调整 */
@media (max-width: 1400px) {
    .fullscreen-map-container {
        min-width: 1200px;
    }
    
    .left-data-panel {
        width: 320px;
    }
    
    .right-data-panel {
        width: 240px;
    }
}

@media (max-width: 1200px) {
    .fullscreen-map-container {
        min-width: 1000px;
    }
    
    .left-data-panel {
        width: 280px;
        left: 10px;
    }
    
    .right-data-panel {
        width: 200px;
        right: 10px;
    }
    
    .data-section {
        padding: 8px;
    }
    
    .data-section .section-header h3 {
        font-size: 12px;
    }
    
    .data-section .stat-card .card-title {
        font-size: 10px;
    }
    
    .data-section .stat-card .card-value {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .fullscreen-map-container {
        min-width: 800px;
    }
    
    .left-data-panel {
        width: 200px;
        left: 5px;
    }
    
    .right-data-panel {
        width: 160px;
        right: 5px;
    }
    
    .data-section {
        padding: 6px;
    }
    
    .data-section .section-header h3 {
        font-size: 10px;
    }
    
    .data-section .stat-card {
        padding: 6px;
        gap: 4px;
    }
    
    .data-section .stat-card .card-icon {
        font-size: 14px;
    }
    
    .data-section .stat-card .card-title {
        font-size: 9px;
    }
    
    .data-section .stat-card .card-value {
        font-size: 14px;
    }
    
    .tab-btn {
        padding: 4px 6px;
        font-size: 9px;
    }
    
    .map-legend-overlay {
        top: 10px;
        padding: 8px 12px;
    }
    
    .legend-title {
        font-size: 12px;
    }
    
    .map-legend {
        gap: 8px;
    }
    
    .legend-item {
        font-size: 10px;
    }
}
