* {
    margin: 0;
    padding: 0;
    font-family: avenir, Helvetica, Arial, sans-serif
}

:root {
    --primary-color: #3498db;
    /* 主要颜色 */
    --secondary-color: #2ecc71;
    /* 次要颜色 */
    --btn-bg-color: #5567ff;
    /* 按钮背景颜色 */
    --text-color: #333;
    /* 文字颜色 */
}

body {
    line-height: 1;
    background: #FFF;
    font-size: 1em;
    font-family: Arial;
    line-height: 150%;
    margin: 0;
    padding: 0;
    color: #000
}

a {
    text-decoration: none
}

.header_item {
    /* background-color: wheat; */
}
.search_list p{
    font-size: 16px;
}
.privacy {
    font-size: 12px;
    color: #333;
}

.page_footer_agreement1 {
    font-size: 12px;
    color: #333;
}

/* 语言切换容器样式 - 适配你页面的top_layout布局，不跑偏 */
.lang_layout {
    /* position: absolute;
    top: 12px;
    right: 80px; */
    margin: 8px 8px 0 0;
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 8px;
    z-index: 99;
}

/* 核心：语言按钮美化样式 */
.lang_layout .lang-btn {
    border: none;
    outline: none;
    background: #f5f5f5;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 15px;
    border-radius: 20px;
    /* 圆角按钮，主流好看样式 */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    border: 1px solid #999;
}

/* 鼠标悬浮高亮效果 */
.lang_layout .lang-btn:hover {
    background: #e8e8e8;
    color: #000;
}

/* ✅ 选中当前语言的高亮样式（核心！一眼看出选中的语言） */
.lang_layout .lang-btn.active {
    background: #E11515;
    /* 用你页面的主题红色 #E11515，和顶部theme-color一致，风格统一 */
    color: #FFFFFF;
}

/* 点击按钮的按压反馈，交互感拉满 */
.lang_layout .lang-btn:active {
    transform: scale(0.96);
}

/* 移动端适配：小屏幕自动缩小按钮尺寸，不遮挡布局 */
@media (max-width: 750px) {
    .lang_layout {
        right: 60px;
    }

    .lang_layout .lang-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
}

.page-head {
    display: flex;
    align-items: center;
    height: .88rem;
    background-color: var(--primary-color);
}

.page-head1 {
    display: flex;
    align-items: center;
    height: 3.88rem;
    background-color: var(--primary-color);
}

.header .body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 10px
}

.page-head-title {
    flex: 1;
    font-size: .36rem;
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap
}

.page-head-actbtn {
    width: .48rem;
    height: .48rem;
    display: flex;
    margin: 0 .2rem
}

.page-head-actbtn img {
    width: 100%;
    height: 100%
}



.page-head-title1 {
    flex: 1;
    font-size: 1.36rem;
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap
}

.page-head-actbtn1 {
    width: 1.48rem;
    height: 1.48rem;
    display: flex;
    margin: 0 .2rem
}

.page-head-actbtn1 img {
    width: 100%;
    height: 100%
}

.page-home-catepanel {
    padding: 0 .3rem
}

.page-home-catepanel-title {
    display: flex;
    height: .4rem;
    align-items: flex-end;
    justify-content: space-between;
    padding: .2rem 0
}

.page-home-catepanel-title label {
    line-height: .4rem;
    font-size: .28rem;
    font-weight: 500;
    color: #000
}

.page-home-catepanel-title-more {
    font-size: .24rem;
    font-weight: 400;
    color: #999;
    height: .33rem;
    line-height: .33rem
}

.page-home-catepanel-poplist {
    display: flex;
    margin-bottom: .2rem
}

.page-home-catepanel-poplist-item {
    position: relative;
    width: 2.78rem;
    height: 1.42rem;
    background: #8461ff;
    border-radius: .16rem;
    margin-right: .24rem;
    margin-top: .33rem;
    flex-wrap: wrap
}

.page-home-catepanel-poplist-item:nth-child(2n) {
    margin-right: 0
}

