﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

/*body {
  margin-bottom: 60px;
}*/

/* 基本樣式設定 */
:root {
    --primary-color: #ffcc00;
    --primary-dark: #e6b800;
    --bg-dark: #1a1a1a;
    --bg-darker: #000;
    --text-light: #fff;
    --text-muted: #ccc;
    --text-dark: #000;
}
/* site.css */

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: "Microsoft JhengHei", Arial, sans-serif;
    line-height: 1.6;
}

/* Mega Menu 样式 */
/* Mega Menu 样式 */
.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px 0;
    margin-top: 0;
    border-radius: 0 0 0.5rem 0.5rem;
    border-top: 3px solid var(--primary-color);
    z-index: 1030;
    /* 立體漸變背景色 */
    background: linear-gradient(to bottom, #222222, #111111);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}
    .mega-menu .container-fluid {
        max-width: 1200px;
    }

.mega-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.7), rgba(25, 25, 25, 0.9));
    border-radius: 0 0 0.5rem 0.5rem;
    position: relative;
    overflow: hidden;
}

    /* 添加細微紋理增強立體感 */
    .mega-menu-inner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: linear-gradient(45deg, rgba(255, 204, 0, 0.03) 25%, transparent 25%), linear-gradient(-45deg, rgba(255, 204, 0, 0.03) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255, 204, 0, 0.03) 75%), linear-gradient(-45deg, transparent 75%, rgba(255, 204, 0, 0.03) 75%);
        background-size: 20px 20px;
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
        pointer-events: none;
    }

.mega-menu .dropdown-item {
    padding: 0.5rem 1rem;
    color: var(--text-light); /* 改為亮色文字 */
    transition: all 0.3s ease;
    background: transparent;
    border-radius: 4px;
}

    .mega-menu .dropdown-item:hover {
        color: var(--primary-color);
        background-color: rgba(255, 204, 0, 0.1);
        padding-left: 1.5rem;
    }

/* 統一 mega-menu 內的文字樣式 */
.mega-menu p,
.mega-menu .dropdown-item {
    color: var(--text-light); /* 亮色文字 */
}

.mega-menu h4 {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    display: inline-block;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

    .mega-menu h4::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), transparent);
    }

/* 分隔線樣式 */
.mega-menu .col-md-3,
.mega-menu .col-md-4 {
    position: relative;
}

    .mega-menu .col-md-3:not(:last-child)::after,
    .mega-menu .col-md-4:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 15%;
        right: 0;
        height: 70%;
        width: 1px;
        background: linear-gradient(to bottom, transparent, rgba(255, 204, 0, 0.2), transparent);
    }

/* 导航样式 */
.navbar .nav-item {
    margin: 0 5px;
    position: static; /* 重要：使下拉菜单可以相对于导航栏定位 */
}

.navbar .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
}

.navbar .dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* 悬浮显示下拉菜单 */
.navbar .dropdown:hover > .dropdown-menu {
    display: block;
}

