/* 组件专用样式 */

/* 人员卡片 */
.personnel-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.personnel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.personnel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.personnel-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.personnel-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.personnel-role {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.personnel-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

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

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

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

.personnel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.personnel-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: #eff6ff;
    color: #2563eb;
}

/* 时间线组件 */
.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e5e7eb;
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #10b981;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #10b981;
}

.timeline-item.pending::before {
    background-color: #f59e0b;
    box-shadow: 0 0 0 2px #f59e0b;
}

.timeline-item.completed::before {
    background-color: #6b7280;
    box-shadow: 0 0 0 2px #6b7280;
}

.timeline-date {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.timeline-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 13px;
    color: #6b7280;
}

/* 步骤条 */
.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e5e7eb;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 16px;
    color: #9ca3af;
    transition: all 0.3s;
}

.step.active .step-icon {
    border-color: #10b981;
    color: #10b981;
}

.step.completed .step-icon {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #6b7280;
}

.step.active .step-label {
    color: #10b981;
    font-weight: 600;
}

/* 模态框动画 */
.modal-enter {
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 数据卡片 */
.data-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.data-card-title {
    font-weight: 600;
    color: #1f2937;
}

.data-card-value {
    font-size: 32px;
    font-weight: 700;
    color: #059669;
}

.data-card-change {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.change-up {
    color: #10b981;
}

.change-down {
    color: #ef4444;
}

/* 筛选器 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 8px;
}

.table-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background-color: #f3f4f6;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.table-action-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.table-action-btn.delete:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

/* 悬浮提示 */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 6px 12px;
    background-color: #1f2937;
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}
