@charset "utf-8";
/* ==========================================================================
   微信加好友组件（提取自 IDdai 模板 erx 微信插件，去依赖重写版）
   文件：wechat-widget.css
   配套：wechat-widget.html / wechat-widget.js
   说明：图标已改为内联 SVG，不依赖 iconfont 字体文件
   ========================================================================== */

.erx-weixin-widget { position: relative; z-index: 99990; }

/* ---------- 弹层 ---------- */
.erx-weixin-open {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	font-size: 14px;
	text-align: center;
	background-color: rgba(0, 0, 0, .5);
	z-index: 99999;
}
.erx-weixin-open.erxact { display: block; }
.erx-weixin-open:after {
	content: '';
	display: inline-block;
	width: 0;
	height: 100%;
	vertical-align: middle;
}

.erx-wx-box {
	position: relative;
	display: inline-block;
	line-height: 1.35;
	width: 320px;
	max-width: 96%;
	color: #111;
	background-color: #fff;
	padding: 20px;
	border-radius: 15px;
	vertical-align: middle;
	box-sizing: border-box;
}
.erx-wx-box i,
.erx-wx-box em,
.erx-weixin-bar em { font-style: normal; }
.erx-wx-box h5 {
	margin: 5px 0 9px;
	font-size: 18px;
	font-weight: bold;
	padding: 0;
	background: none;
	border: 0;
}
.erx-wx-box em { color: #f00; font-weight: bold; }
.erx-wx-ow { max-height: 72vh; overflow-y: auto; }
.erx-wx-ts { color: #333; }

a.erx-wx-btn,
span.erx-wx-btn {
	display: inline-block;
	margin: 12px 0;
	line-height: 38px;
	color: #fff;
	font-size: 14px;
	background-color: #1aad19;
	padding: 0 25px;
	border-radius: 5px;
	cursor: pointer;
	text-decoration: none;
}
a.erx-wx-btn:hover { color: #eee; }
.erx-wx-btn i {
	display: inline-block;
	margin-left: 3px;
	font-size: 12px;
	font-style: normal;
	opacity: .6;
	transform: scale(.9);
}

.erx-wx-ico {
	display: inline-block;
	width: 48px;
	height: 48px;
	line-height: 48px;
	text-align: center;
	background-color: #1aad19;
	border-radius: 50%;
}

/* ---------- 悬浮球 ---------- */
.erx-weixin-ball {
	position: fixed;
	right: 30px;
	bottom: 98px;
	width: 50px;
	height: 50px;
	line-height: 50px;
	text-align: center;
	background-color: #1aad19;
	cursor: pointer;
	animation: erx-heartbeat 1s infinite;
	border-radius: 50%;
	z-index: 99998;
}

/* ---------- 底部条 ---------- */
.erx-weixin-bar {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 48px;
	line-height: 48px;
	color: #fff;
	font-size: 14px;
	text-align: center;
	background-color: #393939;
	z-index: 99998;
	box-sizing: border-box;
}
.erx-weixin-bar > span,
.erx-weixin-bar > a { display: inline-block; height: 100%; }

.erx-wx-tel {
	position: relative;
	float: left;
	width: 48px;
	background-color: #f80;
	color: #fff;
	text-decoration: none;
}
.erx-wx-tel > div {
	position: absolute;
	top: 3px;
	left: -200%;
	height: 42px;
	line-height: 42px;
	color: #f80;
	font-size: 16px;
	font-weight: bold;
	white-space: nowrap;
	background: #eee;
	padding: 0 12px 0 8px;
	border-radius: 0 30px 30px 0;
	opacity: 0;
	transition: all .3s ease-out;
}
.erx-wx-tel.erxact > div { left: 100%; opacity: 1; }

/* QQ 入口：沿用原来电话入口的橙色，图标用正立的标准企鹅 */
.erx-wx-qq {
	position: relative;
	float: left;
	display: inline-flex;
	align-items: center;
	height: 100%;
	padding: 0 18px;
	box-sizing: border-box;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	background-color: #f80;
	transition: background-color .2s ease-out;
}
.erx-wx-qq:hover { background-color: #e67300; }
.erx-wx-qq > div {
	display: inline-block;
	vertical-align: middle;
	line-height: 1;
	font-size: 14px;
	font-weight: 400;
	color: #fff;
}

.erx-wx-txt,
.erx-wx-txt a { color: #F4E41C; font-size: 12px; }

.erx-wx-add {
	float: right;
	background-color: #0C3FD6;
	padding: 0 18px;
	cursor: pointer;
}

/* ---------- 图标（内联 SVG） ---------- */
.wxw-ico {
	display: inline-block;
	vertical-align: middle;
	line-height: 1;
}
.wxw-ico svg { display: block; width: 100%; height: 100%; }

.wxw-ico-weixin { width: 25px; height: 25px; color: #fff; }
.wxw-ico-tel { width: 25px; height: 25px; color: #fff; }
.wxw-ico-qq {
	display: inline-block;
	vertical-align: middle;
	width: 18px;
	height: 18px;
	line-height: 18px;
	margin-right: 6px;
	text-align: center;
	background: url("qq-penguin.svg?v=8") center / 18px 18px no-repeat;
	border-radius: 0;
}
.wxw-ico-qq svg { display: none; }
.wxw-ico-success { width: 40px; height: 40px; color: #1aad19; margin: 0 auto; }
.erx-wx-box .wxw-ico-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 24px;
	height: 24px;
	color: #555;
	cursor: pointer;
}
.erx-wx-box .wxw-ico-close:hover { color: #f30; }
.erx-wx-add .wxw-ico { width: 16px; height: 16px; margin-right: 5px; }

@keyframes erx-heartbeat {
	50% { transform: scale(1.1); }
}

/* ---------- 手机端 ---------- */
@media only screen and (max-width: 640px) {
	.erx-weixin-ball { right: 20px; }
	.erx-weixin-bar .erx-wx-qq + .erx-wx-txt { display: none; }
	.erx-weixin-bar .erx-wx-qq { width: 55%; padding: 0 18px; }
	.erx-weixin-bar .erx-wx-qq > div { font-size: 14px; }
	.erx-weixin-bar .erx-wx-add { width: 45%; box-sizing: border-box; }
}
