/* ============================================
   首页样式 - 严格参考 anfensi.com
   ============================================ */

/* 顶部工具栏 */
.topNavC {
    margin: 0;
    padding: 0;
    height: 41px;
    line-height: 41px;
    background: #fafafa;
    font-size: 13px;
    color: #676767;
}

.topNavC-inner {
    display: block;
    width: 1200px;
    margin: 0 auto;
}

.topNavC a {
    color: #676767;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.2s ease;
}

.topNavC a:hover {
    color: #7C6FE6;
}

.topNavC i {
    color: #ccc;
    font-style: normal;
    margin: 0 5px;
}

/* 推荐切换区 */
.game_rec {
    width: 1198px;
    height: 200px;
    margin: 15px auto 0;
    background: #fff;
    border: 1px solid #e2e2e2;
    overflow: hidden;
}

.game_rec-inner {
    position: relative;
    height: 100%;
}

.left-nav {
    float: left;
    width: 121px;
    height: 100%;
}

.left-nav p {
    margin: 0;
    padding: 0;
    width: 121px;
    height: 66px;
    line-height: 66px;
    text-align: center;
    font-size: 15px;
    color: #6e6e6e;
    background: #f7f7f7;
    cursor: pointer;
    border-bottom: 1px solid #e2e2e2;
    transition: all 0.2s ease;
}

.left-nav p:last-child {
    border-bottom: none;
    height: 67px;
}

.left-nav p:hover {
    color: #7C6FE6;
}

.left-nav p.cur {
    color: #7C6FE6;
    background: #fff;
    font-weight: bold;
}

.game_rec .right {
    float: right;
    width: 1050px;
    height: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
}

.game_rec .right .top {
    margin: 0;
    padding: 0;
    height: 130px;
    overflow: hidden;
}

.game_rec .right .top a {
    float: left;
    width: 94px;
    height: 120px;
    margin: 5px 2px;
    text-align: center;
    text-decoration: none;
    color: #444;
    transition: all 0.2s ease;
}

.game_rec .right .top a:hover {
    color: #7C6FE6;
}

.game_rec .right .top a img {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 5px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #eee;
}

