﻿/* Index.cshtml.css - 首頁特定樣式 */

/* 整體頁面背景 */
body {
    position: relative;
    background-color: #0a0a0a;
}

/* 背景圖層設置 */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/home/index.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0.3;
}

/* 電子遊戲區塊樣式 */
.slot-games {
    background-color: rgba(0, 0, 0, 0.4);
}

    .slot-games .section-title {
        font-size: 2.5rem;
        font-weight: 700;
        position: relative;
        display: inline-block;
    }

        .slot-games .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 4px;
            background-color: #b5fc1c;
        }

/* 遊戲項目 */
.game-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    /*height: 420px;*/
    background: #000;
}

    .game-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .game-item:hover img {
        transform: scale(1.1);
    }

/* 遊戲覆蓋層 */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.game-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    padding: 0 10px;
}

.btn-play {
    background: #b5fc1c;
    color: #333;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-play:hover {
        background: #98e024;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(181, 252, 28, 0.4);
    }

/* Modal 樣式 */
#gameModal .modal-dialog {
    max-width: 90vw;
    height: 90vh;
}

#gameModal .modal-content {
    height: 100%;
    background: #000;
}

#gameModal .modal-header {
    background: #1a1a1a;
    color: #fff;
    border-bottom: 1px solid #333;
}

#gameModal .modal-body {
    height: calc(100% - 56px);
}

#gameFrame {
    width: 100%;
    height: 100%;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .game-item {
        height: 300px;
    }

    .game-title {
        font-size: 1rem;
    }

    .btn-play {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .game-item {
        height: 200px;
    }

    .game-title {
        font-size: 0.85rem;
    }
}
/* End 電子遊戲區塊樣式 */

/* 真人荷官區塊樣式 */
.live-casino .game-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #1a1a1a;
    height: 300px;
    cursor: auto;
    transition: all 0.3s ease;
}

    .live-casino .game-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* 移除原本的 transition，讓圖片預設就是放大狀態 */
        transform: scale(1.1);
    }

    .live-casino .game-card .game-name {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
        color: white;
        padding: 20px;
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        /* 預設就顯示文字 */
        opacity: 1;
        transform: translateY(0);
    }

    /* 保留 hover 效果，但因為預設已經是這個狀態，所以可以選擇性保留或移除 */
    .live-casino .game-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

        .live-casino .game-card:hover img {
            transform: scale(1.1);
        }

        .live-casino .game-card:hover .game-name {
            opacity: 1;
            transform: translateY(0);
        }

/* 響應式設計 */
@media (max-width: 992px) {
    .live-casino .section-title {
        font-size: 2rem;
    }

    .section-content {
        text-align: center;
        margin-bottom: 3rem;
    }

    .live-casino .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .live-casino .game-list {
        display: flex;
        justify-content: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .live-casino .section-title {
        font-size: 1.75rem;
    }

    .game-card .game-name {
        font-size: 0.9rem;
        padding: 15px 10px 10px;
    }

    .live-casino .game-list {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .game-showcase .col-4 {
        flex: 0 0 auto;
        width: 100%;
    }

    .game-card {
        max-width: 300px;
        margin: 0 auto;
    }
}

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

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

.section-content {
    animation: fadeInUp 0.8s ease-out;
}

.game-card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

    .game-card:nth-child(1) {
        animation-delay: 0.2s;
    }

    .game-card:nth-child(2) {
        animation-delay: 0.3s;
    }

    .game-card:nth-child(3) {
        animation-delay: 0.4s;
    }
/* End 真人荷官區塊樣式 */

/* 英雄區域 - 僅用於首頁 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/api/placeholder/1200/500') no-repeat center center;
    background-size: cover;
    height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    width: 100%;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 22px;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

/* 優惠區域 */
/* 優惠區域樣式 */
.promotion {
    padding: 60px 0;
    background-color: rgba(0, 0, 0, 0.4);
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background-color: var(--primary-color);
    }

.promo-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.promo-card {
    background: #2a2a3a; /* 深色背景 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .promo-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    }

        .promo-card:hover .promo-image img {
            transform: scale(1.05);
        }

    .promo-card h3 {
        font-size: 24px;
        margin-bottom: 15px;
        color: var(--primary-color);
    }

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

    .promo-card .btn {
        background-color: var(--primary-color);
        color: var(--text-dark);
        border: none;
        transition: all 0.3s;
        padding: 8px 20px;
        font-weight: bold;
    }

        .promo-card .btn:hover {
            background-color: var(--primary-dark);
            transform: translateY(-3px);
        }

.promo-image {
    position: relative;
    overflow: hidden;
    height: 200px; /* 固定圖片區域高度 */
    flex: 0 0 auto;
}

    .promo-image img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 確保圖片填滿整個區域 */
        transition: transform 0.3s ease;
    }

/* 徽章樣式 */
.promo-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4444; /* 紅色背景 */
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

    /* 根據不同類型設置不同顏色 */
    .promo-badge.long-term {
        background: #4CAF50; /* 綠色 - 長期有效 */
    }

    .promo-badge.guide {
        background: #2196F3; /* 藍色 - 新手指南 */
    }

    .promo-badge.knowledge {
        background: #FF9800; /* 橙色 - 知識專區 */
    }

/* 內容區域 */
.promo-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #2a2a3a; /* 深色背景 */
}

.promo-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffc107; /* 金黃色標題 */
    margin-bottom: 0.75rem;
    min-height: 2.5em; /* 確保標題區域高度一致 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-desc {
    color: #cccccc; /* 淺灰色文字 */
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 0;
    min-height: 4.5em; /* 確保描述區域高度一致 */
}

