/* 儿童游戏合集主页面样式 */

.kids-games-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.games-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.page-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: #e8f5e9;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 400px;
}

.user-badge {
    color: #2e7d32;
    font-weight: 500;
}

.logout-link {
    color: #1976d2;
    text-decoration: none;
    font-size: 0.9rem;
}

.logout-link:hover {
    text-decoration: underline;
}

.login-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: #fff3e0;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 500px;
}

.prompt-text {
    color: #e65100;
    font-size: 0.95rem;
}

.login-link {
    color: #f57c00;
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border: 1px solid #f57c00;
    border-radius: 4px;
    transition: all 0.2s;
}

.login-link:hover {
    background: #f57c00;
    color: white;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.game-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
}

.game-name {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.game-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    text-align: center;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #999;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1976d2;
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #1976d2;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s;
}

.play-button:hover {
    background: #1565c0;
}

.play-button i {
    transition: transform 0.2s;
}

.play-button:hover i {
    transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-card {
        padding: 1.5rem;
    }
}

