/* 任务界面专用样式 */
.pc-layout{
    max-width:none;
}
/* 任务布局容器 */
.task-layout {
    width: 90%;
    max-width: 1200px;
    min-width: 800px;
}

@media screen and (max-width: 1024px) {
    .task-layout {
        width: 95%;
        min-width: 320px;
    }
}

/* 任务容器 */
.task-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 50px);
    overflow-y: auto;
    gap: 20px;
}

.upload-area{
    max-height: 300px;
    overflow-y: auto;
}

.upload-disabled-wrapper {
    position: relative;
    cursor: not-allowed;
}

.upload-disabled-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.7);
    cursor: not-allowed;
    z-index: 1;
}

/* 步骤头部 */
.step-header {
    text-align: center;
    margin-bottom: 24px;
}

.step-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #333;
}

.step-description {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 步骤指示器 */
.step-indicator {
    background: #e6f7ff;
    color: #1890ff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

/* 评分标准输入区域 */
.criteria-input-section {
    margin-bottom: 20px;
}

.criteria-input-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

/* 任务信息展示区域 */
.task-info-section {
    flex-shrink: 0;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media screen and (max-width: 768px) {
    .info-cards {
        grid-template-columns: 1fr;
    }
}

.info-card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fafafa;
    cursor: pointer;
    transition: background-color 0.2s;
}

.card-header:hover {
    background: #f0f0f0;
}

.card-title {
    font-weight: 500;
    color: #333;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: #1890ff;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.toggle-btn:hover {
    background: rgba(24, 144, 255, 0.1);
}

.card-content {
    padding: 16px;
    border-top: 1px solid #e8e8e8;
    max-height: 120px;
    overflow-y: auto;
}

.card-content p {
    margin: 0;
    line-height: 1.6;
    color: #666;
    font-size: 14px;
}

/* 卡片预览区域 */
.card-preview {
    padding: 12px 16px;
    border-top: 1px solid #e8e8e8;
}

.preview-text {
    margin: 0;
    line-height: 1.5;
    color: #666;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 抽屉内容样式 */
.drawer-text-content {
    line-height: 1.6;
    color: #333;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 上传区域 */
.upload-section {
    flex-shrink: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.section-header-side {
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    color: #595959;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.refresh-btn:hover {
    color: #1890ff;
    border-color: #1890ff;
    background: #e6f4ff;
}

.refresh-btn:disabled {
    color: #bfbfbf;
    border-color: #d9d9d9;
    background: #f5f5f5;
    cursor: not-allowed;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.refresh-btn .rotating {
    animation: spin 0.8s linear infinite;
}

.export-actions {
    height: 32px;
    display: flex;
    border-radius: 6px;
    background-color: white;
    border: 1px solid #1890ff;
    overflow: hidden;
    margin-right: 16px;
    color: #1890ff;
    font-size: 14px;
    font-weight: bold;
}

.export-btn {
    width: 128px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.export-btn:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

.export-divide {
    width: 1px;
    height: 100%;
    background-color: #1890ff;
}

.section-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.count-badge {
    background: #1890ff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.analyze-btn {
    padding: 8px 16px;
    background: #52c41a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
}

.analyze-btn:hover {
    background: #73d13d;
}

.analyze-btn:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
}

/* 简历表格区域 */
.resume-table-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.table-container {
    flex: 1;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: white;
    overflow-x: auto;
    min-height: 400px;
}

.resume-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.resume-table th {
    background: #fafafa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #e8e8e8;
}

.resume-table td {
    padding: 12px 16px;
    vertical-align: middle;
    height: 60px;
}

.resume-table tr {
    border-bottom: 1px solid #f0f0f0;
    height: 60px;
}
.resume-table tr:hover {
    background: #f9f9f9;
}

/* 表格单元格样式 */
.filename-cell {
    max-width: 200px;
    height: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filename-cell span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.talent-info-cell {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.score-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
}

.score-badge.excellent {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.score-badge.good {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.score-badge.average {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.score-badge.below-average {
    background: #fff1f0;
    color: #f5222d;
    border: 1px solid #ffa39e;
}

.score-badge.poor {
    background: #f5f5f5;
    color: #8c8c8c;
    border: 1px solid #d9d9d9;
}


.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
}

.status-badge.status-pending {
    background: #f0f0f0;
    color: #8c8c8c;
    border: 1px solid #d9d9d9;
}

.status-badge.status-analyzing {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.status-badge.status-completed {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.status-badge.status-failed {
    background: #fff1f0;
    color: #f5222d;
    border: 1px solid #ffa39e;
}

.detail-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-content {
    cursor: pointer;
    transition: color 0.2s;
}

.detail-content:hover {
    color: #40a9ff;
}

.action-cell {
    display: flex;
    gap: 8px;
    position: relative;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.action-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f0f0f0;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #595959;
    transition: all 0.2s;
    min-width: 60px;
    justify-content: center;
}

.dropdown-trigger:hover {
    background: #e6e6e6;
    border-color: #bfbfbf;
    color: #333;
}

.dropdown-trigger svg {
    transition: transform 0.2s;
    margin-left: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 9999;
    min-width: 120px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-top: 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f5f5f5;
    white-space: nowrap;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item.danger {
    color: #f5222d;
}

.dropdown-item.danger:hover {
    background: #fff1f0;
    color: #cf1322;
}

.dropdown-item svg {
    flex-shrink: 0;
}

.view-btn {
    background: #e6f7ff;
    color: #1890ff;
}

.view-btn:hover {
    background: #bae7ff;
}

.delete-btn {
    background: #fff1f0;
    color: #f5222d;
}

.delete-btn:hover {
    background: #ffccc7;
}

/* 空状态 */
.empty-row {
    text-align: center;
    padding: 40px 20px !important;
    border-bottom: none !important;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #999;
}

.empty-state p {
    margin: 0;
}

.empty-hint {
    font-size: 12px;
}

/* 响应式表格 */
@media screen and (max-width: 768px) {
    .task-container {
        padding: 16px;
        gap: 16px;
    }
    
    .resume-table {
        font-size: 12px;
    }
    
    .resume-table th,
    .resume-table td {
        padding: 8px 12px;
    }
    
    .filename-cell,
    .talent-info-cell,
    .detail-cell {
        max-width: 120px;
    }
    
    .action-cell {
        flex-direction: column;
        gap: 4px;
        align-items: center;
        justify-content: center;
        min-width: 80px;
        height: 100%;
    }
    
    .dropdown-trigger {
        min-width: 50px;
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* 评分标准表格样式 */
.criteria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.criteria-header label {
    margin: 0;
    font-weight: 500;
    color: #333;
}

.criteria-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.total-weight {
    font-size: 14px;
    color: #52c41a;
    font-weight: 500;
}

.total-weight.invalid {
    color: #f5222d;
}

.add-criteria-btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: end;
}

.add-criteria-btn {
    padding: 6px 12px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.add-criteria-btn:hover {
    background: #40a9ff;
}

.criteria-table-container {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    background: white;
    margin-bottom: 12px;
}

.criteria-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.criteria-table th {
    background: #fafafa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    font-size: 13px;
    vertical-align: middle;
}

.criteria-table th:last-child {
    border-right: none;
}

.criteria-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    vertical-align: middle;
}

.criteria-table td:last-child {
    border-right: none;
}

.criteria-table tr:last-child td {
    border-bottom: none;
}

.criteria-name-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.criteria-name-input:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.criteria-value-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    text-align: center;
    box-sizing: border-box;
}

.criteria-value-input:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.criteria-description-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.criteria-description-input:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.remove-criteria-btn {
    width: 28px;
    height: 28px;
    background: #fff1f0;
    color: #f5222d;
    border: 1px solid #ffa39e;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin: 0 auto;
}

.remove-criteria-btn:hover:not(:disabled) {
    background: #ffccc7;
    border-color: #ff7875;
}

.remove-criteria-btn:disabled {
    background: #f5f5f5;
    color: #bfbfbf;
    border-color: #d9d9d9;
    cursor: not-allowed;
}

.criteria-warning {
    color: #fa8c16;
    font-size: 13px;
    margin: 8px 0 0 0;
    padding: 8px 12px;
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .criteria-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .criteria-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .criteria-table th,
    .criteria-table td {
        padding: 10px 8px;
        font-size: 12px;
        vertical-align: middle;
    }
    
    .criteria-table th:nth-child(1) { width: 20%; }
    .criteria-table th:nth-child(2) { width: 15%; }
    .criteria-table th:nth-child(3) { width: 55%; }
    .criteria-table th:nth-child(4) { width: 10%; }
    
    .criteria-name-input,
    .criteria-value-input,
    .criteria-description-input {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .criteria-description-input {
        min-height: 60px;
    }
    
    .remove-criteria-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}

/* 表格排序样式 */
.sortable-header {
    cursor: pointer !important;
    user-select: none;
    transition: background-color 0.2s;
}

.sortable-header:hover {
    background: #f0f0f0 !important;
}

.sortable-header.active {
    background: #e6f7ff !important;
    color: #1890ff;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.sort-icons {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-left: 8px;
    opacity: 0.6;
}

.sortable-header:hover .sort-icons {
    opacity: 1;
}

.sort-icon {
    transition: color 0.2s;
    color: #bfbfbf;
}

.sort-icon.active {
    color: #1890ff;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    margin-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.page-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
}

.page-btn:hover:not(:disabled) {
    border-color: #40a9ff;
    color: #40a9ff;
    background: #f6f8ff;
}

.page-btn:disabled {
    background: #f5f5f5;
    border-color: #d9d9d9;
    color: #bfbfbf;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #666;
    padding: 0 16px;
    display: flex;
    align-items: center;
    height: 36px;
    white-space: nowrap;
}

/* 移动端分页适配 */
@media screen and (max-width: 768px) {
    .pagination {
        gap: 12px;
        padding: 16px 0;
        flex-wrap: wrap;
    }
    
    .page-btn {
        min-width: 70px;
        padding: 6px 12px;
        font-size: 13px;
        height: 32px;
    }
    
    .page-info {
        font-size: 13px;
        padding: 0 8px;
        height: 32px;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

/* 任务管理相关样式 */
.step-indicator.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.step-indicator.clickable:hover {
    background: #bae7ff;
    color: #0958d9;
    transform: translateY(-1px);
}

/* 任务历史抽屉内容 */
.task-history-drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.task-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.loading-tasks,
.empty-tasks {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
}

.loading-spinner-small {
    width: 24px;
    height: 24px;
    border: 2px solid #f0f0f0;
    border-top: 2px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    margin-bottom: 8px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.task-item:hover {
    border-color: #1890ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.task-item.active {
    border-color: #1890ff;
    background: #f6ffed;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
}

.task-info {
    flex: 1;
    min-width: 0;
}

.task-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.task-id {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.task-time {
    font-size: 12px;
    color: #666;
}

.task-job-info {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: break-word;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.resume-count {
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

.current-task-indicator {
    flex-shrink: 0;
    margin-left: 12px;
    color: #52c41a;
}

.current-task-indicator svg {
    width: 16px;
    height: 16px;
}


/* 响应式设计 */
@media screen and (max-width: 768px) {
    .task-item {
        padding: 12px;
    }
    
    .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .task-job-info {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
}

.pcm-jlsx-card {
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.pcm-jlsx-card-header {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #e9ecef;
}

.pcm-jlsx-card-body {
    padding: 20px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.out-important-conditions {
    margin-top: 8px;
    color: #666;
    font-size: 12px;
}
