/* ==========================================================================
   footer.css —— 公共页脚样式（配合 includes/footer.php）
   三大区块：① f-brand 品牌与联系方式 ② f-qr 洽谈二维码 ③ f-copyright 版权备案
   说明：本文件在 </body> 前引入，用于覆盖 main.css / adaptation.css 中的旧页脚规则
   ========================================================================== */

/* ---------- 页脚容器 ---------- */
.footer {
	position: relative;
	z-index: 999;
	background: #f6f7f9;
	background-image: linear-gradient(180deg, #f8f9fb 0%, #eef0f4 100%);
	border-top: 1px solid #e5e8ee;
	color: #5b6273;
	font-size: 14px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* 顶部品牌色装饰条 */
.footer::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #0180ff 0%, #4da6ff 42%, rgba(1,128,255,0) 100%);
}

.footer a {
	text-decoration: none;
	transition: color .2s ease-out;
	-webkit-transition: color .2s ease-out;
}

/* ---------- 主体两栏 ---------- */
.footer-main {
	padding: 62px 0 56px;
}

.footer-grid {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 0 40px;
	box-sizing: border-box;
}

/* ---------- ① 品牌区 ---------- */
.f-brand {
	position: relative;
	flex: 1 1 340px;
	min-width: 0;
	max-width: 420px;
	padding-right: 40px;
}

.f-logo {
	display: inline-block;
	margin-bottom: 18px;
}

.f-logo img {
	display: block;
	height: 42px;
	width: auto;
}

.f-slogan {
	margin: 0 0 30px;
	font-size: 13px;
	letter-spacing: 1px;
	color: #9aa0ad;
}

.f-heading {
	position: relative;
	margin: 0 0 16px;
	padding-left: 14px;
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	color: #1f2532;
}

.f-heading::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 4px;
	height: 18px;
	margin-top: -9px;
	border-radius: 2px;
	background: #0180ff;
}

.f-contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.f-contact li {
	display: flex;
	align-items: flex-start;
	padding: 7px 0;
	font-size: 14px;
	line-height: 24px;
	color: #5b6273;
}

.f-contact .f-ico {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin: 3px 8px 0 0;
	color: #0180FF;
}

.f-contact .f-ico svg,
.f-qr-tips .f-ico svg {
	display: block;
	width: 100%;
	height: 100%;
}

.f-label {
	flex: 0 0 auto;
	color: #9aa0ad;
}

.f-contact .f-label {
	margin-right: 10px;
}

.f-text {
	flex: 1 1 auto;
	min-width: 0;
	word-break: break-word;
}

/* ---------- ② 二维码区 ---------- */
.f-qr {
	display: flex;
	align-items: stretch;
	flex: 0 0 auto;
}

.f-qr-card {
	display: flex;
	flex-direction: column;
	width: 258px;
	padding: 22px 22px 20px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #e5e8ee;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(31, 37, 50, .04);
	transition: transform .25s ease-out, box-shadow .25s ease-out, border-color .25s ease-out;
	-webkit-transition: transform .25s ease-out, box-shadow .25s ease-out, border-color .25s ease-out;
}

.f-qr-card + .f-qr-card {
	margin-left: 24px;
}

.f-qr-card:hover {
	transform: translateY(-4px);
	border-color: rgba(1,128,255,.35);
	box-shadow: 0 14px 30px rgba(31, 37, 50, .10);
}

.f-qr-img {
	width: 132px;
	height: 132px;
	margin: 0 auto 14px;
	padding: 6px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #eceef3;
	border-radius: 4px;
}

.f-qr-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.f-qr-name {
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px dashed #e5e8ee;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	text-align: center;
	color: #1f2532;
}

.f-qr-tips {
	margin: 0;
	padding: 0;
	list-style: none;
}

.f-qr-tips li {
	display: flex;
	align-items: flex-start;
	padding: 4px 0;
	font-size: 12px;
	line-height: 20px;
	color: #5b6273;
}

.f-qr-tips .f-label {
	width: 42px;
	margin-right: 8px;
	color: #9aa0ad;
}

.f-qr-tips a {
	color: #5b6273;
}

.f-qr-tips a:hover {
	color: #0180FF;
}

/* ---------- ③ 版权备案 ---------- */
.f-copyright {
	background: #1f2532;
	color: #9aa0ad;
}

.f-copyright .maxsize {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 24px;
	padding: 0 40px;
	min-height: 64px;
	box-sizing: border-box;
}

.f-copy {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0;
	padding: 12px 0;
	font-size: 13px;
	line-height: 22px;
}

.f-copy a {
	color: #c2c8d6;
}

.f-copy a:hover {
	color: #fff;
}

/* 兼容后台可能注入的备案代码位 */
.legalStatement {
	font-size: 13px;
	line-height: 22px;
}

.legalStatement:empty {
	display: none;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1280px) {
	.footer-grid {
		padding: 0 30px;
	}

	.f-brand {
		max-width: 360px;
		padding-right: 24px;
	}

	.f-qr-card {
		width: 240px;
		padding: 20px 18px 18px;
	}
}

@media screen and (max-width: 1080px) {
	.footer-main {
		padding: 48px 0 44px;
	}

	.footer-grid {
		flex-wrap: wrap;
		padding: 0 30px;
	}

	.f-brand {
		flex: 1 1 100%;
		max-width: none;
		padding-right: 0;
		padding-bottom: 30px;
		margin-bottom: 30px;
		border-bottom: 1px solid #e2e5ec;
	}

	.f-logo {
		margin-bottom: 14px;
	}

	.f-slogan {
		margin-bottom: 22px;
	}

	.f-qr {
		flex: 1 1 100%;
	}

	.f-qr-card {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}

	.f-qr-card:first-child {
		margin-left: 0;
	}
}

@media screen and (max-width: 760px) {
	.footer-main {
		padding: 40px 0 36px;
	}

	.footer-grid {
		padding: 0 20px;
	}

	.f-brand {
		padding-bottom: 24px;
		margin-bottom: 24px;
	}

	.f-qr {
		flex-direction: column;
	}

	.f-qr-card {
		flex: 0 0 auto;
		width: 100%;
		flex-direction: row;
		align-items: flex-start;
		padding: 18px;
	}

	.f-qr-card + .f-qr-card {
		margin-left: 0;
		margin-top: 16px;
	}

	.f-qr-img {
		flex: 0 0 104px;
		width: 104px;
		height: 104px;
		margin: 0 16px 0 0;
	}

	.f-qr-name {
		margin: 2px 0 10px;
		padding-bottom: 8px;
		text-align: left;
	}

	.f-qr-tips .f-label {
		width: 38px;
	}

	.f-copyright .maxsize {
		justify-content: center;
		padding: 14px 20px;
		text-align: center;
	}

	.f-copy {
		justify-content: center;
		gap: 4px 14px;
		padding: 0;
		font-size: 12px;
	}

	.f-copy span {
		flex: 1 1 100%;
	}
}

@media screen and (max-width: 420px) {
	.f-heading {
		font-size: 18px;
	}

	.f-contact li,
	.f-qr-tips li {
		font-size: 13px;
	}

	.f-qr-img {
		flex: 0 0 88px;
		width: 88px;
		height: 88px;
		margin-right: 12px;
	}
}

/* 尊重用户的动效偏好 */
@media (prefers-reduced-motion: reduce) {
	.footer a,
	.f-qr-card {
		transition: none;
		-webkit-transition: none;
	}

	.f-qr-card:hover {
		transform: none;
	}
}