
#header{position:relative;width:100%;/* border-top: 5px solid #92cc64; */}
#header .wrap{position:relative;width:100%;max-width: 1400px;margin: 0px auto;min-height: 90px;background: #ffffff;}
#header.on{ position:fixed; z-index:9998; }
#header .wrap .logo{
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
}
#header .wrap > #mobileMenu{display:none;position:absolute;top: 35%;right: 10px;width: 35px;height: 32px;font-size: 25px;color: #c9c9ca;padding: 6px 8px;/* border: 2px solid #c9c9ca; */cursor:pointer;/* border-radius: 5px; */}
#header .wrap .nav{position:absolute;top: 30px;right: 15px;/* width:130px; */height:35px;/* box-shadow: 3px 3px 6px #cccccc; */border-bottom: 1px solid #ebebeb;padding-bottom: 10px;/* -webkit-border-radius: 20px; */color: #d87a07;font-size: 16px;font-weight: bold;cursor: pointer;}
#header .wrap .nav i{ font-style:inherit; }
#header .wrap .nav:before{/*content:url(../../images/header-icon-user.png);vertical-align: -70%;padding-right: 8px;*/}
#header .wrap .nav img{vertical-align: middle;margin: 0 5px;}
#header .wrap .nav a{display:inline-block;padding: 0 5px;/* border-right: 1px solid #d7d7d7; */font-size: 14px;color: #484848;text-decoration:none;}
#header .wrap .nav a:last-child{/* border-right:0; *//* padding: 0 0 0 0px; */}
#header .wrap .nav a:hover{color: #c9c9ca;}

#header nav{position:absolute;top: 25px;right: 20px;width: 500px;text-align: right;padding:0;margin:0;list-style:none;}
#header nav input[type='text']{box-sizing:border-box;font-size: 15px;/* border: 1px solid #c4c4c4; */padding: 7px 15px 7px 15px;letter-spacing:1px;color:#666;outline:0;width: 320px;background: #ffffff;transition: all 0.5s ease;}
#header nav span{ position:relative; }
#header nav span div{color: #2c7ac7;font-size: 17px;position:absolute;top: 0px;left: 10px;cursor: pointer;}

#header > ul{
   width: 100%;
   margin: 0px 0 0 0;
   /* max-width: 1200px; */
   /* position:absolute; */
   left: 0;
   right: 0;
   margin-left: auto;
   margin-right: auto;
   margin-bottom: 0;
   padding: 10px 0 10px 0px;
   bottom: 0px;
   list-style: none;
   /* background: #758390; */
   display: flex;
   justify-content: center;
   /* border-bottom: 1px solid #f0f0f0; */
   /* border-radius: 20px; */
   /* box-shadow: 3px 3px 15px rgb(38 38 102 / 10%); */
   /* -webkit-transition: width 0.2s ease-in-out; */
   -moz-transition: width 0.2s ease-in-out;
   -o-transition: width 0.2s ease-in-out;
   /* transition: width 0.2s ease-in-out; */
}

#header > ul > li{
    position: relative;
    float: left;
    font-size: 16px;
    padding: 0 2vw;
    color: #ffffff;
    font-family: 'Noto Sans TC', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    margin: 0 5px;
}

#header > ul > li:last-child{
    
}

#header > ul > li:hover{ 
    background: linear-gradient(135deg, rgba(68, 146, 205, 0.1), rgba(52, 116, 164, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 146, 205, 0.2);
}

#header > ul > li > a{
    color: #000000;
    /* font-weight: 600; */
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-block;
    padding: 15px 0vw 15px 0vw;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

#header > ul > li > a:hover{ 
    /*color: #4492cd;*/
    transform: translateX(2px);
}

#header > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    /*background: linear-gradient(90deg, #4492cd, #648b5e);*/
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

#header > ul > li:hover > a::after {
    width: 80%;
}

#header > ul > li:before{
    content: url(../../images/icon-foot.png);
    padding-right: 8px;
    /* vertical-align: middle; */
    display: inline-block;
    transition: all 0.3s ease;
}
#header > ul > li:hover:before{ 
    /*-webkit-filter: brightness(1.2) contrast(1.1);*/
    transform: scale(1.1);
    -webkit-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
#header > ul > li:last-child a{/* border:0; */}
#header > ul.on{width: 100%;position:fixed;background: #ffffff;max-width:none;border-bottom: 1px solid #cccccc;top: 0px;left: 0;z-index:9998;bottom:inherit;-webkit-border-radius: 0px;margin: 0;}
#header > ul > li ul {
    display: block;
    list-style: none;
    color: #fdf3f2;
    z-index: 99;
    padding: 0px;
    margin: 0;

    position: absolute;
    top: 55px;
    left: 50%; 
    transform: translateX(-50%) translateY(20px); 
    width: 220px;
    line-height: 25px;
    color: #4D4435;
    background: #ffffff;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    

    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#header > ul > li:hover > ul {

    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); 
}
#header > ul > li ul li{position:relative;font-weight:normal;padding: 10px 15px;text-align:center;border-bottom: 1px solid #ebebeb;}
#header > ul > li ul li:last-child{ border:0; }
#header > ul > li ul li a{color: #4D4435 !important;letter-spacing:3px;text-decoration:none;text-align:center;border-bottom:0 !important;padding: 0 5px;}
#header > ul > li ul li:hover{ background:#f0f7ff;}
#header > ul > li ul li a:hover{ color:#2c7ac7; }

