/* 数据大屏专用样式 - 一屏显示所有数据 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 腾讯云配色 */
    --primary-blue: #006eff;
    --secondary-blue: #0052cc;
    --light-blue: #e6f3ff;
    --dark-blue: #003d99;
    --accent-blue: #1890ff;
    
    /* 大屏专用色彩 */
    --bg-dark: #0a0e1a;
    --bg-panel: #1a1f2e;
    --bg-card: #252a3a;
    --text-primary: #ffffff;
    --text-secondary: #8c9aaf;
    --border-color: #2d3748;
    
    /* 状态色 */
    --success-color: #00d4aa;
    --warning-color: #ffb020;
    --error-color: #ff6b6b;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    
    /* 字体 */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f2e 100%);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

.dashboard {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: radial-gradient(ellipse at center, rgba(0, 110, 255, 0.1) 0%, transparent 70%);
}

/* 日期筛选区域 */
.date-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.filter-label {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.filter-buttons {
    display: flex;
    gap: 6px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 110, 255, 0.3);
}

.selected-date {
    color: #fff;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    min-width: 80px;
    text-align: center;
}

/* 顶部标题栏 */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--bg-panel);
    border-bottom: 2px solid var(--primary-blue);
    box-shadow: 0 2px 20px rgba(0, 110, 255, 0.3);
}

.title h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    text-shadow: 0 0 10px rgba(0, 110, 255, 0.5);
    margin-bottom: 5px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.status {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 主要内容区域 */
.dashboard-main {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 12px;
    padding: 12px;
    flex: 1;
    overflow: hidden;
}

/* 面板通用样式 */
.left-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    flex: 0 0 280px; /* 缩小左侧面板宽度 */
}

.center-panel, .right-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

/* 区块标题 */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 核心指标区域 */
.metrics-section {
    background: var(--bg-panel);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 110, 255, 0.3);
}

.metric-icon {
    font-size: 20px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 110, 255, 0.2);
    border-radius: 50%;
}

.metric-info {
    flex: 1;
}

.metric-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.metric-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.metric-unit {
    font-size: 10px;
    color: var(--text-secondary);
}

/* 公司业绩区域 */
.company-section {
    background: var(--bg-panel);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    flex: 1;
}

.company-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.company-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.company-item:hover {
    background: rgba(0, 110, 255, 0.1);
}

.company-item .rank {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 12px;
}

.rank-1 .rank {
    background: var(--gold);
    color: #000;
}

.rank-2 .rank {
    background: var(--silver);
    color: #000;
}

.rank-3 .rank {
    background: var(--bronze);
    color: #fff;
}

.company-info {
    flex: 1;
}

.company-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.company-profit {
    font-size: 11px;
    color: var(--text-secondary);
}

.company-trend {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.company-trend.positive {
    background: rgba(0, 212, 170, 0.2);
    color: var(--success-color);
}

.company-trend.negative {
    background: rgba(255, 107, 107, 0.2);
    color: var(--error-color);
}

.company-trend.neutral {
    background: rgba(140, 154, 175, 0.2);
    color: var(--text-secondary);
}

/* 账号平台分布 - 紧凑横向布局 */
.platform-section {
    background: var(--bg-panel);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    flex: 1;
}

.platform-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border-left: 2px solid var(--primary-blue);
    font-size: 11px;
}

.platform-item:hover {
    background: rgba(0, 110, 255, 0.1);
    transform: translateX(2px);
}

