$red: $highLightColor;
//公用样式
//表格
.game-chart {
    background: #fff;
    padding: 0 px2rem(22);
    .lingqu {
        padding: px2rem(9);
        color: #7ECC32;
        border: 1px solid #7ECC32;
        margin-right: px2rem(15);
    }
    .icon-up,
    .icon-down {
        @include inline-block;
        width: 14px;
        height: 11px;
        background: url("../../img/icon-up.png?__inline") no-repeat;
        background-size: auto 100%
    }
    .icon-down {
        background-image: url("../../img/icon-down.png?__inline");
    }
    .guanwang {
        padding: px2rem(9);
        color: #F17085;
        border: 1px solid #F17085;
    }
    .toupiao {
        margin-left: px2rem(15);
        padding: px2rem(9);
        color: #f9b048;
        border: 1px solid #f9b048;
    }
    .red {
        color: $highLightColor;
    }
    .game-chart-tbl {
        width: 100%;
        tr {
            font-size: px2rem(26);
            line-height: px2rem(80);
            &:not(:last-child) {
                border-bottom: $baseBorder;
            }
            th:nth-child(1) {
                width: 13.3%
            }
            th:nth-child(2) {
                width: 25.3%
            }
            th:nth-child(3) {
                width: 14%
            }
            th:nth-child(4) {
                width: 16.67%
            }
            td {
                color: $lightFontColor;
                text-align: center;
                white-space: nowrap;
                text-overflow: ellipsis;
                &:nth-child(2) {
                    color: $baseFontColor;
                    font-size: px2rem(28);
                }
                &:nth-child(1) {
                    vertical-align: middle;
                    span {
                        line-height: px2rem(40);
                        color: #fff;
                        @include inline-block;
                        height: px2rem(40);
                        padding: 0 px2rem(10);
                        background: #999999;
                        text-align: center;
                        border-radius: px2rem(3);
                    }
                }
                .icon-test {
                    width: px2rem(36);
                    height: px2rem(30);
                    @include inline-block;
                    background: url("../../img/icon-test.png?__inline") no-repeat;
                    background-size: auto 100%
                }
            }
        }
    }
}

//游戏导航
.game-nav {
    border-top: $baseBorder;
    ul {
        width: 100%;
        @include clearfix;
        li {
            float: left;
            background: #F7F7F7;
            text-align: center;
            font-size: px2rem(28);
            line-height: px2rem(78);
            &:not(:last-child) {
                border-right: $baseBorder;
            }
            &.col-2 {
                width: 50%;
                border-bottom: $baseBorder;
            }
            &.col-3 {
                width: 33.3%;
                border-bottom: $baseBorder;
            }
            &.active {
                background: $highLightColor;
                a{
                    color: #fff;
                }
                //border-bottom: 1px solid $highLightColor;
            }
        }
        //&.col-3 {
        //    border-bottom: $baseBorder;
        //    li {
        //        width: 33.3%;
        //    }
        //}
        //&.col-2 li {
        //    width: 50%;
        //}
    }
}

//游戏列表 端游、手游
.ku-game-item,
.ku-mgame-item {
    ul {
        padding: 0 px2rem(23);
    }
    li {
        background: #fff;
        padding: px2rem(28) 0;
        @include webkitbox();
        -webkit-box-align: center;
        -webkit-box-pack: justify;
        &:not(:last-child) {
            border-bottom: $baseBorder;
        }
        a {
            display: block;
            height: 100%;
            @include webkitbox();
            -webkit-box-align: center;
        }
        img {
            //display: block;
            width: px2rem(223);
        }
        .item-msg {
            padding-left: px2rem(20);
            width: px2rem(322);
            h4 {
                font-size: px2rem(32);
                line-height: px2rem(60);
                @include ellipsis;
            }
            p {
                font-size: px2rem(26);
                color: #999;
            }
        }
        .btn {
            display: block;
            width: px2rem(158);
            line-height: px2rem(72);
            height: px2rem(72);
            border-radius: px2rem(10);
            text-align: center;
            color: #fff;
            font-size: px2rem(32);
        }
        .btn-detail {
            background: $red;
        }
    }
}

