/* 悬浮菜单样式 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	/* font-family: 'Microsoft YaHei', sans-serif; */
	/* min-height: 2000px; 为了演示返回顶部功能 */
	/* padding: 20px; */
}

header {
	height: 60px;
	background-color: #f5f5f5;
	text-align: center;
	line-height: 60px;
	margin-bottom: 20px;
}

.content {
	padding: 20px;
	background-color: #f9f9f9;
	margin-bottom: 20px;
}

/* 悬浮菜单容器 */
.floating-menu {
	position: fixed;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 999;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* 菜单按钮共同样式 */
.menu-item {
	width: 50px;
	height: 50px;
	background-color: #fff;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	position: relative;
	transition: all 0.3s ease;
}

.menu-item:hover {
	transform: translateX(-5px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 图标样式 */
.menu-item .menu-icon {
	width: 60px;
	height: 60px;
}

/* 弹出内容样式 */
.popup {
	position: absolute;
	right: 60px;
	top: 0;
	background-color: #fff;
	border-radius: 5px;
	padding: 15px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	display: none;
	width: 150px;
	text-align: center;
	animation: fadeIn 0.3s ease;
}

/* 联系我们弹出框样式 */
.contact-popup {
	width: 170px;
}

/* 二维码图片样式 */
.qr-code {
	width: 145px;
	height: 145px;
	margin: 10px auto;
	display: block;
}

/* 弹出框标题 */
.popup-title {
	font-size: 14px;
	color: #333;
	margin-bottom: 10px;
}

/* 返回顶部弹出框样式 */
.top-popup {
	width: 100px;
}

/* 动画效果 */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateX(10px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* 悬浮菜单在移动设备上的样式 */
@media (max-width: 768px) {
	.floating-menu {
		right: 10px;
	}
	
	.menu-item {
		width: 40px;
		height: 40px;
	}
	
	.menu-item img {
		width: 20px;
		height: 20px;
	}
	
	.popup {
		right: 50px;
	}
}