220 lines
8.5 KiB
CSS
220 lines
8.5 KiB
CSS
/* Search result content. Header and footer styles live in their shared components. */
|
|
.search-results__mobile-count { display: none; }
|
|
|
|
/* H5 搜索顶栏:桌面隐藏,窄屏替换 site-header */
|
|
.search-h5-header {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 100;
|
|
box-sizing: border-box;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
height: 56px;
|
|
padding-inline: 12px;
|
|
background: #0b0b0d;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
|
|
}
|
|
|
|
.search-h5-header__back {
|
|
display: grid;
|
|
flex: 0 0 36px;
|
|
place-items: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.search-h5-header__back img {
|
|
display: block;
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
|
|
.search-h5-header__form {
|
|
display: flex;
|
|
flex: 1 1 0;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
height: 36px;
|
|
padding-inline: 14px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border: 1px solid #ec237f;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.search-h5-header__search-icon {
|
|
display: block;
|
|
flex: 0 0 18px;
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.search-h5-header__input {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
height: 100%;
|
|
padding: 0;
|
|
color: #f2f2f4;
|
|
background: transparent;
|
|
border: 0;
|
|
outline: 0;
|
|
font: 400 14px / 22px var(--font, "PingFang SC", sans-serif);
|
|
appearance: none;
|
|
}
|
|
|
|
.search-h5-header__input::placeholder {
|
|
color: #7c7c86;
|
|
opacity: 1;
|
|
}
|
|
|
|
.search-h5-header__input::-webkit-search-cancel-button,
|
|
.search-h5-header__input::-webkit-search-decoration {
|
|
appearance: none;
|
|
}
|
|
|
|
.search-h5-header__clear {
|
|
display: grid;
|
|
flex: 0 0 16px;
|
|
place-items: center;
|
|
width: 16px;
|
|
height: 16px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.search-h5-header__clear[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.search-h5-header__clear img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.search-h5-header__cancel {
|
|
flex: 0 0 auto;
|
|
color: #a1a1aa;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 22px;
|
|
white-space: nowrap;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.search-main { min-height: 50vh; padding-top: var(--site-header-height, 72px); }
|
|
.search-heading,
|
|
.search-results,
|
|
.search-recommendations {
|
|
width: min(calc(100% - 48px), 1200px);
|
|
margin-inline: auto;
|
|
}
|
|
.search-heading { padding: 36px 0 8px; }
|
|
.search-heading__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
|
|
.search-heading__kicker {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin: 0;
|
|
color: var(--accent-hot);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
line-height: 18px;
|
|
letter-spacing: .12em;
|
|
}
|
|
.search-heading__kicker span { width: 18px; height: 2px; background: var(--accent); }
|
|
.search-heading h1,
|
|
.search-heading h2 { margin: 0; font-size: 28px; font-weight: 600; line-height: 36px; letter-spacing: -.01em; }
|
|
.search-heading__description { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 24px; }
|
|
.search-results { display: flex; flex-direction: column; gap: 24px; padding: 20px 0 24px; scroll-margin-top: calc(var(--site-header-height, 72px) + 12px); }
|
|
.search-card-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 32px 24px; }
|
|
.search-card { display: flex; flex-direction: column; min-width: 0; gap: 10px; }
|
|
.search-card[hidden] { display: none !important; }
|
|
.search-card__cover {
|
|
position: relative;
|
|
display: block;
|
|
width: 100%;
|
|
aspect-ratio: 3 / 4;
|
|
overflow: hidden;
|
|
border: 1px solid var(--line-soft);
|
|
border-radius: 12px;
|
|
background: var(--bg-panel);
|
|
}
|
|
.search-card__cover > img {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
.search-card__scrim { position: absolute; inset: 58% 0 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.7)); }
|
|
.search-card__episodes { position: absolute; left: 10px; bottom: 10px; color: var(--text); font-size: 12px; font-weight: 500; line-height: 16px; text-shadow: 0 1px 4px #000; }
|
|
.search-card__badge { position: absolute; right: 4px; top: 4px; min-width: 36px; height: 20px; display: grid; place-items: center; padding: 0 8px; border-radius: 6px; background: linear-gradient(135deg,#f04050,#d01030); color: white; font-size: 11px; font-weight: 500; line-height: 14px; }
|
|
.search-card__badge--original { background: linear-gradient(135deg,#fadc44,#f9c24e); color: #141414; }
|
|
.search-card__title { margin: 0; overflow: hidden; color: var(--text); font-size: 16px; font-weight: 600; line-height: 22px; text-overflow: ellipsis; white-space: nowrap; }
|
|
.search-card__meta { margin: 0; overflow: hidden; color: var(--text-muted); font-size: 13px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
|
|
.search-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; }
|
|
.search-pagination__pages { display: flex; align-items: center; gap: 8px; }
|
|
.search-pagination button { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--bg-elevated); color: var(--text-muted); font: 600 16px/20px Inter,var(--font); }
|
|
.search-pagination button.is-current { border-color: transparent; background: linear-gradient(135deg, #ff4a7b 15%, #ec237f 51%, #93226f 85%); color: white; }
|
|
.search-pagination button:disabled { opacity: .45; cursor: default; }
|
|
.search-pagination button img { width: 16px; height: 16px; }
|
|
.search-pagination__ellipsis { width: 36px; height: 36px; display: grid; place-items: center; color: var(--text-dim); font: 600 16px/20px Inter,var(--font); }
|
|
.search-pagination > span { margin-left: 8px; color: var(--text-dim); font-size: 12px; line-height: 18px; }
|
|
|
|
.search-heading--empty { padding-bottom: 8px; }
|
|
.search-empty { width: min(calc(100% - 48px),1200px); margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 96px 0; text-align: center; }
|
|
.search-empty__icon { width: 96px; height: 96px; display: grid; place-items: center; border: 1px solid var(--line-soft); border-radius: 50%; background: var(--bg-elevated); }
|
|
.search-empty__icon img { width: 40px; height: 40px; }
|
|
.search-empty h1 { margin: 0; font-size: 20px; font-weight: 600; line-height: 28px; }
|
|
.search-empty p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 22px; }
|
|
.search-empty .btn { height: 48px; padding-inline: 22px; font-size: 15px; line-height: 22px; }
|
|
.search-recommendations { padding-bottom: 40px; }
|
|
.search-recommendations__heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
|
|
.search-recommendations__heading h2 { margin: 0; font-size: 24px; font-weight: 600; line-height: 32px; }
|
|
.search-recommendations__heading a { display: flex; align-items: center; gap: 2px; color: var(--text-muted); font-size: 14px; line-height: 20px; }
|
|
.search-recommendations__heading img { width: 16px; height: 16px; }
|
|
.search-recommendations__more-label--h5 { display: none; }
|
|
|
|
@media (max-width: 1100px) and (min-width: 901px) {
|
|
.search-card-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
body.search-page .site-header { display: none !important; }
|
|
|
|
.search-h5-header { display: flex; }
|
|
|
|
.search-main {
|
|
padding-top: 56px;
|
|
}
|
|
|
|
.search-heading,
|
|
.search-heading--empty { display: none; }
|
|
.search-results { width: auto; display: flex; gap: 14px; padding: 12px 16px 24px; }
|
|
.search-results__mobile-count { display: block; margin: 0; color: var(--text-dim); font-size: 12px; line-height: 18px; }
|
|
.search-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 8px; }
|
|
.search-card { gap: 6px; }
|
|
.search-card__cover { border-radius: 8px; aspect-ratio: 109 / 145; }
|
|
.search-card__episodes { left: 10px; bottom: 10px; font-size: 11px; line-height: 14px; }
|
|
.search-card__badge { right: 4px; top: 4px; height: 18px; min-width: 32px; padding: 0 6px; font-size: 10px; }
|
|
.search-card__title { font-size: 14px; line-height: 20px; }
|
|
.search-card__meta { font-size: 11px; line-height: 16px; }
|
|
.search-pagination { flex-wrap: wrap; row-gap: 12px; }
|
|
.search-pagination > span { flex-basis: 100%; margin-left: 0; text-align: center; }
|
|
.search-empty { width: auto; padding: 56px 16px; }
|
|
.search-recommendations { width: auto; padding: 0 16px 24px; }
|
|
.search-recommendations__heading { margin-bottom: 14px; }
|
|
.search-recommendations__heading h2 { font-size: 18px; line-height: 26px; }
|
|
.search-recommendations__heading a { font-size: 13px; line-height: 20px; }
|
|
.search-recommendations__heading img { width: 14px; height: 14px; }
|
|
.search-recommendations__more-label--pc { display: none; }
|
|
.search-recommendations__more-label--h5 { display: inline; }
|
|
}
|