/* --------------------------------------------------------------------------
   页脚（colophon 版式）
   三区分组：联系 / 标记 / 法务，下方一条发丝线收紧版脚。
   与原版差别：取消「每行 12px 同质灰字」，改为眉标 + 主行 + 版脚三级层次。
   目前仅 index.html 引入，验证后再铺开到全站。
   -------------------------------------------------------------------------- */

.footer {
	padding: 92px 0 26px;
}

.footer-main {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}

/* --- 眉标：极小、大字号间距，只做分组提示 --------------------------------- */
.f-eyebrow {
	margin: 0 0 16px;
	font-size: 10px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .34); /* 原 .26 在黑底上偏灰，抬到可辨识 */
}

/* --- 左区：联系方式 ------------------------------------------------------- */
.footer-contact {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.footer .f-row {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .02em;
	color: rgba(255, 255, 255, .8);
	text-align: left;
	text-decoration: none;
	transition: color .25s ease;
}

.footer .f-row:last-child {
	margin-bottom: 0;
}

.footer .f-row:hover {
	color: #fff;
}

.f-icon {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	opacity: .45;
	transition: opacity .25s ease;
}

.footer .f-row:hover .f-icon {
	opacity: .95;
}

/* 扫码提示：只在微信行出现，回答「点了会发生什么」 */
.f-row-hint {
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .06em;
	color: rgba(255, 255, 255, .28);
	transition: color .25s ease;
}

.footer .f-row:hover .f-row-hint {
	color: rgba(255, 255, 255, .5);
}

/* --- 中区：站点标记 ------------------------------------------------------- */
.footer-mark {
	flex: 0 0 auto;
	line-height: 0;
	mix-blend-mode: difference;
	cursor: pointer;
}

.footer-mark img {
	width: 44px;
	height: 44px;
}

/* --- 右区：法务 ----------------------------------------------------------- */
.footer-legal {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.footer .f-link {
	position: relative;
	margin: 0 0 10px;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: .04em;
	color: rgba(255, 255, 255, .5);
	text-decoration: none;
	transition: color .25s ease;
}

.footer .f-link:last-child {
	margin-bottom: 0;
}

/* hover：文字提亮 + 发丝下划线从左展开（沿用顶部导航的指示线语言） */
.footer .f-link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.footer .f-link:hover {
	color: #fff;
}

.footer .f-link:hover::after {
	transform: scaleX(1);
}

/* --- 版脚：一条发丝线之上的最小字号 -------------------------------------- */
.footer-base {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-top: 72px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-base p {
	margin: 0;
	font-size: 11px;
	line-height: 1.6;
	letter-spacing: .05em;
	color: rgba(255, 255, 255, .36);
}

.footer-base .f-credit a {
	font-size: inherit; /* 抵消 main.css 的 .footer a { font-size:14px } */
	color: rgba(255, 255, 255, .42);
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
	transition: color .25s ease, border-color .25s ease;
}

.footer-base .f-credit a:hover {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, .5);
}

/* --- 移动端：整体居中的落款式排版 ---------------------------------------- */
@media (max-width: 767.98px) {

	.footer {
		padding: 64px 0 22px;
	}

	.footer-main {
		flex-direction: column;
		align-items: center;
		gap: 38px;
	}

	/* 标记提到最前，作为落款的起头 */
	.footer-mark {
		order: -1;
	}

	/* 字距会在末字后多出一段，居中时补一个同宽缩进找平 */
	.f-eyebrow {
		text-indent: .32em;
	}

	.footer-contact,
	.footer-legal {
		align-items: center;
		text-align: center;
	}

	.footer-base {
		flex-direction: column;
		align-items: center;
		gap: 6px;
		margin-top: 44px;
		padding-top: 16px;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {

	.footer .f-row,
	.f-icon,
	.f-row-hint,
	.footer .f-link,
	.footer .f-link::after,
	.footer-base .f-credit a {
		transition: none;
	}
}

/* ---- 触摸热区增强（视觉零变化） ----
   1) 无伪元素的链接：::after 负边距铺出 ≥44px 热区
   2) .f-link 的 ::after 已用于下划线动画 → 改用 padding 撑热区 + 负 margin 抵消布局 */
.footer a:not(.f-link) {
	position: relative;
}

.footer a:not(.f-link)::after {
	content: "";
	position: absolute;
	inset: -12px -10px;
}

.footer .f-link {
	padding: 12px 0;
	/* 原 margin-bottom:10px：padding 撑大 12px 后，bottom 补 10-12=-2 保持原间距 */
	margin: -12px 0 -2px;
}
