.sup {
    position: absolute;
    right: -10px;
    top: -13px;
    width: 30px;
    height: 16px;
    background: rgba(255, 227, 0, 1);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 8px 8px 8px 0;
    color: #0E7442;
    font-size: 10px;
    text-align: center;
    line-height: 16px;
}

#landing {
    background: #BC2A18;
    text-align: center;

    #to-square {
        position: relative;
        width: 100%;
        height: 30px;
        background: #FF2121;
        color: #fff;
        font-size: 14px;
        line-height: 30px;
        text-align: center;
        z-index: 10;
    }

    .box-container {
        width: 100%;
    }

    .snow-deco {
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        height: 68px;
        background: url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/snow-deco.png") no-repeat;
        background-size: contain;
    }

    .main-avatar {
        width: 49px;
        border-radius: 50%;
        margin-bottom: 5px;
        margin-top: 37.5px;
    }

    .des {
        font-size: 14px;
        color: #FFDC1E;
    }

    .trans-height {
        transition: height .25s ease-in-out;
    }

    .prizes-box {
        @extend .trans-height;
        position: relative;
        height: 348px;
        background-size: 100% auto;

        .show-more {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            width: 125px;
            height: 27px;
            background: #FF2121;
            border: 2px solid rgba(255, 33, 33, 1);
            border-radius: 5px 5px 0 0;
            font-size: 13px;
            color: #fff;
            line-height: 27px;
            text-align: center;
            z-index: 20;

            img {
                margin-left: 4.5px;
                width: 10.05px;
            }
        }

        .rule-btn {
            position: absolute;
            top: 32.5px;
            left: 50%;
            transform: translateX(-50%);
            color: #FFDD1D;
            font-size: 12px;
            text-decoration: underline;
        }

        @mixin common-deco($bg) {
            content: '';
            display: block;
            width: 100%;
            background: url($bg) no-repeat;
            background-size: contain;
        }

        &::before {
            @include common-deco('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-head.png');
            height: 148.5px;
        }

        &::after {
            @include common-deco('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-footer.png');
            height: 85px;
        }

        .bg {
            @extend .trans-height;
            width: 100%;
            height: 115px;
            overflow: hidden;
            z-index: 10;
            background: url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-bg.png") repeat-y;
            background-size: 100% auto;
        }

        .inner-box {
            @extend .trans-height;
            position: absolute;
            top: 130px;
            left: 0;
            width: 100%;
            z-index: 20;
            height: 187px;
            overflow: hidden;
        }


        .prize-list {
            display: flex;
            flex-flow: wrap;
            padding: 0 57px;

            & li:nth-of-type(2n) {
                margin-right: 0;
            }

            li {
                width: 125px;
                height: 99px;
                background: rgba(255, 255, 255, 1);
                border: 2px solid rgba(255, 227, 0, 1);
                box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
                border-radius: 1px;
                margin-right: 10.5px;
                margin-bottom: 6.5px;

                img {
                    width: 90px;
                    object-fit: contain;
                }
            }
        }

        /*.fake{
            position: absolute;
            bottom: 8px;
            left: 10%;
            width: 20px;
            height: 54px;
            background: red;
            z-index: 200;
        }*/
    }

    .group {
        ul.member {
            display: flex;
            padding: 0 49px;
        }

        & li:nth-last-child(1) {
            margin-right: 0;
        }

        li {
            margin-right: 24.5px;
        }

        .avatar-wrapper {
            position: relative;

            &::after {
                content: '';
                display: block;
                position: absolute;
                bottom: 0;
                left: 50%;
                transform: translateX(-50%);
                width: 22px;
                height: 3px;
                background: #243529;
                opacity: 0.8;
                border-radius: 50%;
            }

            sup {
                @extend .sup;
            }

            img {
                width: 36px;
                height: 36px;
                border-radius: 50%;
            }
        }

        .bars {
            display: flex;
            padding-left: 37.5px;
            margin-top: 15px;

            & li:nth-child(1) {
                border-radius: 2px 0 0 2px;
            }

            & li:nth-last-child(1) {
                border-radius: 0 2px 2px 0;
                margin-right: 0;
            }

            li {
                width: 59px;
                height: 5px;
                margin-right: 1.5px;
                background: #035B34;

                &.active {
                    background: #FFDD1D;
                }
            }
        }

        &-des {
            margin-top: 27px;
            font-size: 14px;
            color: #FFE300;
        }

        .invite-btn {
            width: 320px;
            height: 44px;
            line-height: 44px;
            margin: 14.5px auto 57px;
            color: #0B7B45;
            font-size: 15px;
            background: #FFE300;
            border: 0;
            outline: 0;
            -webkit-appearance: none;
            border-radius: 3px;
            font-family: "HiraginoSansGB-W6", "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
        }
    }

}

