/**
 * AiQwang 资源下载主题 - 右侧悬浮客服样式
 * 仅在「启用右侧悬浮客服」开启且至少填写一项内容时加载。
 */
/* ---------- 右侧悬浮客服 ---------- */
.aqdl-float {
	position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
	z-index: 68;
	display: flex; flex-direction: column; gap: 10px;
}
.aqdl-float__item { position: relative; }
.aqdl-float__btn {
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0;
	border: 1px solid var(--aqdl-border); border-radius: 14px;
	background: var(--aqdl-surface); color: var(--aqdl-accent);
	box-shadow: var(--aqdl-shadow); cursor: pointer;
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.aqdl-float__btn:hover,
.aqdl-float__item:focus-within .aqdl-float__btn,
.aqdl-float__item.is-open .aqdl-float__btn {
	background: var(--aqdl-accent); color: #fff; border-color: var(--aqdl-accent);
	transform: translateX(-2px);
}
.aqdl-float__pop {
	position: absolute; top: 50%; right: calc(100% + 12px);
	transform: translateY(-50%) scale(.96);
	transform-origin: right center;
	min-width: 180px; max-width: 260px;
	padding: 14px 16px;
	background: var(--aqdl-surface);
	border: 1px solid var(--aqdl-border); border-radius: var(--aqdl-radius);
	box-shadow: var(--aqdl-shadow);
	text-align: center;
	opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.aqdl-float__item:hover .aqdl-float__pop,
.aqdl-float__item:focus-within .aqdl-float__pop,
.aqdl-float__item.is-open .aqdl-float__pop {
	opacity: 1; visibility: visible; pointer-events: auto;
	transform: translateY(-50%) scale(1);
}
.aqdl-float__pop::after {
	content: ""; position: absolute; top: 50%; left: 100%;
	margin-top: -6px;
	border: 6px solid transparent; border-left-color: var(--aqdl-border);
}
.aqdl-float__pop-title {
	display: block; margin-bottom: 8px;
	font-size: .82rem; font-weight: 700; color: var(--aqdl-muted); letter-spacing: .04em;
}
.aqdl-float__line { display: block; margin: 0 0 6px; }
.aqdl-float__v {
	display: inline-block; max-width: 100%;
	margin: 0; padding: 0; border: 0; background: none;
	font-family: inherit; font-size: .95rem; font-weight: 700;
	color: var(--aqdl-accent); word-break: break-all; cursor: pointer;
}
a.aqdl-float__v:hover, button.aqdl-float__v:hover { color: var(--aqdl-accent-hover); }
.aqdl-float__copy { position: relative; }
.aqdl-float__copy.is-copied::after {
	content: "已复制";
	position: absolute; left: 50%; bottom: calc(100% + 6px);
	transform: translateX(-50%);
	padding: 3px 8px; border-radius: 6px;
	background: var(--aqdl-text); color: var(--aqdl-surface);
	font-size: .74rem; font-weight: 500; white-space: nowrap;
}
.aqdl-float__qr { display: block; margin: 4px 0; }
.aqdl-float__qr img {
	display: block; width: 140px; height: 140px; margin: 0 auto;
	object-fit: contain; border-radius: var(--aqdl-radius-sm);
}
.aqdl-float__note { display: block; margin-top: 6px; color: var(--aqdl-muted); font-size: .78rem; }

@media (max-width: 782px) {
	.aqdl-float { right: 10px; gap: 8px; }
	.aqdl-float__btn { width: 40px; height: 40px; border-radius: 12px; }
	.aqdl-float__pop { min-width: 150px; max-width: 200px; padding: 12px; }
	.aqdl-float__qr img { width: 110px; height: 110px; }
}

@media print {
	.aqdl-float { display: none !important; }
}
