/* ==========================================================================
 * HBC Site Footer — 网站页脚 PYRA 风格 4 列布局
 *
 * 桌面 4 列;平板 2 列;手机 1 列。
 * 使用 CSS Grid 让列宽均等、列间距统一。
 * ========================================================================== */

.hbc-site-footer {
	background-color: #262626;
	width: 100%;
	box-sizing: border-box;
	color: #FFFFFF;
}

.hbc-site-footer * {
	box-sizing: border-box;
}

.hbc-site-footer__inner {
	max-width: 1280px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 60px;
	align-items: start;
}

/* ----- 通用列 ----- */
.hbc-site-footer__col {
	min-width: 0; /* grid 子项防溢出 */
}

/* ----- 小节标题 ----- */
.hbc-site-footer__heading {
	margin: 0 0 16px;
	color: #EE6B2D;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
}

.hbc-site-footer__heading--secondary {
	margin-top: 24px;
}

/* ----- 链接列表 ----- */
.hbc-site-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hbc-site-footer__list-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hbc-site-footer__link {
	color: #FFFFFF;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.2s ease;
	display: inline;
	overflow-wrap: anywhere;
	word-break: break-word;
	max-width: 100%;
}

/* 链接列表内的 li 允许换行(防 inline-block / 长 URL 撑破列宽) */
.hbc-site-footer__list-item {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.hbc-site-footer__link:hover,
.hbc-site-footer__link:focus {
	color: #EE6B2D;
}

/* 链接组 B 第一条链接不变色 */
.hbc-site-footer__col--social .hbc-site-footer__list .hbc-site-footer__list-item:first-child .hbc-site-footer__link:hover,
.hbc-site-footer__col--social .hbc-site-footer__list .hbc-site-footer__list-item:first-child .hbc-site-footer__link:focus {
	color: inherit !important;
}

/* 「链接文字使用标题样式」开关:与 .hbc-site-footer__heading 同字号/字重/颜色/行高 */
.hbc-site-footer-link-as-heading-yes .hbc-site-footer__list .hbc-site-footer__link {
	color: #EE6B2D;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
}

/* ----- 段落 ----- */
.hbc-site-footer__text {
	margin: 0;
	color: #FFFFFF;
	font-size: 14px;
	line-height: 1.6;
}

.hbc-site-footer__text p {
	margin: 0 0 12px;
}

.hbc-site-footer__text p:last-child {
	margin-bottom: 0;
}

/* ----- 社交图标 ----- */
.hbc-site-footer__socials {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.hbc-site-footer__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background-color: #EE6B2D;
	color: #FFFFFF;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
	flex-shrink: 0;
}

.hbc-site-footer__social i,
.hbc-site-footer__social svg {
	width: 18px;
	height: 18px;
	font-size: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.hbc-site-footer__social svg {
	fill: currentColor;
}

.hbc-site-footer__social:hover,
.hbc-site-footer__social:focus {
	background-color: #FFFFFF;
	color: #EE6B2D;
	transform: translateY(-2px);
	outline: none;
}

/* 形状:由 prefix_class hbc-site-footer-social-* 切换 */
.hbc-site-footer-social-circle .hbc-site-footer__social {
	border-radius: 50%;
}

.hbc-site-footer-social-square .hbc-site-footer__social {
	border-radius: 4px;
}

.hbc-site-footer-social-none .hbc-site-footer__social {
	background-color: transparent !important;
	border-radius: 0;
}

/* ----- 品牌列 ----- */
.hbc-site-footer__col--brand {
	text-align: center;
	align-self: center;          /* 在 grid 行内垂直居中,不再被顶部对齐限制 */
}

.hbc-site-footer__logo {
	display: inline-block;
	text-decoration: none;
	line-height: 1;
}

.hbc-site-footer__logo-text {
	color: #EE6B2D;
	font-size: 64px;
	font-weight: 900;
	letter-spacing: 0.02em;
	line-height: 1;
	display: inline-block;
}

.hbc-site-footer__logo-image {
	display: block;
	max-width: 100%;
	height: auto;
	/* width / height 由 Elementor 控件「品牌 LOGO 图片宽度 / 高度」控制,默认 180px */
	margin: 0 auto;
}

.hbc-site-footer__tagline {
	margin-top: 6px;
	color: #9E9E9E;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: none;
}

.hbc-site-footer__lines {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hbc-site-footer__line {
	color: #FFFFFF;
	font-size: 13px;
	line-height: 1.5;
}

/* ==========================================================================
 *  响应式
 *  - Elementor 的 add_responsive_control 会自动用对应媒体查询输出 grid-template-columns
 *  - 这里只兜底文字对齐(品牌列在窄屏左对齐更舒适)
 * ========================================================================== */
@media (max-width: 767px) {
	.hbc-site-footer__col--brand {
		text-align: left;
	}
	.hbc-site-footer__logo-image {
		margin: 0;
	}
}

/* ==========================================================================
 *  键盘焦点轮廓
 * ========================================================================== */
.hbc-site-footer__link:focus-visible,
.hbc-site-footer__social:focus-visible,
.hbc-site-footer__logo:focus-visible {
	outline: 2px solid #EE6B2D;
	outline-offset: 3px;
	border-radius: 4px;
}