.platform-icon {
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 110, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.platform-info {
    flex: 1;
    min-width: 0;
}

.platform-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.platform-count {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 700;
}

.platform-detail {
    font-size: 9px;
    color: var(--text-secondary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.platform-percent {
    font-size: 10px;
    font-weight: 600;
    color: var(--success-color);
    background: rgba(0, 212, 170, 0.15);
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 4px;
    flex-shrink: 0;
}

.platform-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 6px 8px;
    background: var(--bg-card);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.summary-label {
    font-size: 9px;
    color: var(--text-secondary);
}

.summary-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-blue);
}

/* 员工业绩区域 */
.employee-section {
    background: var(--bg-panel);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    height: 100%;
    overflow-y: auto;
}

.departments-container {
    display: flex;
    gap: 20px;
    height: calc(100% - 40px);
}

.department-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.department-title {
    color: #1890ff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.1), rgba(24, 144, 255, 0.05));
    border-radius: 8px;
    border-left: 4px solid #1890ff;
    text-align: center;
}

.employee-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.employee-list::-webkit-scrollbar {
    width: 4px;
}

.employee-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.employee-list::-webkit-scrollbar-thumb {
    background: rgba(24, 144, 255, 0.5);
    border-radius: 2px;
}

.employee-list::-webkit-scrollbar-thumb:hover {
    background: rgba(24, 144, 255, 0.7);
}

.employee-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 4px;
}

.employee-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: rgba(24, 144, 255, 0.3);
    transition: all 0.3s ease;
}

.employee-item:hover {
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.15), rgba(24, 144, 255, 0.08));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 144, 255, 0.2);
}

.employee-item:hover::before {
    background: #1890ff;
    width: 6px;
}

.employee-item.top-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.3);
}

.employee-item.top-1::before {
    background: var(--gold);
    width: 6px;
}

.employee-item.top-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.1));
    border-color: rgba(192, 192, 192, 0.3);
}

.employee-item.top-2::before {
    background: var(--silver);
    width: 6px;
}

.employee-item.top-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.1));
    border-color: rgba(205, 127, 50, 0.3);
}

.employee-item.top-3::before {
    background: var(--bronze);
    width: 6px;
}

.employee-rank {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 11px;
}

.top-1 .employee-rank {
    background: var(--gold);
    color: #000;
}

.top-2 .employee-rank {
    background: var(--silver);
    color: #000;
}

.top-3 .employee-rank {
    background: var(--bronze);
    color: #fff;
}

.employee-info {
    flex: 1;
}

.employee-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1px;
}

.employee-team {
    font-size: 10px;
    color: var(--text-secondary);
}

.employee-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-blue);
}

/* 团队业绩区域 */
.team-section {
    background: var(--bg-panel);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    flex: 1;
}

.team-chart {
    height: 100px;
    margin-bottom: 8px;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: var(--bg-card);
    border-radius: 4px;
    font-size: 11px;
}

.team-name {
    color: var(--text-primary);
    font-weight: 500;
}

.team-value {
    color: var(--primary-blue);
    font-weight: 600;
}

/* 部门对比区域 */
.department-section {
    background: var(--bg-panel);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    flex: 1;
}

.department-chart {
    height: 80px;
    margin-bottom: 8px;
}

.department-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dept-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    background: var(--bg-card);
    border-radius: 6px;
}

.dept-name {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.dept-value {
    font-size: 12px;
    color: var(--primary-blue);
    font-weight: 700;
}

.dept-percent {
    font-size: 11px;
    color: var(--text-secondary);
}

/* 底部状态栏 */
.dashboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-card);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* 响应式调整 */
@media (max-width: 1600px) {
    .dashboard-main {
        grid-template-columns: 0.9fr 1.2fr 0.9fr;
        gap: 15px;
        padding: 15px;
    }
    
    .section-title {
        font-size: 14px;
    }
    
    .metric-value {
        font-size: 16px;
    }
}

@media (max-width: 1200px) {
    .dashboard-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
        padding: 10px;
    }
    
    .left-panel, .center-panel, .right-panel {
        flex-direction: row;
        gap: 10px;
    }
    
    .employee-section {
        height: auto;
        max-height: 500px;
    }
    
    .departments-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .department-column {
        flex: none;
    }
    
    .employee-list {
        max-height: 200px;
    }
}
