h5 {
    margin: 0;
}

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

input {
    outline: none;
}

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

.header {
    border-bottom: 1px solid #DDDDDD;
    padding: 0 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: 0.3rem;
    background: url(./../images/left.png) no-repeat;
    width: 0.2rem;
    height: 0.4rem;
    margin-top: 0.34rem;
    background-size: 0.2rem 0.4rem;
}

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

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

#messages {
	position: fixed;
    background-color: #f1f1f1;
    padding: 1rem 0.3rem 1rem 0.3rem;
	overflow: auto;
	height:100%;
	width: 92%;
    max-width: 680px;
	margin: 0em; 
    top: -2rem;	
	background:url(../images/bj.jpg)no-repeat;	
}
#messages::-webkit-scrollbar {display: none;}
.time {
    font-size: 0.24rem;
    color: #999;
    margin-bottom: 0.3rem;
    text-align: center;
}

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

#footer img {
    margin-left: 0.2rem;
    width: 0.5rem;
}

#footer input {
    margin-left: 0.2rem;
    width: 3.5rem;
    height: 0.64rem;
    border-radius: 0.1rem;
    border: 0.01rem solid #ddd;
    padding: 0 0.15rem;
}

#footer button {
    width: 1.3rem;
    height: 0.68rem;
    font-size: 0.3rem;
    color: #fff;
    line-height: 0.68rem;
    text-align: center;
    background-color: #000000;
    border-radius: 0.1rem;
    float: right;
    margin-top: 0.2rem;
    margin-right: 0.2rem;
}

.reply:after,
.ask:after,
.msgask:after {
    content: "";
    clear: both;
    display: table;
}
.msgreply:after {
    content: "";
    clear: both;
    display: table;
}
.msgask {
    position: relative;
}
.msgreply {
    position: relative;
}
.reply .msgask .name {
    position: absolute;
    font-size: .24rem;
    color: #999;
    top: -.1rem;
    left: .9rem;
}
.reply .msgreply .name {
    position: absolute;
    font-size: .24rem;
    color: #999;
    top: -.1rem;
    left: .9rem;
}

.ask .msgask .name {
    position: absolute;
    font-size: .0rem;
    color: #999;
    top: -.4rem;
    left: .7rem;
}
.ask .msgreply .name {
    position: absolute;
    font-size: .24rem;
    color: #999;
    top: -.4rem;
    left: .7rem;
}
.msgask>img {
    width: 0.8rem;
    float: left;
	border-radius:50%
}
.msgreply>img {
    width: 0.8rem;
    float: left;
	border-radius:50%
}
.reply .msgreply>p {
    top: .3rem;
}
.ask .msgask>p {
    top: .3rem;
}
.msgask>p {
    float: left;
    margin: 0 0.4rem;
    padding: 0.25rem;
    background: #48d58d;
    font-size: 0.3rem;
    max-width: 4.5rem;
    border-radius: 0.2rem;
 
 
}
.msgreply>p {
    float: left;
    margin: 0 0.4rem;
    padding: 0.25rem;
    background: #fff;
    font-size: 0.3rem;
    position: relative;
    border-radius: 0.2rem;
    max-width: 5rem;
    min-height: .8rem;
    box-sizing: border-box;
    word-wrap: break-word;
}
.msg_inputask {
    position: absolute;
    background: url(./../images/msg-im.png) no-repeat;
    background-size: 0.31rem auto;
    width: 0.31rem;
    height: 0.51rem;
    right : 1rem;
    top: 0rem;
}
 .msg_inputreply {
    position: absolute;
    background: url(./../images/msg-input.png) no-repeat;
    background-size: 0.31rem auto;
    width: 0.31rem;
    height: 0.51rem;
    left: -0.31rem;
    top: 0.25rem;
}
.ask .msgask img,
.ask .msgask p,
.ask .msgask {
    float: right;
}

.ask .msg_input {
    left: auto;
    right: -0.11rem;
    transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    /* IE 9 */
    -moz-transform: rotate(180deg);
    /* Firefox */
    -webkit-transform: rotate(180deg);
    /* Safari 和 Chrome */
    -o-transform: rotate(180deg);
    /* Opera */
}

.reply{
    padding-bottom: 0.7rem;
}
.ask {
    padding-bottom: 0.2rem;
}

.alert_novip,
.flower_num,
.give_flower {
    display: none;
    padding: 0.3rem 0.5rem;
    font-size: 0.28rem;
}

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

.layui-layer-wrap button {
    font-size: 0.28rem;
    padding: 0.2rem 0.3rem;
    margin-top: 0.1rem;
    background: #f8f8f8;
    border-radius: 10px;
}

.flower_num button {
    padding: 0.2rem 0.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: 0.2rem 0.3rem;
    border-radius: 10px
}

.flower {
    width: 0.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: 0.1rem;
    margin-top: 0.2rem;
}

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