page {
    background: #f3f4f5;
}

// mt0,mr0,mb0,ml0 --> mt100,mr100,mb100,ml100
@for $i from 0 through 100 {
    .mt#{$i} {
        margin-top: #{$i}rpx;
    }

    .mr#{$i} {
        margin-right: #{$i}rpx;
    }

    .mb#{$i} {
        margin-bottom: #{$i}rpx;
    }

    .ml#{$i} {
        margin-left: #{$i}rpx;
    }

    .pt#{$i} {
        padding-top: #{$i}rpx;
    }

    .pr#{$i} {
        padding-right: #{$i}rpx;
    }

    .pb#{$i} {
        padding-bottom: #{$i}rpx;
    }

    .pl#{$i} {
        padding-left: #{$i}rpx;
    }
}

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

.hide-txt {
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: break-all;
    -webkit-line-clamp: 1;
}

.clamp-txt {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    word-break: break-all;
}

.fixed-btn {
    position: fixed;
    right: 80rpx;
    bottom: 200rpx;
    width: 126rpx;
    height: 126rpx;
    background: $uni-theme-white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.2);

    image {
        height: 66rpx;
        width: 66rpx;
    }
}


.grid-card {
    border-radius: 12rpx;
    margin-bottom: 20rpx;

    .grid-card-title {
        padding: 20rpx 0;
        font-size: 28rpx;
        color: #111;
        font-weight: 700;
    }

    .grid-card-content-4,
    .grid-card-content-3,
    .grid-card-content-5,
    .grid-card-content-6 {
        display: grid;
        border-left: 2rpx solid #ccc;
        border-top: 2rpx solid #ccc;
        font-size: 24rpx;
        grid-template-columns: 1fr 1fr 1fr 1fr;

        .item {
            padding: 0 4rpx;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            border-bottom: 2rpx solid #ccc;
            border-right: 2rpx solid #ccc;
            min-height: 100rpx;
            background: $uni-theme-white;
        }

        .item-title {
            background: unset;
        }
    }

    .grid-card-content-3 {
        grid-template-columns: 1fr 2fr 2fr;
    }

    .grid-card-content-5 {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }

    .grid-card-content-6 {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    }
}


.index {

    .header {
        margin: 0 30rpx;
        background: $uni-theme-white;
        border-radius: 12rpx;
        background: $uni-color-primary;
        padding: 30rpx 10rpx 40rpx;
        display: grid;
        grid-gap: 60rpx 0;
        grid-template-columns: 1fr 1fr 1fr;

        .header-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 28rpx;

            .header-item-value {
                font-size: 40rpx;
                margin-bottom: 10rpx;
            }
        }
    }
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    background: $uni-theme-blue;
    color: #fff;
    height: 80rpx;
    border-radius: 12rpx;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 40rpx;
    background: $uni-theme-blue;
    color: #fff;
    height: 60rpx;
    font-size: 24rpx;
    border-radius: 12rpx;
}