﻿body.active{
    overflow: hidden;
}
/*--------------header-style1-----------------*/
.header-style1{
    position: fixed;
    z-index: 999;
    display: block;
    width: 100%;
    top: 0;
    background-color: #fff;
    box-shadow: 0 0 3px rgba(0,0,0,0.35)
}
#index .header-style1{
    /* background-color: rgba(255,255,255,0.8); */
    transition: all .3s linear;
}
.header-style1:before{
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ff6800;
}
#index .header-style1.header2{
    background-color: #fff;
}
.header-style1 .header-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding: 16px 0;
}
.header-style1 .header-logo{
    width: 270px;
    max-width: 100%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.header-style1 .header-menu-box{
    width: calc(100% - 270px);
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    text-align: right;
}
.header-style1 .header-menu> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-left: 30px;
}
.header-style1 .header-menu> li:after{
    content: '/';
    color: #ddd;
    font-size: 14px;
    font-weight: lighter;
    position: absolute;
    right: -15px;
    top: 1px;
}
.header-style1 .header-menu> li:last-child:after{
    display: none;
}
.header-link-box{
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}
.header-material-menu-box,
.header-oem-menu-box{
    position: absolute;
    top: 0;
    padding-top: 40px;
    display: none;
}
.header-menu-list-box{
    font-size: 14px;
    background-color: #fff;
    padding: 20px 15px;
    box-sizing: border-box;
    border: 1px solid #ff6800;
    text-align: left;
    position: relative;
}
.header-menu-list-box:before{
    pointer-events: none;
    position: absolute;
    z-index: -1;
    content: '';
    border-style: solid;
    -webkit-transition-property: transform;
    transition-property: transform;
    left: 22px;
    top: 3px;
    width: 10px;
    height: 10px;
    border: 1px solid #ff6800;
    background-color: #fff;
    -webkit-transform: translateY(-10px) rotateZ(-45deg);
    transform: translateY(-10px) rotateZ(-45deg);
}
.header-menu-list-box:after{
    pointer-events: none;
    position: absolute;
    z-index: 0;
    content: '';
    -webkit-transition-property: transform;
    transition-property: transform;
    left: 21px;
    top: -1px;
    width: 14.5px;
    height: 10px;
    background-color: #fff;
}
.header-menu-list-box li {
    display: block;
}
.header-menu-list{
    display: block;
    white-space: nowrap;
    font-size: 14px;
    position: relative;
    letter-spacing: 1px;
    color: #555;
    transition: all .3s linear;
}
.header-oem .header-menu-list-box li:first-child{
    margin-bottom: 15px;
}
.header-menu-list-text{
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    display: block;
    white-space: nowrap;
    position: relative;
    color: #ff6800;
    transition: all .3s linear;
    margin-top: 20px;
}
.header-material .header-menu-list-box,
.header-investment .header-menu-list-box,
.header-health .header-menu-list-box{
    padding: 0px 30px;
    padding-bottom: 20px;
}
.header-health .header-material-menu-box{
    right: 0;
}
.header-health .header-menu-list-box:before{
    left: initial;
    right: 22px;
}
.header-health .header-menu-list-box:after{
    left: initial;
    right: 21px;
}
/* -------------------------------------------------------------- */
.header2.header-style2 .rwd-menu{
    background-color: #01344f;
}
.header2.header-style2 .rwd-menu span{
    background-color: #FFF;
}

.header-menu-title{
    font-size: 14px;
    position: relative;
    letter-spacing: 1px;
    color: #555;
    transition: all .3s linear;
}
.header-menu-title:after{
    content: '';
    width: 0%;
    display: block;
    position: absolute;
    bottom: -3px;
    height: 1px;
    background-color: #ff6800;
    transition: all .3s linear;
}
div.header-menu-title{
    cursor: context-menu;
}


