﻿/* 招聘页面优化样式 */
:root {
	--primary-color: #2c5aa0;
	--secondary-color: #1a365d;
	--accent-color: #e53e3e;
	--success-color: #38a169;
	--text-primary: #2d3748;
	--text-secondary: #718096;
	--text-light: #a0aec0;
	--bg-light: #f7fafc;
	--bg-white: #ffffff;
	--border-color: #e2e8f0;
	--radius: 12px;
	--transition: all 0.3s ease;
	--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	--shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 基础重置和间距 */
.careers-page {
	min-height: 100vh;
	padding-top: 80px; /* 为固定导航栏留出空间 */
}

/* 页面头部优化 */
.page-header {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: white;
	padding: 100px 0 80px; /* 增加上下内边距 */
	text-align: center;
	margin-bottom: 0;
}

.page-title {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 1.5rem; /* 增加标题与副标题间距 */
	line-height: 1.2;
}

.page-subtitle {
	font-size: 1.25rem;
	opacity: 0.9;
	line-height: 1.6;
	max-width: 600px;
	margin: 0 auto;
}

/* 通用部分样式优化 */
.section-header {
	text-align: center;
	margin-bottom: 4rem; /* 增加部分标题与内容间距 */
}

	.section-header h2 {
		font-size: 2.5rem;
		color: var(--secondary-color);
		margin-bottom: 1.5rem;
		font-weight: 700;
		line-height: 1.2;
	}

	.section-header p {
		font-size: 1.125rem;
		color: var(--text-secondary);
		max-width: 600px;
		margin: 0 auto;
		line-height: 1.6;
	}

/* 职位部分优化 */
.jobs-section {
	padding: 80px 0;
	background: var(--bg-white);
}

.process-section {
	padding: 80px 0;
	background: var(--bg-light);
}

/* 筛选器优化 */
.jobs-filter {
	display: flex;
	gap: 2rem;
	margin-bottom: 3rem;
	flex-wrap: wrap;
	justify-content: center;
	align-items: end;
}

.filter-group {
	display: flex;
	flex-direction: column;
	gap: 0.75rem; /* 增加标签与选择框间距 */
	min-width: 200px;
}

	.filter-group label {
		font-weight: 600;
		color: var(--text-primary);
		font-size: 1rem;
	}

.form-select {
	padding: 1rem 1.25rem; /* 增加选择框内边距 */
	border: 2px solid var(--border-color);
	border-radius: var(--radius);
	background: var(--bg-white);
	font-size: 1rem;
	transition: var(--transition);
	cursor: pointer;
}

	.form-select:focus {
		border-color: var(--primary-color);
		box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
		outline: none;
	}

/* 职位列表优化 */
.jobs-list {
	display: flex;
	flex-direction: column;
	gap: 2rem; /* 增加职位卡片间距 */
	max-width: 900px;
	margin: 0 auto;
}

.job-card {
	background: var(--bg-white);
	border: 2px solid var(--border-color);
	border-radius: var(--radius);
	padding: 2.5rem; /* 增加卡片内边距 */
	transition: var(--transition);
	cursor: pointer;
	position: relative;
}

	.job-card:hover {
		border-color: var(--primary-color);
		transform: translateY(-5px);
		box-shadow: var(--shadow-hover);
	}

	.job-card.featured {
		border-color: var(--accent-color);
		background: linear-gradient(to right, #fff, #fef2f2);
	}

.job-badge {
	position: absolute;
	top: -10px;
	right: 2rem;
	background: var(--accent-color);
	color: white;
	padding: 0.5rem 1.25rem;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
}

.job-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1.5rem; /* 增加头部与内容间距 */
}

.job-title {
	font-size: 1.5rem;
	color: var(--secondary-color);
	margin-bottom: 0.75rem; /* 增加标题与元数据间距 */
	font-weight: 600;
	line-height: 1.3;
}

.job-meta {
	display: flex;
	gap: 1.5rem; /* 增加元数据项间距 */
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.job-meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-secondary);
	font-size: 0.9rem;
}

	.job-meta-item i {
		color: var(--primary-color);
		font-size: 1rem;
	}

