.steam-container {
    max-width: 850px;
    margin: 2.5em auto;
    padding: 0 1.2em;
}

.steam-header-title { color: #ffeab7; text-align: center; margin-bottom: 0.1em; }
.steam-header-desc { text-align: center; color: #888; margin-bottom: 3em; font-size: 0.9em; }

/* 網格佈局 */
.steam-grid {
    display: flex;
    flex-direction: column;
    gap: 3.5em;
}

/* 卡片主體 */
.game-card {
    background: #232736;
    border-radius: 18px;
    border: 1px solid #ffffff0a;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 封面區 */
.main-visual { position: relative; width: 100%; aspect-ratio: 16/9; cursor: pointer; }
.main-img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s ease; }

/* 標籤區 */
.info-badges { display: flex; flex-wrap: wrap; gap: 0.6em; margin: 1.2em 0; }
.badge-item {
    background: rgba(230, 177, 103, 0.12);
    color: #ffeab7;
    padding: 0.3em 0.8em;
    border-radius: 6px;
    font-size: 0.85em;
    border: 1px solid rgba(230, 177, 103, 0.25);
}

/* 進度條區 */
.time-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.2em;
    border-radius: 0 0 18px 18px; /* 底部圓角對應卡片 */
    margin-top: 1.5em;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.time-info { display: flex; justify-content: space-between; margin-bottom: 0.6em; font-size: 0.95em; }
.countdown-text { color: #e6b167; font-family: 'Courier New', monospace; font-weight: bold; }

.bar-bg { width: 100%; height: 6px; background: #333; border-radius: 10px; overflow: hidden; }
.bar-fill { 
    height: 100%; 
    background: linear-gradient(90deg, #e6b167, #ffeab7); 
    box-shadow: 0 0 8px rgba(230, 177, 103, 0.5);
    width: 0%; 
}

/* 預覽圖 */
.thumb-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; }
.thumb-item { 
    width: 100%; aspect-ratio: 16/9; object-fit: cover; 
    border-radius: 6px; cursor: pointer; opacity: 0.5; transition: 0.3s;
}
.thumb-item:hover { opacity: 1; transform: translateY(-2px); }

/* 文字內容 */
.game-content {
    padding: 1.5em 1.5em 0 1.5em; /* 底部間距交給 time-box */
}
.game-name { font-size: 1.6em; color: #fff; text-decoration: none; margin-bottom: 0.2em; display: block; }
.game-desc {
    color: #bbb;
    line-height: 1.7;
    font-size: 0.95em;
    margin: 1em 0; /* 增加上下間距 */
}

/* 藝廊容器佈局 */
.gallery-wrapper {
    display: flex;
    background: #1a1e2a; 
    width: 100%;
    aspect-ratio: 16 / 9; /* 強制維持 16:9 比例，這會讓圖片變得很寬大 */
}

/* 左側縮圖欄位 */
.side-thumbs {
    width: 110px;
    height: 100%; /* 繼承父層 16:9 的高度 */
    background: #232736;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    gap: 24px;
    padding: 10px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.side-thumbs::-webkit-scrollbar {
    display: none; /* Chrome/Safari 隱藏捲軸 */
}
.thumb-item {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover; /* 縮圖可以裁切，保持整齊 */
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
    border: 1px solid transparent;
}

.thumb-item:hover { opacity: 1; border-color: #e6b167; }

/* 主展示區優化 */
.main-visual {
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.main-img {
    width: 100%;
    height: 100%;
    /* 這裡可以根據你的喜好調整：
       cover: 填滿不留黑邊（但邊緣可能被裁）
       contain: 保證看到全圖（可能留黑邊）
       既然你希望「放大」，建議用 cover 並搭配合適的 aspect-ratio */
    object-fit: contain; 
}

/* 行動端適配：如果是手機則改回垂直排列 */
@media (max-width: 600px) {
    .gallery-wrapper {
        flex-direction: column-reverse; /* 縮圖放到主圖下方，避免佔據手機頂部空間 */
        height: auto;
    }
    .side-thumbs {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        height: 60px;
    }
    .thumb-item {
        width: 80px;
    }
}
/* =========================================
   Steam 特賣專屬樣式
   ========================================= */
.sale-card {
    background: #232736;
    border-radius: 18px;
    border: 1px solid #ffffff0a;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

/* 季節特賣特效 (流光漸層邊框) */
.sale-card.seasonal {
    border: 2px solid #ff4757;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.2);
    background: linear-gradient(145deg, #232736, #2d1b1b);
    animation: seasonalGlow 2.5s infinite alternate ease-in-out;
}

@keyframes seasonalGlow {
    from { box-shadow: 0 0 5px rgba(255, 204, 0, 0.1); }
    to { box-shadow: 0 0 25px rgba(255, 71, 87, 0.5); }
}

.sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.sale-title { font-size: 1.4rem; color: #fff; font-weight: bold; }
.sale-status { font-size: 0.9rem; color: #888; }

.sale-progress-bg { width: 100%; height: 8px; background: #1a1e2a; border-radius: 4px; overflow: hidden; }
.sale-progress-fill { height: 100%; background: #66c0f4; width: 0%; transition: width 1s linear; }
.sale-countdown { text-align: right; font-family: monospace; color: #ff4757; font-size: 1.1rem; margin-top: 5px; }