$deviceWidth: 750;

@function vmin($rpx) {
    @return #{$rpx * 100 / $deviceWidth}vmin;
}

text {
    display: inline;
}

@mixin activity-detail {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    background: #f5f5f5;
    font-size: vmin(28);
    color: #666;

    .heading {
        display: flex;
        align-items: center;
        justify-content: center;
        height: vmin(100);
        font-size: vmin(36);
        font-weight: 500;
        color: #232323;
        position: relative;
    }

    .scroll-box {
        box-sizing: border-box;
        width: 100%;
        height: calc(100% - 260rpx);
        overflow-x: hidden;
        overflow-y: auto;

        .warning-bar {
            box-sizing: border-box;
            display: flex;
            align-items: center;
            width: 100%;
            height: vmin(80);
            background: #fff6ea;

            image {
                width: vmin(32);
                height: vmin(32);
                margin-left: vmin(32);
                margin-right: vmin(16);
            }

            text {
                font-size: vmin(24);
                font-weight: 500;
                color: #FF781F;
                white-space: nowrap;
            }
        }

        .content-detail {
            box-sizing: border-box;
            width: 100%;
            padding: vmin(16) vmin(32);

            .share-panel {
                display: flex;
                align-items: center;
                flex-direction: column;
                padding: 0 vmin(32);
                background: #fff;
                border-radius: vmin(8);
                margin-bottom: vmin(16);
            }

            .reward-panel {
                padding: 0 vmin(32) vmin(16) vmin(32);
                background: #fff;
                border-radius: vmin(8);

                .prize-item {
                    padding: vmin(16) 0;

                    &:first-child {
                        padding-top: 0;
                    }
                }

                .share-prompt {
                    font-weight: 500;
                    color: #333;

                    .num {
                        color: #FF4747;
                        padding: 0 vmin(10);
                    }
                }
            }

            .panel-item {
                display: flex;
                justify-content: space-between;
                align-items: center;
                position: relative;
                width: 100%;
                height: vmin(104);

                &:not(:last-child) {
                    &:after {
                        content: "";
                        position: absolute;
                        bottom: 0;
                        left: 50%;
                        width: 100%;
                        height: vmin(2);
                        background: #efefef;
                        -webkit-transform: translateX(-50%);
                        transform: translateX(-50%);
                    }
                }

                .label {
                    width: vmin(160);
                    font-weight: 500;
                    color: #333;
                }

                .detail {
                    width: calc(100% - 160rpx);
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
            }
        }
    }

    .footer {
        box-sizing: border-box;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: vmin(160);
        display: flex;
        justify-content: space-evenly;
        padding: vmin(24) 0 vmin(56) 0;
        background: #fff;

        .cancel {
            width: vmin(320);
            height: vmin(80);
            font-weight: 500;
            font-size: vmin(28);
        }

        .send {
            width: vmin(320);
            height: vmin(80);
            background: #1472FF;
            font-weight: 500;
            font-size: vmin(28);
        }
    }

    .empty {
        width: 100%;
        height: calc(100% - 104rpx);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;

        .empty-icon {
            width: vmin(176);
            height: vmin(176);
            margin-bottom: vmin(24);
        }

        .desc {
            color: #999;
            margin: vmin(4) 0;
        }
    }

}

.activity-detail {
    @include activity-detail;
}

// 竖屏pad
@media screen and (min-width: 768px) and (orientation: portrait) {
    $deviceWidth: 1536 !global;
  
    .activity-detail {
        @include activity-detail;
    }
}
// 横屏pad
@media screen and (min-height: 768px) and (orientation: landscape) {
    $deviceWidth: 1536 !global;
   
    .activity-detail {
        @include activity-detail;
    }
}