.gp-header2 { z-index: 880; position: relative; background-color: #BA2527; } @media screen and (max-width:996px) { .gp-header2 { /*width: 100%;*/ position: relative; height: auto; } } .gp-header2 .gp-top { position: relative; } .gp-header2 .gp-top .gp-logo { display: flex; display: -webkit-flex; align-items: center; padding: 21px 0; box-sizing: border-box; } .gp-header2 .gp-top .gp-logo a { display: inline-block; vertical-align: middle; } .gp-header2 .gp-top .gp-logo a img { max-height: 70px; } .gp-header2 .gp-top .gp-logo .logo_02 { margin-left: 10px; } .gp-header2 .gp-top .gp-logo:hover { opacity: 0.9; } .gp-header2 .gp-top .gp-search-wrap { position: absolute; right: 0; top: 30px; z-index: 20; } .gp-header2 .gp-top .gp-search-wrap .gp-link > a { opacity: 0.6; transition: all 0.35 ease-in-out; margin: 0 10px; color: #fff; } .gp-header2 .gp-top .gp-search-wrap .gp-search { width: 220px; overflow: hidden; display: inline-block; *display: inline; *zoom: 1; vertical-align: middle; transition: all 0.35s ease-in-out; border: 1px solid #bfbeac; margin-left: 10px; border-radius: 30px; background-color: #fff; } .gp-header2 .gp-top .gp-search-wrap .gp-search .gp-ser { width: 100%; height: 32px; z-index: 9999994; margin: 0 auto; position: relative; } .gp-header2 .gp-top .gp-search-wrap .gp-search .gp-ser input, .gp-header2 .gp-top .gp-search-wrap .gp-search .gp-ser button { position: absolute; height: 32px; line-height: 32px; border: none; background: none; top: 0px; overflow: hidden; } .gp-header2 .gp-top .gp-search-wrap .gp-search .gp-ser input.notxt { color: #666; width: 80%; left: 0; padding-left: 4%; opacity: 0.5; } .gp-header2 .gp-top .gp-search-wrap .gp-search .gp-ser .notxt1 { position: absolute; width: 15%; right: 0; cursor: pointer; color: #BA2527; } .gp-header2 .gp-top:hover { opacity: 1; color: #fff; } .gp-header2 .gp-menu { width: 100%; z-index: 98; height: 35px; position: relative; display: none; right: 0; top: 0; z-index: 400; background-color: rgba(0, 0, 0, 0.15); } .gp-header2 .gp-menu .gp-menu-header { position: absolute; top: 50%; right: 0; z-index: 996; width: 100%; height: 40px; margin-top: -20px; } .gp-header2 .gp-menu .gp-menu-header .gp-menu-header-icon { color: #fff; height: 30px; float: right; width: 30px; position: relative; -webkit-transition: background-color 0.5s; -moz-transition: background-color 0.5s; -o-transition: background-color 0.5s; transition: background-color 0.5s; cursor: pointer; margin: 2px 20px 0 0; } .gp-header2 .gp-menu .gp-menu-header .gp-menu-header-icon span { position: absolute; left: calc((100% - 30px) / 2); top: calc((100% - 6px) / 2.3); width: 26px; height: 2px; background-color: #fff; } .gp-header2 .gp-menu .gp-menu-header .gp-menu-header-icon span:nth-child(1) { transform: translateY(4px) rotate(0deg); } .gp-header2 .gp-menu .gp-menu-header .gp-menu-header-icon span:nth-child(2) { transform: translateY(-4px) rotate(0deg); } .gp-header2 .gp-menu .gp-menu-header .gp-menu-header-icon-out span { width: 26px; height: 2px; background-color: #fff; display: block; border-radius: 4px; } .gp-header2 .gp-menu .gp-menu-header .gp-menu-header-icon-out span:nth-child(1) { animation-duration: 0.5s; animation-fill-mode: both; animation-name: outfirst; } @keyframes outfirst { 0% { transform: translateY(0) rotate(-45deg); } 100% { transform: translateY(-4px) rotate(0deg); } } .gp-header2 .gp-menu .gp-menu-header .gp-menu-header-icon-out span:nth-child(2) { animation-duration: 0.5s; animation-fill-mode: both; animation-name: outsecond; } @keyframes outsecond { 0% { transform: translateY(0) rotate(45deg); } 100% { transform: translateY(4px) rotate(0deg); } } .gp-header2 .gp-menu .gp-menu-header .gp-menu-header-icon-out span:nth-child(3) { animation-duration: 0.5s; animation-fill-mode: both; animation-name: outthird; } @keyframes outthird { 0% { transform: translateY(0) rotate(90deg); } 100% { transform: translateY(12px) rotate(0deg); } } .gp-header2 .gp-menu .gp-menu-header .gp-menu-header-icon-click span { top: calc((100% - 2px) / 2.1); } .gp-header2 .gp-menu .gp-menu-header .gp-menu-header-icon-click span:nth-child(1) { animation-duration: 0.5s; animation-fill-mode: both; animation-name: clickfirst; } .gp-header2 .gp-menu .gp-menu-header .gp-menu-header-icon-click span:nth-child(2) { animation-duration: 0.5s; animation-fill-mode: both; animation-name: clicksecond; margin-left: 0; } .gp-header2 .gp-menu .gp-menu-header .gp-menu-header-icon-click span:nth-child(3) { animation-duration: 0.5s; animation-fill-mode: both; animation-name: clickthird; } @keyframes clickfirst { 0% { transform: translateY(4px) rotate(0deg); } 100% { transform: translateY(0) rotate(45deg); } } @keyframes clicksecond { 0% { transform: translateY(-4px) rotate(0deg); } 100% { transform: translateY(0) rotate(-45deg); } } @keyframes clickthird { 0% { opacity: 0; } 100% { opacity: 0; } } .gp-header2 .gp-menu .gp-menu-nav { width: 100%; position: fixed; top: 0; right: 0px; display: none; padding-top: 40px; background: #BA2527; } .gp-header2 .gp-menu .gp-menu-nav .gp-search.gp-m-search { overflow: hidden; transition: all 0.35s ease-in-out; border: 1px solid #BA2527; margin-left: 10px; border-radius: 30px; background-color: #f6f7f9; width: 90%; margin: 10px auto 0; display: block; } .gp-header2 .gp-menu .gp-menu-nav .gp-search.gp-m-search .gp-ser { width: 100%; height: 32px; z-index: 9999994; margin: 0 auto; position: relative; } .gp-header2 .gp-menu .gp-menu-nav .gp-search.gp-m-search .gp-ser input, .gp-header2 .gp-menu .gp-menu-nav .gp-search.gp-m-search .gp-ser button { position: absolute; height: 32px; line-height: 32px; border: none; background: none; top: 0px; overflow: hidden; } .gp-header2 .gp-menu .gp-menu-nav .gp-search.gp-m-search .gp-ser input.notxt { color: #333 !important; opacity: 1; left: 0; width: 100%; box-sizing: border-box; padding-left: 42px; } .gp-header2 .gp-menu .gp-menu-nav .gp-search.gp-m-search .gp-ser .notxt1 { position: absolute; cursor: pointer; color: #BA2527 !important; left: 0; width: 40px; } .gp-header2 .gp-menu .gp-menu-nav > ul { padding: 0 30px; } .gp-header2 .gp-menu .gp-menu-nav > ul > li { position: relative; box-sizing: border-box; transition: all 0.5s ease-in; transform: translateX(-40px); opacity: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); } .gp-header2 .gp-menu .gp-menu-nav > ul > li > a { display: inline-block; padding: 1.2rem 0 1.2rem 0; font-size: 16px; width: 60%; line-height: 1.4; } .gp-header2 .gp-menu .gp-menu-nav > ul > li > .gp-menu-arrow { cursor: pointer; width: 30px; height: 45px; line-height: 45px; color: #e9e9e9; text-align: right; position: absolute; right: 0; top: 0; font-size: 20px; transition: all 0.3s ease-in-out; top: 4px; color: #dad6ce; } .gp-header2 .gp-menu .gp-menu-nav > ul > li .m-second-nav { display: none; opacity: 0.7; padding-bottom: 1rem; } .gp-header2 .gp-menu .gp-menu-nav > ul > li .m-second-nav > li > a { display: inline-block; padding: 0.5rem 0 0.5rem 10px; font-size: 14px; } .gp-header2 .gp-menu .gp-menu-nav > ul > li .m-second-nav > li.on span { transform: rotate(45deg); } .gp-header2 .gp-menu .gp-menu-nav > ul > li.on span { transform: rotate(90deg); } .gp-header2 .gp-menu .gp-menu-nav .gp-menu-link { float: left; line-height: 40px; height: 40px; padding-left: 15px; } .gp-header2 .gp-menu .gp-menu-nav .gp-menu-link a { color: #fff; } .gp-header2 .gp-menu .gp-menu-nav .m-link { margin: 0 30px; padding: 15px 0; } .gp-header2 .gp-menu .gp-menu-nav .m-link a { display: inline-block; vertical-align: middle; line-height: 1.5; padding: 4px 10px; } .gp-header2 .gp-menu .gp-menu-nav.gp-menu-offcanvas1 { position: fixed; display: block; transform: translate(-150%, 0); width: 100%; right: auto; left: 0; } .gp-header2 .gp-menu.open .gp-menu-nav.gp-menu-offcanvas1 { transition: all 1s ease-in-out; transform: translate(0, 0); position: absolute; } .gp-header2 .gp-nav-wrap { background-color: #fff; } .gp-header2 .gp-nav-wrap .gp-nav { border-top: 1px solid rgba(255, 255, 255, 0.3); display: flex; display: -webkit-flex; justify-content: space-between; margin-top: 0; margin-bottom: 0; } .gp-header2 .gp-nav-wrap .gp-nav > li { position: relative; text-align: center; padding: 0 10px; } .gp-header2 .gp-nav-wrap .gp-nav > li > a { display: inline-block; line-height: 1; font-size: 18px; color: #333; transition: all 0.35s ease-in-out; position: relative; z-index: 50; position: relative; vertical-align: top; height: 50px; line-height: 50px; position: relative; } .gp-header2 .gp-nav-wrap .gp-nav > li > a::before { content: ''; width: 0; height: 2px; background-color: #fff; position: absolute; left: 50%; bottom: 0; transition: all 0.35s ease-in-out; } .gp-header2 .gp-nav-wrap .gp-nav > li > a:hover:before { width: 100%; left: 0; } .gp-header2 .gp-nav-wrap .gp-nav > li .second_nav1 { position: absolute; left: 50%; top: 50px; width: 200px; display: none; text-align: center; background-color: rgba(186, 37, 39, 0.85); margin: 0; margin-left: -100px; } .gp-header2 .gp-nav-wrap .gp-nav > li .second_nav1 dd a { display: block; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding: 10px 15px; font-size: 14px; transition: all 0.3s ease-in-out; color: #fff; line-height: 1.2; } .gp-header2 .gp-nav-wrap .gp-nav > li .second_nav1 dd:hover { background-color: rgba(0, 0, 0, 0.15); } .gp-header2 .gp-nav-wrap .gp-nav li.on a::before { width: 100%; left: 0; } .gp-header2 .gp-nav-wrap .gp-nav li.on .second_nav1 { display: block; } .gp-header2 .mobile_bg { width: 100%; height: 100%; z-index: 90; position: fixed; top: 0; left: 0; background: rgba(0, 0, 0, 0.6); display: none; } @media screen and (max-width:996px) { .gp-header2 .searchWrap { display: none; } .gp-header2 .gp-menu { display: block; } .gp-header2 .gp-menu .gp-menu-nav { display: block; } .gp-header2 .gp-menu.open .gp-menu-link { display: none; } .gp-header2 .gp-menu.open .gp-menu-nav > ul > li { transform: none; opacity: 1; } .gp-header2 .gp-top { height: auto; } .gp-header2 .gp-top .gp-logo { justify-content: center; position: relative; z-index: 1000; padding: 15px 0 !important; } .gp-header2 .gp-top .gp-logo a img { max-height: 55px; } .gp-header2 .gp-top .gp-logo .gp-search-wrap { display: none; } .gp-header2 .gp-top .gp-logo.open { z-index: 90; } .gp-header2 .gp-top .gp-search-wrap { display: none; } .gp-header2 .gp-nav-wrap { display: none; } .gp-header2 .gp-nav-wrap .gp-menu-nav > ul > li { transform: none; opacity: 1; } .gp-header2 .gp-m-search { display: block; } } @media screen and (max-width:767px) { .gp-header2 .gp-header1 .gp-menu-nav > ul { padding: 10px 20px 0; } .gp-header2 .gp-header1 .m-link { margin: 0 20px; } } .gp-header2.currents { box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); position: fixed; left: 0; top: 0; height: 50px; width: 100%; margin-bottom: 0; } .gp-header2.currents .gp-top { display: none; } .gp-header2.currents .gp-logo, .gp-header2.currents .searchWrap { display: none; } .gp-header2.currents .gp-nav-wrap { position: static; width: 100%; } .gp-header2.currents .gp-nav-wrap .gp-nav > li > a { height: 50px; line-height: 50px; padding: 0; } .gp-header2.currents .gp-nav-wrap .gp-nav > li .second_nav1 { top: 50px; } .gp-header2 { transition: all 0.4s ease-out 0s; z-index: 10; } .gp-header2.currents { position: fixed; left: 0; right: 0; top: 0; box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); } .gp-header2 .gp-top { transition: all 0.2s ease-out 0s; } .gp-header2.currents .gp-top { height: 0; overflow: hidden; }