@import "base/variables";

/* Tools */
@import "tools/mixin";
// @import "tools/fonts";
@import "tools/media";

/* Base */
@import "base/normalize";
@import "base/base";

/* Layout */
@import "layout/topbar";
@import "layout/header";
@import "layout/footer";

/* Modules */
// @import "modules/form";
// @import "modules/list";
// @import "modules/piclist";
// @import "modules/table";
// @import "modules/button";
// @import "modules/single";
// @import "modules/toggle";

/* Components */
@import "components/dropmenu";
@import "components/panel";
@import "components/scrolltop";
@import "components/slider";
@import "components/tab";
@import "components/pop";


/* S iconfont */
@font-face {
    @include font-face-custom(iconfont);
}

.iconfont-custom {
    @include font-custom(iconfont);
}

/* S Other */
.wrapper{
    padding-top: 53px;
    width: 100%;
    background-color: #f5f5f5;
}
/* E Other */

/* S Slide */
.m-slider{
    position: relative;
}
.m-slider-trigger{
    z-index: 15;
    bottom: 15px;
    >li{
        border-radius: 4px;
        &.current{
            background-color: #e4004f;
        }
    }
}
.m-slider-con{
    z-index: 14;
    p{
        text-align: left;
        position: absolute;
        width: 75%;
        height: 20px;
        overflow: hidden;
        z-index: 16;
        bottom: 10px;
        left: 1.5%;
        color: #fff;
        font-size: 18px;
    }
}
.m-slider__bg{
    z-index: 14;
    width: 100%;
    bottom: -1px;
    left: 0;
    height: 40px;
    position: absolute;
    background: rgba(0, 0, 0, 0.4);
    transform: translate3d(0, 0, 0);
    // background-image:-webkit-linear-gradient(to top,
    //     rgba(50,50,50,0.4),
    //     transparent);
    // background-image:linear-gradient(to top,
    //     rgba(50,50,50,0.4),
    //     transparent);
    // background: url(../img/m-slider-bg.png) top no-repeat;
}
/* E Slide */

/* S Common */
.m-title{
    overflow: hidden;
    height: 50px;
    line-height: 50px;
    padding: 0 10px 0 10px;
    margin: 0 auto;
    h5{
        color: #e50050;
        font-size: 24px;
        float: left;
    }
    .btn-refresh{
        // width: 70px;
        float: right;
        overflow: hidden;
        i{
            font-size: 20px;
            color: #333333;
        }
    }
}

.m-picList{
    padding: 0 10px 0 10px;
    overflow: hidden;
    border-bottom: 1px solid #d1d1d1;
}
.m-picList--min{
    padding: 0 10px 0 10px;
    overflow: hidden;
}
.m-picList__inner{
    width: 100%;
    overflow: hidden;
    ul{
        margin-left: -20px;
        word-break: break-all;
        word-wrap: break-word;
    }
}
.m-picList__con{
    width: 50%;
    padding-left: 20px;
    box-sizing: border-box;
    float: left;
    margin-bottom: 15px;
}
.m-picList__pic{
    overflow: hidden;
    position: relative;
    display: block;
    // box-shadow: 0 1px 8px 1px rgba(0, 0, 0, 0.25);
    img{
        width: 100%;
        overflow: hidden;
        display: block;
    }
    .pic__bg{
        width: 100%;
        position: absolute;
        height: 24px;
        bottom: 0;
        left: 0;
        background-color: #000;
        opacity: 0.4;
        transform: translate3d(0, 0, 0);
        z-index: 15;
    }
    .pic__icon{
        color: #fff;
        position: absolute;
        z-index: 16;
        height: 24px;
        line-height: 24px;
        font-size: 16px;
        bottom: 0;
        left: 5px;
    }
    .pic__tips{
        color: #fff;
        position: absolute;
        z-index: 16;
        right: 5px;
        bottom: 0;
        height: 24px;
        line-height: 26px;
        font-size: 14px;
    }
}

.m-picList__con--min{
    overflow: hidden;
    padding: 10px 0;
    display: -webkit-box;
    border-bottom: 1px dashed #e4e4e4;
    .m-picList__pic{
        max-width: 100px;
        .pic__bg{
            height: 22px;
        }
        .pic__icon{
            height: 22px;
            line-height: 24px;
            font-size: 14px;
            left: 4px;
        }
        .pic__tips{
            height: 22px;
            line-height: 24px;
            font-size: 14px;
            right: 4px;
        }
    }
}

.m-picList__con--fl{
    width: auto;
    position: relative;
    overflow: hidden;
    height: 100%;
    padding-right: 10px;
}