.ku-mgame-item {
    li {
        img {
            width: px2rem(128);
            border-radius: px2rem(26);
        }
        .btn-download {
            background: #7ECC32;
        }
        .item-msg {
            width: px2rem(413);
        }
        .btn-line {
            margin-top: px2rem(10);
        }
        .icon-android,
        .icon-ios {
            @include inline-block;
            width: px2rem(26);
            height: px2rem(30);
            margin-right: px2rem(15);
        }
        .icon-android {
            background: url("../../img/icon-android.png?__inline") no-repeat;
            background-size: auto 100%;
        }
        .icon-ios {
            background: url("../../img/icon-ios.png?__inline") no-repeat;
            background-size: auto 100%;
        }
    }
}

//点击加载更多
.click-to-showmore {
    margin-top: px2rem(20);
    font-size: px2rem(28);
    color: #999;
    text-align: center;
    em {
        @include inline-block;
        margin-left: px2rem(10);
        width: px2rem(16);
        height: px2rem(26);
        position: relative;
        top: 1px;
        background: url("../../img/icon-more.png") no-repeat;
        background-size: contain;
    }
}

//找游戏
.page-findgame {
    font-family: "Adobe 黑体 Std";
    background: #F7F7F7;
    .swiper-slide a h2 {
        left: 0;
        right: 0;
        bottom: 0;
        text-align: left;
        transform: translate(0);
        font-size: 14px;
        padding: px2rem(25) px2rem(20);
        z-index: 99;
        background: url(/src/img/lunbo-title-shadow.png) repeat-x left bottom;
        background-size: auto 100%;
    }
    .swiper-container-kaice {
        .swiper-wrapper {
            visibility: hidden;
        }
        .swiper-slide {
            // visibility: hidden;
            flex-direction: column;
            height: px2rem(250);
            //height: auto;
            a {
                display: block;
                width: 100%;
                height: 100%;
            }
            .img {
                //width: px2rem(114);
                height: px2rem(160);
                overflow: hidden;
                img {
                    height: 100%;
                }
            }
            h5 {
                @include ellipsis();
                font-size: 15px;
                line-height: px2rem(58);
                color: #333;
            }
            p {
                @include ellipsis();
                font-size: px2rem(26);
                color: #999;
            }
        }
    }
    .box-video ul {
        @include clearfix;
        margin-bottom: px2rem(-29);
        //display: -webkit-box;
        //-webkit-box-orient: horizontal;
        //-webkit-box-pack: justify
        li {
            float: left;
            width: px2rem(330);
            height: px2rem(185);
            margin-right: px2rem(42);
            margin-bottom: px2rem(29);
            &:nth-child(even) {
                margin-right: 0;
            }
            a {
                display: block;
                height: 100%;
                position: relative;
            }
            img {
                width: 100%;
            }
            p {
                position: absolute;
                bottom: px2rem(10);
                width: 100%;
                text-align: center;
                font-size: px2rem(24);
                color: #fff;
                &.shadow-bottom {
                    bottom: 0;
                    font-size: 13px;
                    line-height: px2rem(46);
                    background: url(/src/img/lunbo-title-shadow.png) repeat-x center;
                    background-size: auto 100%;
                    text-shadow: 0 0 5px #000;
                }
            }
        }
    }
    .box-video.box-3 {
        li {
            height: px2rem(265);
        }
        p {
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            position: static;
            height: px2rem(74);
            color: #333;
            font-size: px2rem(30);
            text-align: left;
            line-height: px2rem(40);
        }
    }
}

//测试表
.page-testchart {
    //padding-top: px2rem(18);
    font-family: "Adobe 黑体 Std";
    background: #F7F7F7;
    height: 100%;
    .dw-common-nav {
        margin-bottom: px2rem(18);
    }
}

