/**
 * 新闻列表 / 详情样式（对齐 jingtai/news.html、新闻详情.html）
 */

/* —— 分类 Tab —— */
.site-page-news .news-filter {
	background: var(--bg);
	padding: 70px 0 10px;
}

.site-page-news .news-filter .tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
}

.site-page-news .news-filter .tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 34px;
	font-size: 15px;
	letter-spacing: 2px;
	color: var(--text);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 30px;
	cursor: pointer;
	text-decoration: none;
	transition: all .3s ease;
}

.site-page-news .news-filter .tab:hover {
	color: var(--brand);
	border-color: var(--brand);
}

.site-page-news .news-filter .tab.active {
	background: var(--brand);
	color: #fff;
	border-color: var(--brand);
}

@media (max-width: 560px) {
	.site-page-news .news-filter .tabs {
		gap: 10px;
	}

	.site-page-news .news-filter .tab {
		padding: 8px 20px;
		font-size: 14px;
	}
}

/* —— 新闻列表 —— */
.site-page-news .news-list {
	background: var(--bg);
	padding: 40px 0 60px;
}

.site-page-news .news-list .wrap {
	max-width: 1200px;
	margin: 0 auto;
}

.site-page-news .news-list .item {
	display: flex;
	gap: 34px;
	padding: 28px;
	margin-bottom: 26px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	transition: all .3s ease;
}

.site-page-news .news-list .item:hover {
	box-shadow: 0 14px 36px rgba(0, 0, 0, .09);
	border-color: var(--brand);
	transform: translateY(-4px);
}

.site-page-news .news-list .item .thumb {
	position: relative;
	flex-shrink: 0;
	width: 340px;
	height: 220px;
	border-radius: 8px;
	overflow: hidden;
	background: #eef0f2;
	display: block;
}

.site-page-news .news-list .item .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.site-page-news .news-list .item:hover .thumb img {
	transform: scale(1.06);
}

.site-page-news .news-list .item .thumb .badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	background: var(--brand);
	color: #fff;
	font-size: 12px;
	letter-spacing: 1px;
	padding: 3px 14px;
	border-radius: 20px;
}

.site-page-news .news-list .item .body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.site-page-news .news-list .item .meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
	font-size: 13px;
	color: var(--muted);
}

.site-page-news .news-list .item .meta .date {
	display: inline-flex;
	align-items: center;
	color: var(--brand);
	letter-spacing: 1px;
	font-weight: 500;
}

.site-page-news .news-list .item .meta .date svg {
	margin-right: 4px;
}

.site-page-news .news-list .item h3 {
	font-size: 21px;
	font-weight: 600;
	color: var(--ink);
	line-height: 1.45;
	margin-bottom: 12px;
}

.site-page-news .news-list .item h3 a {
	color: inherit;
	transition: color .25s;
}

.site-page-news .news-list .item h3 a:hover {
	color: var(--brand);
}

.site-page-news .news-list .item p {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.8;
	margin-bottom: 18px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.site-page-news .news-list .item .more {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 22px;
	font-size: 13px;
	color: var(--brand);
	border: 1px solid var(--brand);
	border-radius: 20px;
	text-decoration: none;
	transition: all .3s ease;
}

.site-page-news .news-list .item .more:hover {
	background: var(--brand);
	color: #fff;
}

.site-page-news .news-list .empty {
	text-align: center;
	color: var(--muted);
	padding: 80px 0;
	font-size: 15px;
}

.site-page-news .news-pagination {
	background: var(--bg);
	padding: 10px 0 90px;
}

.site-page-news .news-pagination .pagination .page-numbers .current,
.site-page-news .news-pagination .pagination .page-numbers a:hover {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.site-page-news .news-pagination .pagination .page-numbers a:hover {
	background: #fff;
	color: var(--brand);
}

.site-page-news .news-pagination .pagination .page-numbers .current {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

@media (max-width: 900px) {
	.site-page-news .news-list .item {
		flex-direction: column;
		gap: 18px;
		padding: 20px;
	}

	.site-page-news .news-list .item .thumb {
		width: 100%;
		height: auto;
		aspect-ratio: 340 / 200;
	}
}

@media (max-width: 560px) {
	.site-page-news .news-list .item h3 {
		font-size: 18px;
	}
}

/* —— 新闻详情 —— */
.site-single-post .article-sec {
	background: var(--bg);
	padding: 70px 0 40px;
}

.site-single-post .article {
	max-width: 900px;
	margin: 0 auto;
	padding: 50px 60px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, .04);
}

.site-single-post .article h1 {
	font-size: 30px;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.4;
	margin-bottom: 20px;
}

.site-single-post .article .meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	padding-bottom: 22px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--line);
	font-size: 13px;
	color: var(--muted);
}