.m-picList__con--fr{
    @include flex(1);
    overflow: hidden;
    .item-link{
        padding-top: 8px;
        @include ellipsis;
        a{
            font-size: 18px;
            color: #333;
            word-break:break-all;
        }
    }
    .item-level{
        padding-top: 6px;
        em{
            color: #666;
            font-size: 16px;
            float: left;
            padding-right: 2px;
        }
        span{
            float: left;
        }
    }
    .item-title{
        height: 40px;
        line-height: 20px;
        overflow: hidden;
        a{
            font-size: 18px;
            color: #333;
            word-break:break-all;
        }
    }
    .item-info{
        width: 100%;
        height: 20px;
        line-height: 20px;
        overflow: hidden;
        color: #666;
        font-size: 14px;
        margin-top: 10px;
        i{
            font-size: 16px;
            color: #999;
            padding-right: 5px;
        }
    }
    .item-info--comment{
    }
    .item-info--time{
        float: right;
    }
}
.m-starLevel{
    background: url(../img/star.png);
    background-repeat: repeat-x;
    background-size: 16px;
    width: 80px;
    height: 16px;
    display: block;
    position: relative;
    overflow: hidden;
    margin-top: 1px;
    i{
        display: block;
        background: url(../img/star.png) 0 -17px;
        background-repeat: repeat-x;
        background-size: 16px;
        position: absolute;
        height: 16px;
        overflow: hidden;
        left: 0;
        top: 0;
    }
}

.m-picList__title{
    overflow: hidden;
    display: block;
    font-size: 16px;
    line-height: 20px;
    max-height: 40px;
    margin-top: 8px;
    color: #333;
}

.m-newsList{
    padding: 0 10px;
    overflow: hidden;
    .m-newsList__inner{
        padding: 5px 0;
    }
}
.m-newsList__con{
    @include ellipsis;
    padding: 13px 0;
    overflow: hidden;
    border-bottom: 1px dashed #e4e4e4;
    color: #333;
    font-size: 18px;
    height: 22px;
    line-height: 24px;
    a{
        color: #333;
    }
    &:last-child{
        border-bottom: none;
    }
}
.m-newsList__type{
    float: left;
    background-color: #e50050;
    color: #fff;
    font-size: 16px;
    line-height: 24px;
    padding: 0 5px;
    margin-right: 10px;
}
.m-enter{
    width: 100%;
    height: 40px;
    text-align: center;
    background-color: #e4e4e4;
    // box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.22);
    &:hover,&:active,&:focus{
        background-color: #ccc;
    }
    a{
        color: #666666;
    }
    p{
        font-size: 18px;
        line-height: 42px;
    }
    .iconfont-custom{
        color: #999999;
        padding-left: 4px;
        font-size: 18px;
    }
    .m-link:hover{
        color: #666;
    }
}

.m-mobiGames__hot{
    padding: 0 10px 15px;
    overflow: hidden;
    .m-title{
        padding: 0;
        h5{
            color: #333;
            font-size: 18px;
        }
    }
    ul{
        width: 2000px;
    }
    li{
        overflow: hidden;
        margin-right: 12px;
        float: left;
        a{
            width: 50px;
            display: block;
            overflow: hidden;
        }
        img{
            width: 50px;
            height: 50px;
            display: block;
            overflow: hidden;
            border-radius: 10px;
            // box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.22);
        }
        span{
            display: block;
            color: #333;
            text-align: center;
            width: 100%;
            height: 20px;
            line-height: 20px;
            font-size: 12px;
            margin-top: 5px;
            overflow: hidden;
        }
        .iconfont-custom{
            border-radius: 10px;
            color: #888;
            display: block;
            background-color: #e4e4e4;
            width: 48px;
            border: 1px solid #dadada;
            font-size: 24px;
            text-align: center;
            line-height: 48px;
            &:hover,&:focus,&:active{
                background-color: #ccc;
            }
        }
    }
    .m-mobiGames__hot--bottom{
        padding-top: 15px;
        height: 73px;
        overflow-y: hidden;
        overflow-x: scroll;
    }
    .m-mobiGames__hot--bd{
        height: 73px;
        overflow-y: hidden;
        overflow-x: scroll;
    }
}

/* E Common */

/* S Main */
.m-hotNews{
    border-bottom: 3px solid #e50050;
}

.m-webGames{
    border-bottom: 3px solid #e50050;
    .m-title{
        padding-bottom: 5px;
    }
    .m-picList__pic{
        .pic__tips{
            left: 5px;
        }
    }
    .m-newsList__con{
        &:last-child{
            border-bottom: 1px dashed #e4e4e4;
        }
    }
    .m-enter{
        margin-top: 5px;
        margin-bottom: 15px;
    }
}

.m-mobiGames{
    border-bottom: 3px solid #e50050;
    .m-title{
        height: 45px;
    }
    .m-enter{
        margin-top: 10px;
    }
}

.m-gameChannel{
    border-bottom: 1px solid #d1d1d1;
    .m-picList--min{
        border-bottom: 1px solid #d1d1d1;
        .m-picList__con--min:last-child{
            border-bottom: none;
        }
    }
}

.m-dwPics{
    .m-title{
        padding-bottom: 5px;
    }
    .m-picList{
        padding-bottom: 15px;
        .m-picList__title{
            max-height: 20px;
            text-align: center;
        }
    }
}
/* E Main */

/* S Tab Effect */
.m-link{
    &:hover,&:focus,&:active{
        color: #e50050;
    }
}
/* E Tab Effect */