/* 页脚区块
 *
 * 基础样式在 assets/css/main.css（.b2b-footer / .b2b-float），
 * 这里只放区块自身的补充：页脚 logo 尺寸、认证资质文字、编辑器占位样式。
 */

.b2b-footer .b2b-logo__img {
	max-width: 150px;
	height: auto;
	filter: brightness(0) invert(1); /* 深色页脚上白底 logo 需要反色 */
}

.b2b-footer__certs {
	margin: 1.25rem 0 0;
	color: rgba(255, 255, 255, 0.45);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.6;
}

/* 浮动按钮在编辑器里没意义，关掉避免误以为能点。 */
.editor-styles-wrapper .b2b-float {
	display: none;
}

/* 没有社交链接时别留空白。 */
.b2b-footer__col--brand .b2b-social:empty {
	display: none;
}

/* ==========================================================================
   页脚 logo 修复（2026-10-08）
   问题：区块样式里有 `filter: brightness(0) invert(1)`（假设 logo 是深色单色，
        反色成白色）。实际 logo 是彩色图 + 白底，反色后变成一块纯白方块。
   修法：取消反色，改成白底圆角承托，任何颜色的 logo 都能看清。
   ========================================================================== */
.b2b-footer .b2b-logo__img {
	filter: none;
	background: #fff;
	padding: 6px 10px;
	border-radius: 8px;
	max-width: 170px;
	height: auto;
}
