main {
    width: var(--all-width);
    margin: 0 auto 15px;
    display: flex;
}

main .list {
    margin-bottom: 20px;
}

main h3 {
    padding-left: 15px;
    background: #fbfbfb;
    border-bottom: 1px solid #e8e8e8;
    height: 42px;
    line-height: 42px;
    color: #666;
    font-weight: normal;
    font-size: 16px;
}

main .big-box {
    display: flex;
    flex-wrap: wrap;
    row-gap: 8px;
}

nav {
    width: 160px;
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .15);
    margin-bottom: auto;
}

.nav-title {
    background: #00c791;
    clear: both;
    color: #fff;
    text-align: center;
    height: 42px;
    line-height: 42px;
    font-weight: 700;
    font-size: 16px;
    font-weight: 600;
}

nav ul {
    padding: 5px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    row-gap: 2px;
}

nav a {
    font-size: 13px;
    color: #666;
    transition: .3s;
    display: flex;
    align-items: center;
    padding: 8px 0 8px 8px;
}

nav a:hover {
    background-color: #00c791;
    color: #fff;
}

.content {
    padding-left: 10px;
    flex: 1;
}

.big-box[data-type=hot],
.big-box[data-type=all] {
    padding: 20px;
    background-color: #fff;
}

.game-base {
    padding: 8px
}

.game-base .img-box::before {
    padding-top: 100%;
}

.game-base .base-text {
    padding: 8px 0px;
    text-align: center;
    white-space: nowrap;
    font-size: 12px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-base:hover {
    background-color: #f5f7fa;
}

.game-base:hover .base-text {
    color: #00a6ed;
}

#new h3 {
    margin-bottom: 10px;
}

.big-box[data-type=new] {
    margin-top: 10px;
}

.new-game {
    background-color: #fff;
    padding: 5px;
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .15);
}

.new-game .img-box::before {
    padding-top: 100%;
}

.new-game .new-text {
    padding: 6px 0;
    color: #666;
    text-align: center;
    font-size: 12px;
    width: 110%;
    transform: scale(.9);
    margin-left: -5%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.new-game:hover {
    background-color: transparent;
}

.new-game:hover .new-text {
    color: #00a6ed;
}

@media screen and (min-width:770px) {
    .game-base {
        width: calc((100% - 50px) / 6);
        margin-right: 10px;
    }

    .game-base:nth-of-type(6n) {
        margin-right: 0;
    }

    .new-game {
        width: calc((100% - 70px) / 8);
        margin-right: 10px;
    }

    .new-game:nth-of-type(8) {
        margin-right: 0;
    }
}

@media screen and (max-width:769px) {
    .game-base {
        width: calc((100% - 8px) / 2);
        margin-right: 8px;
    }

    .game-base:nth-of-type(2n) {
        margin-right: 0;
    }

    .new-game {
        width: calc((100% - 16px) / 3);
        margin-right: 8px;
    }

    .new-game:nth-of-type(3n) {
        margin-right: 0;
    }

    main {
        flex-direction: column;
        row-gap: 10px;
    }

    nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 5px;
    }

    nav ul {
        width: 100%;
        display: flex;
        overflow-x: auto;
        flex-direction: row;
    }

    nav a {
        min-width: 100px;
        white-space: nowrap;
        padding-right: 8px;
    }

    .content {
        padding: 5px;
    }
}