/*可选样式*/
html, body {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}
html.visible, body.visible {
    overflow: visible !important;
}
#mainPage {
    overflow: hidden;
}
section.root-section, section.root-section .part-top {
    position: relative;
    display: block;
    background: transparent;
}

section.root-section .ag-container {
    position: relative;
    /*padding-top:100px;/!*test*!/*/
}

/*测试用*/
section.root-section .square {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin-top: -70px;
    background-color: #000;
}
section.root-section .square:nth-of-type(1) {
    margin-left: -200px;
}
section.root-section .square:nth-of-type(2) {
    margin-left: 100px;
}

/*内模块*/
section.root-section .inner-section-wrap {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    overflow: visible;
    background-color: transparent;
}
section.root-section .inner-section-wrap.sliding, section.root-section .inner-section-wrap.active {
    display: block;
}
section.root-section .inner-section-wrap.animate-translate-enter {
    -webkit-animation: translateExpandEnter 1s cubic-bezier(0.645, 0.045, 0.355, 1) both;
    animation: translateExpandEnter 1s cubic-bezier(0.645, 0.045, 0.355, 1) both;
}
section.root-section .inner-section-wrap.animate-translate-leave {
    -webkit-animation: translateExpandLeave 1s cubic-bezier(0.645, 0.045, 0.355, 1) both;
    animation: translateExpandLeave 1s cubic-bezier(0.645, 0.045, 0.355, 1) both;
}
section.root-section .inner-section-wrap .inner-details-content {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    visibility: hidden;
    overflow: visible;
    background-color: #fca;
}
section.root-section .inner-section-wrap.sliding .inner-details-content {
    position: absolute;
    visibility: visible;
}
section.root-section .inner-section-wrap.active .inner-details-content {
    visibility: visible;
}
@-webkit-keyframes translateExpandEnter {
    0% { margin-top: 0;}
    100% { margin-top: -87px;}
}
@keyframes translateExpandEnter {
    0% { margin-top: 0;}
    100% { margin-top: -87px;}
}
@-webkit-keyframes translateExpandLeave {
    0% { margin-top: -87px;}
    100% { margin-top: 0;}
}
@keyframes translateExpandLeave {
    0% { margin-top: -87px;}
    100% { margin-top: 0;}
}
@media (min-width: 768px) {
    @-webkit-keyframes translateExpandEnter {
        0% { margin-top: 0;}
        100% { margin-top: -100px;}
    }
    @keyframes translateExpandEnter {
        0% { margin-top: 0;}
        100% { margin-top: -100px;}
    }
    @-webkit-keyframes translateExpandLeave {
        0% { margin-top: -100px;}
        100% { margin-top: 0;}
    }
    @keyframes translateExpandLeave {
        0% { margin-top: -100px;}
        100% { margin-top: 0;}
    }
}

/*button共同样式*/
section.root-section button.popBtn {
    position: absolute;
    bottom: 40px;
    /*bottom: 60px;*/
/*    left: 0;
    z-index: 9;
    width: 100%;
    height: 63px;
    color: #6bf;
    background: none;
    border: none;
    outline: none;
    visibility: visible;
    overflow: visible;
    cursor: pointer;
    padding-left:0;
    padding-right:0;*/

    /**/
    width: 155px;
    background: #009ee2;
    left: 50%;
    transform: translateX(-50%);
    height:50px;
    border-radius: 25px;
    padding: 11px 14px;
    box-sizing: border-box;
    z-index: 2;
}
section.root-section button.popBtn span.label {
/*    display: block;
    line-height: 20px;
    margin-bottom: 40px;
    color:#fff;
    font-size:1.7rem;*/
    display: inline-block;
    margin-bottom: 0;
    line-height: 20px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    position: absolute;
    left: 38px;
    white-space: nowrap;
    padding:2px 0 0 10px;
}
section.root-section button.popBtn span.icon {
/*    display: -webkit-box;
    display: flex;
    position: absolute;
    bottom: 0;
    left: 50%;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    background: #009ee2;
    border-radius: 50%;*/
    display: -webkit-box;
    display: flex;
    position: relative;
    bottom: 0;
    left: 0;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    width: 24px;
    height: 24px;
    margin-left: 0;
    border: 1px solid #fff;
    background: none;
    border-radius: 50%;
    float: left;
}
section.root-section button.btn-expand:hover span.label {
    color: #fff;
}
section.root-section button.btn-expand:hover span.icon{
    background-color: #fff;
}
section.root-section button.popBtn span.icon svg {
    width: 14px;
    height: 14px;
    fill: #fff;
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
}
.btn-easeing {
    -webkit-transition: all 1s ease; /*cubic-bezier(0.645, 0.045, 0.355, 1)*/
    transition: all 1s ease;
}


