/* ===== 全局設定 ===== */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* 全局連結樣式 - 取消底線 */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.main-content {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* 防止所有內容區域產生水平滾動 */
.page-header,
.game-filter-section,
.hot-slots-section,
.providers-section,
.seo-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ===== 導航欄重新設計 ===== */
.navbar {
    width: 100%;
    max-width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #E3E3E3;
    padding: 8px 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
}

.logo-box {
    display: flex;
    align-items: center;
    height: 32px;
    flex-shrink: 0;
    order: 0;
    min-width: 80px;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
    max-width: 100%;
}

/* 桌面版導航選單 */
.navbar-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 0 20px;
    flex: 1;
    max-width: 600px;
    min-width: 0;
    overflow: hidden;
}

.game-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    min-width: 70px;
    flex-shrink: 1;
}

.game-nav-item:hover {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.game-nav-item.active {
    background: linear-gradient(135deg, #16B955 0%, #14A44B 50%, #0C913F 100%);
    color: white;
    border-color: #16B955;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(22, 185, 85, 0.3);
}

.navbar-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
    min-width: 120px;
    justify-content: flex-end;
}

/* 漢堡按鈕 - 桌面版完全隱藏 */
.mobile-menu-btn {
    display: none;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: #333;
    margin: 2px 0;
    transition: 0.3s;
}

/* 手機版和平板版樣式 */
@media screen and (max-width: 1024px) {
    .navbar {
        height: 70px;
        padding: 6px 12px;
    }
    
    /* 顯示漢堡按鈕 */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 32px;
        height: 32px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-left: 8px;
        order: 3;
        flex-shrink: 0;
    }
    
    /* 隱藏原本的導航選單並變成垂直下拉 */
    .navbar-center {
        display: none !important;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: #fff;
        border-bottom: 1px solid #E3E3E3;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 16px;
        margin: 0;
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
        z-index: 999;
        max-height: 60vh;
        overflow-y: auto;
        flex: none;
        max-width: none;
        order: 4;
    }
    
    /* 當漢堡選單被點擊時顯示 */
    .navbar-center.active {
        display: flex !important;
    }
    
    .game-nav-item {
        padding: 12px 16px !important;
        font-size: 14px !important;
        min-width: auto !important;
        width: 100% !important;
        text-align: center;
        margin: 0 0 4px 0 !important;
    }
    
    /* 優化按鈕區域 - 保持合適大小 */
    .navbar-actions {
        order: 2;
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    
    /* 平板版按鈕尺寸 */
    .navbar-btn {
        padding: 8px 16px !important;
        font-size: 14px !important;
        max-width: 85px !important;
        height: 38px !important;
        border-radius: 19px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-4px, 4px);
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(45deg) translate(-4px, -4px);
    }
}

/* 手機版額外優化 */
@media screen and (max-width: 480px) {
    .navbar-btn {
        padding: 6px 12px !important;
        font-size: 13px !important;
        max-width: 65px !important;
        height: 32px !important;
    }
    
    .navbar-actions {
        gap: 4px;
    }
    
    .mobile-menu-btn {
        width: 28px;
        height: 28px;
    }
    
    .hamburger-line {
        width: 18px;
        height: 2px;
    }
}

/* 桌面版確保漢堡按鈕隱藏 */
@media screen and (min-width: 1025px) {
    .mobile-menu-btn {
        display: none !important;
    }
    
    .navbar-center {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 20px !important;
        flex: 1 !important;
        max-width: 600px !important;
        gap: 4px !important;
        z-index: auto !important;
        max-height: none !important;
        overflow: visible !important;
        order: 1;
    }
    
    .navbar-actions {
        order: 2;
        gap: 8px;
    }
    
    .navbar-btn {
        padding: 10px 24px !important;
        font-size: 15px !important;
        max-width: 140px !important;
        height: 42px !important;
    }
}

