@import url(./common.css);
@import url(./header.css);

.footer {
    width: 100%;
    height: 45px;
    background-color: var(--pr-color);
}

.footer-ul {
    width: 400px;
}

.footer-ul-li__link {
    font-size: var(--text-m);
    color: #ffffff;
}

.img-load {
    background-image: url('../img/picture.gif');
    background-size: 100% 100%;
    border-radius: .2333rem;
}

.content-game.mobile {
    width: 100%;
    height: 100vh;
    font-size: 0;
}

.content-game.pc {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 585px;
    background-color: var(--su-color);
}

@media screen and (max-width: 768px) {
    .content {
        margin-top: .8333rem;
    }

    .content-game iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

    .content-detail {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        width: 100%;
        height: 1.6667rem;
        border: .1667rem solid #ffffff;
        border-radius: .2333rem;
        padding: .1667rem;
        background-color: var(--pr-color);
    }

    /* 游戏列表 */
    .content-list {
        width: 100%;
    }

    .list {
        display: grid;
        grid-template-areas: ". . . ."
            ". . ip0 ip0"
            ". . ip0 ip0"
            ". . . ."
            ". ip1 ip1 ."
            ". ip1 ip1 .";
        grid-gap: .25rem;
        width: 100%;
        padding: .1667rem;
    }

    .list-item {
        height: fit-content;
        box-shadow: 0 .0667rem .1667rem #d5d5d5;
        border-radius: .2333rem;
    }

    .list-item.hotT {
        grid-area: ip0 / ip0 / ip0 / ip0;
    }

    .list-item.hotB {
        grid-area: ip1 / ip1 / ip1 / ip1;
    }

    .list-item-game__img {
        position: relative;
        width: 100%;
        padding-bottom: 100%;
    }

    .list-item-game__img .img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: .2333rem;
    }

    /* 游戏开始界面 */
    .game-action {
        position: relative;
        width: 100%;
        padding: .1667rem;
        box-shadow: 0px .0667rem .1667rem #f1f1f1;
    }

    .game-action.pc {
        display: none;
    }

    .game-action__img {
        position: relative;
        width: 100%;
        height: 6rem;
        border-radius: .3333rem .3333rem 0 0;
    }

    .game-action__img .img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: .3333rem .3333rem 0 0;
        filter: brightness(.7);
    }

    .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 1.1667rem;
        height: 1.1667rem;
        background-color: #ffffff;
        border-radius: 50%;
        box-shadow: 0px 0px 4px #000000;
    }

    .font-icon {
        color: var(--pr-color);
    }

    .game-action-detail {
        display: flex;
        width: 100%;
        height: 1rem;
        align-items: center;
        background-color: var(--pr-color);
        border-radius: 0 0 .3333rem .3333rem;
        padding: 0 .2rem;
    }

    .game-action-detail-right .game-action-detail-game-img {
        width: .75rem;
        height: .75rem;
        border-radius: .1rem;
        margin-right: .1rem;
    }

    .game-action-detail-right .game-action-detail-game-img .img {
        border-radius: .1rem;
    }

    .game-action-detail-left {
        display: flex;
        flex-direction: column;
        height: .75rem;
        justify-content: space-evenly;
    }

    .game-action-detail-left .game-action-detail__name {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 16px;
        font-weight: bold;
        color: #f1f1f1;
        width: 4.5rem;
    }

    .game-action-detail-left .game-action-detail__desc {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        color: #f1f1f1;
        width: 4.5rem;
    }


}

