* {outline:none;}

html, body {width:100%;height:100%;overflow: hidden;margin: 0;padding:0;}

body, textarea, input, select {
    border-radius: 0;
    font: 16px "Microsoft YaHei", "\5b8b\4f53", Verdana, Arial, sans-serif;
    margin: 0;
	background:#fff;
}

textarea, input{-webkit-appearance: none; padding:8px;border:0;}

::-webkit-input-placeholder {color:#d2d2d2;text-align:center;line-height:40px;}
::-moz-placeholder {color:#b6b6b6;text-align:center;line-height:40px;}
::-ms-input-placeholder {color:#d2d2d2;text-align:center;line-height:40px;}

.noselect{
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select:none;
	-moz-user-select: none;
	-ms-user-select:none;
	user-select: none;
}

.shutdown{
	font-size:18px;color:red;width:80%;text-align:center;margin:0 auto;padding:10px;
	margin-top:300px;border:1px solid #c6c6c6;border-radius: 5px;background:#e3e3e3;
}

#welive_operator {margin:0;width:auto;display:block;height:42px;overflow:hidden;padding:2px 6px 2px 4px;background-color: #29C7C2;}
#welive_avatar {
	display:block;
	float:left;
	width:36px;
	height:36px;
	padding:2px;
	background:#ddd;
	border:0;
	vertical-align:top;
	margin-top:1px;
	-webkit-border-radius: 4px 4px 4px 4px;
	-moz-border-radius: 4px 4px 4px 4px;
	border-radius: 4px 4px 4px 4px;
}
#welive_name, #welive_duty {
	float:left;
	height:18px;
	width:200px;
	overflow:hidden;
	margin-left:8px;
	margin-top:2px;
}
#welive_name {color:#fff;}
#welive_duty {font-size:14px;color:#21a39f;}
#welive_copyright {position:absolute;right:12px;top:10px;}
#welive_copyright a {color:#fff;text-decoration:none;font-size:12px;outline:none;}

#new_info{
	display: none;
	color: #fff;
	border-radius: 50%;
	background: #ff6600;
	width:50px;
	height:50px;
	line-height:50px;
	text-align:center;
	position:absolute;
	top:40%;
	left:50%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	font-size:26px;
	box-shadow: 0 0 6px #333;
	overflow:hidden;
}

