/* 员工管理页面样式 */
.project-workers-container {
    padding: 20px;
}

/* 页面标题样式 */
.content-header {
    margin-bottom: 20px;
}

.content-header h2 {
    font-size: 24px;
    color: #303133;
    margin: 0;
    font-weight: 500;
    position: relative;
    padding-left: 12px;
}

.content-header h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 4px;
    background: #409EFF;
    border-radius: 2px;
}

/* 员工统计卡片样式 */
.worker-stats-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.worker-stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 24px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.worker-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.worker-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.worker-stats-card:hover::before {
    opacity: 1;
}

.worker-stats-card.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

/* 不同类型卡片的颜色 */
.worker-stats-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.worker-stats-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.worker-stats-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.worker-stats-card-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

.worker-stats-card-text {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* 搜索工具栏样式 */
.search-toolbar {
    background-color: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
}

/* 表格样式 */
.project-workers-container .el-table {
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
}

/* 分页器样式 */
.project-workers-container .pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* 对话框表单样式 */
.project-workers-container .el-dialog__body {
    padding: 20px 40px;
}

.project-workers-container .el-form-item {
    margin-bottom: 20px;
}

/* 按钮间距 */
.project-workers-container .el-button + .el-button {
    margin-left: 10px;
}

/* 表格操作按钮样式 */
.project-workers-container .el-table .el-button--small {
    padding: 6px 12px;
    font-size: 12px;
}

/* 加载状态样式 */
.project-workers-container .el-loading-mask {
    background-color: rgba(255,255,255,0.8);
}

/* 员工详情样式 */
.worker-detail {
    padding: 20px 0;
}

.worker-detail .el-descriptions {
    margin-top: 10px;
}

/* 状态标签样式 */
.project-workers-container .el-tag {
    font-size: 12px;
    padding: 4px 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .worker-stats-cards {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .worker-stats-card {
        min-width: calc(50% - 4px);
        height: 80px;
        padding: 12px;
    }
    
    .worker-stats-card-number {
        font-size: 20px;
    }
    
    .worker-stats-card-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .project-workers-container {
        padding: 10px;
    }
    
    .worker-stats-card {
        min-width: 100%;
        height: 70px;
        padding: 10px;
    }
    
    .search-toolbar {
        padding: 12px 16px;
    }
}