/* 排行榜页面样式 */
.ranking-header {
    background: var(--gradient-primary);
    padding: 3rem 0;
    color: white;
}

.ranking-tabs {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--accent-color);
}

.ranking-filters {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    width: 200px;
}

/* 排行榜列表样式 */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.ranking-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rank-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    width: 60px;
    text-align: center;
}

.game-cover {
    width: 120px;
    height: 160px;
    margin: 0 1.5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    flex: 1;
}

.game-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.game-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.2rem 0.8rem;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.game-stats {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.stat-item i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.stat-item:not(:last-child)::after {
    content: '';
    width: 1px;
    height: 12px;
    background: #ddd;
    margin-left: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ranking-item {
        flex-direction: column;
        text-align: center;
    }

    .game-cover {
        margin: 1rem 0;
    }

    .game-meta,
    .game-stats {
        justify-content: center;
    }

    .game-tags {
        justify-content: center;
        flex-wrap: wrap;
    }

    .filter-options {
        justify-content: center;
    }
} 

/* 加载更多按钮样式 */
.load-more-container {
    text-align: center;
    padding: 2rem 0;
}

.btn-load-more {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-load-more:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.btn-load-more .fa-spinner {
    margin-left: 0.5rem;
}

/* 排名变化指示器样式 */
.rank-change {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.rank-change.up {
    background: rgba(40, 199, 111, 0.2);
    color: #28c76f;
}

.rank-change.down {
    background: rgba(234, 84, 85, 0.2);
    color: #ea5455;
}

/* 游戏平台图标样式优化 */
.game-platforms {
    display: flex;
    gap: 0.5rem;
}

.game-platforms span {
    font-size: 1.2rem;
    color: #666;
}

/* 添加游戏描述的样式 */
.game-desc {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 优化排行项的悬停效果 */
.ranking-item {
    position: relative;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* 添加加载状态样式 */
.btn-load-more.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-load-more.loading span {
    display: none;
}

.btn-load-more.loading .fa-spinner {
    display: inline-block;
} 

/* 更新游戏操作按钮样式 */
.game-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 160px;
    align-items: flex-end;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.btn-wishlist {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f1f1f1;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    font-size: 1.2rem;
}

.btn-wishlist:hover {
    background: #ffe6e8;
    color: #ff4757;
    transform: scale(1.1);
}

.btn-wishlist.active {
    background: #ff4757;
    color: white;
}

/* 添加爱心图标动画效果 */
.btn-wishlist i {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.btn-wishlist:hover i {
    transform: scale(1.2);
}

.btn-wishlist.active i {
    animation: heartBeat 1.2s ease;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

.game-price {
    text-align: right;
}

.price-tag {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.price-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.original-price {
    text-decoration: line-through;
    color: #666;
    font-size: 0.9rem;
}

.discount {
    background: #ff4757;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .game-actions {
        width: 100%;
        align-items: center;
        margin-top: 1rem;
    }

    .action-buttons {
        width: 100%;
        justify-content: center;
    }

    .btn-download {
        flex: 1;
        justify-content: center;
    }
} 