/* -------------------------------------------------------------------------
 * RT News homepage: left category tree + right paginated post list.
 * ------------------------------------------------------------------------- */

/* --- Site header brand -------------------------------------------------- */

.rt-site-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #111111;
}

.rt-site-brand:hover {
	color: #111111;
}

.rt-site-logo {
	display: inline-block;
	width: 34px;
	height: 34px;
	background: url('../images/zhongke-logo.webp') no-repeat center / contain;
}

.rt-site-name {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

/* --- Shared page grid --------------------------------------------------- */

.rt-news-home {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 24px 60px;
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}

.rt-news-single {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 24px 60px;
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}

.rt-single-content {
	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 10px;
	padding: 30px 34px;
	min-width: 0;
}

.rt-single-meta {
	color: #9ca3af;
}

.rt-single-meta a {
	color: #555555;
	text-decoration: none;
}

.rt-single-meta a:hover {
	color: #2563eb;
}

/* --- Category tree ----------------------------------------------------- */

.rt-cat-tree {
	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 10px;
	padding: 18px 16px;
	position: sticky;
	top: 24px;
}

.rt-cat-tree-title {
	font-size: 16px;
	font-weight: 600;
	color: #111111;
	padding: 0 4px 12px;
	margin-bottom: 10px;
	border-bottom: 1px solid #f0f0f0;
}

.rt-cat-tree ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rt-cat-all,
.rt-cat-row,
.rt-cat-link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 9px 10px;
	border-radius: 7px;
	font-size: 14px;
	line-height: 1.4;
	color: #333333;
	text-decoration: none;
}

.rt-cat-all:hover,
.rt-cat-row:hover,
.rt-cat-link:hover {
	background: #f5f7fa;
	color: #2563eb;
}

.rt-cat-all.is-current,
.rt-cat-item.is-current > .rt-cat-row,
.rt-cat-item.is-current > .rt-cat-link {
	background: #eef4ff;
	color: #2563eb;
	font-weight: 500;
}

.rt-cat-row {
	cursor: pointer;
	user-select: none;
}

.rt-cat-row:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: -2px;
}

.rt-cat-toggle {
	flex: none;
	color: #9ca3af;
	transition: transform 0.18s ease;
}

.rt-cat-item.is-open > .rt-cat-row .rt-cat-toggle {
	transform: rotate(90deg);
}

.rt-cat-name,
.rt-cat-link {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rt-cat-count {
	flex: none;
	margin-left: auto;
	font-size: 12px;
	color: #9ca3af;
}

.rt-cat-children {
	display: none;
	margin: 2px 0 2px 16px;
	padding-left: 8px;
	border-left: 1px dashed #e5e7eb;
}

.rt-cat-item.is-open > .rt-cat-children {
	display: block;
}

/* --- Post list ---------------------------------------------------------- */

.rt-post-list {
	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 10px;
	padding: 26px 30px;
	min-width: 0;
}

.rt-post-list-head {
	padding-bottom: 14px;
	margin-bottom: 6px;
	border-bottom: 2px solid #111111;
}

.rt-post-list-title {
	font-size: 20px;
	font-weight: 600;
	color: #111111;
	margin: 0;
}

.rt-post-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rt-post-item {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 18px;
	padding: 16px 2px;
	border-bottom: 1px solid #f2f2f2;
}

.rt-post-item:last-child {
	border-bottom: none;
}

.rt-post-title {
	color: #111111;
	font-size: 16px;
	line-height: 1.5;
	text-decoration: none;
	transition: color 0.15s ease;
}

.rt-post-title:hover {
	color: #2563eb;
}

.rt-post-date {
	flex: none;
	font-size: 13px;
	color: #9ca3af;
	white-space: nowrap;
}

.rt-no-posts {
	padding: 32px 0;
	text-align: center;
	color: #9ca3af;
}

/* --- Pagination --------------------------------------------------------- */

.rt-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 26px;
}

.rt-pagination .page-numbers {
	min-width: 34px;
	padding: 7px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 7px;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
	color: #333333;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.rt-pagination .page-numbers:hover {
	border-color: #2563eb;
	color: #2563eb;
}

.rt-pagination .page-numbers.current {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
	font-weight: 600;
}

.rt-pagination .page-numbers.dots {
	border-color: transparent;
}

/* --- Filing info -------------------------------------------------------- */

.rt-filing-wrap {
	background: #fafafa;
	border-top: 1px solid #ececec;
}

.rt-filing {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13px;
	color: #666666;
	text-align: center;
}

.rt-filing a {
	color: #666666;
	text-decoration: none;
}

.rt-filing a:hover {
	color: #2563eb;
}

.rt-filing-sep {
	color: #cccccc;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 860px) {
	.rt-news-home {
		grid-template-columns: 1fr;
		padding: 24px 16px 48px;
		gap: 20px;
	}

	.rt-news-single {
		grid-template-columns: 1fr;
		padding: 24px 16px 48px;
		gap: 20px;
	}

	.rt-cat-tree {
		position: static;
	}

	.rt-post-list,
	.rt-single-content {
		padding: 20px;
	}

	.rt-post-item {
		flex-direction: column;
		gap: 4px;
	}

	.rt-site-name {
		font-size: 16px;
	}
}
