/* 招聘页面样式 */

/* 页面加载时的渐入效果 */
body {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    margin: 0;
    padding: 0;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 招聘页顶部背景图样式 - 建议使用1920x500像素的图片 */
/* .career-banner {
    position: relative;
    width: 100%;
    height: 500px;
    background-image: url('../images/career-banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
} */

.career-banner {
    position: relative;
    width: 100%;
    height: 500px;
    background-image: url('../images/career-banner.jpg');
    background-size: 100% 100%; /* 改为完全拉伸 */
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

/* 背景图遮罩层 */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 55, 98, 0.3);
}

/* 背景图内容样式 */
.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 24px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 招聘容器样式 */
.career-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* 招聘头部样式 */
.career-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #163762;
    padding-bottom: 15px;
}

.career-header h2 {
    font-size: 32px;
    color: #163762;
    margin: 0;
}

/* 筛选器样式 */
.career-filter {
    display: flex;
    align-items: center;
}

.career-filter span {
    margin-right: 10px;
    font-size: 16px;
    color: #333;
}

#job-filter {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: #333;
    font-size: 16px;
    cursor: pointer;
}

/* 职位表格样式 */
.job-table {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 表格头部样式 */
.job-table-header {
    display: flex;
    background-color: #163762;
    color: white;
    padding: 15px 20px;
    font-weight: bold;
}

.job-table-header > div {
    flex: 1;
    text-align: center;
}

/* 职位列表项样式 */
.job-list {
    width: 100%;
}

.job-item {
    border-bottom: 1px solid #eee;
}

.job-item:last-child {
    border-bottom: none;
}

/* 职位信息行样式 */
.job-info {
    display: flex;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.job-info:hover {
    background-color: #f9f9f9;
}

.job-info > div {
    flex: 1;
    text-align: center;
}

/* 职位详情样式 - 初始状态为隐藏 */
.job-details {
    display: none;
    overflow: hidden;
    background-color: #f5f7fa;
    padding: 0;
    max-height: 0;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.job-details.active {
    display: flex;
    padding: 20px;
    max-height: 500px;
}

/* 职位详情列样式 */
.job-column {
    flex: 1;
    padding: 0 15px;
}

.job-column h3 {
    color: #163762;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.job-column ul {
    margin: 0;
    padding-left: 20px;
}

.job-column li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 加入按钮样式 */
.apply-btn {
    background-color: #163762;
    color: white;
    border: none;
    padding: 10px 25px;
    margin-top: 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.apply-btn:hover {
    background-color: #0e2a4a;
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 15px;
}

.page-btn {
    padding: 8px 20px;
    background-color: #163762;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background-color: #0e2a4a;
}

.page-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.current-page {
    font-size: 18px;
    font-weight: bold;
    color: #163762;
    padding: 5px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 人力资源联系方式样式 */
.hr-contact {
    background-color: #f5f7fa;
    padding: 60px 0;
    margin-top: 30px;
}

.hr-contact h2 {
    text-align: center;
    color: #163762;
    margin-bottom: 40px;
    font-size: 32px;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    padding: 0 20px;
}

.contact-info, .contact-notes {
    flex: 1;
    padding: 0 20px;
}

.contact-info h3, .contact-notes h3 {
    color: #163762;
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.highlight {
    color: #163762;
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
}

.contact-notes ul {
    padding-left: 20px;
}

.contact-notes li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .banner-content h1 {
        font-size: 40px;
    }
    
    .banner-content p {
        font-size: 20px;
    }
    
    .career-header h2 {
        font-size: 28px;
    }
    
    .job-details.active {
        flex-direction: column;
    }
    
    .job-column {
        margin-bottom: 20px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info, .contact-notes {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .career-banner {
        height: 400px;
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
    
    .career-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .career-filter {
        margin-top: 15px;
    }
    
    .job-table-header {
        display: none;
    }
    
    .job-info {
        flex-direction: column;
        text-align: left;
    }
    
    .job-info > div {
        text-align: left;
        margin-bottom: 8px;
    }
    
    .job-info > div:before {
        /* content: attr(data-label); */
        font-weight: bold;
        margin-right: 10px;
        color: #163762;
    }
    .job-title::before {
        content: "职位名称：";
    }

    .job-location::before {
        content: "工作地点：";
    }

    .job-count::before {
        content: "招聘人数：";
    }

    .job-date::before {
        content: "更新日期：";
    }
    
    /* .job-title { data-label: "职位名称: "; }
    .job-location { data-label: "工作地点: "; }
    .job-count { data-label: "招聘人数: "; }
    .job-date { data-label: "更新日期: "; } */
    
    .hr-contact h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .career-banner {
        height: 300px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .career-header h2 {
        font-size: 24px;
    }
    
    .pagination {
        gap: 8px;
    }
    
    .page-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .current-page {
        font-size: 16px;
        padding: 3px 10px;
    }
}