$deviceWidth: 750;

@function vmin($rpx) {
    @return #{$rpx * 100 / $deviceWidth}vmin;
}

@mixin share-reward-list-popup {
    height: vmin(1120);
    border-radius: vmin(24) vmin(24) 0 0;
    overflow-y: hidden !important;
    background: whitesmoke !important;
}

@mixin share-reward-list {
    background: rgba(245,245,245,1);
    width: 100%;
    height: 100%;
    .title {
        display: flex;
        align-items: center;
        justify-content: center;
        height: vmin(96);
        color: rgba(51,51,51,1);
        font-size: vmin(32);
        font-weight: 500;
        font-family: "PingFang SC";
        .close-icon {
            width: vmin(32);
            height: vmin(32);
            position: absolute;
            top: vmin(32);
            right: vmin(32);
            image {
                width: vmin(32);
                height: vmin(32);
            }
        }
    }
    .detail {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-height: calc(100% - 48px);
        overflow-y: scroll;
        padding: 0 vmin(20);
        .empty-detail {
            margin-top: vmin(240);
            image {
                height: vmin(176);
                width: vmin(176);
            }
            view {
                margin-top: vmin(32);
                color: rgba(153,153,153,1);
                font-size: vmin(28);
                font-weight: 400;
                font-family: "PingFang SC";
                text-align: center;
            }
        }
        .item {
            display: inline-block;
            border-radius: vmin(16);
            background: rgba(255,255,255,1);
            padding: vmin(16);
            width: 100%;
            margin-bottom: vmin(24);
            box-sizing: border-box;
            .item-title {
                display: flex;
                align-items: center;
                .status {
                    width: vmin(76);
                    height: vmin(32);
                    border-radius: vmin(4);
                    opacity: 1;
                    background: #EBF3FF;
                    color: rgba(20,114,255,1);
                    font-size: vmin(20);
                    font-weight: 500;
                    font-family: "PingFang SC";
                    text-align: center;
                    &.over {
                        background: #F5F5F5;
                        color: rgba(178,178,178,1);
                    }
                }
                .name {
                    height: vmin(40);
                    line-height: vmin(40);
                    color: #333333;
                    font-size: vmin(28);
                    font-weight: 500;
                    font-family: "PingFang SC";
                    margin-left: vmin(8);
                }
            }
            .rules-number {
                color: rgba(102,102,102,1);
                font-size: vmin(24);
                font-weight: 400;
                font-family: "PingFang SC";
                display: flex;
                justify-content: space-between;
                margin-top: vmin(8);
                .text {
                    text {
                    font-weight: 500;
                    margin: 0 vmin(8);
                    }
                }
                .number {
                    .now-num {
                        color: rgba(255,120,31,1);
                        font-size: vmin(24);
                        font-weight: 400;
                        font-family: "PingFang SC";
                    }
                }
            }
            .time-btn {
                font-weight: 400;
                font-family: "PingFang SC";
                font-size: vmin(25);
                display: flex;
                margin-top: vmin(16);
                justify-content: space-between;
                align-items: flex-end;
                .end-time {
                    font-weight: 400;
                    font-family: "PingFang SC";
                    zoom: 0.9;
                    color: #666666;
                }
                .status-btn {
                    width: vmin(112);
                    height: vmin(40);
                    border-radius: vmin(28);
                    background: linear-gradient(270deg, rgba(254,101,0,1) 0%, rgba(255,65,2,1) 100%);
                    color: #FFFFFF;
                    display: flex;
                    justify-content: center;
                    align-items: center; 
                    font-size: vmin(20);
                    font-weight: 500;
                    font-family: "PingFang SC";
                    &.no-rewards {
                        opacity: 0.4;
                    }
                    &.check-rewards {
                        border-radius: vmin(28);
                        background: transparent;
                        border: vmin(1) solid #FF781F;
                        color: #FF781F;
                    }
                }
            }
        }
    }
}

.share-reward-list {
    @include share-reward-list;
}

.share-reward-list-popup {
    @include share-reward-list-popup;
}

// 竖屏pad
@media screen and (min-width: 768px) and (orientation: portrait) {
    $deviceWidth: 1536 !global;
  
    .share-reward-list {
        @include share-reward-list;
    }
    .share-reward-list-popup {
        @include share-reward-list-popup;
    }
}
// 横屏pad
@media screen and (min-height: 768px) and (orientation: landscape) {
    $deviceWidth: 1536 !global;
   
    .share-reward-list {
        @include share-reward-list;
    }
    .share-reward-list-popup {
        @include share-reward-list-popup;
    }
}
