/* 右侧客服栏：图标固定右侧，悬停向左展开 */
.side_contact {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 99999;
}

.side_contact_list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.side_contact_item {
	position: relative;
	width: 46px;
	height: 46px;
	margin-bottom: 4px;
}

/* 图标区：始终固定不动 */
.side_contact_icon {
	position: relative;
	z-index: 2;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #161e21 0%, #121820 100%);
	color: #fff;
	font-size: 18px;
	cursor: default;
	box-shadow: -2px 2px 8px rgba(18, 24, 32, 0.28);
	transition: background 0.3s;
}

.side_contact_item:hover .side_contact_icon {
	background: linear-gradient(135deg, #df0000 0%, #b80000 100%);
}

.side_contact_whatsapp .side_contact_icon {
	background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
}

.side_contact_whatsapp:hover .side_contact_icon {
	background: linear-gradient(135deg, #2ee06a 0%, #25D366 100%);
}

.side_contact_wechat .side_contact_icon {
	background: linear-gradient(135deg, #07C160 0%, #06ad56 100%);
}

.side_contact_wechat:hover .side_contact_icon {
	background: linear-gradient(135deg, #1fd16f 0%, #07C160 100%);
}

/* 置顶：默认隐藏，滚动后显示 */
.side_contact_top {
	display: none;
}

.side_contact_top.is-visible {
	display: block;
}

.side_contact_top .side_contact_icon {
	cursor: pointer;
	background: linear-gradient(135deg, #df0000 0%, #b80000 100%);
}

.side_contact_top:hover .side_contact_icon {
	background: linear-gradient(135deg, #ff3333 0%, #df0000 100%);
}

.side_contact_top .side_contact_panel span {
	color: #333;
	font-size: 13px;
}

/* 展开面板：从图标左侧滑出，图标位置不变 */
.side_contact_panel {
	position: absolute;
	right: 46px;
	top: 0;
	height: 46px;
	display: flex;
	align-items: center;
	background: #fff;
	max-width: 0;
	overflow: hidden;
	opacity: 0;
	padding: 0;
	border-radius: 6px 0 0 6px;
	box-shadow: -4px 0 16px rgba(18, 24, 32, 0.12);
	transition: max-width 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
	white-space: nowrap;
	pointer-events: none;
}

.side_contact_item:hover .side_contact_panel {
	max-width: 320px;
	opacity: 1;
	padding: 0 16px;
	pointer-events: auto;
}

.side_contact_panel a {
	color: #333;
	font-size: 13px;
	text-decoration: none;
	transition: color 0.3s;
}

.side_contact_panel a:hover {
	color: #df0000;
}

/* 微信二维码面板 */
.side_contact_panel_qr {
	height: auto;
	min-height: 46px;
	align-items: center;
}

.side_contact_item:hover .side_contact_panel_qr {
	max-width: 200px;
	padding: 10px 12px;
}

.side_contact_panel_qr img {
	display: block;
	width: 160px;
	height: 160px;
	object-fit: contain;
}

/* 桌面端隐藏泡泡按钮 */
.side_contact_toggle {
	display: none;
}

@media only screen and (max-width: 768px) {
	/* 手机端底部 mfoot_box 已提供联系入口，隐藏右侧客服栏（含泡泡按钮） */
	.side_contact {
		display: none !important;
	}
}
