/* Main Styles */

/* Layout */
.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #0a0a0a;
    border-bottom: 1px solid #222;
}

.logo img {
    height: 30px;
}

/* 语言选择器样式 */
.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
    position: relative;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.language-selector:hover {
    background-color: #222;
}

/* 语言下拉菜单 */
/* 语言下拉菜单 */
.language-dropdown {
    position: absolute;
    top: 45px;
    right: 10px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    width: 180px;
    /* 稍微加宽 */
    z-index: 1000;
    display: none;
    max-height: 300px;
    /* 限制高度 */
    overflow-y: auto;
    /* 添加垂直滚动 */
}

.language-dropdown.active {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    /* 增加内边距 */
    gap: 15px;
    /* 增加图标和文字间距 */
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #ccc;
}

.language-option:hover {
    background-color: #333;
    color: #fff;
}

.language-option img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.language-option span {
    font-size: 14px;
    flex: 1;
    /* 让文字占据剩余空间 */
}

.language-selector .flag img,
.language-selector .globe-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.language-text {
    margin: 0 5px;
}

.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* 修改左侧导航栏宽度 */
.sidebar {
    width: 130px;
    background-color: #0a0a0a;
    overflow-y: auto;
    border-right: 1px solid #222;
}

.menu {
    display: flex;
    flex-direction: column;
}

/* 调整菜单项间距 */
.menu-item {
    position: relative;
    height: 100px;
    /* 从70px改为80px增加间距 */
    margin-bottom: 10px;
}

/* 添加左侧导航图标的持续放大缩小动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* 为激活状态的菜单项添加动画 */
.menu-item.active .icon,
.menu-item.active .text {
    animation: pulse 2s infinite ease-in-out;
    color: #3fd142;
}

/* 调整菜单图标尺寸和位置 */
.menu-item .icon {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    margin-top: 30px;
}

.menu-item a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    height: 100%;
    gap: 5px;
    color: #999;
    font-size: 12px;
    transition: all 0.2s ease;
}

.menu-item.active a,
.menu-item a:hover {
    color: #fff;
}

/* 激活状态样式 */
.menu-item.active a {
    color: #3fd142;
    background-color: rgba(63, 209, 66, 0.1);
    /* border-radius: 200px; */
}

/* 绿色边框也需要添加动画 */
.menu-item.active a::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 45px;
    background-color: transparent;
    border: 2px solid #3fd142;
    border-radius: 25px;
    z-index: 1;
    box-shadow: 0 0 8px #3fd142;
    animation: pulse 2s infinite ease-in-out;
    margin-bottom: 10px;
}

.menu-item a .text {
    font-size: 15px;
    margin-bottom: -20px;
    font-weight: bold;
    /* 字体加粗 */

}

.menu-item .icon {
    width: 45px;
    height: 45px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.menu-item:hover .icon {
    transform: scale(1.2);
}

.menu-item.active .icon {
    filter: brightness(0) saturate(100%) invert(73%) sepia(78%) saturate(461%) hue-rotate(86deg) brightness(95%) contrast(88%);
}

.originals-icon {
    background-image: url('../images/NavigationPage/originals.png');
}

.slots-icon {
    background-image: url('../images/NavigationPage/slots.png');
}

.mini-game-icon {
    background-image: url('../images/NavigationPage/mini-game.png');
}

.fishing-icon {
    background-image: url('../images/NavigationPage/fishing.png');
}

.live-casino-icon {
    background-image: url('../images/NavigationPage/live-casino.png');
}

.sports-icon {
    background-image: url('../images/NavigationPage/sports.png');
}

.bingo-icon {
    background-image: url('../images/NavigationPage/bingo.png');
}

.black-jack-icon {
    background-image: url('../images/NavigationPage/black-jack.png');
}

.roulette-icon {
    background-image: url('../images/NavigationPage/roulette.png');
}

.baccarat-icon {
    background-image: url('../images/NavigationPage/baccarat.png');
}

/* Content Area */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Banner Styles */
.banner-container {
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
}

.banner-wrapper {
    display: flex;
    gap: 15px;
    width: 100%;
}

.banner-item:hover {
    transform: scale(1.02);
}

.banner-item {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.banner-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}



.banner-slide.active {
    display: block;
}

.banner-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}





.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #fff;
}

/* Tabs Navigation */
.tabs-container {
    margin-bottom: 0px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    padding-top: 10px;
}

/* 中间分类标签调整*/
.tab {
    flex: 0 0 160px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-items: center;
    gap: -10px;
    padding: 0px 0px;
    background-color: #1a1a1a;
    border-radius: 15px;
    white-space: nowrap;
    color: #999;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    height: 100px;
    width: 100px;
}



/* 中间分类标签激活状态 */
.tab.active {
    background-color: rgba(63, 209, 66, 0.1);
    color: #3fd142;
    border: 2px solid #3fd142;
}

.tab:hover {
    color: #fff;
}