.viewport {
	position:absolute;
	left:0;right:0;
	top:46px;bottom:149px;
	overflow-x: hidden;
    overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.viewport::after {
	display:block;
	width:100%;
	height:56px;
	overflow:hidden;
	content:"　";
	visibility:hidden;
}

.enter {margin:0;left:0;right:0;bottom:0;position:absolute;height:148px;border-top:1px solid #d9d9d9;background:#eee;text-align:center;overflow:hidden;}

.animate_avatar {position:absolute;width:52px;height:52px;overflow:hidden;left:60px;bottom:200px;}
.animate_avatar img {width:48px;padding:2px;background:#ccc;border:0;border-radius: 4px;}

.loading{background: url(img/saving.gif) center center no-repeat;}
.loading1 {background-color:#b7b7b7 !important;}

.shake {
	border: 1px solid red !important;
	color:red !important;
	-moz-box-shadow: 0 0 10px #FF9900 !important;
		-webkit-box-shadow: 0 0 10px #FF9900 !important;
			box-shadow: 0 0 10px #FF9900 !important;
}

.smilies_div {display:none;max-width:92%;position:absolute;border:1px solid #b7b7b7; background:#e8e8e8;border-radius: 4px;bottom:151px;left:8px;overflow:hidden;padding:4px;}
.smilies_wrap {width:100%;}
.smilies_wrap img {padding:8px;border:0;}
.smilies_wrap img:focus, .smilies_wrap img:hover{border-radius: 4px 4px 4px 4px; background:#b7b7b7;}

.viewport img {vertical-align:middle;border:0;}
.viewport a {text-decoration:none;}

.viewport a.down {display:block;padding:2px 4px;border:1px solid #a5a5a5;border-radius: 6px;}

.msg{position: relative;margin:10px 0 2px 0;width:100%;display:inline-block;padding:0;background:0;border:0;}
.msg.l b, .msg.r b{position: absolute;top:45%;width:13px;height:15px;}
.msg.l b{left: 0;}
.msg.r b{right: 0;background: url(img/msgr.png) bottom center no-repeat;}

.msg .b{
	padding: 4px 8px;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}

.msg.l .b{text-align: left;float:left;margin-left: 16px;color: #000;display:inline;background:#fff;font-size:16px;}
.msg.r .b{text-align: right;float:right;margin-right: 11px;color: #fff;display:inline;font-size:14px;background-color: #29C7C2;border: 1px solid #29C7C2;}
.msg.s .b, .msg.e .b{width:60%;margin:0 auto;text-align: center;border: solid 1px #ddd;color: #888;background:#eee;padding:3px;font-size:14px;}
.msg.e .b{color:red;}

.msg .i{word-wrap: break-word;line-height:1.5em;overflow:hidden;}
.msg.l .i{min-width:40px;max-width: 280px;font-family: "\5FAE\8F6F\96C5\9ED1", "Microsoft YaHei";background-color:#f1f1f1;border-radius:4px;padding:4px 8px;}
.msg.r .i{min-width:40px;max-width: 240px;font-family: "\5FAE\8F6F\96C5\9ED1", "Microsoft YaHei";min-height:22px;line-height:22px;}
.msg i{color: #c7c7c7;font-size: 12px;top: 0px;}
.msg.r i{float: right;padding:0 8px 0 0;}
.msg.r s{float: right;color: #9d9d9d;text-decoration:none;font-style:normal;}
.msg.r s.un{color: #ff6600 !important;}
.msg.l i{padding:4px 0 0 8px;}
.msg.l .a{padding-left:10px;width:100%;display:block;font-size:14px;color:#7c7c7c;font-style:italic;margin-bottom:2px;}

.sending_div, .sending_img, .sending_mask{width:240px;overflow:hidden;}
.sending_div{position:relative;margin:4px auto;padding:0;background:#d8d8d8;}
.sending_img{position:absolute;left:0;bottom:0px;right:0px;}
.sending_mask{position:absolute;left:0;bottom:0px;right:0px;background:#000;filter:alpha(Opacity=60);-moz-opacity:0.6;opacity: 0.6;text-align:center;}

.msg.l .sending_div{border-radius:4px;border:solid 3px #d8d8d8;}

.file_upload{height:12px;border-radius: 6px;}
.uploading_mask{position:absolute;top:0;bottom:0;right:0;background:#000;filter:alpha(Opacity=60);-moz-opacity:0.6;opacity: 0.6;text-align:center;}

.enter .tool_bar {display:block;padding:3px;height:40px;overflow:hidden;}
.tool_bar div {
    float: left;
    margin: 1px 4px;
	width:36px;
	height:36px;
	display:inline-block;
	overflow:hidden;
	padding:0;
	border:1px solid #d2d2d2;
	border-radius: 4px;
	background-size: 100% 100%;
	background-position:center center;
}

.emotion{background: url(img/t_emotion2.png);}
.photo_on{background: url(img/t_photo.png);}
.upload_on{background: url(img/t_file.png);}
.sound_on{background: url(img/t_sound.png);}
.sound_off{background: url(img/t_soundoff.png);}
.evaluate{background: url(img/t_evaluate.png);}

.emotion_hover{background: url(img/t_emotion_hover.png);border-color:#909090 !important;}
.evaluate_hover{background: url(img/t_evaluate_hover.png);border-color:#909090 !important;}

.trans_to {position: absolute;right:4px;line-height:36px;color:#747474;width: auto !important;	padding: 0 8px !important;}

.enter .msger {
	margin:0;
	width:96%;
	height:40px;
	resize: none;
	border:0;
	overflow-x: hidden;
    overflow-y: auto;
}

a.sender, a.relink {
	font-size:16px;
	padding: 6px 12px;
	border:0;
	border-radius: 4px;
	color: #fff;
	display: inline-block;
	margin: 3px 0;
	text-decoration:none;
	background-color: #29C7C2;
}

#starRating{
	font-family: "\5FAE\8F6F\96C5\9ED1", "Microsoft YaHei";
	display:none;
	position:absolute;
	left:50%;
	transform:translate(-50%);
	bottom:151px;
    width: 270px;
	height:210px;
	overflow:hidden;
    border-radius: 4px;
    border:1px solid #afafaf;
    font-size: 14px;
    letter-spacing: 1px;
	background:#e8e8e8;
	padding-top:15px;
}
#starRating p{text-align:center;width:100%;display:block;padding: 5px;margin:0;}
#starRating p.star{padding: 6px 0;}
#starRating .title{font-size: 14px;}
#starRating .last{font-size: 14px;}

#starRating span {
    position: relative;
    display: inline-block;
    width: 28px;
    height:28px;
    overflow: hidden;
    margin-right: 8px;
}
#starRating .last{margin-right: 0 !important;}

#starRating .high {
    position: absolute;
    width: 44px;
    height: 42px;
    top: 0;
    left: 0;
    background: url("img/star_on.png");
}

#starRating .nohigh {
    position: absolute;
    width: 28px;
    height: 28px;
    top: 0;
    left: 0;
    background: url("img/star_off.png");
}

#starRating .starInfo {
    height: 19px;
    line-height: 19px;
    text-align: center;
    color: #ff9a55;
	letter-spacing: 1px;
}

#starRating .starInfo img{
	width: 17px;
	height: 16px;
	vertical-align: text-top;
	margin-right: 6px;
	display: inline-block;
}

#starRating textarea{
	width: 220px;
    height: 40px;
    padding: 4px 6px;
    overflow-y: auto;
    resize: none;
    word-break: break-all;
    line-height: 17px;
    border-radius:4px;
    font-size: 14px;
}
#starRating textarea:focus {font-size:14px !important;}
#starRating .sender{float:none;margin:-4px auto;}

.welive_popup{display:none;position: fixed; top:0;left:0;width:100%;height:100%;background-color: rgba(0,0,0,0.3);z-index:20000;overflow:hidden;}
.big_img_wrap{position:absolute;box-shadow: 0 0 8px #fff;}

.robot_typing .a{color: #FF534C !important;}
.robot_typing .i{display:block;height:26px;width:86px;background: url("img/typing.svg") center center no-repeat;}

#questions_div {display:none;}

.q_search{
	z-index:9000;
	position:absolute;
	display:none;
	bottom:106px;
	left:7px;
	border: 1px solid #afafaf;
	border-radius: 4px;
	background: #E8E8E8;
	padding: 4px 8px;
	max-width:92%;
	max-height:500px;
	overflow-x:hidden;
	overflow-y:auto;
}

.q_search li {list-style:none;width:100%;word-wrap: break-word;border-bottom:1px dashed #ccc;border-top:1px dashed #fafafa;padding:6px 0;}
.q_search li b {font-weight:normal;}
.q_search li i {margin-right:6px;font-style:normal;color:#b0b0b0;font-size:10px;vertical-align:middle;}

.q_search_title{border-bottom:1px dashed #ccc;font-weight: bold;color:#ff6600;padding: 2px 0 4px;}
.q_search_title b{float:right;margin-left:30px;}

/* 短语音相关 */
.tool_bar .toolbar_voice {background-image: url(img/t_mic.png);position: absolute;right:4px;border:1px solid #eee;}
.tool_bar .keyboard {background-image: url(img/t_keyboard.png);}
.enter .mic_button{
	display: none;
	border-radius: 4px;
	background: #29C7C2;
	color: #fff;
	text-align: center;
	height: 60px;
	line-height: 60px;
	overflow: hidden;
	font-size: 20px;
	width:100%;
}

.mic_button.down{background: #FF534C;}

.recorder_tip{
	display: none;
	position: absolute;
	z-index: 80000;
	width: 160px;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	text-align: center;
	border-radius: 4px;
	overflow: hidden;
	background:rgba(0,0,0,0.5);
	font-size: 16px;
	padding: 12px 20px 8px 20px;
	color:#e2e2e2;
}

@-webkit-keyframes tip_recording {
	0% {-webkit-transform: scaley(1);transform: scaley(1);}
	50% {-webkit-transform: scaley(0.4);	transform: scaley(0.4);}
	100% {-webkit-transform: scaley(1);transform: scaley(1);}
}

@keyframes tip_recording {
	0% {-webkit-transform: scaley(1);transform: scaley(1);}
	50% {-webkit-transform: scaley(0.4);transform: scaley(0.4);}
	100% {-webkit-transform: scaley(1);transform: scaley(1);}
}

.tip_recording > div {
	background-color: #fff;
	width: 6px;
	height: 10px;
	border-radius: 2px;
	margin: 3px;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	display: inline-block;
	-webkit-animation: tip_recording 0.9s 0s infinite cubic-bezier(.85, .25, .37, .85);
	animation: tip_recording 0.9s 0s infinite cubic-bezier(.85, .25, .37, .85);
}
.tip_recording > div:nth-child(2), .tip_recording > div:nth-child(4) {
	-webkit-animation-delay: 0.2s !important;
	animation-delay: 0.2s !important;
}
.tip_recording > div:nth-child(1), .tip_recording > div:nth-child(5) {
	-webkit-animation-delay: 0.4s !important;
	animation-delay: 0.4s !important;
}

.tip_timer {
	border-radius: 50%;
	height:60px;
	width:60px;
	overflow:hidden;
	background:#ddd;
	margin:0 auto;
	color:#FF534C;
	text-align:center;
	line-height:60px;
	font-size:36px;
	margin-top:6px;
	font-weight: bold;
}

.tip_info{padding:8px;}
.warning{border-radius: 3px;background-color: darkred;margin-bottom:8px;}

.tip_cancel{display:none;height: 60px;}
.tip_cancel:before, .tip_cancel:after {
	position: absolute;
	left: 50%;
	content: ' ';
	height: 50px;
	width: 10px;
	background-color: #fff;
	border-radius: 2px;
}

.tip_cancel:before {transform: rotate(45deg);}
.tip_cancel:after {transform: rotate(-45deg);}

.voice_left, .voice_right{width: 80px;height: 30px;}

.sec{float: left;font-size: 18px;line-height: 30px;}
.voice_left .sec{float: right;}

.voice_icon{
	float: left;
	padding: 0;
	width: 30px;
	height: 30px;
	background: url(img/voice.png);
	background-repeat: no-repeat;
	background-position: 0;
	background-size: auto 100%;
	display: block;
	overflow: hidden;
}
.voice_right .voice_icon{transform: rotate(180deg);float: right;}

.playing{
    animation: voice_animation 1s steps(1) infinite;
    -moz-animation: voice_animation 1s steps(1) infinite;
    -webkit-animation: voice_animation 1s steps(1) infinite;
    -o-animation: voice_animation 1s steps(1) infinite;
    animation-play-state: running;
}

@-webkit-keyframes voice_animation {
    25%  {background-position: -30px;}
    50%  {background-position: -60px;}
    75%  {background-position: -90px;}
    100% {background-position: 0;}
}

@keyframes voice_animation{
    25%  {background-position: -30px;}
    50%  {background-position: -60px;}
    75%  {background-position: -90px;}
    100% {background-position: 0;}
}
