1602 lines
35 KiB
CSS
1602 lines
35 KiB
CSS
.site-header {
|
|
position: sticky;
|
|
top: 0;
|
|
align-self: stretch;
|
|
width: 100%;
|
|
height: 72px;
|
|
background: #181818;
|
|
overflow: hidden;
|
|
justify-content: center;
|
|
align-items: center;
|
|
display: flex;
|
|
z-index: 100;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
|
|
/* Global navigation interaction and mobile drawer. */
|
|
.header-nav .nav-link,
|
|
.header-nav .nav-link-active {
|
|
transition: color 180ms ease, background-color 180ms ease;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.header-nav .nav-link:hover,
|
|
.header-nav .nav-link:focus-visible,
|
|
.header-nav .nav-link-active:hover,
|
|
.header-nav .nav-link-active:focus-visible {
|
|
color: #EC237F;
|
|
}
|
|
|
|
.home-page .header-nav .nav-link:hover,
|
|
.home-page .header-nav .nav-link:focus-visible {
|
|
color: #FFFFFF;
|
|
background: rgba(236, 35, 127, 0.18);
|
|
}
|
|
|
|
.home-page .header-nav .nav-link-active:hover,
|
|
.home-page .header-nav .nav-link-active:focus-visible {
|
|
color: #FFFFFF;
|
|
background: #EC237F;
|
|
}
|
|
}
|
|
|
|
.home-mobile-menu {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
body.home-mobile-menu-open {
|
|
overflow: hidden;
|
|
touch-action: none;
|
|
}
|
|
|
|
.header-inner {
|
|
position: relative;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
}
|
|
|
|
.header-menu-button[hidden] {
|
|
appearance: none;
|
|
width: 24px;
|
|
height: 24px;
|
|
margin-right: auto;
|
|
padding: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 0 0 24px;
|
|
border: 0;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.header-menu-button img {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.header-menu-button:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.brand-lockup {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
margin: 0;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
.brand-logo {
|
|
width: 92px;
|
|
height: 24px;
|
|
max-width: none;
|
|
}
|
|
|
|
.header-search {
|
|
width: 24px;
|
|
min-width: 24px;
|
|
max-width: 24px;
|
|
height: 24px;
|
|
flex: 0 0 24px;
|
|
padding: 0;
|
|
margin: 0;
|
|
border: 0;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
justify-content: center;
|
|
}
|
|
|
|
.header-search .search-input {
|
|
display: none;
|
|
}
|
|
|
|
.header-search .search-icon-wrap--h5 {
|
|
order: 0;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.header-account {
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 0 0 24px;
|
|
}
|
|
|
|
.account-label {
|
|
display: none;
|
|
}
|
|
|
|
.account-avatar,
|
|
.account-avatar-photo,
|
|
.account-avatar-ring {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.home-mobile-menu[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.home-mobile-menu {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1000;
|
|
display: block;
|
|
}
|
|
|
|
.home-mobile-menu-backdrop {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0;
|
|
border: 0;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
-webkit-backdrop-filter: blur(5px);
|
|
backdrop-filter: blur(5px);
|
|
cursor: pointer;
|
|
animation: home-menu-fade-in 180ms ease both;
|
|
}
|
|
|
|
.home-mobile-menu-panel {
|
|
position: absolute;
|
|
inset: 0 auto 0 0;
|
|
width: min(280px, 74.666667vw);
|
|
min-height: 100%;
|
|
height: 100dvh;
|
|
padding: max(60px, calc(60px + env(safe-area-inset-top, 0px))) 36px 60px;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 24px;
|
|
overflow-y: auto;
|
|
color: #FFFFFF;
|
|
background: #282828;
|
|
box-shadow: 10px 0 24px rgba(0, 0, 0, 0.22);
|
|
animation: home-menu-slide-in 220ms ease-out both;
|
|
}
|
|
|
|
.home-mobile-menu-close {
|
|
position: absolute;
|
|
top: calc(26px + env(safe-area-inset-top, 0px));
|
|
right: 12px;
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.home-mobile-menu-close:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.home-mobile-menu-close img,
|
|
.home-mobile-menu-social img {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.home-mobile-menu-logo,
|
|
.home-mobile-menu-logo img {
|
|
width: 138px;
|
|
height: 36px;
|
|
display: block;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.home-mobile-menu-links {
|
|
width: 208px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 11px;
|
|
}
|
|
|
|
.home-mobile-menu-links a {
|
|
width: 100%;
|
|
height: 50px;
|
|
padding: 14px 23px;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
color: #FFFFFF;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
border-radius: 9px;
|
|
font: 600 16px/22px "PingFang SC", sans-serif;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
|
|
}
|
|
|
|
.home-mobile-menu-links a:hover,
|
|
.home-mobile-menu-links a:focus-visible {
|
|
color: #EC237F;
|
|
background: rgba(236, 35, 127, 0.12);
|
|
border-color: rgba(236, 35, 127, 0.2);
|
|
}
|
|
|
|
.home-mobile-menu-links a.is-active {
|
|
color: #EC237F;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-color: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.home-mobile-menu-contact {
|
|
width: 208px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
font: 400 14px/20px "PingFang SC", sans-serif;
|
|
text-align: center;
|
|
}
|
|
|
|
.home-mobile-menu-contact a,
|
|
.home-mobile-menu-contact span {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.home-mobile-menu-social {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24px;
|
|
}
|
|
|
|
.home-mobile-menu-social a,
|
|
.home-mobile-menu-social > span:not(.home-mobile-menu-social-divider) {
|
|
width: 24px;
|
|
height: 24px;
|
|
display: block;
|
|
}
|
|
|
|
.home-mobile-menu-social-divider {
|
|
width: 1px;
|
|
height: 15px;
|
|
background: #FFFFFF;
|
|
}
|
|
|
|
@keyframes home-menu-fade-in {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes home-menu-slide-in {
|
|
from { transform: translateX(-100%); }
|
|
to { transform: translateX(0); }
|
|
}
|
|
}
|
|
|
|
@media (max-width: 430px) {
|
|
.home-mobile-menu-panel {
|
|
width: 74.666667vw;
|
|
padding: max(16vw, calc(16vw + env(safe-area-inset-top, 0px))) 9.6vw 16vw;
|
|
gap: 6.4vw;
|
|
}
|
|
|
|
.home-mobile-menu-close {
|
|
top: calc(6.933333vw + env(safe-area-inset-top, 0px));
|
|
right: 3.2vw;
|
|
width: 6.4vw;
|
|
height: 6.4vw;
|
|
}
|
|
|
|
.home-mobile-menu-close img,
|
|
.home-mobile-menu-social img {
|
|
width: 6.4vw;
|
|
height: 6.4vw;
|
|
}
|
|
|
|
.home-mobile-menu-logo,
|
|
.home-mobile-menu-logo img {
|
|
width: 36.8vw;
|
|
height: 9.6vw;
|
|
}
|
|
|
|
.home-mobile-menu-links,
|
|
.home-mobile-menu-contact {
|
|
width: 55.466667vw;
|
|
}
|
|
|
|
.home-mobile-menu-links {
|
|
gap: 2.933333vw;
|
|
}
|
|
|
|
.home-mobile-menu-links a {
|
|
height: 13.333333vw;
|
|
padding: 3.733333vw 6.133333vw;
|
|
border-radius: 2.4vw;
|
|
font-size: clamp(14px, 4.266667vw, 17px);
|
|
line-height: 5.866667vw;
|
|
}
|
|
|
|
.home-mobile-menu-contact {
|
|
gap: 3.2vw;
|
|
font-size: clamp(12px, 3.733333vw, 15px);
|
|
line-height: 5.333333vw;
|
|
}
|
|
|
|
.home-mobile-menu-social {
|
|
gap: 6.4vw;
|
|
}
|
|
|
|
.home-mobile-menu-social a,
|
|
.home-mobile-menu-social > span:not(.home-mobile-menu-social-divider) {
|
|
width: 6.4vw;
|
|
height: 6.4vw;
|
|
}
|
|
}
|
|
|
|
/* Shared Figma shell used by the home and ranking pages. */
|
|
.site-shell {
|
|
--site-shell-gutter: clamp(14px, 4.266667vw, 18px);
|
|
--site-footer-margin-top: 0px;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
body.site-shell {
|
|
padding-top: 72px;
|
|
}
|
|
|
|
.site-shell .site-header {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
left: 0;
|
|
height: 72px;
|
|
background: #282828;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
backdrop-filter: blur(2px);
|
|
}
|
|
|
|
.site-shell .header-inner {
|
|
width: min(1800px, calc(100% - 120px));
|
|
max-width: none;
|
|
height: 72px;
|
|
gap: 16px;
|
|
}
|
|
|
|
.site-shell .brand-lockup {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.site-shell .brand-logo {
|
|
width: 126.5px;
|
|
height: auto;
|
|
}
|
|
|
|
.site-shell .header-nav {
|
|
gap: 4px;
|
|
}
|
|
|
|
.site-shell .nav-link,
|
|
.site-shell .nav-link-active {
|
|
padding: 6px 10px;
|
|
border-radius: 999px;
|
|
color: #fff;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.site-shell .nav-link-active {
|
|
background: #ec237f;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.site-shell .header-nav .nav-link:hover,
|
|
.site-shell .header-nav .nav-link:focus-visible {
|
|
color: #fff;
|
|
background: rgba(236, 35, 127, 0.18);
|
|
}
|
|
|
|
.site-shell .header-nav .nav-link-active:hover,
|
|
.site-shell .header-nav .nav-link-active:focus-visible {
|
|
color: #fff;
|
|
background: #ec237f;
|
|
}
|
|
|
|
.site-shell .header-gap {
|
|
width: auto;
|
|
min-width: 0;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.site-shell .header-search {
|
|
width: 280px;
|
|
max-width: 280px;
|
|
height: 40px;
|
|
flex: 0 1 280px;
|
|
padding: 9px 16px;
|
|
margin-left: 0;
|
|
border-color: rgba(255, 255, 255, 0.05);
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.site-shell .search-input {
|
|
order: 1;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.site-shell .search-icon-wrap--pc {
|
|
content: url("/static/images/figma-home/search.svg");
|
|
order: 2;
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.site-shell .header-design-coin[hidden] {
|
|
width: 28px;
|
|
height: 28px;
|
|
display: flex;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.site-shell .header-design-coin img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.site-shell .header-design-separator[hidden] {
|
|
width: 1px;
|
|
height: 12px;
|
|
display: block;
|
|
flex: 0 0 auto;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.site-shell .header-app-icon,
|
|
.site-shell .header-separator {
|
|
display: none !important;
|
|
}
|
|
|
|
.site-shell .account-avatar-ring {
|
|
content: url("/static/images/figma-home/guest-avatar.svg");
|
|
}
|
|
|
|
.site-shell .account-avatar-body,
|
|
.site-shell .account-avatar-head {
|
|
display: none;
|
|
}
|
|
|
|
.site-shell .header-account {
|
|
gap: 8px;
|
|
}
|
|
|
|
.site-shell .account-avatar,
|
|
.site-shell .account-avatar-photo,
|
|
.site-shell .account-avatar-ring {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
.site-shell .account-label {
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
body.site-shell {
|
|
padding-top: min(90px, 4.6875vw);
|
|
}
|
|
|
|
.site-shell .site-header,
|
|
.site-shell .header-inner {
|
|
height: min(90px, 4.6875vw);
|
|
}
|
|
|
|
.site-shell .header-inner {
|
|
width: min(1800px, calc(100% - 120px));
|
|
gap: min(24px, 1.25vw);
|
|
}
|
|
|
|
.site-shell .brand-lockup {
|
|
margin-right: min(36px, 1.875vw);
|
|
}
|
|
|
|
.site-shell .brand-logo {
|
|
width: min(126.5px, 6.588542vw);
|
|
}
|
|
|
|
.site-shell .header-nav {
|
|
gap: min(18px, 0.9375vw);
|
|
}
|
|
|
|
.site-shell .nav-link,
|
|
.site-shell .nav-link-active {
|
|
padding: min(6px, 0.3125vw) min(16px, 0.833333vw);
|
|
font-size: clamp(12px, 0.833333vw, 16px);
|
|
line-height: clamp(18px, 1.145833vw, 22px);
|
|
}
|
|
|
|
.site-shell .header-search {
|
|
width: min(400px, 20.833333vw);
|
|
max-width: min(400px, 20.833333vw);
|
|
height: min(42px, 2.1875vw);
|
|
flex: 0 1 min(400px, 20.833333vw);
|
|
padding: min(10px, 0.520833vw) min(18px, 0.9375vw);
|
|
gap: min(8px, 0.416667vw);
|
|
}
|
|
|
|
.site-shell .search-input {
|
|
font-size: clamp(12px, 0.729167vw, 14px);
|
|
line-height: clamp(18px, 1.041667vw, 20px);
|
|
}
|
|
|
|
.site-shell .search-icon-wrap--pc {
|
|
width: min(20px, 1.041667vw);
|
|
height: min(20px, 1.041667vw);
|
|
}
|
|
|
|
.site-shell .header-design-coin[hidden] {
|
|
width: min(28px, 1.458333vw);
|
|
height: min(28px, 1.458333vw);
|
|
}
|
|
|
|
.site-shell .header-design-separator[hidden] {
|
|
height: min(12px, 0.625vw);
|
|
}
|
|
|
|
.site-shell .header-account {
|
|
gap: min(8px, 0.416667vw);
|
|
}
|
|
|
|
.site-shell .account-avatar,
|
|
.site-shell .account-avatar-photo,
|
|
.site-shell .account-avatar-ring {
|
|
width: min(32px, 1.666667vw);
|
|
height: min(32px, 1.666667vw);
|
|
}
|
|
|
|
.site-shell .account-label {
|
|
font-size: clamp(12px, 0.833333vw, 16px);
|
|
line-height: clamp(18px, 1.145833vw, 22px);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
body.site-shell {
|
|
padding-top: calc(48px + env(safe-area-inset-top, 0px));
|
|
}
|
|
|
|
.site-shell .site-header {
|
|
position: fixed;
|
|
top: env(safe-area-inset-top, 0px);
|
|
right: 0;
|
|
left: 0;
|
|
height: 48px;
|
|
padding: 0 var(--site-shell-gutter);
|
|
background: #282828;
|
|
z-index: 200;
|
|
}
|
|
|
|
.site-shell .header-inner {
|
|
width: 100%;
|
|
max-width: none;
|
|
height: 48px;
|
|
gap: 12px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.site-shell .brand-logo {
|
|
content: url("/static/images/logo-h5.png?v=3");
|
|
width: 92px;
|
|
height: 24px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.site-shell .header-search .search-icon-wrap--h5 {
|
|
content: url("/static/images/figma-home/mobile/search.svg");
|
|
}
|
|
|
|
.site-shell .account-avatar-ring {
|
|
content: url("/static/images/figma-home/mobile/avatar.svg");
|
|
}
|
|
|
|
.site-shell .account-avatar-body,
|
|
.site-shell .account-avatar-head {
|
|
display: none;
|
|
}
|
|
}
|
|
.header-inner {
|
|
width: min(1800px, calc(100% - 120px));
|
|
min-width: 0;
|
|
max-width: none;
|
|
height: 72px;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
gap: 24px;
|
|
display: flex;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.brand-lockup {
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
display: flex;
|
|
text-decoration: none;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.brand-logo {
|
|
width: 133px;
|
|
height: auto;
|
|
display: block;
|
|
}
|
|
|
|
.brand-title {
|
|
color: white;
|
|
font-size: 18px;
|
|
font-family: PingFang SC;
|
|
font-weight: 400;
|
|
line-height: 24px;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.brand-subtitle-en {
|
|
color: #A69CB8;
|
|
font-size: 12px;
|
|
font-family: PingFang SC;
|
|
font-weight: 400;
|
|
line-height: 18px;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.header-nav {
|
|
overflow: hidden;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
gap: 60px;
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-link-active {
|
|
color: #EC237F;
|
|
font-size: 14px;
|
|
font-family: PingFang SC;
|
|
font-weight: 400;
|
|
line-height: 20px;
|
|
word-wrap: break-word;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.nav-link {
|
|
color: #F5F5F5;
|
|
font-size: 14px;
|
|
font-family: PingFang SC;
|
|
font-weight: 400;
|
|
line-height: 20px;
|
|
word-wrap: break-word;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
color: #EC237F;
|
|
}
|
|
|
|
.header-gap {
|
|
width: 24px;
|
|
height: 9px;
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.header-search {
|
|
flex: 1 1 0;
|
|
min-width: 160px;
|
|
max-width: 462px;
|
|
height: 40px;
|
|
padding-left: 14px;
|
|
padding-right: 14px;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
overflow: hidden;
|
|
border-radius: 20px;
|
|
border: 1px solid rgba(255, 255, 255, 0.10);
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
gap: 8px;
|
|
display: flex;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.header-mobile-search-link {
|
|
display: none;
|
|
}
|
|
|
|
.search-icon-wrap {
|
|
width: 15px;
|
|
height: 15px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: block;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.search-icon-wrap--h5 {
|
|
display: none;
|
|
}
|
|
|
|
.search-input {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
height: 100%;
|
|
border: none;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
outline: none;
|
|
outline-color: transparent;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
color: #F5F5F5;
|
|
font-size: 14px;
|
|
font-family: PingFang SC;
|
|
font-weight: 400;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.search-input:focus,
|
|
.search-input:focus-visible {
|
|
border: none;
|
|
outline: none;
|
|
outline-color: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.search-input::placeholder {
|
|
color: #A3A3A3;
|
|
}
|
|
|
|
.header-app-icon {
|
|
width: auto;
|
|
height: 31px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.header-app-icon img {
|
|
width: auto;
|
|
height: 31px;
|
|
display: block;
|
|
}
|
|
|
|
/*.header-app-icon[hidden],
|
|
.header-separator[hidden] {
|
|
display: none !important;
|
|
}*/
|
|
|
|
.header-separator {
|
|
width: 1px;
|
|
height: 12px;
|
|
background: white;
|
|
}
|
|
|
|
.header-account {
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
gap: 8px;
|
|
display: flex;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.account-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-radius: 1249px;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.account-avatar-ring {
|
|
width: 40px;
|
|
height: 40px;
|
|
left: 0px;
|
|
top: 0px;
|
|
position: absolute;
|
|
object-fit: cover;
|
|
display: none;
|
|
border-radius: 9999px;
|
|
}
|
|
|
|
.account-avatar-body {
|
|
width: 20px;
|
|
height: 9px;
|
|
left: 10px;
|
|
top: 21px;
|
|
position: absolute;
|
|
background: #EC237F;
|
|
border-radius: 9999px;
|
|
}
|
|
|
|
.account-avatar-head {
|
|
width: 10px;
|
|
height: 11px;
|
|
left: 15px;
|
|
top: 9px;
|
|
position: absolute;
|
|
background: #EC237F;
|
|
border-radius: 7.50px 1.25px 7.50px 7.50px;
|
|
}
|
|
|
|
.account-avatar-photo {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 999px;
|
|
object-fit: cover;
|
|
display: block;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.account-label {
|
|
justify-content: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
color: #EC237F;
|
|
font-size: 14px;
|
|
font-family: PingFang SC;
|
|
font-weight: 400;
|
|
line-height: 20px;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.account-label--logged {
|
|
color: white;
|
|
}
|
|
|
|
/* Desktop focused search and the 760px Figma recommendation popover. */
|
|
.header-search-popover[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.header-search-popover-divider[hidden],
|
|
.header-search-history[hidden],
|
|
.header-search-hot[hidden],
|
|
.header-search-guess[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.header-search {
|
|
transition: border-color 160ms ease, box-shadow 160ms ease;
|
|
}
|
|
|
|
.header-search:focus-within,
|
|
.header-search.is-search-open,
|
|
.site-shell .header-search:focus-within,
|
|
.site-shell .header-search.is-search-open {
|
|
border-color: #EC237F;
|
|
box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.header-search .search-input {
|
|
caret-color: #EC237F;
|
|
}
|
|
|
|
.header-search-popover {
|
|
position: fixed;
|
|
z-index: 210;
|
|
width: min(760px, calc(100vw - 48px));
|
|
max-height: calc(100vh - 96px);
|
|
padding: 36px;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
color: #FFFFFF;
|
|
background: #0D0D0D;
|
|
border: 0;
|
|
border-radius: 24px;
|
|
box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1), 0 12px 40px rgba(0, 0, 0, 0.32);
|
|
font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
overscroll-behavior: contain;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.header-search-popover::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.header-search-popover h3 {
|
|
padding: 0;
|
|
margin: 0;
|
|
color: #FFFFFF;
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
line-height: 28px;
|
|
}
|
|
|
|
.header-search-history {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
|
|
.header-search-popover-heading {
|
|
width: 100%;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.header-search-popover-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.header-search-clear,
|
|
.header-search-change,
|
|
.header-search-close,
|
|
.header-search-history-tag,
|
|
.header-search-hot-item {
|
|
appearance: none;
|
|
padding: 0;
|
|
border: 0;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.header-search-clear,
|
|
.header-search-change {
|
|
color: #EC237F;
|
|
background: transparent;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.header-search-clear:hover,
|
|
.header-search-clear:focus-visible,
|
|
.header-search-change:hover,
|
|
.header-search-change:focus-visible {
|
|
color: #FF5CA6;
|
|
}
|
|
|
|
.header-search-close {
|
|
width: 20px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: transparent;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.header-search-close img {
|
|
width: 20px;
|
|
height: 20px;
|
|
display: block;
|
|
}
|
|
|
|
.header-search-history-tags {
|
|
min-height: 32px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.header-search-history-tag {
|
|
max-width: 100%;
|
|
padding: 7px 12px;
|
|
overflow: hidden;
|
|
color: rgba(255, 255, 255, 0.55);
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 9999px;
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
line-height: 18px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.header-search-history-tag:hover,
|
|
.header-search-history-tag:focus-visible {
|
|
color: #FFFFFF;
|
|
background: rgba(236, 35, 127, 0.2);
|
|
}
|
|
|
|
.header-search-history-empty,
|
|
.header-search-hot-empty,
|
|
.header-search-guess-empty {
|
|
color: rgba(255, 255, 255, 0.55);
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.header-search-popover-divider {
|
|
width: 100%;
|
|
height: 1px;
|
|
flex: 0 0 1px;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.header-search-hot {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.header-search-hot > h3 {
|
|
font-size: 18px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.header-search-hot-list {
|
|
min-height: 296px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.header-search-hot-item {
|
|
width: 100%;
|
|
min-height: 46px;
|
|
padding: 9px 0;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
color: #FFFFFF;
|
|
background: transparent;
|
|
text-align: left;
|
|
}
|
|
|
|
.header-search-hot-rank {
|
|
width: 28px;
|
|
height: 28px;
|
|
flex: 0 0 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: rgba(255, 255, 255, 0.55);
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 9999px;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.header-search-hot-item:nth-child(1) .header-search-hot-rank {
|
|
color: #FFFFFF;
|
|
background: linear-gradient(225deg, #FFCD9A 0%, #E88A33 100%);
|
|
}
|
|
|
|
.header-search-hot-item:nth-child(2) .header-search-hot-rank {
|
|
color: #FFFFFF;
|
|
background: linear-gradient(225deg, #CCE9FF 0%, #8DA9BF 100%);
|
|
}
|
|
|
|
.header-search-hot-item:nth-child(3) .header-search-hot-rank {
|
|
color: #FFFFFF;
|
|
background: linear-gradient(225deg, #FFBFA4 0%, #D88867 100%);
|
|
}
|
|
|
|
.header-search-hot-keyword {
|
|
min-width: 0;
|
|
flex: 1 1 auto;
|
|
overflow: hidden;
|
|
color: #FFFFFF;
|
|
font-size: 16px;
|
|
font-weight: 400;
|
|
line-height: 22px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.header-search-hot-item:hover .header-search-hot-keyword,
|
|
.header-search-hot-item:focus-visible .header-search-hot-keyword {
|
|
color: #EC237F;
|
|
}
|
|
|
|
.header-search-guess {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.header-search-guess-list {
|
|
min-height: 321px;
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 164px));
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
}
|
|
|
|
.header-search-guess-card {
|
|
width: 164px;
|
|
height: 321px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
color: inherit;
|
|
background: transparent;
|
|
border-radius: 12px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.header-search-guess-cover {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 219px;
|
|
flex: 0 0 219px;
|
|
overflow: hidden;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.header-search-guess-cover > img {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
object-fit: cover;
|
|
transition: transform 220ms ease;
|
|
}
|
|
|
|
.header-search-guess-card:hover .header-search-guess-cover > img,
|
|
.header-search-guess-card:focus-visible .header-search-guess-cover > img {
|
|
transform: scale(1.035);
|
|
}
|
|
|
|
.header-search-guess-episode {
|
|
position: absolute;
|
|
right: 12px;
|
|
bottom: 12px;
|
|
padding: 3px 8px;
|
|
color: #FFFFFF;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
border-radius: 6px;
|
|
font-size: 16px;
|
|
font-weight: 400;
|
|
line-height: 22px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.header-search-guess-copy {
|
|
width: 100%;
|
|
height: 102px;
|
|
flex: 0 0 102px;
|
|
padding: 12px 10px;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 6px;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.header-search-guess-title,
|
|
.header-search-guess-desc {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.header-search-guess-title {
|
|
color: #FFFFFF;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
line-height: 22px;
|
|
}
|
|
|
|
.header-search-guess-desc {
|
|
color: rgba(255, 255, 255, 0.55);
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.header-search-guess-tag-row {
|
|
min-height: 22px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.header-search-guess-tag {
|
|
max-width: 100%;
|
|
padding: 2px 8px;
|
|
overflow: hidden;
|
|
color: #EC237F;
|
|
background: rgba(255, 74, 74, 0.08);
|
|
border: 1px solid rgba(255, 74, 74, 0.08);
|
|
border-radius: 9px;
|
|
box-sizing: border-box;
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
line-height: 18px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
.header-search-popover {
|
|
width: min(760px, 39.583333vw);
|
|
max-height: calc(100vh - min(106px, 5.520833vw));
|
|
padding: min(36px, 1.875vw);
|
|
gap: min(24px, 1.25vw);
|
|
border-radius: min(24px, 1.25vw);
|
|
}
|
|
|
|
.header-search-popover h3 {
|
|
font-size: min(20px, 1.041667vw);
|
|
line-height: min(28px, 1.458333vw);
|
|
}
|
|
|
|
.header-search-history {
|
|
gap: min(14px, 0.729167vw);
|
|
}
|
|
|
|
.header-search-popover-actions {
|
|
gap: min(12px, 0.625vw);
|
|
}
|
|
|
|
.header-search-clear,
|
|
.header-search-change {
|
|
font-size: min(14px, 0.729167vw);
|
|
line-height: min(20px, 1.041667vw);
|
|
}
|
|
|
|
.header-search-close,
|
|
.header-search-close img {
|
|
width: min(20px, 1.041667vw);
|
|
height: min(20px, 1.041667vw);
|
|
}
|
|
|
|
.header-search-history-tags {
|
|
min-height: min(32px, 1.666667vw);
|
|
gap: min(10px, 0.520833vw);
|
|
}
|
|
|
|
.header-search-history-tag {
|
|
padding: min(7px, 0.364583vw) min(12px, 0.625vw);
|
|
font-size: min(12px, 0.625vw);
|
|
line-height: min(18px, 0.9375vw);
|
|
}
|
|
|
|
.header-search-history-empty,
|
|
.header-search-hot-empty,
|
|
.header-search-guess-empty {
|
|
font-size: min(14px, 0.729167vw);
|
|
line-height: min(20px, 1.041667vw);
|
|
}
|
|
|
|
.header-search-hot {
|
|
gap: min(8px, 0.416667vw);
|
|
}
|
|
|
|
.header-search-hot > h3 {
|
|
font-size: min(18px, 0.9375vw);
|
|
line-height: min(24px, 1.25vw);
|
|
}
|
|
|
|
.header-search-hot-list {
|
|
min-height: min(296px, 15.416667vw);
|
|
gap: min(4px, 0.208333vw);
|
|
}
|
|
|
|
.header-search-hot-item {
|
|
min-height: min(46px, 2.395833vw);
|
|
padding: min(9px, 0.46875vw) 0;
|
|
gap: min(12px, 0.625vw);
|
|
}
|
|
|
|
.header-search-hot-rank {
|
|
width: min(28px, 1.458333vw);
|
|
height: min(28px, 1.458333vw);
|
|
flex-basis: min(28px, 1.458333vw);
|
|
font-size: min(14px, 0.729167vw);
|
|
line-height: min(20px, 1.041667vw);
|
|
}
|
|
|
|
.header-search-hot-keyword {
|
|
font-size: min(16px, 0.833333vw);
|
|
line-height: min(22px, 1.145833vw);
|
|
}
|
|
|
|
.header-search-guess {
|
|
gap: min(16px, 0.833333vw);
|
|
}
|
|
|
|
.header-search-guess-list {
|
|
min-height: min(321px, 16.71875vw);
|
|
grid-template-columns: repeat(4, minmax(0, min(164px, 8.541667vw)));
|
|
gap: min(10px, 0.520833vw);
|
|
}
|
|
|
|
.header-search-guess-card {
|
|
width: min(164px, 8.541667vw);
|
|
height: min(321px, 16.71875vw);
|
|
border-radius: min(12px, 0.625vw);
|
|
}
|
|
|
|
.header-search-guess-cover {
|
|
height: min(219px, 11.40625vw);
|
|
flex-basis: min(219px, 11.40625vw);
|
|
}
|
|
|
|
.header-search-guess-episode {
|
|
right: min(12px, 0.625vw);
|
|
bottom: min(12px, 0.625vw);
|
|
padding: min(3px, 0.15625vw) min(8px, 0.416667vw);
|
|
border-radius: min(6px, 0.3125vw);
|
|
font-size: min(16px, 0.833333vw);
|
|
line-height: min(22px, 1.145833vw);
|
|
}
|
|
|
|
.header-search-guess-copy {
|
|
height: min(102px, 5.3125vw);
|
|
flex-basis: min(102px, 5.3125vw);
|
|
padding: min(12px, 0.625vw) min(10px, 0.520833vw);
|
|
gap: min(6px, 0.3125vw);
|
|
}
|
|
|
|
.header-search-guess-title {
|
|
font-size: min(16px, 0.833333vw);
|
|
line-height: min(22px, 1.145833vw);
|
|
}
|
|
|
|
.header-search-guess-desc {
|
|
font-size: min(14px, 0.729167vw);
|
|
line-height: min(20px, 1.041667vw);
|
|
}
|
|
|
|
.header-search-guess-tag-row {
|
|
min-height: min(22px, 1.145833vw);
|
|
gap: min(6px, 0.3125vw);
|
|
}
|
|
|
|
.header-search-guess-tag {
|
|
padding: min(2px, 0.104167vw) min(8px, 0.416667vw);
|
|
border-radius: min(9px, 0.46875vw);
|
|
font-size: min(12px, 0.625vw);
|
|
line-height: min(18px, 0.9375vw);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.header-search-popover {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.site-header {
|
|
height: 48px;
|
|
background: #181818;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 0;
|
|
padding: 0 16px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.header-inner {
|
|
width: 100%;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
height: 48px;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.brand-lockup {
|
|
position: static;
|
|
left: auto;
|
|
transform: none;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.brand-logo {
|
|
width: auto;
|
|
height: 32px;
|
|
max-width: 110px;
|
|
object-fit: contain;
|
|
object-position: left center;
|
|
}
|
|
|
|
.header-nav,
|
|
.header-gap,
|
|
.header-app-icon,
|
|
.header-separator,
|
|
.header-account {
|
|
display: none;
|
|
}
|
|
|
|
.header-search {
|
|
display: flex;
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
height: auto;
|
|
padding: 6px 16px;
|
|
border-radius: 999px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.search-icon-wrap--pc {
|
|
display: none;
|
|
}
|
|
|
|
.search-icon-wrap--h5 {
|
|
display: block;
|
|
order: 2;
|
|
width: 16px;
|
|
height: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.search-input {
|
|
order: 1;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
height: auto;
|
|
color: white;
|
|
}
|
|
|
|
.search-input::placeholder {
|
|
color: rgba(255, 255, 255, 0.60);
|
|
}
|
|
}
|
|
|
|
/* Keep the shared Figma mobile header layout after the legacy mobile rules. */
|
|
@media (max-width: 767px) {
|
|
.header-inner {
|
|
position: relative;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
}
|
|
|
|
.header-menu-button[hidden] {
|
|
appearance: none;
|
|
width: 24px;
|
|
height: 24px;
|
|
margin-right: auto;
|
|
padding: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 0 0 24px;
|
|
border: 0;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.brand-lockup {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
.brand-logo {
|
|
width: 92px;
|
|
height: 24px;
|
|
max-width: none;
|
|
}
|
|
|
|
.site-shell .header-search {
|
|
display: none;
|
|
}
|
|
|
|
.header-mobile-search-link {
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 0 0 24px;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.header-mobile-search-link img {
|
|
width: 16px;
|
|
height: 16px;
|
|
display: block;
|
|
}
|
|
|
|
.header-account {
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 0 0 24px;
|
|
}
|
|
|
|
.account-label {
|
|
display: none;
|
|
}
|
|
|
|
.account-avatar,
|
|
.account-avatar-photo,
|
|
.account-avatar-ring {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
}
|
|
/* 全站面包屑:仅可跳转链接在悬浮或键盘聚焦时高亮。 */
|
|
nav[aria-label="面包屑"] a {
|
|
transition: color 180ms ease;
|
|
}
|
|
|
|
nav[aria-label="面包屑"] a:hover,
|
|
nav[aria-label="面包屑"] a:focus-visible {
|
|
color: #EC237F !important;
|
|
}
|
|
|
|
/* 手机页头:下载 App / 商务 TG 图标,样式同搜索按钮 */
|
|
.header-mobile-icon-link {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.header-mobile-icon-link {
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 0 0 24px;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.header-mobile-icon-link img {
|
|
width: 16px;
|
|
height: 16px;
|
|
display: block;
|
|
filter: brightness(0) invert(1);
|
|
}
|
|
|
|
.header-mobile-icon-link .header-mobile-icon-img--lg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
}
|