/* 职位详情页面专用样式 */
.job-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.job-header {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-primary);
    margin-bottom: 30px;
    border: 1px solid rgba(235, 102, 48, 0.1);
}

.job-title-main {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.job-meta-main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.meta-badge {
    background: rgba(235, 102, 48, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(235, 102, 48, 0.2);
}

.salary-highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.job-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.job-main {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-primary);
    overflow: hidden;
}

.job-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-section {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.content-section:last-child {
    border-bottom: none;
}

/* 职位详情页专用section-title样式 */
.job-details-page .section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-details-page .section-title i {
    color: var(--primary-color);
}

.apply-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-primary);
    text-align: center;
    border: 1px solid rgba(235, 102, 48, 0.1);
}

.contact-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-description {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-subtitle {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
}

.apply-btn-large {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
}

.apply-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
    color: white;
    text-decoration: none;
}

.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: var(--primary-color);
    width: 16px;
}

.related-jobs {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-primary);
}

.related-job-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.related-job-item:last-child {
    border-bottom: none;
}

.related-job-item:hover {
    background: #fafafa;
    margin: 0 -15px;
    padding: 15px;
    border-radius: 8px;
}

.related-job-title {
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    margin-bottom: 5px;
    display: block;
}

.related-job-meta {
    font-size: 0.85rem;
    color: #666;
}

.related-jobs-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.more-jobs-link {
    text-align: center;
    margin-top: 15px;
}

.more-jobs-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.more-jobs-btn:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* ===== 应聘申请弹窗样式 ===== */
.application-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(0px);
}

.application-modal.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(5px);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
}

.application-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* 应聘表单样式 */
.application-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.application-form .form-group {
    margin-bottom: 20px;
}

.application-form .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.application-form .form-label i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.application-form .required {
    color: #e74c3c;
}

.application-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.application-form .form-control:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(235, 102, 48, 0.1);
    outline: none;
}

.application-form .form-control::placeholder {
    color: #999;
    opacity: 0.8;
}

.application-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
    font-family: inherit;
}

.application-form select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* 表单操作按钮 */
.application-form .form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.application-form .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.application-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.application-form .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #B8441A 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 102, 48, 0.3);
}

.application-form .btn-secondary {
    background: #6c757d;
    color: white;
}

.application-form .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.application-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 滚动条样式 */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .job-content {
        grid-template-columns: 1fr;
    }
    
    .job-meta-main {
        flex-direction: column;
        gap: 10px;
    }
    
    .job-title-main {
        font-size: 1.5rem;
    }
    
    .job-header,
    .content-section {
        padding: 20px;
    }
    
    /* 弹窗移动端适配 */
    .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 2.5vh auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 20px;
        max-height: calc(95vh - 90px);
    }
    
    .application-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .application-form .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .application-form .btn {
        min-width: 100%;
        justify-content: center;
    }
}

