
/* 整体容器 */
.docs {
	background: #f5f7fa;
	min-height: calc(100vh - 80px);
	padding-bottom: 60px;
}

/* Banner 区域 */
.docs-banner {
	position: relative;
	width: 100%;
	height: 320px !important;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.docs-banner img {
	width: 100%;
	height: 320px !important;
	object-fit: cover;
	display: block;
}

.docs-banner::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 120px;
	background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
	pointer-events: none;
}

/* 内容区域容器 */
.docs-related {
	max-width: 1200px;
	margin: -60px auto 0;
	padding: 0 32px 40px;
	background: #ffffff;
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -4px 30px rgba(15, 23, 42, 0.08);
	position: relative;
	z-index: 10;
}

/* Tab 切换区域 */
.docs-tap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 50px;
	padding: 36px 20px 20px;
	border-bottom: 2px solid #f0f2f5;
}

.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%;
}

/* 资讯列表区域 */
.docs-body {
	padding: 32px 0 20px;
	min-height: 400px;
}

/* 单条资讯项 */
.docs-item {
	display: flex;
	align-items: center;
	padding: 18px 24px;
	margin-bottom: 14px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	transition: all 0.25s ease;
	cursor: pointer;
}

.docs-item:hover {
	background: #f9fafb;
	border-color: #0292fe;
	box-shadow: 0 8px 20px rgba(2, 146, 254, 0.15);
	/* transform: translateX(6px); */
}

.docs-item .iconfont {
	font-size: 18px;
	color: #0292fe;
	margin-right: 16px;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.docs-item:hover .iconfont {
	transform: scale(1.15);
}

.docs-item-title {
	flex: 1;
	font-size: 15px;
	font-weight: 500;
	color: #1f2937;
	text-decoration: none;
	line-height: 1.6;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.docs-item:hover .docs-item-title {
	color: #0292fe;
}

.docs-item-image {
	flex-shrink: 0;
	margin-left: 20px;
	font-size: 13px;
	color: #9ca3af;
	font-weight: 400;
}

/* 分页区域 */
#doc-page {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid #f0f2f5;
	text-align: center;
}

/* 覆盖 Layui 分页样式 */
#doc-page .layui-laypage {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: rgba(248, 250, 252, 0.8);
	border-radius: 999px;
}

#doc-page .layui-laypage a,
#doc-page .layui-laypage span {
	min-width: 36px;
	height: 34px;
	line-height: 32px;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid #d0d7e2;
	background: #ffffff;
	color: #4a5568;
	font-size: 13px;
	transition: all 0.2s ease;
}

#doc-page .layui-laypage a:hover {
	border-color: #40a9ff;
	color: #1890ff;
	box-shadow: 0 4px 10px rgba(64, 169, 255, 0.25);
	transform: translateY(-1px);
}

#doc-page .layui-laypage .layui-laypage-curr .layui-laypage-em {
	background: linear-gradient(135deg, #1890ff 0%, #0277cd 100%);
	border-color: #1890ff;
	color: #ffffff;
	box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
}

#doc-page .layui-laypage .layui-laypage-prev,
#doc-page .layui-laypage .layui-laypage-next {
	font-weight: 500;
}

/* 空状态 */
.docs-empty {
	text-align: center;
	padding: 80px 20px;
	color: #9ca3af;
}

.docs-empty i {
	font-size: 64px;
	margin-bottom: 20px;
	opacity: 0.4;
}

.docs-empty p {
	font-size: 15px;
	margin-top: 12px;
}

/* 响应式适配（可选） */
@media (max-width: 768px) {
	.docs-banner {
		height: 200px !important;
	}
	
	.docs-banner img {
		height: 200px !important;
	}
	
	.docs-related {
		margin-top: -40px;
		padding: 0 20px 30px;
		border-radius: 16px 16px 0 0;
	}
	
	.docs-tap {
		gap: 24px;
		padding: 24px 12px 16px;
	}
	
	.docs-tap-item {
		font-size: 15px;
		padding: 0 8px 10px;
	}
	
	.docs-body {
		padding: 20px 0;
	}
	
	.docs-item {
		flex-direction: column;
		align-items: flex-start;
		padding: 16px 18px;
	}
	
	.docs-item .iconfont {
		margin-bottom: 8px;
	}
	
	.docs-item-title {
		white-space: normal;
		margin-bottom: 10px;
	}
	
	.docs-item-image {
		margin-left: 0;
		align-self: flex-end;
	}
}
