/* 游戏列表页特有样式 */

/* 游戏列表区域 */
.game-list {
    flex: 1;
}

/* 游戏网格 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* 游戏卡片 */
.game-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.game-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.game-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: #1E3A8A;
    color: #FFFFFF;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
}

.game-status.coming {
    background-color: #F59E0B;
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.game-info h3 a {
    color: #111827;
    transition: color 0.3s ease;
}

.game-info h3 a:hover {
    color: #1E3A8A;
    text-decoration: none;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #6B7280;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rating {
    font-size: 16px;
    font-weight: 700;
    color: #1E3A8A;
}

.rating-stars {
    font-size: 14px;
    color: #F59E0B;
}

.game-desc {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 20px;
}

.game-actions {
    display: flex;
    gap: 10px;
}

.game-actions .btn-primary,
.game-actions .btn-secondary {
    flex: 1;
    text-align: center;
}

/* 游戏排行榜样式 */
.game-ranking {
    list-style: none;
}

.game-ranking li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #E5E7EB;
}

.game-ranking li:last-child {
    border-bottom: none;
}

.game-ranking .rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1E3A8A;
    color: #FFFFFF;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
}

.game-ranking a {
    flex: 1;
    font-size: 14px;
    color: #374151;
}

.game-ranking .rating {
    font-size: 14px;
    font-weight: 600;
    color: #1E3A8A;
}

/* 数据状态提示 */
.data-state {
    grid-column: 1 / -1;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    color: #475569;
    font-size: 14px;
}

.data-state-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1E3A8A;
    animation: pulseDot 1s ease-in-out infinite;
}

.data-state-error {
    color: #B91C1C;
    background: #FEF2F2;
    border-color: #FECACA;
}

.retry-link {
    display: inline-block;
    margin-top: 10px;
    color: #1E3A8A;
    font-weight: 600;
}

.retry-link:hover {
    text-decoration: underline;
}

.data-state-empty {
    color: #64748B;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 0.35;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 1023px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .game-actions {
        flex-direction: column;
    }
}