﻿/* 引入思源宋体 */
@font-face {
	font-family: 'SourceHanSerifCN';
	src: url('../fonts/SourceHanSerifCN-Heavy.woff2') format('woff2'),
		 url('../fonts/SourceHanSerifCN-Heavy.woff') format('woff'),
		 url('../fonts/SourceHanSerifCN-Heavy.ttf') format('truetype');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Microsoft Yahei", sans-serif;
}

/* 淡入动画 */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 模块淡入效果 */
.module-title {
	animation: fadeIn 0.8s ease forwards;
}

/* 卡片淡入效果 */
.query-card, .service-card, .relief-card, .download-item {
	animation: fadeIn 0.8s ease forwards;
}

/* 页面容器 - 固定宽度模拟PC端 */
.container {
	/* width: 1200px; */
	margin: 0 auto;
	background: #fff url(../images/header-bg.png) no-repeat center top;
}

/* 通用文字标题样式 */
.module-title-text {
	text-align: center;
	font-size: 45px;
	color: #c51618;
	font-family: 'SourceHanSerifCN', serif;
	font-weight: 900;
	margin: 45px auto;
	padding: 20px 0;
	position: relative;
	width: 1200px;
	background: url(../images/title-bg.png) no-repeat center bottom;
}

/*.module-title-text::after {
	content: '';
	display: block;
	width: 80px;
	height: 4px;
	background: linear-gradient(to right, #c51618, #ff6b6b);
	margin: 15px auto 0;
	border-radius: 2px;
}*/

/* 顶部banner区域 */
.banner {
	width: 100%;
	height: 375px;
	position: relative;
	text-align: center;
	color: #fff;
	padding-top: 20px;
}

.banner .logo {
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 10px;
}

.banner .title {
	font-size: 40px;
	font-weight: bold;
	letter-spacing: 5px;
}

/* 导航栏样式 */
.nav {
	width: 1200px;
	height: 57px;
	background: url(../images/dhbg.png) no-repeat;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
	margin: 0 auto 20px auto;
}

.nav a {
	color: #fff;
	text-decoration: none;
	padding: 0px 63px;
	font-size: 18px;
	border-right: 1px solid #fff;
}

.nav a:last-child {
	border-right: none;
}

.nav a:hover {
	color: #ffd700;
	transform: translateY(-2px);
}

.nav a {
	transition: all 0.3s ease;
}

/* 通用模块标题样式 */
.module-title {
	text-align: center;
	font-size: 28px;
	color: #c51618;
	margin: 45px auto;
	position: relative;
	background: url(../images/title-bg.png) no-repeat center bottom;
	width: 1200px;
}