#header > ul > li > ul > li > ul{
    position:absolute;
    left: 100%;
    top: 0px;
    width: 240px;
    padding: 8px 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(144, 195, 31, 0.1);
    z-index: 999;

    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#header > ul > li > ul > li:hover ul{

    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

#header > ul > li > ul > li > ul > li > ul{
    position:absolute;
    left: 100%;
    top: 0px;
    width: 240px;
    padding: 8px 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(144, 195, 31, 0.1);
    z-index: 999;

    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#header > ul > li > ul > li > ul > li:hover ul{

    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0);
}



#mobileMenu {
	 width: 30px;
	 height: 25px;
	 position: absolute;
	 bottom:20px;
	 z-index: 999;
	 cursor: pointer
}
#mobileMenu span {
	 width: 25px;
	 height: 4px;
	 display: block;
	 background: #c9c9ca;
	 margin-top: 4px;
	 -webkit-transition: 0.7s cubic-bezier(0.18, 1, 0.21, 1);
	 -moz-transition: 0.7s cubic-bezier(0.18, 1, 0.21, 1);
	 -ms-transition: 0.7s cubic-bezier(0.18, 1, 0.21, 1);
	 -o-transition: 0.7s cubic-bezier(0.18, 1, 0.21, 1);
	 transition: 0.7s cubic-bezier(0.18, 1, 0.21, 1);
}
.mobileMenu_spac {
	background: #fff !important
}
#mobileMenu span:first-child {
	margin-top: 0;
}
#mobileMenu .top {
	 position: absolute;
	 top: 10px;
	 -webkit-transform: rotate(225deg);
	 -moz-transform: rotate(225deg);
	 transform: rotate(225deg)
}
#mobileMenu .bottom {
	 position: absolute;
	 top: 10px;
	 margin-top: 0 !important;
	 -webkit-transform: rotate(-225deg);
	 -moz-transform: rotate(-225deg);
	 transform: rotate(-225deg)
}
#mobileMenu .middle {
	opacity: 0
}


@media screen and (max-width : 1220px) {
	#header > ul{}
	#header .wrap .nav{ right:23px; }
	#header nav{ right:10px; }
}
@media screen and (max-width : 1024px) {
	#header > ul > li{font-size:14px;padding: 0 1.5vw;}
}

/* ======================================================================== */
/* ======================================================================== */


#header > ul > li > ul {
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) scale(0.95) !important;
    width: 240px !important;
    padding: 8px 0 !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(144, 195, 31, 0.1) !important;
    z-index: 999 !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

#header > ul > li:hover > ul {
    transform: translateX(-50%) translateY(0) scale(1) !important;
}


#header > ul > li ul li {
    position: relative !important;
    font-weight: normal !important;
    /* padding: 12px 20px !important; */
    text-align: left !important;
    border-bottom: 1px solid rgba(235, 235, 235, 0.5) !important;
    transition: all 0.3s ease !important;
    margin: 0 8px !important;
    border-radius: 8px !important;
}

#header > ul > li ul li:last-child {
    border-bottom: none !important;
    margin-bottom: 4px !important;
}

#header > ul > li ul li a {
    color: #4D4435 !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    text-align: left !important;
    border-bottom: none !important;
    padding: 4px 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: block !important;
}


#header > ul > li ul li:hover {
    /*background: linear-gradient(135deg, rgba(144, 195, 31, 0.08), rgba(100, 139, 94, 0.08)) !important;*/
    /*transform: translateX(4px) !important;*/
}

#header > ul > li ul li a:hover {
    color: #2c7ac7 !important;
    font-weight: 600 !important;
    background: #f0f7ff !important;
}

@media screen and (max-width : 900px) {

	#header .wrap{
		min-height: 90px;
		border-bottom: 1px solid #ebebeb;
		position: relative;
	}
	#header nav{ display:none; }
	#header .wrap > #mobileMenu{
		display: block;
		position: absolute;
		top: 29px;
		left: 15px;
		width: 35px;
		height: 32px;
	}
	
	#header .wrap .logo{
		position: absolute;
		left: 55%;
		transform: translateX(-50%);
		top: 20px;
		padding: 0 0 10px 0;
		max-width: 200px;
	}

	#header .wrap .nav{
		display: none;
		flex-direction: column;
		position: absolute;
		top: 15px;
		right: 10px;
		width: auto;
		gap: 5px;
		border-bottom: none;
		padding: 0;
	}

	#header .wrap .nav a {
		display: inline-block;
		/* width: 40px; */
		/* height: 40px; */
		padding: 5px 0px 3px 1px;
		background: rgba(68, 146, 205, 0.1);
		border-radius: 8px;
		font-size: 0;
		transition: all 0.3s ease;
		border: 1px solid #c9c9ca;
	}

	#header .wrap .nav a:hover {
		background: #c9c9ca;
		transform: scale(1.05);
	}

	#header .wrap .nav a img {
		width: 18px;
		height: 18px;
		filter: brightness(0) saturate(100%) invert(37%) sepia(75%) saturate(1120%) hue-rotate(186deg) brightness(92%) contrast(91%);
	}

	#header .wrap .nav a:hover img {
		filter: brightness(0) saturate(100%) invert(100%);
	}

	#header .wrap .nav i{ display:none; }
	#header ul{ display:none; }

}