.navbar-btn {
    border: 0;
    border-radius: 21px;
    background-size: 100% 100%;
    font-weight: 500;
    padding: 10px 24px;
    height: 42px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 140px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.navbar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-btn-login {
    border: 1px solid #e3e3e3;
    background-color: #fff;
    color: #333;
}

.navbar-btn-login:hover {
    border-color: #16B955;
    color: #16B955;
}

.navbar-btn-register {
    background: linear-gradient(135deg, #16B955 0%, #14A44B 50%, #0C913F 100%);
    color: #fff;
    border: none;
    font-weight: 600;
}

.navbar-btn-register:hover {
    background: linear-gradient(135deg, #14A44B 0%, #0C913F 50%, #0A7A35 100%);
    box-shadow: 0 4px 12px rgba(22, 185, 85, 0.3);
}

.navbar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-btn-login {
    border: 1px solid #e3e3e3;
    background-color: #fff;
    color: #333;
}

.navbar-btn-login:hover {
    border-color: #16B955;
    color: #16B955;
}

.navbar-btn-register {
    background: linear-gradient(135deg, #16B955 0%, #14A44B 50%, #0C913F 100%) !important;
    color: #fff;
    border: none;
    font-weight: 600;
}

.navbar-btn-register:hover {
    background: linear-gradient(135deg, #14A44B 0%, #0C913F 50%, #0A7A35 100%) !important;
    box-shadow: 0 4px 12px rgba(22, 185, 85, 0.3);
}

/* 底部導航欄全寬度設定 */
.bottom-nav {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    background: white;
    border-top: 1px solid #e3e3e3;
    padding: 8px 0;
    box-sizing: border-box;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.nav-item:hover {
    transform: scale(1.05);
}

.nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.nav-text {
    font-size: 10px;
    color: #666;
    font-weight: 500;
}

.center-item {
    position: relative;
}

.center-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-bg {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.center-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 為導航欄和底部欄留出空間 */
body {
    padding-top: 80px;
    padding-bottom: 70px;
}

/* SEO內容區塊全寬度 */
.seo-content {
    width: 100%;
    padding: 20px 16px;
    box-sizing: border-box;
    margin: 20px 0 0 0;
}

.seo-section {
    width: 100%;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.8), #fff 40%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.1);
}

.seo-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px 0;
    text-align: center;
}

.seo-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.seo-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 16px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e3e3e3;
}

.feature-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
}

.feature-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* ===== 電子遊戲頁面專用樣式 ===== */

/* 頁面標題區塊 */
.page-header {
    width: 100%;
    margin: 20px 0 0 0;
    padding: 20px 16px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.8), #fff 40%);
    border-radius: 12px;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.page-icon {
    font-size: 28px;
}

.page-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* 遊戲過濾分類 */
.game-filter-section {
    width: 100%;
    margin: 20px 0 0 0;
    padding: 0 16px;
    box-sizing: border-box;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e3e3e3;
    background: #fff;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-tab:hover {
    border-color: #16B955;
    color: #16B955;
}

.filter-tab.active {
    background: linear-gradient(180deg, #16B955 0%, #14A44B 43.24%, #0C913F 100%);
    color: #fff;
    border-color: #16B955;
}

/* 熱門遊戲區塊 */
.hot-slots-section {
    width: 100%;
    margin: 8px 0 0 0;
    padding: 16px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.8), #fff 40%);
    border-radius: 12px;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    margin-top: 12px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-left: 8px;
}

.provider-icon {
    font-size: 18px;
}

/* 遊戲網格 */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.slot-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.slot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.slot-card.featured {
    grid-column: span 2;
}

.slot-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* 真人遊戲預覽區域 */
.live-game-preview {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.live-game-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.live-status {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #e53e3e;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

/* 體育投注預覽區域 */
.sports-game-preview {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sports-game-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.sports-status {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #e53e3e;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

/* 區塊鏈遊戲預覽區域 */
.blockchain-game-preview {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #805ad5 0%, #553c9a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blockchain-game-icon {
    font-size: 40px;
    margin-bottom: 8px;
    color: #ffd700;
}

.blockchain-status {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #805ad5;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.slot-card.featured .slot-img {
    height: 160px;
}

.slot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 12px;
    color: white;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.slot-card:hover .slot-overlay {
    transform: translateY(-4px);
}

.slot-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: white;
}

.slot-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.jackpot-amount {
    font-size: 12px;
    font-weight: 500;
    color: #FFD700;
}

.hot-badge, .new-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
}

.hot-badge {
    background: #FF4444;
    color: white;
}

.new-badge {
    background: #16B955;
    color: white;
}

.play-btn {
    width: 100%;
    padding: 8px;
    background: linear-gradient(180deg, #16B955 0%, #14A44B 43.24%, #0C913F 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.play-btn:hover {
    transform: scale(1.02);
}

/* 遊戲提供商區塊 */
.providers-section {
    width: 100%;
    margin: 20px 0 0 0;
    padding: 16px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.8), #fff 40%);
    border-radius: 12px;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.1);
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.provider-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e3e3e3;
    transition: transform 0.2s;
}

.provider-card:hover {
    transform: translateY(-2px);
}

.provider-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #16B955, #14A44B);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}

.provider-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    text-align: center;
}

/* 遊戲類型網格 */
.game-types-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}

.game-type-item {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #16B955;
}

.game-type-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-type-item p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* CTA 按鈕 */
.cta-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.cta-btn {
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cta-btn.primary {
    background: linear-gradient(180deg, #16B955 0%, #14A44B 43.24%, #0C913F 100%);
    color: white;
}

.cta-btn.secondary {
    background: white;
    color: #16B955;
    border: 1px solid #16B955;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 185, 85, 0.3);
}

/* ===== RWD 響應式設計 ===== */

/* 全寬度設計 - 確保全寬度 */
@media (min-width: 501px) {
    .main-content,
    .page-header,
    .game-filter-section,
    .hot-slots-section,
    .providers-section,
    .seo-content,
    .game-categories-container,
    .hot-recommend,
    .marquee-container,
    .carousel {
        width: 100%;
    }
    
    .navbar {
        width: 100%;
    }
    
    .bottom-nav {
        width: 100%;
    }
}

/* 平板尺寸優化 */
@media (min-width: 768px) {
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .slot-card.featured {
        grid-column: span 2;
    }
    
    .providers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .game-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .cta-buttons {
        gap: 16px;
        justify-content: center;
    }
    
    .filter-tabs {
        justify-content: center;
        padding: 8px 0;
    }
    
    .page-header {
        padding: 24px 20px;
    }
    
    .hot-slots-section,
    .providers-section,
    .hot-live-section,
    .live-features-section {
        padding: 20px;
    }
    
    .seo-content {
        padding: 24px 20px;
    }
}

/* 電腦版優化 */
@media (min-width: 1024px) {
    .slots-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .slot-card.featured {
        grid-column: span 2;
    }
    
    .providers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .game-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .page-header {
        padding: 32px 24px;
    }
    
    .hot-slots-section,
    .providers-section,
    .hot-live-section,
    .live-features-section {
        padding: 24px;
    }
    
    .seo-content {
        padding: 32px 24px;
    }
    
    .seo-title {
        font-size: 24px;
    }
    
    .seo-subtitle {
        font-size: 20px;
    }
}

/* ===== 真人遊戲頁面專用樣式 ===== */

/* 真人遊戲區塊 */
.hot-live-section {
    width: 100%;
    margin: 20px 0 0 0;
    padding: 16px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.8), #fff 40%);
    border-radius: 12px;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.1);
}

/* 真人遊戲網格 */
.live-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.live-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.live-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.live-card.featured {
    grid-column: span 2;
}

.live-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    position: relative;
}

.live-card.featured .live-img {
    height: 160px;
}

.live-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 12px;
    color: white;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.live-card:hover .live-overlay {
    transform: translateY(-4px);
}

.live-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: white;
}

