/*
 * AI37 全站页脚样式
 * 内容在后台「内容工作台 → 工作台设置 → 页脚信息」配置
 * 结构：品牌区 / 友情链接 / 联系我们 / 二维码 / 版权备案条
 */

.ai37-foot {
	margin-top: 26px;
	background: #fff;
	border-top: 1px solid #e3e8f0;
	color: #4a5568;
	font-size: 13px;
	line-height: 1.75;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.ai37-foot a {
	color: #4a5568;
	text-decoration: none;
	transition: color .18s ease;
}

.ai37-foot a:hover { color: #2271b1; }

.ai37-foot-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 26px 24px 18px;
}

.ai37-foot-cols {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr auto;
	gap: 32px;
	align-items: start;
}

/* ---------- 品牌区 ---------- */
.ai37-foot-brand { min-width: 0; }

.ai37-foot-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: linear-gradient(135deg, #4f7cff, #8b5cf6);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .5px;
	vertical-align: middle;
}

.ai37-foot-name {
	margin-left: 10px;
	font-size: 15px;
	font-weight: 600;
	color: #1d2327;
	vertical-align: middle;
}

.ai37-foot-slogan {
	margin: 12px 0 0;
	color: #7b8794;
	font-size: 12.5px;
}

/* ---------- 通用列 ---------- */
.ai37-foot-col { min-width: 0; }

.ai37-foot-h {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

.ai37-foot-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
}

.ai37-foot-links li { min-width: 0; }

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

.ai37-foot-contact li {
	display: flex;
	gap: 10px;
	margin-bottom: 7px;
	align-items: baseline;
}

.ai37-foot-contact .k {
	flex: 0 0 52px;
	color: #8a94a6;
	font-size: 12.5px;
}

.ai37-foot-hotline {
	font-size: 17px;
	font-weight: 700;
	color: #1d2327;
	letter-spacing: .5px;
}

/* ---------- 二维码列 ---------- */
.ai37-foot-qr {
	display: flex;
	gap: 18px;
	justify-content: flex-end;
}

.ai37-qr-item {
	text-align: center;
	width: 92px;
}

.ai37-qr-frame {
	width: 84px;
	height: 84px;
	margin: 0 auto;
	padding: 5px;
	border: 1px solid #e3e8f0;
	border-radius: 10px;
	background: #fff;
	transition: transform .2s ease, box-shadow .2s ease;
}

.ai37-qr-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 6px;
}

.ai37-qr-item:hover .ai37-qr-frame {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(29, 35, 39, .12);
}

.ai37-qr-label {
	display: block;
	margin-top: 7px;
	font-size: 12px;
	color: #7b8794;
}

/* ---------- 底部版权条 ---------- */
.ai37-foot-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
	padding-top: 14px;
	border-top: 1px dashed #e6eaf1;
	font-size: 12.5px;
	color: #7b8794;
}

.ai37-foot-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	align-items: center;
}

/* ---------- 深色模式 ---------- */
body.ai37-dark .ai37-foot {
	background: #171b21;
	border-top-color: #262c36;
	color: #9aa5b4;
}

body.ai37-dark .ai37-foot a { color: #9aa5b4; }
body.ai37-dark .ai37-foot a:hover { color: #7ba7ff; }
body.ai37-dark .ai37-foot-name,
body.ai37-dark .ai37-foot-h { color: #e8eaf0; }
body.ai37-dark .ai37-foot-slogan,
body.ai37-dark .ai37-foot-bar,
body.ai37-dark .ai37-foot-contact .k,
body.ai37-dark .ai37-qr-label { color: #6f7b8c; }
body.ai37-dark .ai37-foot-hotline { color: #e8eaf0; }
body.ai37-dark .ai37-foot-bar { border-top-color: #262c36; }
body.ai37-dark .ai37-qr-frame { border-color: #2b323d; background: #1b2027; }

/* ==========================================================
 * 登录首页底部固定条（版权 / 热线 / 备案 / 二维码悬浮）
 * ========================================================== */
.ai37-foot-lp {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 20;
	padding: 9px 16px;
	text-align: center;
	font-size: 11.5px;
	color: rgba(238, 242, 255, .52);
	background: rgba(6, 10, 22, .34);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-top: 1px solid rgba(255, 255, 255, .09);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.ai37-foot-lp a {
	color: rgba(238, 242, 255, .66);
	text-decoration: none;
}

.ai37-foot-lp a:hover { color: #9db8ff; }

.ai37-foot-lp-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 18px;
}

/* 二维码悬浮（hover 或点击聚焦时弹出，手机点一下也能看） */
.ai37-qr-pop { position: relative; display: inline-flex; }

.ai37-qr-pop > button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	border-bottom: 1px dashed currentColor;
	opacity: .9;
}

.ai37-qr-pop > button:hover,
.ai37-qr-pop > button:focus { opacity: 1; outline: none; }

.ai37-qr-card {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translate(-50%, 6px);
	width: 132px;
	padding: 9px 9px 7px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
	opacity: 0;
	visibility: hidden;
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	pointer-events: none;
}

.ai37-qr-card img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.ai37-qr-card em {
	display: block;
	margin-top: 6px;
	font-style: normal;
	font-size: 11px;
	color: #4a5568;
	line-height: 1.4;
}

.ai37-qr-pop:hover .ai37-qr-card,
.ai37-qr-pop:focus-within .ai37-qr-card {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

/* 浅色晨曦风格 */
.ai37-foot-lp.is-light {
	background: rgba(255, 255, 255, .46);
	color: rgba(27, 35, 56, .55);
	border-top-color: rgba(27, 35, 56, .08);
}

.ai37-foot-lp.is-light a { color: rgba(27, 35, 56, .68); }
.ai37-foot-lp.is-light a:hover { color: #2b5bd7; }

/* 极简石墨风格 */
.ai37-foot-lp.is-slate {
	background: rgba(10, 12, 15, .44);
	color: rgba(226, 232, 240, .5);
	border-top-color: rgba(255, 255, 255, .06);
}

.ai37-foot-lp.is-slate a { color: rgba(226, 232, 240, .66); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
	.ai37-foot-cols { grid-template-columns: 1fr 1fr; gap: 26px; }
	.ai37-foot-qr { justify-content: flex-start; }
}

@media (max-width: 620px) {
	.ai37-foot-inner { padding: 22px 16px 16px; }
	.ai37-foot-cols { grid-template-columns: 1fr; gap: 22px; }
	.ai37-foot-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
	.ai37-foot-legal { gap: 4px 14px; }
	.ai37-qr-card { width: 118px; }
}