.module-title .more:hover{background:#840606}

.module-title .more{background:#d90100;color:#fff;padding: 9px 15px;border-radius:4px;font-size: 14px;text-decoration: none;position: absolute;right: 0;top: -9px;}

.scroll-container{
    width: 1286px; /* 显示两张卡片的宽度，但每次滚动一张 */
    height: 124px;
    margin: 0 auto 30px;
    overflow: hidden;
    position: relative;
    display: flex;
}

.module-title::before, .module-title::after {
	content: "";
	display: inline-block;
	width: 200px;
	height: 2px;
	/* background-color: #c51618; */
	margin: 0 15px;
	vertical-align: middle;
}

.download-item::before{
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	background-color: #fff;
	vertical-align: middle;
	border-radius: 10px;
	margin-right: 10px;
}

/* 信息查询模块 */
.info-query {
	display: flex;
	justify-content: center;
	gap: 50px;
	margin-bottom: 30px;
}

.query-card {
	/* width: 318px; */
	height: 150px;
	background-color: #fef0f0;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: #c51618;
	font-weight: bold;
	cursor: pointer;
}

.query-card:hover {
	background-color: #fde0e0;
	transform: scale(1.05);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.query-card {
	transition: all 0.3s ease;
}
.query-card a img{width:100%;height:100%;}

.query-card i {
	margin-right: 10px;
	font-style: normal;
}

/* 普法咨询模块 */
.legal-consult {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 40px;
	margin-bottom: 30px;
}

.consult-list {
	width: 875px;
}

.consult-list ul {
	list-style: none;
}

.consult-list li {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	/* border-bottom: 1px dashed #ccc; */
	font-size: 16px;
	color: #333;
}
.consult-list li span{font-size: 16px;
	color: #333;}
.consult-list li a{color: #333;text-decoration:none;}
.consult-list li a:hover{color:#c51618;}

.consult-list li {
	transition: all 0.3s ease;
}

.consult-list li:hover {
	transform: translateX(10px);
}

.consult-list li a::before{
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	background-color: #aba9a9;
	vertical-align: middle;
	border-radius: 10px;
	margin-right: 10px;
}

.consult-btn {
	width: 285px;
	height: 140px;
	background-color: #c51618;
	border-radius: 8px;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	font-size: 20px;
	font-weight: bold;
}

.consult-btn span {
	margin-top: 5px;
}

/* 邀约执法检查监督申请横幅 */
.invite-banner {
	width: 100%;
	/* height: 80px; */
	/* background: linear-gradient(to right, #f9d59b, #f6b863); */
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 26px;
	color: #c51618;
	font-weight: bold;
	margin-bottom: 50px;
	border-radius: 8px;
	margin-top: 45px;
}

/* 法律服务模块 */
.legal-service {
	padding: 30px 0;
	height: 399px;
	margin-bottom: 30px;
	background: url(../images/legal-services-bg.png) no-repeat center top;
}

.service-cards {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 50px;
}

.service-card {
	width: 284px;
	/* height: 120px; */
	background-color: #fff;
	border-radius: 17px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	/* font-size: 20px; */
	/* color: #c51618; */
	/* font-weight: bold; */
	/* border: 1px solid #f6b863; */
	transition: all 0.3s ease;
}

.service-card:hover {
	transform: translateY(-5px) scale(1.03);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}
.service-card img{width:100%;height:100%}

/* 监督救济模块 - 逐张滚动样式 */
.supervise-relief {
	width: 1200px; /* 限定滚动容器宽度 */
	height: 124px;
	margin: 0 auto 30px;
	overflow: hidden; /* 隐藏超出容器的内容 */
	position: relative;
	display: flex;
	align-items: center;
}

/* 左右箭头样式 */
.scroll-arrow {
	width: 45px;
	height: 90px;
	/* border-radius: 50%; */
	/* background-color: #f6b863; */
	color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	position: absolute;
	z-index: 10;
	font-size: 0;
	opacity: 0.8;
	transition: opacity 0.3s;
	margin-top: 11px;
}

.scroll-arrow:hover {
	opacity: 1;
}

.arrow-left {
	left: 0px;
	background: url(../images/left-arrow.png) no-repeat center;
}

.arrow-right {
	right: 0px;
	background: url(../images/right-arrow.png) no-repeat center / cover;
}

/* 滚动内容容器 - 移除自动动画，改为JS控制 */
.relief-scroll {
	display: flex;
	width: max-content;
	transition: transform 0.5s ease; /* 平滑滚动过渡 */
	transform: translateX(0); /* 初始位置 */
}

.relief-card {
	width: 580px;
	height: 124px;
	border-radius: 29px;
	display: flex;
	justify-content: center;
	align-items: center;
	/* font-size: 22px; */
	/* color: #c51618; */
	/* font-weight: bold; */
	margin: 0 10px; /* 卡片间距 */
	flex-shrink: 0; /* 防止卡片被压缩 */
	transition: all 0.3s ease;
}

.relief-card:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.relief-card a{display:block;width:100%;height: 100%;}
.relief-card a img{width:100%;height: 100%;border-radius: 18px;}

/* 文书下载模块 */
.document-download {
	margin-bottom: 40px;
	width: 1200px;
	margin: 0 auto;
}

.download-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}

.download-item {
	width: 49%;
	height: 60px;
	background: linear-gradient(to right, #fe8463, #e80100);
	/* border-radius: 8px; */
	display: flex;
	align-items: center;
	padding-left: 20px;
	font-size: 16px;
	color: #fff;
	padding-right: 10px;
	transition: all 0.3s ease;
}

.download-item:hover {
	transform: translateX(10px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.download-item a{
	font-size: 16px;
	color: #fff;
	text-decoration: none;
	}

/* 底部信息 - 左右图片标识样式 */
.footer {
	width: 100%;
	height: 263px;
	background: url(../images/footer-bg.png) no-repeat center bottom / cover;
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	line-height: 1.8;
	margin-top: 100px;
}

.footer-container{
	width: 1200px;
	/* height: 263px; */
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	line-height: 1.8;
	padding: 0 20px;
	margin: 0 auto;
	margin-top: 101px;
	}

.footer-logo {
	/* width: 60px; */
	height: 60px;
}

.footer-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.footer-text {
	text-align: center;
	flex: 1;
}
.footer-text a{color:#fff;text-decoration:none;}

/* 返回顶部按钮 */
.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	background-color: #c51618;
	color: #fff;
	font-size: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 1000;
}

.back-to-top:hover {
	background-color: #a01214;
	transform: scale(1.1);
}

.back-to-top.show {
	opacity: 1;
	visibility: visible;
}

/* ========== 新闻列表页样式 ========== */
.news-container {
	width: 1200px;
	margin: 0 auto 30px;
	display: flex;
	gap: 30px;
}

.news-sidebar {
	width: 250px;
	background-color: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
}

.news-sidebar h3 {
	color: #c51618;
	font-size: 18px;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #c51618;
}

.news-sidebar ul {
	list-style: none;
}

.news-sidebar li {
	margin-bottom: 15px;
}

.news-sidebar a {
	color: #333;
	text-decoration: none;
	transition: all 0.3s ease;
	display: block;
	padding: 8px 10px;
	border-radius: 4px;
}

.news-sidebar a:hover {
	color: #c51618;
	background-color: #fde0e0;
	transform: translateX(5px);
}

.news-main {
	flex: 1;
}

.news-list {
	background-color: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-item {
	padding: 20px 0;
	border-bottom: 1px dashed #ccc;
	transition: all 0.3s ease;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.news-item:last-child {
	border-bottom: none;
}

.news-item:hover {
	background-color: #f9f9f9;
	padding-left: 15px;
	border-radius: 4px;
}

.news-item h2 {
	font-size: 16px;
	flex: 1;
	margin: 0;
	font-weight: normal;
}
.news-item h2::before{
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	background-color: #aba9a9;
	vertical-align: middle;
	border-radius: 10px;
	margin-right: 10px;
}

.news-item h2 a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.news-item h2 a:hover {
	color: #c51618;
}

.news-meta {
	color: #999;
	font-size: 16px;
	margin-left: 20px;
	white-space: nowrap;
}

.pagination {
	display: flex;
	justify-content: center;
	margin-top: 30px;
	gap: 10px;
}

.pagination a {
	display: inline-block;
	padding: 8px 16px;
	background-color: #f9f9f9;
	color: #333;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.pagination a:hover {
	background-color: #c51618;
	color: #fff;
}

.pagination .active {
	background-color: #c51618;
	color: #fff;
}

/* ========== 新闻详情页样式 ========== */
.news-detail-container {
	width: 1200px;
	margin: 0 auto 50px;
}

.news-content {
	background-color: #fff;
	padding: 50px 60px;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	border: 1px solid #f0f0f0;
}

.news-title {
	font-size: 32px;
	color: #333;
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 3px solid #c51618;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

.news-info {
	color: #666;
	font-size: 14px;
	margin-bottom: 30px;
	padding: 15px 0;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #fafafa;
	padding: 15px 20px;
	border-radius: 6px;
}

.font-size-selector {
	display: flex;
	align-items: center;
	gap: 8px;
}

.font-size-selector span {
	color: #666;
	font-size: 14px;
	margin-right: 5px;
}

.font-size-selector button {
	padding: 6px 14px;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 20px;
	cursor: pointer;
	font-size: 13px;
	transition: all 0.3s ease;
	color: #666;
}

.font-size-selector button:hover {
	background-color: #c51618;
	color: #fff;
	border-color: #c51618;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(197, 22, 24, 0.3);
}

.font-size-selector button.active {
	background-color: #c51618;
	color: #fff;
	border-color: #c51618;
}

.print-btn {
	padding: 8px 20px;
	background: linear-gradient(135deg, #c51618, #e84a4c);
	border: none;
	border-radius: 20px;
	cursor: pointer;
	font-size: 14px;
	color: #fff;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(197, 22, 24, 0.3);
}

.print-btn:hover {
	background: linear-gradient(135deg, #a01214, #c51618);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(197, 22, 24, 0.4);
}

.news-body {
	line-height: 2;
	color: #333;
	font-size: 16px;
}

.news-body p {
	/*margin-bottom: 25px;*/
	text-indent: 2em;
	text-align: justify;
}

/*.news-body p:first-child {
	text-indent: 0;
}

.news-body p:first-child::first-letter {
	font-size: 3em;
	float: left;
	line-height: 1;
	margin-right: 8px;
	color: #c51618;
	font-weight: bold;
}*/

.news-body img {
	max-width: 100%;
	height: auto;
	/* margin: 30px auto; */
	/* border-radius: 8px; */
	/* display: block; */
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 打印样式 */
@media print {
	.banner, .nav, .module-title-text, .footer, .back-to-top, .font-size-selector, .print-btn {
		display: none !important;
	}
	
	.news-content {
		box-shadow: none;
		padding: 0;
		border: none;
	}
	
	.news-info {
		border-bottom: none;
		justify-content: flex-start;
		background-color: transparent;
		padding: 0;
	}
	
	.news-info div:first-child {
		display: block;
	}
	
	.news-info div:last-child {
		display: none;
	}
	
	body {
		background: white;
	}
	
	.container {
		width: 100%;
		margin: 0;
	}
	
	.news-title {
		font-size: 24px;
	}
	
	.news-body {
		font-size: 14px;
		line-height: 1.8;
	}
}

/* ========== 手机版响应式样式 ========== */
@media (max-width: 768px) {
	/* 基础布局 */
	.container {
		min-width: auto;
		width: 100%;
		padding: 0 15px;
		background: #fff url(../images/header-bg.png) no-repeat center top;
		background-size: 150%;
		padding: 0px !important;
	}

	.banner{height:120px;padding: 0 20px;}
	
	/* 导航栏 */
	.nav {
		width: 100%;
		height: auto;
		flex-wrap: wrap;
		gap: 5px;
		padding: 10px;
		background: #c51618;
		padding: 0 20px;
	}
	
	.nav a {
		flex: 1;
		min-width: 30%;
		text-align: center;
		padding: 10px;
		font-size: 14px;
		border-right: none;
		border-bottom: 1px solid #fff !important;
	}
	
	.nav a:last-child {
		border-bottom: none;
	}
	
	/* 模块标题 */
	.module-title {
		width: 100%;
		margin: 20px 0;
		font-size: smaller;
		background: url(../images/title-bg.png) no-repeat center bottom !important;
		padding: 0 20px;
	}

	.module-title .more{
		top: 26px;
	}
	
	.module-title img {
		width: 55%;
		height: auto;
	}

	.legal-service{
		height:auto;
		background: none;
		padding: 0;
	}
	
	/* 通用文字标题 */
	.module-title-text {
		width: 100%;
		font-size: 28px;
		margin: 20px 0;
		background: url(../images/title-bg.png) no-repeat center bottom !important;
	}
	
	/* 信息查询模块 */
	.info-query {
		flex-direction: column;
		gap: 15px;
		padding: 0 20px;
	}
	
	.query-card {
		width: 100%;
	}

	.invite-banner{		
		overflow: hidden;
		margin: 0;		
		padding: 0 20px;
	}
	.invite-banner img{
		width: 200%;
		margin-left: -186px;
		height: 100%;
	}
	
	/* 普法咨询模块 */
	.legal-consult {
		flex-direction: column;
		gap: 20px;
		padding: 0 20px;
	}
	
	.consult-list {
		width: 100%;
	}
	
	.consult-list li {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	
	.consult-list li a {
		flex: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	
	.consult-btn {
		width: 100%;
		overflow: hidden;
	}

	.consult-btn a{
		width: 100%;
	}

	.consult-btn img{
		width: 100%;
	}
	
	/* 法律服务模块 */
	.service-cards {
		display: flex;
		flex-wrap: wrap;  /* 允许换行 */
		gap: 20px;  /* 设置卡片之间的间距 */
		padding: 0 20px;
	}
	
	.service-card {
		 flex: 0 0 calc(50% - 10px);  /* 每行2个，减去gap的一半 */
 
		box-sizing: border-box;
	}
	
	/* 监督救济模块 */
	.scroll-container {
		width: 100%;
		padding: 0 20px;
	}
	
	.supervise-relief {
		width: 100%;
	}
	
	.relief-card {
		width: 100%;
		margin: 0;
	}
	
	/* 文书下载模块 */
	.document-download {
		width: 100%;
		padding: 0 20px;
	}
	
	.download-list {
		flex-direction: column;
		gap: 10px;
	}
	
	.download-item {
		width: 100%;
	}
	
	/* 底部信息 */
	.footer{height:auto;}
	
	.footer-container {
		flex-direction: column;
		gap: 20px;
		padding: 20px;
	}
	
	.footer-text {
		font-size: 12px;
		line-height: 1.6;
	}
	
	/* 返回顶部按钮 */
	.back-to-top {
		bottom: 20px;
		right: 20px;
		width: 45px;
		height: 45px;
		font-size: 20px;
	}
	
	/* 新闻列表页 */
	.news-container {
		flex-direction: column;
		gap: 20px;
	}
	
	.news-sidebar {
		width: 100%;
	}
	
	/* 新闻详情页 */
	.news-detail-container {
		width: 100%;
	}
	
	.news-content {
		padding: 20px;
	}
	
	.news-title {
		font-size: 24px;
	}
	
	.news-info {
		flex-direction: column;
		gap: 15px;
		text-align: center;
	}
	
	/* 新闻列表页手机版 */
	.news-container {
		flex-direction: column;
		gap: 20px;
		width: 100%;
	}
	
	.news-sidebar {
		width: 100%;
		order: 2;
		margin-top: 20px;
	}
	
	.news-sidebar ul {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
		justify-content: center;
	}
	
	.news-sidebar li {
		flex: 0 0 calc(50% - 5px);
		text-align: center;
	}
	
	.news-main {
		width: 100%;
		order: 1;
	}
	
	.news-item {
		padding: 15px;
		margin-bottom: 15px;
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 15px !important;
	}
	
	.news-item h2 {
		font-size: 18px !important;
		line-height: 1.4 !important;
		flex: 1 !important;
		margin: 0 !important;
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		max-width: calc(100% - 80px) !important;
	}
	.news-item h2::before{display: none;}
	.news-item h2 a {
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		display: block !important;
		max-width: 100% !important;
	}
	
	.news-meta {
		font-size: 14px !important;
		color: #666 !important;
		text-align: right !important;
		width: auto !important;
		flex-shrink: 0 !important;
		min-width: 60px !important;
	}
	
	/* 新闻详情页手机版 */
	.news-detail-container {
		width: 100%;
	}
	
	.news-content {
		padding: 15px;
	}
	
	.news-title {
		font-size: 24px;
		line-height: 1.4;
	}
	
	.news-info {
		flex-direction: column;
		gap: 15px;
		text-align: center;
		font-size: 14px;
	}
	
	.font-size-selector {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
		justify-content: center;
	}
	
	.print-btn {
		padding: 8px 16px;
		font-size: 14px;
	}
	
	.news-body {
		font-size: 16px;
		line-height: 1.8;
	}
	
	.news-body img {
		max-width: 100%;
		height: auto;
	}
}

/* 平板适配 */
@media (max-width: 1024px) {
	.container {
		min-width: auto;
		width: 100%;
		padding: 0 20px;
	}
	
	.nav {
		width: 100%;
	}
	
	.module-title {
		width: 100%;
	}
	
	.scroll-container {
		width: 100%;
	}
	
	/* 新闻列表页平板适配 */
	.news-container {
		flex-direction: column;
		gap: 30px;
	}
	
	.news-sidebar {
		width: 100%;
	}
	
	.news-sidebar ul {
		display: flex;
		flex-wrap: wrap;
		gap: 15px;
		justify-content: center;
	}
	
	.news-sidebar li {
		flex: 0 0 calc(33.333% - 10px);
	}
	
	.news-main {
		width: 100%;
	}
	
	/* 新闻详情页平板适配 */
	.news-detail-container {
		width: 100%;
	}
	
	.news-content {
		padding: 20px;
	}
	
	.news-title {
		font-size: 28px;
	}
}