/* index.css */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header.hero {
    text-align: center;
    padding: 40px 0;
}

/* Poki 风格网格 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.game-card {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #1e293b;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 2;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 悬停标题遮罩 */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .overlay {
    opacity: 1;
}

.game-title {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
	text-align: center;
}

/* 在 index.css 中补充 */
.home-section { margin-bottom: 50px; }
.section-title { 
	font-size: 1.5rem; 
	margin-bottom: 20px; 
	border-left: 5px solid var(--accent); 
	padding-left: 15px;
	color: #fff;
}