* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin-bottom: 15px;
    text-align: center;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

#search-input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

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

#search-btn:hover {
    background-color: #2980b9;
}

main {
    display: flex;
    padding: 30px 0;
    gap: 30px;
}

.filters {
    flex: 0 0 250px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

#filter-btn {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#filter-btn:hover {
    background-color: #2980b9;
}

.job-list-container {
    flex: 1;
}

.job-list-container h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.job-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.job-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.job-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.company-name {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.job-salary {
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 10px;
}

.job-location,
.job-experience {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.job-tag {
    background-color: #ecf0f1;
    color: #7f8c8d;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.pagination button {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination button:hover:not([disabled]) {
    background-color: #2980b9;
}

.pagination button[disabled] {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

#current-page {
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

#job-details {
    margin-top: 10px;
}

.job-detail-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.job-detail-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.job-detail-company {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.job-detail-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.job-detail-info div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-detail-info i {
    color: #3498db;
}

.job-detail-salary {
    color: #e74c3c;
    font-weight: bold;
}

.job-detail-description h3,
.job-detail-requirements h3 {
    margin: 20px 0 10px;
    color: #2c3e50;
}

.job-detail-description p,
.job-detail-requirements ul {
    margin-bottom: 15px;
    line-height: 1.8;
}

.job-detail-requirements ul {
    padding-left: 20px;
}

.job-detail-requirements li {
    margin-bottom: 8px;
}

.apply-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    margin-top: 30px;
    transition: background-color 0.3s;
}

.apply-btn:hover {
    background-color: #27ae60;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    .filters {
        flex: none;
        width: 100%;
    }

    .job-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .modal-content {
        margin: 10% 5%;
        padding: 20px;
    }
}

/* 添加更小屏幕的媒体查询 */
@media (max-width: 480px) {
    .job-list {
        grid-template-columns: 1fr;
    }

    .job-card {
        padding: 15px;
    }

    .job-title {
        font-size: 16px;
    }

    .job-tag {
        font-size: 10px;
        padding: 3px 6px;
    }
}