/* 底部 */

.footer {

	height: 55rem;

	background: url(../img/footer.png);

	padding: 22rem 25rem 3.5rem 25rem;



	.QRCode {

		width: 22.9rem;

		height: 28.3rem;

		position: absolute;

		right: 15rem;

		top: -13.5rem;

	}



	.link-box {

		position: relative;



		.link {

			font-size: 2.8rem;

			color: white;

			margin-bottom: 4.5rem;

		}



		.line {

			margin-top: 3rem;

			margin-bottom: 0rem;

			width: 100%;

			height: 1px;

			background-color: white;

		}

	}

	

	.anticons-list {

		list-style: none;

		padding: 0;

		margin-bottom: 0;

	}

	

	.anticons-list li {

		width: 10rem;

		text-align: center;

		height: 70px;

		position: relative;

		display: inline-block;

		margin-right: 8.9rem;

	}

	

	.anticons-list li span {

		display: block;

		color: white;

		font-size: 1.6rem;

	}

	

	.anticons-list img {

		width: 3.6rem;

		height: 3.6rem;

	}

	

	.anticons-list li:last-child {

		width: 9rem;

		margin-right: 0;

	}

	

	.anticons-list li:first-child {

		width: 6.5rem;

	}



	.link-box a {

		color: white;

		font-size: 2rem;

		/* margin-right: 10rem; */

		font-weight: 200;

	}



	.link-box a:hover {

		color: #0B318F;

	}



	.footer-logo {

		width: 100%;

		position: relative;



		.logo {

			margin-top: 3rem;

			width: 76rem;

			height: auto;

			position: absolute;

			left: 0;

		}



		.footer-info {

			position: absolute;

			color: white;

			margin-top: 2rem;

			right: 10rem;

			font-size: 1.4rem;

			font-weight: 200;

		}

		

		.weichat {

			position: absolute;

			right: 3rem;

			top: 2.5rem;

		}

	}

}



.footer-shade {

	width: 100%;

	height: 55rem;

	position: absolute;

	background: linear-gradient(115.01deg, rgba(215, 0, 0, 0.59) 0%, rgba(105, 18, 81, 0.79) 39.85%, rgba(105, 18, 81, 0.79) 48.96%, rgba(0, 24, 112, 1) 100%);

}

/* ===== 以下全部规则仅桌面（>=1080）生效，手机端保持原样 ===== */
@media (min-width: 1440px) {
	/* ===== 固定宽度 1440 + 页脚/搜索 统一（仅供列表页/文章页使用） ===== */
	/* 桌面/平板固定字号；手机端沿用 JS 计算的字号 */
	@media (min-width: 1440px) {
		html { font-size: 7.5px !important; }
	}
	@media (min-width: 1440px) {
	}
	@media (min-width: 1440px) {
		#app > #PC { width: 100%; }
		#PC > div { width: 192rem; margin-left: auto; margin-right: auto; }
		#PC > .head, #PC > .footer { width: 100%; }
		.head { padding-left: 0 !important; padding-right: 0 !important; }
		.head .head-top, .head .menu { width: 192rem; margin-left: auto; margin-right: auto; }
	}

	.footer {
		padding-left: calc(50% - 71rem) !important;
		padding-right: calc(50% - 71rem) !important;
	}
	.footer .link-box .line { width: 100% !important; }
	.footer .link-box .anticons-list {
		display: flex !important;
		flex-wrap: nowrap !important;
		width: 100% !important;
		justify-content: space-between !important;
		font-size: 0 !important;
	}
	.footer .link-box .anticons-list li {
		flex: 0 0 auto !important;
		margin-right: 0 !important;
		text-align: center;
		width: 13rem !important;
		min-width: 13rem !important;
	}
	.footer .link-box .anticons-list li:last-child {
		width: 9rem !important;
		min-width: 9rem !important;
	}

	@media (min-width: 1440px) {
		/* 页头搜索：只留我们的图标，隐藏 CMS 组件输入框/按钮 */
		.head-top .search {
			position: absolute !important; right: 0 !important; top: 2rem !important;
			font-size: 3rem !important; line-height: 1 !important; color: #fff !important; cursor: pointer;
			display: block !important;
		}
		.head-top .search svg { display: block; width: 1em; height: 1em; fill: currentColor; }
		.head-top > div, .head-top [frag="面板1"], .head-top form,
		.head-top .keyword, .head-top input, .head-top .search-btn { display: none !important; }
		.head-top > i.search { display: block !important; }
	}

	/* ===== 页脚/页头通栏：消除右侧白边，缩放与页头一致 ===== */
	#PC { width: 100% !important; margin: 0 !important; }
	.footer {
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		left: auto !important;
		right: auto !important;
	}
	.footer-shade { width: 100% !important; }
}

body { min-width: 192rem !important; }

/* ===== 手机端页脚（由 html.iics-small 触发，与 JS 判定一致） ===== */
html.iics-small .footer {
	height: auto !important;
	min-height: 0 !important;
	padding: 44px 16px 24px 16px !important;
	background-size: cover !important;
	background-position: center top !important;
	overflow: hidden;
}

html.iics-small .footer > div[style] {
	position: relative !important;
	z-index: 2 !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	width: auto !important;
	margin: 0 !important;
}

html.iics-small .footer .footer-shade {
	z-index: 0 !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	height: auto !important;   /* 父高度 auto 时，用 top/bottom 拉伸才有效 */
	width: 100% !important;
}
html.iics-small .footer .link-box { width: 100% !important; }

html.iics-small .footer .link-box .anticons-list {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: flex-start !important;
	align-items: flex-start !important;
	gap: 0 !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0 !important;
}