@media screen and (min-width: 768px) {
    .game-action.mobile {
        display: none;
    }

    .content-detail {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        width: 100%;
        height: 15vh;
        background-color: var(--pr-color);
        margin-top: 10px;
    }

    .swiper-title {
        display: none;
    }

    .swiper {
        display: none;
    }

    .swiper-title {
        width: 70px;
    }

    .swiper-title__group {
        position: relative;
        width: 100%;
        height: 100%;
        flex-direction: column;
        justify-content: space-evenly;
        border-left: 2px solid #ffffff;
    }

    .swiper-title__group>div {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--text-l);
        color: #ffffff;
        width: 70px;
        flex: 1;
        cursor: pointer;
    }

    .swiper-title__group>div:active {
        box-shadow: inset 2px 2px 6px #ca3641,
            inset -2px -2px 6px #ff4859;
    }

    .swiper-title__group>div:first-child {
        position: absolute;
        top: 0;
        height: 50px;
        border-bottom: 2px solid #ffffff;
        border-radius: 0 20px 0 0;
        background-color: var(--pr-color);
    }

    .swiper-title__text.cate {
        position: absolute;
        top: 50px;
        min-height: 50px;
        border-radius: 0 0 20px 0;
        background-color: var(--pr-color);
        transition: height 300ms linear;
    }

    .swiper-title__text.cate:hover .swiper-cate-list-item {
        display: block;
    }

    .swiper-title__text {
        position: relative;
    }

    .swiper-title-pc__text {
        height: 50px;
        line-height: 50px;
    }

    .swiper-cate-list-item {
        display: none;
        height: 50px;
        line-height: 50px;
        text-align: center;
    }

    .swiper-cate-list-item:hover {
        background-color: var(--su-color);
    }

    .game-action {
        position: relative;
        width: 100%;
        border-radius: 20px 20px 0 0;
        overflow: hidden;
    }

    .game-action__img {
        width: 100%;
        height: 585px;
        background-color: var(--su-color);
    }

    .game-action__img .img {
        object-fit: cover;
        filter: brightness(.5);
    }

    .icon {
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100px;
        height: 100px;
        background-color: #ffffff;
        border-radius: 50%;
        cursor: pointer;
    }

    .content {
        padding-left: 130px;
        box-sizing: border-box;
    }

    /* 游戏列表 */
    .content-list {
        width: 100%;
    }

    .list {
        display: grid;
        grid-template-areas:
            ". . ip2 ip2 ip2 ip2 ip2 ip2 ip2 ip2 ip2 ip0 ip0 "
            ". . ip2 ip2 ip2 ip2 ip2 ip2 ip2 ip2 ip2 ip0 ip0 "
            ". . ip2 ip2 ip2 ip2 ip2 ip2 ip2 ip2 ip2 . . "
            ". . ip2 ip2 ip2 ip2 ip2 ip2 ip2 ip2 ip2  ip1 ip1"
            ". . ip2 ip2 ip2 ip2 ip2 ip2 ip2 ip2 ip2  ip1 ip1";
        grid-gap: 15px;
        padding: 10px;
    }

    .list-item {
        position: relative;
        transition: transform 200ms linear;
        box-shadow: 0px 0px 5px #9d9d9d;
        border-radius: 10px;
        font-size: 0;
    }

    .list-item-game__img {
        position: relative;
        width: 100%;
        padding-bottom: 100%;
        border-radius: 10px;
        overflow: hidden;
    }

    .list-item-game__img .img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

    .list-item.hotT {
        grid-area: ip0 / ip0 / ip0 / ip0;
    }

    .list-item.hotB {
        grid-area: ip1 / ip1 / ip1 / ip1;
    }

    .game-action.pc {
        grid-area: ip2 / ip2 / ip2 / ip2;
    }

    .game-action-wrapper {
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
    }

    .list-item-game__name {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 30px;
        line-height: 30px;
        font-size: var(--text-s);
        font-weight: 700;
        color: #ffffff;
        text-align: center;
        transform: translateY(100%);
        transition: transform 200ms ease-in-out;
        text-shadow: #9d9d9d;
        background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .5));
        border-radius: 0 0 10px 10px;
    }

    .list-item:hover {
        transform: scale(1.05);
        cursor: pointer;
    }

    .list-item:hover .list-item-game__name {
        transform: translateY(0%);
    }

    .game-action-detail {
        display: flex;
        align-items: center;
        width: 100%;
        height: 80px;
        background-color: var(--pr-color);
        border-radius: 0 0 20px 20px;
        padding: 0 20px;
    }

    .game-action-detail-game-img {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }

    .game-action-detail-game-img .img {
        border-radius: 8px;
    }

    .game-action-detail__name {
        width: 200px;
        font-size: var(--text-l);
        font-weight: 700;
        color: #ffffff;
    }

    .game-action-detail__desc {
        width: 200px;
        font-size: var(--text-s);
        font-weight: 400;
        color: #ffffff;
    }

    .content-iframe_game {
        height: 100%;
        border: 0;
    }
    .content-iframe_game.fullScreen {
        width: 100%;
    }
}