.yuedong_head { position: sticky; z-index: 9999; width: 100%; background: #fff; font-family: var(--source-font-family); } input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } .yuedong-head-menu.fixed-top { background: #fff; animation: slide-down 0.3s ease; } .head-info-inquiry:hover { color: #fff; } @keyframes slide-down { 0% { transform: translateY(-100%); } 100% { transform: translateY(0); } } .yuedong_head .row { margin: 0; align-items: center; } .yuedong-head-menu.fixed-top { background: #fff; transition: all 0.3s ease; } .yuedong_head .navbar { padding: 0 !important; } .yuedong_head .navbar-box { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.7188rem; } /* Logo */ .yuedong_head .navbar-brand { padding: 0; margin-right: 0.625rem; } .yuedong_head .navbar-brand img { width: auto; max-height: 1.875rem; object-fit: cover; } /* Navbar */ .yuedong_head .navbar-collapse { flex: 1; flex-grow: 1 !important; justify-content: right; } html[lang="en"] .yuedong_head .navbar-collapse{ flex: auto; } .yuedong_head .navbar-nav { width: 100%; flex-wrap: wrap; gap: 1.4375rem; } html[lang="en"] .yuedong_head .navbar-nav{ width: fit-content; } .yuedong_head .nav-item { flex: 1; position: relative; min-width: 0; } html[lang="en"] .yuedong_head .nav-item{ flex: auto; } .yuedong_head .nav-item .nav-link-text-wrap { display: inline-block; max-width: 100%; overflow: hidden; vertical-align: bottom; } .yuedong_head .nav-item .nav-link:not(.nav-link--marquee) .nav-link-text-wrap { white-space: nowrap; text-overflow: ellipsis; } .yuedong_head .nav-item .nav-link-text { display: inline-block; white-space: nowrap; } .yuedong_head .nav-item .nav-link--marquee .nav-link-marquee-inner { display: inline-flex; white-space: nowrap; will-change: transform; animation: yuedong-nav-marquee linear infinite; } .yuedong_head .nav-item .nav-link--marquee:hover .nav-link-marquee-inner { animation-play-state: paused; } @keyframes yuedong-nav-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } } .yuedong_head .nav-item a { text-transform: capitalize; text-decoration: none; transition: all 0.6s ease 0s; } .yuedong_head .nav-item .nav-link.hasSubNav::before { color: #252525 !important; font-size: 0.375rem !important; font-weight: 600 !important; border: none !important; font-family: "iconfont" !important; content: "\e68d" !important; position: absolute !important; right: -0.5rem !important; top: 50% !important; transform: translateY(-50%) !important; } .yuedong_head .nav-link.active, .yuedong_head .show>.nav-link { color: var(--text-color); } .yuedong_head .dropdown-menu { position: static; } .yuedong_head .nav-item .dropdown-submenu { position: relative; } .yuedong_head .nav-item .dropdown-submenu .dropdown-menu::before { display: none; } .yuedong_head .nav-item .dropdown-submenu a::after { transform: rotate(-90deg); position: absolute; right: 0.4688rem; top: 0.4063rem; font-weight: 600; display: none; } .yuedong_head .nav-item .dropdown-submenu a:hover { background: transparent; color: #fff; } .yuedong_head .nav-item .dropdown-submenu .dropdown-menu { top: 120%; left: 100%; opacity: 0; display: none; visibility: hidden; } .yuedong_head .nav-item .dropdown-submenu:hover .dropdown-menu { top: 0; opacity: 1; display: block; visibility: visible; } .yuedong_head .nav-item.active .nav-link { color: var(--color-primary); } /* Menu、Search */ .yuedong_head .iconfont-down4:before { content: "\e64f" !important; color: #252525; } .yuedong_head .iconfont-down2 { color: #252525 !important; } .yuedong_head .lang-selector { width: fit-content; } .lang-selector .current-lang em { color: #252525 !important; font-size: max(14px, 0.5625rem) !important; font-weight: 500 !important; line-height: 1.5 !important; display: none; } .lang-selector .current-lang i { font-size: max(14px, 0.5rem) !important; color: #000 !important; } .yuedong_head .lang-selector .current-lang { height: 1.125rem; } .head-search em { margin: 0; cursor: pointer; font-weight: 400; text-align: center; display: block; } .head-search em i { color: #252525; font-weight: bolder; font-size: max(14px, 0.5rem); } .head-search em i.qico-search3, .serchbox .submit_btn i.qico-search3 { display: inline-block; width: 0.625rem; height: 0.625rem; position: relative; font-size: 0; vertical-align: middle; } .head-search em i.qico-search3::before, .serchbox .submit_btn i.qico-search3::before { content: "" !important; position: absolute; width: 0.375rem; height: 0.375rem; left: 0; top: 0; border: 0.0625rem solid currentColor; border-radius: 50%; } .head-search em i.qico-search3::after, .serchbox .submit_btn i.qico-search3::after { content: ""; position: absolute; width: 0.25rem; height: 0.0625rem; right: 0; bottom: 0.0625rem; background: currentColor; transform: rotate(45deg); transform-origin: center; border-radius: 999px; } .head-search { margin: 0 0.625rem 0 0; } .yuedong_head .serchbox { position: fixed; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.8); top: 0; right: 0; bottom: 0; left: 0; display: none; align-items: center; justify-content: center; } .yuedong_head .serchbox.active { display: flex; } .yuedong_head .serchbox form { width: 80%; max-width: 895px; margin: 0 auto; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; position: relative; } .yuedong_head .serchbox .submit_text { width: 100%; background: transparent; border-bottom: 0.0938rem solid #fff; font-size: 1.5625rem; font-weight: 500; height: 1.4; line-height: 1.4; color: #fff; padding: 0 1.25rem 0 0.5rem; } .yuedong_head .serchbox .submit_text::placeholder { color: #fff; } .yuedong_head .serchbox .submit_btn { position: absolute; right: 0.3125rem; top: 50%; background: transparent; transform: translateY(-50%); text-align: center; display: block; cursor: pointer; } .yuedong_head .serchbox .submit_btn i { font-size: max(16px, 1rem); color: #fff; line-height: 1.5625rem; } .yuedong_head .navbar-toggler:focus { outline: none; box-shadow: none; } .yuedong_head .navbar-toggler { display: none; } .head-info-inquiry { width: fit-content; color: #FFF; font-size: max(14px, 0.5625rem); font-weight: 500; line-height: normal; padding: 0.25rem 0.75rem; background-color: var(--color-primary); border-radius: var(--button-radius); margin-left: 1.25rem; } @media all and (min-width: 992px) { .yuedong_head .navbar { height: 3.625rem; } .yuedong_head .nav-item .nav-link { position: relative; text-align: center; padding: 0; font-size: max(14px, 0.6875rem); font-weight: 500; color: #252525; line-height: normal; overflow: hidden; text-overflow: ellipsis; } .yuedong_head .nav-item .nav-link--marquee { text-overflow: clip; } html[lang="en"] .yuedong_head .nav-item .nav-link { max-width: none; white-space: nowrap; overflow: visible; } html[lang="en"] .yuedong_head .nav-item .nav-link .nav-link-text-wrap { max-width: min(12.5rem, 28vw); } html[lang="en"] .yuedong_head .nav-item .nav-link.nav-link--marquee { overflow: hidden; } .yuedong_head .nav-item .dropdown-menu { display: block; opacity: 0; visibility: hidden; transition: 0.3s; margin-top: 0; border: none; left: -1.125rem; width: 9.6875rem; background: #fff; box-shadow: 0 0.3125rem 0.625rem 0 rgba(0, 0, 0, 0.10); border-radius: 0; } .yuedong_head .nav-item .dropdown-menu li:last-child { margin-bottom: 0; border-bottom: none; } .yuedong_head .nav-item .dropdown-menu .dropdown-item { font-size: max(14px, 0.5625rem); font-weight: 500; color: #252525; position: relative; overflow: hidden; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; transition: all 0.3s ease-in-out; line-height: 2.5; padding: 0.125rem 1.5625rem 0.125rem 1.125rem; } .yuedong_head .nav-item .dropdown-menu .dropdown-item:hover { background: transparent; color: var(--color-primary); } .yuedong_head .nav-item .dropdown-menu .dropdown-item:hover::before { content: "\e609"; font-family: "qico" !important; position: absolute; right: 0.9375rem; top: 50%; transform: translateY(-50%); color: var(--color-primary); } .yuedong_head .nav-item:hover .dropdown-menu { transition: 0.3s; opacity: 1; visibility: visible; top: 100%; transform: rotateX(0deg); } .yuedong_head .dropdown-menu.fade-down { top: 80%; transform: rotateX(-75deg); transform-origin: 0% 0%; } .yuedong_head .dropdown-menu.fade-up { top: 140%; } .yuedong_head .nav-item.active::after { position: absolute; content: ""; bottom: -0.7813rem; left: 0; width: 100%; height: 0.1563rem; background: var(--color-primary); } } @media all and (max-width: 1630px) { .yuedong_head .navbar-box, .yuedong_head .navbar-nav { gap: 1rem; } .yuedong_head .navbar-brand img { max-height: 1.5rem; } } @media all and (max-width: 991px) { .yuedong_head .navbar { height: 2.5rem; } /* Logo */ .yuedong_head .navbar-brand { margin: 0; } .yuedong_head .collapse .logo { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid #f0f0f0; background: #fff; position: sticky; top: 0; z-index: 10; } .yuedong_head .collapse .logo .qico { font-size: 1.25rem; cursor: pointer; color: #666; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #f5f5f5; transition: all 0.2s ease; } .yuedong_head .collapse .logo .qico:hover { background: #e8e8e8; color: #333; } .navbar-brand img { width: auto; height: 1.75rem; object-fit: cover; } /* Navbar */ .yuedong_head .navbar-nav { margin-left: 0; gap: 0; margin-top: 0; padding: 0.625rem 0; } .yuedong_head .nav-item { border-bottom: 1px solid #f8f8f8; } .yuedong_head .nav-item:last-child { border-bottom: none; } .yuedong_head .nav-item.active .nav-link { color: var(--color-primary); font-weight: 600; background: rgba(var(--color-primary-rgb, 37, 99, 235), 0.04); } .yuedong_head .nav-link.hasSubNav::after { width: 24px; height: 24px; vertical-align: baseline; font-family: "iconfont"; content: "\e64c"; font-weight: 600; border: none; font-size: 14px; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; } .yuedong_head .nav-item .dropdown-submenu a::after { transform: rotate(0); top: 0.375rem; } .yuedong_head .nav-item .dropdown-submenu a:hover { color: var(--color-primary); } .yuedong_head .nav-item .dropdown-submenu:hover .dropdown-menu { display: none; } .yuedong_head .nav-item .dropdown-submenu .dropdown-menu { opacity: unset; visibility: unset; margin: 0 0.5313rem; padding: 0 0.3125rem 0 0.625rem; border: none; } .yuedong_head .dropdown-menu { border-radius: 0; background: #fafafa; } .yuedong_head .dropdown-toggle::after { border-top: 0.25rem solid; border-right: 0.1875rem solid transparent; border-bottom: 0; border-left: 0.1875rem solid transparent; } .yuedong_head .navbar-collapse { width: 80vw; max-width: 320px; height: 100vh; height: 100dvh; position: fixed; top: 0; background: #fff; left: 0; z-index: 9999; box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12); overflow-y: auto; border-radius: 0 16px 16px 0; transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease; } /* 折叠状态:彻底隐藏,避免首次点击闪烁 */ .yuedong_head .navbar-collapse.collapse:not(.show):not(.collapsing) { display: none; visibility: hidden; } .yuedong_head .nav-item a { text-decoration: none; transition: all 0.2s ease; padding: 0.875rem 1.25rem !important; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.9375rem; color: #333; font-weight: 400; } .yuedong_head .nav-item a:hover { color: var(--color-primary); background: rgba(var(--color-primary-rgb, 37, 99, 235), 0.04); } .yuedong_head .nav-item .nav-link--marquee { text-overflow: clip; } .yuedong_head .navbar-nav li { width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Menu、Search */ .yuedong_head .iconfont-down2 { color: var(--title-text-color) !important; } .yuedong_head .navbar-toggler { display: block; padding: 0 !important; line-height: normal; font-size: 0 !important; } .yuedong_head .navbar-toggler i { color: #000; } .head-info-inquiry { margin: 0 0.625rem; } } /* 移动端菜单遮罩层 */ .yuedong-menu-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; } .yuedong-menu-backdrop.show { opacity: 1; pointer-events: auto; }