:root {
	--bg: #ffffff;
	--border-color: #e5e7eb;
	--shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	--shadow-hover: 0 12px 30px rgba(59, 130, 246, 0.12);
}

.case-section {
	background: #ffffff;
	padding: 100px 40px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
}
/* ========== 分类导航 ========== */
.category-section {
	padding: 20px 0 0 0;
	    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.category-list {
	display: flex;
	justify-content: center;
	gap: 260px;
}
.category-item:hover, .category-item.active {
    color: #3b82f6;
}
.category-item {
	position: relative;
}

.category-item a {
	display: inline-block;
	font-size: 18px;
	font-weight: 500;
	color: var(--fg-muted);
	cursor: pointer;
	padding: 12px 0;
	position: relative;
	transition: all 0.3s ease;
}

.category-item::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--blue), var(--purple));
	border-radius: 2px;
	transition: width 0.3s ease;
}

.category-item a {}

.category-item:hover a,
.category-item.active a {
	color: var(--primary);
}

.category-item:hover::after,
.category-item.active::after {
	width: 100%;
}
/* 筛选栏 */
.filter-bar {
	width: 100%;
	max-width: 1400px;
	display: flex;
	gap: 12px;
	margin-bottom: 50px;
	flex-wrap: wrap;
}

.filter-item {
	padding: 10px 24px;
	background: #fff;
	border: 1px solid var(--border-color);
	border-radius: 30px;
	color: var(--fg-muted);
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.filter-item:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.filter-item.active {
	background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 4px 12px rgba(0, 180, 160, 0.25);
}

/* 案例网格 */
.case-grid {
	width: 100%;
	width: 1600px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
	gap: 30px;
	position: relative;
	z-index: 10;
}

/* 案例卡片 - 浅色模式 */
.case-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	transition: all 0.4s ease;
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--border-color);
}

.case-card:hover {
	transform: translateY(-8px);
	border-color: rgba(59, 130, 246, 0.3);
	box-shadow: var(--shadow-hover);
}

/* 卡片顶部图片区域 */
.case-image {
	width: 100%;
	height: 220px;
	background: #f8fafc;
	/* 浅灰色背景 */
	position: relative;
	overflow: hidden;
}

/* 使用渐变边框作为装饰 */
.case-image::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
	opacity: 0;
	transition: opacity 0.3s ease;
}

.case-card:hover .case-image::after {
	opacity: 1;
}

/* 模拟图片内容 - SVG */
.case-image img {
	width: 100%;height: 220px;

}

/* 卡片内容 */
.case-content {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.case-tag-wrapper {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.case-tag {
	font-size: 12px;
	padding: 4px 10px;
	background: rgba(59, 130, 246, 0.08);
	color: var(--blue);
	border-radius: 4px;
}

.case-title {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 12px;
	color: var(--fg);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.case-title svg {
	opacity: 0;
	transform: translateX(-10px);
	transition: all 0.3s ease;
	color: var(--blue);
}

.case-card:hover .case-title svg {
	opacity: 1;
	transform: translateX(0);
}

.case-desc {
	font-size: 14px;
	color: var(--fg-muted);
	line-height: 1.6;
	margin-bottom: 20px;
	flex: 1;
}

.case-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid #f0f0f0;
	padding-top: 16px;
	font-size: 13px;
	color: var(--fg-muted);
}

.case-meta span {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* 底部分页 */
.pagination {
	margin-top: 80px;
	display: flex;
	gap: 10px;
}
#pages{
	display: flex;
}
.pagination li{
	list-style: none;
}
.pagination li a,.pagination li span{
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--border-color);
	color: var(--fg-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 14px;
	margin: 0 3px;
}

.pagination li.active a,.pagination li.active span{
	background: linear-gradient(135deg, var(--blue), var(--purple));
	border-color: var(--blue);
	color: #fff;
}

.pagination li:hover:not(.active) a{
	border-color: var(--blue);
	color: var(--blue);
}

/* 响应式 */
@media (max-width: 768px) {
	.case-section {
		padding: 20px;
	}.case-image img {
	width: 100%;height: 150px;

}
	.category-section {
	    padding:0 20px ;
	}
	.category-item a{
		font-size: 14px;
	}.category-item:hover::after, .category-item.active::after {
    width: 30%;
}
	.category-item {
		flex: 1;
		justify-content: center;
		text-align: center;
	}
.category-list {
    gap: 0;
}
	.section-title {
		font-size: 32px;
	}

	.case-image {
		height: 150px;
	}

	.case-grid {
		gap: 20px;
	}

	.pagination {
		margin-top: 20px;
	}

	.page-btn {
		width: 34px;
		height: 34px;
		font-size: 12px;
	}

	.case-content {
		padding: 15px;
	}

	.case-title {
		font-size: 18px;
	}

	.case-grid {
		grid-template-columns: 1fr;
	}

	.case-grid {
		width: 100%;
	}

	.filter-bar {
		overflow-x: auto;
		padding-bottom: 10px;
		flex-wrap: nowrap;
	}

	.filter-item {
		flex-shrink: 0;
	}
}