// ===== AppPlazaList 应用广场页面样式 =====

.app-plaza-list {
    padding: 24px 32px;
    min-height: calc(100vh - 64px);
    background: #F9FAFB;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;

    &-title {
        h3 {
            font-size: 24px;
            font-weight: 700;
            color: #1F2937;
            margin: 0 0 4px 0;
        }

        p {
            font-size: 14px;
            color: #6B7280;
            margin: 0;
        }
    }

    &-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }
}

.sort-buttons {
    display: flex;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;

    .sort-btn {
        padding: 8px 16px;
        background: #FFFFFF;
        border: none;
        border-right: 1px solid #E5E7EB;
        font-size: 14px;
        font-weight: 500;
        color: #6B7280;
        cursor: pointer;
        transition: all 0.2s ease;

        &:last-child {
            border-right: none;
        }

        &:hover {
            background: #F9FAFB;
            color: #1F2937;
        }

        &.active {
            background: #EFF6FF;
            color: #1D4ED8;
            font-weight: 600;
        }
    }
}

.filter-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #BFDBFE;
    background: #EFF6FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1D4ED8;
    cursor: pointer;
    transition: all 0.2s ease;

    &:hover {
        background: #DBEAFE;
        border-color: #93C5FD;
    }

    .iconify {
        font-size: 20px;
    }
}

@media (max-width: 1024px) {
    .app-plaza-list {
        padding: 16px 24px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;

        &-actions {
            width: 100%;
            justify-content: space-between;
        }
    }
}

@media (max-width: 768px) {
    .app-plaza-list {
        padding: 16px;
    }

    .sort-buttons {
        flex-wrap: wrap;

        .sort-btn {
            flex: 1;
            min-width: 100px;
        }
    }
}

// 分页器样式
.pagination-container {
    padding: 24px 0;
    display: flex;
    justify-content: flex-end;

    .ant-pagination {
        .ant-pagination-item {
            border-radius: 8px;
            border-color: #E5E7EB;
            transition: all 0.2s ease;

            &:hover {
                border-color: #1D4ED8;
                transform: translateY(-2px);
            }

            &.ant-pagination-item-active {
                background: #1D4ED8;
                border-color: #1D4ED8;

                a {
                    color: #FFFFFF;
                }
            }
        }

        .ant-pagination-prev,
        .ant-pagination-next {
            .ant-pagination-item-link {
                border-radius: 8px;
                border-color: #E5E7EB;
                transition: all 0.2s ease;
            }

            &:hover {
                .ant-pagination-item-link {
                    border-color: #1D4ED8;
                    color: #1D4ED8;
                }
            }
        }
    }
}
