/* Baidao AI Survey Popup & Floating Trigger Styles */
.bd-survey-fab {
	position: fixed;
	right: 24px;
	bottom: 28px;
	z-index: 99990;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #086ad8 0%, #002fa6 100%);
	color: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(8, 106, 216, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.bd-survey-fab:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(8, 106, 216, 0.45);
	color: #ffffff;
}

.bd-survey-fab svg {
	flex-shrink: 0;
}

.bd-survey-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, 0.62);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	box-sizing: border-box;
}

.bd-survey-overlay.is-open {
	display: flex;
	animation: bdSurveyFadeIn 0.22s ease-out;
}

@keyframes bdSurveyFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.bd-survey-modal {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
	text-align: center;
	box-sizing: border-box;
	animation: bdSurveySlideUp 0.24s ease-out;
}

@keyframes bdSurveySlideUp {
	from { opacity: 0; transform: translateY(14px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.bd-survey-modal * {
	box-sizing: border-box;
}

.bd-survey-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
	z-index: 2;
}

.bd-survey-close:hover {
	background: rgba(255, 255, 255, 0.32);
}

.bd-survey-header {
	background: linear-gradient(135deg, #002fa6 0%, #086ad8 100%);
	padding: 26px 28px 22px;
	color: #ffffff;
}

.bd-survey-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.4px;
	margin-bottom: 10px;
}

.bd-survey-title {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
	color: #ffffff;
}

.bd-survey-body {
	padding: 22px 28px 26px;
}

.bd-survey-desc {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.6;
	color: #4b5563;
}

.bd-survey-qr-section {
	margin: 0 auto 18px;
}

.bd-survey-qr-box {
	width: 196px;
	height: 196px;
	margin: 0 auto 10px;
	padding: 10px;
	border-radius: 14px;
	border: 1px solid #e5e7eb;
	background: #ffffff;
	box-shadow: 0 4px 14px rgba(8, 106, 216, 0.08);
}

.bd-survey-qr-box svg {
	width: 100%;
	height: 100%;
	display: block;
}

.bd-survey-qr-tip {
	font-size: 12px;
	color: #6b7280;
}

.bd-survey-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(135deg, #086ad8 0%, #002fa6 100%);
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 6px 16px rgba(8, 106, 216, 0.24);
	transition: opacity 0.2s ease;
}

.bd-survey-cta:hover {
	opacity: 0.92;
	color: #ffffff !important;
}

.bd-survey-dismiss {
	display: inline-block;
	margin-top: 12px;
	border: none;
	background: none;
	color: #9ca3af;
	font-size: 12px;
	cursor: pointer;
	padding: 4px 8px;
}

.bd-survey-dismiss:hover {
	color: #6b7280;
}

@media (max-width: 640px) {
	.bd-survey-fab {
		right: 16px;
		bottom: 20px;
		padding: 10px 14px;
		font-size: 13px;
	}
	.bd-survey-qr-section {
		display: none;
	}
	.bd-survey-header {
		padding: 22px 20px 18px;
	}
	.bd-survey-body {
		padding: 20px 20px 22px;
	}
}
