/* 通用分类页面样式 */

/* Hero图片样式 */
.tic-hero-visual img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 18px;
}

/* Hero布局对齐 - 文本与图片顶部对齐 */
.tic-hero-grid {
  align-items: flex-start;
}

/* 头部描述文字样式 - 大号字体，最多3行 */
.category-page .tic-hero-copy .hero-subtitle {
  font-size: 20px;
  line-height: 1.8;
  max-height: 5.4em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 分类名称添加颜色并允许换行 */
.tic-hero h1 {
  color: #18c8ff;
  white-space: normal;
}

/* Article Grid Section - Use theme's existing case grid layout */
.article-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	margin-bottom: 3em;
}

/* 文章摘要 - 显示两行，超过就隐藏 */
.case-list-card .excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.8;
	max-height: 3.6em; /* 1.8 * 2 */
}

/* 文章日期样式 */
.case-list-card .post-date {
	margin: 14px 0 18px;
	color: var(--muted);
	line-height: 1.7;
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5em;
	flex-wrap: wrap;
	padding-top: 0px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 1em;
	background: var(--bg-card);
	border: 1px solid var(--border-glow);
	border-radius: 8px;
	color: var(--text-sub);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
	background: rgba(24, 200, 255, 0.1);
	border-color: var(--cyan);
	color: var(--cyan);
}

.pagination .page-numbers.current {
	background: var(--primary);
	border-color: var(--cyan);
	color: var(--text-main);
	font-weight: 600;
}

.pagination .page-numbers.dots {
	background: transparent;
	border: none;
	color: var(--text-sub);
}

/* Responsive Design */
@media (max-width: 1199px) {
	.article-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.article-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}
	
	.pagination .page-numbers {
		min-width: 40px;
		height: 40px;
		padding: 0 0.875em;
	}
}

/* 自定义分类分页样式 */
.category-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 40px;
	padding-top: 20px;
}

.category-pagination .pagination-btn,
.category-pagination .pagination-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
	cursor: pointer;
}

.category-pagination .pagination-btn:hover,
.category-pagination .pagination-page:hover {
	background: rgba(24, 200, 255, 0.1);
	border-color: #18c8ff;
	color: #18c8ff;
}

.category-pagination .pagination-page.active {
	background: #18c8ff;
	border-color: #18c8ff;
	color: #fff;
}

.category-pagination .pagination-btn svg {
	width: 18px;
	height: 18px;
}

/* 响应式分页 */
@media (max-width: 767px) {
	.category-pagination {
		gap: 6px;
	}
	
	.category-pagination .pagination-btn,
	.category-pagination .pagination-page {
		min-width: 38px;
		height: 38px;
		padding: 0 10px;
		font-size: 13px;
	}
	
	.category-pagination .pagination-btn svg {
		width: 16px;
		height: 16px;
	}
}