/* 人力资源看板样式 - 紫红色主题 - 高对比度版本 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #4c1d95 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.4);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(168, 85, 247, 0.5);
}

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

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

.header-center h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(168, 85, 247, 0.8), 0 0 20px rgba(168, 85, 247, 0.4);
}

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

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

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

.hr-status {
    font-size: 14px;
    color: #f3e8ff;
}

.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.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(168, 85, 247, 0.4);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.4);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(168, 85, 247, 0.3);
    border-bottom: 1px solid rgba(168, 85, 247, 0.5);
}

.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.15);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #ffffff;
}

.tab.active, .tab:hover {
    background: rgba(168, 85, 247, 0.6);
    color: #ffffff;
}

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

.control-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    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(168, 85, 247, 0.6);
}

/* 人员总览 */
.staff-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(#a855f7 0deg, #a855f7 349deg, rgba(255,255,255,0.2) 349deg);
    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: #a855f7;
    margin-bottom: 5px;
}

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

.staff-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.12);
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

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

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

/* 人员分类 */
.staff-categories {
    display: flex;
    gap: 20px;
}

.category-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

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

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

/* 组织架构 */
.organization-overview {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.org-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.4);
    flex: 1;
}

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

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

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

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

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

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

.department-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

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

.dept-count {
    min-width: 80px;
    font-size: 14px;
    color: #f3e8ff;
}

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

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

/* 招聘管理 */
.recruitment-overview {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.recruitment-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.4);
    flex: 1;
}

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

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

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

.progress-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

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

.position-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-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #7c3aed);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #a855f7;
    min-width: 40px;
}

.position-status {
    font-size: 12px;
    color: #10b981;
    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.12);
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.4);
    flex: 1;
}

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

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

.program-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

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

.program-participants {
    min-width: 60px;
    font-size: 14px;
    color: #f3e8ff;
}

.program-completion {
    min-width: 40px;
    font-size: 14px;
    color: #a855f7;
}

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

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

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

/* 绩效考核 */
.performance-overview {
    display: flex;
    gap: 30px;
    align-items: center;
}

.performance-distribution {
    flex: 1;
}

.distribution-chart {
    height: 300px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.performance-details {
    min-width: 300px;
}

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

.performance-levels {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.level-name {
    min-width: 60px;
    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%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.level-fill.excellent {
    background: #10b981;
}

.level-fill.good {
    background: #3b82f6;
}

.level-fill.average {
    background: #f59e0b;
}

.level-fill.poor {
    background: #ef4444;
}

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

.level-percent {
    min-width: 40px;
    font-size: 14px;
    color: #a855f7;
    text-align: right;
}

/* 薪酬福利 */
.compensation-overview {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.compensation-stats {
    display: flex;
    gap: 20px;
}

.compensation-stat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.stat-info {
    flex: 1;
}

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

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

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

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

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

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

.benefit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

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

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

.benefit-amount {
    font-size: 14px;
    color: #a855f7;
    font-weight: 600;
}

/* 员工关怀 */
.care-overview {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.care-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.4);
    flex: 1;
}

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

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

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

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

.activity-frequency {
    min-width: 60px;
    font-size: 14px;
    color: #f3e8ff;
}

.activity-participation {
    min-width: 40px;
    font-size: 14px;
    color: #10b981;
}

.activity-rating {
    min-width: 50px;
    font-size: 14px;
    color: #a855f7;
    text-align: right;
}

/* 数据分析 */
.analytics-overview {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.kpi-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

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

.kpi-info {
    flex: 1;
}

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

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

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

.analytics-chart {
    height: 200px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .row-1, .row-2, .row-3, .row-4 {
        grid-template-columns: 1fr;
    }
    
    .header-center h1 {
        font-size: 28px;
    }
    
    .staff-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .staff-categories {
        flex-direction: column;
    }
    
    .performance-overview {
        flex-direction: column;
    }
    
    .analytics-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;
    }
    
    .staff-numbers {
        grid-template-columns: 1fr;
    }
    
    .org-stats {
        flex-direction: column;
    }
    
    .recruitment-stats {
        flex-direction: column;
    }
    
    .training-stats {
        flex-direction: column;
    }
    
    .compensation-stats {
        flex-direction: column;
    }
    
    .care-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(168, 85, 247, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.8);
}