/*button 关闭样式*/
button.closeBtn {
    position: absolute;
    bottom: 64px;
    z-index: 99;
    border: none;
    outline: none;
    visibility: visible;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
    width: 50px;
    background: #009ee2;
    margin: 0 auto;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform:translateX(-50%);
    height: 50px;
    border-radius: 25px;
    padding: 11px 12px;
}

button.closeBtn span.label {
    display: inline-block;
    margin-bottom: 0;
    line-height: 20px;
    padding-left: 10px;
    font-size: 17px;
    font-weight: 600;
    color:#17171f;
    opacity:0;
    position: absolute;
    left: 38px;
    white-space:nowrap;
}
button.closeBtn span.icon {
    display: -webkit-box;
    display: flex;
    position: relative;
    bottom: 0;
    left: 0;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    width: 24px;
    height: 24px;
    margin-left: 0;
    border:1px solid transparent;
    background:none;
    border-radius: 50%;
    float:left;
}

button.closeBtn span.icon svg {
    height:26px;
    width:26px;
    fill:#17171f;
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
}
.btn-easeing {
    -webkit-transition: all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.button-easeing{
    -webkit-transition: all .445s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: all .445s cubic-bezier(0.645, 0.045, 0.355, 1);
}
/*button 全展开*/

button.closeBtn.active span.icon{
    border-color:#17171f;
}
button.closeBtn.active span.label{
    transition:all .2s .2s ease;
    opacity:1;
}
button.closeBtn.active span.icon svg{
    width:12px;
    height:12px;
}

/*关闭的button*/
button.btn-stuck-bottom {
    top: auto;
    bottom: 60px;
}
button.btn-fixed {
    position: fixed;
}
button.section-btn.closeBtn{
    bottom:40px;
    transition-duration: .3s;
    -webkit-transition-duration: .3s;
    transition-timing-function: ease-out;
    -webkit-transition-timing-function: ease-out;
    transform:translate(-50%,90px);
    -webkit-transform:translate(-50%,90px);
}
button.section-btn.closeBtn span.icon{
    -webkit-transform:rotate(45deg);
    transform:rotate(45deg);
}
button.section-btn.closeBtn.active{
    padding:11px 14px;
    width:112px;
}
.mainPage.modal-open button.section-btn.closeBtn{
    -webkit-transform:translate(-50%,0);
    transform:translate(-50%,0);
}









/*必须引入的样式*/
.ag-container {
    position: relative;
}
.ag-container .box {
    -webkit-transition: all 2s ease;
    transition: all 2s ease;
}
.ag-animate {
    position: relative;
    transition-timing-function: ease-in;
    -webkit-transition-timing-function: ease-in;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/*弹出框样式*/

section.root-section button.modal-btn{
    position: absolute;
    bottom: 64px;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 63px;
    color: #6bf;
    background: none;
    border: none;
    outline: none;
    visibility: visible;
    overflow: visible;
    cursor: pointer;
}
#mainPage .main-wrap{
    position:relative;
    z-index: 1;
    /*padding-top:50px;*//*留出head边距*/
}
#mainPage .shadow-wrap{
    background: rgba(0,0,0,0.4);
    position: fixed;
    z-index: 2;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}
#mainPage .modal-wrap{
    position: fixed;
    z-index: 3;
    display: none;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    background:#eee;
    -webkit-transform: translateY(100vh);  /*解决IE展开没动画*/
    -moz-transform: translateY(100vh);
    -ms-transform: translateY(100%);
    -o-transform: translateY(100vh);
    transform: translateY(100%);
}

