/**
 * 页脚 / 版权栏 / 产品页 — 统一社媒链接组件
 * 替代 legacy .share-to 样式，两处尺寸与 hover 保持一致
 */

.stslite-social {
	--stslite-social-size: 36px;
	--stslite-social-icon: 18px;
	--stslite-social-gap: 8px;
	--stslite-social-radius: 50%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--stslite-social-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.stslite-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: var(--stslite-social-size);
	height: var(--stslite-social-size);
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	border: 0;
	border-radius: var(--stslite-social-radius);
	line-height: 1;
	text-decoration: none;
	color: inherit;
	background: transparent;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.stslite-social__link:hover,
.stslite-social__link:focus-visible {
	text-decoration: none;
	transform: translateY(-1px);
	outline: none;
}

.stslite-social__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--stslite-social-icon);
	height: var(--stslite-social-icon);
	margin: 0;
	padding: 0;
	line-height: 1;
	color: inherit;
	background: none !important;
}

.stslite-social__link:hover .stslite-social__icon,
.stslite-social__link:focus-visible .stslite-social__icon {
	background: none !important;
	color: inherit;
}

.stslite-social__icon .fa {
	display: block;
	font-size: var(--stslite-social-icon);
	line-height: 1;
	color: inherit;
}

.stslite-social__icon-svg {
	display: block;
	width: var(--stslite-social-icon);
	height: var(--stslite-social-icon);
	color: inherit;
	flex-shrink: 0;
}

.stslite-social__svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* 深色背景（页脚 CONTACT US 区） */
.stslite-social--dark {
	color: #d3d3d3;
}

.stslite-social--dark .stslite-social__link:hover,
.stslite-social--dark .stslite-social__link:focus-visible {
	background-color: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* 浅色背景（版权栏） */
.stslite-social--light {
	justify-content: center;
	width: 100%;
	margin-top: 12px;
	color: #666;
}

.stslite-social--light .stslite-social__link:hover,
.stslite-social--light .stslite-social__link:focus-visible {
	background-color: rgba(0, 0, 0, 0.06);
	color: #333;
}

/* 产品详情页 */
.stslite-social--product {
	margin-top: 0;
}

.stslite-social--product .stslite-social__link {
	background: var(--sbp-primary, #1a2b4b);
	color: #fff;
}

.stslite-social--product .stslite-social__link:hover,
.stslite-social--product .stslite-social__link:focus-visible {
	background: var(--sbp-primary, #1a2b4b);
	filter: brightness(0.88);
	color: #fff;
}

.home_page .tem06-copyright .stslite-social--light {
	padding-bottom: 8px;
}

/* 微信二维码弹层 */
.stslite-wechat-qrcode {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	vertical-align: top;
	overflow: visible;
}

.stslite-wechat-qrcode--social {
	width: var(--stslite-social-size);
	height: var(--stslite-social-size);
	flex: 0 0 var(--stslite-social-size);
	align-items: center;
	justify-content: center;
}

.stslite-wechat-qrcode--floating {
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
}

.stslite-wechat-qrcode__trigger {
	cursor: pointer;
}

.stslite-wechat-qrcode--social > .stslite-wechat-qrcode__trigger,
.stslite-wechat-qrcode--floating > .stslite-wechat-qrcode__trigger {
	width: 100%;
	height: 100%;
}

button.stslite-social__link,
button.stslite-float-contact-link {
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
}

.stslite-wechat-qrcode__popup {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	z-index: 100;
	display: none !important;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 180px;
	padding: 10px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	transform: translateX(-50%);
	pointer-events: none;
	visibility: hidden;
}

.stslite-wechat-qrcode__popup.is-visible {
	display: flex !important;
	visibility: visible;
	pointer-events: auto;
}

.stslite-wechat-qrcode__popup[hidden] {
	display: none !important;
	visibility: hidden !important;
}

.stslite-wechat-qrcode__popup::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	width: 0;
	height: 0;
	margin-left: -6px;
	border: 6px solid transparent;
	border-top-color: #fff;
}

.stslite-wechat-qrcode__img {
	display: block;
	width: 160px !important;
	max-width: 160px !important;
	height: 160px !important;
	object-fit: contain;
	flex-shrink: 0;
}

.stslite-wechat-qrcode__hint {
	color: #666;
	font-size: 12px;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
}

.tem30-footer .share,
.tem06-copyright .stslite-social,
.stslite-social {
	overflow: visible;
}

.tem30-footer .share .stslite-wechat-qrcode__popup,
.tem06-copyright .stslite-wechat-qrcode__popup {
	z-index: 120;
}
