/* 全部样式整合版 - /Public/css/game.css */
/* 只加这一句！立刻解决！ */
/*.game-item { display: none !important; }*/

html, body {
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}
html.loaded, body.loaded {
    visibility: visible !important;
    opacity: 1 !important;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}
body {
    background: #f5f7fa !important;
    padding-bottom: 60px;
    font-size: 14px;
}
a {
    text-decoration: none !important;
}

.am-header {
    height: 50px !important;
}
.header_logo img {
    height: 45px !important;
    margin-top: 5px !important;
	left: 10px
}


.am-slider {
    margin: 0 !important;
}
.am-slides img {
    height: 160px;
   /* object-fit: cover;*/
    width: 100% !important;
}

.home_notices {
    background: #fff;
    height: 40px;
    margin: 0 5px 5px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.notice-container {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 40px;
}
.notice-content {
    position: absolute;
    left: 0;
    top: 0;
    line-height: 40px;
    animation: scroll 15s linear infinite;
}
.icon-fixed {
    font-size: 20px;
    color: #4a6baf;
    margin-right: 8px;
}
.notice-more {
    margin-left: 10px;
}
@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.user-info-bar {
    background: #fff;
    margin: 5px;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.user-left-wrap {
    display: flex;
    flex-direction: column;
}
.user-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.user-name {
    color: #111;
    font-weight: 600;
}
.vip-tag {
    background: linear-gradient(180deg, #ffb74d, #ff9800);
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    font-weight: bold;
}
.user-balance-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.user-balance {
    font-size: 14px;
    color: #f00;
    font-weight: bold;
}
.refresh-btn {
    background: #f0f2f5;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
}
.go-login {
    color: #007bff;
    font-size: 16px;
}

.func-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}
.func-icons a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}
.func-icons img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 4px;
}

.game-wrapper {
    display: flex;
    margin: 5px;
    gap: 10px;
    background: transparent !important;
}

.sidebar-menu {
    width: 52px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent !important;
    flex-shrink: 0;
}
.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-item.active {
    background: url('/Template/Mobile/images/banner/vg.png') no-repeat center center !important;
    background-size: cover !important;
    color: #fff !important;
}
.sidebar-item img {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    object-fit: contain;
}

.game-container {
    flex: 1;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* 热门两列 */
/*.game-list.hot {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.game-list.hot .game-item {
    width: calc(50% - 4px);
    height: 110px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}*/

.game-list.hot {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.game-list.hot .game-item {
    width: 100%;
    height: 110px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    position: relative;
    overflow: hidden;
}


/* 热门两列 */

/* 其他分类单列 */
.game-list.full {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.game-list.full .game-item {
    width: 100%;
    height: 110px;
    border-radius: 12px;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

/* 加载更多按钮 */
.load-more-btn {
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    display: none;
}

.showzhou, .ggpop {
    display: none;
}

/* 热门游戏最终样式 */
.game-list.hot .game-item[data-type="hot"] {
    background: #fff !important;
    border-radius: 10px !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
}
/* 热 标签缩小 */
.game-list.hot .game-item[data-type="hot"] .hot-tag {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    background: #ff3b30 !important;
    color: #fff !important;
    font-size: 11px !important;
    padding: 2px 2px !important;
    border-radius: 3px !important;
    z-index: 999 !important;
}
/* 游戏名称 → 浅灰色 */
.game-list.hot .game-item[data-type="hot"] .game-name {
    position: relative !important;
    z-index: 999 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #555 !important; /* 浅灰色 */
}
.game-list.hot .game-item[data-type="hot"] .game-desc {
    position: relative !important;
    z-index: 999 !important;
    font-size: 12px !important;
    color: #999 !important;
}

.game-list.hot .game-item[data-type="hot"] .game-time {
     position: relative !important;
    z-index: 999 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #555 !important; /* 浅灰色 */
}

/* 图标正常不溢出 */
.game-list.hot .game-item[data-type="hot"] .game-icon {
    width: 100% !important;
    height: 100% !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: right bottom !important;
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
}
.enter-btn {
  display: none !important;
}
