/*公用变量*/
/*初始化样式*/
body,
ol,
ul,
h1,
h2,
h3,
h4,
h5,
h6,
p,
th,
td,
dl,
dd,
form,
fieldset,
legend,
input,
textarea,
select {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*{box-sizing: border-box;}
/*#body::-webkit-scrollbar,body::-webkit-scrollbar,html::-webkit-scrollbar, */
/* ::-webkit-scrollbar{display:none} */

body {
  font: 15px "Microsoft Yahei", "Arial Narrow", HELVETICA;
  background: #fff;
  -webkit-text-size-adjust: 100%;
  color: #666666;
}
textarea{
  font: 15px "Microsoft Yahei", "Arial Narrow", HELVETICA;
}
a {
  color: #666666;
  text-decoration: none;
}
a:hover {
  color: #666666;
  text-decoration: none;
  cursor: pointer;
}
em {
  font-style: normal;
}
li {
  list-style: none;
}
img {
  border: 0;
  vertical-align: middle;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
p {
  word-wrap: break-word;
  margin-bottom: 0;
}

#umsdkMsgBox p, .umui-dialog-box p {
  word-wrap: break-word;
  margin: 0;
}
.umui-dialog-box ul, .umui-dialog-box ol {
  margin: 0;
}

.title_tip {
  font-size: 14px;
}
.um_required_tip {
  color: red;
  font-size: 16px;
}
.fix_dialog {
  position: fixed!important;
  top: 0!important;
  left: 0!important;
  width: 100vw!important;
  height: 100vh!important;
  transform: none!important;
}

/** Loading效果 */

.um_loading_box {
  width: 100%;
  height: 100%;
  background: #fff;
  position: relative;
}
.um_loader {
  position: absolute;
  left: 0;
  top: 44%;
  display: block;
  z-index: 9;
  width: 100%;
}
.um_loader_a {
  position: relative;
  left: calc(200px - 1.5em);
  width: 2.5em;
  height: 2.5em;
  transform: rotate(165deg);
}
.um_loader_a:before, .um_loader_a:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 0.25em;
  transform: translate(-50%, -50%);
}
.um_loader_a:before {
  animation: before 2s infinite;
}
.um_loader_a:after {
  animation: after 2s infinite;
}
@keyframes before {
  0% {
    width: 0.5em;
    box-shadow: 1em -0.5em rgba(225, 20, 98, 0.75), -1em 0.5em rgba(111, 202, 220, 0.75);
  }

  35% {
    width: 2.5em;
    box-shadow: 0 -0.5em rgba(225, 20, 98, 0.75), 0 0.5em rgba(111, 202, 220, 0.75);
  }

  70% {
    width: 0.5em;
    box-shadow: -1em -0.5em rgba(225, 20, 98, 0.75), 1em 0.5em rgba(111, 202, 220, 0.75);
  }

  100% {
    box-shadow: 1em -0.5em rgba(225, 20, 98, 0.75), -1em 0.5em rgba(111, 202, 220, 0.75);
  }
}

@keyframes after {
  0% {
    height: 0.5em;
    box-shadow: 0.5em 1em rgba(61, 184, 143, 0.75), -0.5em -1em rgba(233, 169, 32, 0.75);
  }

  35% {
    height: 2.5em;
    box-shadow: 0.5em 0 rgba(61, 184, 143, 0.75), -0.5em 0 rgba(233, 169, 32, 0.75);
  }

  70% {
    height: 0.5em;
    box-shadow: 0.5em -1em rgba(61, 184, 143, 0.75), -0.5em 1em rgba(233, 169, 32, 0.75);
  }

  100% {
    box-shadow: 0.5em 1em rgba(61, 184, 143, 0.75), -0.5em -1em rgba(233, 169, 32, 0.75);
  }
}
.um_load_text {
  position: absolute;
  top: 50%;
  text-align: center;
  width: 100%;
  font: 15px "Microsoft Yahei", "Arial Narrow", HELVETICA;
  color: #666666;
}

/** Loading结束 */
#iconIM {
  position: relative;
}
.umsdk_badge {
  position: absolute;
  top: -10px;
  right: -10px;
  vertical-align: middle;
  display: none;
}
.umsdk_badge .umsdk_badge_text {
  transform: translateY(-50%) translateX(100%);
  background-color: #F56C6C;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  height: 18px;
  padding: 0px 6px;
  text-align: center;
  white-space: nowrap;
}

