/* 游戏列表页专用样式 */
body.list-page {
    background-color: #f8fafc;
}

/* 分类标签样式 */
.category-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 15px 20px;
    background-color: #fff;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    gap: 12px;
}

.category-tabs::-webkit-scrollbar {
    height: 6px;
    display: block;
}

.category-tabs::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
    transition: background 0.3s;
}

.category-tabs::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.category-tab {
    padding: 10px 22px;
    background-color: #f1f5f9;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.category-tab.active {
    background-color: #8b5cf6;
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.category-tab:hover:not(.active) {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 游戏列表容器 */
.game-list {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 0 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 3px solid #8b5cf6;
}

.list-header {
    padding: 18px 20px;
    background-color: #f8fafc;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-header .more {
    font-size: 14px;
    color: #8b5cf6;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.list-header .more:hover {
    color: #7c3aed;
    transform: translateX(3px);
}

/* 列表项样式 */
.list-item {
    display: flex;
    align-items: center;
    padding: 20px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #8b5cf6;
    transform: scaleY(0);
    transition: transform 0.3s;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background-color: #f8fafc;
    transform: translateX(5px);
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.list-item:hover::before {
    transform: scaleY(1);
}

.list-item .game-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 18px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.list-item:hover .game-img {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: scale(1.05);
}

.list-item .game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}

.list-item:hover .game-img img {
    transform: scale(1.1);
}

.list-item .game-info {
    flex: 1;
    min-width: 0;
}

.list-item .game-name {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.list-item:hover .game-name {
    color: #8b5cf6;
}

.list-item .game-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-item .game-meta {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.list-item .game-meta .tag {
    background-color: #f3e8ff;
    color: #8b5cf6;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
}

/* 下载按钮样式 */
.download-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: #8b5cf6;
    color: #fff;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 20px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.download-btn:hover {
    background-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.download-btn:active {
    transform: translateY(0);
}

/* 分页样式 */
.tspage {
    font-size: 14px !important;
    background-color: #fff !important;
    clear: both !important;
    height: auto !important;
    overflow: hidden !important;
    line-height: 32px !important;
    padding: 18px 20px !important;
    text-align: center !important;
    border-radius: 12px !important;
    margin: 20px 0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

.tspage i {
    font-style: normal;
    font-weight: 500;
}

.tspage a {
    color: #64748b !important;
    text-decoration: none;
    padding: 10px 16px;
    margin: 0 6px;
    display: inline-block;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    border: 1px solid transparent;
}

.tspage a:hover {
    color: #4a6cf7 !important;
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

/* 当前页码样式 */
.tspage b {
    color: #fff !important;
    background-color: #4a6cf7 !important;
    padding: 10px 16px !important;
    margin: 0 6px !important;
    display: inline-block !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    box-shadow: 0 3px 12px rgba(74, 108, 247, 0.3) !important;
    transition: all 0.3s !important;
}

.tspage b:hover {
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.4) !important;
}
/* 隐藏不需要的元素 */
.tspage .tsp_count,
.tspage i:not(.tsp_next i):not(.tsp_prev i),
.tspage .tsp_end,
.tspage .tsp_first,
.tspage a.tsp_more,
.tspage a.tsp_end,
.tspage a.tsp_first,
.tspage .tsp_change {
    display: none !important;
}

/* 确保导航区域正常显示 */
.tspage .tsp_nav {
    width: 100%;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-tabs {
        padding: 10px 12px;
    }
    
    .category-tab {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .list-header {
        padding: 12px 15px;
    }
    
    .list-item {
        padding: 15px;
    }
    
    .list-item .game-img {
        width: 60px;
        height: 60px;
        margin-right: 12px;
    }
    
    .list-item .game-name {
        font-size: 15px;
    }
    
    .download-btn {
        padding: 6px 16px;
        margin-left: 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .game-list {
        border-radius: 10px;
    }
    
    .list-item {
        padding: 12px;
    }
    
    .list-item .game-img {
        width: 55px;
        height: 55px;
    }
    
    .list-item .game-meta {
        display: none;
    }
}