/* 手機版專用樣式 */
/* 強制清除緩存和重置樣式 */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* 強制移動端布局 - 最高優先級 */
@media (max-width: 768px) {
    .app-item,
    .app-item.has-social {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: left !important;
        padding: 5px !important;
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 頂部：App 圖標 + 文字信息 在同一行 */
    .app-item .app-top-row .app-logo,
    .app-item.has-social .app-top-row .app-logo {
        margin-bottom: 0 !important;
        align-self: flex-start !important;
        width: auto !important;
        text-align: left !important;
        display: flex !important;
        justify-content: flex-start !important;
        flex-shrink: 0 !important;
        margin-right: 15px !important;
        min-width: 60px !important;
    }
    
    .app-item .app-top-row .app-info,
    .app-item.has-social .app-top-row .app-info {
        text-align: left !important;
        margin: 0 !important;
        flex: 1 !important;
        width: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        min-width: 0 !important;
    }
    
    /* 創建頂部水平布局容器 */
    .app-item .app-top-row,
    .app-item.has-social .app-top-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: -10px !important;
        order: 1 !important;
    }
    
    /* 強制覆蓋任何可能的文字居中樣式 */
    .app-item .app-top-row .app-info h4,
    .app-item.has-social .app-top-row .app-info h4 {
        text-align: left !important;
        margin: 0 0 5px 0 !important;
        width: auto !important;
    }
    
    .app-item .app-top-row .app-info p,
    .app-item.has-social .app-top-row .app-info p {
        text-align: left !important;
        margin: 0 !important;
        width: auto !important;
    }
    
    /* 中間：社交按鈕居中 */
    .app-item .social-buttons,
    .app-item.has-social .social-buttons {
        order: 2 !important;
        margin: 13px 0 !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        display: flex !important;
    }
    
    /* 底部：下載按鈕居中 */
    .app-item .download-btn,
    .app-item.has-social .download-btn {
        order: 3 !important;
        align-self: center !important;
        width: auto !important;
        min-width: 200px !important;
        margin: 0 auto !important;
    }
}
/* CSS 變量定義 */
:root {
    --primary-green: #2E7E21;
    --secondary-green: #4CAF50;
    --light-green: #E8F5E8;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #e0e0e0;
    --text-dark: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-large: 20px;
}

/* 全局樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 頂部導航 */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.menu-toggle:hover {
    background: var(--light-gray);
}

/* 頂部下拉菜單 */
.top-menu {
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    min-width: 220px;
    z-index: 1200;
}

.top-menu.show { display: block; }

.top-menu .menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    border-radius: var(--border-radius);
    padding: 10px 12px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 8px;
}

.top-menu .menu-btn:last-child { margin-bottom: 0; }

.top-menu .menu-btn i { font-size: 1.1rem; }
.top-menu .menu-btn:hover { background: var(--light-green); }

/* 底部導航 */
.mobile-nav {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 20px;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 60px;
}

.nav-item.active,
.nav-item:hover {
    color: var(--primary-green);
    background: var(--light-green);
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* 主要內容 */
.main-content {
    margin-top: 70px;
    margin-bottom: 100px; /* 增加底部間距避免被底部導航遮擋 */
    min-height: calc(100vh - 170px);
    padding-bottom: 20px; /* 額外的底部內邊距 */
}

.section {
    display: none;
    padding: 0;
}

.section.active {
    display: block;
}

/* Hero 區域 */
.hero-section {
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--light-green), var(--white));
}

.hero-content {
    text-align: center;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.brand-highlight {
    color: var(--primary-green);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

/* 宣傳輪播（動態寬度） */
.promo-carousel {
    width: calc(100% - 5px); /* 距離左右邊各 5px */
    max-width: 100%;
    height: auto;
    margin: 10px 5px 20px; /* 上 10px，左右 5px，下 20px */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.promo-track {
    display: flex;
    height: auto;
    transition: transform 0.4s ease;
    /* 寬度將通過JavaScript動態設置 */
}

.promo-slide {
    flex: 0 0 auto; /* 改為auto，寬度由JavaScript控制 */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0; /* 防止flex項目溢出 */
}

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

.promo-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap; /* 如果指示點太多，允許換行 */
}

.promo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-dot.active { 
    background: var(--primary-green); 
    transform: scale(1.2); 
}

.promo-dot:hover {
    background: var(--secondary-green);
    transform: scale(1.1);
}

@media (max-width: 420px) {
    .promo-carousel { width: calc(100% - 0px); }
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.feature-item i {
    font-size: 1.2rem;
    color: var(--primary-green);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.btn-primary,
.btn-secondary {
    padding: 15px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--secondary-green);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--light-green);
}

.hero-image {
    text-align: center;
}

.cards-image {
    width: 100%;
    max-width: 300px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow);
}

/* 獎勵區域 */
.bonus-section {
    padding: 40px 20px;
    background: var(--white);
}

.section-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2px;
}

