.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    width: 100%;
    height: 100%;
    -webkit-transition-property: background-color;
    transition-property: background-color;
    -webkit-transition-duration: 300ms;
    transition-duration: 300ms;
    display: -webkit-box;
    display: -webkit-flex; /* 新版本语法： Chrome 21+ */
    display: flex; /* 新版本语法： Opera 12.1, Firefox 22+ */
    /* 新版本语法 */
        
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center; /* 新版本语法 */
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}
.modal.modal-active {
    background-color: rgba(0, 0, 0, .6);
}
.modal.modal-popup {
    background: none;
    height: auto;
    top: 50px;
    bottom: auto;
}
.modal-dialog {
    text-align: center;
    
    opacity: 0;
    min-width: 270px;
    max-width: 90%;
    border-radius: 10px;
    overflow: hidden;
}
.modal-loading {
    margin-bottom: 10px;
    width: 50px;
    height: 50px;
    background: url(loading.gif);
    display: inline-block;
}
.modal-dialog, .popup, .modal-img > img {
    -webkit-transform: translate(0,100%) translateZ(0);
    transform: translate(0,100%) translateZ(0);
    -webkit-transition-property: -webkit-transform, opacity;
    transition-property: transform, opacity;
    -webkit-transition-duration: 300ms;
    transition-duration: 300ms;
}
.modal-img {
}
.modal-img > img {
    display: block;
    opacity: 0;
    max-width: 100%;
    max-height: 100%;
    background-image: url(loader.gif);
    background-position: 50% 50%;
    background-repeat: no-repeat;
}
.modal-active .modal-dialog, .modal-active .popup, .modal-active > img {
    opacity: 1;
    -webkit-transform:translate(0,0) translateZ(0);
    transform:translate(0,0) translateZ(0);
}
.modal .modal-hd {
    height: 48px;
    line-height: 48px;
    font-size: 1.8rem;
    font-weight: 500;
    font-size: 16px;
    background: #21B3EC;
    color: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.modal .modal-bd {
    /*padding: 15px 10px;*/
    padding: 30px 10px;
    line-height: 24px;
    text-align: center;
    background-color: #fff;
    -webkit-transform: translate(0,0) translateZ(0); 
    transform: translate(0,0) translateZ(0); 
}
.modal .modal-bd input{
    border: 1px solid #ccc;
    padding:10px;
    font-size: 16px;
    border-radius: 5px;
}

.modal-footer {
    height: 44px;
    overflow: hidden;
    width: 100%;
    display: -webkit-box;display: -webkit-flex;display: flex;
    background-color: #fff;
}
.modal-footer:empty {
    display: none;
}
.modal-btn {
    display: block;
    -webkit-box-flex:1;-webkit-flex:1;flex:1;
    padding: 0 5px;
    height: 44px;
    font-size: 16px;
    line-height: 44px;
    text-align: center;
    color: #22B4EB;
    word-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    border-right: 1px solid #dedede;
    border-top: 1px solid #dedede;
}
.modal-btn:last-child {
    border-right: none;
}
.popup {
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
    padding: 6px 12px;
    border-radius: 4px;
    opacity: 0;
    max-width: 80%;
}
.popup-info {
    background: rgba(0,186,255,.7);
}
.popup-success {
    background: rgba(180,210,45,.9);
}
.popup-danger {
    background:rgba(0, 0, 0, 0.7);
}
.popup-warning {
    background: rgba(255,80,0,.7);
}