/* 页面标题区域 */
.page-header {
    background: linear-gradient(135deg, #1a365d 0%, #0d2340 100%);
    color: white;
    padding: 80px 0 60px;
    margin-bottom: 40px;
}
.page-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}
.page-subtitle {
    font-size: 20px;
    opacity: 0.9;
    max-width: 800px;
}

/* 主要内容区布局 */
.main-content {
    display: flex;
    gap: 40px;
    padding: 0 0 80px;
}

.btn-apply { background-color: #e8f0fe; color: var(--accent); padding: 12px 30px; border-radius: 8px; font-weight: 600; display: inline-block; border: none; cursor: pointer; }
.btn-apply:hover { background-color: var(--accent); color: white; }

/* 侧边栏 - 搜索筛选 */
.sidebar {
    width: 340px;
    flex-shrink: 0;
}

.filter-card-box{
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.filter-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 25px;
}
.filter-card h3 {
    color: var(--primary);
    /* margin-bottom: 25px; */
    font-size: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.filter-group {
    /* margin-bottom: 25px; */
    display: flex;
    align-items: center;
    margin-right: 20px;
    width: 100%;
}
.filter-group label {
    display: block;
    font-weight: 600;
    /* margin-bottom: 12px; */
    color: var(--dark);
    width: 150px;
}
.filter-select, .filter-input {
    width: 100%;
    padding: 12px 16px;
    /* border: 1px solid var(--border); */
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    transition: border 0.3s;
}
.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(42, 92, 170, 0.1);
}
.salary-range {
    display: flex;
    align-items: center;
    gap: 10px;
}
.salary-range span {
    color: var(--gray);
    font-size: 14px;
}
.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.filter-checkbox input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}
.filter-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.tag {
    padding: 8px 16px;
    background: #f0f5ff;
    color: var(--accent);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.tag:hover, .tag.active {
    background: var(--accent);
    color: white;
}
.filter-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* 快速筛选栏 */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.quick-filter {
    padding: 8px 18px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s;
}
.quick-filter:hover, .quick-filter.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* 职位列表区域 */
.jobs-main {
    flex: 1;
}
.jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.jobs-header h2 {
    font-size: 28px;
    color: var(--primary);
    font-weight: 700;
}
.jobs-count {
    color: var(--gray);
    font-size: 16px;
}
.jobs-sort {
    display: flex;
    align-items: center;
    gap: 15px;
}
.jobs-sort select {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    font-size: 16px;
}

/* 职位列表 */
.jobs-list {
	display: grid;
	grid-template-columns: repeat(24, 1fr);
    gap: 20px;
}
.job-item {
    grid-column: span 8; 

    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--accent);
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}
.job-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}
.job-item.verified {
    border-left-color: var(--success);
}
.job-item.featured {
    border-left-color: var(--secondary);
    background: linear-gradient(to right, white 96%, #fef9e7 100%);
}
.job-badge {
    /* position: absolute;
    top: 25px;
    right: 25px; */
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    margin-left: 10px;
}
.badge-verified {
    background: var(--success);
}
.badge-featured {
    background: var(--secondary);
}
.badge-urgent {
    background: #e74c3c;
}
.job-title {
    font-size: 22px;
    font-weight: 700;
    /* margin-bottom: 10px; */
    color: var(--primary);
}
.job-company {
    color: var(--gray);
    font-size: 16px;
    /* margin-bottom: 15px; */
    display: flex;
    align-items: center;
}
.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f5ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--accent);
    font-weight: bold;
    font-size: 14px;
}
.job-salary {
    color: #ff6b35;
    font-weight: 800;
    font-size: 22px;
    /* margin-bottom: 20px; */
}
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    font-size: 15px;
    color: var(--gray);
    /* margin-bottom: 20px; */
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.meta-item {
    display: flex;
    align-items: center;
}
.meta-icon {
    margin-right: 8px;
    color: var(--accent);
}
.job-desc {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}
.job-tag {
    padding: 6px 14px;
    background: #f8f9fa;
    color: var(--dark);
    border-radius: 20px;
    font-size: 13px;
}
.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.job-posted {
    color: var(--gray);
    font-size: 14px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}
.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: white;
    color: var(--dark);
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}
.page-link:hover, .page-link.active {
    background: var(--accent);
    color: white;
}
.page-ellipsis {
    color: var(--gray);
    padding: 0 10px;
}

/* 侧边栏小部件 */
.widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 25px;
}
.widget h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.top-country {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.top-country:last-child {
    border-bottom: none;
}
.country-name {
    display: flex;
    align-items: center;
    gap: 10px;
}
.country-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.job-count {
    color: var(--accent);
    font-weight: 600;
}


/* 响应式设计 */
@media (max-width: 1100px) {
    .main-content {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .quick-filters {
        overflow-x: auto;
        padding-bottom: 10px;
    }
}
@media (max-width: 768px) {
    .container {
        padding-left: 25px;
        padding-right: 25px;
    }
    .nav-main {
        display: none;
    }
    .page-title {
        font-size: 36px;
    }
    .jobs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .job-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .filter-actions {
        flex-direction: column;
    }
}