page {
    background-color: #f6f7fb;
}

.credits-exchange-container {
    padding: 20rpx;
    min-height: 100vh;
}

.page-title {
    font-size: 36rpx;
    font-weight: bold;
    color: #333;
    margin-bottom: 20rpx;
    text-align: center;
}

.goods-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.goods-item {
    width: 48%;
    background-color: #fff;
    border-radius: 10rpx;
    overflow: hidden;
    margin-bottom: 20rpx;
    box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
}

.goods-image {
    width: 100%;
    height: 300rpx;
    overflow: hidden;
}

.goods-image image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.goods-info {
    padding: 20rpx;
}

.goods-name {
    font-size: 26rpx;
    color: #333;
    margin-bottom: 10rpx;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 64rpx;
}

.goods-points {
    font-size: 32rpx;
    color: #e64340;
    font-weight: bold;
}

.goods-points text {
    font-size: 24rpx;
}

/* 适配不同屏幕尺寸 */
@media screen and (min-width: 768px) {
    .credits-exchange-container {
        padding: 30rpx;
    }

    .page-title {
        font-size: 44rpx;
        margin-bottom: 30rpx;
    }

    .goods-item {
        width: 32%;
        margin-bottom: 30rpx;
    }

    .goods-image {
        height: 400rpx;
    }

    .goods-name {
        font-size: 32rpx;
        height: 72rpx;
    }

    .goods-points {
        font-size: 36rpx;
    }

    .goods-points text {
        font-size: 28rpx;
    }
}