﻿/*--------------header-style1-----------------*/
.header-style1{
    position: relative;
    z-index: 999;
    display: block;
    width: 100%;
    top: 0;
    background-color: #661118;
}
.header-style1 .header-box{
    width: 95%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
}
.header-style1 .header-logo{
    width: 180px;
    max-width: 100%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.header-style1 .header-menu-box{
    width: calc(100% - 180px);
    display: inline-block;
    vertical-align: bottom;
    font-size: 0;
    text-align: right;
}
.header-style1 .header-menu> li{
    display: inline-block;
    vertical-align: bottom;
    position: relative;
}
.header-menu-class{
    font-size: 14px;
    color: #FFF;
    display: inline-block;
    vertical-align: middle;
    height: 19px;
    margin: 0 15px;
}
.header-menu{
    width: calc(100% - 730px);
    display: inline-block;
    vertical-align: bottom;
    padding-left: 15px;
    box-sizing: border-box;
}
.header-menu-class-icon,
.header-menu-class span{
    display: inline-block;
    vertical-align: middle;
}


.rwd-products-close,
.rwd-header-products-class-list-back,
.rwd-header-products-class-third-back,
.rwd-header-products-class-list-link,
.rwd-header-products-class-list-scend-link{
    display: none;
}

.header-menu-search-box{
    display: inline-block;
    vertical-align: middle;
    width: 550px;
    max-width: 100%;
    position: relative;
}
.header-menu-search{
    width: 100%;
    display: block;
    background-color: #FFF;
    padding: 0 10px;
    box-sizing: border-box;
    height: 32px;
    border-radius: 5px;
    border: 0;
}
.header-menu-search-box i{
    position: absolute;
    right: 0px;
    top: 0;
    font-size: 14px;
    color: #661118;
    width: 30px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
}
.rwd-header-menu-search{
    display: none;
}
.header-box{
    padding: 10px 0;
    font-size: 0;
}
.header-box2{
    background-color: #f5f5f5;
}
.header-products-class-block{
    width: 95%;
    display: block;
    margin: 0 auto;
}
.header-products-class-box{
    font-size: 0;
}
.header-products-class{
    position: relative;
    display: inline-block;
    vertical-align: middle;
}
.header-products-class-list-scend-block{
    position: absolute;
    left: 0;
    box-shadow: rgba(0,0,0,0.6) 0px 2px 3px;;
    width: max-content;
    max-width: 45vw;
    z-index: 4;
}
.header-products-class-list-scend-box{
    background-color: #FFF;
    padding: 10px 20px;
}
.header-products-class-list-link{
    font-size: 16px;
    color: #661118;
    padding: 13px 0;
    padding-right: 60px;
    display: block;
    position: relative;
    z-index: 3;
    background-color: #f5f5f5;
    transition: all .5s ease;
}
.header-products-class-list-link i{
    vertical-align: bottom;
    padding-left: 5px;
    padding-bottom: 2px;
}
.header-products-class-list-scend-list{
    box-sizing: border-box;
    vertical-align: top;
    /* margin-right: 45px; */
}
.header-products-class-list-scend-link{
    font-size: 16px;
    color: #661118;
    padding: 6px 0;
    padding-right: 60px;
    display: block;
    position: relative;
    z-index: 3;

    transition: all .5s ease;
}
.header-products-class-list-third-list{
    font-size: 16px;
    margin-bottom: 10px;
}
.rwd-header-menu-box{
    display: none;
}

.header-products-menu-box{
    width: 166px;
    max-width: 100%;
    display: inline-block;
    vertical-align: top;
    padding: 13px 0;
}
.header-products-class-list{
    width: calc(100% - 166px);
    display: inline-block;
    vertical-align: top;
}
.header-products-menu-list{
    display: block;
    font-size: 16px;

    color: #661118;
}
.rwd-header-all{
    display: none;
}


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

.header-menu-list-box li{
    margin-bottom: 30px
}

.header-menu-title{
    font-size: 18px;
    position: relative;
}
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: 2.5%;
    z-index: 99999;
    display: none;
    top: 25px;
}
.rwd-menu span{
    width: 100%;
    display: block;
    margin: 0 auto;
    height: 2px;
    background-color: #ffffff;
    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;
}
.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;
}
.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------------------------*/
@media only screen and (min-width: 1000px){
    .header-products-class:hover .header-products-class-list-scend-block{
        display: block;
    }
    .header-products-class-list-scend-link:hover{
        color: #661118;
        text-decoration:underline;
    }
}
.header-products-class-list-scend-block{
    display: none;
}
.header-menu-class span{
    position: relative;
}
.header-menu-class span:after{
    content: '';
    width: 100%;
    height: 1px;
    display: block;
    background-color: #FFF;
    position: absolute;
    bottom: 0px;
    left: 0;
    transition: all .5s ease;
    transform: scale(0,1);
    transform-origin: left;
}
.header-menu-class:hover span:after{
    transform: scale(1,1);
}
.header-products-class-list-link:hover{
    font-weight: bold;
}
.header-products-class-list-link span{
    position: relative;
    display: inline-block;
    vertical-align: bottom;
    transition: all .5s ease;
}
.header-products-class-list-scend-link span,
.header-products-class-list-third-list a{
    position: relative;
    transition: all .5s ease;
}
.header-products-class-list-link span:after,
.header-products-class-list-scend-link span:after,
.header-products-class-list-third-list a:after{
    content: 'none';
    font-size: 0;
    width: 100%;
    height: 1px ;
    display: block;
    background-color: #661118;
    transform: scale(0,1);
    transition: all .5s ease;
    position: absolute;
    bottom: 0;
    left: 0;
    transform-origin: left;
}

