* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --adm-radius-s: 4px;
    --adm-radius-m: 8px;
    --adm-radius-l: 12px;
    --adm-font-size-1: 9px;
    --adm-font-size-2: 10px;
    --adm-font-size-3: 11px;
    --adm-font-size-4: 12px;
    --adm-font-size-5: 13px;
    --adm-font-size-6: 14px;
    --adm-font-size-7: 15px;
    --adm-font-size-8: 16px;
    --adm-font-size-9: 17px;
    --adm-font-size-10: 18px;
    --adm-color-primary: #1677ff;
    --adm-color-success: #00b578;
    --adm-color-warning: #ff8f1f;
    --adm-color-danger: #ff3141;
    --adm-color-yellow: #ff9f18;
    --adm-color-orange: #ff6430;
    --adm-color-wathet: #e7f1ff;
    --adm-color-text: #333;
    --adm-color-text-secondary: #666;
    --adm-color-weak: #999;
    --adm-color-light: #ccc;
    --adm-color-border: #eee;
    --adm-color-background: #fff;
    --adm-color-highlight: var(--adm-color-danger);
    --adm-color-white: #fff;
    --adm-color-box: #f5f5f5;
    --adm-color-text-light-solid: var(--adm-color-white);
    --adm-color-text-dark-solid: #000;
    --adm-color-fill-content: var(--adm-color-box);
    --adm-font-size-main: var(--adm-font-size-5);
    --adm-font-family: -apple-system, blinkmacsystemfont, "Helvetica Neue", helvetica, segoe ui, arial, roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
    --adm-border-color: var(--adm-color-border);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-primary: #333333;
    --text-secondary: #666666;
    --background-color: #ffffff;
    --border-color: #e1e8ed;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

a:hover {
    color: #1677ff
}

@font-face {
    font-family: 'Recky';
    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: 38px;
    /* 37.5px for rem calculations */
}

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

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #c6c434 0%, #764ba2 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}



.app {
    background: linear-gradient(to bottom, #bcf897, #09c17a) fixed;
    min-width: 314px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/*内容样式*/
.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(10, 1fr);
    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:hover{
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

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

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

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





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


.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;

}

.banner-ad {
    width: 100%;
    min-height: 50px;
    text-align: center;
    color: #b9b9b9;
    font-size: 0.2rem;
    box-sizing: border-box;
}

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

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

.game_title {
    width: 100%;
    height: .45rem;
    font-size: .26rem;
    font-family: Recky, serif;
    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;
}







.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 0 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;
    text-align: center;
    position: relative;
    background: #000;
    height: 12rem;
    width: 100%;
}

.play_game {
    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: 1;
    background-color: rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(5px);
}

.ads-close {
    position: absolute;
    left: 5%;
    top: 15px;
    z-index: 1001;
    width: .2rem;
    background: transparent;
    border: none;
    opacity: 0.4;
    cursor: not-allowed;
}

.dialog {
    z-index: 1000;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 127.55102vw !important;
    overflow: hidden;
    font-size: .3rem;
    background-color: transparent;
    color: rgba(0, 0, 0, 0.36);
    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: 0;
    word-wrap: break-word;
    box-shadow: none;
    border-radius: 12px;
    color: #f6f6f6;
    background: transparent;
}

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

.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 {
        font-size: .5rem;
    }

    .ads-close {
        width: .4rem;
    }
}

.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;
}

@media screen and (max-width: 760px) {
    .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;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(8, 1fr);
        width: 96%;
    }

    .footer {
        font-size: 0.14rem;
    }

    .css-1eskodg {
        width: 96%;
    }

    .grid-item-1:nth-child(1),
    .grid-item-1:nth-child(6),
    .grid-item-1:nth-child(26),
    .grid-item-1:nth-child(32) {
        grid-column: span 2;
        grid-row: span 2;
    }


}

@media screen and (min-width: 1024px) {
    .pc-none {
        display: none;
    }
}

/* roock css */
.sticky-ad-wrapper {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -100;
    text-align: center;
    background: #ffffff;
    width: 100%;
    display: flex;
    justify-content: center;
}

.toggle-btn,
.close-btn {
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 20px;
}

.sticky-ad {
    width: 320px;
    height: 52px;
    display: block;
    position: relative;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    overflow: hidden;
}

.collapsed {
    max-height: 0;
    opacity: 0;
}

.toggle-btn {
    position: absolute;
    bottom: 50px;
    left: 0;
    background: #ffffff;
    border-radius: 10px 10px 0 0;
    width: 56px;
    height: 20px;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 6px;
    background: #ffffff;
    color: #00aecd;
    width: 40px;
    height: 20px;
    /* text-align: center; */
    line-height: 18px;
    font-size: 12px;
    display: flex;
    padding-left: 2px;
}

.close-btn svg {
    position: absolute;
    top: 2px;
    right: 0;
    height: 15px;
    width: 15px;
    stroke: #00aecd;
    fill: #00aecd;
    stroke-width: 1.25;
}

.header-wrap {
    display: flex;
    top: 0;
    padding: 15px 0;
    border-bottom: 2px dashed #fff;
    overflow: hidden;
}

.logo-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-weight: 700;
    font-size: 28px;
    line-height: 1.33;
    color: #fff;
}


/* hidden unfilled ad */
ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}



/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, var(--text-primary) 0%, #2c3e50 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f093fb;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.8;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #f093fb;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-links a:hover {
    background: #f093fb;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
    font-size: 12px;
    line-height: 1.6;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        flex-direction: column;
        margin-top: 3.6%;
        padding: 20px;
        box-shadow: var(--shadow-medium);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .navbar {
        position: relative;
    }
}

@media (max-width: 480px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .article-content {
        padding: 15px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 10px;
    }
}