/* 基礎設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft JhengHei', 'Inter', -apple-system, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    color: #ffffff;
    margin-bottom: 60px;
    padding-top: 40px;
}

h1 {
    font-size: 3em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.3em;
    color: #888;
    font-weight: 300;
}

/* 遊戲網格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* 遊戲卡片 */
.game-card {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #2a2a2a;
    text-decoration: none;
    display: block;
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: #667eea;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

/* 遊戲圖片 */
.game-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

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

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

/* 圖片遮罩層 */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.view-text {
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.9);
    padding: 12px 30px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

/* 遊戲資訊 */
.game-info {
    padding: 25px;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
}

.game-info h2 {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 600;
}

.game-info p {
    color: #888;
    font-size: 1em;
}

/* Footer */
.main-footer {
    background: #000000;
    color: #888;
    margin-top: 80px;
    padding: 30px 40px;
    border-top: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-left,
.footer-center,
.footer-right {
    font-size: 0.9em;
}

.footer-center {
    text-align: center;
    flex: 1;
}

.footer-center a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-center a:hover {
    color: #764ba2;
}

/* ========== 手機版響應式 ========== */

/* 平板 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2em;
    }
    
    .subtitle {
        font-size: 1.1em;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .game-image {
        height: 220px;
    }
    
    header {
        margin-bottom: 40px;
        padding-top: 20px;
    }
}

/* 手機 */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-image {
        height: 200px;
    }
    
    .game-info h2 {
        font-size: 1.4em;
    }
    
    .view-text {
        font-size: 1em;
        padding: 10px 25px;
    }
    
    /* Footer 手機版 */
    .main-footer {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        gap: 15px;
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        font-size: 0.85em;
    }
}
