/* Engreen 右侧在线客服浮窗：复刻原 5usujian #wysj-trade 的尺寸与配色 */

#eg-service-bar,
#eg-service-bar * {
	box-sizing: border-box;
}
#eg-service-bar {
	position: fixed;
	top: 100px;
	right: -170px;
	z-index: 9999;
	width: 170px;
	background: #fff;
	font-family: "Microsoft Yahei", sans-serif;
	transition: right .6s;
}
#eg-service-bar.is-open {
	right: 0;
}
@media (hover: hover) and (min-width: 451px) {
	#eg-service-bar:hover {
		right: 0;
	}
}

#eg-service-bar .eg-sb-box {
	position: relative;
	/* 顶部 3px 橙线与竖排标签同色，连成一体；上下留白与原标题栏去掉后的版面平衡 */
	padding: 8px 0 12px;
	border-top: 3px solid #f60;
	box-shadow: 0 0 15px rgba(0, 0, 0, .3);
}
/* 面板顶部原有一条橙色「在线客服」标题，与左侧竖排标签重复，2026-10-21 按用户要求去掉；标签随之顶齐 */
#eg-service-bar .eg-sb-btn {
	position: absolute;
	top: -3px; /* 与面板顶部橙线上沿齐平 */
	right: 170px;
	padding: 20px 10px;
	color: #fff;
	background: #f60;
	font-size: 16px;
	line-height: 1.2;
	cursor: pointer;
	/* 竖排：每行一个字，与原插件一致 */
	width: 36px;
	word-break: break-all;
	text-align: center;
}
#eg-service-bar .eg-sb-item {
	padding: 0 15px;
}
#eg-service-bar .eg-sb-item-title {
	margin: 10px 0 0;
	font-size: 14px;
	font-weight: bold;
	color: #333;
}
#eg-service-bar .eg-sb-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
#eg-service-bar .eg-sb-list li {
	margin: 0;
	padding: 10px 0;
	line-height: 1.2em;
	border-bottom: 1px solid #eee;
	list-style: none;
}
#eg-service-bar .eg-sb-list a {
	display: flex;
	align-items: center;
	gap: 4px;
	text-decoration: none;
}
#eg-service-bar .eg-sb-icon {
	flex: none;
	color: #f90;
}
#eg-service-bar .eg-sb-name {
	color: #333;
	font-size: 14px;
	transition: color .3s;
}
/* 热线只展示号码，不做 tel: 链接（2026-10-21 用户要求） */
#eg-service-bar .eg-sb-phone {
	color: #f60;
	font-size: 16px;
	font-weight: bold;
	user-select: all;
	-webkit-user-select: all;
}
#eg-service-bar a:hover .eg-sb-name {
	color: #f90;
}
/* QQ 行：点击后就地高亮 3 秒（电脑端气泡箭头指向它；原「✓ 已复制」角标会盖住号码，已去掉） */
#eg-service-bar .eg-sb-qq {
	border-radius: 3px;
	transition: background-color .3s, box-shadow .3s;
}
#eg-service-bar .eg-sb-qq.is-copied {
	background-color: #f0f9eb;
	box-shadow: inset 3px 0 0 #52c41a;
}

