/* 首页图片推荐 + 频道矩阵（浅色主题，与 theme.json 配色一致） */

.lt-recommend {
	margin: 0 auto;
	padding: 32px;
	background: #eaf2fb;
	border: 1px solid #d9e2ec;
	border-radius: 16px;
}

.lt-rec-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
}

.lt-rec-heading {
	flex: 1 1 420px;
}

.lt-rec-kicker,
.lt-ch-kicker {
	display: block;
	margin-bottom: 8px;
	color: #0f5ea8;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
}

.lt-rec-title,
.lt-ch-title {
	margin: 0 0 8px;
	color: #16202c;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.3;
}

.lt-rec-subtitle {
	margin: 0;
	color: #5b6b7c;
	font-size: 14px;
	line-height: 1.7;
}

.lt-rec-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.lt-rec-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient( 135deg, #f5a12c 0%, #e8891e 100% );
	box-shadow: 0 8px 20px rgba( 232, 137, 30, 0.32 );
	color: #ffffff;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	animation: lt-rec-pulse 2.6s ease-in-out infinite;
}

.lt-rec-toggle:hover {
	transform: translateY( -2px );
	box-shadow: 0 12px 26px rgba( 232, 137, 30, 0.42 );
}

.lt-rec-toggle:focus-visible {
	outline: 3px solid #0f5ea8;
	outline-offset: 3px;
}

.lt-rec-toggle.is-open {
	background: linear-gradient( 135deg, #1677c8 0%, #0f5ea8 100% );
	box-shadow: 0 8px 20px rgba( 15, 94, 168, 0.28 );
	animation: none;
}

.lt-rec-star {
	font-size: 18px;
}

.lt-rec-count {
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.22 );
	font-size: 12px;
	font-weight: 600;
}

.lt-rec-hint {
	color: #5b6b7c;
	font-size: 12px;
}

@keyframes lt-rec-pulse {
	0%, 100% { box-shadow: 0 8px 20px rgba( 232, 137, 30, 0.32 ); }
	50% { box-shadow: 0 8px 28px rgba( 232, 137, 30, 0.58 ); }
}

/* 图集：hidden 属性 + 显式 display:none 双保险 */
.lt-rec-gallery[hidden] {
	display: none !important;
}

.lt-rec-gallery {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 20px;
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid #d9e2ec;
}

.lt-rec-gallery.is-revealed {
	animation: lt-rec-fade 0.45s ease both;
}

@keyframes lt-rec-fade {
	from { opacity: 0; transform: translateY( 10px ); }
	to { opacity: 1; transform: translateY( 0 ); }
}

.lt-rec-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #d9e2ec;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba( 22, 32, 44, 0.08 );
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lt-rec-card:hover {
	transform: translateY( -4px );
	box-shadow: 0 12px 28px rgba( 22, 32, 44, 0.14 );
}

.lt-rec-thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: #d9e2ec;
}

.lt-rec-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.lt-rec-card:hover .lt-rec-thumb img {
	transform: scale( 1.05 );
}

.lt-rec-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba( 22, 32, 44, 0.82 );
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.lt-rec-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px 18px;
}

.lt-rec-cat {
	color: #0f5ea8;
	font-size: 12px;
	font-weight: 700;
}

.lt-rec-cardtitle {
	color: #16202c;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.45;
}

.lt-rec-desc {
	color: #5b6b7c;
	font-size: 13px;
	line-height: 1.65;
}

.lt-rec-more {
	margin-top: 6px;
	color: #e8891e;
	font-size: 13px;
	font-weight: 700;
}

/* 频道矩阵 */
.lt-channels {
	margin: 0 auto;
	padding: 28px 0 4px;
}

.lt-ch-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.lt-ch-title {
	font-size: 26px;
}

.lt-ch-subtitle {
	margin: 0 0 4px;
	color: #5b6b7c;
	font-size: 14px;
}

.lt-ch-grid {
	display: grid;
	grid-template-columns: repeat( 5, minmax( 0, 1fr ) );
	gap: 14px;
}

.lt-ch-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 16px 20px;
	background: #ffffff;
	border: 1px solid #d9e2ec;
	border-radius: 10px;
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lt-ch-card:hover {
	border-color: #0f5ea8;
	transform: translateY( -3px );
	box-shadow: 0 10px 24px rgba( 15, 94, 168, 0.12 );
}

.lt-ch-no {
	color: #e8891e;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.lt-ch-name {
	color: #16202c;
	font-size: 17px;
	font-weight: 700;
}

.lt-ch-desc {
	color: #5b6b7c;
	font-size: 12px;
	line-height: 1.6;
}

.lt-ch-arrow {
	position: absolute;
	top: 16px;
	right: 16px;
	color: #0f5ea8;
	font-size: 16px;
	opacity: 0;
	transform: translateX( -4px );
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.lt-ch-card:hover .lt-ch-arrow {
	opacity: 1;
	transform: translateX( 0 );
}

@media ( max-width: 1000px ) {
	.lt-rec-gallery { grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); }
	.lt-ch-grid { grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); }
}

@media ( max-width: 640px ) {
	.lt-recommend { padding: 22px 18px; }
	.lt-rec-header { flex-direction: column; align-items: flex-start; gap: 18px; }
	.lt-rec-title { font-size: 24px; }
	.lt-rec-toggle { width: 100%; justify-content: center; }
	.lt-rec-gallery { grid-template-columns: 1fr; gap: 16px; }
	.lt-ch-grid { grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); gap: 10px; }
	.lt-ch-card { padding: 14px 12px 16px; }
	.lt-ch-name { font-size: 15px; }
}

@media ( prefers-reduced-motion: reduce ) {
	.lt-rec-toggle,
	.lt-rec-gallery.is-revealed { animation: none; }
	.lt-rec-card,
	.lt-ch-card,
	.lt-rec-thumb img { transition: none; }
}
