/* ===== 人才招聘页面专用样式 ===== */

/* CSS变量定义 - 使用网站主题色 */
:root {
    --primary-color: #EB6630;
    --primary-dark: #D45520;
    --primary-light: #F5A623;
    --accent-color: #FF8C42;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --shadow-primary: 0 4px 20px rgba(235, 102, 48, 0.15);
    --shadow-primary-hover: 0 8px 30px rgba(235, 102, 48, 0.25);
}

/* 招聘页面容器 */
.recruit-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    min-height: calc(100vh - 200px);
}

/* 页面标题区域 */
.recruit-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
}

.recruit-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMyIgZmlsbD0icmdiYSgyNTUsIDI1NSwgMjU1LCAwLjEpIi8+IDwvZz4gPC9zdmc+') repeat;
    opacity: 0.3;
}

.recruit-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px;
    position: relative;
    z-index: 1;
}

.recruit-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 统计信息 */
.recruit-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    color: #fff;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* 搜索和筛选区域 */
.recruit-filters {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-primary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    border: 1px solid rgba(235, 102, 48, 0.1);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
}

.filter-group label i {
    color: var(--primary-color);
    margin-right: 5px;
}

.filter-select,
.search-input {
    padding: 10px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 150px;
}

.filter-select:focus,
.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(235, 102, 48, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-primary);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
}

/* 招聘职位列表 */
.recruit-list {
    display: grid;
    gap: 20px;
}

/* 招聘职位卡片 */
.recruit-item {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-primary);
    border: 1px solid rgba(235, 102, 48, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.recruit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.recruit-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-primary-hover);
    border-color: var(--primary-color);
}

.recruit-item:hover::before {
    transform: scaleY(1);
}

/* 职位头部信息 */
.recruit-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.job-title-section {
    flex: 1;
}

.job-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 8px;
    line-height: 1.3;
}

.job-department {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(235, 102, 48, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(235, 102, 48, 0.2);
}

.salary-section {
    text-align: right;
}

.salary {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.salary-period {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

/* 职位标签 */
.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.job-tag {
    background: #f8f9fa;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-tag.location {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info-color);
    border-color: rgba(52, 152, 219, 0.2);
}

.job-tag.experience {
    background: rgba(235, 102, 48, 0.1);
    color: var(--primary-color);
    border-color: rgba(235, 102, 48, 0.2);
}

.job-tag.education {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
    border-color: rgba(155, 89, 182, 0.2);
}

/* 职位描述 */
.job-description {
    color: #666;
    line-height: 1.6;
    margin: 20px 0;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 职位底部信息 */
.recruit-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: #999;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: var(--primary-color);
    width: 14px;
}

.apply-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-primary);
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
    color: white;
    text-decoration: none;
}

/* 空状态 */
.no-jobs {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.no-jobs i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.no-jobs h3 {
    font-size: 1.3rem;
    margin: 0 0 10px;
    color: var(--dark-color);
}

.no-jobs p {
    margin: 0;
    font-size: 0.95rem;
}

/* 分页样式优化 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
    gap: 8px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 8px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.pagination a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-primary);
}

/* 招聘联系信息样式 */
.recruit-contact {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-primary);
    margin-top: 40px;
    text-align: center;
    border: 1px solid rgba(235, 102, 48, 0.1);
}

.recruit-contact h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
}

.recruit-contact h3 i {
    color: var(--primary-color);
}

.recruit-contact p {
    color: #666;
    margin-bottom: 15px;
}

.recruit-contact strong {
    color: var(--dark-color);
}

.recruit-contact span {
    color: var(--primary-color);
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .recruit-container {
        padding: 100px 15px 40px;
    }
    
    .recruit-header h1 {
        font-size: 2rem;
    }
    
    .recruit-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .recruit-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .filter-select,
    .search-input {
        min-width: auto;
        width: 100%;
    }
    
    .recruit-item {
        padding: 20px;
    }
    
    .recruit-header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .salary-section {
        text-align: left;
    }
    
    .job-title {
        font-size: 1.2rem;
    }
    
    .recruit-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .job-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .apply-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .recruit-header {
        padding: 30px 20px;
    }
    
    .recruit-header h1 {
        font-size: 1.8rem;
    }
    
    .recruit-subtitle {
        font-size: 1rem;
    }
    
    .recruit-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .job-tags {
        justify-content: center;
    }
    
    .job-meta {
        font-size: 0.8rem;
        gap: 15px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recruit-item {
    animation: fadeInUp 0.6s ease-out;
}

.recruit-item:nth-child(even) {
    animation-delay: 0.1s;
}

.recruit-item:nth-child(odd) {
    animation-delay: 0.2s;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading i {
    font-size: 2rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 特殊效果 - 主题色高亮 */
.recruit-item:hover .job-title {
    color: var(--primary-color);
}

.recruit-item:hover .job-department {
    background: var(--primary-color);
    color: white;
}

/* 搜索高亮效果 */
.search-highlight {
    background: rgba(235, 102, 48, 0.2);
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--primary-dark);
} 