.d-flex {
    display: flex;
}

.mt-1 {
    margin-top: 1rem;
}

img {
    /* height: 100%; */
    -o-object-fit: contain;
    object-fit: contain;
    -o-object-position: center;
    object-position: center;
    /* width: 100%; */
}
.event_pic img{
    width: 100%;
    height: 100%;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.main-banner {
    margin-right: 20px;
    width: calc(74% - 20px);

}

.owl-carousel.game-slide .owl-dots {
    display: flex;
    justify-content: center;
    position: absolute;
    width: 100%;
    margin-top: -1.5em;
}

.owl-carousel.game-slide .owl-dot {
    width: 1em;
    height: 1em;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(0, 0, 0, .3) !important;
}

.owl-carousel.game-slide .owl-dot.active {
    background-color: #fff !important;
}


.owl-carousel.game-slide .owl-stage-outer {
    border-radius: 16px;
    overflow: hidden;
}

.sub-banner {
    width: 26%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sub-banner>a {
    height: 152px;
    display: inline-block;
    border-radius: 16px;
    overflow: hidden;
    margin: 3px 0;
}
@media(max-width:1200px){
    .sub-banner>a{
        height: 119px;
    }    
}
@media(max-width:991px){
    .sub-banner>a{
        height: 97px;
    }    
}

.game-mainblock {
    width: calc(74% - 20px);
    margin-right: 20px;
}

.game-nav {
    border-bottom: 1px solid #bbbbbb;
    margin-bottom: 1rem;
}

.game-nav ul>li {
    display: inline-block;
    line-height: 2rem;
    margin-right: .8rem;
}

.game-nav ul>li.active>a {
    color: #1d5276;
    border-bottom: 4px solid #1d5276;
    padding-bottom: 5px;
}

.game-category {
    display: flex;
    flex-wrap: wrap;
}

.game-category>div {
    width: 33.333%;
    padding: 0 5px;
    text-align: center;
}

.game-category picture>img {    /*266*130*/
    border-radius: 1rem;
    overflow: hidden;
    width: 100%;
    height: 130px;
    object-fit: cover;
    object-position: center;
}
@media(max-width:1200px){
    .game-category picture>img{
        height: 100px;
    }    
}
@media(max-width:991px){
    .game-category picture>img{
        height: 80px;
    }    
}
@media(max-width:480px){
    .game-category picture>img{
        height: calc((50vw - 25px)*130/266);
    }    
}


.game-subblock{
    width: 26%;
    overflow: hidden;
}


.game-category>.more-btn {
    align-self: center;
    text-align: center;
}

.game-category>.more-btn>a {
    display: inline-block;
    color: #1d5276;
    width: 60%;
    border-radius: 1rem;
    padding: .3rem;
    border: 1px solid #1d5276;
    transition: .8s;
}

.game-category>.more-btn>a:hover {
    color: #fff;
    background-color: #1d5276;
}

.sectionHeader {
    border-bottom: 1px solid #bbbbbb;
    margin-bottom: 1rem;
}

.sectionHeader>h2 {
    display: inline-block;
    margin-bottom: 0;
}

.sectionHeader>a {
    float: right;
    margin-top: 10px;
    margin-bottom: 10px;
}

.sectionHeader>a i:before {
    margin-left: 6px;
}

.game-event .sectionBlock {
    display: flex;
    margin-bottom: 1.5rem;
}

.game-event .sectionBlock>a:hover .event_pic>picture img {
    transform: scale(1.1);
    transition: transform 1.5s cubic-bezier(.19, 1, .22, 1) 0s;
}

.game-event .sectionBlock .event_pic {
    height: 137px;
    margin-right: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    width: 260px;
}

.game-event .sectionBlock .event_content {
    width: calc(100% - 240px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #444;
}

.game-event .sectionBlock .event_content>a h2 {
    margin: 0;
    font-weight: bold;
    color: #1d5276;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 1.5rem;
    overflow: hidden;
}

.game-event .sectionBlock .event_content>a:hover h2 {
    color: #ff8811;
}

.game-event .sectionBlock .event_content .caption {
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    height: 2.5rem;
    overflow: hidden;
}



.event_footer {
    display: flex;
}

.event_footer .input-group {
    width: 65%;
    display: flex;
}

.event_footer .input-group .form-coupon {
    width: 300px;
    border: 2px solid #1d5276;
    padding: 5px;
    border-radius: 8px 0 0 8px;
    display: inline-block;
    margin-right: -4px;
    color: #888;
    height: 28px;
}

.event_footer .icon-group {
    margin-left: auto;
    font-size: 1.3rem;
    vertical-align: middle;
    line-height: 1.5rem;
}

.event_footer .copy-btn {
    display: inline-block;
    background-color: #1d5276;
    color: #fff;
    padding: 4px;
    font-size: 13px;
    border-radius: 0 8px 8px 0;
    width: 30px;
    text-align: center;
    cursor: pointer;
}

.cm_block>.center-img {
    display: block;
    width: 728px;
    margin: 0 auto;
}

.m-game-subblock{
    display: none;
}

@media (max-width:468px) {
    .main-banner{
        width: 100%;
        margin-top: 1.25rem;
    }
    .m-direction{
        flex-direction: column;
    }

    .game-mainblock{
        width: 100%;
        overflow: hidden;
    }

    .game-mainblock {
        padding-right: 0rem;
        padding: 0 15px;
    }

    .game-category>div {
        width: 50%;
    }

    .game-category picture>img {
        border-radius: .3rem;
    }

    .game-event .sectionBlock .event_pic {
        height: 80px;
        width: 130px;
        border-radius: .4rem
    }
    .sectionBlock img{
        height: 100%;
    }


    .game-event .sectionBlock .event_content {
        width:65%;
    }

    .event_footer .input-group {
        width: 100%;
    }
    
    
    .event_footer .input-group .form-coupon {
        width: 75%;
    }

    .game-event .sectionBlock .event_content>a h2 {
        line-height: 1.2rem;
        font-size: 1rem;
        font-weight: 100;
        height: 2.5rem;
    }

    .m-game-subblock{
        display: block;
        width: 100%;
        overflow: hidden;
    }

    .m-game-slide .owl-item{
        border-radius: 10px;
        overflow: hidden;
    }
}


/* 查看更多 */
.dropdown_menu {
    width: 280px;
    border: #1d5276 2px solid;
    border-radius: 1rem;
    padding: 1rem;
    margin-right: 20px;
    align-self: flex-start;
}

.dropdown_menu .selection-system,
.dropdown_menu .selection-age,
.dropdown_menu .selection-category {
    position: relative;
    margin-bottom: 2.5rem;
}

li.games-checkbox {
    padding: .25rem 0;
    font-size: 1rem;
}

li.games-checkbox input {
    cursor: pointer;
    height: 20px;
    left: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 20px;
    z-index: 10;
}



li.games-checkbox {
    font-size: 15px;
    height: 20px;
    margin: 12px 0;
    position: relative;
}

li.games-checkbox label {
    width: 100%;
    left: 22px;
    padding-left: 22px;
    position: absolute;
    top: 0;
}

li.games-checkbox input:checked~label::before {
    content: '';
    background-color: #1d5276;
    border-color: #1d5276;
}

li.games-checkbox label::before {
    content: '';
    background-color: transparent;
    border: 1px solid #1d5276;
    border-radius: 3px;
    height: 16px;
    left: -22px;
    top: 3px;
    width: 16px;
}

@media(max-width:480px){
    li.games-checkbox label::before {
        left: -8px;
    }
}

.games-checkbox label:after,
.games-checkbox label:before {
    content: "";
    position: absolute;
}

.games-checkbox input:checked~label:after {
    content: "";
    opacity: 1;
}

.games-checkbox label:after {
    content: "";
    border: solid #fff;
    border-width: 0 2px 2px 0;
    height: 9px;
    left: -16px;
    opacity: 0;
    top: 5px;
    transform: rotate(45deg);
    width: 5px;
}

@media(max-width:480px){
    .games-checkbox label:after {
        left: -2px;
    }
}

.dropdown_menu .selection-system h2,
.dropdown_menu .selection-category h2,
.dropdown_menu .selection-age h2 {
    border-bottom: 1px solid #333b44;
    margin-bottom: 5px;
    padding-bottom: 12px;
    color: #1d5276;
    cursor: pointer;
    font-weight: 700;
}

.dropdown_menu .selection-system i.fa-play,
.dropdown_menu .selection-category i.fa-play,
.dropdown_menu .selection-age i.fa-play {
    font-size: 12px;
    position: absolute;
    z-index: -1;
    right: 0;
    top: 6px;
    transform: rotate(90deg);
    color: #1d5276;
}

.dropdown_menu .selection-system.active i.fa-play,
.dropdown_menu .selection-category.active i.fa-play,
.dropdown_menu .selection-age.active i.fa-play {
    transform: rotate(270deg);
}

.game-mainblock.right-side {
    padding-right: 0;
}

.game-mainblock .breadcrumb {
    display: inline-block;
    margin-bottom: 1rem;
}

.game-mainblock .breadcrumb span+span:before {
    content: ">";
    display: inline-block;
    padding: 0 5px;
}

.game-mainblock .breadcrumb span:last-child a {
    color: #f59b83;
}

.game-mainblock .order-selection,
.dropdown_menu .order-selection {
    float: right;
    display: block;
    width: 80px;
    color: #f59b83;
    padding: 5px;
    cursor: pointer;
    position: relative;
    background-image: url("../img/arrow-icon.svg");
    background-position: right 0.1em top 45%, 0 0;
    background-size: 14px, cover;
    background-repeat: no-repeat, repeat;
}

.dropdown_menu .order-selection {
    width: 75px;
}

.game-mainblock .order-selection:focus {
    outline: none;
}

.game-mainblock .order-selection a {
    color: #f59b83;
}

.game-mainblock .order-selection a>span>i {
    margin-left: 5px;
    transform: rotate(90deg) scale(.7);
}



.games-list {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    margin: 0 -.5rem;
}

.games-list .games-item {
    width: 50%;
    padding: 0 .5rem;
    margin-bottom: 1rem;
}

.games-list .games-item>a {
    display: flex;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #1d5276;
    height: 125px;
}



.games-list .games-item>a>picture {
    width: 60%;
}

.games-content {
    padding: 0 .5rem;
    width: 100%;
}

.games-content h2 {
    font-weight: bold;
    color: #1d5276;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1; /*行數*/
    -webkit-box-orient: vertical;
    white-space: normal;
    margin: 3px 0;
}

.games-list .games-item>a:hover .games-content h2 {
    color: #ff8811;
}

.games-list .games-item>a:hover .games-content p {
    color: #999;
}

.games-content p {
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    height: 2.5rem;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.games-tags-group {
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.games-tags-group>span {
    border: 1px solid #1d5276;
    color: #1d5276;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .5px;
    margin: 2px 10px 2px 0;
    padding: 2px 10px;
}

.m-down-btn {
    display: none;
}

@media (max-width:468px) {

    .games-list {

        margin: 0rem;
    }

    .game-mainblock {
        width: 100%;
    }

    .game-mainblock.right-side {
        padding: 0 .5rem;
    }

    .games-list .games-item {
        width: 100%;
    }

    .cm_block>.center-img {
        width: 100%;
    }

    .flex-direction {
        flex-direction: column;
    }

    .dropdown_menu {
        border: none;
        width: 100%;
    }

    .m-down-btn {
        display: inline-block;
        border: #000000 1px solid;
        color: #000000;
        background-color: transparent;
        padding: 0 8px;
    }

    .m-down-btn i {
        margin-left: 4px;
        font-size: 1rem;
    }

    .dropdown_menu>section {
        display: inline-block;
        margin-right: 5px;
    }

    .dropdown_menu .selection-system,
    .dropdown_menu .selection-age,
    .dropdown_menu .selection-category {
        margin-bottom: 0rem;
    }

    .dropdown_menu>.selection-system .option-menu ,
    .dropdown_menu>.selection-age .option-menu,
    .dropdown_menu>.selection-category .option-menu{
        display: none;
        top: 130px;
        position: fixed;
        left: 0;
        width: 100vw;
        background-color: #fffffff0;
        padding: 1.5rem;
        bottom: 0px;
        z-index: 10;
        right: 0;
    }

    li.games-checkbox {
        height: 34px;
        border-bottom: 1px solid #3b3b3b;
    }

    li.games-checkbox label {
        left: .5rem;
    }

    .games-checkbox label:after,
    .games-checkbox label:before {
        content: none;
    }
}


@media (max-width:468px) {
    .cm_block.index_bottom {
        margin-bottom: 3rem;
    }
}


/* 手機板下方固定選單 */
.toolbar {
    display: none;
}



@media (max-width:468px) {

    .toolbar {
        display: block;
        width: 100vw;
        position: fixed;
        margin: 0;
        z-index: 500;
        box-sizing: border-box;
        bottom: 0;
        background-color: #fff;
        height: 3rem;
        box-shadow: 0px -4px 5px #4b4b4b9c;
    }


    .toolbar-inner {
        width: 100%;
        height: 100%;
        display: -webkit-flex;
        display: flex;
        box-sizing: border-box;
        -webkit-align-items: center;
        align-items: center;
        -webkit-align-content: center;
        align-content: center;
    }

    .tab-link {
        width: 100%;
        color: #444;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .tab-link.tab-link-active>.reader-index-toolbar-icon {
        color: #ffbf99;
    }

    .tab-link.tab-link-active>.reader-index-toolbar-icon i:before {
        background-color: #ffbf99;
    }

    .reader-index-toolbar .reader-index-toolbar-icon {
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-justify-content: space-between;
        justify-content: space-between;
        -webkit-align-items: center;
        align-items: center;
        color: #757575;
        line-height: 1;
        font-size: .5rem;
    }

    .reader-index-toolbar .reader-index-toolbar-icon i {
        width:38px;
        height: 1.6rem;
        display: block;
        position: relative;
    }

    .reader-index-toolbar .reader-index-toolbar-icon i:before {
        content: "";
        display: block;
        width: 1.2rem;
        height: 1.2rem;
        transform: translate(-50%, 0);
        border-radius: 50%;
        background-color: #ccc;
        position: absolute;
        left: 50%;
        top: 0.1rem;
        z-index: -1;
    }

    .reader-index-toolbar .reader-index-toolbar-icon i:after {
        content: "";
        display: block;
        width: 100%;
        height: 100%;
    }

    .reader-index-toolbar .reader-index-toolbar-icon i.icon_store:after {
        background: transparent url(../../static/images/store.svg)no-repeat top/auto 1.5rem;
    }

    .reader-index-toolbar .reader-index-toolbar-icon i.icon_mode:after {
        background: transparent url(../../static/images/mode.svg) no-repeat top/auto 1.5rem;
    }

    .reader-index-toolbar .reader-index-toolbar-icon i.icon_game:after {
        background: transparent url(../../static/images/game.svg) no-repeat top/auto 1.5rem;
    }

    .reader-index-toolbar .reader-index-toolbar-icon i.icon_video:after {
        background: transparent url(../../static/images/video.svg) no-repeat top/auto 1.5rem;
    }

    .reader-index-toolbar .reader-index-toolbar-icon i.icon_zh:after {
        background: transparent url(../../static/images/member_origin.png) no-repeat top/auto 1.5rem;
    }

    .reader-index-toolbar .reader-index-toolbar-icon i.icon_fl:after {
        background: transparent url(../../static/images/category.png) no-repeat top/auto 1.5rem;
    }

}


/* 手機板上方header */
nav.reader-home-title {
    display: none;
}

.m-stui-header-icon {
    display: none;
}

@media (max-width:468px) {
    nav.reader-home-title {
        display: flex;
        box-sizing: border-box;
        background-color: #bd8d71;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        z-index: 9;
        height: 2.5rem;
        font-size: 1rem;
    }

    nav.reader-home-title a {
        color: #ffffff;
        flex-grow: 1;
        display: flex;
        justify-content: center;
    }

    .stui-header {
        background-color: #ffbf99;
        margin-bottom: 0px;
        margin-top: 0px;

    }

    .m-stui-header-icon {
        display: inline-block;
        position: relative;
    }

    .m-stui-header-icon .moon_icon {
        position: absolute;
        top: 57%;
        left: 6px;
        transform: translateY(-67%);
        font-size: 12px;
        pointer-events: none;
        color: #ffffff;
    }

    .m-stui-header-icon .sun_icon {
        position: absolute;
        top: 60%;
        right: 41.5px;
        transform: translateY(-68%);
        font-size: 14px;
        pointer-events: none;
        color: #ffffff;
    }

    .m-stui-header-icon .fa-search {
        color:#fff;font-size:23px;
        margin-right: 5px;
    }

}