@import url("../common.css");
body{padding-bottom: 1.5rem}

/*------------------------------搜索区域------------------------------*/
.search{
    display: flex;
    height: 0.8rem;
    padding: 0 0.3rem 0 2.07rem;
    margin: 0.3rem 0.3rem 0;
    background-color: #F0F0F0;
    border-radius: 0.04rem;
    justify-content: center;
    align-items: center;
}
.search:before{
    content: '';
    width: 0.22rem;
    height: 0.22rem;
    margin-right: 0.16rem;
    background: url("../../img/icon/icon-search.png") center;
    background-size: cover;
}
.search input{
    flex: 1;
    height: 100%;
    font-size: 0.24rem;
    background-color: transparent;
}



/*------------------------------切换区域------------------------------*/
.tabs{
    display: flex;
    height: 0.81rem;
    border-bottom: 1px solid #F0F0F0;
    margin-top: 0.16rem;
    justify-content: center;
}
.tabs li{
    height: 100%;
    margin: 0 0.35rem;
}
.tabs li:first-child{margin-left: 0}
.tabs li:last-child{margin-right: 0}
.tabs li a{
    display: block;
    position: relative;
    height: 100%;
    padding: 0 0.3rem;
    line-height: 0.81rem;
    text-align: center;
    font-size: 0.28rem;
    font-weight: bold;
    color: #808080;
}
.tabs li a.active{color: #3C7EF6}
.tabs li a.active:after{
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 0.6rem;
    height: 0.06rem;
    margin: 0 auto;
    background-color: #3C7EF6;
    border-radius: 0.06rem;
}



/*------------------------------社区列表------------------------------*/
.communitylist{padding: 0 0.3rem}


/*----------社区列表的儿子----------*/
.communitylist-child{
    border-bottom: 1px solid #F0F0F0;
    overflow: hidden;
}
.communitylist-child:last-child{border-bottom: none}
.communitylist-child>a{
    display: block;
    height: 100%;
    padding: 0.35rem 0;
}

/*儿子的头部*/
.communitylist-child .head{
    height: 0.5rem;
    overflow: hidden;
}
.communitylist-child .head i{
    float: left;
    width: 0.5rem;
    height: 0.5rem;
    background-position: center;
    background-size: cover;
    border-radius: 50%;
}
.communitylist-child .head p{
    float: left;
    margin-left: 0.16rem;
    line-height: 0.5rem;
    font-size: 0.24rem;
}

/*儿子的标题*/
.communitylist-child .title{
    height: 0.43rem;
    margin-top: 0.24rem;
    line-height: 0.43rem;
    font-size: 0.36rem;
    font-weight: bold;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/*儿子的内容部分*/
.communitylist-child .content{
    display: flex;
    margin-top: 0.16rem;
}
.communitylist-child .content .text{
    flex: 1;
    max-height: 1.68rem;
    line-height: 0.42rem;
    font-size: 0.28rem;
    overflow: hidden;
}
.communitylist-child .content .imgdiv{
    width: 2.8rem;
    height: 2.2rem;
    margin-left: 0.2rem;
    background-position: center;
    background-size: cover;
}

/*儿子的底部*/
.communitylist-child .foot{
    display: flex;
    height: 0.36rem;
    margin-top: 0.2rem;
    overflow: hidden;
    justify-content: space-between;
}
.communitylist-child .foot .left{/*儿子底部的左边*/
    height: 100%;
    font-size: 0.24rem;
    color: #808080;
    overflow: hidden
}
.communitylist-child .foot .left p{
    float: left;
    line-height: 0.36rem;
}
.communitylist-child .foot .left span{
    float: left;
    margin: 0 0.125rem;
    line-height: 0.36rem;
    font-weight: bold;
}
.communitylist-child .foot .right{/*儿子底部的右边*/
    height: 100%;
    font-size: 0.24rem;
    color: #808080;
    overflow: hidden
}
.communitylist-child .foot .right i{
    display: inline-block;
    width: 0.36rem;
    height: 0.36rem;
    background: url("/static/style/img/icon/icon-praise.png") center;
    background-size: cover;
    vertical-align: top;
}
.communitylist-child .foot .right i.active {background-image: url("/static/style/img/icon/icon-praise-active.png")}
.communitylist-child .foot .right em {
    position: relative;
    margin-left: 0.08rem;
    line-height: normal;
    font-size: 0.2rem;
    color: #333;
}



/*------------------------------按钮区域------------------------------*/
.btndiv{
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.4rem;
    background-color: #fff;
    box-shadow: 0 -1px 4px rgba(0,0,0,.08);
    justify-content: center;
    align-items: center;
}
.btndiv button{
    display: flex;
    width: 3.35rem;
    height: 0.9rem;
    margin: 0 0.1rem;
    font-size: 0.28rem;
    color: #fff;
    border-radius:0.06rem;
    justify-content: center;
    align-items: center;
}
.btndiv button:first-child{background-color: #3C7EF6}
.btndiv button:nth-child(2){background-color: #00AC51}
.btndiv button:before{
    content: '';
    display: inline-block;
    width: 0.28rem;
    height: 0.28rem;
    margin-right: 0.1rem;
    background-position: center;
    background-size: cover;
    vertical-align: top;
}
.btndiv button:first-child:before{background-image: url("../../img/icon/community-icon-post.png")}
.btndiv button:nth-child(2):before{background-image: url("../../img/icon/community-icon-answer.png")}










