﻿/* 右侧客服栏：图标固定右侧，悬停向左展开（对齐 xiaoyucms side_contact） */
.side_contact {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 99999;
	font-family: Arial, Helvetica, sans-serif;
}
.side_contact_list { list-style: none; margin: 0; padding: 0; }
.side_contact_item {
	position: relative;
	width: 46px;
	height: 46px;
	margin-bottom: 4px;
	overflow: visible;
}
.side_contact_item:hover { z-index: 5; }
.side_contact_icon {
	position: relative;
	z-index: 2;
	width: 46px;
	height: 46px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	background: linear-gradient(135deg, #0c4d89 0%, #0a3d6e 100%);
	color: #fff;
	font-size: 18px;
	cursor: default;
	box-shadow: -2px 2px 8px rgba(12, 77, 137, 0.25);
	transition: background 0.3s;
	box-sizing: border-box;
}
a.side_contact_icon {
	text-decoration: none;
	color: #fff;
	cursor: pointer;
}
a.side_contact_icon:hover,
a.side_contact_icon:focus {
	color: #fff;
	text-decoration: none;
	outline: none;
}
.side_contact_item:hover .side_contact_icon {
	background: linear-gradient(135deg, #FF9E16 0%, #e88a0a 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, #0c4d89 0%, #0a3d6e 100%);
}
.side_contact_top:hover .side_contact_icon {
	background: linear-gradient(135deg, #FF9E16 0%, #e88a0a 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: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	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(12, 77, 137, 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: #FF9E16; }
.side_contact_toggle { display: none; }
@media only screen and (max-width: 768px) {
	.side_contact {
		top: auto;
		bottom: 85px;
		transform: none;
	}
	.side_contact_toggle {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		-webkit-box-pack: center;
		-ms-flex-pack: center;
		justify-content: center;
		width: 50px;
		height: 50px;
		padding: 0;
		border: none;
		border-radius: 50% 0 0 50%;
		background: linear-gradient(135deg, #0c4d89 0%, #0a3d6e 100%);
		color: #fff;
		font-size: 22px;
		cursor: pointer;
		box-shadow: -2px 2px 12px rgba(12, 77, 137, 0.35);
		position: relative;
		z-index: 100001;
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
		pointer-events: auto;
	}
	.side_contact_toggle .side_contact_close { display: none; font-size: 20px; pointer-events: none; }
	.side_contact_toggle .fa-comments { pointer-events: none; }
	.side_contact.is-open .side_contact_toggle {
		background: linear-gradient(135deg, #FF9E16 0%, #e88a0a 100%);
	}
	.side_contact.is-open .side_contact_toggle .fa-comments { display: none; }
	.side_contact.is-open .side_contact_toggle .side_contact_close { display: block; }
	.side_contact_list { display: none; margin-bottom: 6px; }
	.side_contact.is-open .side_contact_list { display: block; }
	.side_contact_top,
	.side_contact_top.is-visible { display: none !important; }
}