.rwd-menu-list-back{
    display: none;
}
.mask{
    width: 100%;
    height: 100vh;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.mask.active{
    display: block;
}

.rwd-menu{
    width: 30px;
    max-width: 100%;
    position: absolute;
    right: 20px;
    z-index: 99999;
    display: none;
    top: calc(50% - 7px);
}
.rwd-menu span{
    width: 100%;
    display: block;
    margin: 0 auto;
    height: 2px;
    background-color: #ff6800;
    position: relative;
}




/*漢堡樣式1*/
.rwd-menu-style1> span:nth-child(even){
    margin: 4px auto;
    transition: all .4s linear;
}
.rwd-menu-style1> span:nth-child(1){
    transform: scale(1);
    transform-origin: left;
    transition: all .4s linear;
}
.rwd-menu-style1> span:nth-child(3){
    transform: scale(1);
    transform-origin: right;
    transition: all .4s linear;
}
.rwd-menu-style1> span:nth-child(4){
    top: -19px;
    transform:  scale(0,1) rotate(-45deg);
}
.rwd-menu-style1> span:nth-child(4){
    display: none;
}
.rwd-menu-style1 .rwd-menu-bth-line{
    transform: rotate(-45deg);
}
.rwd-menu-style1 .rwd-menu-bth-line2{
    transform: rotate(45deg);
}
.rwd-menu-style1 .rwd-menu-bth-line,
.rwd-menu-style1 .rwd-menu-bth-line2{
    position: absolute;
    top: 6px;
    left:0;
    width: 100%;
}
.rwd-menu-style1 .rwd-menu-bth-line span,
.rwd-menu-style1 .rwd-menu-bth-line2 span{
    transform:  scale(0,1);
    transition: all .5s ease;
    position: relative;
}
.rwd-menu-style1.active .rwd-menu-bth-line span,
.rwd-menu-style1.active .rwd-menu-bth-line2 span{
    transform:  scale(1,1) ;
    transition-delay: .1s;
}
.rwd-menu-style1.active> span:nth-child(1),
.rwd-menu-style1.active> span:nth-child(2),
.rwd-menu-style1.active> span:nth-child(3){
    transform: scale(0,1);
}
.rwd-menu-style1.active> span:nth-child(odd){
    transform: scale(0);
    transition: all .4s linear;
    transition-delay: 0s;
}

/*漢堡樣式2*/

.rwd-menu-style2> span:nth-child(4){
    display: none;
}
.rwd-menu-style2> span:nth-child(2){
    display: block;
    margin: 4px auto;
}
.rwd-menu-style2{
    width: 25px;
}
.rwd-menu-style2> span{
    transition: all 0.3s ease-in-out;
}
.rwd-menu-style2 .rwd-menu-bth-line,
.rwd-menu-style2 .rwd-menu-bth-line2{
    display: none;
}
.rwd-menu-style2.active{
    animation: smallbig 0.6s forwards;
    width: 30px;
}
.rwd-menu-style2.active> span:nth-child(1){
    -webkit-transform: translateY(7px) rotate(45deg);
    -ms-transform: translateY(7px) rotate(45deg);
    -o-transform: translateY(7px) rotate(45deg);
    transform: translateY(7px) rotate(45deg);
}
.rwd-menu-style2.active> span:nth-child(2){
    opacity: 0;
    margin: 4px auto;
}
.rwd-menu-style2.active> span:nth-child(3){
    -webkit-transform: translateY(-5px) rotate(-45deg);
    -ms-transform: translateY(-5px) rotate(-45deg);
    -o-transform: translateY(-5px) rotate(-45deg);
    transform: translateY(-5px) rotate(-45deg);
}

.rwd-menu-style2.active> span:nth-child(1), 
.rwd-menu-style2.active> span:nth-child(2), 
.rwd-menu-style2.active> span:nth-child(3) {
    -webkit-transition-delay: 0.2s;
    -o-transition-delay: 0.2s;
    transition-delay: 0.2s;
}



@keyframes smallbig{
  0%, 100%{
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
  }

  50%{
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
  }
}


/*---------------hover--------------*/

.header-oem:hover .header-oem-menu-box{
    display: block;
}
.header-material:hover .header-material-menu-box,
.header-investment:hover .header-material-menu-box,
.header-health:hover .header-material-menu-box{
    display: block;
}
.header-menu-list:hover{
    color: #ff6800;
}
.header-menu-title:hover,
.header-style1 .header-menu> li.active .header-menu-title{
    color: #ff6800;
}
.header-menu-title:hover:after,
.header-style1 .header-menu> li.active .header-menu-title:after{
    width: 100%;
}

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

@media only screen and (max-width: 1200px){
    .header-style1 .header-box{
        width: 95%;
        margin: 0 auto;
    
    }
    .header-style2 .header-menu ul{
        width: 100%;
    }
    .header-style1 .header-menu> li{
        margin-left: 15px;
    }
    .header-style1 .header-menu> li:after{
        right: -10px;
    }
    .header-style1 .header-logo{
        width: 200px;
    }
    .header-style1 .header-menu-box{
        width: calc(100% - 200px);
    }
    .header-style1 .header-menu> li:first-child{
        margin-left: 0;
    }
}

@media only screen and (max-width: 1000px){
    .rwd-menu{
        display: block;
    }
    .header-style1 .rwd-menu{
        display: block;
    }
    .rwd-header-menu-sytle2 .header-menu{
        width: 60vw;
        height: calc(100vh - 67px);
        position: fixed;
        top: 67px;
        right: -100%;
        z-index: 3;
        background-color: #ff6800e6;
        transition: all .5s ease;
        overflow-x: hidden;
        box-sizing: border-box;
        padding-top: 20px;
        box-shadow: 0 5px 5px rgba(0,0,0,0.5);
    }
    .rwd-header-menu-sytle2 .header-menu.active{
        right: 0;
    }
    .header-style1 .header-menu> li{
        display: block;
        width: 100%;
        margin-left: 0;
        text-align: left;
        box-sizing: border-box;
        padding-bottom: 20px;
    }
    .header-menu-title{
        font-size: 24px;
        color: #fff;
        font-weight: bold;
        display: inline-block;
        padding: 0 20px;
    }
    .header-menu-title:after{
        content: '\f105';
        width: initial;
        height: initial;
        color: #fff;
        font-size: 16px;
        line-height: 34px;
        font-weight: bold;
        font-family: "Font Awesome 5 Free";
        right: 0;
        bottom: initial;
        top: 0;
        background-color: transparent;
        transition: all .3s linear;
    }
    .header-style1 .header-menu> li:after{
        /* content: '\f105';
        color: #fff;
        font-weight: bold;
        font-family: "Font Awesome 5 Free";
        right: initial;
        left: 128px;
        top: 8px;
        transition: all .3s linear; */
        display: none;
    }
    .header-material-menu-box, .header-oem-menu-box{
        display: none;
        position: relative;
        padding-top: 10px;
    }
    .header-menu-list-box{
        border: none;
        background-color: #ffffffe6;
    }
    .header-material .header-menu-list-box{
        padding: 0px 15px;
        padding-bottom: 10px;
        padding-top: 5px;
        border: none;
        background-color: #ffffffe6;
    }
    .header-menu-list-text{
        margin-top: 10px;
        white-space: initial;
    }
    .header-menu-list{
        white-space: initial;
        margin-top: 5px;
    }
    .header-menu-list-box:before,
    .header-menu-list-box:after{
        display: none;
    }
    .header-menu-list:hover{
        color: #fff;
    }
    .header-menu-title:hover{
        color: #fff;
    }
    .header-oem:hover .header-oem-menu-box{
        display: none;
    }
    .header-material:hover .header-material-menu-box{
        display: none;
    }
    .header-style1 .header-menu> li.header-material.open:after{
        transform: rotateZ(90deg);
    }
    .header-style1 .header-menu> li.header-oem.open:after{
        transform: rotateZ(90deg);
    }
    .header-menu-title:hover{
        color: #fff;
    }
    .header-style1 .header-menu> li.active .header-menu-title{
        color: #000;
    }
    .header-style1 .header-menu> li.active .header-menu-title:after{
        color: #000;
        transform: rotateZ(180deg);
    }
    .header-style1 .header-menu> li.active:last-child .header-menu-title:after{
        display: block;
    }
    .header-menu-title:hover:after, 
    .header-style1 .header-menu> li.active .header-menu-title:after{
        display: none;
    }
}
@media only screen and (max-width: 550px){
    .header-style1 .header-box{
        padding: 8px 0;
    }
    .header-style1 .header-logo{
        width: 200px;
    }
    .rwd-header-menu-sytle2 .header-menu{
        height: calc(100vh - 52px);
        top: 52px;
    }
    .header-menu-title{
        font-size: 20px;
    }
    .header-style1 .header-menu> li:after {
        top: 5px;
        left: 110px;
    }
    .header-style1 .header-menu> li.header-about:after,
    .header-style1 .header-menu> li.header-patent:after,
    .header-style1 .header-menu> li.header-material:after{
        left: 130px;
    }
}




/*animation*/

/* 寬度0%-100% */
@keyframes width-100{
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}
@media only screen and (min-width: 1001px){
    .header-style1:before{
        animation: width-100 .8s linear 0s 1 both;
    }
}


