/* =============================================
   sub.css — 四平人大 通用子页面样式
   包含：面包屑 / 左侧菜单 / 右侧列表 / 分页
   PC + 移动端自适应
   ============================================= */

/* ---------- 面包屑 ---------- */
.sub-breadcrumb {
	background: #f5f5f5;
	border-bottom: 1px solid #e8e8e8;
	height: 44px;
	line-height: 44px;
}
.sub-breadcrumb .container {
	display: flex;
	align-items: center;
	overflow-x:auto;
	    flex-wrap: nowrap;
	font-size: 14px;
	color: #666;
}
.sub-breadcrumb .container a {
    display: block;
    flex-shrink: 0;
}
.sub-breadcrumb .iconfont {
	font-size: 16px;
	margin-right: 6px;
	color: #c2070a;
}
.sub-breadcrumb a {
	color: #555;
	transition: color 0.2s;
}
.sub-breadcrumb .container a:nth-child(1){font-weight: bold; color: #c2070a;}
.sub-breadcrumb a:hover { color: #c2070a; }
.crumb-sep {
	margin: 0 8px;
	color: #bbb;
}
.crumb-cur { color: #c2070a; font-weight: bold; }

/* ---------- 主内容区包裹 ---------- */
#sub-main {
	background: #f3f4f6;
	padding: 28px 0 48px;
}
.sub-wrap {
	display: flex;
	align-items: flex-start;
	gap: 22px;
}

/* ---------- 左侧菜单 ---------- */
.sub-left {
	width: 220px;
	flex-shrink: 0;
	background: #fff;
	box-shadow: -0.44px 0.90px 8px 1.28px rgba(0,0,0,0.11);
}
.sub-left-title {
	height: 56px;
	background: #c2070a;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #fff;
	font-size: 20px;
	font-weight: bold;
}
.sub-left-title img {
	height: 26px;
	width: 26px;
	object-fit: contain;
	filter: brightness(10);
}
.sub-left-menu {
	padding: 8px 0 16px;
}
.sub-left-menu li {
	border-bottom: 1px solid #f2f2f2;
}
.sub-left-menu li a {
	display: block;
	height: 50px;
	line-height: 50px;
	padding-left: 22px;
	font-size: 16px;
	color: #333;
	transition: all 0.2s;
	position: relative;
}
.sub-left-menu li a::before {
	content: '';
	display: block;
	width: 4px;
	height: 18px;
	background: #c2070a;
	position: absolute;
	left: 0;
	top: 50%;
	margin-top: -9px;
	opacity: 0;
	transition: opacity 0.2s;
}
.sub-left-menu li a:hover,
.sub-left-menu li.on a {
	color: #c2070a;
	background: #fff5f5;
}
.sub-left-menu li.on a::before,
.sub-left-menu li a:hover::before {
	opacity: 1;
}

/* ---------- 右侧内容区 ---------- */
.sub-right {
	flex: 1;
	min-width: 0;
	background: #fff;
	box-shadow: -0.44px 0.90px 8px 1.28px rgba(0,0,0,0.11);
	padding: 0 25px 30px;
}

/* 栏目标题 */
.sub-right-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 2px solid #c2070a;
	padding: 18px 0 0;
	margin-bottom: 6px;
}
.sub-right-title-txt {
	height: 42px;
	background: #c2070a;
	color: #fff;
	font-size: 20px;
	font-weight: bold;
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 8px;
	border-radius: 4px 4px 0 0;
}
.sub-right-title-txt img {
	height: 22px;
	width: 22px;
	object-fit: contain;
	filter: brightness(10);
}
.sub-right-title-more a {
	font-size: 14px;
	color: #999;
	transition: color 0.2s;
}
.sub-right-title-more a:hover { color: #c2070a; }

/* ---------- 新闻列表 ---------- */
.news-list {
	margin-top: 10px;
}
.news-list li {
	border-bottom: 1px dashed #e5e5e5;
}
.news-list li:last-child { border-bottom: none; }
.news-list li a {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 18px 0;
	transition: background 0.2s;
}
.news-list li a:hover { background: #fafafa; }

/* 日期块 */
.nl-date {
	flex-shrink: 0;
	width: 64px;
	background: #f5f5f5;
	border: 1px solid #e8e8e8;
	text-align: center;
	padding: 6px 0;
	border-radius: 4px;
	transition: all 0.2s;
}
.nl-date2 {
	flex-shrink: 0;
	width: 80px;
	background: #f5f5f5;
	border: 1px solid #e8e8e8;
	text-align: center;
	padding: 0px 0;
	border-radius: 4px;
	transition: all 0.2s;
}
.nl-date2 img{display: block;}
.nl-date strong {
	display: block;
	font-size: 28px;
	font-weight: bold;
	color: #c2070a;
	line-height: 1.2;
}
.nl-date span {
	display: block;
	font-size: 12px;
	color: #999;
	line-height: 1.6;
}
.news-list li a:hover .nl-date {
	background: #c2070a;
	border-color: #c2070a;
}
.news-list li a:hover .nl-date strong,
.news-list li a:hover .nl-date span {
	color: #fff;
}

/* 文字区 */
.nl-info {
	flex: 1;
	min-width: 0;
}
.nl-info h3 {
	font-size: 18px;
	font-weight: bold;
	color: #222;
	line-height: 1.6;
	margin-bottom: 6px;
	transition: color 0.2s;
}
.news-list li a:hover .nl-info h3 { color: #c2070a; }
.nl-info p {
	font-size: 14px;
	color: #777;
	line-height: 1.8;
	margin-bottom: 8px;
}
.nl-meta {
	font-size: 13px;
	color: #aaa;
	display: flex;
	gap: 16px;
}

/* ---------- 分页 ---------- */
.sub-page {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding-top: 36px;
	padding-bottom: 8px;
	flex-wrap: wrap;
}
.pg-num,
.pg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #ddd;
	background: #fff;
	color: #555;
	font-size: 15px;
	border-radius: 4px;
	transition: all 0.2s;
	cursor: pointer;
}
.pg-num:hover,
.pg-btn:hover {
	border-color: #c2070a;
	color: #c2070a;
}
.pg-num.on {
	background: #c2070a;
	border-color: #c2070a;
	color: #fff;
	font-weight: bold;
}
.pg-ellipsis {
	color: #bbb;
	font-size: 15px;
	line-height: 38px;
}

/* =============================================
   移动端适配
   ============================================= */
@media screen and (max-width: 768px) {

	/* 面包屑 */
	.sub-breadcrumb { font-size: 12px; }
	.sub-breadcrumb .container { padding: 0 15px; }

	/* 主区域 */
	#sub-main { padding: 0 0 30px; }
	.sub-wrap {
		flex-direction: column;
		gap: 0;
	}

	/* 移动端子分类横滑 */
	.sub-wap-tab {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		background: #fff;
		border-bottom: 2px solid #c2070a;
		margin-bottom: 6px;
	}
	.sub-wap-tab::-webkit-scrollbar { display: none; }
	.sub-wap-tab ul {
		display: flex;
		white-space: nowrap;
		padding: 0 10px;
	}
	.sub-wap-tab ul li {
		display: inline-block;
		flex-shrink: 0;
	}
	.sub-wap-tab ul li a {
		display: block;
		padding: 10px 14px;
		font-size: 15px;
		color: #555;
		font-weight: bold;
	}
	.sub-wap-tab ul li.on a {
		color: #c2070a;
		border-bottom: 2px solid #c2070a;
	}

	/* 右侧内容 */
	.sub-right {
		width: calc(100% - 30px);
		padding: 0 15px 20px;
		box-shadow: none;
	}
	.sub-right-title { padding-top: 14px; }
	.sub-right-title-txt { font-size: 16px; height: 36px; padding: 0 14px; }
	.sub-right-title-txt img { height: 18px; width: 18px; }

	/* 新闻列表移动端 */
	.news-list li a { gap: 12px; padding: 14px 0; }
	.nl-date { width: 52px; }
	.nl-date strong { font-size: 22px; }
	.nl-info h3 { font-size: 15px; margin-bottom: 4px; }
	.nl-info p { font-size: 13px; }
	.nl-meta { font-size: 12px; gap: 10px; }

	/* 分页移动端 */
	.sub-page { gap: 6px; padding-top: 22px; }
	.pg-num, .pg-btn { min-width: 32px; height: 32px; font-size: 13px; }
}
