1197 lines
20 KiB
CSS
1197 lines
20 KiB
CSS
/* 公共顶栏 */
|
|
|
|
.site-header {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 100;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: 72px;
|
|
width: 100%;
|
|
padding-left: max(0px, calc((100% - var(--page-width)) / 2));
|
|
padding-right: max(0px, calc((100% - var(--page-width)) / 2));
|
|
box-sizing: border-box;
|
|
background: transparent;
|
|
border-bottom: 1px solid transparent;
|
|
transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
|
|
}
|
|
|
|
.site-header.is-scrolled {
|
|
background: rgba(11, 11, 13, 0.72);
|
|
border-bottom-color: var(--line-soft);
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
}
|
|
|
|
.site-header__left,
|
|
.site-header__right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 40px;
|
|
}
|
|
|
|
.site-header__right {
|
|
gap: 12px;
|
|
}
|
|
|
|
.nav {
|
|
display: flex;
|
|
align-items: stretch;
|
|
align-self: stretch;
|
|
gap: 32px;
|
|
}
|
|
|
|
.nav__item-wrap {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
align-self: stretch;
|
|
}
|
|
|
|
.nav > .nav__item {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav__item {
|
|
position: relative;
|
|
color: var(--text-muted);
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
line-height: 22px;
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.nav__item::after {
|
|
content: "";
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: 0;
|
|
width: 16px;
|
|
height: 2px;
|
|
background: var(--accent);
|
|
transform: translateX(-50%);
|
|
opacity: 0;
|
|
}
|
|
|
|
.nav__item.is-active,
|
|
.nav__item:hover,
|
|
.nav__item-wrap:hover > .nav__item {
|
|
color: var(--text);
|
|
}
|
|
|
|
.nav__item.is-active::after {
|
|
opacity: 1;
|
|
}
|
|
|
|
.nav__mega {
|
|
position: absolute;
|
|
top: calc(100% + 16px);
|
|
left: 0;
|
|
z-index: 120;
|
|
display: inline-flex;
|
|
justify-content: flex-start;
|
|
align-items: flex-start;
|
|
gap: 32px;
|
|
padding: 24px;
|
|
background: #141417;
|
|
border-radius: 16px;
|
|
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
|
|
outline: 1px solid rgba(255, 255, 255, 0.12);
|
|
outline-offset: -1px;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
transform: translateY(6px);
|
|
transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
|
|
}
|
|
|
|
.nav__mega::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: -16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.nav__item-wrap:hover .nav__mega,
|
|
.nav__item-wrap:focus-within .nav__mega {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
pointer-events: auto;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.nav__mega-col {
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
}
|
|
|
|
.nav__mega-col--links {
|
|
gap: 10px;
|
|
}
|
|
|
|
.nav__mega-label {
|
|
margin: 0;
|
|
color: #7c7c86;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: 16px;
|
|
}
|
|
|
|
.nav__mega-chips {
|
|
display: inline-flex;
|
|
flex-wrap: wrap;
|
|
align-content: flex-start;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
|
|
.nav__mega-col--themes .nav__mega-chips {
|
|
width: 300px;
|
|
}
|
|
|
|
.nav__mega-col--status .nav__mega-chips {
|
|
width: 160px;
|
|
}
|
|
|
|
.nav__mega-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 32px;
|
|
padding: 0 12px;
|
|
color: #a1a1aa;
|
|
font-size: 13px;
|
|
font-weight: 400;
|
|
line-height: 20px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border-radius: 999px;
|
|
text-decoration: none;
|
|
transition: color 0.15s ease, background-color 0.15s ease, outline-color 0.15s ease;
|
|
}
|
|
|
|
.nav__mega-chip:hover {
|
|
color: var(--text);
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.nav__mega-chip.is-active {
|
|
color: #ff4a7b;
|
|
background: rgba(236, 35, 127, 0.1);
|
|
outline: 1px solid rgba(236, 35, 127, 0.3);
|
|
outline-offset: -1px;
|
|
}
|
|
|
|
.nav__mega-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: #f2f2f4;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 22px;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.nav__mega-link:hover {
|
|
color: #fff;
|
|
}
|
|
|
|
.nav__mega-link .icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
flex: 0 0 auto;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.search {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 260px;
|
|
height: 40px;
|
|
padding: 0 14px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border-radius: 999px;
|
|
border: 1px solid var(--line);
|
|
cursor: text;
|
|
}
|
|
|
|
.search:focus-within {
|
|
border-color: rgba(236, 35, 127, 0.45);
|
|
}
|
|
|
|
.search.is-open {
|
|
border-color: rgba(236, 35, 127, 0.45);
|
|
}
|
|
|
|
.search__input {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--text);
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
outline: none;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
}
|
|
|
|
.search__input::placeholder {
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
.search__input::-webkit-search-decoration,
|
|
.search__input::-webkit-search-cancel-button,
|
|
.search__input::-webkit-search-results-button,
|
|
.search__input::-webkit-search-results-decoration {
|
|
-webkit-appearance: none;
|
|
}
|
|
|
|
.search__clear {
|
|
display: grid;
|
|
flex: 0 0 16px;
|
|
place-items: center;
|
|
width: 16px;
|
|
height: 16px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.search__clear[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.search__clear img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.search__clear:hover img {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* PC 搜索焦点下拉 */
|
|
.search-dropdown {
|
|
position: absolute;
|
|
top: calc(100% + 10px);
|
|
left: 0;
|
|
z-index: 80;
|
|
box-sizing: border-box;
|
|
width: 420px;
|
|
max-width: min(420px, calc(100vw - 24px));
|
|
padding: 16px 16px 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 14px;
|
|
background: #141417;
|
|
border-radius: 16px;
|
|
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
|
|
outline: 1px solid rgba(255, 255, 255, 0.12);
|
|
outline-offset: -1px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.search-dropdown[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.search-dropdown__history,
|
|
.search-dropdown__hot {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
align-self: stretch;
|
|
gap: 10px;
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
.search-dropdown__history[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.search-dropdown__head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
align-self: stretch;
|
|
gap: 12px;
|
|
}
|
|
|
|
.search-dropdown__label {
|
|
margin: 0;
|
|
color: #7c7c86;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: 16px;
|
|
}
|
|
|
|
.search-dropdown__clear {
|
|
display: grid;
|
|
flex: 0 0 14px;
|
|
place-items: center;
|
|
width: 14px;
|
|
height: 14px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.search-dropdown__clear img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.search-dropdown__clear:hover img {
|
|
opacity: 1;
|
|
}
|
|
|
|
.search-dropdown__chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-content: flex-start;
|
|
align-items: flex-start;
|
|
align-self: stretch;
|
|
gap: 8px;
|
|
}
|
|
|
|
.search-dropdown__chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 30px;
|
|
padding: 0 12px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
color: #a1a1aa;
|
|
font-size: 13px;
|
|
font-weight: 400;
|
|
line-height: 20px;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.search-dropdown__chip:hover {
|
|
color: #f2f2f4;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.search-dropdown__list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
align-self: stretch;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.search-dropdown__item {
|
|
align-self: stretch;
|
|
width: 100%;
|
|
}
|
|
|
|
.search-dropdown__link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
align-self: stretch;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 7px 4px;
|
|
text-decoration: none;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.search-dropdown__link:hover {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
}
|
|
|
|
.search-dropdown__rank {
|
|
flex: 0 0 18px;
|
|
width: 18px;
|
|
color: #7c7c86;
|
|
font-family: Inter, var(--font);
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
line-height: 20px;
|
|
text-align: left;
|
|
}
|
|
|
|
.search-dropdown__rank.is-top {
|
|
color: #ff4a7b;
|
|
}
|
|
|
|
.search-dropdown__name {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
color: #f2f2f4;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 22px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.search-dropdown__badge {
|
|
display: inline-flex;
|
|
flex: 0 0 auto;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 18px;
|
|
padding: 0 5px;
|
|
border-radius: 999px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
line-height: 14px;
|
|
}
|
|
|
|
.search-dropdown__badge--hot {
|
|
color: #f2f2f4;
|
|
background: linear-gradient(135deg, #ff4a7b 0%, #ec237f 52%, #93226f 100%);
|
|
}
|
|
|
|
.search-dropdown__badge--new {
|
|
color: #ff4a7b;
|
|
background: rgba(236, 35, 127, 0.1);
|
|
outline: 1px solid rgba(236, 35, 127, 0.3);
|
|
outline-offset: -1px;
|
|
}
|
|
|
|
.search-dropdown__heat {
|
|
flex: 0 0 auto;
|
|
color: #7c7c86;
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
line-height: 18px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.search-dropdown__idle {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
align-self: stretch;
|
|
gap: 14px;
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
.search-dropdown__idle[hidden],
|
|
.search-dropdown__suggest[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.search-dropdown__suggest {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
align-self: stretch;
|
|
gap: 14px;
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
.search-dropdown__feature {
|
|
display: flex;
|
|
align-items: center;
|
|
align-self: stretch;
|
|
gap: 12px;
|
|
padding: 10px;
|
|
background: #1b1b1f;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.search-dropdown__feature-cover {
|
|
display: block;
|
|
flex: 0 0 48px;
|
|
width: 48px;
|
|
height: 64px;
|
|
overflow: hidden;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.search-dropdown__feature-cover img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.search-dropdown__feature-copy {
|
|
display: flex;
|
|
flex: 1 1 0;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.search-dropdown__feature-title {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
margin: 0;
|
|
color: #f2f2f4;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
line-height: 21px;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.search-dropdown__feature-title .is-hit,
|
|
.search-dropdown__suggest-text .is-hit {
|
|
color: #ff4a7b;
|
|
}
|
|
|
|
.search-dropdown__feature-meta {
|
|
margin: 0;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
color: #7c7c86;
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
line-height: 18px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.search-dropdown__feature-play {
|
|
display: inline-flex;
|
|
flex: 0 0 auto;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
height: 32px;
|
|
padding: 0 12px;
|
|
border-radius: 999px;
|
|
background: linear-gradient(135deg, #ff4a7b 0%, #ec237f 52%, #93226f 100%);
|
|
color: #fff;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 20px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.search-dropdown__feature-play img {
|
|
display: block;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.search-dropdown__suggest-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
align-self: stretch;
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
.search-dropdown__suggest-item {
|
|
display: flex;
|
|
align-items: center;
|
|
align-self: stretch;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
padding: 8px 4px;
|
|
}
|
|
|
|
.search-dropdown__suggest-item:hover {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.search-dropdown__suggest-icon {
|
|
display: block;
|
|
flex: 0 0 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.search-dropdown__suggest-text {
|
|
display: flex;
|
|
flex: 1 1 0;
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
min-width: 0;
|
|
color: #f2f2f4;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 22px;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.search-dropdown__suggest-type {
|
|
flex: 0 0 auto;
|
|
color: #7c7c86;
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
line-height: 18px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.search-dropdown__suggest-empty {
|
|
margin: 0;
|
|
padding: 8px 4px 12px;
|
|
color: #7c7c86;
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.user-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
height: 40px;
|
|
padding: 0 14px 0 4px;
|
|
background: rgba(11, 11, 13, 0.72);
|
|
border-radius: 999px;
|
|
border: 1px solid var(--line);
|
|
}
|
|
|
|
.user-chip__avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 999px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.user-chip__name {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.user-chip__coin {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
color: var(--gold);
|
|
font-family: Inter, var(--font);
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.user-chip__caret {
|
|
transform: rotate(90deg);
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.user-menu {
|
|
position: relative;
|
|
}
|
|
|
|
.user-menu.is-open .user-chip__caret {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
.user-menu__dropdown {
|
|
position: absolute;
|
|
top: calc(100% + 10px);
|
|
right: 0;
|
|
z-index: 120;
|
|
display: none;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 2px;
|
|
width: 280px;
|
|
padding: 8px;
|
|
background: #141417;
|
|
border: 1px solid var(--line);
|
|
border-radius: 16px;
|
|
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.user-menu.is-open .user-menu__dropdown {
|
|
display: flex;
|
|
}
|
|
|
|
.user-menu__profile {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
align-self: stretch;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.user-menu__avatar {
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 999px;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.user-menu__meta {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.user-menu__meta strong {
|
|
color: var(--text);
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
line-height: 21px;
|
|
}
|
|
|
|
.user-menu__meta span {
|
|
color: var(--text-dim);
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.user-menu__list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-self: stretch;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.user-menu__item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
align-self: stretch;
|
|
width: 100%;
|
|
height: 40px;
|
|
padding: 0 12px;
|
|
border: 0;
|
|
border-radius: var(--radius-sm);
|
|
background: transparent;
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 22px;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.user-menu__item:hover {
|
|
background: rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.user-menu__item .icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
flex-shrink: 0;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.user-menu__label {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.user-menu__extra {
|
|
color: var(--text-dim);
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.user-menu__arrow {
|
|
width: 14px !important;
|
|
height: 14px !important;
|
|
opacity: 0.7;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.user-menu__rule {
|
|
align-self: stretch;
|
|
height: 1px;
|
|
margin: 0;
|
|
border: 0;
|
|
background: var(--line-soft);
|
|
}
|
|
|
|
.user-menu__item--logout {
|
|
color: var(--text-muted);
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
|
|
.site-header__icon-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 999px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.site-header__icon-btn .icon {
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
|
|
.site-header__download {
|
|
gap: 4px;
|
|
}
|
|
|
|
@media (min-width: 769px) and (max-width: 1199px) {
|
|
.site-header {
|
|
height: auto;
|
|
padding-block: 12px;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
|
|
.site-header__left,
|
|
.site-header__right {
|
|
width: 100%;
|
|
gap: 16px;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.nav { gap: 16px; }
|
|
.search { flex: 1; width: auto; }
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.site-header {
|
|
height: 56px;
|
|
padding: 0 12px;
|
|
}
|
|
|
|
.site-header__left,
|
|
.site-header__right {
|
|
gap: 6px;
|
|
}
|
|
|
|
.site-header__left .brand__logo {
|
|
width: 120px;
|
|
height: 28px;
|
|
}
|
|
|
|
.site-header__download {
|
|
height: 28px;
|
|
padding: 0 10px;
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
color: var(--text);
|
|
background: linear-gradient(135deg, #ff4a7b 0%, #ec237f 52%, #93226f 100%);
|
|
border: 0;
|
|
}
|
|
|
|
.site-header__download .icon {
|
|
width: 13px;
|
|
height: 13px;
|
|
}
|
|
|
|
.user-chip {
|
|
width: 30px;
|
|
height: 30px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
}
|
|
|
|
.user-chip__avatar {
|
|
width: 30px;
|
|
height: 30px;
|
|
}
|
|
}
|
|
|
|
/* 左侧抽屉 */
|
|
.drawer {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 200;
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.drawer.is-open {
|
|
visibility: visible;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.drawer__mask {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.55);
|
|
opacity: 0;
|
|
transition: opacity 0.25s ease;
|
|
}
|
|
|
|
.drawer.is-open .drawer__mask {
|
|
opacity: 1;
|
|
}
|
|
|
|
.drawer__panel {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: min(300px, 86vw);
|
|
background: #141417;
|
|
overflow: hidden;
|
|
transform: translateX(-100%);
|
|
transition: transform 0.28s ease;
|
|
}
|
|
|
|
.drawer.is-open .drawer__panel {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.drawer__head {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
padding: 20px 20px 16px;
|
|
}
|
|
|
|
.drawer__brand-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.drawer__brand-row .brand__logo {
|
|
width: 120px;
|
|
height: 28px;
|
|
}
|
|
|
|
.drawer__close {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.drawer__close .icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.drawer__user {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.drawer__user--login {
|
|
width: 100%;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
color: inherit;
|
|
}
|
|
|
|
.drawer__avatar {
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 999px;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.drawer__user-info {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.drawer__user-info strong {
|
|
color: var(--text);
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
line-height: 21px;
|
|
}
|
|
|
|
.drawer__coin {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
color: var(--gold);
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.drawer__coin .icon {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
.drawer__user-arrow {
|
|
flex-shrink: 0;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.drawer__rule {
|
|
width: 100%;
|
|
height: 1px;
|
|
margin: 0;
|
|
border: 0;
|
|
background: var(--line-soft);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.drawer__nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.drawer__nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
height: 44px;
|
|
padding: 0 10px;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text);
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 22px;
|
|
}
|
|
|
|
.drawer__nav-item .icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.drawer__nav-item.is-active {
|
|
color: var(--accent-hot);
|
|
background: rgba(236, 35, 127, 0.1);
|
|
}
|
|
|
|
.drawer__nav-item.is-active .icon {
|
|
filter: invert(39%) sepia(82%) saturate(2476%) hue-rotate(314deg) brightness(101%) contrast(101%);
|
|
}
|
|
|
|
.drawer__tags {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
padding: 14px 20px;
|
|
}
|
|
|
|
.drawer__tags-label {
|
|
margin: 0;
|
|
color: var(--text-dim);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: 16px;
|
|
}
|
|
|
|
.drawer__tag-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.drawer__tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
height: 30px;
|
|
padding: 0 12px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.drawer__links {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.drawer__link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
width: 100%;
|
|
height: 36px;
|
|
padding: 0 10px;
|
|
border: 0;
|
|
border-radius: var(--radius-sm);
|
|
background: transparent;
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.drawer__link .icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.drawer__foot {
|
|
margin-top: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
padding: 16px 20px 24px;
|
|
}
|
|
|
|
.drawer__download {
|
|
width: 100%;
|
|
height: 40px;
|
|
}
|
|
|
|
.drawer__logout {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
color: var(--text-dim);
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.drawer__logout .icon {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
body.drawer-open {
|
|
overflow: hidden;
|
|
}
|