You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
216 lines
5.4 KiB
216 lines
5.4 KiB
@charset "UTF-8";
|
|
.site-header {
|
|
position: fixed;
|
|
top: 1.5625rem;
|
|
left: 0;
|
|
right: 0;
|
|
margin: 0 auto;
|
|
z-index: 100;
|
|
width: 97%;
|
|
height: 4rem;
|
|
border-radius: 1.25rem;
|
|
display: flex;
|
|
align-items: stretch;
|
|
isolation: isolate;
|
|
overflow: visible;
|
|
}
|
|
.site-header::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 0;
|
|
border-radius: inherit;
|
|
pointer-events: none;
|
|
backdrop-filter: blur(5px) saturate(100%);
|
|
box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--color-white) 10%, transparent), inset 2px 2px 2px -2px color-mix(in srgb, var(--color-white) 90%, transparent), inset -2px -2px 2px -2px color-mix(in srgb, var(--color-white) 80%, transparent);
|
|
}
|
|
.site-header > * {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
.site-header.dark::before {
|
|
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-white) 50%, transparent), inset 1px 1px 10px rgba(0, 0, 0, 0.1), inset -1px -1px 10px rgba(255, 255, 255, 0.1);
|
|
}
|
|
.site-header.dark .site-header__logo .dark-logo {
|
|
display: block;
|
|
}
|
|
.site-header.dark .site-header__logo .light-logo {
|
|
display: none;
|
|
}
|
|
.site-header.dark .site-header__nav-link, .site-header.dark .site-header__dropdown-link {
|
|
color: rgb(58, 58, 58);
|
|
}
|
|
.site-header.dark .site-header__icon-btn {
|
|
border: 1px solid var(--color-white);
|
|
}
|
|
.site-header.dark .site-header__icon-btn svg {
|
|
fill: rgb(58, 58, 58);
|
|
}
|
|
.site-header.dark .site-header__dropdown {
|
|
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-white) 50%, transparent), inset 1px 1px 10px rgba(0, 0, 0, 0.1), inset -1px -1px 10px rgba(255, 255, 255, 0.1);
|
|
}
|
|
.site-header .site-header__container {
|
|
display: flex;
|
|
flex: 1;
|
|
padding: 0 1.5625rem;
|
|
align-items: center;
|
|
width: 100%;
|
|
min-height: 0;
|
|
}
|
|
.site-header .site-header__logo {
|
|
width: 8rem;
|
|
height: 1.875rem;
|
|
}
|
|
.site-header .site-header__logo .light-logo,
|
|
.site-header .site-header__logo .dark-logo {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: none;
|
|
}
|
|
.site-header .site-header__logo .light-logo {
|
|
display: block;
|
|
}
|
|
.site-header .site-header__logo .dark-logo {
|
|
display: none;
|
|
}
|
|
.site-header .site-header__nav {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
align-self: stretch;
|
|
justify-content: center;
|
|
gap: 2.75rem;
|
|
}
|
|
.site-header .site-header__nav-link {
|
|
position: relative;
|
|
color: var(--color-white);
|
|
font-family: "OPPO Sans 4.0";
|
|
font-style: Medium;
|
|
font-size: var(--font-20);
|
|
font-weight: 500;
|
|
line-height: var(--font-24);
|
|
letter-spacing: 0rem;
|
|
text-align: left;
|
|
opacity: 0.88;
|
|
transition: color 0.3s ease, opacity 0.3s ease;
|
|
}
|
|
.site-header .site-header__nav-link:hover {
|
|
opacity: 1;
|
|
}
|
|
.site-header {
|
|
/* 「产品及解决方案」二级导航 */
|
|
}
|
|
.site-header .site-header__nav-item {
|
|
position: relative;
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
align-self: stretch;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
/* 空隙在链接行下方、不在 nav-item 的盒模型里;悬停时向下伸出桥接层(默认高度 0 不挡页面点击) */
|
|
}
|
|
.site-header .site-header__nav-item::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
height: 0;
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
}
|
|
.site-header .site-header__nav-item:hover::after, .site-header .site-header__nav-item:focus-within::after {
|
|
height: 200%;
|
|
pointer-events: auto;
|
|
}
|
|
.site-header .site-header__nav-item:hover .site-header__dropdown, .site-header .site-header__nav-item:focus-within .site-header__dropdown {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: translateX(-50%) translateY(20px);
|
|
pointer-events: auto;
|
|
}
|
|
.site-header .site-header__dropdown {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 100%;
|
|
padding: 1.75rem 3.125rem;
|
|
transform: translateX(-50%);
|
|
z-index: 200;
|
|
border-radius: 1.4375rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 1.25rem;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
|
|
}
|
|
.site-header .site-header__dropdown::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 100%;
|
|
height: 0.75rem;
|
|
}
|
|
.site-header .site-header__dropdown-link {
|
|
position: relative;
|
|
display: block;
|
|
color: var(--color-white);
|
|
font-family: "OPPO Sans 4.0";
|
|
font-style: Regular;
|
|
font-size: var(--font-20);
|
|
font-weight: 400;
|
|
line-height: var(--font-22);
|
|
letter-spacing: 0px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
}
|
|
.site-header .site-header__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
.site-header .site-header__contact-btn {
|
|
border: none;
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
height: 2.375rem;
|
|
border-radius: 0.75rem;
|
|
}
|
|
.site-header .site-header__icon-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 2.375rem;
|
|
height: 2.375rem;
|
|
border-radius: 0.75rem;
|
|
}
|
|
.site-header .site-header__icon-btn.toggle {
|
|
display: none;
|
|
position: relative;
|
|
z-index: 102;
|
|
}
|
|
.site-header .site-header__icon-btn.search-btn {
|
|
border: 1px solid rgb(255, 255, 255);
|
|
background: transparent;
|
|
}
|
|
.site-header .site-header__icon-btn img,
|
|
.site-header .site-header__icon-btn svg {
|
|
fill: var(--color-white);
|
|
width: 1.3438rem;
|
|
height: 1.3438rem;
|
|
}
|
|
|
|
@media (width <= 992px) {
|
|
.site-header .site-header__container {
|
|
justify-content: space-between;
|
|
}
|
|
.site-header .site-header__nav {
|
|
display: none;
|
|
}
|
|
.site-header .site-header__icon-btn.toggle {
|
|
display: flex;
|
|
}
|
|
}/*# sourceMappingURL=header.css.map */
|