@CHARSET "UTF-8";

/*后添加的链接 Yener*/
a:link {
    color: #fff;
    text-decoration: none;
}
a:visited {
    text-decoration: none;
    color: #fff;
}
a:hover {
    text-decoration: none;
    color: #fff;
}
a:active {
    text-decoration: none;
    color: #fff;
}
/*end*/

/*public start*/

* {
    margin: 0;
    padding: 0;
}

body {
    font-size: 12px;
    font-family: "微软雅黑";
    background: #eee;
    width: 100%;
    height: 100vh;
    background-size: cover;
}

#top {
    width: 100%;
    height: 60px;
    background: #333;
    color: #fff;
    line-height: 60px;
    text-align: center;
    font-size: 24px;
}

#bottom {
    width: 100%;
    height: 48px;
    background: #333;
    color: #fff;
    line-height: 48px;
    text-align: center;
    font-size: 12px;
    position: fixed;
    bottom: 0;
}
/* end public */

#box {
    width: 800px;
    height: 600px;
    background: #fff;
    margin: 100px auto 60px;
}
/* head start */

.b-head {
    width: 100%;
    height: 60px;
    background-color: #4CAF50;
}

.h-img {
    margin: 10px 20px;
    float: left;
    user-select: none;
}

.h_span {
    color: #fff;
    font-size: 18px;
    line-height: 60px;
    float: left;
    user-select: none;
    cursor: default;
}
/* end head */
/* body start */

.b-body {
    width: 100%;
    height: 420px;
    overflow: auto;
    margin: 20px 0;
}

.botWord,.mWord{
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
}

.botWord span {
    background: url(../img/bot.png);
    height: 40px;
    width: 40px;
    margin-left: 20px;
    float: left;
}

.botWord p {
    word-break: break-all;
    top: 4px;
    float: left;
    color: #fff;
    font-size: 14px;
    margin-left: 10px;
    padding: 10px;
    line-height: 24px;
    background: rgba(0, 0, 255, .5);
    border-radius: 6px;
    max-width: 240px;
}

.mWord span {
    background: url(../img/my.png);
    height: 40px;
    width: 40px;
    float: right;
    margin-right: 20px;
}

.mWord p {
    word-break: break-all;
    /*自动换行*/
    top: 2px;
    float: right;
    color: #fff;
    font-size: 14px;
    margin-right: 10px;
    padding: 10px;
    line-height: 24px;
    background: #19b955;
    border-radius: 6px;
    max-width: 240px;
}
/* end body */
/* footer start */

.b-footer {
    width: 760px;
    height: 60px;
    margin: 0 20px;
    font-size: 16px;
    color: #666;
}

#f-left {
    padding-left: 20px;
    outline: none;
    overflow: hidden;
    width: 620px;
    height: 60px;
    float: left;
    background: rgba(0, 0, 0, .1);
    font-size: 18px;
    border: none;
    border-radius: 5px;
}

#btn {
    width: 100px;
    height: 60px;
    background: #4CAF50;
    float: right;
    cursor: pointer;
    text-align: center;
    line-height: 60px;
    font-size: 18px;
    color: #fff;
    user-select: none;
    border-radius: 10px;
}
/* end footer */

@media screen and (max-width: 768px) {

    *{
        -webkit-overflow-scrolling: touch;
    }

    #box {
        width: 100%;
        height: auto;
        margin: 0;
        position: fixed;
        top: 0px;
        left: 0px;
        right: 0px;
        bottom: 0px;
        overflow: hidden;
        background: #f5f5f5;
    }

    #top, #bottom, .b-head {
        display: none;
    }

    body, html {
        overflow: hidden;
        background-position: center;
    }

    .b-footer {
        width: 100%;
        margin: 0;
        height: 45px;
        position: absolute;
        bottom: 10px;
    }

    .b-footer #f-left {
        width: calc(100% - 130px);
        padding-left: 10px;
        padding-right: 10px;
        margin-left: 10px;
        margin-right: 10px;
        height: 45px;
    }

    #btn {
        width: 80px;
        height: 45px;
        line-height: 45px;
        margin-right: 10px;
    }

    .b-body {
        margin: 0;
        position: absolute;
        top: 0px;
        left: 0px;
        right: 0px;
        bottom: 65px;
        height: auto;
        -webkit-overflow-scrolling: touch;
    }

    .botWord p {
        color: #232323;
        background: #fff;
    }

    .mWord p {
        color: #232323;
        background: #9eea6a;
    }

}
