/* ============================================
	* 悬浮侧边栏核心样式
	* ============================================ */

/* 侧边栏容器 - 固定在右侧 */
.floating-sos-sidebar {
	position: fixed;
	right: 0;
	top: 70%;
	transform: translateY(-50%);
	z-index: 9999;
}

/* 每个菜单项的外层容器 */
.sos-sidebar-item {
	position: relative;
	margin-bottom: 12px;
	cursor: pointer;
}

/* 隐藏的弹出内容（默认状态） */
.sos-sidebar-popup {
	position: absolute;
	right: 100%;  /* 定位到图标左侧 */
	top: 50%;
	transform: translateY(-50%);
	margin-right: 15px;
	
	/* 隐藏状态 */
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	
	/* 样式 */
	background: #fff;
	border-radius: 12px;
	padding: 12px 20px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2);
	white-space: nowrap;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	
	/* 可选：添加小三角 */
	position: absolute;
}

/* 弹出内容的小三角（指向图标） */
.sos-sidebar-popup::after {
	content: '';
	position: absolute;
	left: 100%;
	top: 50%;
	transform: translateY(-50%);
	border-width: 8px;
	border-style: solid;
	border-color: transparent transparent transparent #fff;
}

/* 鼠标覆盖图标时，显示弹出内容 */
.sos-sidebar-item:hover .sos-sidebar-popup {
	opacity: 1;
	visibility: visible;
	margin-right: 10px;  /* 弹出时的间距，可微调 */
}

/* 图标按钮样式 */
.sos-sidebar-icon {
	width: 56px;
	height: 56px;
	background: #f5f5f5;
	border-radius: 12px 0 0 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-shadow: -2px 4px 12px rgba(0,0,0,0.15);
	transition: all 0.3s ease;
	cursor: pointer;
}

.sos-sidebar-item:hover .sos-sidebar-icon {
	background: #4a90e2;
}

/* 图标内的SVG样式 */
.sos-sidebar-icon svg {
	width: 28px;
	height: 28px;
	stroke: #4a90e2;
	stroke-width: 1.5;
	fill: none;
}

.sos-sidebar-item:hover .sos-sidebar-icon svg {
	stroke: #fff;
}

.sos-sidebar-icon span {
	font-size: 10px;
	color: #666;
	margin-top: 4px;
}

.sos-sidebar-item:hover .sos-sidebar-icon span {
	color: #fff;
}

/* 企业微信咨询的图标（图片版本） */
.sos-wechat-icon {
	width: 28px;
	height: 28px;
	background: #07c160;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 16px;
	font-weight: bold;
}

.sos-sidebar-item:hover .sos-wechat-icon {
	background: #fff;
	color: #07c160;
}

/* 响应式：移动端适配 */
@media (max-width: 768px) {
	.sos-sidebar-icon {
		width: 48px;
		height: 48px;
	}
	.sos-sidebar-icon svg {
		width: 22px;
		height: 22px;
	}
	.sos-sidebar-popup {
		padding: 8px 16px;
		font-size: 12px;
	}
}