.site-single-post .article .meta span,
.site-single-post .article .meta a.cat {
	display: inline-flex;
	align-items: center;
}

.site-single-post .article .meta svg {
	margin-right: 5px;
	flex-shrink: 0;
}

.site-single-post .article .meta .cat {
	background: var(--brand-light);
	color: var(--brand);
	padding: 2px 14px;
	border-radius: 20px;
	font-size: 12px;
	text-decoration: none;
}

.site-single-post .article .meta .cat:hover {
	background: var(--brand);
	color: #fff;
}

.site-single-post .article .content {
	color: var(--text);
}

.site-single-post .article .content > *:first-child {
	margin-top: 0;
}

.site-single-post .article .content > *:last-child {
	margin-bottom: 0;
}

.site-single-post .article .content p {
	font-size: 15.5px;
	line-height: 2;
	color: var(--text);
	margin-bottom: 18px;
	text-align: justify;
}

.site-single-post .article .content h2,
.site-single-post .article .content h3,
.site-single-post .article .content h4 {
	color: var(--ink);
	margin: 32px 0 16px;
	line-height: 1.4;
}

.site-single-post .article .content h2 {
	font-size: 22px;
}

.site-single-post .article .content h3 {
	font-size: 20px;
}

.site-single-post .article .content ul,
.site-single-post .article .content ol {
	margin: 0 0 22px;
	padding-left: 1.4em;
}

.site-single-post .article .content ul {
	list-style: disc;
}

.site-single-post .article .content ol {
	list-style: decimal;
}

.site-single-post .article .content li {
	font-size: 15px;
	line-height: 1.9;
	color: var(--text);
	margin: 4px 0;
}

.site-single-post .article .content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 12px 0 24px;
}

.site-single-post .article .content a {
	color: var(--brand);
}

.site-single-post .article .content a:hover {
	text-decoration: underline;
}

.site-single-post .article .tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.site-single-post .article .tags a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 18px;
	font-size: 13px;
	color: var(--text);
	background: var(--bg-gray);
	border-radius: 20px;
	text-decoration: none;
	transition: background .25s, color .25s;
}

.site-single-post .article .tags a b {
	color: var(--brand);
	font-weight: 500;
}

.site-single-post .article .tags a:hover {
	background: var(--brand-light);
	color: var(--brand);
}

@media (max-width: 768px) {
	.site-single-post .article {
		padding: 30px 22px;
	}

	.site-single-post .article h1 {
		font-size: 23px;
	}

	.site-single-post .article .content p {
		font-size: 15px;
	}
}

/* —— 上一篇 / 下一篇 —— */
.site-single-post .pn-sec {
	background: var(--bg);
	padding: 10px 0 40px;
}

.site-single-post .pn {
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.site-single-post .pn a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 24px;
	background: var(--bg-gray);
	border: 1px solid var(--line);
	border-radius: 8px;
	font-size: 14px;
	color: var(--muted);
	text-decoration: none;
	transition: all .3s ease;
}

.site-single-post .pn a:hover {
	border-color: var(--brand);
	color: var(--brand);
	background: #fff;
}

.site-single-post .pn a b {
	color: var(--ink);
	font-weight: 500;
	margin-left: 6px;
}

.site-single-post .pn a:hover b {
	color: var(--brand);
}

.site-single-post .pn .tag {
	flex-shrink: 0;
	color: var(--brand);
	font-weight: 600;
	letter-spacing: 1px;
}

/* —— 相关新闻 —— */
.site-single-post .related {
	background: var(--bg-gray);
}

.site-single-post .related .grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	max-width: 1200px;
	margin: 0 auto;
}

.site-single-post .related .card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	transition: all .3s ease;
}

.site-single-post .related .card:hover {
	box-shadow: 0 14px 34px rgba(0, 0, 0, .10);
	transform: translateY(-6px);
	border-color: var(--brand);
}

.site-single-post .related .card .pic {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eef0f2;
}

.site-single-post .related .card .pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.site-single-post .related .card:hover .pic img {
	transform: scale(1.06);
}

.site-single-post .related .card .info {
	padding: 20px 22px 24px;
}

.site-single-post .related .card .date {
	font-size: 12px;
	color: var(--brand);
	letter-spacing: 1px;
}

.site-single-post .related .card h4 {
	font-size: 16px;
	font-weight: 600;
	color: var(--ink);
	line-height: 1.5;
	margin-top: 10px;
}

.site-single-post .related .card h4 a {
	color: inherit;
	transition: color .25s;
}

.site-single-post .related .card h4 a:hover {
	color: var(--brand);
}

@media (max-width: 900px) {
	.site-single-post .related .grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}