.bonus-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bonus-card {
    background: var(--white);
    border: 2px solid var(--gray);
    border-radius: var(--border-radius-large);
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.bonus-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.bonus-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.bonus-card h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.bonus-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.bonus-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 特色區域 */
.features-section {
    padding: 40px 20px;
    background: var(--light-gray);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item-large {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-item-large:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-green);
    min-width: 50px;
    text-align: center;
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 遊戲區域 */
.games-header {
    padding: 30px 25px 20px; /* 增加左右邊距 */
    text-align: center;
}

#games {
    padding-bottom: 100px; /* 為遊戲區域添加額外底部間距，避免按鈕被遮擋 */
}

.game-modes {
    padding: 0 25px 40px; /* 增加左右邊距，與其他頁面保持一致 */
    display: flex;
    flex-direction: column;
    gap: 25px; /* 增加遊戲容器之間的間隔 */
}

.game-card {
    background: var(--white);
    border: 2px solid var(--gray);
    border-radius: var(--border-radius-large);
    padding: 25px 25px; /* 增加左右內邊距 */
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    margin-bottom: 10px; /* 為每個遊戲卡片添加額外底部邊距 */
    margin-left: 5px; /* 增加左邊距 */
    margin-right: 5px; /* 增加右邊距 */
}

.game-card.featured {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, var(--white), var(--light-green));
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff6b35, #ff8e53);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    /* 火焰效果 */
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.6), 0 0 20px rgba(255, 107, 53, 0.4);
    /* 動畫效果 */
    animation: flame-flicker 2s ease-in-out infinite alternate;
}

.featured-badge::before {
    content: "🔥";
    margin-right: 4px;
}

/* 火焰閃爍動畫 */
@keyframes flame-flicker {
    0% {
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.6), 0 0 20px rgba(255, 107, 53, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.8), 0 0 25px rgba(255, 107, 53, 0.6);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.6), 0 0 20px rgba(255, 107, 53, 0.4);
        transform: scale(1);
    }
}

.game-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.game-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.game-card h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.game-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.game-info {
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.info-row span:first-child {
    color: var(--text-muted);
}

.highlight {
    color: var(--primary-green);
    font-weight: 600;
}

.game-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.game-btn:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
}

/* 下載區域 */
.download-header {
    padding: 30px 20px 20px;
    text-align: center;
}

.download-apps {
    padding: 0 20px 40px;
}

.app-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-left: 5px;
}

.app-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.app-item {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--gray);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}




/* 移除可能影響移動端布局的樣式 */


.app-item .social-buttons {
    display: flex;
    gap: 8px;
    margin: 0 12px;
}


.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    border-radius: var(--border-radius);
    padding: 8px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.social-btn i { font-size: 1rem; }
.social-btn:hover { background: var(--light-green); }


/* 针对桌面屏幕 */
@media (min-width: 768px) {
    .app-item {
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .app-info {
        text-align: center !important;
        margin-left: 0 !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .app-info h4 {
        text-align: center !important;
        margin: 0 !important;
    }
    
    .app-info p {
        text-align: center !important;
        margin: 0 !important;
    }
}




.app-item:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.app-logo {
    font-size: 2.5rem;
    color: var(--primary-green);
    min-width: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移動端：覆蓋基礎樣式 */
@media (max-width: 768px) {
    .app-logo {
        text-align: left !important;
        justify-content: flex-start !important;
    }
}



.app-info {
    flex: 1;
    margin-left: 0;
    /* 移除 text-align: center，讓移動端樣式控制 */
}



.app-info h4 {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 3px;
    /* 移除 text-align: center，讓移動端樣式控制 */
}

.app-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    /* 移除 text-align: center，讓移動端樣式控制 */
}

.download-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 80px;
    justify-content: center;
}



.download-btn:hover {
    background: var(--secondary-green);
    transform: translateY(-1px);
}

/* 個人中心 */
.profile-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    margin-bottom: 15px;
}

.profile-info h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.profile-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.balance-amount {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.balance-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 25px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #ffffff;
}

.profile-menu {
    padding: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: var(--light-gray);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: var(--border-radius);
}

.menu-icon {
    font-size: 1.3rem;
    color: var(--primary-green);
    min-width: 40px;
    text-align: center;
}

.menu-content {
    flex: 1;
    margin-left: 15px;
}

.menu-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.menu-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.menu-arrow {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 模態框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-large);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray);
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--light-gray);
    color: var(--text-dark);
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.verification-input {
    display: flex;
    gap: 10px;
}

.verification-input input {
    flex: 1;
}

.send-code-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.send-code-btn:hover {
    background: var(--secondary-green);
}

.login-btn {
    width: 100%;
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    background: var(--secondary-green);
    transform: translateY(-1px);
}

