h5 {
    margin: 0
}

img {
    max-width: 100%;
    vertical-align: middle
}

input,textarea {
    outline: none
}

body {
    max-width: 720px;
    margin: 0 auto;
    background: #f1f1f1;
    color: #333;
    font-size: .26rem
}

.header {
    border-bottom: 1px solid #dfdfdf;
    padding: 0 .2rem;
    height: 1rem;
    line-height: 1rem;
    background: #fff;
    position: fixed;
    width: 100%;
    max-width: 720px;
    box-sizing: border-box;
    z-index: 100
}

.back {
    position: absolute;
    top: 0;
    left: .3rem;
    background: url(./../images/left.png) no-repeat;
    width: .2rem;
    height: .4rem;
    margin-top: .34rem;
    background-size: .2rem .4rem
}

.header .tit {
    font-size: .32rem;
    vertical-align: middle;
    text-align: center;
    height: 1rem;
    line-height: 1rem;
    font-weight: 400
}

.header .right {
    position: absolute;
    right: .3rem;
    top: 0;
    float: none;
    font-size: .3rem;
    line-height: 1.2rem
}

#message {
    background-color: #f1f1f1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 1rem;
    overflow-y: auto;
    padding: 10px 10px 0 10px;
    box-sizing: border-box;
}

.time {
    font-size: .24rem;
    color: #999;
    margin-bottom: .3rem;
    text-align: center
}


#footer {
    position: fixed;
    bottom: 0;
    height: 1rem;
    background-color: #fff;
    line-height: .98rem;
    width: 100%;
    max-width: 720px;
    border-top: 1px solid #ddd;
    z-index: 999;
}

#footer img {
    margin-left: .2rem;
    width: .5rem;
    vertical-align: middle;
    display: inline-block;
}

#footer textarea {
    margin-left: .2rem;
    width: 3.5rem;
    height: .68rem;
    resize:none;
    line-height: .68rem;
    border-radius: .1rem;
    border: 1px solid #ddd;
    padding: 0 .15rem;
    box-sizing: border-box;
    overflow-y:hidden;
    vertical-align: middle;
}

#footer p {
    width: 1.2rem;
    height: .68rem;
    font-size: .3rem;
    color: #fff;
    line-height: .68rem;
    text-align: center;
    background-color: #ddd;
    border-radius: .1rem;
    float: right;
    margin-top: .2rem;
    margin-right: .2rem
}

.reply:after,.ask:after,.msg:after {
    content: "";
    clear: both;
    display: table
}

.msg {
    position: relative
}

.reply .msg .name {
    position: absolute;
    font-size: .24rem;
    color: #999;
    top: -.1rem;
    left: .9rem
}

.msg>img {
    width: .8rem;
    float: left
}

.reply .msg>p {
    top: .3rem
}

.msg>p {
    float: left;
    margin: 0 .4rem;
    padding: .25rem;
    background: #fff;
    font-size: .3rem;
    position: relative;
    border-radius: .2rem;
    max-width: 5rem;
    min-height: .8rem;
    box-sizing: border-box;
    word-wrap: break-word
}

.msg_input {
    position: absolute;
    background: url(../../images/msg-input.png) no-repeat;
    background-size: .31rem auto;
    width: .31rem;
    height: .51rem;
    left: -.31rem;
    top: .25rem
}
.ask .msg p,.ask .msg {
    float: right
}
.ask .msg .photo {
    float: right
}

.ask .msg_input {
    left: auto;
    right: -.11rem;
    transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -o-transform: rotate(180deg)
}

.reply,.ask {
    padding-bottom: .7rem
}

.alert_novip,.flower_num,.give_flower {
    display: none;
    padding: .3rem .5rem;
    font-size: .28rem
}

.alert_novip p,.flower_num p {
    margin-bottom: .45rem
}

.layui-layer-wrap button {
    font-size: .28rem;
    padding: .2rem .3rem;
    margin-top: .1rem;
    background: #f8f8f8;
    border-radius: 10px
}

.flower_num button {
    padding: .2rem .5rem;
    border-radius: 10px
}

.layui-layer-wrap button:first-child {
    float: left
}

.layui-layer-wrap button:last-child {
    float: right;
    background: #ff7171;
    color: #fff
}

.alert_novip button {
    padding: .2rem .3rem;
    border-radius: 10px
}

.flower {
    width: .8rem;
    margin: 0 auto
}

.give_flower {
    text-align: center
}

.give_flower p {
    text-align: center;
    line-height: 1.5
}

.give_flower input {
    width: 1rem;
    margin-right: .1rem;
    margin-top: .2rem
}

.give_flower button {
    display: block;
    width: 3rem;
    font-size: .28rem;
    margin: 0 auto;
    margin-top: .6rem;
    float: none!important;
    line-height: .65rem;
    border-radius: 10px
}

/* 
.video-bar {
    position: relative;
    padding-bottom: 50%;
} */
.video-bar .video {
    width: 100%;
}

.icon-dangwugongkai {
    height: 1rem;
    margin-left: 10px;
    color: #ad0101;
    display: inline-block;
    font-size: 20px!important;
    line-height: 1rem;
    vertical-align: middle;
}



.emoticons{
    width: 525px;
    margin-bottom:20px;
}
.emoticons .publisher{
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dotted #dbdbdb;
}
.emoticons .publisher textarea{
    width: 500px;
    height: 140px;
    padding: 5px 10px;
    border: 1px solid #dbdbdb;
    resize: none;
}
.emoticons .publisher .trigger{
    font-size: 24px;
    font-weight: bold;
    color: #666;
}
.emoticons .publisher .trigger-active{
    color: #eb7350;
}
.emoticons .result{
    padding: 10px 15px;
    border: 1px dotted #dbdbdb;
    margin-top: 10px;
    height: 150px;
    line-height: 24px;
}
.emoticons .result img{
    vertical-align: middle;
}
.widget-layer{
    position: fixed;
    bottom: 1rem;
    width: 100%;
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 2px;
}
/* .widget-layer:before{
    position: absolute;
    bottom: 0;
    left: 2px;
    display: block;
    content: '';
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom-color: #dbdbdb;
}
.widget-layer:after{
    position: absolute;
    bottom: -15px;
    left: 2px;
    display: block;
    content: '';
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom-color: #f0f0f0;
} */
.widget-layer .widget-tool{
    height: 28px;
    background: #f0f0f0;
}
.widget-layer .widget-close{
    float: right;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-family: Arial;
    color: #555;
    text-decoration: none;
}
.widget-layer ul{
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 15px 5px 20px;
    overflow: hidden;
}
.widget-layer li{
    position: relative;
    z-index: 8;
    float: left;
    width: 22px;
    height: 22px;
    padding: 4px;
    margin-left: -1px;
    margin-top: -1px;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    list-style: none;
}
.widget-layer li:hover{
    z-index: 9;
    border-color: #eb7350;
}