.page-home-catepanel-poplist-item-icon {
    position: absolute;
    width: 1.03rem;
    height: 1.03rem;
    object-fit: cover;
    border-radius: .16rem;
    border: .05rem solid #fff;
    left: .2rem;
    top: -.33rem
}

.page-home-catepanel-poplist-item-name {
    position: absolute;
    top: .86rem;
    width: 100%;
    box-sizing: border-box;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 .2rem;
    font-size: .26rem;
    line-height: .36rem;
    font-weight: 500;
    color: #fff
}

.page-home-catepanel-poplist-item-count {
    position: absolute;
    left: 1.41rem;
    top: .2rem;
    font-size: .24rem;
    font-weight: 400;
    color: #ff9c60;
    line-height: .33rem
}

.page-home-catepanel-poplist-item-count label {
    margin-left: .04rem;
    color: #fff
}

.page-home-catepanel-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between
}

.page-home-catepanel-list-item {
    margin-bottom: .24rem;
    display: flex;
    flex-direction: column;
    /* //margin-right: 0.2rem; */
    align-items: center
}

.page-home-catepanel-list-item:nth-child(3n) {
    margin-right: 0
}

.page-home-catepanel-list-item-icon {
    width: 1.8rem;
    height: 1.8rem;
    object-fit: cover;
    border-radius: .16rem
}

.page-home-catepanel-list-item-name {
    width: 1.6rem;
    height: .36rem;
    font-size: .26rem;
    font-weight: 400;
    color: #000;
    line-height: .37rem;
    margin-top: .12rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap
}

.page-home-catepanel-list-item-count {
    font-size: .24rem;
    line-height: .33rem;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #ff9c60
}

.page-home-catepanel-list-item-count label {
    margin-left: .04rem;
    color: #999
}

.page-foot {
    background: #f7f6ff;
    text-align: center
}

.page-foot-site {
    padding-top: .4rem;
    height: .3rem;
    font-size: .22rem;
    font-weight: 400;
    color: #999;
    line-height: .3rem
}

.page-foot-agreement {
    padding-top: .08rem;
    font-size: .22rem;
    font-weight: 400;
    color: #ff9c60;
    line-height: .3rem
}

.page-foot-agreement a {
    color: #ff9c60
}

.page-foot-copyright {
    padding-top: .08rem;
    font-size: .22rem;
    font-weight: 400;
    color: #999;
    line-height: .3rem;
    padding-bottom: .49rem
}

.page-foot1 {
    /* background: #f7f6ff; */
    text-align: center
}

.page-foot-site1 {
    padding-top: .4rem;
    height: 14px;
    font-size: 12px;
    font-weight: 400;
    color: #999;
    line-height: 12px
}

.page-foot-agreement1 {
    padding-top: .08rem;
    font-size: 12px;
    font-weight: 400;
    color: #ff9c60;
    line-height: 12px
}

.page-foot-agreement1 a {
    color: #ff9c60
}

.page-foot-copyright1 {
    padding-top: .08rem;
    font-size: 12px;
    font-weight: 400;
    color: #333;
    line-height: 12px;
    padding-bottom: .49rem
}

.ui-ad-pannel {
    display: flex;
    flex-direction: column
}

.ui-ad-pannel-tip {
    font-size: 10px;
    line-height: 15px;
    color: #666;
    text-align: center
}

.ui-ad-pannel-head {
    background: #f7f6ff;
    height: .5rem;
    text-align: center;
    line-height: .7rem;
    font-size: .18rem;
    color: #999
}

.ui-ad-pannel-foot {
    height: 1.1rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center
}

.ui-ad-pannel-foot-openbtn {
    width: 3.4rem;
    height: .6rem;
    background: #2c3031;
    border-radius: .33rem;
    font-size: .24rem;
    font-weight: 500;
    color: #fff;
    line-height: .6rem;
    text-align: center
}

.ui-ad-pannel img {
    width: 6.4rem;
    height: 4.3rem
}

.page-list-itemcontainer {
    background: #fff;
    padding: 0 .3rem
}

.page-list-itemcontainer-item {
    display: flex;
    align-items: center;
    margin: .2rem 0
}