html.iics-small .footer .link-box .anticons-list li {
	flex: 0 0 25% !important;
	max-width: 25% !important;
	width: 25% !important;
	min-width: 0 !important;
	margin: 0 0 14px 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: flex-start !important;
	height: auto !important;
	position: static !important;
	text-align: center;
}

html.iics-small .footer .link-box .anticons-list li a {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	width: 100% !important;
}

html.iics-small .footer .anticons-list img {
	display: block !important;
	width: 24px !important;
	height: 24px !important;
	margin: 0 auto !important;
}

html.iics-small .footer .anticons-list li span {
	display: block !important;
	font-size: 11px !important;
	line-height: 15px !important;
	margin: 4px 0 0 0 !important;
	padding: 0 !important;
	height: auto !important;
	white-space: nowrap;
	overflow: visible !important;
}

html.iics-small .footer .link-box .line {
	margin: 16px 0 0 0 !important;
	width: 100% !important;
}

html.iics-small .footer .footer-logo {
	position: static !important;
	width: 100% !important;
	margin-top: 22px !important;
}

html.iics-small .footer .footer-logo .logo {
	position: static !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto !important;
}

html.iics-small .footer .footer-info {
	position: static !important;
	right: auto !important;
	margin: 16px 0 0 0 !important;
	text-align: center !important;
	font-size: 12px !important;
	line-height: 20px !important;
	white-space: normal !important;
}

html.iics-small .footer .footer-logo .weichat {
	position: static !important;
	display: block !important;
	margin: 16px auto 0 auto !important;
	text-align: center;
}

/* ===== 层级修复：党建压在页脚渐变之上、页脚内容压住遮罩（PC/手机通用） ===== */
.footer-module,
.footer-module .party-content,
.footer-module.split-module {
	position: relative !important;
	z-index: 3 !important;
}

/* 页脚内容层：字/图标必须在渐变遮罩之上 */
.footer > div[style],
.footer > .link-box,
.footer > .footer-logo {
	z-index: 2 !important;
}

.footer > .link-box,
.footer > .footer-logo {
	position: relative !important;
}

.footer .footer-shade,
.footer-shade {
	z-index: 0 !important;
}

/* ===== 党建区块高度跟随内容：避免卡片压进页脚 ===== */
.footer-module {
	height: auto !important;
	min-height: 65rem !important;
}

.footer-module .party-content {
	position: relative !important;
}

html.iics-small .footer-module {
	min-height: 0 !important;
	padding-bottom: 24px !important;
}

html.iics-small .footer-module .party-content {
	height: auto !important;
	min-height: 0 !important;
	padding-bottom: 12px !important;
}

/* ===== 手机页脚：遮罩必须以 .footer 为定位参照，且不超出 ===== */
html.iics-small .footer {
	position: relative !important;
}

html.iics-small .footer .footer-shade {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	height: auto !important;
	width: auto !important;
	z-index: 0 !important;
}

html.iics-small .footer > .link-box,
html.iics-small .footer > .footer-logo,
html.iics-small .footer > div[style] {
	position: relative !important;
	z-index: 2 !important;
}

/* ===== 手机页脚：渐变直接画在 .footer 上（不依赖 .footer-shade 位置） ===== */
html.iics-small .footer {
	position: relative !important;
	background-image:
		linear-gradient(115.01deg, rgba(215, 0, 0, 0.59) 0%, rgba(105, 18, 81, 0.79) 39.85%, rgba(105, 18, 81, 0.79) 48.96%, rgba(0, 24, 112, 1) 100%),
		url(../img/footer.png) !important;
	background-size: 100% 100%, cover !important;
	background-position: center center, center top !important;
	background-repeat: no-repeat, no-repeat !important;
}

/* 隐藏独立遮罩，避免它只盖一部分造成深浅分层 */
html.iics-small .footer-shade,
html.iics-small .footer .footer-shade {
	display: none !important;
}

/* ===== 手机页脚：防止右侧被裁切 ===== */
html.iics-small .footer {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
	overflow: visible !important;
	padding: 44px 12px 24px 12px !important;
}

html.iics-small .footer > .link-box,
html.iics-small .footer > .footer-logo,
html.iics-small .footer > div[style] {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
	overflow: visible !important;
}

html.iics-small .footer .link-box .anticons-list {
	box-sizing: border-box !important;
	max-width: 100% !important;
	overflow: visible !important;
}

html.iics-small .footer .footer-logo .logo {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
}

html.iics-small .footer .footer-info {
	white-space: normal !important;
	word-break: break-all !important;
	overflow-wrap: anywhere !important;
	text-align: center !important;
	width: 100% !important;
	max-width: 100% !important;
}

/* ===== 桌面端允许横向滚动（窗口不足 1440 时可左右拖动，页面不再显得"偏"） ===== */
@media (min-width: 1440px) {
	html { overflow-x: auto !important; }
	body { overflow-x: visible !important; min-width: 192rem !important; }
	#PC { margin-left: auto !important; margin-right: auto !important; }
}

/* ===== 导航项均匀铺满容器（右端不留空） ===== */
.menu .wp_nav,
.menu ul.wp_nav {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.menu .wp_nav > .nav-item {
	float: none !important;
	display: block !important;
	margin-right: 0 !important;
	flex: 0 0 auto !important;
	text-align: center !important;
}

.menu .wp_nav > .nav-item > a {
	display: inline-block !important;
	white-space: nowrap;
}

/* 下拉子菜单保持原来的竖排、左对齐，不受影响 */
.menu .wp_nav .sub-nav {
	display: block !important;
	width: auto !important;
	min-width: 100%;
}

.menu .wp_nav .sub-nav .nav-item {
	display: block !important;
	margin-right: 0 !important;
	width: 100% !important;
}

.menu .wp_nav .sub-nav .nav-item > a {
	display: block !important;
	text-align: left !important;
}