.popup-container {
    .tip {
        font-size: 15px;
        line-height: 37px;
        color: #666;
        text-align: center;
    }
}

.popup-button {
    width: 270px;
    height: 44px;
    padding: 0;
    margin-top: 20px;
    background: #FFE319;
    border: 1px solid #090909;
    border-radius: 5px;
    line-height: 44px;
    font-size: 16px;
    color: #090909;
}

.landing-treasure-rules {
    width: 320px;

    &.popup-container {
        .title {
            font-size: 18px;
            color: #111111;
        }
    }

    .content {
        padding: 0 29px 15px;
        margin-top: 22px;
        color: #666666;
        font-size: 14px;

        li {
            margin-bottom: 5px;
        }
    }
}

.landing-join-success-wrapper {
    &.popup-container {
        width: 320px;
        text-align: center;

        .title {
            img {
                width: 54px;
                height: 54px;
                margin-bottom: 10px;
            }

            font-size: 18px;
            color: #111111;
        }
    }

    /*.tip {
        font-size: 15px;
        line-height: 37px;
        color: #666;
        text-align: center;
    }*/

    button {
        @extend .popup-button;
    }

}

.landing-create-success {
    text-align: center;

    &.popup-container {
        width: 320px;
        padding: 20px;

        .title {
            font-size: 18px;
            color: #111111;
        }
    }

    img.treasure-box {
        margin: 20px 0;
        width: 120px;
        height: 72px;
    }

    .members {
        display: flex;

        & li:nth-last-child(1) {
            margin-right: 0;
        }

        li {
            position: relative;
            margin-right: 15px;
        }

        sup {
            @extend .sup;
        }
    }

    button {
        @extend .popup-button;
    }
}

.landing-remind {
    &.popup-container {
        width: 320px;
        text-align: center;
        padding: 20px 30px;

        .title {
            font-size: 18px;
            color: #111;
            margin-bottom: 8px;
        }
    }

    img {
        margin: 18px 0 16px;
        width: 137px;
        height: 137px;
    }

    .des {
        font-size: 14px;
        color: #666;
    }
}

.landing-unpack-treasure-box {
    text-align: center;

    &.popup-container {
        width: 320px;
        padding: 20px 18px;
        top: 62px;

        .title {
            font-size: 18px;
            color: #111;
            margin-bottom: 10px;
        }
    }

    .prize-wrapper {
        width: 130px;
        height: 103px;
        margin: 0 auto 5px;
        border: 1px solid #CDCDCD;

        img {
            width: 100%;
            height: 100%;
        }
    }

    .prize-name{
        font-size: 15px;
        color: #FF232D;
        margin-bottom: 5px;
    }

    .members {
        background: #EFEFEF;
        text-align: left;
        padding: 12px;
        margin-top: 12px;

        li:nth-last-child(1){
            margin-bottom: 0;
        }

        li {
            display: flex;
            align-items: center;
            height: 25px;
            margin-bottom: 8px;
            font-size: 12px;
            line-height: 25px;

            .avatar-wrapper {
                position: relative;
                width: 25px;
                height: 25px;
                margin-right: 8px;

                sup {
                    @extend .sup;
                    top: -50%;
                    right: -80%;
                }
            }


            img {
                width: 100%;
                height: 100%;
                border-radius: 50%;
            }

            .prize-name {
                color: #090909;
                margin-bottom: 0;
            }

            .unopened {
                color: #9A9A9A;
            }
        }
    }

    button {
        @extend .popup-button;
    }
}
