﻿
@media (max-width: 768px) {
	html, body {
		width: 100%;
		overflow-x: hidden;
	}

	/* 图片自适应，杜绝横向滚动条 */
	img {
		max-width: 100%;
		height: auto;
	}

	/* 头图：使用 cover 充满，或按需降低高度 */
	.banner {
		height: 100px; /* 按需调整高度 */
		background-image: url('https://img.hebnews.cn/templateRes/202311/23/308413/images/nav1.png');
		background-repeat: no-repeat;
		background-position: left;
		background-size: cover; /* 铺满屏幕 */
	}

	/* 顶部导航：允许换行、字体变小一点、取消横向外边距 */
	.nav {
		height: auto; /* 不强制 53px */
		line-height: 1.2;
		padding: 8px 10px;
		font-size: 16px;
	}

		.nav .page {
			display: flex;
			flex-wrap: wrap;
			justify-content: center;
			gap: 6px 10px;
		}

			.nav .page a {
				line-height: 1.6;
				padding: 6px 8px;
				display: inline-block;
			}

	/* 所有大容器去掉 1200px 固定宽度，改为全宽 */
	.g_width,
	.h2017_g_width,
	.h2017_footer {
		width: 100% !important;
		margin: 0 auto !important;
		box-sizing: border-box;
	}

	/* 内容区背景容器保持内边距，避免贴边 */
	.list-table-bg {
		padding: 10px 12px 20px;
	}

	/* 内层白盒宽度自适应 */
	.list-table {
		width: 100% !important;
		padding: 12px !important;
		box-sizing: border-box;
	}

	/* 标题条宽度自适应 */
	.search-title,
	.text-title {
		width: 100% !important;
		box-sizing: border-box;
		padding: 16px 12px 8px !important;
		font-size: 22px; /* 原 30，移动端适当减小 */
	}

	/* 登录区域：左右列改为上下堆叠 */
	.fl, .fr {
		float: none !important;
	}

	.login-box {
		width: 100% !important;
		padding: 16px 14px !important;
		margin-top: 10px !important;
		box-sizing: border-box;
		font-size: 16px; /* 原 18，移动端稍降 */
		box-shadow: none;
		border: 0;
	}

		.login-box input {
			width: 100% !important;
			margin-bottom: 18px !important;
			box-sizing: border-box;
		}

	.zj-code { /* 验证码区域若有，取消负 margin */
		float: none !important;
		margin: 8px 0 0 0 !important;
	}

	/* 右侧扫码下载区改为全宽块级，居中显示 */
	.list-table-bg .g_width > .fl + .fl,
	.list-table-bg .g_width > div[style*="300px"] {
		width: 100% !important;
		padding: 12px !important;
		margin-top: 10px !important;
		text-align: center !important;
		box-sizing: border-box;
	}

		.list-table-bg .g_width > .fl + .fl img {
			height: auto !important;
			max-height: 220px; /* 保留原高度上限，随屏等比缩放 */
		}

	/* 版面左右两栏在其他页面也常见，统一兜底 */
	.main-left,
	.main-right {
		width: 100% !important;
		padding: 12px !important;
		border: 0 !important;
		box-sizing: border-box;
	}

	/* 页脚：行距和字体稍调，勋章/图标自动换行 */
	.h2017_footer {
		height: auto !important;
		padding: 12px 10px 20px !important;
	}

	.h2017_about ul {
		width: 100% !important;
		padding: 0 6px !important;
		box-sizing: border-box;
	}

	.h2017_footer_in {
		font-size: 13px !important;
	}

		.h2017_footer_in p,
		.h2017_footer_in .fix3 {
			word-break: break-word;
		}

	#imgConac {
		width: 48px !important;
	}

	/* 其他可能的固定宽元素的兜底：任何 >= 320 的固定宽都强制不超过屏宽 */
	[style*="width: 1200px"],
	[style*="width:1200px"],
	[style*="width: 1160px"],
	[style*="width:1160px"],
	[style*="width: 800px"],
	[style*="width:800px"],
	[style*="width: 300px"],
	[style*="width:300px"] {
		width: 100% !important;
	}

	.h2017_footer .h2017_about {
		height: auto;
	}
}
