.course-square {
	padding: 24px 0 40px;
	background: #f5f7fa;
	min-height: calc(100vh - 88px);
	box-sizing: border-box;
}

.course-square-in {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.course-square-cate {
	flex: 0 0 271px;
	width: 200px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	padding: 20px 0;
	box-sizing: border-box;
}

.course-square-cate-title {
	margin: 0 0 12px;
	padding: 0 0 0 30px;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	line-height: 1.4;
}

.course-square-cate-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.course-square-cate-item {
	margin: 0;
	padding: 0 12px;
}

.course-square-cate-link {
	display: block;
	padding: 12px 20px;
	font-size: 15px;
	color: #4a5568;
	text-decoration: none;
	line-height: 1.4;
	transition: background 0.2s, color 0.2s;
}

.course-square-cate-link:hover {
	color: #1890ff;
	background: #f0f7ff;
	border-radius: 12px;
}

.course-square-cate-item.active .course-square-cate-link {
	background: #1890ff;
	color: #fff;
	font-weight: 500;
	border-radius: 12px;
}

.course-square-main {
	flex: 1;
	min-width: 0;
}

.course-sort-square {
	background: #fff;
	border: none;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.course-square-total {
	font-size: 15px;
	color: #4a5568;
	flex-shrink: 0;
}

.course-square-total em {
	font-style: normal;
	color: #1890ff;
	font-weight: 600;
}

.course-sort-info {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	flex-shrink: 0;
}

.course-search-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px 4px 12px;
	font-size: 14px;
	color: #4a5568;
	background: #f0f7ff;
	border: 1px solid #d6e8ff;
	border-radius: 16px;
	line-height: 1.4;
}

.course-search-tag em {
	font-style: normal;
	color: #1890ff;
	font-weight: 500;
	max-width: 240px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.course-search-tag-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: none;
	background: transparent;
	color: #999;
	cursor: pointer;
	border-radius: 50%;
}

.course-list-square {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px 24px;
}

.course-list-square .course-item {
	width: 100%;
	height: 310px;
}

.course-square-empty {
	grid-column: 1 / -1;
	padding: 60px 20px;
	text-align: center;
	font-size: 15px;
	color: #888;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.course-square-main .page-box {
	margin-top: 32px;
}