/* 移除所有超連結的底線 */
a {
    text-decoration: none;
}

/* 主要內容區塊置中與白底 */
.main-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    min-height: calc(100vh - 140px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 20px;
}
/* 輪播圖樣式 */
.carousel {
    width: 100%;
    max-width: 500px;
    margin: 5px auto 0 auto;
    position: relative;
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.carousel-track {
    width: 100%;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    height: 140px;
    padding: 10px;
    box-sizing: border-box;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.8), #fff 40%);
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.carousel-img {
    width: 100%;
    max-width: 100%;
    height: 120px;
    object-fit: cover;
    background: transparent;
    display: none;
    border-radius: 12px !important;
}
.carousel-img.active {
    display: block;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 10;
    pointer-events: none;
}
.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 1px solid #fff;
    display: inline-block;
    padding: 0;
}
.carousel-dot.active {
    background: #fff;
    border: 1.5px solid #fff;
}
/* 跑馬燈樣式 */
.marquee-container {
    width: 100%;
    max-width: 500px;
    margin: 12px auto 0 auto;
    padding: 12px;
    display: flex;
    align-items: center;
    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);
    box-sizing: border-box;
}
.marquee-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}
.marquee-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin-right: 20px;
}
.marquee-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
    animation: marquee 20s linear infinite;
}
@keyframes marquee {
    0% {
        transform: translateX(20%);
    }
    100% {
        transform: translateX(-120%);
    }
}
/* 火爆推薦區塊 */
.hot-recommend {
    width: 100%;
    max-width: 500px;
    margin: 20px auto 0 auto;
    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);
}
.hot-recommend-title {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.star-icon {
    font-size: 18px;
    margin-right: 8px;
}
.title-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.game-grid {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: flex-start;
}
.main-game {
    flex: 1;
    max-width: calc(50% - 4px);
}
.main-game-img {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
}
.sub-games {
    flex: 1;
    max-width: calc(50% - 4px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    height: 200px;
}
.sub-game-img {
    width: 100%;
    height: 94px;
    border-radius: 8px;
    object-fit: cover;
}
/* SEO內容區塊 */
.seo-content {
    width: 100%;
    max-width: 500px;
    margin: 30px auto 0 auto;
    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);
}
.seo-section {
    margin-bottom: 24px;
}
.seo-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.4;
}
.seo-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}
.seo-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #16B955;
}
.feature-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}
.feature-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.3;
}
.feature-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}
/* 遊戲分類區塊 */
.game-categories-container {
    width: 100%;
    max-width: 500px;
    margin: 30px auto 20px auto;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.game-category-card {
    position: relative;
    width: 100%;
    height: 80px;
    padding: 16px;
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.8), #fff 40%);
    background-color: #f8f9fa;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.game-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.15);
}
.category-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
}
.category-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    flex-shrink: 0;
}
.highlight-text {
    position: relative;
    padding-left: 16px;
}
.highlight-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: #16B955;
    border-radius: 2px;
}
/* Logo 容器與圖片 */
.logo-box .logo-img {
    object-fit: contain;
    cursor: pointer;
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
}
/* 導覽列與按鈕樣式 */
body {
    background: #f0f2f5;
    margin: 0;
    padding: 0;
    padding-top: 64px;
    padding-bottom: 80px;
}
/* 導覽列寬度限制，內容置中，緊貼頂部 */
/* 導覽列主體 */
.navbar {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    position: fixed;
    height: 64px;
    background: #fff;
    padding: 0 20px;
    border-bottom: thin solid #E3E3E3;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
    max-width: 500px;
    min-width: 0;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
@media (max-width: 600px) {
    .navbar {
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
        padding-left: 10px;
        padding-right: 10px;
    }
}
.logo-img {
    width: auto;
    display: block;
}
.logo-box {
    height: 28px;
    display: flex;
    align-items: center;
}
.navbar-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.navbar-btn {
    border: 0;
    border-radius: 24px;
    background-size: 100% 100%;
    font-weight: 400;
    padding: 2px 20px;
    height: 32px;
    font-size: 15px;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.2s, color 0.2s;
    max-width: 120px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
/* 登錄按鈕 */
.navbar-btn-login {
    border: 1px solid var(--skin__border, #e3e3e3);
    background-color: #fff;
    margin-right: 12px;
    color: #333;
}
/* 註冊按鈕 */
.navbar-btn-register {
    background: linear-gradient(180deg, #16B955 0%, #14A44B 43.24%, #0C913F 100%) !important;
    color: #fff;
    border: none;
}

/* 底部選單 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 12px 0;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 4px 8px;
    transition: opacity 0.2s;
}

.nav-item:hover {
    opacity: 0.7;
}

.nav-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
}

.nav-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* 中間存款按鈕特殊樣式 */
.center-item {
    transform: translateY(-8px);
}

.center-icon-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
}

.center-bg {
    width: 52px;
    height: 52px;
}

.center-icon {
    position: absolute;
    width: 36px;
    height: 36px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.center-item .nav-text {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}
