/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 导航栏 ==================== */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h2 {
    color: #0056b3;
    font-size: 24px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0056b3;
}

.username-link {
    font-weight: bold;
    color: #0056b3 !important;
}

/* ==================== 英雄区域 ==================== */
.hero {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== 搜索框 ==================== */
.search-box {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.search-box input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    border-radius: 12px 0 0 12px;
    font-size: 17px;
    outline: none;
}

.search-box button {
    padding: 18px 36px;
    background: #ffc107;
    border: none;
    border-radius: 0 12px 12px 0;
    color: #333;
    font-weight: bold;
    font-size: 17px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #e0a800;
}

/* ==================== 筛选栏 ==================== */
.filters-bar {
    max-width: 1000px;
    margin: 0 auto 40px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    justify-content: center;
}

.filter-item {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    flex: 1 1 150px;
}

.filter-item label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
    white-space: nowrap;
}

.filter-item select,
.filter-item input {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s;
    height: 40px;
    width: 100%;
}

.filter-item select:focus,
.filter-item input:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.sort-item {
    min-width: 150px;
    flex: 1 1 150px;
}

.filter-submit {
    padding: 0 20px;
    background: #0056b3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    height: 40px;
    line-height: 1;
    white-space: nowrap;
    min-width: 100px;
    flex: 0 0 auto;
}

.filter-submit:hover {
    background: #004494;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

/* 响应式：当窗口宽度小于 1000px 时允许换行，但保持横向多列 */
@media (max-width: 1000px) {
    .filters-bar {
        gap: 12px;
    }
    .filter-item {
        min-width: 130px;
        flex: 1 1 130px;
    }
    .sort-item {
        min-width: 130px;
    }
}

/* 小屏幕（宽度小于 700px）时变为纵向排列 */
@media (max-width: 700px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .filter-item {
        width: 100%;
        min-width: 100%;
    }
    .filter-submit {
        width: 100%;
        flex: 1 1 auto;
    }
}

/* ==================== 标题通用 ==================== */
.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #0056b3;
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-title .subtitle {
    font-size: 16px;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
}

/* ==================== 案例区域 ==================== */
.cases-section {
    padding: 60px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.case-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.case-content {
    padding: 20px;
}

.case-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0056b3;
}

.case-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.case-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.case-salary {
    color: #28a745;
    font-weight: bold;
}

.case-student {
    color: #555;
    margin-bottom: 10px;
    font-style: italic;
}

.case-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.case-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: opacity 0.3s;
}

.case-image:hover {
    opacity: 0.9;
}

/* ==================== 岗位列表 ==================== */
.jobs-search-section {
    padding: 60px 0;
    background-color: #f8fafc;
}

.jobs-result {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.job-item {
    padding: 24px;
    border-bottom: 1px solid #f0f4f9;
    transition: background-color 0.3s;
}

.job-item:last-child {
    border-bottom: none;
}

.job-item:hover {
    background-color: #f8fafc;
}

.job-title {
    font-size: 20px;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 8px;
}

.job-company {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 12px;
}

.job-details {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    font-size: 14px;
    flex-wrap: wrap;
}

.job-salary {
    color: #28a745;
    font-weight: bold;
}

.job-city {
    color: #555;
}

.job-edu,
.job-exp {
    color: #555;
    background: #f0f4f9;
    padding: 2px 8px;
    border-radius: 4px;
}

.job-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.job-date {
    color: #94a3b8;
    font-size: 13px;
}

/* ==================== 加载中/空状态 ==================== */
.loading {
    text-align: center;
    color: #999;
    padding: 60px 20px;
    font-size: 16px;
}

/* ==================== 分页样式 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination .page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
}

.pagination .page-btn:hover:not(.disabled):not(.active) {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.pagination .page-btn.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #fff;
    font-weight: 600;
}

.pagination .page-btn.disabled {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.pagination .page-ellipsis {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 14px;
}

/* ==================== 模态框 ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ffc107;
}

/* ==================== 认证页面 ==================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px);
    padding: 40px 20px;
    background-color: #f8fafc;
}

.auth-box {
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    width: 100%;
    max-width: 450px;
    transition: box-shadow 0.3s;
}

.auth-box:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.auth-box h2 {
    font-size: 28px;
    color: #0056b3;
    margin-bottom: 12px;
    text-align: center;
}

.auth-subtitle {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 40px;
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #334155;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0,86,179,0.1);
    outline: none;
}

.btn-primary {
    background: #0056b3;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: #004494;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,86,179,0.2);
}

.btn-block {
    width: 100%;
}

.auth-footer {
    margin-top: 28px;
    text-align: center;
    color: #666;
}

.auth-footer a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: #004494;
    text-decoration: underline;
}

/* ==================== 高级搜索页面专属 ==================== */
.jobs-description {
    color: #64748b;
    margin-bottom: 40px;
    text-align: center;
    font-size: 18px;
}

.filters-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.filters-card h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #1e293b;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f4f9;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-box input {
        border-radius: 12px 12px 0 0;
    }
    
    .search-box button {
        border-radius: 0 0 12px 12px;
        padding: 15px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-item {
        width: 100%;
    }
    
    .filter-submit {
        width: 100%;
        margin-top: 10px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .jobs-result {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .job-details {
        gap: 12px;
    }
}
/* 岗位搜索页 - 额外字段样式 */
.job-skills,
.job-welfare,
.job-company-meta {
    margin: 8px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.job-skills .label,
.job-welfare .label {
    font-weight: 500;
    color: #333;
    margin-right: 5px;
}

.job-company-meta {
    color: #777;
    background: #f5f5f5;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 5px;
}

/* 调整卡片内边距，适应更多内容 */
.job-item {
    padding: 20px;
    border-bottom: 1px solid #f0f4f9;
}

.job-item:last-child {
    border-bottom: none;
}
.job-link {
    margin: 8px 0;
    font-size: 14px;
}

.job-link a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
}

.job-link a:hover {
    text-decoration: underline;
}