.header {
    padding: 20rpx 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header_top {
    width: 50rpx;
    height: 50rpx;
}

.header_sum {
    font-size: 55rpx;
    font-weight: bold;
    color: #333;
}

.header_dec {
    font-size: 20rpx;
    color: #333;
}

.center{
    padding: 20rpx 70rpx;
    display: flex;
    justify-content: space-between ;
    align-items: center;
    font-size: 24rpx;
}

.center_item{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.image_item{
    width: 70rpx;
    height: 70rpx;
    background-color: #f0f7ff;
    border-radius: 20rpx;
    margin-bottom: 10rpx;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image_item image{
    width: 45rpx;
    height: 45rpx;
}

/* 分类导航样式 */
.category-nav {
    border-bottom: 1rpx solid #f0f0f0;
    background-color: #fff;
}

.category-scroll {
    white-space: nowrap;
    padding: 0 20rpx;
    margin-top: 20rpx;
}

.category-item {
    display: inline-block;
    padding: 20rpx 30rpx;
    font-size: 28rpx;
    color: #333;
    position: relative;
}

.category-item.active {
    color: #1e88e5;
    font-weight: 500;
}

.category-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100rpx;
    height: 4rpx;
    background-color: #1e88e5;
    border-radius: 2rpx;
}

/* 商品列表样式 */
.product-list {
    padding: 20rpx;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20rpx;
}

.product-item {
    background-color: #fff;
    border-radius: 12rpx;
    padding: 20rpx;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-image {
    width: 300rpx;
    height: 300rpx;
    border-radius: 8rpx;
    margin-bottom: 16rpx;
}

.product-title {
    font-size: 24rpx;
    color: #333;
    margin-bottom: 12rpx;
    width: 100%;
    line-height: 32rpx;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16rpx;
}

.product-points {
    font-size: 28rpx;
    font-weight: bold;
    color: #ff4444;
}

.product-sold {
    font-size: 20rpx;
    color: #999;
}

.exchange-btn {
    width: 100%;
    height: 60rpx;
    background-color: #ff4444;
    color: #fff;
    font-size: 24rpx;
    font-weight: 500;
    border-radius: 30rpx;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 加载状态样式 */
.loading, .no-more {
    text-align: center;
    padding: 30rpx 0;
    font-size: 24rpx;
    color: #999;
    grid-column: 1 / -1;
}