/* 银河录像局 - 分类/归档列表页 */

.yhj-archive {
	font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: #333;
	background: #f4f4f4;
	-webkit-font-smoothing: antialiased;
}

.yhj-archive img {
	height: 36px;
	width: auto;
}

.yhj-archive .yhj-breadcrumb a,
.yhj-archive .yhj-hot-list a {
	text-decoration: none;
	color: inherit;
}

/* Breadcrumb */
.yhj-archive .yhj-breadcrumb {
	background: #fff;
	border-bottom: 1px solid #f0f0f0;
}

.yhj-archive .yhj-breadcrumb__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 24px;
	font-size: 13px;
	color: #999;
}

.yhj-archive .yhj-breadcrumb a {
	color: #999;
	transition: color 0.2s;
}

.yhj-archive .yhj-breadcrumb a:hover {
	color: #007bff;
}

.yhj-archive .yhj-breadcrumb span {
	margin: 0 6px;
	color: #ccc;
}

/* Layout */
.yhj-archive-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 24px;
	align-items: start;
}

.yhj-archive-card {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	padding: 28px 32px;
}

.yhj-section-title {
	font-size: 20px;
	font-weight: 700;
	color: #222;
	margin-bottom: 24px;
	padding-left: 14px;
	border-left: 4px solid #007bff;
	line-height: 1.3;
}

/* Archive list */
.yhj-archive-list {
	display: flex;
	flex-direction: column;
}

.yhj-archive-item {
	display: flex;
	gap: 20px;
	padding: 24px 0;
	border-bottom: 1px solid #f0f0f0;
}

.yhj-archive-item:first-child {
	padding-top: 0;
}

.yhj-archive-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.yhj-archive-item__thumb {
	flex: 0 0 200px;
	width: 200px;
	height: 130px;
	border-radius: 8px;
	overflow: hidden;
	background: #eee;
}

.yhj-archive-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.yhj-archive-item__thumb:hover img {
	transform: scale(1.03);
}

.yhj-archive-item__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.yhj-archive-item__title {
	font-size: 18px;
	font-weight: 700;
	color: #222;
	line-height: 1.4;
	margin-bottom: 10px;
}

.yhj-archive-item__title a {
	transition: color 0.2s;
}

.yhj-archive-item__title a:hover {
	color: #007bff;
}

.yhj-archive-item__excerpt {
	font-size: 14px;
	color: #666;
	line-height: 1.7;
	margin-bottom: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.yhj-archive-item__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	font-size: 13px;
	color: #999;
	margin-top: auto;
}

.yhj-archive-item__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.yhj-archive-item__meta-item img {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.yhj-archive-item__meta-like {
	margin-left: auto;
}

.yhj-archive-empty {
	font-size: 15px;
	color: #999;
	text-align: center;
	padding: 40px 0;
}

/* Pagination */
.yhj-archive-pagination {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #f0f0f0;
}

.yhj-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	margin: 0 4px 8px 0;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	font-size: 14px;
	color: #666;
	background: #fff;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.yhj-archive-pagination a.page-numbers:hover {
	color: #007bff;
	border-color: #007bff;
}

.yhj-archive-pagination .page-numbers.current {
	color: #fff;
	background: #007bff;
	border-color: #007bff;
}

.yhj-archive-pagination ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}

.yhj-archive-pagination li {
	margin: 0;
}

/* Sidebar */
.yhj-archive .yhj-sidebar {
	position: sticky;
	top: 90px;
}

.yhj-archive .yhj-widget {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	padding: 24px;
}

.yhj-archive .yhj-widget__title {
	font-size: 16px;
	font-weight: 700;
	color: #222;
	margin-bottom: 16px;
	padding-left: 12px;
	border-left: 4px solid #007bff;
	line-height: 1.3;
}

.yhj-archive .yhj-hot-list {
	list-style: none;
}

.yhj-archive .yhj-hot-list li {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
}

.yhj-archive .yhj-hot-list li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.yhj-archive .yhj-hot-list li:first-child {
	padding-top: 0;
}

.yhj-archive .yhj-hot-list__thumb {
	flex: 0 0 80px;
	width: 80px;
	height: 56px;
	border-radius: 6px;
	overflow: hidden;
	background: #eee;
}

.yhj-archive .yhj-hot-list__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yhj-archive .yhj-hot-list__title {
	font-size: 13px;
	color: #333;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 4px;
	transition: color 0.2s;
}

.yhj-archive .yhj-hot-list a:hover .yhj-hot-list__title {
	color: #007bff;
}

.yhj-archive .yhj-hot-list__date {
	font-size: 12px;
	color: #bbb;
}

.yhj-archive .yhj-hot-list__empty {
	font-size: 13px;
	color: #999;
}

/* Back to top */
.yhj-archive .yhj-back-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 40px;
	height: 40px;
	background: #007bff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s, background 0.2s;
	z-index: 99;
	box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.yhj-archive .yhj-back-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.yhj-archive .yhj-back-top:hover {
	background: #0056b3;
}

.yhj-archive .yhj-back-top img {
	width: 18px;
	height: 18px;
}

/* Responsive */
@media (max-width: 960px) {
	.yhj-archive-wrap {
		grid-template-columns: 1fr;
	}

	.yhj-archive .yhj-sidebar {
		position: static;
	}
}

@media (max-width: 640px) {
	.yhj-archive-card {
		padding: 20px 16px;
	}

	.yhj-archive-item {
		flex-direction: column;
		gap: 14px;
	}

	.yhj-archive-item__thumb {
		flex: none;
		width: 100%;
		height: 180px;
	}

	.yhj-archive-item__meta-like {
		margin-left: 0;
	}
}
