* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 24px; font-weight: bold; }
.nav-right { display: flex; gap: 20px; align-items: center; }
.nav-right a {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s;
}
.nav-right a:hover { background: rgba(255,255,255,0.3); }

/* 搜索筛选区 */
.search-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.search-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}
.search-input {
    flex: 1;
    min-width: 250px;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.search-input:focus { border-color: #667eea; }
.search-select {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    outline: none;
    min-width: 130px;
}
.search-btn {
    padding: 10px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s;
}
.search-btn:hover { transform: translateY(-1px); }
.reset-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}
.filter-label { color: #888; font-size: 13px; min-width: 70px; }
.filter-item {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    background: #f5f5f5;
    color: #666;
    transition: all 0.2s;
}
.filter-item.active, .filter-item:hover {
    background: #667eea;
    color: white;
}

/* 岗位列表 */
.job-list { display: flex; flex-direction: column; gap: 15px; }
.job-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}
.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left-color: #667eea;
}
.job-card.top { border-left-color: #f56c6c; background: #fffafa; }
.job-card.full { opacity: 0.6; }
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.job-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}
.job-salary {
    font-size: 20px;
    font-weight: bold;
    color: #f56c6c;
}
.job-company { color: #666; font-size: 14px; margin-bottom: 10px; }
.job-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.job-tag {
    padding: 3px 10px;
    background: #ecf5ff;
    color: #409eff;
    border-radius: 4px;
    font-size: 12px;
}
.job-tag.red { background: #fef0f0; color: #f56c6c; }
.job-tag.green { background: #f0f9eb; color: #67c23a; }
.job-tag.orange { background: #fdf6ec; color: #e6a23c; }
.job-footer {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 13px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    background: white;
    color: #666;
    font-size: 14px;
}
.pagination .active {
    background: #667eea;
    color: white;
}

/* 详情页 */
.detail-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.detail-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.detail-title { font-size: 28px; font-weight: bold; margin-bottom: 10px; }
.detail-salary { font-size: 24px; color: #f56c6c; font-weight: bold; }
.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}
.detail-info-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}
.detail-info-label { color: #999; font-size: 13px; margin-bottom: 5px; }
.detail-info-value { font-size: 15px; font-weight: 500; }
.detail-section { margin-bottom: 25px; }
.detail-section h3 {
    font-size: 18px;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 4px solid #667eea;
}
.detail-section p { white-space: pre-wrap; color: #555; line-height: 1.8; }
.welfare-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.welfare-tag {
    padding: 8px 16px;
    background: #f0f9ff;
    color: #2d8cf0;
    border-radius: 20px;
    font-size: 14px;
}
.contact-box {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}
.contact-box h3 { margin-bottom: 10px; }

/* 登录弹窗样式 */
.login-box {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.login-box h2 { text-align: center; margin-bottom: 25px; color: #333; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; color: #666; font-size: 14px; }
.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}
.form-group input:focus { border-color: #667eea; }
.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 13px;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.status-recruiting { background: #f0f9eb; color: #67c23a; }
.status-paused { background: #fdf6ec; color: #e6a23c; }
.status-ended { background: #f4f4f5; color: #909399; }
.status-full { background: #fef0f0; color: #f56c6c; }

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 12px;
    }

    /* 顶部导航 */
    .header .container {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }
    .logo {
        font-size: 20px;
    }
    .nav-right {
        width: 100%;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    .nav-right a {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* 搜索筛选区 */
    .search-section {
        padding: 15px;
        margin: 12px 0;
    }
    .search-row {
        flex-direction: column;
        align-items: stretch;
    }
    .search-input, .search-select {
        width: 100%;
        min-width: auto;
    }
    .search-btn, .reset-btn {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
    .filter-group {
        gap: 8px;
    }
    .filter-label {
        width: 100%;
        margin-bottom: 5px;
    }
    .filter-item {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* 岗位卡片 */
    .job-card {
        padding: 15px;
    }
    .job-header {
        flex-direction: column;
        gap: 8px;
    }
    .job-title {
        font-size: 16px;
    }
    .job-salary {
        font-size: 18px;
    }
    .job-footer {
        flex-direction: column;
        gap: 5px;
        font-size: 12px;
    }

    /* 详情页 */
    .detail-container {
        padding: 18px;
        margin: 12px 0;
    }
    .detail-title {
        font-size: 22px;
    }
    .detail-salary {
        font-size: 20px;
    }
    .detail-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .detail-info-item {
        padding: 10px;
    }
    .detail-info-value {
        font-size: 14px;
    }
    .welfare-tag {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* 登录框 */
    .login-box {
        max-width: 92%;
        margin: 30px auto;
        padding: 25px 20px;
    }

    /* 分页 */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    .pagination a, .pagination span {
        padding: 6px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .detail-info-grid {
        grid-template-columns: 1fr;
    }
    .job-tags {
        gap: 5px;
    }
    .job-tag {
        padding: 2px 8px;
        font-size: 11px;
    }
}