/*第二层页面*/
#mainPage .modal-wrap{

}
#mainPage.modal-will-open .modal-wrap{
    display:block;
    /*position:relative;*/
    -webkit-animation:ani-modal-in 0.6s ease forwards;
    -o-animation:ani-modal-in 0.6s ease forwards;
    animation: ani-modal-in 0.6s ease forwards;
}
#mainPage.modal-open .modal-wrap{
    display:block;
    position:relative;
    transform:none;
}
#mainPage.modal-will-close .modal-wrap{
    display:block;
    -webkit-animation: ani-modal-out 0.6s ease forwards;
    -o-animation: ani-modal-out 0.6s ease forwards;
    animation: ani-modal-out 0.6s ease forwards;
    /*transform:translateY(calc(100vh + 2px));*/
    /*transition:transform 1s ease;*/
}
#mainPage.modal-animating  .modal-wrap{
    will-change:transform;
    -webkit-transform: translateY(calc(100vh + 2px));
    -moz-transform: translateY(calc(100vh + 2px));
    -ms-transform: translateY(calc(100vh + 2px));
    -o-transform: translateY(calc(100vh + 2px));
    transform: translateY(calc(100vh + 2px));
}
@-ms-keyframes ani-modal-in {
    0%{
        -webkit-transform: translateY(calc(100vh + 2px));
        -moz-transform: translateY(calc(100vh + 2px));
        -ms-transform: translateY(calc(100vh + 2px));
        -o-transform: translateY(calc(100vh + 2px));
        transform:translateY(calc(100vh + 2px));
    }
    100%{
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        transform: none;
    }
}
@-moz-keyframes ani-modal-in {
    0%{
        -webkit-transform: translateY(calc(100vh + 2px));
        -moz-transform: translateY(calc(100vh + 2px));
        -ms-transform: translateY(calc(100vh + 2px));
        -o-transform: translateY(calc(100vh + 2px));
        transform:translateY(calc(100vh + 2px));
    }
    100%{
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        transform: none;
    }
}
@-webkit-keyframes ani-modal-in {
    0%{
        -webkit-transform: translateY(calc(100vh + 2px));
        -moz-transform: translateY(calc(100vh + 2px));
        -ms-transform: translateY(calc(100vh + 2px));
        -o-transform: translateY(calc(100vh + 2px));
        transform:translateY(calc(100vh + 2px));
    }
    100%{
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        transform: none;
    }
}
@keyframes ani-modal-in {
    0%{
        -webkit-transform: translateY(calc(100vh + 2px));
        -moz-transform: translateY(calc(100vh + 2px));
        -ms-transform: translateY(calc(100vh + 2px));
        -o-transform: translateY(calc(100vh + 2px));
        transform:translateY(calc(100vh + 2px));
    }
    100%{
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        transform: none;
    }
}
@-ms-keyframes ani-modal-out {
    0%{
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        transform: none;
    }
    100%{
        -webkit-transform: translateY(calc(100vh + 2px));;
        -moz-transform: translateY(calc(100vh + 2px));;
        -ms-transform: translateY(calc(100vh + 2px));;
        -o-transform: translateY(calc(100vh + 2px));;
        transform:translateY(calc(100vh + 2px));
    }
}
@-moz-keyframes ani-modal-out {
    0%{
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        transform: none;
    }
    100%{
        -webkit-transform: translateY(calc(100vh + 2px));;
        -moz-transform: translateY(calc(100vh + 2px));;
        -ms-transform: translateY(calc(100vh + 2px));;
        -o-transform: translateY(calc(100vh + 2px));;
        transform:translateY(calc(100vh + 2px));
    }
}
@-webkit-keyframes ani-modal-out {
    0%{
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        transform: none;
    }
    100%{
        -webkit-transform: translateY(calc(100vh + 2px));;
        -moz-transform: translateY(calc(100vh + 2px));;
        -ms-transform: translateY(calc(100vh + 2px));;
        -o-transform: translateY(calc(100vh + 2px));;
        transform:translateY(calc(100vh + 2px));
    }
}
@keyframes ani-modal-out {
    0%{
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        transform: none;
    }
    100%{
        -webkit-transform: translateY(calc(100vh + 2px));;
        -moz-transform: translateY(calc(100vh + 2px));;
        -ms-transform: translateY(calc(100vh + 2px));;
        -o-transform: translateY(calc(100vh + 2px));;
        transform:translateY(calc(100vh + 2px));
    }
}