.page-list-itemcontainer-item-icon {
    width: 1.44rem;
    height: 1.44rem;
    object-fit: cover;
    border-radius: .16rem
}

.page-list-itemcontainer-item-center {
    margin: 0 .2rem;
    flex: 1;
    overflow: hidden
}

.page-list-itemcontainer-item-name {
    font-weight: 400;
    color: #000;
    line-height: .4rem;
    font-size: .28rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap
}

.page-list-itemcontainer-item-count {
    font-size: .24rem;
    line-height: .33rem;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #ff9c60
}

.page-list-itemcontainer-item label {
    margin-left: .04rem;
    color: #999
}

.page-list-itemcontainer-item-playbtn {
    width: 1.22rem;
    height: .5rem;
    line-height: .5rem;
    background: #5567ff;
    border-radius: .24rem;
    text-align: center;
    font-size: .24rem;
    color: #fff;
    font-weight: 500
}

.page-list-loading {
    font-size: .28rem;
    color: #999;
    line-height: .8rem;
    text-align: center;
    padding-bottom: .14rem
}

.page-game-detail {
    padding: .4rem .3rem;
    display: flex
}

.page-game-detail-icon {
    width: 2.2rem;
    height: 2.2rem;
    object-fit: cover;
    border-radius: .32rem
}

.page-game-detail-right {
    flex: 1;
    margin-left: .3rem;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.page-game-detail-right-name {
    font-size: .32rem;
    font-weight: 400;
    color: #000;
    line-height: .45rem;
    height: .45rem;
    word-break: break-all;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap
}

.page-game-detail-right-tags {
    margin-top: .1rem;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    height: .4rem
}

.page-game-detail-right-tags span {
    height: .36rem;
    font-size: .22rem;
    border-radius: .02rem;
    border: .01rem solid #ff552a;
    line-height: .34rem;
    font-weight: 400;
    color: #ff552a;
    padding: 0 .1rem;
    margin-right: .06rem;
    margin-bottom: .02rem
}

.page-game-detail-right-review {
    display: flex;
    margin-top: .12rem
}

.page-game-detail-right-score {
    height: .4rem;
    font-size: .28rem;
    font-weight: 400;
    color: #999;
    line-height: .4rem;
    margin-left: .06rem
}

.page-game-detail-right-count {
    margin-top: .23rem;
    font-size: .24rem;
    line-height: .33rem;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #ff9c60
}

.page-game-detail-right-count label {
    margin-left: .04rem;
    color: #999
}

.ui-page-split {
    background: #f7f6ff;
    height: .2rem
}

.page-game-preview-screens {
    width: 100%;
    overflow-x: scroll;
    display: flex
}

.page-game-preview-screens img {
    padding-right: .3rem
}

.page-game-preview-screens img:first-child {
    padding-left: .3rem
}

.page-game-preview-foot {
    padding-bottom: .4rem;
    padding-top: .3rem;
    display: flex;
    justify-content: center
}

.page-game-preview-foot-playbtn {
    text-align: center;
    width: 4.6rem;
    height: .74rem;
    background: var(--btn-bg-color);
    border-radius: .37rem;
    font-size: .28rem;
    font-weight: 500;
    color: #fff;
    line-height: .74rem
}

.page-game-desc-cont {
    font-size: .24rem;
    font-weight: 400;
    color: #999;
    line-height: .33rem
}

.page-pannel {
    background-color: #fff
}

.page-pannel-title {
    padding: .2rem .3rem;
    height: .4rem;
    line-height: .4rem;
    font-size: .28rem;
    font-weight: 500;
    color: #000
}

.page-pannel-cont {
    padding: 0 .3rem .3rem
}

.page-play {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0
}

.page-play-gameboard {
    position: absolute;
    overflow: hidden;
    top: 0;
    width: 100%;
    bottom: 70px
}

.page-play-gameboard iframe {
    border: none;
    width: 100%;
    height: 100%
}

.page-play-adpanel {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    font-size: 0
}

.ui-sidepanel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, .58);
    z-index: 10000
}