/* 下拉菜单动画 */
.dropdown-menu {
    display: none;
    animation: fadeIn 0.3s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 籌碼兌換 - 響應式調整 */
@media (max-width: 768px) {
    .chip-selector-container {
        flex-wrap: wrap;
    }

    .chip-select-btn {
        min-width: 80px;
        padding: 10px 20px;
        font-size: 14px;
    }

    .exchange-direction-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .exchange-panel {
        padding: 20px;
        margin-bottom: 15px;
    }
}
/* End 籌碼兌換 - 響應式調整 */

/* 金色按钮样式 */
.btn-gold {
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .btn-gold:hover {
        background-color: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

/* 媒体查询 - 响应式设计 */
@media (max-width: 992px) {
    .navbar .dropdown {
        position: relative; /* 移动设备上恢复为默认定位 */
    }

    .mega-menu {
        position: static;
        width: 100%;
        margin-left: 0;
        margin-top: 0;
    }

    .mega-menu-inner {
        width: 100%;
        padding: 0;
    }

    .navbar .dropdown:hover > .dropdown-menu {
        display: none; /* 在移动设备上禁用悬浮显示 */
    }

    .navbar .dropdown.show > .dropdown-menu {
        display: block; /* 在移动设备上点击显示 */
    }

    .mega-menu .row {
        margin: 0;
    }

    .mega-menu .col-md-3,
    .mega-menu .col-md-4 {
        padding: 15px;
    }
}

/* 下拉菜单动画 */
.dropdown-menu {
    display: none;
    animation: fadeIn 0.3s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 金色按钮样式 */
.btn-gold {
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .btn-gold:hover {
        background-color: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

/* 黑色主题导航（可选） */
.navbar-dark.bg-dark .mega-menu {
    background: linear-gradient(to bottom, #222222, #111111);
    border-color: var(--primary-color);
}

    .navbar-dark.bg-dark .mega-menu .dropdown-item {
        color: #ccc;
    }

    .navbar-dark.bg-dark .mega-menu .dropdown-item:hover {
        background-color: rgba(255, 204, 0, 0.1);
        color: var(--primary-color);
    }

    .navbar-dark.bg-dark .mega-menu h4 {
        color: var(--primary-color);
    }

/* 媒体查询 - 响应式设计 */
@media (max-width: 992px) {
    .mega-menu {
        background: linear-gradient(to bottom, #222222, #111111);
        width: 100% !important;
        margin-left: 0 !important;
        left: 0 !important;
        position: relative !important;
    }

    .mega-menu-inner {
        padding: 15px;
    }

    .navbar .dropdown:hover > .dropdown-menu {
        display: none; /* 在移动设备上禁用悬浮显示 */
    }

    .navbar .dropdown.show > .dropdown-menu {
        display: block; /* 在移动设备上点击显示 */
    }

    .mega-menu .row {
        margin: 0;
    }

    .mega-menu .col-md-3:not(:last-child)::after,
    .mega-menu .col-md-4:not(:last-child)::after {
        display: none;
    }

    .mega-menu .col-lg-3,
    .mega-menu .col-lg-4 {
        padding: 15px;
    }
}

/* 導航欄樣式覆蓋 */
/*.navbar {
    background-color: var(--bg-darker) !important;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color) !important;
}

.navbar .nav-link {
    color: var(--text-light) !important;
    margin-left: 15px;
    transition: color 0.3s;
}

    .navbar .nav-link:hover {
        color: var(--primary-color) !important;
    }

.navbar-toggler {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}*/

/* 按鈕樣式 */
.btn-register {
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: none;
    margin-left: 10px;
    border-radius: 5px;
    font-weight: bold;
    padding: 8px 20px;
    transition: all 0.3s;
}

.btn-login {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-left: 10px;
    border-radius: 5px;
    font-weight: bold;
    padding: 8px 20px;
    transition: all 0.3s;
}

    .btn-register:hover, .btn-login:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }

/* 輪播區域樣式 */
.carousel {
    /*margin-bottom: 30px;*/
    position: relative;
    overflow: hidden;
}

/* 啟用滑鼠拖動效果相關樣式 */
.video-carousel {
    cursor: grab; /* 顯示抓取游標 */
    user-select: none; /* 防止拖動時選中文字 */
}

    .video-carousel.dragging {
        cursor: grabbing; /* 拖動時顯示抓取中游標 */
    }

/* 視頻容器設定 */
.video-container {
    position: relative;
    height: 1200px; /* 可根據需求調整高度 */
    overflow: hidden;
    transition: transform 0.3s ease; /* 平滑過渡效果 */
}

/* 視頻樣式設定 */
.carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 確保視頻填滿容器 */
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-item {
    height: 750px;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    bottom: 100px;
    max-width: 700px;
    margin: 0 auto;
    /* 添加微弱發光效果增強可讀性 */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

    .carousel-caption h2 {
        color: var(--primary-color);
        font-size: 42px;
        margin-bottom: 15px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    .carousel-caption p {
        font-size: 18px;
        margin-bottom: 20px;
        color: #fff; /* 確保文字清晰可見 */
    }

/* 輪播按鈕樣式 */
.carousel-btn {
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

    .carousel-btn:hover {
        background-color: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        color: var(--text-dark); /* 確保懸停時顏色不變 */
    }

/* 輪播控制按鈕增加可見性 */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0.2;
    transition: opacity 0.3s;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: 0.8;
        transform: scale(1.1); /* 懸停時略微放大 */
    }

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    background-size: 50%;
}

/* 重新定位指示器容器 */
.carousel-indicators {
    margin-bottom: 20px;
    z-index: 20;
    bottom: 20px; /* 確保距離底部有適當間距 */
}

    /* 基本指示器按鈕樣式 - 統一為灰色圓形 */
    .carousel-indicators button {
        width: 12px;
        height: 12px;
        margin: 0 6px; /* 增加間距，讓指示器更清晰 */
        background-color: rgba(150, 150, 150, 0.8); /* 統一灰色 */
        border: none;
        border-radius: 50%; /* 確保完全圓形 */
        cursor: pointer;
        transition: all 0.3s ease;
        opacity: 1; /* 始終保持可見 */
        /* 移除默認的半透明效果 */
        box-shadow: none;
        /* 避免視覺干擾 */
        padding: 0;
    }

        /* 活動狀態 - 切換為亮色 */
        .carousel-indicators button.active {
            background-color: var(--primary-color); /* 使用網站主色調（金色） */
            transform: scale(1.1); /* 輕微放大效果 */
        }

        /* 懸停效果 - 輕微亮起但不如當前活動項明顯 */
        .carousel-indicators button:hover:not(.active) {
            background-color: rgba(200, 200, 200, 0.9);
            transform: scale(1.05);
        }

    /* 確保指示器在所有背景上都清晰可見 */
    .carousel-indicators::before {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px; /* 寬度足夠覆蓋所有指示器 */
        height: 30px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
        border-radius: 50%;
        filter: blur(5px);
        z-index: -1;
        pointer-events: none; /* 確保不影響點擊 */
    }

/* 視頻加載時的過渡效果 */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* 響應式調整 */
@media (max-width: 992px) {
    .video-container {
        height: 500px;
    }

    .carousel-caption {
        bottom: 70px;
        max-width: 80%;
        padding: 20px;
    }

        .carousel-caption h2 {
            font-size: 32px;
        }
}

@media (max-width: 768px) {
    .carousel-indicators {
        bottom: 10px; /* 在小屏幕上距離底部更近 */
    }

        .carousel-indicators button {
            width: 10px;
            height: 10px;
            margin: 0 5px;
        }

    .video-container {
        height: 400px;
    }

    .carousel-caption {
        bottom: 40px;
        padding: 15px;
    }

        .carousel-caption h2 {
            font-size: 24px;
            margin-bottom: 10px;
        }

        .carousel-caption p {
            font-size: 14px;
            margin-bottom: 15px;
        }

    .carousel-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .video-container {
        height: 300px;
    }
}

/* 視頻模糊覆蓋層，提高文字可讀性 */
.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* 微弱的黑色覆蓋層提高對比度 */
    pointer-events: none;
}

/* 拖拽提示指示器 */
.carousel-drag-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 5;
}

.video-carousel:hover .carousel-drag-hint {
    opacity: 0.7;
}

/* 影片容器樣式 */
.promo-video-container {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

    .promo-video-container h6 {
        color: #333;
        font-weight: 600;
    }

/* 選項卡樣式 */
#videoTabs .nav-link {
    color: #666;
    border-color: #dee2e6;
}

    #videoTabs .nav-link.active {
        color: #ffc107;
        background-color: #fff;
        border-color: #dee2e6 #dee2e6 #fff;
    }

    #videoTabs .nav-link:hover {
        color: #ffc107;
    }

/* End 優惠活動區塊*/

/* 遊戲區域樣式 */
.games {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

.game-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    margin: 5px 10px;
    background-color: #333;
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .category-btn.active, .category-btn:hover {
        background-color: var(--primary-color);
        color: var(--text-dark);
    }

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.game-card {
    background-color: #222;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

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

.game-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #333;
}

.game-info {
    padding: 15px;
}

    .game-info h3 {
        font-size: 18px;
        margin-bottom: 10px;
        color: var(--primary-color);
    }

    .game-info p {
        font-size: 14px;
        color: var(--text-muted);
        margin-bottom: 15px;
    }

.play-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    background-color: var(--primary-color);
    color: var(--text-dark);
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

    .play-btn:hover {
        background-color: var(--primary-dark);
    }

/* 關於我們區域樣式 */
.about {
    padding: 60px 0;
    background-color: var(--bg-darker);
    text-align: center;
}

    .about p {
        max-width: 800px;
        margin: 0 auto 30px;
        color: var(--text-muted);
        font-size: 18px;
        line-height: 1.8;
    }

.text-gold {
    color: #daa520 !important;
}

/* 圖片底下文字區塊樣式 */
.mega-menu .bg-light {
    background-color: #f8f9fa !important;
}

    .mega-menu .bg-light p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

/* End 關於我們區域樣式 */

/* 頁腳樣式 */
.footer {
    background-color: #0a0a0a;
    padding: 40px 0 20px;
    color: #777;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    width: 30%;
    margin-bottom: 30px;
}

    .footer-section h3 {
        font-size: 18px;
        color: var(--primary-color);
        margin-bottom: 20px;
        position: relative;
    }

        .footer-section h3::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 50px;
            height: 2px;
            background-color: var(--primary-color);
        }

    .footer-section p, .footer-section a {
        color: #777;
        font-size: 14px;
        margin-bottom: 10px;
        display: block;
        text-decoration: none;
    }

        .footer-section a:hover {
            color: var(--primary-color);
        }

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

    .social-links a {
        display: inline-block;
        width: 36px;
        height: 36px;
        background-color: #333;
        margin-right: 10px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s;
    }

        .social-links a:hover {
            background-color: var(--primary-color);
        }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    margin-top: 20px;
    font-size: 14px;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .footer-section {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 350px;
    }

    .carousel-caption h2 {
        font-size: 28px;
    }

    .carousel-caption p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .footer-section {
        width: 100%;
    }
}

/* 輪播拖拉指示器 */
.carousel-swipe-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* 拖動時的視覺效果 */
.carousel.dragging .carousel-inner {
    cursor: grabbing;
}

.carousel .carousel-inner {
    cursor: grab;
}

/* 下拉菜單動畫 */
@keyframes dropdownAnimation {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 以下是恢復並修正的導航欄樣式 */
.navbar {
    background-color: var(--bg-darker) !important;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color) !important;
}

.navbar .nav-link {
    color: var(--text-light) !important;
    margin-left: 15px;
    transition: color 0.3s;
}

    .navbar .nav-link:hover {
        color: var(--primary-color) !important;
    }

.navbar-toggler {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

/* 確保下拉菜單在黑色主題下有正確的文字顏色 */
.navbar-dark .dropdown-menu {
    background-color: var(--bg-dark);
}

    .navbar-dark .dropdown-menu .dropdown-item {
        color: var(--text-light);
    }

        .navbar-dark .dropdown-menu .dropdown-item:hover {
            background-color: rgba(255, 204, 0, 0.1);
            color: var(--primary-color);
        }

/* 確保logo在黑暗主題下依然可見 */
.navbar-dark .navbar-brand {
    color: var(--primary-color) !important;
}

/* 避免在各種導覽元素中顯示多餘的清單樣式 */
.navbar-nav,
.dropdown-menu,
.mega-menu ul,
.footer-section ul {
    list-style-type: none;
    padding-left: 0;
}

/* 禁用mega-menu內的清單項前的圓點 */
.mega-menu li {
    list-style: none;
}

/* 導航項懸停效果 */
.navbar-nav .nav-item:hover .nav-link {
    color: var(--primary-color) !important;
}

/* wwwroot/css/site.css 加入語言切換器樣式 */
.language-switcher {
    margin-left: 10px;
    padding-bottom: 6px;
}

    .language-switcher .dropdown-toggle {
        border: 1px solid rgba(255, 255, 255, 0.3);
        background-color: transparent;
        color: #fff;
        padding: 5px 10px;
        font-size: 14px;
    }

        .language-switcher .dropdown-toggle:hover,
        .language-switcher .dropdown-toggle:focus {
            background-color: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.5);
        }

    .language-switcher .dropdown-menu {
        min-width: 150px;
    }

    .language-switcher .dropdown-item {
        padding: 8px 16px;
        font-size: 14px;
    }

        .language-switcher .dropdown-item.active {
            background-color: #007bff;
            color: white;
        }

        .language-switcher .dropdown-item:hover {
            background-color: #f8f9fa;
        }

        .language-switcher .dropdown-item.active:hover {
            background-color: #0056b3;
        }


/* 優惠活動卡片樣式 - 類似電子遊戲供應商卡片 */
.game-provider-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .game-provider-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

.provider-image {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 比例 */
    overflow: hidden;
    background: #f5f5f5;
}

    .provider-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.provider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.game-provider-card:hover .provider-image img {
    transform: scale(1.1);
}

.play-text {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 25px;
    border: 2px solid #fff;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.game-provider-card:hover .play-text {
    background: #f39c12;
    border-color: #f39c12;
    transform: scale(1.05);
}

.provider-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.provider-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.provider-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    height: 100px
}

/* 響應式調整 */
@media (max-width: 768px) {
    .game-provider-card {
        margin-bottom: 15px;
    }

    .provider-name {
        font-size: 16px;
    }

    .provider-desc {
        font-size: 13px;
    }
}

/* End 優惠活動卡片樣式 - 類似電子遊戲供應商卡片 */

/* 優惠活動 Mega Menu 特殊樣式 */

/* 優惠活動 Mega Menu 特殊樣式 */
.provider-image {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 比例 */
    overflow: hidden;
    background: #1a1d20;
}

    .provider-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.provider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.game-provider-card:hover .provider-image img {
    transform: scale(1.1);
}

.play-text {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 25px;
    border: 2px solid #fff;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.game-provider-card:hover .play-text {
    background: #f39c12;
    border-color: #f39c12;
    transform: scale(1.05);
}

/* 暗色系 provider-info */
.promotion-mega-menu .provider-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
}

.promotion-mega-menu .provider-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.promotion-mega-menu .provider-desc {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Modal 樣式優化 */
/* Modal 暗色系樣式 */
.modal-content {
    background-color: #1a1d20;
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 12px;
    color: var(--text-light);
}

.modal-header {
    background-color: #2d3236;
    border-bottom: 2px solid rgba(255, 204, 0, 0.3);
    border-radius: 12px 12px 0 0;
}

.modal-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

    .modal-header .btn-close:hover {
        opacity: 1;
    }

.modal-body {
    padding: 2rem;
    background-color: #1a1d20;
    color: var(--text-light);
}

    .modal-body h6 {
        color: var(--primary-color);
        font-weight: 600;
        margin-top: 1.5rem;
    }

    .modal-body ol,
    .modal-body ul {
        color: #ccc;
    }

    .modal-body li {
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
        color: #ccc;
    }

    .modal-body p {
        color: #ccc;
    }

    .modal-body strong {
        color: var(--primary-color);
    }

    .modal-body hr {
        border-color: rgba(255, 204, 0, 0.2);
        margin: 1.5rem 0;
    }

.modal-footer {
    background-color: #2d3236;
    border-top: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 0 0 12px 12px;
    padding: 1rem 1.5rem;
}

    /* Modal 按鈕樣式 */
    .modal-footer .btn-primary {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: var(--text-dark);
        font-weight: bold;
    }

        .modal-footer .btn-primary:hover {
            background-color: var(--primary-dark);
            border-color: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

    .modal-footer .btn-secondary {
        background-color: #4a4a4a;
        border-color: #4a4a4a;
        color: var(--text-light);
    }

        .modal-footer .btn-secondary:hover {
            background-color: #5a5a5a;
            border-color: #5a5a5a;
        }

/* VIP 表格暗色系樣式 */
.modal-body .table {
    color: var(--text-light);
    background-color: transparent;
}

.modal-body .table-bordered {
    border: 1px solid rgba(255, 204, 0, 0.2);
}

    .modal-body .table-bordered th,
    .modal-body .table-bordered td {
        border: 1px solid rgba(255, 204, 0, 0.2);
        padding: 0.75rem;
        background-color: rgba(45, 50, 54, 0.5);
    }

.modal-body .table-dark {
    background-color: #2d3236;
}

    .modal-body .table-dark th {
        background-color: var(--primary-color);
        color: var(--text-dark);
        font-weight: 600;
        border-color: var(--primary-color);
    }

.modal-body .table tbody tr:hover {
    background-color: rgba(255, 204, 0, 0.05);
}

/* Modal 背景遮罩 */
.modal-backdrop {
    background-color: #000;
}

    .modal-backdrop.show {
        opacity: 0.8;
    }

/* 響應式調整 */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

/* 添加微妙的光暈效果 */
.modal-content {
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.1);
}

/* 滾動條樣式（如果內容過長） */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #1a1d20;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

    .modal-body::-webkit-scrollbar-thumb:hover {
        background: #5a5a5a;
    }

/* End Modal 樣式*/

/* VIP 表格樣式 */
.table-bordered {
    border: 1px solid #dee2e6;
}

    .table-bordered th,
    .table-bordered td {
        border: 1px solid #dee2e6;
        padding: 0.75rem;
    }

.table-dark {
    background-color: #343a40;
}

/* promotion-mega-menu 半透明 */
/* 優惠活動 Mega Menu 專屬玻璃效果 */
.promotion-mega-menu {
    /* 半透明玻璃效果背景 */
    background: rgba(34, 34, 34, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

    /* 優惠活動內層容器玻璃效果 */
    .promotion-mega-menu .container-fluid {
        background: rgba(40, 40, 40, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 8px;
        padding: 20px;
    }

    /* 優惠活動卡片在玻璃背景下的調整 */
    .promotion-mega-menu .game-provider-card {
        background: rgba(45, 50, 54, 0.5);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }

        .promotion-mega-menu .game-provider-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            background: rgba(45, 50, 54, 0.7);
            border-color: rgba(255, 204, 0, 0.3);
        }

    /* 優惠活動卡片內容樣式 */
    .promotion-mega-menu .provider-info {
        background: transparent;
    }

    .promotion-mega-menu .provider-name {
        color: #fff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .promotion-mega-menu .provider-desc {
        color: rgba(255, 255, 255, 0.8);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    /* 加強玻璃效果的光澤 */
    .promotion-mega-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.2) 80%, transparent);
        pointer-events: none;
    }

    /* 微妙的內部光暈效果 */
    .promotion-mega-menu::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient( circle at center, rgba(255, 204, 0, 0.05) 0%, transparent 50% );
        pointer-events: none;
    }

/* 響應式調整 */
@media (max-width: 992px) {
    .promotion-mega-menu {
        background: rgba(34, 34, 34, 0.85) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
    }
}

/* 瀏覽器兼容性後備方案 */
@supports not (backdrop-filter: blur(20px)) {
    .promotion-mega-menu {
        background: rgba(34, 34, 34, 0.95) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    }

        .promotion-mega-menu .game-provider-card {
            background: rgba(45, 50, 54, 0.95);
        }
}

/* 確保其他 mega-menu 保持原樣 */
.mega-menu:not(.promotion-mega-menu) {
    /* 保持原本的樣式 */
    background: linear-gradient(to bottom, #222222, #111111);
    backdrop-filter: none;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .game-provider-card {
        margin-bottom: 15px;
    }

    .provider-name {
        font-size: 16px;
    }

    .provider-desc {
        font-size: 13px;
    }

    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Mega Menu 遊戲項目樣式 */
.mega-menu .game-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

    .mega-menu .game-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .mega-menu .game-item img {
        width: 100%;
        height: auto;
        display: block;
    }

.mega-menu .game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 15px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mega-menu .game-item:hover .game-overlay {
    opacity: 1;
}

.mega-menu .game-title {
    color: white;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
}

.mega-menu .btn-play {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .mega-menu .btn-play:hover {
        background-color: #e67e22;
    }

/* End Mega Menu 遊戲項目樣式 */

/* Wallet */
.chip-wallets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.chip-wallet-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

    .chip-wallet-item:hover {
        border-color: #0d6efd;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .chip-wallet-item .chip-header {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin-bottom: 5px;
    }

    .chip-wallet-item .currency-symbol {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        color: white;
        font-size: 12px;
        font-weight: bold;
    }

    .chip-wallet-item .currency-name {
        font-size: 14px;
        font-weight: 600;
    }

    .chip-wallet-item .balance-amount {
        font-size: 16px;
        font-weight: bold;
        color: #212529;
    }

    .chip-wallet-item .frozen-info {
        margin-top: 5px;
        font-size: 11px;
    }

/* 在下拉選單中限制高度 */
.wallet-dropdown .chip-wallets-grid {
    max-height: 150px;
}
/* End Wallet */

/* 娛樂場選單樣式 */
.mega-menu .dropdown-item {
    position: relative;
    padding-right: 25px;
}

    /* 外部連結圖示 */
    .mega-menu .dropdown-item[target="_blank"]::after {
        /*content: "\f35d";*/ /* Font Awesome external link icon */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 0.75rem;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.5;
    }

    .mega-menu .dropdown-item:hover::after {
        opacity: 1;
    }

    /* 特殊連結樣式（不開新視窗的） */
    .mega-menu .dropdown-item:not([target="_blank"]) {
        font-weight: 500;
    }

/* Game Vendor Section */
#brxe-bpwlan {
    /*background-color: #1b0238;*/
    padding: 3rem 0;
    overflow: hidden;
}

.maispin-marquee {
    display: flex;
    animation: marquee-scroll 180s linear infinite;
    width: max-content;
}

.game-vendor-img {
    height: 50px;
    margin-right: 3rem;
    display: block;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* 滑鼠懸停時暫停 */
.maispin-marquee:hover {
    animation-play-state: paused;
}