/* ===== 招聘页面专用样式 - 优化版 ===== */

/* 招聘概览样式 */
.jobs-overview {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.jobs-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #4a90e2, #2c5aa0);
}

.overview-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.overview-content > h2 {
    font-size: 2.8rem;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.overview-content > p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.benefit-item:nth-child(1) {
    border-top-color: #2c5aa0;
}
.benefit-item:nth-child(2) {
    border-top-color: #4a90e2;
}
.benefit-item:nth-child(3) {
    border-top-color: #28a745;
}
.benefit-item:nth-child(4) {
    border-top-color: #ff6b6b;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.benefit-item h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.recruitment-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #4a90e2);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #2c5aa0;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 招聘筛选样式 */
.job-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    border: 2px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(44, 90, 160, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover {
    color: #2c5aa0;
    border-color: #2c5aa0;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    border-color: #2c5aa0;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* 职位网格样式 */
.jobs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.job-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f1f3f5;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #4a90e2);
}

.job-card.urgent::before {
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
}

.job-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.job-card.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* 职位头部样式 */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.job-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5aa0;
    flex: 1;
    line-height: 1.3;
}

.job-type {
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.job-type.internship {
    background: #f3e5f5;
    color: #7b1fa2;
}

.job-type.research {
    background: #e8f5e8;
    color: #2e7d32;
}

/* 紧急招聘标签 */
.urgent-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
    box-shadow: 0 3px 8px rgba(255, 107, 107, 0.4);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 3px 8px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(255, 107, 107, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 3px 8px rgba(255, 107, 107, 0.4);
    }
}

/* 职位元数据样式 */
.job-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.job-meta p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-meta strong {
    color: #333;
    min-width: 80px;
}

.deadline {
    color: #dc3545 !important;
    font-weight: 600;
}

.salary-range {
    color: #28a745 !important;
    font-weight: 600;
}

/* 职位描述样式 */
.job-description, .job-requirements, .job-benefits {
    margin-bottom: 1.5rem;
}

.job-description h4, .job-requirements h4, .job-benefits h4 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-description h4::before, .job-requirements h4::before {
    content: '•';
    color: #4a90e2;
    font-size: 1.5rem;
}

.job-benefits h4::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
}

.job-description ul, .job-requirements ul, .job-benefits ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.job-description li, .job-requirements li, .job-benefits li {
    padding: 0.5rem 0;
    padding-left: 1.8rem;
    position: relative;
    color: #555;
    line-height: 1.6;
    border-bottom: 1px solid #f1f3f5;
}

.job-description li:last-child, .job-requirements li:last-child, .job-benefits li:last-child {
    border-bottom: none;
}

.job-description li:before, .job-requirements li:before {
    content: "›";
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
    font-size: 1.2rem;
}

.job-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* 职位联系信息 */
.job-contact {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f0f7ff;
    border-radius: 10px;
    border-left: 4px solid #4a90e2;
}

.job-contact p {
    margin: 0.5rem 0;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-contact strong {
    color: #2c5aa0;
    min-width: 70px;
}

/* 职位操作按钮样式 */
.job-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f3f5;
}

.job-actions .btn {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.job-actions .btn-primary {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.job-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.4);
    background: linear-gradient(135deg, #265192, #3d7ac9);
}

.job-actions .btn-outline {
    border: 2px solid #2c5aa0;
    color: #2c5aa0;
    background: transparent;
}

.job-actions .btn-outline:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-3px);
}

/* 申请流程样式 */
.application-process {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    position: relative;
}

.application-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #4a90e2, #2c5aa0);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 6px 15px rgba(44, 90, 160, 0.3);
}

.step h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.step p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 常见问题样式 */
.faq-section {
    padding: 4rem 0;
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #2c5aa0;
}

.faq-item[open] {
    border-color: #2c5aa0;
}

.faq-item summary {
    padding: 1.5rem 2rem;
    background: white;
    cursor: pointer;
    font-weight: 600;
    color: #2c5aa0;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.1rem;
    list-style: none;
}

.faq-item summary:hover {
    background: #f8f9fa;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 300;
    transition: all 0.3s ease;
    color: #2c5aa0;
}

.faq-item[open] summary:after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
}

.faq-answer {
    padding: 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer p {
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

/* 联系招聘样式 */
.contact-recruitment {
    background: linear-gradient(135deg, #1e3f73 0%, #2c5aa0 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.contact-recruitment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #fff, #4a90e2);
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-content h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.contact-content > p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-item h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-item p {
    font-size: 1rem;
    opacity: 0.9;
}

/* 联系表单样式 */
.contact-form-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form-section h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form select option {
    background: #2c5aa0;
    color: white;
}

.contact-form button[type="submit"] {
    grid-column: 1 / -1;
    padding: 1.2rem;
    background: white;
    color: #2c5aa0;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.contact-form button[type="submit"]:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .jobs-list {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .jobs-overview {
        padding: 60px 20px;
    }
    
    .overview-content > h2 {
        font-size: 2.2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .recruitment-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .job-filters {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .job-card {
        padding: 1.8rem;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .job-meta {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .job-actions {
        flex-direction: column;
    }
    
    .job-actions .btn {
        width: 100%;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section {
        padding: 2rem 1.5rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .recruitment-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.8rem 1.2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .job-card {
        padding: 1.5rem;
    }
    
    .job-header h3 {
        font-size: 1.3rem;
    }
    
    .step {
        padding: 2rem 1.2rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .faq-item summary,
    .faq-answer {
        padding: 1.2rem;
    }
}