.topic-top-banner {
	height: 625px;
	position: relative;
	z-index: 1;
	background: url('/static/cloud/images/topbanner.jpg') top center / 100% 100% no-repeat;
}

.topic-page {
	padding: 24px 0 40px;
	background: #f5f7fa;
	min-height: calc(100vh - 625px);
	box-sizing: border-box;
}

.topic-page-in {
	max-width: 1230px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

.topic-page-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.topic-page-total {
	margin: 0;
	font-size: 15px;
	color: #4a5568;
}

.topic-page-total em {
	font-style: normal;
	color: #1890ff;
	font-weight: 600;
}

.topic-page-grid {
	display: grid;
	grid-template-columns: repeat(2, 585px);
	gap: 22px 24px;
	justify-content: center;
}

.topic-page-card {
	width: 585px;
	height: 475px;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.topic-page-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.topic-page-thumb {
	display: block;
	position: relative;
	width: 100%;
	height: 349px;
	flex-shrink: 0;
	background: #e8ecf1;
	overflow: hidden;
	text-decoration: none;
}

.topic-page-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.topic-page-body {
	flex: 1;
	min-height: 0;
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
}

.topic-page-title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
	color: #222;
	line-height: 1.45;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.topic-page-title-link {
	color: inherit;
	text-decoration: none;
}

.topic-page-title-link:hover {
	color: #1074EB;
}

.topic-page-intro {
	margin: 0 0 12px;
	font-size: 13px;
	color: #888;
	line-height: 1.5;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	min-height: 39px;
}

.topic-page-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.topic-page-meta-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.topic-page-teacher,
.topic-page-date {
	font-size: 13px;
	color: #666;
	line-height: 1.4;
}

.topic-page-date {
	word-break: break-all;
}

.topic-page-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 88px;
	height: 32px;
	padding: 0 16px;
	border-radius: 8px;
	font-size: 13px;
	color: #fff;
	text-decoration: none;
	border: none;
	white-space: nowrap;
	box-sizing: border-box;
}

.topic-page-btn.is-active:hover {
    color: #ffffff !important;
}
.topic-page-btn.is-active {
	background: linear-gradient(90deg, #1074EB 0%, #0194E2 100%);
}

.topic-page-btn.is-ended {
	background: #949293;
	cursor: pointer;
}

.topic-page-btn.is-ended:hover {
	color: #fff;
}

.topic-page-empty {
	padding: 80px 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);
}

.topic-page .page-box {
	margin-top: 32px;
}

@media (max-width: 1240px) {
	.topic-page-grid {
		grid-template-columns: 585px;
	}
}

@media (max-width: 620px) {
	.topic-page-grid {
		grid-template-columns: 1fr;
	}

	.topic-page-card,
	.topic-page-thumb {
		width: 100%;
	}

	.topic-page-card {
		height: auto;
	}

	.topic-page-thumb {
		height: auto;
		aspect-ratio: 275 / 164;
	}
}
