/* 服务入口页面专用样式 */

/* 修复导航栏滚动条问题 */
.nav {
	overflow: visible !important;
	/* max-height: 70px !important; */
}

.nav .layui-unchanged {
	overflow: visible !important;
}

.nav .w1400 {
	overflow: visible !important;
}

/* 覆盖容器顶部内边距 */
.layui-container {
	padding-top: 0 !important;
}

/* 增加服务入口页面底部间距 */
.docs {
	padding-bottom: 80px !important;
	margin-bottom: 40px;
	background: #f5f7fa;
	min-height: calc(100vh - 200px);
}

/* 内容容器 */
.docs-related {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 32px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* Tab 切换区域 */
.docs-tap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 50px;
	padding: 0 20px 20px;
	border-bottom: 2px solid #f0f2f5;
	margin-bottom: 30px;
}

.docs-tap-item {
	position: relative;
	display: inline-block;
	padding: 0 12px 12px;
	font-size: 24px;
	font-weight: 500;
	letter-spacing: 1px;
	color: #4a5568;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.docs-tap-item::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, #0292fe, #7c3aed);
	transition: width 0.3s ease;
}

.docs-tap-item:hover {
	color: #0292fe;
}

.docs-tap-item.docs-tap-item-active {
	color: #0292fe;
	/* font-weight: 600; */
}

.docs-tap-item.docs-tap-item-active::after {
	width: 100%;
}

/* 企业招聘搜索框 */
#enterprise-search {
	display: none;
	margin: 20px auto 30px;
	padding: 0;
}

.enterprise-search-inner {
	display: flex;
	gap: 15px;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	max-width: 900px;
	margin: 0 auto;
	padding: 20px 24px;
	background: linear-gradient(135deg, #f5f9ff 0%, #f9fafb 100%);
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.search-input-wrapper {
	flex: 0 0 auto;
	width: 300px;
}

#search-company,
#search-position {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid #d0d7e2;
	border-radius: 999px;
	font-size: 14px;
	box-sizing: border-box;
	background: #ffffff;
	transition: all 0.2s ease;
}

#search-company:focus,
#search-position:focus {
	border-color: #40a9ff;
	outline: none;
	box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

#btn-search {
	padding: 10px 30px;
	background: linear-gradient(135deg, #1890ff 0%, #0277cd 100%);
	color: #fff;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14px;
	white-space: nowrap;
	flex-shrink: 0;
	box-shadow: 0 6px 16px rgba(24, 144, 255, 0.35);
	transition: all 0.2s ease;
}

#btn-search:hover {
	background: linear-gradient(135deg, #40a9ff 0%, #0292fe 100%);
	/* transform: translateY(-1px); */
	box-shadow: 0 8px 20px rgba(24, 144, 255, 0.45);
}

#btn-reset {
	padding: 10px 30px;
	background: #fff;
	color: #666;
	border: 1px solid #d0d7e2;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14px;
	white-space: nowrap;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

#btn-reset:hover {
	background: #f5f9ff;
	border-color: #40a9ff;
	color: #40a9ff;
}

/* 专家卡片悬停效果 */
.expert-card {
	transition: all 0.25s ease;
}

.expert-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
	/* transform: translateY(-6px) !important; */
}

/* 企业招聘卡片 */
.enterprise-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 20px;
	transition: all 0.25s ease;
	cursor: pointer;
}

.enterprise-card:hover {
	border-color: #1890ff;
	box-shadow: 0 8px 20px rgba(24, 144, 255, 0.15);
	/* transform: translateY(-4px); */
}

/* 分页按钮 */
.page-item {
	display: inline-block;
	min-width: 36px;
	height: 34px;
	line-height: 32px;
	padding: 0 12px;
	margin: 0 4px;
	border: 1px solid #d0d7e2;
	border-radius: 999px;
	background: #ffffff;
	color: #4a5568;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.page-item:hover {
	border-color: #40a9ff;
	color: #1890ff;
	background: #e6f7ff;
}

.page-item.active {
	background: linear-gradient(135deg, #1890ff 0%, #0277cd 100%);
	color: #fff;
	border-color: #1890ff;
	box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
}

.page-item.active:hover {
	background: linear-gradient(135deg, #1890ff 0%, #0277cd 100%);
	color: #fff;
}

/* 企业招聘分页 */
.enterprise-page-item {
	display: inline-block;
	min-width: 36px;
	height: 34px;
	line-height: 32px;
	padding: 0 12px;
	margin: 0 4px;
	border: 1px solid #d0d7e2;
	border-radius: 999px;
	background: #ffffff;
	color: #4a5568;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.enterprise-page-item:hover {
	border-color: #40a9ff;
	color: #40a9ff;
}

.enterprise-page-item.active {
	background: linear-gradient(135deg, #1890ff 0%, #0277cd 100%);
	color: #fff;
	border-color: #1890ff;
	box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
}

.enterprise-page-item.active:hover {
	background: linear-gradient(135deg, #1890ff 0%, #0277cd 100%);
	color: #fff;
}

/* 分页容器 */
#service-page {
	text-align: center;
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid #f0f2f5;
}

/* 空状态 */
.service-empty {
	text-align: center;
	padding: 80px 20px;
	color: #9ca3af;
}

.service-empty i {
	font-size: 64px;
	margin-bottom: 20px;
	opacity: 0.4;
}

.service-empty p {
	font-size: 15px;
	margin-top: 12px;
}

/* 工程师列表项样式 */
.engineer-item {
	display: flex;
	align-items: flex-start;
	padding: 8px 12px;
	margin-bottom: 10px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	transition: all 0.25s ease;
	cursor: pointer;
}

.engineer-item:hover {
	background: #f9fafb;
	border-color: #0292fe;
	box-shadow: 0 8px 20px rgba(2, 146, 254, 0.15);
	/* transform: translateX(6px); */
}

.engineer-item img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	flex-shrink: 0;
	margin-right: 16px;
}

.engineer-item h3 {
	margin: 0 0 6px 0;
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
}

.engineer-item p {
	font-size: 13px;
	line-height: 1.6;
	color: #4a5568;
	margin: 0;
}

/* 响应式适配 */
@media (max-width: 768px) {
	.docs-related {
		padding: 24px 20px;
		border-radius: 12px;
	}
	
	.docs-tap {
		gap: 24px;
		padding: 0 12px 16px;
	}
	
	.docs-tap-item {
		font-size: 15px;
		padding: 0 8px 10px;
	}
	
	#enterprise-search {
		padding: 16px 18px;
	}
	
	#enterprise-search > div {
		flex-direction: column;
		gap: 12px;
	}
	
	#search-company,
	#search-position {
		min-width: 100%;
		max-width: 100%;
	}
	
	#btn-search,
	#btn-reset {
		width: 100%;
	}
	
	/* 工程师列表响应式 */
	.engineer-item {
		flex-direction: column;
		padding: 16px;
	}
	
	.engineer-item img {
		width: 100%;
		height: auto;
		margin-right: 0;
		margin-bottom: 16px;
	}
	
	.engineer-item h3 {
		font-size: 18px;
	}
	
	.engineer-item p {
		font-size: 14px;
	}
}