/* 確保 app-info 在所有情況下都居中 - 最高優先級 */
body .app-info,
html .app-info,
.app-info {
    text-align: center !important;
    margin-left: 0 !important;
    display: block !important;
}

body .app-info h4,
html .app-info h4,
.app-info h4 {
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
}

body .app-info p,
html .app-info p,
.app-info p {
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* 響應式設計 */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .bonus-amount {
        font-size: 1.7rem;
    }
    
    .app-item {
        padding: 12px;
    }
    
    .app-logo {
        font-size: 2rem;
        min-width: 50px;
    }
    
    .download-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
        min-width: 70px;
    }
}

@media (max-width: 320px) {
    .header-content {
        padding: 12px 15px;
    }
    
    .hero-section {
        padding: 25px 15px;
    }
    
    .bonus-section,
    .features-section {
        padding: 30px 15px;
    }
    
    .download-apps {
        padding: 0 15px 30px;
    }
    
    .profile-menu {
        padding: 15px;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bonus-card,
.feature-item-large,
.game-card,
.app-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 滾動條樣式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
}



/* 輪播圖樣式 */
.hero-carousel {
    margin-top: 2px;
    padding: 20px 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-large);
    background: var(--white);
    box-shadow: var(--shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 33.3333%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.carousel-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-green);
    transform: scale(1.2);
}

/* APP Logo 圖片樣式 */
.logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
}

.app-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    text-align: center;
}

/* 輪播圖動畫 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-slide {
    animation: slideIn 0.6s ease-out;
}

/* 響應式輪播圖 */
@media (max-width: 375px) {
    .carousel-logo {
        width: 60px;
        height: 60px;
    }
    
    .carousel-slide {
        padding: 20px 15px;
    }
    
    .carousel-label {
        font-size: 0.9rem;
    }
}

/* 桌面端固定寬度 780px 並置中 */
@media (min-width: 781px) {
    body {
        background: var(--light-gray);
    }
    /* PC：Header 保持固定定位，但限制寬度並置中 */
    .mobile-header { 
        position: fixed !important; 
        top: 0 !important;
        left: 50% !important; 
        right: auto !important; 
        transform: translateX(-50%) !important; 
        width: 780px !important; 
        margin: 0 !important;
        z-index: 1000 !important;
    }
    .header-content { width: 100%; max-width: 780px; margin: 0; position: relative; }
    /* 確保下拉菜單在 780px 範圍內對齊右側 */
    .top-menu { right: 0; left: auto; max-width: 780px; }
    /* PC 版：logo 圖片調整為 180x180 */
    .logo-img { width: 180px; height: 180px; }
    /* PC 版：app-info 文字居中 */
    .app-item {
        align-items: center !important;
        justify-content: space-between !important;
    }
    .app-info { 
        text-align: center !important; 
        margin-left: 0 !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .app-info h4 { 
        text-align: center !important; 
        margin: 0 !important;
    }
    .app-info p { 
        text-align: center !important; 
        margin: 0 !important;
    }
    /* 底部導航置中並固定於底部 */
    .mobile-nav { width: 780px !important; left: 50% !important; right: auto !important; transform: translateX(-50%) !important; position: fixed !important; top: auto !important; bottom: 0 !important; z-index: 2000 !important; }
    #mobileNav { position: fixed !important; top: auto !important; bottom: 0 !important; left: 50% !important; right: auto !important; transform: translateX(-50%) !important; width: 780px !important; z-index: 2000 !important; }
    .main-content {
        margin-top: 80px !important; /* 增加頂部邊距避免被固定導航遮擋 */
        width: 780px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-section,
    .bonus-section,
    .features-section,
    .games-header,
    .game-modes,
    .download-header,
    .download-apps,
    .profile-header,
    .profile-stats,
    .profile-menu {
        width: 780px;
        margin: 0 auto;
    }
    
    /* PC版：為所有內容區域添加額外底部邊距，避免被底部導航遮擋 */
    .main-content {
        padding-bottom: 120px !important; /* 為整個主內容區域添加底部邊距 */
    }
    
    .game-modes,
    #games {
        padding-bottom: 120px !important;
    }
    
    /* 確保下載區域也有足夠的底部邊距 */
    .download-apps {
        padding-bottom: 120px !important;
    }
    
    /* PC版：為特色區域添加底部間距，避免最後一個功能項目被遮擋 */
    .features-section {
        padding-bottom: 10px !important;
    }
    
    /* PC版：為遊戲區域添加左右邊距 */
    .games-header {
        padding: 30px 25px 20px !important;
    }
    
    .game-modes {
        padding: 0 25px 40px !important;
    }
    
    /* PC版：為遊戲卡片添加邊距 */
    .game-card {
        padding: 25px 25px !important;
        margin-left: 5px !important;
        margin-right: 5px !important;
    }
}

@media (max-width: 320px) {
    .carousel-logo {
        width: 50px;
        height: 50px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
}