.header-products-class:hover .header-products-class-list-link span:after,
.header-products-class.active .header-products-class-list-link span:after,
.header-products-class-list-scend-link:hover span:after,
.header-products-class-list-scend-link.active span:after,
.header-products-class-list-third-list a:hover:after,
.header-products-class-list-third-list.active a:after{
    transform: scale(1,1);
}
.header-products-class:hover .header-products-class-list-link span,
.header-products-class.active .header-products-class-list-link span,
.header-products-class:hover .header-products-class-list-link i,
.header-products-class.active .header-products-class-list-link i,
.header-products-class-list-scend-link:hover span,
.header-products-class-list-scend-link.active span,
.header-products-class-list-third-list a:hover,
.header-products-class-list-third-list.active a{
    color: #661118;
}




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

@media only screen and (max-width: 1200px){
    .header-style1 .header-box{
        width: 95%;
        margin: 0 auto;
    
    }
    .header-style2 .header-menu ul{
        width: 100%;
    }
    .header-menu-search-box{
        width: 400px;
    }
    .header-menu{
        width: calc(100% - 580px);
    }
}

@media only screen and (max-width: 1000px){
    .header-style6 .header-logo{
        position: relative;
        width: 100%!important;
        text-align: left;
        background-color: #FFF;
    }
    .rwd-menu{
        display: block;
    }
    .header-style1 .rwd-menu{
        display: block;
    }
    .header-menu-search-box{
        display: none;
    }
    .rwd-header-menu-box{
        display: block;
    }
    .header-style1{
        position: fixed;
    }
    .header-box2{
        position: absolute;
        width: 300px;
        top: 63px;
        left: -300px;
        display: block;
        transition: all .5s ease;
    }
    .header-box2.active{
        left: 0%;
    }
    .header-products-class-block{
        width: 100%;
        margin: 0;
        height: calc(100vh - 63px);
        box-sizing: border-box;
        padding: 30px 20px;
        overflow: auto;
    }
    .header-style1 .header-menu> li{
        display: none;
    }
    .rwd-header-menu-box .header-menu-class{
        display: block;
        color: #661118;
        margin: 0;
        margin-bottom: 20px;
    }
    .header-products-class{
        position: static;
        width: 100%;
    }
    .header-products-class-list-link{
        display: none;
    }
    .rwd-header-products-class-list-link{
        display: block;
        font-size: 16px;
        color: #661118;
        padding-right: 60px;
        display: block;
        position: relative;
        z-index: 3;
        background-color: #f5f5f5;
        transition: all .5s ease;
        padding-top: 0;
        padding-bottom: 20px;
    }
    .rwd-header-products-class-list-link span {
        position: relative;
        display: inline-block;
        vertical-align: bottom;
    }
    .rwd-header-products-class-list-link i {
        vertical-align: bottom;
        padding-left: 5px;
        padding-bottom: 2px;    
        position: absolute;
        right: 0;
        top: 10%;
    }
    .rwd-header-products-class-list-scend-link i{
        position: absolute;
        right: 0;
        top: 30%;
        display: none;
    }
    .header-products-class-list-scend-block{
        width: 100%;
        top: 0;
        left: -100%;
        height: 100%;
        z-index: 4;
        background-color: #f5f5f5;
        transition: all .3s linear; 
        box-shadow: none;
        display: block;
        overflow: auto;
    }
    .header-products-class-list-scend-block.active{
        left: 0;
    }
    .rwd-header-products-class-list-back{
        display: block;
        font-size: 16px;
        color: #661118;
        height: 19px;
        padding: 20px;
    }
    .header-products-class-list-scend-box{
        height: 100%;
        padding: 0 20px;
        background-color: #f5f5f5;
    }
    .header-products-class-list-scend-list{
        padding: 0; 
        display: block;
        margin-right: 0;
        width: 100%;
        position: static;
    }
    .header-products-class-list-scend-link{
        display: none;
    }
    .rwd-header-products-class-list-scend-link{
        display: block;
        font-size: 14px;
        font-weight: bold;
        color: #661118;
        margin-bottom: 15px;
        font-family: "Times New Roman","Arial","微軟正黑體";
        box-sizing: border-box;
     
    }
    .rwd-header-products-class-list-scend-link span{
        font-size: 16px;
        font-weight: bold;
        margin-left: 5px;
    }
    .rwd-header-products-class-third-back{
        display: block;
        font-size: 16px;
        color: #661118;
        height: 19px;
        margin-bottom: 20px;
    }
    .header-products-class-list-third{
        width: 100%;
        top: 0;
        left: -100%;
        height: 100%;
        z-index: 4;
        background-color: #f5f5f5;
        transition: all .3s linear; 
        box-shadow: none;
        display: block;
        position: absolute;
        padding: 20px;
        box-sizing: border-box;
        overflow: auto;
        pointer-events: none;
    }
    .header-products-class-list-third.active{
        left: 0;
        pointer-events: auto;
    }
    .header-products-class-list-third-list{
        font-size: 16px;
        font-weight: bold;
        color: #661118;
        margin-bottom: 15px;
        display: block;
        font-family: "Times New Roman","Arial","微軟正黑體";
    }
    .rwd-header-menu-search-box{
        font-size: 20px;
        position: absolute;
        right: 65px;
        z-index: 99999;
        display: block;
        top: 16px;
        color: #fff;
    }
    .rwd-header-menu-search{
        display: block;
        background-color: #FFF;
        padding: 5px 10px;
        box-sizing: border-box;
        border-radius: 5px;
        border: 0;
        border: 1px solid #d1d1d1;
        position: absolute;
        right: -100%;
        transition: all .3s linear;
    }
    .rwd-header-menu-search.active{
       right: 0;
    }
    .rwd-header-menu-search-input{
        border: 0;
        width: 400px;
    }
    .header-products-class-list-scend-block{
        max-width: 100%;
    }
    .header-products-class-list{
        width: 100%;
    }
    .rwd-header-menu-box .header-menu-class span{
        font-size: 16px;
    }
    .rwd-header-all{
        display: block;
    }
}

@media only screen and (max-width: 800px){
    .header-style1 .header-logo{
        width: 117px;
    }
    .rwd-menu{
        top: 17px;
    }
    .header-box2{
        top: 48px;
    }
    .header-products-class-block{
        height: calc(100vh - 48px);
        padding: 20px;
    }
    .rwd-header-menu-search-box{
        top: 8px;
    }
}
@media only screen and (max-width: 600px){
    .rwd-header-menu-search-input{
        width: 260px;
    }
}