/* 弹窗样式 */
.job-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.job-modal-overlay.active {
    display: flex;
}

.job-modal-container {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.job-modal-header {
    background-color: #0A2463;
    color: white;
    padding: 20px 30px;
    position: relative;
}

.job-modal-header h2 {
    font-size: 22px;
    display: flex;
    align-items: center;
}

.job-modal-header h2 i {
    margin-right: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.job-modal-content {
    padding: 30px;
}

/* 职位信息确认 */
.position-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #D4AF37;
}

.position-info h3 {
    color: #0A2463;
    margin-bottom: 10px;
    font-size: 18px;
}

.position-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
}

.detail-item i {
    color: #D4AF37;
    margin-right: 8px;
    width: 20px;
}

/* 简历选择区域 */
.jobmodal-section-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #0A2463;
}

.jobmodal-section-title i {
    margin-right: 10px;
    color: #D4AF37;
}

.resume-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 20px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin-top: 3px;
    margin-right: 12px;
    accent-color: #0A2463;
}

.option-content {
    flex: 1;
}

.option-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.option-desc {
    color: #666;
    font-size: 14px;
}

/* 简历列表 */
.resume-list {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    background-color: #fcfcfc;
}

.resume-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.resume-item:last-child {
    border-bottom: none;
}

.resume-item:hover {
    background-color: #f0f5ff;
}

.resume-item.selected {
    background-color: #e8f0fe;
    border-left: 3px solid #0A2463;
}

.resume-icon {
    color: #0A2463;
    margin-right: 15px;
    font-size: 18px;
}

.resume-details {
    flex: 1;
}

.resume-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.resume-info {
    font-size: 13px;
    color: #666;
}

/* 文件上传区域 */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    margin-top: 15px;
}

.upload-area:hover {
    border-color: #0A2463;
    background-color: #f8faff;
}

.upload-area.drag-over {
    border-color: #D4AF37;
    background-color: #fff9e6;
}

.upload-icon {
    font-size: 40px;
    color: #0A2463;
    margin-bottom: 15px;
}

.upload-text {
    margin-bottom: 15px;
    color: #333;
}

.upload-text span {
    color: #0A2463;
    font-weight: 600;
}

.file-input {
    display: none;
}

.file-btn {
    background-color: #0A2463;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    display: inline-block;
}

.file-btn:hover {
    background-color: #133a9c;
}

.file-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f0f7ff;
    border-radius: 4px;
    display: none;
}

.file-info.show {
    display: block;
}

.file-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-file {
    color: #ff6b6b;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* 按钮区域 */
.job-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.action-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.cancel-btn {
    background-color: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

.cancel-btn:hover {
    background-color: #e0e0e0;
}

.submit-btn {
    background-color: #0A2463;
    color: white;
    border: none;
}

.submit-btn:hover {
    background-color: #133a9c;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .job-modal-container {
        max-width: 95%;
    }
    
    .job-modal-content {
        padding: 20px;
    }
    
    .position-details {
        grid-template-columns: 1fr;
    }
    
    .job-modal-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .demo-container {
        padding: 20px;
    }
    
    .job-modal-header {
        padding: 15px 20px;
    }
    
    .job-modal-content {
        padding: 15px;
    }
    
    .upload-area {
        padding: 20px;
    }
}