.float-toolbar {
	position: fixed;
	right: 1px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1000000;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.float-toolbar .icon-btn {
	position: relative;
	border: none;
	padding: 12px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.3s;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--primary-color-red);
	color: white;
}

.float-toolbar .icon-btn:hover {
	background: #0056b3;
}

/* 添加按钮名称标签 */
.float-toolbar .icon-btn .btn-name {
	position: absolute;
	right: 100%;
	top: 50%;
	transform: translateY(-50%);
	margin-right: 10px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
}

.float-toolbar .icon-btn:hover .btn-name {
	opacity: 1;
}

.float-panel {
	position: fixed;
	right: 0;
	top: 0;
	width: 400px;
	height: 100%;
	background: #fff;
	border-left: 1px solid #ccc;
	display: none;
	z-index: 1000000;
	box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2);
	right: -420px;
	opacity: 0;	
}

.float-panel .panel-iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.float-panel .panel-close {
	position: absolute;
	top: 10px;
	right: 10px;
	border: none;
	padding: 5px 10px;
	cursor: pointer;
	font-size: 14px;
	border-radius: 4px;
	z-index: 1001;
	background: #fff;
}

/* 工具栏按钮缩小时的动画 */
.icon-btn.collapsed {
	opacity: 0;
	transform: scale(0);
	transition: all 0.3s ease;
}

/* 面板进入和退出动画 */
.float-panel.opened {
	right: 0;
	opacity: 1;
	transition: right 0.4s ease, opacity 0.4s ease;
}

.float-panel.closed {
	right: -420px; /* 完全移出屏幕右侧 */
	opacity: 0;
	transition: right 0.4s ease, opacity 0.4s ease;
}