/** 开始弹窗样式 */

#umsdkMsgBox {
  width: 400px;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  border: 1px solid #ededed;
  z-index: 1000;
  background: #fff;
}
.um_box {
  width: 100%;
  height: 100%;
  position: relative;
}
.um_header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #226A62;
  color: #fff;
  padding: 0 10px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.um_header .h_center {
  border-radius: 5px;
  display: flex;
}
.um_header img {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.um_header .h_center span {
  cursor: pointer;
  display: block;
  text-align: center;
  padding: 0 5px 3px 5px;
}
.um_header .h_center .txl {
  margin-left: 15px;
}
.um_header .um_close {
  cursor: pointer;
}
/* 弹窗容器 */
.umui-dialog-box{
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100000;
}
/* 遮罩层样式 */
.umui-masking-layer{
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .3);
}
/* 弹窗默认样式 */
.umui-dialog{
  width:50vw;
  height:50vh;
  background-color: white;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}
/* 头部设置固定高度 */
.umui-dialog-head {
  width: 100%;
  height: 50px;
  padding: 0 20px;
  box-sizing: border-box;
  background-color: #226A62;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}
.umui-dialog-head img {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.umui-dialog-head .um_header_img {
  border-radius: 50%;
  cursor: pointer;
}
.umui-dialog-head .f_s {
  margin-right: 5px;
}
/* 弹窗内容区域 */
.umui-dialog-content{
  height: calc(100% - 50px);
  box-sizing: border-box;
}
/* btn按钮样式 */
.umui-btn {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: #FFF;
  border: 1px solid #DCDFE6;
  color: #606266;
  -webkit-appearance: none;
  text-align: center;
  box-sizing: border-box;
  outline: 0;
  margin: 0;
  -webkit-transition: .1s;
  transition: .1s;
  font-weight: 500;
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 4px; 
}
/* 鼠标移入按钮效果 */
.umui-btn:hover {
  color: #409eff;
  border-color: #c6e2ff;
  background-color: #ecf5ff;
}
/* 确认按钮 */
.umui-btn-primary {
  color: #FFF;
  background-color: #409EFF;
  border-color: #409EFF;
}
/* 确认按钮鼠标移入效果 */
.umui-btn-primary:hover {
  background: #66b1ff;
  border-color: #fff;
  color: #fff;
}
/* 确认按钮mini样式 */
.umui-btn-mini {
  font-size: 12px;
  border-radius: 3px;
  padding: 7px 15px;
}
/* 确认按钮small样式 */
.umui-btn-small {
  padding: 9px 15px;
  font-size: 12px;
  border-radius: 3px;
}
/* 下框按钮区域居中，来一些边距样式 */
.dialog-bottom{
  padding:5px;
  background-color: #fff;
  text-align: center;
}
/** 结束弹窗样式 */


/** 开始消息列表样式 */

.msg_header .um_close {
  cursor: pointer;
}
.msg_list_box, .txl_list_box {
  height: 100%;
  padding-top: 50px;
  overflow-y: auto;
  background-color: #fbfbfb;
}
#umsdkMsgBox .um_msglist li {
  display: flex;
  background-color: #fbfbfb;
  color: #fff;
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #ededed;
  align-items: center;
  justify-content: space-between;
}
#umsdkMsgBox .um_msglist li:hover {
  background-color: #DAD8D8;
}
#umsdkMsgBox .um_msglist li:last-child {
  border: none;
}
#umsdkMsgBox .um_msglist li .avatar {
  min-width: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
#umsdkMsgBox .um_msglist li .name {
  max-width: calc(100% - 55px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #000;
  margin-left: 10px;
}
#umsdkMsgBox .info_box {
  display: flex;
  width: calc(100% - 55px);
  justify-content: space-between;
}
#umsdkMsgBox .info_box .r_info {
  margin-left: 10px;
  width: calc(100% - 40px);
}
#umsdkMsgBox .info_box .r_info p {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #232323;
}
.unread {
  background-color: #F56C6C;
  border-radius: 10px;
  color: #fff;
  display: inline-block;
  font-size: 12px;
  height: 18px;
  padding: 0px 6px;
  text-align: center;
  white-space: nowrap;
  border: 1px solid #fff;
}
.nounread {
  display: none;
}

/** 结束消息列表样式 */

/** 开始聊天样式 */

