/* 列表页专用样式 */

/* 顶部栏 - 列表页样式 */
.page-title {
    flex: 1;
    text-align: center;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
}

.back-btn:active {
    opacity: 0.7;
}

/* 顶部横幅 */
.page-banner {
    background: linear-gradient(135deg, #ff9966 0%, #ff6b6b 50%, #ff5e62 100%);
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-banner::before,
.page-banner::after {
    content: "";
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.page-banner::before {
    width: 200px;
    height: 200px;
    top: -100px;
    left: -50px;
}

.page-banner::after {
    width: 150px;
    height: 150px;
    bottom: -75px;
    right: -30px;
}

.page-banner p {
    position: relative;
    z-index: 1;
    color: #fff;
    margin: 0;
}

.page-banner p:first-child {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-banner p:last-child {
    font-size: 14px;
    opacity: 0.95;
}

/* 主内容区 */
.list-main {
    padding: 0;
    min-height: calc(100vh - 200px);
    background-color: #f5f5f5;
}

/* 游戏分类区域 */
.category-section {
    background-color: #fff;
    padding: 15px 12px;
    margin-bottom: 10px;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.title-icon {
    color: #ff6b6b;
    font-size: 14px;
    margin-right: 6px;
}

.section-title-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    padding: 6px 14px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.category-tag.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    border-color: #ff6b6b;
}

.category-tag:active {
    transform: scale(0.95);
}

/* 游戏列表 */
.game-list {
    background-color: #fff;
    padding: 0 12px;
}

.game-list-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.3s ease;
}

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

.game-list-item:active {
    background-color: #fafafa;
}

.game-list-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 14px;
    overflow: hidden;
    margin-right: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.game-list-info {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
}

.game-list-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-list-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.game-category {
    color: #999;
}

.game-date {
    color: #ff6b6b;
}

.game-list-desc {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-list-btn {
    flex-shrink: 0;
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 18px;
    transition: all 0.3s ease;
}

.game-list-btn:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* 加载更多 */
.load-more {
    padding: 20px 15px;
    text-align: center;
    background-color: #f5f5f5;
}

.load-more-btn {
    width: 100%;
    padding: 12px 0;
    background-color: #fff;
    color: #666;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.load-more-btn:active {
    background-color: #f5f5f5;
}

.load-more-btn.loading {
    color: #999;
}

.load-more-btn.loading::after {
    content: "...";
    display: inline-block;
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: ".";
    }
    40% {
        content: "..";
    }
    60%, 100% {
        content: "...";
    }
}

/* 响应式适配 - 小屏幕 */
@media screen and (max-width: 360px) {
    .page-banner p:first-child {
        font-size: 24px;
    }
    
    .game-list-icon {
        width: 65px;
        height: 65px;
    }
    
    .game-list-name {
        font-size: 14px;
    }
    
    .game-list-desc {
        font-size: 11px;
    }
    
    .game-list-btn {
        padding: 6px 16px;
        font-size: 12px;
    }
    
    .category-tag {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* 响应式适配 - 大屏幕 */
@media screen and (min-width: 414px) {
    .game-list-icon {
        width: 80px;
        height: 80px;
    }
    
    .game-list-name {
        font-size: 16px;
    }
}

/* 响应式适配 - 平板 */
@media screen and (min-width: 768px) {
    .page-banner,
    .list-main {
        max-width: 750px;
        margin-left: auto;
        margin-right: auto;
    }
}
