﻿/* MEDIA QUERIES ----------------------------------- */
@media screen and (min-width: 1500px) {
    #main {
        width: 60%;
    }

    aside {
        width: 38%;
    }

        aside section {
            float: left;
            width: 50%;
            box-sizing: border-box;
        }
}

@media screen and (max-width: 1200px) {
    #main {
        border-left: none;
    }

    aside {
        overflow: hidden;
    }

    #main ul#hot {
        float: none;
        width: 100%;
        margin: 1em auto;
        text-align: center;
        overflow: auto;
    }

        #main ul#hot li.l1 {
            display: inline-block;
            border-left: none;
            padding-bottom: 0;
            border-bottom: .3em solid;
        }

            #main ul#hot li.l1#hot1 {
                border-bottom-color: #c9e9e5;
            }

                #main ul#hot li.l1#hot1:hover {
                    border-bottom-color: #63bfb2;
                }

            #main ul#hot li.l1#hot2 {
                border-bottom-color: #cdeeaa;
            }

                #main ul#hot li.l1#hot2:hover {
                    border-bottom-color: #6ece0a;
                }

            #main ul#hot li.l1#hot3 {
                border-bottom-color: #f9f0a8;
            }

                #main ul#hot li.l1#hot3:hover {
                    border-bottom-color: #ebd203;
                }

            #main ul#hot li.l1#hot4 {
                border-bottom-color: #e0cfdf;
            }

                #main ul#hot li.l1#hot4:hover {
                    border-bottom-color: #a675a2;
                }

            #main ul#hot li.l1#hot5 {
                border-bottom-color: #faced2;
            }

                #main ul#hot li.l1#hot5:hover {
                    border-bottom-color: #f0717c;
                }

            #main ul#hot li.l1#hot6 {
                border-bottom-color: #bcd8f0;
            }

                #main ul#hot li.l1#hot6:hover {
                    border-bottom-color: #3e8dd2;
                }

        #main ul#hot li ul {
            display: none;
        }

        #main ul#hot li a.a1 {
            padding: 0.25em .7em;
            font-weight: 400;
        }

    #maincontent {
        float: none;
        width: 96%;
    }

        #maincontent .expendwarp {
            padding: 15px 5px 13px;
        }

    #main ul#hot li.l1#hot5 {
        display: inline-block;
    }
}

@media screen and (max-width: 760px) {

    body {
        border-left: none;
    }

    aside {
        float: left;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }

        aside section {
            float: left;
            width: 50%;
            box-sizing: border-box;
            padding: 0 1%;
        }

    #main {
        width: 100%;
        border-radius: 0;
        border-left: 0;
    }

    #header .mobiletips {
        display: none;
    }


    /*以下是新样式*/
    .width100 {
        width: 100% !important;
        padding: 0 0 1em !important;
    }

        .width100 .pubessaybox, .width100 h2 {
            padding: 0 2%;
        }

    .graybg {
        background-color: #f6f6f6;
    }

    #maincontent .tab {
        padding-left: 2%;
    }

    .graybg dl.essaywrap {
        width: 96%;
        padding: 5px 2% !important;
        background-color: #fff;
        box-shadow: 0 1px .1875rem -.125rem rgba(0,0,0,.2);
        border-top: 1px solid #e6e6e6 !important;
        border-bottom: 1px solid #d8d8d8 !important;
        margin: 0 0 .5625rem 0 !important;
    }

    #maincontent.graybg dl:first-child, #essaylist dl:first-child {
        border-top: none !important;
    }
}

@media screen and (max-width: 550px) {
    #header ul#headnav {
        float: none;
        margin-left: 15em;
        height: 4.375em;
        overflow: hidden;
        white-space: nowrap;
    }

        #header ul#headnav:hover {
            overflow: visible;
        }

        #header ul#headnav li.hnitem {
            float: none;
            width: 100%;
        }

            #header ul#headnav li.hnitem ul {
                display: none;
            }

            #header ul#headnav li.hnitem a.a1 {
                padding-top: 0;
                height: 2.1875em;
                line-height: 2.1875em;
            }

    #fbbtn, #showpop {
        visibility: hidden;
    }

    #back2top {
        opacity: .6;
    }

    #header ul li.hnitem {
        display: none;
    }

        #header ul li.hnitem:first-child {
            display: block;
        }

    #header ul li.last {
        display: block;
    }





    #maincontent dl.essaywrap dd.break {
        margin-left: 0;
    }

        #maincontent dl.essaywrap dd.break .info a:nth-child(2n) {
            font-size: 15px;
            position: absolute;
            top: 2px;
        }

        #maincontent dl.essaywrap dd.break .info {
            padding-bottom: 8px;
        }

    #maincontent dl.essaywrap div.info img.thumb {
        position: inherit;
        width: 34px;
        height: 34px;
        vertical-align: text-top;
        box-sizing: border-box;
        margin-right: 8px;
        border-radius: 50%;
        border: .0625rem solid #e4e4e4;
    }

    #maincontent dl.essaywrap dd.break p.essayinfo span.leftcon {
        position: absolute;
        left: 42px;
        top: 22px;
        font-size: 12px;
        line-height: 12px;
    }

    /*istop*/
    #maincontent dl.istop {
        position: relative;
    }

        #maincontent dl.istop::before {
            content: "置顶";
            position: absolute;
            right: 0;
            top: 25px;
            width: 50px;
            height: 18px;
            line-height: 18px;
            background-color: #f0717c;
            font-size: 90%;
            color: white;
            text-align: center;
            padding-left: 6px;
        }
    /*istop end*/
}

@media screen and (max-width: 400px) {
    .pager span {
        margin: .1em;
        padding: .214em .2em;
    }

    #maincontent dl.essaywrap dt.face {
        display: none;
    }

    #otherbox div a {
        display: none !important;
    }

        #otherbox div a:first-child, #otherbox div a:nth-child(10n+2), #otherbox div a:last-child {
            display: inline-block !important;
        }

    .commentbox .avatar, .cmtitem .avatar {
        display: none;
    }

    .cmtitem .cmtbody, .commentbox .cmttextarea {
        margin-left: 0;
    }

    .tab li {
        padding: 0 1.2em;
        height: 2.2em;
        line-height: 2.2em;
    }

    aside section {
        float: none;
        width: 100%;
    }
}
