/* ========== 主体布局（两列） ========== */
.main-content {
	padding: 20px 20px;
}
.content-grid {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 30px;
}

/* ===== 左侧新闻列表 ===== */
.news-list {
	display: flex;
	flex-direction: column;
	gap: 25px;
}
.news-item {
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
	padding: 22px 25px;
	transition: all 0.3s ease;
}
.news-item:hover {
	box-shadow: 0 8px 20px rgba(0,0,0,0.05);
	border-color: #9d1f2c;
}
.news-item .meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 15px;
	font-size: 13px;
	color: #999;
	margin-bottom: 10px;
}
.news-item .meta .category {
	background: #9d1f2c;
	color: #fff;
	padding: 2px 12px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 500;
}
.news-item h3 {
	font-size: 20px;
	font-weight: 600;
	color: #222;
	margin-bottom: 10px;
	line-height: 1.4;
}
.news-item h3 a {
	color: inherit;
	transition: color 0.2s;
}
.news-item h3 a:hover {
	color: #9d1f2c;
}
.news-item .summary {
	font-size: 14px;
	color: #666;
	line-height: 1.8;
	margin-bottom: 15px;
}
.news-item .more-link {
	color: #9d1f2c;
	font-size: 13px;
	font-weight: 500;
}
.news-item .more-link:hover {
	text-decoration: underline;
}
.news-item .date {
	white-space: nowrap;
}

/* ===== 分页 ===== */
.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}
.pagination li{
	display: inline-block;
	padding: 8px 16px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	color: #555;
	transition: 0.3s;
}
.pagination li:hover {
	background: #9d1f2c;
	color: #fff;
	border-color: #9d1f2c;
}
.pagination .active {
	background: #9d1f2c;
	color: #fff;
	border-color: #9d1f2c;
}
.pagination .disabled {
	opacity: 0.5;
	cursor: default;
}

/* ===== 右侧边栏 ===== */
.sidebar {
	display: flex;
	flex-direction: column;
	gap: 25px;
}
.sidebar-module {
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
	overflow: hidden;
}
.sidebar-module .module-title {
	background: #f8f8f8;
	padding: 12px 18px;
	border-bottom: 2px solid #9d1f2c;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}
.sidebar-module .module-body {
	padding: 15px 18px;
}

/* 搜索框 */
.sidebar-search {
	display: flex;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
}
.sidebar-search input {
	flex: 1;
	padding: 8px 12px;
	border: none;
	outline: none;
	font-size: 13px;
}
.sidebar-search button {
	background: #9d1f2c;
	border: none;
	padding: 0 18px;
	color: #fff;
	cursor: pointer;
	font-size: 13px;
}

/* 分类列表 */
.category-list {
	list-style: none;
	padding: 0;
}
.category-list li {
	padding: 8px 0;
	border-bottom: 1px dashed #eee;
	font-size: 14px;
}
.category-list li:last-child {
	border-bottom: none;
}
.category-list li a {
	color: #555;
	display: flex;
	justify-content: space-between;
}
.category-list li a:hover {
	color: #9d1f2c;
}
.category-list .count {
	color: #999;
	font-size: 12px;
}

/* 热门新闻 */
.hot-list {
	list-style: none;
	padding: 0;
}
.hot-list li {
	padding: 10px 0;
	border-bottom: 1px dashed #eee;
	font-size: 14px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.hot-list li:last-child {
	border-bottom: none;
}
.hot-list .num {
	display: inline-block;
	width: 24px;
	height: 24px;
	background: #eee;
	border-radius: 50%;
	text-align: center;
	line-height: 24px;
	font-size: 12px;
	font-weight: 600;
	color: #999;
	flex-shrink: 0;
	margin-top: 10px;
}
.hot-list .num.top {
	background: #9d1f2c;
	color: #fff;
}
.hot-list li a {
	color: #333;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;    /* 控制显示行数 */
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-all;    /* 可选：允许单词换行，避免长单词溢出 */
}
.hot-list li a:hover {
	color: #9d1f2c;
}

/* ========== 底部 ========== */
.footer {
	background: #1a1a2e;
	color: #aaa;
}
.footer-bottom {
	background: #13132a;
	padding: 20px 0;
	text-align: center;
	font-size: 11px;
}
.footer-bottom p {
	margin-bottom: 5px;
}
.footer-links-bottom {
	margin-bottom: 12px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
}
.footer-links-bottom a {
	color: #aaa;
}
.footer-links-bottom a:hover {
	color: #9d1f2c;
}

/* ========== 返回顶部 ========== */
.back-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background: #9d1f2c;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	font-size: 20px;
}
.back-to-top.show {
	opacity: 1;
	visibility: visible;
}
.back-to-top:hover {
	background: #7a1620;
	transform: translateY(-3px);
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
	.content-grid {
		grid-template-columns: 1fr 260px;
		gap: 25px;
	}
}

@media (max-width: 992px) {
	.container { padding: 20px 24px; }
	.page-banner { height: 220px; }
	.page-banner h2 { font-size: 28px; }
	.content-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.sidebar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.page-banner { height: 180px; }
	.page-banner h2 { font-size: 22px; letter-spacing: 2px; }
	.page-banner p { font-size: 13px; }

	.main-content { padding: 24px 0; }
	.container { padding: 15px 15px; }

	.news-item { padding: 18px 16px; }
	.news-item h3 { font-size: 18px; }
	.pagination li{
		padding: 3px 2px;
	}
	/* ★ 手机端隐藏右侧边栏（全部内容） ★ */
	.sidebar {
		display: none;
	}
	.content-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.pagination a, .pagination span { padding: 6px 12px; font-size: 13px; }
}

@media (max-width: 480px) {
	.container { padding: 25px 10px 30px; }
	.page-banner { height: 150px; }
	.page-banner h2 { font-size: 18px; }
	.page-banner p { font-size: 11px; }

	.news-item { padding: 14px 12px; }
	.news-item .meta { font-size: 12px; gap: 10px; }
	.news-item h3 { font-size: 16px; }
	.news-item .summary { font-size: 13px; }
}