排版调整
This commit is contained in:
@@ -555,3 +555,275 @@ body.is-detail-page .content-official-info a {
|
||||
line-height: 22px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------- 本站详情页外观:封面右置渐变信息卡、下划线分段选集、热门短剧横排置底 ---------- */
|
||||
.dh-card {
|
||||
border: 0;
|
||||
border-radius: 12px;
|
||||
background: #181818;
|
||||
}
|
||||
|
||||
.dh-hero {
|
||||
background: linear-gradient(120deg, rgba(236, 35, 127, 0.16) 0%, rgba(24, 24, 24, 0) 55%), #181818;
|
||||
}
|
||||
|
||||
.dh-brand {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.dh-intro-title {
|
||||
color: #EC237F;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.dh-tag {
|
||||
padding: 3px 12px;
|
||||
background: transparent;
|
||||
border: 1px solid rgba(255, 255, 255, 0.18);
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
}
|
||||
|
||||
.dh-tag::before {
|
||||
content: "#";
|
||||
margin-right: 2px;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.dh-theme {
|
||||
border-radius: 4px;
|
||||
border-color: transparent;
|
||||
background: rgba(236, 35, 127, 0.14);
|
||||
}
|
||||
|
||||
.dh-btn {
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.dh-episodes-head {
|
||||
padding-left: 12px;
|
||||
border-left: 4px solid #EC237F;
|
||||
}
|
||||
|
||||
.dh-episodes-title {
|
||||
font-size: 18px;
|
||||
line-height: 26px;
|
||||
}
|
||||
|
||||
.dh-ranges {
|
||||
gap: 24px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.dh-range {
|
||||
height: 36px;
|
||||
padding: 0 2px;
|
||||
background: transparent;
|
||||
border-radius: 0;
|
||||
border-bottom: 2px solid transparent;
|
||||
color: rgba(255, 255, 255, 0.55);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.dh-range.is-active {
|
||||
background: transparent;
|
||||
border-bottom-color: #EC237F;
|
||||
color: #FFFFFF;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.dh-ep {
|
||||
background: transparent;
|
||||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||||
border-radius: 6px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.dh-ep:hover {
|
||||
background: transparent;
|
||||
border-color: rgba(236, 35, 127, 0.6);
|
||||
}
|
||||
|
||||
.dh-ep-lock {
|
||||
top: 3px;
|
||||
right: 3px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
body.is-detail-page .content-official-info {
|
||||
outline: 0;
|
||||
border-radius: 12px;
|
||||
background: #181818;
|
||||
}
|
||||
|
||||
body.is-detail-page .content-official-info::before {
|
||||
padding-left: 12px;
|
||||
border-left: 4px solid #EC237F;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.dh-hero {
|
||||
flex-direction: row-reverse;
|
||||
align-items: stretch;
|
||||
gap: 40px;
|
||||
}
|
||||
|
||||
.dh-poster {
|
||||
flex-basis: 250px;
|
||||
align-self: flex-start;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
|
||||
.dh-title {
|
||||
font-size: 34px;
|
||||
line-height: 44px;
|
||||
}
|
||||
|
||||
.dh-actions {
|
||||
margin-top: auto;
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
.dh-ep-grid {
|
||||
grid-template-columns: repeat(10, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
/* 热门短剧:由右侧竖栏改为页面底部横排 */
|
||||
.detail-layout {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: calc(40px * var(--detail-s));
|
||||
}
|
||||
|
||||
.detail-layout > .content-column-divider {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.detail-sidebar,
|
||||
.detail-sidebar .detail-related {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.detail-sidebar .detail-related-title {
|
||||
height: auto;
|
||||
padding-left: calc(12px * var(--detail-s));
|
||||
border-left: calc(4px * var(--detail-s)) solid #EC237F;
|
||||
line-height: calc(30px * var(--detail-s));
|
||||
}
|
||||
|
||||
.detail-sidebar .detail-related .card-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: calc(20px * var(--detail-s));
|
||||
}
|
||||
|
||||
.detail-sidebar .detail-related .poster-card {
|
||||
width: auto;
|
||||
border-radius: calc(8px * var(--detail-s));
|
||||
}
|
||||
|
||||
.detail-sidebar .detail-related .poster-cover {
|
||||
aspect-ratio: 3 / 4;
|
||||
border-radius: calc(8px * var(--detail-s));
|
||||
}
|
||||
|
||||
.detail-sidebar .detail-related .poster-card-body {
|
||||
min-height: 0;
|
||||
padding: calc(10px * var(--detail-s)) calc(2px * var(--detail-s));
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
/* 小封面在左,品牌、标题、元信息在右,其余内容通栏 */
|
||||
.dh-hero {
|
||||
display: grid;
|
||||
grid-template-columns: 112px minmax(0, 1fr);
|
||||
/* 第 4 行吸收封面多出的高度,避免右侧三行被拉开 */
|
||||
grid-template-rows: auto auto auto 1fr;
|
||||
column-gap: 14px;
|
||||
row-gap: 10px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.dh-info {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
.dh-info > * {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.dh-poster {
|
||||
grid-column: 1;
|
||||
grid-row: 1 / span 4;
|
||||
width: 112px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.dh-poster-play {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.dh-poster-play img {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.dh-poster-badge,
|
||||
.dh-poster-eps {
|
||||
padding: 0 6px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.dh-info > .dh-brand,
|
||||
.dh-info > .dh-title,
|
||||
.dh-info > .dh-meta {
|
||||
grid-column: 2;
|
||||
}
|
||||
|
||||
.dh-info > .dh-brand {
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
.dh-info > .dh-title {
|
||||
grid-row: 2;
|
||||
font-size: 20px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.dh-info > .dh-meta {
|
||||
grid-row: 3;
|
||||
}
|
||||
|
||||
.dh-ranges {
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.dh-ep-grid {
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.dh-ep {
|
||||
height: 38px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.dh-info > .dh-intro-toggle {
|
||||
justify-self: start;
|
||||
}
|
||||
|
||||
/* 格子较窄,APP 角标移到格子外角,避免盖住集数 */
|
||||
.dh-ep-lock {
|
||||
top: -6px;
|
||||
right: -4px;
|
||||
padding: 0 3px;
|
||||
font-size: 9px;
|
||||
line-height: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user