.tab .icon {
    width: 40px;
    height: 40px;
    display: block;
    /* 改为块级元素 */
    margin-bottom: -8px;
    /* 添加底部间距 */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.tab.active img.category-icon {
    filter: brightness(0) saturate(100%) invert(73%) sepia(78%) saturate(461%) hue-rotate(86deg) brightness(95%) contrast(88%);
}

.tab-text {
    font-size: 17px;
    /* 调整文字大小 */
    text-align: center;
    /* 文字居中 */
    font-weight: bold;
    /* 字体加粗 */
}

/* Search and Filter */

.search-provider-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-filter {
    flex: 0 0 auto;
    margin-bottom: 0;
}

/* 搜索框美化 */
.search-box {
    position: relative;
    max-width: 250px;
    margin-right: 15px;
}

.search-box input {
    width: 100%;
    padding: 8px 15px 8px 35px;
    background-color: #18181d;
    border-radius: 30px;
    color: #ccc;
    font-size: 14px;
    border: 1px solid #333;
}

.search-box input:focus {
    border-color: #444;
    color: #fff;
}

.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('../images/NavigationPage/searchkuang.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}



.search-clear:hover {
    opacity: 1;
}


/* 椭圆形按钮 */
.filter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    border-radius: 25px;
    cursor: pointer;
    border: 1px solid #333;
    margin-left: 280px;
    margin-top: -35px;
}

.filter-icon {
    width: 40px;
    height: 40px;
    background-image: url('../images/NavigationPage/search.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
    margin-left: 0px;
}

/* 游戏提供商筛选器样式 */
.provider-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    padding: 0;
    overflow-x: auto;
}

.provider-item {
    padding: 6px 15px;
    height: 40px;
    display: flex;
    align-items: center;
    background-color: #18181d;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #222;
}

.provider-item img {
    height: 28px;
    max-width: 80px;
}

.provider-item.active {
    background-color: #222;
    color: #3fd142;
    border: 3px solid #3fd142;
}

/* Game Sections */
.game-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: bold;
    margin-right: 10px;
}

.game-count {
    font-size: 14px;
    color: #3fd142;
}

/* 调整游戏网格布局 */
.game-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: start;
}

.game-card {
    width: 200px;
    margin-bottom: -10px;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-thumb {
    position: relative;
    width: 100%;
    height: 150px;
    /* 固定高度为150px */
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.game-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 悬停效果 */
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .hover-overlay {
    opacity: 1;
}

/* 修改播放按钮样式 */
.play-button {
    width: 40px;
    height: 40px;
    background-color: #3fd142;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    opacity: 0;
}

.game-card:hover .play-button {
    transform: translateY(0);
    opacity: 1;
}

/* 修改播放图标 */
.play-icon {
    width: 60px;
    height: 60px;
    background-image: url('../images/NavigationPage/start.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.game-info {
    padding: 15px;
}

.game-info h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.game-info p {
    font-size: 14px;
    color: #777;
}


/* 游戏模态框样式 */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-iframe {
    width: 90%;
    height: 90%;
    border: none;
    background-color: #000;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background-color: #ff0000;
    transform: scale(1.1);
}

/* 中间分类图标图片样式 */
.tab img.category-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
    position: relative;
    z-index: 5;
}

/* 左侧菜单图标图片样式 */
.menu-item img.sidebar-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    margin-bottom: 0px;

}

.menu-item:hover img.sidebar-icon {
    transform: scale(1.2);
}

.menu-item.active img.sidebar-icon {
    filter: brightness(0) saturate(100%) invert(73%) sepia(78%) saturate(461%) hue-rotate(86deg) brightness(95%) contrast(88%);
    animation: pulse 2s infinite ease-in-out;
}

.tab-icon-container {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

/* 响应式样式调整 */
@media (max-width: 767px) {
    .tab img.category-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 0;
    }

    .menu-item img.sidebar-icon {
        width: 18px;
        height: 18px;
    }
}

/* 当没有游戏时的提示 */
.no-games-message {
    text-align: center;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 20px 0;
    color: #999;
    font-weight: bold;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top img {
    width: 30px;
    height: 30px;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .back-to-top img {
        width: 20px;
        height: 20px;
    }
}

/* 即将推出徽章的悬停效果 */
.game-card:hover .coming-soon-badge {
    opacity: 1;
    transform: translateY(0);
}

/* 即将推出徽章 */
.coming-soon-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff9800;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}


/* 即将推出模态框 */
.coming-soon-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.coming-soon-content {
    background-color: #1a1a1a;
    border: 2px solid #3fd142;
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
}

.coming-soon-content h3 {
    color: #3fd142;
    font-size: 24px;
    margin-bottom: 15px;
}

.coming-soon-content p {
    color: #fff;
    margin-bottom: 20px;
}

.coming-soon-content .close-btn {
    background-color: #3fd142;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.coming-soon-content .close-btn:hover {
    background-color: #34b638;
}


/* 游戏加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.loading-container {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(63, 209, 66, 0.3);
    border-radius: 50%;
    border-top-color: #3fd142;
    margin: 0 auto 20px;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}