.live-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 4px;
}

.dealer-info {
    font-size: 11px;
    color: #FFD700;
}

.bet-range {
    font-size: 11px;
    color: #90EE90;
    margin-bottom: 8px;
}

.live-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
    background: #FF4444;
    color: white;
    animation: pulse 2s infinite;
}

.speed-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
    background: #FFD700;
    color: #333;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.join-btn {
    width: 100%;
    padding: 8px;
    background: linear-gradient(180deg, #16B955 0%, #14A44B 43.24%, #0C913F 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.join-btn:hover {
    transform: scale(1.02);
}

/* 真人遊戲特色區塊 */
.live-features-section {
    width: 100%;
    margin: 20px 0 0 0;
    padding: 16px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.8), #fff 40%);
    border-radius: 12px;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e3e3e3;
    transition: transform 0.2s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-2px);
}

.feature-icon-large {
    font-size: 32px;
    margin-bottom: 8px;
}

.feature-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
}

.feature-card p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* ===== 真人遊戲 RWD 優化 ===== */

/* 全寬度設計 - 確保全寬度 */
@media (min-width: 501px) {
    .hot-live-section,
    .live-features-section {
        width: 100%;
    }
}

/* 平板尺寸優化 */
@media (min-width: 768px) {
    .live-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .live-card.featured {
        grid-column: span 2;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 電腦版優化 */
@media (min-width: 1024px) {
    .live-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .live-card.featured {
        grid-column: span 2;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