/* Modal 內容樣式 */
.promotion-content {
    font-size: 16px;
    line-height: 1.8;
}

    .promotion-content h6 {
        color: var(--bs-primary);
        font-weight: 600;
    }

    .promotion-content ol, .promotion-content ul {
        padding-left: 1.5rem;
    }

    .promotion-content li {
        margin-bottom: 0.5rem;
    }

    .promotion-content hr {
        margin: 2rem 0;
        border-color: #e0e0e0;
    }

/* 響應式調整 */
@media (max-width: 991px) {
    .promo-image {
        height: 180px;
    }
}

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

    .promo-image {
        height: 160px;
    }

    .promo-content {
        padding: 1rem;
    }

    .promo-title {
        font-size: 1rem;
        min-height: 2em;
    }

    .promo-desc {
        font-size: 0.85rem;
        min-height: 4em;
    }
}

/* 遊戲區域 */
.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, box-shadow 0.3s;
    height: 380px; /* 設置固定高度 */
    display: flex;
    flex-direction: column;
}

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

/* 確保圖片區域一致 */
.game-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #333;
}

/* 確保遊戲信息區域有固定高度 */
.game-info {
    padding: 15px;
    height: 200px; /* 根據內容調整，包含標題、描述和按鈕的空間 */
    display: flex;
    flex-direction: column;
}

    /* 確保遊戲標題一致 */
    .game-info h3 {
        font-size: 22px;
        margin-bottom: 12px;
        color: var(--primary-color);
        min-height: 44px; /* 為標題提供足夠顯示兩行的空間 */
        line-height: 1.2;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 允許最多兩行 */
        -webkit-box-orient: vertical;
        /* 移除白色空間限制和省略號，確保中文標題可以完整顯示 */
        white-space: normal;
    }

    /* 讓遊戲說明文字固定兩行高度 */
    .game-info p {
        font-size: 14px;
        color: var(--text-muted);
        margin-bottom: 15px;
        /* 固定高度為兩行文字 */
        height: 60px; /* 基於14px字體和1.4行高計算的兩行高度 */
        line-height: 1.4;
        overflow: hidden;
        /* 超出兩行的文字顯示省略號 */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
    }

/* 讓按鈕位於底部並對齊 */
.play-btn {
    display: block;
    width: 100%;
    padding: 10px 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, transform 0.2s;
    margin-top: auto; /* 推到flex容器底部 */
}

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

/* 對於中文標題和描述的特別處理 */
.game-info h3[lang="zh"],
.game-info p[lang="zh"] {
    letter-spacing: 0.5px; /* 為中文字符提供更好的間距 */
}

/* 關於我們區域 */
.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;
    }

/* 響應式設計 - 首頁特定 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

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

    .promo-card {
        width: 100%;
        max-width: 300px;
    }
}

/* VIP 會員推廣區塊 */
.vip-promotion {
    /*background-color: #2d3741;*/
    position: relative;
    overflow: hidden;
}

/* 圖片拼貼效果 */
.image-collage {
    position: relative;
    height: 500px;
    margin: 0 auto;
}

