.reg2{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(0, 0, 0, 20%);
    animation: fadeInAnimation 100ms ease-in;
    z-index: 10000;
}

@keyframes fadeInAnimation {
    from {
        background-color: rgb(0, 0, 0, 0%);
    }
    to {
        background-color: rgb(0, 0, 0, 20%);
    }
}

.reg2-inner{
    position: relative;
    background-color: #fff;
    width: 300px;
    max-width: 100%;
    padding:20px;
    text-align: center;
    border-radius: 3px;
    box-shadow: 0 0 15px 0 rgb(0, 0, 0, 30%);
    box-sizing: border-box;
    animation: fadeInAnimation2 100ms ease-in;
}

@keyframes fadeInAnimation2 {
    from {
        margin-top: -20px;
    }
    to {
        margin-top: 0;
    }
}

.reg2 .close{
    position: absolute;
    left: 100%;
    top:-10px;
    margin-left: 10px;
    color:#fff;
    font-size: 36px;
    cursor: pointer;
}
.reg2 .button{
    background-color: #337DFF;
    color:#fff;
    border:none;
    margin:10px 0;
    height: 38px;
    width: 90%;
    padding:0 16px;
    line-height: 38px;
    display: inline-block;
    cursor: pointer;
    transition: all .2s;
    border-radius: 2px;
}

.reg2 .button:hover{
    background-color: #5996FF;
}

.reg2 .qr img{
    width: 60%;
    margin-top: 10px;
}

.reg2 .detail{
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right:0;
    background-color: #fff;
    transition: all .3s ease-in;
    border-radius: 3px;
    overflow: hidden;
}

.reg2 .detail .in{
    width:300px;
    padding:30px;
    box-sizing: border-box;
}

.reg2 .detail .toggle{
    position: absolute;
    left: 15px;
    top:15px;
    font-size: 14px;
    color: #777;
    cursor: pointer;
}

.reg2 .detail .text{
    margin:20px 0;
}

.reg2 .detail .button{
    width: auto;
}
.reg2.open .detail{
    width: 100%;
}

@media screen and (max-width:600px){
    .reg2 .close{
        left: auto;
        top:-50px;
        right:0;
    }
}