//游戏榜
.page-gamerank {
    .dw-common-nav {
        border-bottom: 0;
    }
    background: #F7F7F7;
    height: 100%;
    font-family: "Adobe 黑体 Std";
    .game-chart {
        margin-top: px2rem(20);
    }
    .rank-top3 {
        .game-chart {
            @include webkitbox();
            padding: 0;
            margin: 0;
            -webkit-box-pack: justify;
            li {
                display: block;
                width: px2rem(220);
                text-align: center;
                img {
                    width: 100%;
                }
                h5 {
                    @include ellipsis;
                    font-size: px2rem(32);
                    line-height: px2rem(50);
                }
                .red {
                    position: relative;
                    top: px2rem(-3);
                }
                p {
                    font-size: px2rem(26);
                    line-height: px2rem(45);
                }
            }
        }
    }
}

//游戏库
.page-gamestore {
    .dw-common-nav {
        border-bottom: 0;
    }
    font-family: "Adobe 黑体 Std";
    .ku-game-nav {
        border-bottom: $baseBorder;
        height: px2rem(79);
        transition: height .5s ease;
        overflow: hidden;
        &.hide{
            height: 0;
        }

        ul {
            line-height: px2rem(75);
            //border-bottom: $baseBorder;
            @include webkitbox();
            text-align: center;
            li {
                -webkit-box-flex: 1;
                font-size: px2rem(30);
                span {
                    @include inline-block;
                    height: 100%;
                }
                &.active {
                    span {
                        color: $highLightColor;
                        border-bottom: px2rem(4) solid $highLightColor;
                    }
                }
            }
        }
    }
    .search-wrap {
        padding: px2rem(20) px2rem(23);
        @include webkitbox();
        -webkit-box-pack: justify;
        .input-border {
            border: $baseBorder;
            border-right: 0;
            float: left;
        }
        input {
            width: px2rem(418);
            height: px2rem(56);
            border: 0;
            outline: 0;
            background: #F7F7F7;
            line-height: px2rem(58);
            padding: 0 px2rem(15);
            font-size: 12px;
        }
        .search-box {
            @include clearfix;
        }
        .btn-search {
            float: left;
            border: 1px solid #999;
            width: px2rem(110);
            height: px2rem(60);
            ;
            background: #999;
            line-height: px2rem(58);
            text-align: center;
            color: #fff;
            font-size: px2rem(26);
        }
        .btn-saixuan {
            width: px2rem(120);
            height: px2rem(58);
            background: #999;
            line-height: px2rem(58);
            text-align: center;
            color: #fff;
            font-size: px2rem(26);
            .up {
                @include triangle-up(px2rem(10),
                #fff);
                position: relative;
                top: -30%;
                margin-left: px2rem(10);
            }
            .down {
                @include triangle-down(px2rem(10),
                #fff);
                position: relative;
                top: 30%;
                margin-left: px2rem(10);
            }
        }
    }
    .search-content {
        &.search-mcontent .search-item:not(:last-child) {
            margin-bottom: px2rem(30);
        }
        .search-hd {
            padding: px2rem(23);
        }
        .search-item {
            font-size: px2rem(26);
            @include clearfix;
            &:not(:last-child) {
                margin-bottom: px2rem(7);
            }
            span {
                float: left;
                color: #fff;
                background: #ccc;
                text-align: center;
                width: px2rem(80);
                height: px2rem(44);
                line-height: px2rem(44);
            }
            .active {
                color: $red;
            }
            ul {
                float: left;
                width: px2rem(624);
                li {
                    float: left;
                    width: 25%;
                    color: #999;
                    text-align: center;
                    line-height: px2rem(44);
                    margin-bottom: px2rem(7);
                    a {
                        display: block;
                        height: 100%;
                        color: #999;
                        text-decoration: none;
                    }
                }
            }
        }
        .placeholder-bg {
            height: px2rem(20);
            background: $baseBgColor;
        }
    }
}

//游戏详情
.page-gamedetail {
    color: #333;
    font-family: "Adobe 黑体 Std";
    .g-top {
        width: 100%;
        // height: px2rem(340);
        overflow: hidden;
        img {
            width: 100%;
        }
    }
    .g-main {
        padding: px2rem(20);
        .detail-box {
            margin-top: px2rem(80);
        }
        .dw-common-nav {
            line-height: px2rem(30);
            height: px2rem(53);
            .dw-nav-list a {
                display: block;
                height: px2rem(52);
                font-size: px2rem(30);
            }
        }
    }
    .g-introduce {
        .itd-hd {
            border-bottom: $baseBorder;
            font-size: px2rem(28);
            height: px2rem(50);
            span {
                float: left;
            }
            .game-name {
                width: px2rem(330);
                font-size: px2rem(32);
            }
            .up-vote {
                height: 100%;
                line-height: px2rem(27);
                padding-left: px2rem(50);
                background: url("../../img/icon-like.png?__inline") no-repeat left top;
                background-size: px2rem(33) auto;
                float: right;
                font-size: 12px;
                color: #999;
                display: none;
                &:active {
                    opacity: .8;
                }
                &.up-voted {
                    background-image: url(/src/img/icon-like-clicked.png);
                    color: #e94647;
                }
            }
        }
        .itd-bd {
            h3 {
                margin: px2rem(30) 0;
                padding-left: px2rem(5);
                border-left: 4px solid $red;
                font-size: px2rem(30);
            }
            p {
                font-size: px2rem(28);
                line-height: px2rem(40);
                height: px2rem(73);
                overflow: hidden;
                &.close {
                    height: auto;
                }
            }
            .itd-detail {
                margin-top: px2rem(30);
                height: px2rem(70);
                font-size: px2rem(28);
                text-align: center;
                line-height: px2rem(70);
                background: $baseBgColor;
                em {
                    @include inline-block;
                    width: px2rem(24);
                    height: px2rem(14);
                    background: url("../../img/icon-tdown.png?__inline") no-repeat;
                    background-size: 100% auto;
                    margin-left: px2rem(10);
                    position: relative;
                    top: -1px;
                    &.up {
                        background-image: url("../../img/icon-tup.png?__inline");
                    }
                }
            }
        }
    }
    .g-newList {
        .common-textnews-list {
            border-bottom: $baseBorder;
            .news-list__item {
                border: none;
                height: px2rem(80);
                line-height: px2rem(80);
            }
        }
    }
    .g-video {
        .video-list {
            //@include webkitbox();
            //-webkit-box-pack: justify;
            padding: px2rem(30) 0 px2rem(10);
            border-bottom: $baseBorder;
            ul {
                @include clearfix();
                margin-right: -px2rem(20);
            }
            li {
                float: left;
                margin-right: px2rem(20);
                margin-bottom: px2rem(20);
                width: px2rem(220);
                a {
                    display: block;
                }
                .img {
                    width: px2rem(220);
                    height: px2rem(123);
                    overflow: hidden;
                    position: relative;
                    img {
                        width: 100%;
                    }
                    em {
                        position: absolute;
                        top: 50%;
                        left: 50%;
                        margin-left: -px2rem(30);
                        margin-top: -px2rem(30);
                        width: px2rem(60);
                        height: px2rem(60);
                        background: url("../../img/icon-play.png?__inline") no-repeat;
                        background-size: 100% auto;
                    }
                }
                p {
                    margin-top: px2rem(15);
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    position: static;
                    color: #333;
                    font-size: px2rem(26);
                    text-align: left;
                    line-height: px2rem(38);
                }
            }
        }
    }
    .g-recommend {
        h3 {
            color: $red;
            border-bottom: 2px solid $red;
            height: px2rem(52);
            font-size: px2rem(30);
            width: 50%;
            padding-left: px2rem(20);
        }
        .ku-game-item ul {
            padding: 0;
        }
    }
}