/*主页面*/
#mainPage.modal-will-open .main-wrap{
    -webkit-animation: ani-bg-in 0.6s ease forwards;
    -o-animation: ani-bg-in 0.6s ease forwards;
    animation: ani-bg-in 0.6s ease forwards;
}
#mainPage.modal-will-close .main-wrap{
    -webkit-animation: ani-bg-out 0.6s ease forwards;
    -o-animation: ani-bg-out 0.6s ease forwards;
    animation: ani-bg-out 0.6s ease forwards;
}
#mainPage.modal-open:not(.modal-will-open) .main-wrap{
    display:none;
}
@-ms-keyframes ani-bg-in {
    0%{
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
    100%{
        -webkit-transform: scale(0.9);
        -moz-transform: scale(0.9);
        -ms-transform: scale(0.9);
        -o-transform: scale(0.9);
        transform: scale(0.9);
    }
}
@-moz-keyframes ani-bg-in {
    0%{
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
    100%{
        -webkit-transform: scale(0.9);
        -moz-transform: scale(0.9);
        -ms-transform: scale(0.9);
        -o-transform: scale(0.9);
        transform: scale(0.9);
    }
}
@-webkit-keyframes ani-bg-in {
    0%{
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
    100%{
        -webkit-transform: scale(0.9);
        -moz-transform: scale(0.9);
        -ms-transform: scale(0.9);
        -o-transform: scale(0.9);
        transform: scale(0.9);
    }
}
@keyframes ani-bg-in {
    0%{
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
    100%{
        -webkit-transform: scale(0.9);
        -moz-transform: scale(0.9);
        -ms-transform: scale(0.9);
        -o-transform: scale(0.9);
        transform: scale(0.9);
    }
}
@-ms-keyframes ani-bg-out{
    0%{
        -webkit-transform: scale(0.9);
        -moz-transform: scale(0.9);
        -ms-transform: scale(0.9);
        -o-transform: scale(0.9);
        transform: scale(0.9);
    }
    100%{
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
}
@-moz-keyframes ani-bg-out{
    0%{
        -webkit-transform: scale(0.9);
        -moz-transform: scale(0.9);
        -ms-transform: scale(0.9);
        -o-transform: scale(0.9);
        transform: scale(0.9);
    }
    100%{
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
}
@-webkit-keyframes ani-bg-out{
    0%{
        -webkit-transform: scale(0.9);
        -moz-transform: scale(0.9);
        -ms-transform: scale(0.9);
        -o-transform: scale(0.9);
        transform: scale(0.9);
    }
    100%{
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
}
@keyframes ani-bg-out{
    0%{
        -webkit-transform: scale(0.9);
        -moz-transform: scale(0.9);
        -ms-transform: scale(0.9);
        -o-transform: scale(0.9);
        transform: scale(0.9);
    }
    100%{
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
}



/*黑阴影*/
#mainPage.modal-will-open .shadow-wrap{
    -webkit-animation: ani-shadow-in 0.6s ease forwards;;
    -o-animation: ani-shadow-in 0.6s ease forwards;;
    animation:ani-shadow-in 0.6s ease forwards;
}
#mainPage.modal-will-close .shadow-wrap{
    -webkit-animation: ani-shadow-out 0.6s ease forwards;
    -o-animation: ani-shadow-out 0.6s ease forwards;
    animation: ani-shadow-out 0.6s ease forwards;
}
@-ms-keyframes ani-shadow-in {
    from{opacity:0;filter:alpha(opacity=0)}
    to{opacity:1;filter:alpha(opacity=100)}
}
@-moz-keyframes ani-shadow-in {
    from{opacity:0;filter:alpha(opacity=0)}
    to{opacity:1;filter:alpha(opacity=100)}
}
@-webkit-keyframes ani-shadow-in {
    from{opacity:0;filter:alpha(opacity=0)}
    to{opacity:1;filter:alpha(opacity=100)}
}
@keyframes ani-shadow-in {
    from{opacity:0;filter:alpha(opacity=0)}
    to{opacity:1;filter:alpha(opacity=100)}
}
@-ms-keyframes ani-shadow-out {
    from{opacity:1;filter:alpha(opacity=100)}
    to{opacity:0;filter:alpha(opacity=0)}
}
@-moz-keyframes ani-shadow-out {
    from{opacity:1;filter:alpha(opacity=100)}
    to{opacity:0;filter:alpha(opacity=0)}
}
@-webkit-keyframes ani-shadow-out {
    from{opacity:1;filter:alpha(opacity=100)}
    to{opacity:0;filter:alpha(opacity=0)}
}
@keyframes ani-shadow-out {
    from{opacity:1;filter:alpha(opacity=100)}
    to{opacity:0;filter:alpha(opacity=0)}
}


/*learn more对应显示页面*/
#mainPage .modal-wrap .modal-inner{
    display: none;
}
#mainPage .modal-wrap .modal-inner.active{
    display:block;
}

