.gp-header20 { background: #fff; position: relative; } .gp-header20 .top { position: relative; display: flex; justify-content: space-between; box-sizing: border-box; padding-left: 30px; } .gp-header20 .top .top img:hover { transform: scale(1); opacity: 1; } .gp-header20 .top .logo1 { margin-right: 50px; display: flex; display: -webkit-flex; margin-right: 46px; align-items: center; } .gp-header20 .top .logo1 img { max-height: 60px; } .gp-header20 .top .logo1 .logo_01 { position: relative; z-index: 2; max-height: 60px; overflow: hidden; display: inline-block; vertical-align: middle; position: relative; padding-right: 20px; } .gp-header20 .top .logo1 .logo_01::after { content: ""; display: block; width: 1px; height: 72%; background: rgba(255, 255, 255, 0.23); position: absolute; right: 0px; top: 50%; transform: translateY(-50%); } .gp-header20 .top .logo1 .logo_02 { max-height: 60px; overflow: hidden; position: relative; z-index: 2; display: inline-block; vertical-align: middle; margin: 0% 0 0 0%; } .gp-header20 .top .logo1 .logo_02 a { display: block; background: none; } .gp-header20 .top .topRight { flex: 1; position: relative; } .gp-header20 .top .topRight .topRight_top { height: 30px; line-height: 30px; overflow: hidden; } .gp-header20 .top .topRight .topRight_top>.gp-search { display: inline-block; box-sizing: border-box; font-size: 0; margin: 0; float: right; position: relative; cursor: pointer; } .gp-header20 .top .topRight .topRight_top>.gp-search .gp-serBtn2 { background: #edc34e; padding: 0 25px; box-sizing: border-box; } .gp-header20 .top .topRight .topRight_top>.gp-search .gp-serBtn2 i { margin-right: 10px; } .gp-header20 .top .topRight .topRight_top>.gp-search .sjx { width: 0; height: 0; border-color: #A6261B transparent; /*上下颜色 左右颜色*/ border-width: 30px 0 0px 30px; border-style: solid; background: none; padding: 0; position: absolute; left: -30px; } .gp-header20 .top .topRight .topRight_top>.gp-search .gp-search2.active { float: right; width: 200px; border: 1px solid #ccc; } .gp-header20 .top .topRight .topRight_top .gp-link { padding: 0; } .gp-header20 .top .topRight .topRight_top .gp-link a { padding: 0 20px; float: right; } .gp-header20 .top .topRight .topRight_top .gp-link a:nth-child(1) { background: #d959c3; } .gp-header20 .top .topRight .topRight_top .gp-link a:nth-child(2) { background: #ff9e54; } .gp-header20 .top .topRight .nav { z-index: 10; box-sizing: border-box; margin: 10px 0 0 0; } .gp-header20 .top .topRight .nav ul { display: flex; justify-content: space-around; } .gp-header20 .top .topRight .nav ul li { position: relative; } .gp-header20 .top .topRight .nav ul li>a { text-align: center; display: block; } .gp-header20 .top .topRight .nav ul li>a strong { display: block; line-height: 30px; font-size: 24px; } .gp-header20 .top .topRight .nav ul li>a span { line-height: 30px; font-size: 12px; } .gp-header20 .top .topRight .nav ul li .subNav { background: rgba(166, 38, 27, 0.85); position: absolute; width: 160px; position: absolute; left: 50%; top: 60px; margin-left: -80px; display: none; z-index: 9; transition: all 0.6s ease-in-out; } .gp-header20 .top .topRight .nav ul li .subNav a { color: #fff; padding: 10px; font-size: 14px; line-height: 20px; overflow: hidden; display: block; text-align: center; } .gp-header20 .top .topRight .nav ul li .subNav a:hover { background: rgba(0, 0, 0, 0.15); } .gp-header20 .top .topRight .nav ul li.on .subNav { display: block; transition: all 0.6s ease-in-out; } .gp-header20 .top .topRight .nav ul li.on .subNav>a { padding: 10px; font-size: 14px; line-height: 20px; display: block; text-align: center; } .gp-header20 .top .topRight .nav .gp-clearFix:after { content: ""; display: block; clear: both; } .gp-header20 .top .topRight .gp-search2 { width: 220px; overflow: hidden; display: inline-block; *display: inline; *zoom: 1; vertical-align: middle; transition: all 0.35s ease-in-out; border: 1px solid #ccc; } .gp-header20 .top .topRight .gp-search2 input, .gp-header20 .top .topRight .gp-search2 button { position: absolute; height: 28px; line-height: 28px; border: none; background: none; top: 0px; overflow: hidden; outline: none; } .gp-header20 .top .topRight .gp-search2 input.notxt { color: #a4a4a4 !important; width: 82%; left: 0; padding-left: 2%; } .gp-header20 .top .topRight .gp-search2 .notxt1 { position: absolute; width: 15%; right: 0; cursor: pointer; color: #333 !important; } .gp-header20 .top .topRight .gp-search2 { width: 0; border: none; padding: 0 !important; } .gp-header20 .top .topRight .gp-search2 .gp-ser { width: 100%; height: 28px; z-index: 9999994; margin: 0 auto; position: relative; } .gp-header20 .top .topRight .gp-overlay { width: 100%; height: 100%; position: fixed; top: 0; z-index: 1800; background: #000; opacity: 0.7; filter: alpha(opacity=80); display: none; left: 0; } .gp-header20 .gp-menu { width: 100%; z-index: 98; height: 35px; position: relative; display: none; right: 0; top: 0; z-index: 400; background-color: #A6261B; } .gp-header20 .gp-menu .gp-menu-header { position: absolute; top: 50%; right: 0; z-index: 996; width: 100%; height: 40px; margin-top: -20px; } .gp-header20 .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-header20 .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-header20 .gp-menu .gp-menu-header .gp-menu-header-icon span:nth-child(1) { transform: translateY(4px) rotate(0deg); } .gp-header20 .gp-menu .gp-menu-header .gp-menu-header-icon span:nth-child(2) { transform: translateY(-4px) rotate(0deg); } .gp-header20 .gp-menu .gp-menu-header .gp-menu-header-icon-out span { width: 26px; height: 2px; background-color: #fff; display: block; border-radius: 4px; } .gp-header20 .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-header20 .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-header20 .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-header20 .gp-menu .gp-menu-header .gp-menu-header-icon-click span { top: calc((100% - 2px) / 2.1); } .gp-header20 .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-header20 .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-header20 .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-header20 .gp-menu .gp-menu-nav { width: 100%; position: fixed; top: 0; right: 0px; display: none; padding-top: 40px; background: #A6261B; } .gp-header20 .gp-menu .gp-menu-nav .gp-search.gp-m-search { overflow: hidden; transition: all 0.35s ease-in-out; border: 1px solid #A6261B; margin-left: 10px; border-radius: 30px; background-color: #f6f7f9; width: 90%; margin: 10px auto 0; display: block; } .gp-header20 .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-header20 .gp-menu .gp-menu-nav .gp-search.gp-m-search .gp-ser input, .gp-header20 .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-header20 .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-header20 .gp-menu .gp-menu-nav .gp-search.gp-m-search .gp-ser .notxt1 { position: absolute; cursor: pointer; color: #A6261B !important; left: 0; width: 40px; } .gp-header20 .gp-menu .gp-menu-nav>ul { padding: 0 30px; } .gp-header20 .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-header20 .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-header20 .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-header20 .gp-menu .gp-menu-nav>ul>li .m-second-nav { display: none; opacity: 0.7; padding-bottom: 1rem; } .gp-header20 .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-header20 .gp-menu .gp-menu-nav>ul>li .m-second-nav>li.on span { transform: rotate(45deg); } .gp-header20 .gp-menu .gp-menu-nav>ul>li.on span { transform: rotate(90deg); } .gp-header20 .gp-menu .gp-menu-nav .gp-menu-link { float: left; line-height: 40px; height: 40px; padding-left: 15px; } .gp-header20 .gp-menu .gp-menu-nav .gp-menu-link a { color: #fff; } .gp-header20 .gp-menu .gp-menu-nav .m-link { margin: 0 30px; padding: 15px 0; } .gp-header20 .gp-menu .gp-menu-nav .m-link a { display: inline-block; vertical-align: middle; line-height: 1.5; padding: 4px 10px; } .gp-header20 .gp-menu .gp-menu-nav.gp-menu-offcanvas1 { position: fixed; display: block; transform: translate(-150%, 0); width: 100%; right: auto; left: 0; } .gp-header20 .gp-menu.open .gp-menu-nav.gp-menu-offcanvas1 { transition: all 1s ease-in-out; transform: translate(0, 0); position: absolute; } .gp-header20 .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: 1460px) { .gp-header20 .top .logo1 { width: 400px; } .gp-header20 .top .topRight .nav ul li>a strong { font-size: 18px; } } @media screen and (max-width: 1100px) { .gp-header20 .top .logo1 { width: 340px; } } @media screen and (max-width: 996px) { .gp-header20 .top .logo1 { width: auto; margin: 8px auto; } .gp-header20 .gp-menu { display: block; } .gp-header20 .gp-menu .gp-menu-nav { display: block; } .gp-header20 .gp-menu.open .gp-menu-link { display: none; } .gp-header20 .gp-menu.open .gp-menu-nav>ul>li { transform: none; opacity: 1; } .gp-header20 .topRight { display: none !important; } } .gp-header20 { transition: all 0.3s ease-out 0s; z-index: 10; } .gp-header20.currents { position: fixed; left: 0; right: 0; top: 0; box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); background: #fff; } .gp-header20 .top .topRight .topRight_top { transition: all 0.2s ease-out 0s; } .gp-header20.currents .top .topRight .topRight_top { height: 0; display: none; } .gp-header20.currents .top .topRight .nav ul li>a { line-height: 50px; }