﻿/* 首頁特定樣式 */
/* 熱門遊戲推薦圖片樣式 */
.game-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
}

.game-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

/* 最近更新圖片樣式 */
.recent-post-image {
    width: 80px;
    height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    border-radius: 5px;
}

.recent-post-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.recent-post-item:hover .recent-post-image img {
    transform: scale(1.05);
}
/* 輪播圖區域 */
.hero-slider {
    position: relative;
    margin-top: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 添加主橫幅樣式 */
.main-banner {
    background-color: #1a1a1a;
    padding: 40px 0;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-text {
    flex: 1;
    padding-right: 30px;
}

.banner-logo {
    font-size: 48px;
    font-weight: bold;
    color: #ffcc00;
    margin-bottom: 10px;
}

.banner-slogan {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.banner-offer {
    font-size: 28px;
    color: #e60000;
    font-weight: bold;
    margin-bottom: 10px;
}

.banner-description {
    font-size: 18px;
    color: #b0b0b0;
    margin-bottom: 20px;
}

.banner-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e60000;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

.banner-button:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.banner-image {
    flex: 1;
    text-align: center;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 網站標題和介紹 */
.site-title {
    font-size: 28px;
    color: #ffcc00;
    margin-bottom: 20px;
    text-align: center;
}

/* site-intro 區塊樣式 */
.site-intro {
    margin: 30px 0;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden; /* 防止內容溢出 */
}

.site-intro p {
    margin: 0;
    line-height: 1.6;
    color: #e0e0e0;
}

.site-intro img {
    max-width: 100%; /* 確保圖片不會超出容器寬度 */
    height: auto;
    display: block; /* 消除圖片底部間隙 */
    margin: 20px auto; /* 圖片上下留出間距 */
    border-radius: 5px; /* 圖片圓角 */
}

/* 特色區塊標題 */
.features-title {
    font-size: 24px;
    color: #ffcc00;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #e60000;
}

/* 特色區塊網格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.feature-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.feature-content {
    padding: 15px;
}

.feature-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffcc00;
}

.feature-description {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.5;
}
/* 內容模塊通用樣式 */
.content-section {
    margin: 50px 0;
    padding: 40px 0;
    position: relative;
}

.content-section:nth-child(odd) {
    background-color: #121212;
}

.content-section:nth-child(even) {
    background-color: #1a1a1a;
}
/* 合作夥伴標題樣式 */
.partners-title {
    text-align: center;
    color: #ffcc00;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 調整合作夥伴區域的間距 */
.partners {
    padding: 50px 0;
    background-color: #121212;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.partner-logo {
    max-width: 120px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}
/* 特色卡片標題鏈接樣式 */
.feature-title a {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feature-title a:hover {
    color: #e60000;
    text-decoration: none;
}

/* 特色卡片圖片鏈接樣式 */
.feature-image a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 保持原有的圖片懸停效果 */
.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

/* 移動端適配 */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
    }
    
    .banner-text {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    /* 調整移動端下頭部與橫幅的間距 */
    .main-banner {
        padding: 25px 0;
        margin-top: -5px;
        margin-bottom: 30px;
    }
    
    /* 當頭部固定時的間距調整 */
    body.header-fixed .main-banner {
        margin-top: 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-logos {
        gap: 20px;
    }
    
    .partner-logo {
        max-width: 100px;
    }
}