* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    /* 去掉下划线 */
    color: inherit;
    /* 使用父元素的颜色 */
}

/* 你可以根据需要添加其他样式 */
a:hover {
    color: #7b00c7
        /* 设置悬停时的颜色 */
}

@font-face {
    font-family: 'Recky';
    src: url('../RECKYREGULAR-BWVXL.TTF');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.bg_green {
    background: linear-gradient(to right, #45af18, #27441f);
}

.bc_blue {
    background: linear-gradient(to right, #6088fe, #182e72);
}

.bc_purple {
    background: linear-gradient(to right, #e101fb, #642559);
}

.bc_red {
    background: linear-gradient(to right, #ff460d, #590005);
}

.bc_orange {
    background: linear-gradient(to right, #ffbd6b, #912c00);
}

.bc_pink {
    background: linear-gradient(to right, #ffaeae, #e70067);

}

html {
    font-size: 37.5px;
    /* 37.5px for rem calculations */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.2;
    /* background: #f5f5f5; */
}

.app {
    background: linear-gradient(to bottom, #bcf897, #09c17a);
    background-attachment: fixed;
    color: var(--denim-blue);
    min-width: 314px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.f-c-mm {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.f-r-mm {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.grid-container {
    display: grid;
    width: 90%;
    grid-template-columns: repeat(16, 1fr);
    /* 定义17列，列宽为相同的fr单位 */
    grid-auto-rows: 1fr;
    /* 行高和列宽保持一致 */
    gap: 10px;
    /* 网格之间的间距 */
    grid-auto-flow: row dense;
}

.grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    aspect-ratio: 1 / 1;
    /* 保证每个格子都是正方形 */
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5%;
}

/* 定义不同网格的大小 */
.grid-item-1 {
    grid-column: span 1;
    /* 占据2列 */
    grid-row: span 1;
    /* 占据2行 */
}

.grid-item-2 {
    grid-column: span 2;
    /* 占据1列 */
    grid-row: span 2;
    /* 占据1行 */
}

.grid-item-3 {
    grid-column: span 3;
    /* 占据3列 */
    grid-row: span 3;
    /* 占据3行 */
}

.main {
    flex: 1;
    margin: 20px 0px;
}

.game-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 使图片填充整个容器，可能会裁剪图片以适应容器 */
    object-position: center;
    /* 图片在容器中的位置，可以调整为其他值如 top left 等 */
    border-radius: 5%;
}





.category img {
    width: .3rem;
    height: .3rem;
}

.logo img {
    /* width: 100%; */
    height: 0.65rem;
}

.search img {
    display: none;
    width: .36rem;
    height: .36rem;
}

.search input {
    padding: 0.2rem 0.4rem;
    border: none;
    border-radius: 0.2rem;
    font-size: 0.4rem;
    /* 15px */
}

.banner-ad {
    /* margin: .2rem 0; */
    width: 100vw;
    min-height: 200px;
    text-align: center;
    color: #b9b9b9;
    /* background-color: #cccccc; */
    font-size: 0.2rem;
}

.banner-ad-pc {
    margin: .2rem 0;
    width: 100vw;
    text-align: center;
    color: #b9b9b9;
    min-height: 3rem;
    /* background-color: #cccccc; */
    font-size: 0.2rem;
}

.detail-banner-ad {
    color: #b9b9b9;
    text-align: center;
    font-size: 0.2rem;
}

.game_title {
    width: 100%;
    height: .45rem;
    font-size: .26rem;
    font-family: Recky;
    font-weight: 400;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgb(255, 66, 52, 0.7), rgb(255, 66, 52, 0));
}

.game_title img {
    width: .24rem;
    height: .26rem;
    margin-left: 0.1rem;
}

.game_title_item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game_title_item img {
    width: .78rem;
    height: .16rem;
    margin-right: .1rem;
}

.pink {
    background: linear-gradient(to right, rgb(241, 75, 180, 0.7), rgb(241, 75, 180, 0));
}

.purple {
    background: linear-gradient(to right, rgb(137, 16, 191, 0.7), rgb(137, 16, 191, 0));
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.section-title {
    font-size: 0.8rem;
    /* 30px */
}

.all-link {
    font-size: 0.4rem;
    /* 15px */
    color: #007bff;
    text-decoration: none;
}

.game-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 10%;
}





.game-item h3 {
    font-size: 0.24rem;
    white-space: nowrap;
    overflow: hidden;
    /* font-family: Recky; */
    /* 18px */
}


.hot_game {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 75%;
}

.hot_game_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    width: 45%;
    margin: .1rem 0;
    padding: .2rem;
    border-radius: 0.15rem;

}

.game-description {
    flex: 1;
    font-size: .2rem;
    height: 1rem;
    overflow: hidden;
    padding: 0 0.1rem;
    text-align: left;
    color: #FFFFFF;
    font-weight: bold;
}

.enter-button {
    padding: .15rem .2rem;
    font-size: .24rem;
    background: #ffa500;
    border: none;
    border-radius: 0.1rem;
    cursor: pointer;
    color: #FFFFFF;
    font-weight: bold;
}

.footer {
    /* background: #333; */
    background: #006f42;
    color: #fff;
    text-align: center;
    padding: 0.2rem;
    font-size: 0.24rem;
}

.footer_content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.foot_pd {
    padding: .1rem .4rem;
    text-decoration: underline;
}

.game-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-header {
    display: flex;
    align-items: flex-start;
    padding: .2rem;
    /* margin-bottom: 2rem; */
}

.home-game-icon {
    width: 2rem;
    height: 2rem;
    margin-right: .2rem;
    border-radius: 0.15rem;
}

.game-icon {
    width: 2rem;
    height: 2rem;
    margin-right: .2rem;
    border-radius: 0.15rem;
}

.game-info {
    flex: 1;
}

.detail-title {
    font-size: .42rem;
    margin: 0;
    margin-bottom: 0.1rem;
    color: #696969;
}

.detail-description {
    color: #A5A5A5;
    font-size: .18rem;
    margin-bottom: .2rem;
    min-height: .8rem;
    height: .8rem;
    overflow: hidden;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    height: .52rem;
    overflow: hidden;
}

.tag {
    padding: 0.05rem .1rem;
    margin-right: 0.2rem;
    font-size: .2rem;
    margin-bottom: 0.5rem;
    border: 2px dashed #C5C5C5;
    color: #828080;
}

.detail-img {
    width: 100%;
    padding: .1rem;
}


.game-image img {
    width: 100%;
    display: block;
    /* max-height: 4.8rem; */
}

.game-stats {
    /* margin: 0 0.1rem; */
    background: #EBEBEB;
    display: flex;
    justify-content: start;
    font-size: .25rem;
    height: .6rem;
    align-items: center;
    color: #696969;
}

.like-percentage {
    margin: 0 .2rem;
}

.votes {
    margin-left: 1.2rem;
}

.play_btn {
    width: 100%;
    display: flex;
    justify-content: center;
}

.play-button {
    display: block;
    width: 97%;
    padding: .18rem .31rem;
    font-size: .38rem;
    margin: 0.1rem .1rem .1rem .1rem;
    background: #FF8076;
    color: #FFFFFF;
    border: none;
    /* border-radius: 0.5rem; */
    cursor: pointer;
    text-align: center;
}

.pcPlay {
    padding: 0;
    margin: 0 auto;
    background-color: #000;
    text-align: center;
    position: relative;
    background: #000;
    height: 12rem;
    width: 100%;
}

.play_game {
    width: 100%;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    background-color: #cccccc;
}

.left_back {
    width: 1.3rem;
    height: .94rem;
    background-color: rgba(255, 255, 255, 0.3);
    position: fixed;
    border-radius: 0 30% 30% 0;
    top: 3rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
}

.left_back_image {
    width: .9rem;
    height: .9rem;
    margin-right: -10%;
    border-radius: 50%;
}

.overflow {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -999;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: rgba(0, 0, 0, .7);
}

.ads-close {
    display: flex;
    justify-content: right;
    padding-right: 3.06122vw;
    color: #dbdbdb;
    font-size: .8rem;
    width: 8%;
    float: right;
}

.dialog {
    z-index: 2000;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 127.55102vw !important;
    overflow: hidden;
    font-size: 4.08163vw;
    background-color: #fff;
    color: #ccc;
    border-radius: 2vw;
    transform: translate3d(-50%, -50%, 0);
    backface-visibility: hidden;
    transition: .3s;
    transition-property: transform, opacity;
}


/* intro */
.css-1eskodg {
    padding-top: 10px;
    /* padding-bottom: 20px; */
    font-size: 18px;
    width: 90%;
}

.css-cjyy71 {
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    position: relative;
    min-width: 0px;
    word-wrap: break-word;
    box-shadow: none;
    border-radius: 12px;
    color: #f6f6f6;
    background: transparent;
}

.css-u3bux5 {
    padding: .3rem 0px;
    -webkit-flex: 1 1 0%;
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    padding-top: 0px;
}

.css-16zsw4c {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    padding-bottom: 4px;
    color: #f1f0f0;
}

.css-16gwkl2 {
    display: flex;
    -webkit-align-items: stretch;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.css-djoy6j {
    cursor: pointer;
    -webkit-text-decoration: none;
    text-decoration: none;
    outline: 2px solid transparent;
    outline-offset: 2px;
    font-size: 12px;
    color: #1677ff;
    margin-right: 4px;
}

.css-16gwkl2 h3 {
    padding-top: 10px;
}

/* Responsive Styles */
@media screen and (min-width: 1260px) {
    .game_title {
        width: 75%;
    }

    .game-icon {
        width: 5rem;
        height: 5rem;
        margin-right: .4rem;
    }

    .detail-title {
        font-size: .6rem;
    }

    .detail-description {
        min-height: 2.8rem;
        font-size: .3rem;
        height: 2.8rem;
    }

    .tag {
        font-size: .4rem;
        color: #828080;
    }



    .game-header-ad {
        width: 75%;
    }

    .game-header {
        width: 50%;
    }

    .play_game {
        display: none;
    }

    /* .game-image {
        width: 70%;
    } */

    .detail-img {
        width: 45%;
        /* max-height: 12rem; */
        display: block;
        overflow: hidden;
    }

    .game-image {
        width: 100%;
    }

    .game-image img {
        width: 100%;
        /* height: 6rem; */
        max-height: 12rem;
    }

    .play-button {
        width: 44.5%;
        padding: .2rem .21rem;
    }

    .game-header-ad {
        display: flex;
        flex-direction: row;
        width: 100%;
    }

    .detail-banner-ad-pc {
        width: 50%;
        margin: .1rem 0;
        font-size: .4rem;
        text-align: center;
    }

    .detail-banner-ad {
        display: none;
    }


    .dialog {
        z-index: 2000;
        position: fixed;
        top: 50%;
        left: 50%;
        width: 40%;
        height: 30vw !important;
        overflow: hidden;
        font-size: 4.08163vw;
        background-color: #fff;
        border-radius: 2vw;
        transform: translate3d(-50%, -50%, 0);
        backface-visibility: hidden;
        transition: .3s;
        transition-property: transform, opacity;
    }

    .ads-close {
        padding-right: 1.5vw;
        font-size: .8rem;
    }
}

.friend_link {
    display: flex;
    flex-wrap: wrap;
    /* 允许换行 */
    gap: 15px;
    /* 设置链接之间的间距 */
    /* justify-content: space-between; */
    margin-bottom: 10px;
}

.friend_link a {
    flex: 0 0 29%;
    text-align: center;
    text-decoration: none;
    color: #FFFFFF;
}

@media screen and (max-width: 1260px) {
    .grid-container {
        display: grid;
        width: 90%;
        grid-template-columns: repeat(3, 1fr);
        /* 定义17列，列宽为相同的fr单位 */
        grid-auto-rows: 1fr;
        /* 行高和列宽保持一致 */
        gap: 10px;
        /* 网格之间的间距 */
        margin-bottom: 20px;
        grid-auto-flow: row dense;
    }

    .grid-item-1:nth-child(1),
    .grid-item-1:nth-child(8),
    .grid-item-1:nth-child(13),
    .grid-item-1:nth-child(20),
    .grid-item-1:nth-child(25),
    .grid-item-1:nth-child(32),
    .grid-item-1:nth-child(37),
    .grid-item-1:nth-child(44),
    .grid-item-1:nth-child(48) {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* 600px */
    .game-list {
        padding: 0 1%;
    }

    .hot_game {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .hot_game_item {
        width: 95%;
        flex-direction: row;
        align-items: center;
    }

    .game-icon {
        margin-left: 0.1rem;
    }

    .game-description {
        margin-right: 0;
    }

    .pcPlay {
        display: none;
    }

    .game-header-ad {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .banner-ad-pc {
        display: none;
    }

    .detail-banner-ad-pc {
        display: none;
    }
}