*{ margin: 0; padding: 0; }
html{
	font-size: 20px;
}
img{
	vertical-align: middle;
}
:root{
	--kefu_header: url('/static/images/head/kefu.jpg');
	--kehu_header: url('/static/images/head/3.jpg');
}
.loading-instructions{
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7rem;
	height: 7rem;
	margin-top: -7rem;
	margin-left: -3.5rem;
	border-radius: .5rem;
	background-color: rgba(0,0,0, .5);
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: #fff;
	text-align: center;
}
.main{
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	display: -webkit-flex;
	flex-direction: column;
	justify-content:center;
	align-items:center;
	/*background-image: url('/static/images/login-background.png');
	background-repeat: no-repeat;
	background-size: 100%;
	background-position: bottom;*/
}
.panel{
	width: 80%;
	border: 1px solid #ddd;
	height: 90%;
	border-radius: 5px;
	font-size: .85rem;
	display: flex;
	display: -webkit-flex;
	flex-direction: column;
	box-sizing: border-box;
	background-color: #fff;
}
.panel-header{
	background-color: #FBFBFB;
	padding: 1rem;
	border-bottom: 1px solid #ddd;
	color: #666;
}
.panel-body{
	flex-grow: 1;
	display: flex;
	display: -webkit-flex;
  	height: 100%;
}
.panel-msg{
	height: 100%;
	flex-grow: 1;
	border-right: 1px solid #ddd;
	display: flex;
	display: -webkit-flex;
	flex-direction: column;
}
.panel-info{
	width: 35%;
	min-width: 13rem;
}
.panel-info-body{
	padding: 1rem;
}
.msg-content{
	position: relative;
	flex-grow: 1;
	border-bottom: 1px solid #ddd;
	height: 0;
	overflow-y: auto;
}
.msg-content-status{
	margin: .5rem;
	text-align: center;
	font-size: .75rem;
	color: #888;
}
.msg-content-item{
	box-sizing: border-box;
}
.msg-function{
	height: 10rem;
	display: flex;
	display: -webkit-flex;
	flex-direction: column;
}
.msg-function-list{
	padding: .5rem;
}
.msg-function-list .icon{
	width: 1rem;
	height: 1rem;
	-webkit-filter: opacity(60%); /* Chrome, Safari, Opera */
    filter: opacity(60%);
    margin-right: .5rem;
}
.msg-function-text{
	flex-grow: 1;
	border-width: 0;
	outline: none;
    resize: none;
    white-space: pre-wrap;
    word-break: normal;
    padding: 0 .5rem;
    font-size: .8rem;
}
.msg-function-send{
	padding: .5rem;
	text-align: right;
	color: #888;
}
.msg-function-btn{
	background-color: #5FB878;
	border-width: 0;
  	font-size: .75rem;
	color: #fff;
	height: 2.2rem;
	width: 3rem;
}
.msg-media{
	display: flex;
	display: -webkit-flex;
	width: 100%;
	margin-bottom: 1.5rem;
}
.msg-media img{
	max-width: 100%;
}
.msg-media-emoji{
	width: 2rem;
}
.msg-media-body{
	display: block;
	max-width: 70%;
}
.msg-media-header{
	background-color: #ddd;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	border-radius: 5px;
	width: 2rem;
	height: 2rem;
	margin-right: .6rem;
	margin-left: .6rem;
}
.msg-media-content{
	position: relative;
	display: inline-block;
	padding: .5rem;
	border-radius: .3rem;
	word-wrap: break-word;
	word-break: break-all;
}
.msg-media-content:before{
	content: '';
    display: inline-block;
    border-style: solid;
    border-width: 1px 1px 0 0;
    height: 10px;
    width: 10px;
    position: absolute;
    top: 15px;
}
.msg-media-content pre{
	margin: 0;
    white-space: pre-wrap!important;
    word-wrap: break-word!important;
    overflow: hidden;
    font-size: .75rem;
    font-size: 100%;
    color: unset;
    line-height: 1.2;
}
.msg-media-times{
	padding: 1rem;
	text-align: center;
	font-size: .5rem;
	color: #999;
}
.he .msg-media-header{
	background-image: var(--kefu_header);
}
.he .msg-media-content{
	border: 1px solid #ddd;
	background-color: #FFF;
}
.he .msg-media-content:before{
	background: inherit;
    border-color: inherit;
    left: -6px;
	transform: translate(0, -50%) rotate(-135deg);
}
.me .msg-media-header{
	background-image: var(--kehu_header);
}
.me .msg-media-body{
	margin-left: auto;
}
.me .msg-media-content{
	border: 1px solid #a5d7ff;
    background-color: #bbe1ff;
}
.me .msg-media-content:before{
	background: inherit;
    border-color: inherit;
    right: -6px;
	transform: translate(0, -50%) rotate(45deg);
}

.hands{
	border: 1px solid #ddd;
	border-radius: 5px;
	box-shadow: 5px 5px 5px #eee;
	padding: 1rem;
	text-align: center;
	width: 18rem;
	box-sizing: border-box;
}
.hands-input{
	width: 100%;
	border: 1px solid #ddd;
	border-radius: 3px;
	padding: .5rem;
	margin-top: 1rem;
	box-sizing: border-box;
}

.load-emoji{
	position: absolute;
	padding: .75rem;
	background-color: #FFF;
	width: 15rem;
	box-shadow: 5px 5px 5px #ddd;
	display: none;
	box-sizing: border-box;
}
.load-emoji img{
	width: 1.5rem;
	height: 1.5rem;
}

small{
	font-size: .65rem;
	color: #888;
}
@media (max-width: 768px) {
	.panel-info{ display: none; }
	.panel{ width: 100%; height: 100%; border-width: 0; }
	.msg-function{ height: 2.2rem; flex-direction: row; }
	.panel-header{ padding: .75rem; font-size: .75rem }
	.panel-msg{ border-right-width: 0!important; }
	.msg-function-send{ padding: 0; }
	.msg-function-text{ padding: .5rem; }
	.msg-function-list{ padding-right: 0; background-color: #fbf9fe; }
	.hands{ width: 90%; }
	.load-emoji{ width: calc(100% - 1rem) }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    background: rgba(50, 50, 50, .5);
    border-radius: 0;
    border-top:1px solid #000;
    height: 3px;
    width: 3px;
    transition: all .3s ease-in-out;
}

::-webkit-scrollbar-track {
    background-color: #f8f8f8;
}

::-webkit-scrollbar-track-piece {
    background: #f8f8f8;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .3);
    border-radius: 0;
    min-height: 15px;
    width: 8px;
    transition: all .3s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, .5)
}

::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, .5)
}