/* 悬浮咨询按钮：固定右下角，圆角小按钮，白字大写，主题色 */
.ak-cta {
	position: fixed;
	/* 让开 Astra 自带『返回顶部』按钮（右侧 30px + 32px 宽），避免两者重叠 */
	right: 76px;
	bottom: 24px;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 24px;
	border-radius: 999px;
	background: #dca54a; /* 与 Astra 返回顶部按钮同色 */
	color: #ffffff !important;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 10px 26px rgba(220, 165, 74, 0.32);
	opacity: 0;
	transform: translateY(14px);
	pointer-events: none;
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.ak-cta.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* 悬停/聚焦不改变底色（与返回顶部按钮一致，仅保留焦点可见性） */
.ak-cta:hover,
.ak-cta:focus,
.ak-cta:active {
	background: #dca54a;
	color: #ffffff !important;
	text-decoration: none !important;
}

.ak-cta:focus-visible {
	outline: 2px solid #0f172a;
	outline-offset: 3px;
}

.ak-cta__label {
	display: inline-block;
}

/* 咨询弹窗打开时隐藏按钮（弹窗层级更高，这里同时避免视觉干扰） */
html.ak-ee-modal-open .ak-cta {
	opacity: 0;
	pointer-events: none;
}

/* 小屏：收紧尺寸与边距，避免遮挡内容（同样让开返回顶部按钮） */
@media (max-width: 767px) {
	.ak-cta {
		right: 74px;
		bottom: 14px;
		padding: 12px 18px;
		font-size: 11px;
		letter-spacing: 0.12em;
	}
}

/* 底部有固定元素/页脚的场景，滚动到底时保持可见但不重叠 */
@media (prefers-reduced-motion: reduce) {
	.ak-cta {
		transition: none;
	}
}