.collage-img {
    position: absolute;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* 第一張圖片 - 左上 */
.img-1 {
    width: 280px;
    height: auto;
    top: 0;
    left: 0;
    z-index: 3;
    transform: rotate(-5deg);
}

/* 第二張圖片 - 右上 */
.img-2 {
    width: 320px;
    height: auto;
    top: -50px;
    right: 0;
    z-index: 2;
    transform: rotate(3deg);
}

/* 第三張圖片 - 右下 */
.img-3 {
    width: 300px;
    height: auto;
    bottom: -50px;
    right: 30px;
    z-index: 1;
    transform: rotate(7deg);
}

/* 第三張圖片 - 右下 */
.img-4 {
    width: 300px;
    height: auto;
    bottom: 0;
    right: 270px;
    z-index: 1;
    transform: rotate(-2deg);
}

/* 懸停效果 */
.collage-img:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* VIP 內容區域 */
.vip-content {
    color: #fff;
    padding-left: 3rem;
}

/* VIP 徽章 */
.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.badge-text {
    background: #b5fc1c;
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-action {
    color: #999;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .badge-action:hover {
        color: #b5fc1c;
    }

/* VIP 標題 */
.vip-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

    .vip-title .highlight {
        color: #b5fc1c;
    }

/* VIP 描述 */
.vip-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #ddd;
}

    .vip-description strong {
        color: #b5fc1c;
        font-weight: 600;
    }

/* 動畫效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotate));
    }

    50% {
        transform: translateY(-10px) rotate(var(--rotate));
    }
}

.img-1 {
    --rotate: -5deg;
    animation: float 4s ease-in-out infinite;
}

.img-2 {
    --rotate: 3deg;
    animation: float 4s ease-in-out 0.5s infinite;
}

.img-3 {
    --rotate: 6deg;
    animation: float 4s ease-in-out 1s infinite;
}

.img-4 {
    --rotate: -12deg;
    animation: float 4s ease-in-out 1s infinite;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .image-collage {
        height: 400px;
        margin-bottom: 3rem;
    }

    .collage-img {
        width: 240px !important;
    }

    .img-1 {
        top: 0;
        left: 10%;
    }

    .img-2 {
        top: 0;
        right: 10%;
    }

    .img-3 {
        bottom: 0;
        right: 20%;
    }

    .img-4 {
        bottom: 0;
        right: 50%;
    }

    .vip-content {
        padding-left: 0;
        text-align: center;
    }

    .vip-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .image-collage {
        height: 300px;
    }

    .collage-img {
        width: 180px !important;
    }

    .vip-title {
        font-size: 2rem;
    }

    .vip-description {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .image-collage {
        height: 250px;
    }

    .collage-img {
        width: 150px !important;
    }

    .img-1 {
        left: 0;
    }

    .img-2 {
        top: 0;
        right: 20px;
    }

    .img-3 {
        right: 10px;
    }

    .img-4 {
        left: 50px;
    }

    .vip-title {
        font-size: 1.75rem;
    }
}

/* 背景裝飾 */
.vip-promotion::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(181, 252, 28, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.vip-promotion::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(181, 252, 28, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

/* End VIP 會員推廣區塊 */

/* 彩票樂透區塊 */
.lottery-section {
    background-color: #d84315; /* 深橘色背景 */
    position: relative;
    overflow: hidden;
}

    /* 區塊標題 */
    .lottery-section .section-title {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .lottery-section .section-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 800px;
        margin: 0 auto;
    }

/* 彩票卡片 */
lottery-card .card-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.lottery-card .lottery-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.lottery-card .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 215, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .lottery-card .image-overlay i {
        font-size: 3rem;
        color: #1a1a2e;
    }

/* Hover 效果 */
.lottery-card:hover .lottery-card-image {
    transform: scale(1.1);
    /*filter: brightness(0.8);*/
}

.lottery-card:hover .image-overlay {
    opacity: 0.1;
}

.lottery-card:hover {
    transform: translateY(-5px);
    /*box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);*/
}

/* 調整卡片內容樣式 */
.lottery-card .card-content {
    padding: 1.5rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
}



/* 圖片預留位置 */
.card-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

/* 卡片內容 */
.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #d84315;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffccbc;
    padding-bottom: 10px;
}

.card-description {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 500;
}

.card-detail {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 背景裝飾 */
.lottery-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.lottery-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .lottery-section .section-title {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .lottery-card {
        margin-bottom: 20px;
    }

    .image-placeholder {
        height: 150px;
    }

    .card-content {
        padding: 15px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-description,
    .card-detail {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .lottery-section {
        padding: 3rem 0;
    }

        .lottery-section .section-title {
            font-size: 1.75rem;
        }

        .lottery-section .section-subtitle {
            font-size: 0.9rem;
        }
}

/* 載入動畫 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.lottery-card {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

    .lottery-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .lottery-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .lottery-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .lottery-card:nth-child(4) {
        animation-delay: 0.4s;
    }

/* End 彩票樂透區塊 */