.ui-sidepanel-content {
    width: 3.6rem;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column
}

.ui-sidepanel-content-closepanel {
    display: flex;
    padding: .4rem 0;
    justify-content: center
}

.ui-sidepanel-content-closepanel img {
    width: .72rem;
    height: .72rem
}

.ui-sidepanel-content-catelist {
    padding: 0 .4rem;
    display: flex;
    flex-direction: column
}

.ui-sidepanel-content-catelist-item {
    height: .44rem;
    line-height: .44rem;
    margin-bottom: .3rem;
    font-size: .32rem;
    font-weight: 400;
    color: #000
}

.ui-sidepanel1 {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, .58);
    z-index: 10000
}

.ui-sidepanel-content1 {
    width: 10.6rem;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column
}

.ui-sidepanel-content-closepanel1 {
    display: flex;
    padding: 1.4rem 0;
    justify-content: center
}

.ui-sidepanel-content-closepanel1 img {
    width: 1.72rem;
    height: 1.72rem
}

.ui-sidepanel-content-catelist1 {
    padding: 0 1.4rem;
    display: flex;
    flex-direction: column
}

.ui-sidepanel-content-catelist-item1 {
    height: 1.44rem;
    line-height: 1.44rem;
    margin-bottom: 1.3rem;
    font-size: 1.32rem;
    font-weight: 400;
    color: #000
}

.ui-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: .28rem;
    padding: .08rem .3rem;
    line-height: .44rem;
    border-radius: .1rem;
    max-width: 80%;
    text-align: center
}

#gameframediv {
    position: fixed;
    width: 100%
}

#game_frame {
    width: 100%;
    height: 100%
}

.search {
    display: flex;
    flex-direction: column;
    position: fixed;
    width: 100%;
    height: 8%;
    background-color: #fff;
    top: 0
}

.search .search-input {
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    background-color: #fff;
    height: 36px;
    -webkit-border-radius: 18px;
    -moz-border-radius: 18px;
    border-radius: 18px;
    overflow: hidden;
    padding-right: 5px;
    align-self: flex-end;
    margin-bottom: 8px;
    margin-right: 10px;
    margin-left: 10px
}

.search .search-input input {
    display: flex;
    height: 100%;
    width: 100%;
    font-size: 13px;
    color: #999;
    padding-left: 20px;
    border-width: 0
}

.search .search-btn {
    display: flex;
    justify-content: center;
    align-items: center
}

.search .search-btn>img {
    width: 56px;
    height: 29px
}

.search .search-tip {
    padding-left: 21px
}

.search .search-tip-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a
}

.search .search-tip-item {
    padding: 5px 10px;
    text-decoration: none;
    font-size: 12px;
    background-color: #eaf2ff;
    color: #333;
    -webkit-border-radius: 13px;
    -moz-border-radius: 13px;
    border-radius: 13px;
    line-height: 30px;
    white-space: nowrap
}

#close-search-btn>img {
    width: 11px;
    height: 20px
}

.header {
    display: flex;
    flex-direction: row;
    height: 53px;
    background-color: #071451
}

.header .left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 10px;
    padding-left: 16px
}

.header .body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 10px
}

.header .right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 10px;
    padding-right: 16px
}
.emoji {
    display: flex;
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    font-size: 25px;
    height: 50px;
    /* border: 1px solid #f0f0f0; */
    background: linear-gradient(145deg, #ffffff, #f9f9f9);
}

.game_img_block .emoji {
    font-size: 17px !important;
}

.emoji_view {
    font-size: 40px;
    text-align: center;
}

/* 每个卡片占 23% ≈ 4列 */
.emoji_card {
    width: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.25s ease;
}

.emoji_card a {
    display: block;
    padding: 14px 12px;
    text-decoration: none;
    color: inherit;
    /* height: 100%; */
}

.emoji_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #ddd;
}


.emoji_card:hover .emoji {
    transform: scale(1.15);
}

.emoji_name {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: #222;
    margin-bottom: 4px;
}

.emoji_desc {
    font-size: 12px;
    color: #777;
    text-align: center;
    line-height: 1.3;
}