/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* 筛选区样式 */
.filters {
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filter-group h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
    align-items: center;
}

.filter-group h3 i {
    color: #3498db;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #f1f5f9;
    border: none;
    border-radius: 21px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover {
    background-color: #e2e8f0;
}

.filter-btn.active {
    background-color: #3498db;
    color: white;
}

/* 职位列表区样式 */
.job-listings {
    background-color: #274952;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.job-listings h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.list-info {
    color: #fff;
    margin-bottom: 25px;
    font-size: 14px;
}

.list-info strong {
    color: #fff;
}

/* 无数据样式 */
.no-data {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.no-data i {
    font-size: 50px;
    margin-bottom: 15px;
    color: #e2e8f0;
}

/* 职位卡片容器 */
.job-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 职位卡片样式 */
.job-card {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
        background-color: #ffffff;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #d1d9e6;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.job-header h3 {
    margin: 0;
    font-size: 18px;
}

.job-header h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-header h3 a:hover {
    color: #3498db;
}

.job-type {
    background-color: #e8f4fd;
    color: #3498db;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* 职位元信息 */
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.job-meta i {
    margin-right: 5px;
    color: #999;
}

/* 职位描述 */
.job-desc {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 职位卡片底部 */
.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.view-detail {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    cursor: pointer;
}

.view-detail i {
    margin-left: 5px;
    font-size: 12px;
}

.view-detail:hover {
    color: #2980b9;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination a:hover:not(.active):not(.disabled) {
    border-color: #3498db;
    color: #3498db;
}

.pagination a.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination a.disabled {
    color: #ccc;
    border-color: #f1f5f9;
    cursor: not-allowed;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: 8px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    color: #333;
    background-color: #f1f1f1;
}

.modal-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.job-detail-meta-item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.job-detail-meta-item i {
    margin-right: 8px;
    color: #3498db;
    width: 16px;
}

.job-detail-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.job-detail-description h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #2c3e50;
}

.modal-footer {
    text-align: right;
}

.modal-close-btn {
    padding: 8px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-close-btn:hover {
    background-color: #2980b9;
}

body.modal-open {
    overflow: hidden;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .job-cards {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .job-cards {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .job-listings {
        padding: 20px 15px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .modal-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .job-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .job-type {
        align-self: flex-start;
    }
    
    .pagination a {
        padding: 6px 10px;
        font-size: 13px;
        margin: 0 2px;
    }
    
    .job-detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .job-detail-meta-item {
        width: 100%;
    }
}