/* ============================================================
   页脚 footer（与本主题设计语言统一：轻拟物 / 主色 #20a0ff）
   ============================================================ */
#footer{
	background:#e1e5eb;
	color:#738192;
	padding:30px 0 calc(30px + env(safe-area-inset-bottom));
	border-top:1px solid #d3d8e0;
	box-shadow:0 1px rgba(255,255,255,.5) inset;
	text-align:center;
	font-size:12px;
	line-height:24px;
}
body.night #footer{background:#263238;color:#738192;border-top-color:#334148;box-shadow:none}

#footer a{color:#738192;text-decoration:none;transition:color .2s}
#footer a:hover{color:#20a0ff}
body.night #footer a{color:#99a9bf}
body.night #footer a:hover{color:#20a0ff}

/* ---------- 简洁布局：快捷链接一行 ---------- */
#footer .footer-links{margin:0 0 10px}
#footer .footer-links > a,
#footer .footer-links > span{display:inline-block;margin:0 8px}
/* 字体颜色对齐参考站：#20a0ff */
#footer .footer-links > a{color:#20a0ff}
#footer .footer-links > a:visited{color:#20a0ff}
#footer .footer-links > a:hover{color:#1a8ce6}
body.night #footer .footer-links > a,body.night #footer .footer-links > a:visited{color:#20a0ff}
body.night #footer .footer-links > a:hover{color:#5cb6ff}

/* ---------- 多栏布局 ---------- */
#footer .footer-main{
	display:flex;flex-wrap:wrap;text-align:left;align-items:flex-start;
	margin:0 0 20px;padding-bottom:22px;
	border-bottom:1px solid #d8e0ea;box-shadow:0 1px rgba(255,255,255,.5);
}
body.night #footer .footer-main{border-bottom-color:#334148;box-shadow:none}

#footer .footer-col{flex:0 0 24%;max-width:24%;padding:0 18px 14px 0;box-sizing:border-box}
#footer .footer-col-about{flex:0 0 28%;max-width:28%;padding-right:28px}

/* 栏目标题：与主题 h2.widgettitle 保持一致（渐变下划线） */
#footer .footer-col-title{
	position:relative;margin:0 0 14px;padding-bottom:8px;
	color:#738192;font-size:14px;font-weight:400;line-height:1.5;
	border-bottom:1px solid #d8e0ea;box-shadow:0 1px rgba(255,255,255,.5);
}
#footer .footer-col-title::after{
	content:'';position:absolute;bottom:-2px;left:0;
	width:30px;height:3px;border-radius:3px;
	background:linear-gradient(#58B7FF 30%,#20a0ff 70%);
	box-shadow:0 3px 4px rgba(32,160,255,.5);
}
#footer .footer-col-title i{margin-right:6px;color:#20a0ff}
body.night #footer .footer-col-title{color:#99a9bf;border-bottom-color:#334148;box-shadow:none}

/* 站点信息 */
#footer .footer-logo{display:inline-block}
#footer .footer-logo img{max-height:36px;max-width:100%;display:block}
#footer .footer-logo-text{font-size:18px;color:#475669;text-decoration:none}
#footer .footer-logo-text:hover{color:#20a0ff}
body.night #footer .footer-logo-text{color:#c8d3e2}
#footer .footer-desc{margin:12px 0 0;color:#738192;font-size:13px;line-height:22px;text-shadow:0 1px rgba(255,255,255,.6)}
body.night #footer .footer-desc{text-shadow:none}

/* 链接 / 联系方式列表 */
#footer ul.footer-nav,#footer ul.footer-contact{list-style:none;margin:0;padding:0}
#footer ul.footer-nav > li,#footer ul.footer-contact > li{line-height:30px}
#footer ul.footer-nav > li > a{color:#738192}
#footer ul.footer-nav > li > a:hover{color:#20a0ff}
#footer .footer-contact-name{color:#97a1b0}

/* 联系我们：二维码放在联系方式右侧 */
#footer .footer-col-contact{display:flex;flex-wrap:wrap;align-content:flex-start}
#footer .footer-col-contact > .footer-col-title{flex:0 0 100%;width:100%}
#footer .footer-col-contact > ul.footer-contact{flex:1 1 auto;min-width:0;max-width:100%}
#footer .footer-qrcode{display:inline-block;text-align:center}
#footer .footer-col-contact > .footer-qrcode{flex:0 0 auto;margin:0 0 0 14px}
#footer .footer-qrcode img{
	width:96px;height:96px;padding:4px;box-sizing:border-box;display:block;
	background:#fff;border-radius:.75em;box-shadow:0 .4em .9em rgba(31,45,61,.16);
}
#footer .footer-qrcode span{display:block;margin-top:8px;font-size:12px;color:#97a1b0}
body.night #footer .footer-qrcode img{background:#334148;box-shadow:none}

/* ---------- 友情链接 ---------- */
#footer .footer-favlinks{margin:18px 0 0;padding-top:16px;border-top:1px solid #d8e0ea;line-height:26px;text-align:center}
body.night #footer .footer-favlinks{border-top-color:#334148}
#footer .footer-favlinks-title{color:#97a1b0}
#footer .footer-favlinks > a{display:inline-block;margin:0 7px}
#footer .footer-favlinks-apply{color:#97a1b0}

/* ---------- 版权 / 备案 ---------- */
#footer .footer-bottom{text-align:center;color:#99a9bf}
#footer .footer-bottom .footer-cop{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;row-gap:4px}
#footer .footer-bottom .footer-cop-left{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;column-gap:16px;row-gap:4px}
#footer .footer-bottom .footer-cop-right{flex:0 0 100%;text-align:center;margin-top:6px}
#footer .footer-cop .copyright{color:#99a9bf}
#footer .footer-cop .copyright p{margin:0}
#footer .footer-cop .footer-meta{margin:0}
#footer .footer-sitemap{display:inline-block;margin:0 6px;color:#99a9bf}
#footer .footer-sitemap:hover{color:#20a0ff}
#footer .footer-cop-right{color:#99a9bf;margin-top:6px}
body.night #footer .footer-bottom,body.night #footer .footer-cop .copyright{color:#738192}

/* ---------- 响应式 ---------- */
@media (max-width:991px){
	#footer .footer-col{flex:0 0 33.33%;max-width:33.33%}
	#footer .footer-col-about{flex:0 0 100%;max-width:100%;padding-right:0}
}
@media (max-width:767px){
	#footer{padding:22px 0 calc(22px + env(safe-area-inset-bottom))}
	#footer .footer-main{display:block;padding-bottom:16px}
	#footer .footer-col,#footer .footer-col-about{flex:none;max-width:none;width:100%;padding:0 0 20px}
	#footer .footer-col-contact > .footer-qrcode{margin:12px 0 0}
}