/* 复制后的居中提示框 */
html.eg-qqd-lock,
html.eg-qqd-lock body {
	overflow: hidden;
}
#eg-qq-dialog[hidden],
#eg-qq-dialog [hidden] {
	display: none !important;
}
#eg-qq-dialog,
#eg-qq-dialog * {
	box-sizing: border-box;
}
#eg-qq-dialog {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	/* 要压过右下角购物车悬浮按钮（side-cart 插件的 z-index 很高） */
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: "Microsoft Yahei", sans-serif;
}
#eg-qq-dialog .eg-qqd-mask {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, .45);
}
#eg-qq-dialog .eg-qqd-box {
	position: relative;
	width: 280px;
	max-width: 100%;
	padding: 18px 18px 14px;
	text-align: center;
	color: #333;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
	animation: eg-qqd-in .2s ease-out;
}
@keyframes eg-qqd-in {
	from { opacity: 0; transform: translateY(10px) scale(.97); }
	to { opacity: 1; transform: none; }
}
#eg-qq-dialog .eg-qqd-x {
	position: absolute;
	top: 4px;
	right: 6px;
	padding: 4px 6px;
	font-size: 18px;
	line-height: 1;
	color: #aaa;
	background: none;
	border: 0;
	cursor: pointer;
}
#eg-qq-dialog .eg-qqd-head {
	display: flex;
	align-items: center;
	justify-content: center;
}
#eg-qq-dialog .eg-qqd-icon {
	flex: none;
	width: 22px;
	height: 22px;
	margin-right: 6px;
	line-height: 22px;
	font-size: 13px;
	font-weight: bold;
	color: #fff;
	background: #52c41a;
	border-radius: 50%;
}
#eg-qq-dialog.is-failed .eg-qqd-icon {
	background: #faad14;
}
#eg-qq-dialog .eg-qqd-title {
	font-size: 16px;
	font-weight: bold;
}
#eg-qq-dialog .eg-qqd-name {
	margin-top: 4px;
	font-size: 12px;
	color: #888;
}
#eg-qq-dialog .eg-qqd-num-row {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 10px 0 8px;
	padding: 6px 10px;
	background: #fff7e6;
	border: 1px dashed #ffb84d;
	border-radius: 5px;
}
#eg-qq-dialog .eg-qqd-num {
	font-size: 20px;
	font-weight: bold;
	letter-spacing: .5px;
	color: #f60;
	user-select: all;
	-webkit-user-select: all;
}
#eg-qq-dialog .eg-qqd-recopy {
	flex: none;
	margin-left: 8px;
	padding: 2px 8px;
	font-size: 12px;
	color: #f60;
	background: #fff;
	border: 1px solid #f60;
	border-radius: 10px;
	cursor: pointer;
}
#eg-qq-dialog .eg-qqd-hint {
	margin: 0 0 12px;
	font-size: 12px;
	line-height: 1.6;
	color: #666;
}
#eg-qq-dialog .eg-qqd-actions {
	display: flex;
	flex-direction: column;
}
#eg-qq-dialog .eg-qqd-open:not([hidden]) {
	margin-bottom: 8px;
}
#eg-qq-dialog .eg-qqd-open,
#eg-qq-dialog .eg-qqd-ok {
	display: block;
	width: 100%;
	padding: 8px 0;
	font-size: 14px;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
	cursor: pointer;
}
#eg-qq-dialog .eg-qqd-open {
	color: #fff;
	background: #12b7f5; /* QQ 蓝 */
	border: 0;
}
#eg-qq-dialog .eg-qqd-ok {
	color: #fff;
	background: #009a61; /* 与站点主按钮同色 */
	border: 0;
}
#eg-qq-dialog .eg-qqd-open:not([hidden]) + .eg-qqd-ok {
	color: #666;
	background: #f5f5f5;
}

#eg-service-bar .eg-sb-qrcode {
	margin-top: 10px;
	text-align: center;
	font-size: 14px;
	color: #333;
}
#eg-service-bar .eg-sb-qrcode img {
	display: block;
	width: 100%;
	height: auto;
	-webkit-touch-callout: default; /* 显式允许长按菜单：微信靠它弹「识别图中二维码」 */
}
#eg-service-bar .eg-sb-qrcode img.is-zoomable {
	cursor: zoom-in;
}

/* 电脑端气泡模式：贴在浮窗左侧，箭头指向被点的那一行；无暗色遮罩（遮罩透明，仅用于点外面关闭） */
#eg-qq-dialog .eg-qqd-arrow {
	display: none;
}
#eg-qq-dialog.is-pop {
	display: block;
	padding: 0;
}
#eg-qq-dialog.is-pop .eg-qqd-mask {
	background: transparent;
}
#eg-qq-dialog.is-pop .eg-qqd-box {
	position: fixed;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .28);
	animation: eg-qqd-pop .18s ease-out;
}
@keyframes eg-qqd-pop {
	from { opacity: 0; transform: translateX(10px); }
	to { opacity: 1; transform: none; }
}
#eg-qq-dialog.is-pop .eg-qqd-arrow {
	display: block;
	position: absolute;
	right: -7px;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	background: #fff;
	transform: rotate(45deg);
	box-shadow: 3px -3px 4px rgba(0, 0, 0, .08);
}
#eg-service-bar.is-front {
	z-index: 2147483001;
}
/* 气泡开着时浮窗已展开，左侧竖排「在线客服」标签多余，且会压住气泡右上角 */
#eg-service-bar.is-front .eg-sb-btn {
	display: none;
}

/* 手机端二维码放大查看 */
#eg-qr-view[hidden] {
	display: none !important;
}
#eg-qr-view {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: "Microsoft Yahei", sans-serif;
}
#eg-qr-view .eg-qrv-mask {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, .6);
}
#eg-qr-view .eg-qrv-box {
	position: relative;
	width: 290px;
	max-width: 100%;
	padding: 20px 20px 14px;
	text-align: center;
	background: #fff;
	border-radius: 8px;
}
#eg-qr-view img {
	display: block;
	width: 100%;
	height: auto;
	-webkit-touch-callout: default;
}
#eg-qr-view .eg-qrv-tip {
	margin: 12px 0;
	font-size: 14px;
	line-height: 1.6;
	color: #333;
}
#eg-qr-view .eg-qrv-close {
	width: 100%;
	padding: 8px 0;
	font-size: 14px;
	color: #666;
	background: #f5f5f5;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}