.job-description {
	color: var(--text-secondary);
	line-height: 1.6; /* 增加行高改善可读性 */
	margin-bottom: 1.5rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.job-tags {
	display: flex;
	gap: 0.75rem; /* 增加标签间距 */
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.job-tag {
	background: var(--bg-light);
	color: var(--text-secondary);
	padding: 0.5rem 1rem; /* 增加标签内边距 */
	border-radius: 20px;
	font-size: 0.85rem;
	border: 1px solid var(--border-color);
}

.job-actions {
	text-align: right;
}

.btn-primary {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: white;
	border: none;
	padding: 1rem 2rem; /* 增加按钮内边距 */
	border-radius: var(--radius);
	font-weight: 600;
	transition: var(--transition);
	cursor: pointer;
	font-size: 1rem;
}

	.btn-primary:hover {
		transform: translateY(-2px);
		box-shadow: 0 6px 15px rgba(44, 90, 160, 0.3);
	}

/* 空状态优化 */
.empty-state {
	text-align: center;
	padding: 5rem 2rem; /* 增加空状态内边距 */
	color: var(--text-secondary);
}

	.empty-state i {
		font-size: 4rem;
		color: var(--text-light);
		margin-bottom: 2rem;
	}

	.empty-state h3 {
		color: var(--text-primary);
		margin-bottom: 1rem;
		font-size: 1.5rem;
	}

	.empty-state p {
		line-height: 1.6;
		max-width: 400px;
		margin: 0 auto;
	}

/* 流程部分优化 */
.process-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2.5rem; /* 增加流程步骤间距 */
	max-width: 1200px;
	margin: 0 auto;
}

.process-step {
	text-align: center;
	padding: 2.5rem 2rem; /* 增加步骤内边距 */
	position: relative;
}

	.process-step::before {
		content: '';
		position: absolute;
		top: 60px;
		left: 100%;
		width: 100%;
		height: 2px;
		background: var(--border-color);
		z-index: 1;
	}

	.process-step:last-child::before {
		display: none;
	}

.step-number {
	width: 70px;
	height: 70px;
	background: var(--primary-color);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 auto 2rem; /* 增加数字与标题间距 */
	position: relative;
	z-index: 2;
	transition: var(--transition);
}

.process-step:hover .step-number {
	transform: scale(1.1);
}

.process-step h3 {
	color: var(--secondary-color);
	margin-bottom: 1rem;
	font-size: 1.25rem;
	font-weight: 600;
}

.process-step p {
	color: var(--text-secondary);
	line-height: 1.6;
}

/* 响应式设计优化 */
@media (max-width: 1024px) {
	.page-title {
		font-size: 2.5rem;
	}

	.section-header h2 {
		font-size: 2.25rem;
	}

	.process-step::before {
		display: none;
	}
}

@media (max-width: 768px) {
	.careers-page {
		padding-top: 70px;
	}

	.page-header {
		padding: 80px 0 60px;
	}

	.page-title {
		font-size: 2rem;
	}

	.section-header {
		margin-bottom: 3rem;
	}

		.section-header h2 {
			font-size: 2rem;
		}

	.jobs-filter {
		flex-direction: column;
		align-items: stretch;
		gap: 1.5rem;
	}

	.job-header {
		flex-direction: column;
		gap: 1.5rem;
	}

	.job-actions {
		text-align: left;
	}

	.job-card {
		padding: 2rem 1.5rem;
	}

	.process-steps {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.process-step {
		padding: 2rem 1rem;
	}
}

@media (max-width: 480px) {
	.page-header {
		padding: 60px 0 40px;
	}

	.page-title {
		font-size: 1.75rem;
	}

	.jobs-section,
	.process-section {
		padding: 60px 0;
	}

	.job-card {
		padding: 1.5rem;
	}

	.job-meta {
		flex-direction: column;
		gap: 0.75rem;
	}

	.step-number {
		width: 60px;
		height: 60px;
		font-size: 1.5rem;
	}
}

/* 加载和动画效果 */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.job-card,
.process-step {
	animation: fadeInUp 0.6s ease-out;
}

	.job-card:nth-child(1) {
		animation-delay: 0.1s;
	}

	.job-card:nth-child(2) {
		animation-delay: 0.2s;
	}

	.job-card:nth-child(3) {
		animation-delay: 0.3s;
	}

	.job-card:nth-child(4) {
		animation-delay: 0.4s;
	}

	.process-step:nth-child(1) {
		animation-delay: 0.1s;
	}

	.process-step:nth-child(2) {
		animation-delay: 0.2s;
	}

	.process-step:nth-child(3) {
		animation-delay: 0.3s;
	}

	.process-step:nth-child(4) {
		animation-delay: 0.4s;
	}

/* 职位详情模态框样式 */
.job-modal-content {
	line-height: 1.6;
}

.job-modal-header {
	margin-bottom: 2rem;
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.info-item {
	display: flex;
	flex-direction: column;
}

	.info-item strong {
		color: var(--text-primary);
		margin-bottom: 0.25rem;
	}

	.info-item span {
		color: var(--text-secondary);
	}

.job-modal-section {
	margin-bottom: 2rem;
}

	.job-modal-section h4 {
		color: var(--secondary-color);
		margin-bottom: 1rem;
		font-size: 1.25rem;
	}

	.job-modal-section ul {
		padding-left: 1.5rem;
	}

	.job-modal-section li {
		margin-bottom: 0.5rem;
		color: var(--text-secondary);
	}
