﻿/*-------------index-老師------------------*/
.index-teacher-block{
    width: 100%;
    display: block;
    padding: 100px 0;
    position: relative;
}
.index-teacher-box{
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    position: relative;
    z-index: 3;
}
.index-title-box{
    display: block;
    font-size: 0;
}
.index-title-box i{
    display: inline-block;
    vertical-align: middle;
    font-size: 22px; 
}
.index-title{
    display: inline-block;
    vertical-align: middle;
    font-size: 22px;
    letter-spacing: 1px;
    padding: 0 10px;
}
.index-teacher-list-box{
    padding: 30px 0;
    position: relative;
    width:calc(100% + 40px);
    display: block;
    font-size: 0;
    left: -20px;
}
.index-teacher-list{
    width: 260px;
    display: inline-block;
    max-width: 100%;
    margin: 0 25px;
}
.index-teacher-img-box{
    width: 100%;
    height: 260px;
    display: block;
    overflow: hidden;
}
.index-teacher-name{
    font-family: "Anton","微軟正黑體";
    font-size: 22px;
    text-align: center;
    padding: 10px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.index-teacher-line{
    width: 100%;
    height: 1px;
    display: block;
    background-color: #000;
}
.index-teacher-bg{
    position: absolute;
    bottom: 10%;
    text-align: center;
    width: 100%;
    left: 0;
}
.index-teacher-bg img{
    display: inline-block;
}
.index-teacher-list-box .slick-prev:before, 
.index-teacher-list-box .slick-next:before{
    font-family: "Font Awesome 5 Free";
    font-weight: bold;
    font-size: 36px;
    opacity: 1;
}
.index-teacher-list-box .slick-prev:before{
    content: '\f0d9';
    color: #000;
}
.index-teacher-list-box .slick-next:before{
    content: '\f0da';
    color: #000;
}

/*-----------------index-學生--------------------*/
.index-student-block{
    width: 100%;
    position: relative;
    display: block;
    background-image: url(../img/front/index-student-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    padding-bottom: 510px;
}

.index-student-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    padding: 70px 0;
}
.index-student-list-box{
    margin-top: 80px;
    width: 100%;
    font-size: 0;
}

.index-student-list{
    width: 560px;
    max-width: 100%;
    height: 300px;
    overflow: hidden;
    display: block;
    vertical-align: top;
    background-color: #FFF;
    margin-bottom: 80px;
    float: left;
    padding: 30px 30px;
    box-sizing: border-box;
    position: relative;
}
.index-student-list:nth-child(even){
    margin-left: 80px;
    float: right;
}

.index-student-list:nth-child(2){
    margin-top: 150px;
}
.index-student-list-info-box{
    width: 100%;
    height: 100%;
    display: block;
}
.index-student-list-title-box{
    font-size: 0;
    display: block;
    margin-bottom: 20px;
    height: 28px;
    overflow: hidden;
}
.index-student-list-title-box i{
    font-size: 24px;
    color: #000;
    display: inline-block;
    vertical-align: middle;
}
.index-student-list-title{
    font-size: 18px;
    color: #000;
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px;
}
.index-student-list-time{
    font-size: 12px;
    color: #555555;
    display: inline-block;
    vertical-align: middle;
}
.index-student-list-article{
    font-size: 14px;
    color: #888888;
    letter-spacing: 1px;
    line-height: 2;
    height: calc(100% - 48px);
    overflow: auto;
}

.index-student-list-border-box{
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}
.index-student-list-border-top1{
    width: 30px;
    max-width: 100%;
    display: block;
    height: 1px;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #b3b3b3;
}

.index-student-list-border-top2{
    width: 30px;
    max-width: 100%;
    display: block;
    height: 1px;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #b3b3b3;
}
.index-student-list-border-left{
    width: 1px;
    max-width: 100%;
    display: block;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #b3b3b3;
}
.index-student-list-border-right{
    width: 1px;
    max-width: 100%;
    display: block;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #b3b3b3;
}
.index-student-list-border-bottom1{
    width: 30px;
    max-width: 100%;
    display: block;
    height: 1px;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #b3b3b3;
}

.index-student-list-border-bottom2{
    width: 30px;
    max-width: 100%;
    display: block;
    height: 1px;
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #b3b3b3;
}
.index-student-img-box{
    width: 843px;
    max-width: 100%;
    position: absolute;
    right:calc(50% - 80px);
    bottom: 0;
}
.index-student-img-1{
    width: 100%;
    display: block;
    position: relative;
}
.index-student-img-2{
    width: 100%;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}

.index-end-box{
    width: 100%;
    display: block;
    background-color: #313131;
    overflow: hidden;
    padding: 80px 0;
}
.index-end-ch{
    font-size: 22px;
    color: #FFF;
    font-weight: bold;
    text-align: center;
    transform: skewX(-10deg);
    padding-bottom: 20px;
}

.index-end-en{
    font-size: 20px;
    color: #FFF;
    font-family: 'Concert One';
    transform: skewX(-10deg);
    text-align: center;
}



/*過場動畫*/

.dt-loading-2 {
    width: 100%;
    height: 100vh;
    display: table;
    position: fixed;
    top: 0;
    z-index: 99999;
    transition: all .4s linear;
    background-color: #FFF;
}

.laying-2 {
   display: table-cell;
   vertical-align: middle;
}

.loading-logo-box{
    width: 154px;
    display: block;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}
.loading-log{
    width: 100%;
    display: block;
    position: relative;
 
}
.loading-mask{
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    background: #FFF;
    right: 0%;
    animation:  right2 2s linear 0s 1 forwards;

}

/*fancy-box*/

.fancybox-table{
    width: 100%;
    height: 100vh;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}
.fancybox-table.active{
    display: table;
}
.fancybox-table-mid{
    display: table-cell;
    vertical-align: middle;
}
.fancybox-box{
    width: 800px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}
.fancybox-img-box{
    width: 100%;
    height: 600px;
    display: block;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}
.fancybox-article{
    max-height: calc(100vh - 700px);
    overflow: auto;
}
.fancybox-article-title{
    font-size: 20px;
    color: #FFF;
    letter-spacing: 2px;
}
.fancybox-article-p{
    font-size: 16px;
    display: block;
    color: #FFF;
}

.fancybox-mask-box{
    width: 100%;
    height: 100%;
    display: block;
    background-color: rgba(0,0,0,0.6);
    position: fixed;
    top: 0;
    left: 0;
}
.fancybox-close{
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 20px;
    color: #000;
    text-align: center;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ddd;
    cursor: pointer;
    z-index: 3;
}
.body-close{
    overflow: hidden;

}
.body-close::-webkit-scrollbar{
    display:none;
}

.fancybox-link{
    position: fixed;
    text-align: center;
    top: calc(50% - 31px);
}
.news-prev{
    right: calc(50% + 427px);
}
.news-next{
    left: calc(50% + 427px);
}
.fancybox-link i{
    font-size: 24px;
    color: #FFF;
    display: block;
    margin-bottom: 10px;
}
.fancybox-link p{
    font-size: 18px;
    color: #FFF;
}
.fancybox-block{
    width: 100%;
    max-height: 100vh;
    overflow: auto;

}
.fancybox-block::-webkit-scrollbar{
    display:none;
}


/*----------------------------*/

.rwd-menu-class-list{
    width: 100%;
    height: 46px;
    border: 1px solid #888;
    font-size: 16px;
    letter-spacing: 1px;
    text-align: center;
    display: none;
    line-height: 46px;
    position: relative;
    box-sizing: border-box;
}
.rwd-menu-class-list:after {
    content: '';
    width: 0px;
    height: 0px;
    margin: 0 auto;
    border-right: 10px solid transparent;
    border-top: 10px solid #888;
    border-left: 10px solid transparent;
    display: block;
    position: absolute;
    bottom: calc(50% - 5px);
    right: 5%;
    box-sizing: border-box;
}
.index-teacher-list:hover .main-bg{
    transform: scale(1.1);
}



/*--------------------動畫------------------------*/
.index-title-box i,
.index-title,
.index-teacher-list-box,
.index-teacher-bg,
.index-student-list,
.index-student-list-title-box,
.index-end-ch,
.index-end-en,
.index-student-img-1,
.index-student-img-2{
    opacity: 0;
}
.index-student-list-border-top1,
.index-student-list-border-bottom2{
    transform: scale(0,1);
    transform-origin: right;
}
.index-student-list-border-top2,
.index-student-list-border-bottom1{
    transform: scale(0,1);
    transform-origin: left;
}
.index-student-list-border-left,
.index-student-list-border-right{
    transform: scale(1,0);
    transform-origin: top;
}

.index-teacher-block.active .index-title-box i,
.index-student-block.active .index-title-box i{
    animation: fade .5s ease 0s 1 both;
}
.index-teacher-block.active .index-title-box .index-title,
.index-student-block.active .index-title-box .index-title,
.index-student-img-box.active .index-student-img-2{
    animation: fadeInRight .5s ease .1s 1 both;
}
.index-student-img-box.active .index-student-img-1{
    animation: fadeInLeft .5s ease .1s 1 both;
}
.index-teacher-block.active .index-teacher-list-box{
    animation: fadeInUp .8s ease .1s 1 both;
}
.index-teacher-block.active .index-teacher-bg{
    animation: fade .8s ease .0s 1 both;
}
.index-student-list.active{
    animation: fade .5s ease 0s 1 both;
}
.index-student-list.active .index-student-list-border-top1,
.index-student-list.active .index-student-list-border-top2{
    animation: line .3s linear 0s 1 forwards;
}
.index-student-list-border-left,
.index-student-list-border-right{
    animation: line2 .5s linear .3s 1 forwards;
}

.index-student-list.active .index-student-list-border-bottom1,
.index-student-list.active .index-student-list-border-bottom2{
    animation: line .3s linear .8s 1 forwards;
}
.index-student-list.active .index-student-list-title-box{
    animation: fade .5s ease .2s 1 both;
}
.index-student-list.active .index-student-list-article{
    animation: fadeInUp .5s ease .2s 1 both;
}

.index-end-box.active .index-end-ch{
    animation: index-end-ch .5s ease .0s 1 forwards;
}
.index-end-box.active .index-end-en{
    animation: index-end-en .5s ease .0s 1 forwards;
}

@keyframes index-end-ch {
  from {
    opacity: 0;
    -webkit-transform: translate3d(50px, 0, 0);
    transform: translate3d(50px, 0, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}


@keyframes index-end-en {
  from {
    opacity: 0;
    -webkit-transform: translate3d(-50px, 0, 0);
    transform: translate3d(-50px, 0, 0) skewX(-10deg);
  }

  to {
    opacity: 1;
    -webkit-transform: translate3d(0px, 0, 0) skewX(-10deg);
    transform: translate3d(0px, 0, 0) skewX(-10deg);
  }
}

@media only screen and (max-width: 1366px){
    .index-student-img-box{
        width: 730px;
    }
    .index-student-block{
        padding-bottom: 280px;
    }
    
}

@media only screen and (max-width: 1300px){
    .index-teacher-box{
        width: 1000px;
    }
    .index-teacher-img-box{
        height: 210px;
    }
    .index-teacher-block{
        padding: 50px 0;
    }
    .index-student-box{
        width: 1000px;
    }
    .index-student-list{
        width: 480px;

    }
    .index-student-list:nth-child(even){
        margin-left: 40px;
    }
}
@media only screen and (max-width: 1100px){
    .index-teacher-box{
        width: 900px;
    }
    .index-student-box{
        width: 900px;
    }
    .index-student-list{
        padding: 20px;
    }
    .index-student-list {
        width: 430px;
    }
    .index-student-img-box {
        width: 500px;
    }
    .index-student-block {
        padding-bottom: 130px;
    }
    .index-student-box{
        padding-top: 45px;
    }
    .index-student-list-box{
        margin-top: 45px;
    }
}
@media only screen and (max-width: 1100px){
    .index-title-box i, .index-title, .index-teacher-list-box, .index-teacher-bg, .index-student-list, .index-student-list-title-box, .index-end-ch, .index-end-en {
    opacity: 1;
    }
}   

@media only screen and (max-width: 1000px){
    .index-teacher-list{
        margin: 0 5px;
    }
    .index-teacher-box,
    .index-student-box{
        width: 750px;
    }
    .index-student-list{
        width: 48%;
    }
    .index-student-list:nth-child(even){
        margin-left: 4%;
    }
    .index-student-list-border-top1, .index-student-list-border-bottom2,
    .index-student-list-border-top2, .index-student-list-border-bottom1,
    .index-student-list-border-left, .index-student-list-border-right,
    .index-student-list-border-top2, .index-student-list-border-bottom1{
        transform: scale(1,1);
    }
}
@media only screen and (max-width: 750px){
    .index-teacher-box, .index-student-box{
        width: 550px;
    }
    .index-teacher-list{
        margin: 0 10px;
    }
    .index-teacher-list-box{
        width: calc(100% + 20px);
        left: -10px;
    }
    .index-teacher-img-box{
        height: 170px;
    }
    .index-student-list{
        width: 100%;
        display: block;
        margin: 0;
        margin-bottom: 20px;
        height: inherit;
    }
    .index-student-list-article{
        height: inherit;
    }
    .index-student-list:nth-child(2){
        margin-top: 0;
    }
    .index-student-img-box{
        display: none;
    }
    .index-student-block{
        padding-bottom: 50px;
    }
}
@media only screen and (max-width: 550px){
    .index-teacher-box, .index-student-box {
        width: 340px;
    }
    .index-teacher-list-box{
        width: 100%;
        left: 0;
    }
    .index-teacher-list{
        margin: 0 5px;
    }
    .index-end-en{
        text-align: left;
        padding: 0 30px;
        box-sizing: border-box;
    }
}