.game_rec .right .top a m {
    display: block;
    font-size: 12px;
    line-height: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game_rec .right .bottom {
    margin: 0;
    padding: 5px 0 0;
    height: 40px;
    overflow: hidden;
    border-top: 1px dashed #eee;
}

.game_rec .right .bottom a {
    float: left;
    width: 103px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.game_rec .right .bottom a:hover {
    color: #7C6FE6;
}

/* 主内容区 */
#main.shoy {
    width: 1200px;
    margin: 15px auto 0;
}

/* 四列排行区 */
.rank {
    width: 1200px;
    background: #fff;
    padding: 15px 0;
    margin-bottom: 15px;
    overflow: hidden;
}

.rank-col {
    float: left;
    width: 287px;
    margin-right: 10px;
    padding: 0;
    list-style: none;
}

.rank-col:last-child {
    margin-right: 0;
}

.rank-col-title {
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    border-bottom: 2px solid #7C6FE6;
    margin-bottom: 8px;
}

.rank-col-title b {
    font-size: 18px;
    color: #7C6FE6;
    font-weight: bold;
}

.rank-col li {
    position: relative;
    height: 55px;
    padding: 0 10px;
    overflow: hidden;
}

.rank-col li span {
    position: absolute;
    left: 10px;
    top: 8px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #f0f0f0;
    color: #999;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
}

.rank-col li:nth-child(2) span,
.rank-col li:nth-child(3) span,
.rank-col li:nth-child(4) span {
    background: #7C6FE6;
    color: #fff;
}

.rank-col li a {
    display: block;
    padding-left: 35px;
    height: 32px;
    line-height: 32px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.rank-col li a:hover {
    color: #7C6FE6;
}

.rank-col li u {
    display: block;
    padding-left: 35px;
    height: 20px;
    line-height: 20px;
    font-size: 11px;
    color: #999;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 分类内容区 */
.flshow {
    width: 1200px;
    background: #fff;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #e2e2e2;
}

.flshow .mfl {
    float: left;
    width: 360px;
    padding: 15px;
    box-sizing: border-box;
}

.catabox {
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e2e2e2;
}

.catabox p {
    margin: 0;
    padding: 0;
}

.catabox p strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    padding-left: 8px;
    border-left: 3px solid #7C6FE6;
}

.catabox p a {
    float: left;
    padding: 4px 12px;
    margin: 4px 6px 4px 0;
    background: #f5f5f5;
    color: #666;
    font-size: 12px;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.catabox p a:hover {
    background: #7C6FE6;
    color: #fff;
}

.imgslide {
    margin-top: 15px;
}

.slide-title {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #333;
    font-weight: bold;
}

.slide-list a {
    display: inline-block;
    padding: 3px 10px;
    margin: 3px 5px 3px 0;
    background: #f0f8ff;
    color: #7C6FE6;
    font-size: 12px;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.slide-list a:hover {
    background: #7C6FE6;
    color: #fff;
}

.flshow .bbox {
    margin-left: 360px;
    padding: 15px;
    min-height: 200px;
}

.flshow .bbox.on {
    display: block;
}

.app-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
}

.app-grid li {
    float: left;
    width: 100px;
    padding: 15px 12px 0 11px;
    text-align: center;
}

.app-grid li a {
    display: block;
    text-decoration: none;
    color: #444;
    transition: color 0.2s ease;
}

.app-grid li a:hover {
    color: #7C6FE6;
}

.app-grid li a img {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 5px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.app-grid li a:hover img {
    transform: scale(1.05);
}

.app-grid li a span {
    display: block;
    font-size: 12px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 资讯区 */
.news-show .mfl {
    width: 200px;
}

.news-show .bbox {
    margin-left: 200px;
}

.news-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
}

.news-grid li {
    float: left;
    width: 230px;
    padding: 10px;
    box-sizing: border-box;
}

.news-grid li a {
    display: block;
    text-decoration: none;
    color: #444;
    transition: color 0.2s ease;
}

.news-grid li a:hover {
    color: #7C6FE6;
}

.news-grid li a img {
    display: block;
    width: 100%;
    height: 130px;
    margin-bottom: 8px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.news-grid li a:hover img {
    transform: scale(1.03);
}

.news-grid li a span {
    display: block;
    font-size: 13px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 专题合集区 */
.hjbox {
    width: 1200px;
    background: #fff;
    border: 1px solid #e2e2e2;
    margin-bottom: 15px;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden;
}

.hjbox-hd {
    height: 35px;
    line-height: 35px;
    margin-bottom: 15px;
    border-bottom: 2px solid #7C6FE6;
    overflow: hidden;
}

.hjbox-hd b {
    float: left;
    font-size: 18px;
    color: #333;
}

.hjbox-hd .more {
    float: right;
    font-size: 12px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hjbox-hd .more:hover {
    color: #7C6FE6;
}

.hjbox-bd {
    overflow: hidden;
}

.hj-item {
    float: left;
    width: 180px;
    margin-right: 15px;
    text-align: center;
    text-decoration: none;
    color: #444;
    transition: all 0.2s ease;
}

.hj-item:last-child {
    margin-right: 0;
}

.hj-item:hover {
    color: #7C6FE6;
}

.hj-item img {
    display: block;
    width: 180px;
    height: 100px;
    margin-bottom: 8px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.hj-item:hover img {
    transform: scale(1.03);
}

.hj-item span {
    display: block;
    font-size: 13px;
    line-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 底部链接区 */
.links {
    width: 1200px;
    background: #fff;
    border: 1px solid #e2e2e2;
    margin-bottom: 15px;
    padding: 15px;
    box-sizing: border-box;
}

.links-inner {
    line-height: 28px;
    font-size: 12px;
}

.links-inner strong {
    color: #333;
    font-weight: bold;
    margin-right: 8px;
}

.links-inner a {
    color: #666;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.2s ease;
}

.links-inner a:hover {
    color: #7C6FE6;
}

.friend-links {
    margin-bottom: 0;
}

/* 回到顶部 */
#go_top {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    color: #999;
    display: none;
    z-index: 999;
    transition: all 0.2s ease;
}

#go_top:hover {
    background: #7C6FE6;
    color: #fff;
    border-color: #7C6FE6;
}

/* 响应式 */
@media (max-width: 1200px) {
    .game_rec,
    #main.shoy,
    .rank,
    .flshow,
    .hjbox,
    .links {
        width: 98%;
        margin-left: auto;
        margin-right: auto;
    }

    .game_rec .right {
        width: calc(100% - 130px);
    }

    .rank-col {
        width: 48%;
        margin-right: 4%;
        margin-bottom: 15px;
    }

    .rank-col:nth-child(2n) {
        margin-right: 0;
    }

    .rank-col:nth-child(3),
    .rank-col:nth-child(4) {
        margin-bottom: 0;
    }

    .flshow .mfl {
        float: none;
        width: 100%;
        border-bottom: 1px dashed #e2e2e2;
    }

    .flshow .bbox {
        margin-left: 0;
    }

    .news-show .mfl {
        width: 100%;
    }

    .news-show .bbox {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .game_rec {
        height: auto;
    }

    .left-nav {
        float: none;
        width: 100%;
        height: 40px;
        overflow: hidden;
    }

    .left-nav p {
        float: left;
        width: 33.33%;
        height: 40px;
        line-height: 40px;
        border-bottom: none;
        border-right: 1px solid #e2e2e2;
    }

    .left-nav p:last-child {
        height: 40px;
        border-right: none;
    }

    .game_rec .right {
        float: none;
        width: 100%;
    }

    .rank-col {
        width: 100%;
        margin-right: 0;
    }

    .app-grid li {
        width: 25%;
        padding: 10px 5px 0;
    }

    .news-grid li {
        width: 50%;
    }

    .hj-item {
        width: 48%;
        margin-right: 4%;
        margin-bottom: 15px;
    }

    .hj-item:nth-child(2n) {
        margin-right: 0;
    }

    .hj-item img {
        width: 100%;
    }
}
