/* 悬浮客服 / 二维码 / 移动端底栏 — 产品页、GEO、AI 智能体页共用 */
.sqx-float-actions {
	position: fixed;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sqx-float-item {
	position: relative;
}

.sqx-float-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	position: relative;
}

.sqx-float-btn-wechat {
	background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
}

.sqx-float-btn-ai {
	background: linear-gradient(135deg, #ff6400 0%, #e85500 100%);
}

.sqx-float-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.sqx-float-tip {
	position: absolute;
	right: calc(100% + 10px);
	top: 50%;
	transform: translateY(-50%);
	padding: 6px 12px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 12px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s;
	pointer-events: none;
}

.sqx-float-tip::after {
	content: '';
	position: absolute;
	right: -4px;
	top: 50%;
	margin-top: -4px;
	border: 4px solid transparent;
	border-left-color: rgba(0, 0, 0, 0.72);
}

.sqx-float-btn:hover .sqx-float-tip {
	opacity: 1;
	visibility: visible;
}

.sqx-qrcode-panel[hidden] {
	display: none !important;
}

.sqx-qrcode-panel {
	position: absolute;
	right: calc(100% + 14px);
	top: 50%;
	transform: translateY(-50%) scale(0.95);
	width: 210px;
	padding: 20px 16px 16px;
	background: var(--sqx-bg-card, #fff);
	border: 1px solid var(--sqx-border, #e5e7eb);
	border-radius: 12px;
	box-shadow: var(--sqx-shadow, 0 8px 24px rgba(15, 23, 42, 0.08));
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	pointer-events: none;
}

.sqx-qrcode-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) scale(1);
	pointer-events: auto;
}

.sqx-qrcode-close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 24px;
	height: 24px;
	border: none;
	background: transparent;
	color: var(--sqx-text-light, #9ca3af);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.sqx-qrcode-close:hover {
	color: var(--sqx-text, #1f2937);
}

.sqx-qrcode-title {
	font-size: 14px;
	color: var(--sqx-text, #1f2937);
	font-weight: 600;
	margin-bottom: 12px;
}

.sqx-qrcode-img {
	display: block;
	width: 160px;
	height: 160px;
	margin: 0 auto 10px;
	border-radius: 8px;
	border: 1px solid var(--sqx-border, #e5e7eb);
}

.sqx-qrcode-phone {
	font-size: 16px;
	color: var(--sqx-primary, #ff6400);
	font-weight: 700;
	margin-bottom: 4px;
}

.sqx-qrcode-desc {
	font-size: 12px;
	color: var(--sqx-text-muted, #6b7280);
}

.sqx-mobile-cta {
	display: none;
}

@media (max-width: 767px) {
	.sqx-float-actions {
		right: 12px;
		top: auto;
		bottom: 80px;
		transform: none;
		gap: 10px;
	}

	.sqx-float-btn {
		width: 46px;
		height: 46px;
		font-size: 20px;
	}

	.sqx-qrcode-panel {
		right: calc(100% + 10px);
		width: 190px;
		padding: 16px 12px 12px;
	}

	.sqx-qrcode-img {
		width: 140px;
		height: 140px;
	}

	.sqx-float-tip {
		display: none;
	}

	.sqx-mobile-cta {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 9998;
		background: var(--sqx-bg-card, #fff);
		border-top: 1px solid var(--sqx-border, #e2e8f0);
		box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
		padding: 0;
	}

	.sqx-mobile-cta-item {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		padding: 8px 4px;
		border: none;
		background: transparent;
		color: var(--sqx-text-muted, #64748b);
		font-size: 11px;
		font-family: inherit;
		text-decoration: none;
		cursor: pointer;
		transition: color 0.2s, background 0.2s;
		-webkit-appearance: none;
		appearance: none;
	}

	.sqx-mobile-cta-item i {
		font-size: 18px;
	}

	.sqx-mobile-cta-primary {
		color: var(--sqx-primary, #ff6400);
		font-weight: 600;
	}
}