.msg_box {
  width: 100%;
  height: 100%;
  background-color: #f7f7f7;
}
/** 聊天顶部个人信息 */
.um_chat_userinfo {
  width: 100%;
  background-color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  overflow-x: auto;
}
.um_chat_userinfo li {
  margin-left: 15px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.um_chat_userinfo li:first-child {
  margin-left: 0;
}
.um_chat_userinfo li img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 0 auto;
}
.um_chat_userinfo li p {
  text-align: center;
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
}
/** 聊天中间的历史消息 */
.his_msg_box {
  height: calc(100% - 220px);
  overflow-y: auto;
  padding: 20px;
  background-color: #f7f7f7;
}
.his_msg_box .msg_list_ul {
  width: 100%;
  float: left;
}
.his_msg_box .msg_list_ul li {
  width: 100%;
  min-height: 42px;
  margin-bottom: 15px;
  float: left;
}
.his_msg_box .msg_list_ul li:last-child {
  margin-bottom: 0;
}
.his_msg_box .msg_list_ul .get .avatar {
  float: left;
}
.his_msg_box .msg_list_ul .msg_info {
  width: auto;
  max-width: 62%;
  display: flex;
  flex-direction: column;
}
.his_msg_box .msg_list_ul .msg_info .msg_top {
  color: #37d07b;
  margin-bottom: 5px;
}
.his_msg_box .msg_list_ul .send .msg_info .msg_top {
  color: #2e9cf1;
}
.his_msg_box .msg_list_ul .get .msg_info .msg_top {
  color: #37d07b;
}
.his_msg_box .msg_list_ul .send .msg_info {
  float: right;
  margin-right: 10px;
  align-items: flex-end;
}
.his_msg_box .msg_list_ul .get .msg_info {
  float: left;
  margin-left: 10px;
  align-items: flex-start;
}

.his_msg_box .msg_list_ul .send .avatar {
  float: right;
}
.his_msg_box .msg_list_ul .send .msg_content {
  float: right;
}
.his_msg_box .msg_list_ul li .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.his_msg_box .msg_list_ul li .msg_content {
  max-width: 100%;
  word-break: break-all;
  border: 1px solid #2E9CF1;
  border-radius: 5px;
  padding: 10px;
  display: inline-block;
  color: #666666;
  overflow-x: auto;
}
.his_msg_box .msg_list_ul li .msg_0 img {
  width: 100%!important;
  height: 100%!important;
  cursor: pointer;
}
.his_msg_box .msg_list_ul li .msg_1,
.his_msg_box .msg_list_ul li .msg_2 {
  border: none;
  padding: 0;
  cursor: pointer;
} 
.his_msg_box .msg_list_ul li .msg_2 {
  min-width: 30%;
}
.file_box {
  display: flex;
  background-color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  width: 240px;
}
.file_box .logo {
  margin-right: 10px;
}
.file_box .logo img {
  width: 40px;
  height: 40px;
}
.file_box .file_info {
  max-width: calc(100% - 50px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.file_box .file_info .file_name {
  color: #333;
  font-size: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.file_box .file_info .file_size {
  font-size: 12px;
  color: #999;
}
/** 聊天底部 */
.chat_bottom {
  padding: 0 20px;
  background-color: #fff;
  position: relative;
}
.chat_bottom .um_emoji_box {
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 216px;
  background-color: #fff;
}
.chat_bottom .um_emoji_box ul {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
}
.chat_bottom .um_emoji_box ul li {
  text-align: center;
  font-size: 20px;
  cursor: pointer;
}
.chat_bottom .func {
  padding: 10px 0;
}
.chat_bottom .func ul li {
  display: inline-block;
  margin-left: 5px;
  position: relative;
}
.chat_bottom .func ul li:first-child {
  margin-left: 0;
}
.chat_bottom .func ul li .file_input {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}
.chat_bottom .func li img {
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.chat_bottom .um_text_area {
  width: 100%;
  height: 120px;
  overflow-y: auto;
  border: none;
  outline: none;
  resize: none;
  color: #666666;
}
.chat_bottom .send_btn_box {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 0;
}
.chat_bottom .send_btn_box span {
  font-size: 12px;
  color: #999;
  margin-right: 10px;
}
.chat_bottom .send_btn_box .send_btn {
  color: #fff;
  background-color: #2E9CF1;
  border-radius: 5px;
  padding: 5px 15px;
  border: none;
  cursor: pointer;
}

/** 结束聊天样式 */