This commit is contained in:
谢宇宁
2026-09-24 12:42:30 +07:00
parent e14b3863fb
commit 613db5cb79
15 changed files with 758 additions and 660 deletions
+557
View File
@@ -0,0 +1,557 @@
/* 详情页:信息卡(海报 + 剧集信息)与选集卡,结构参考 huangguoai.com 详情页,配色沿用品牌粉。 */
.dh-card {
width: 100%;
padding: 32px;
background: #1A1A1A;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 20px;
box-sizing: border-box;
font-family: PingFang SC, sans-serif;
}
/* ---------- 信息卡 ---------- */
.dh-hero {
display: flex;
align-items: flex-start;
gap: 28px;
}
.dh-poster {
position: relative;
flex: 0 0 210px;
aspect-ratio: 3 / 4;
display: block;
overflow: hidden;
border-radius: 12px;
background: #111;
}
.dh-poster-img {
width: 100%;
height: 100%;
display: block;
object-fit: cover;
transition: transform 0.3s ease;
}
.dh-poster:hover .dh-poster-img {
transform: scale(1.04);
}
.dh-poster-badge {
position: absolute;
top: 8px;
left: 8px;
padding: 2px 8px;
background: #EC237F;
border-radius: 6px;
color: #FFFFFF;
font-size: 12px;
font-weight: 600;
line-height: 18px;
}
.dh-poster-eps {
position: absolute;
right: 8px;
bottom: 8px;
padding: 2px 8px;
background: rgba(0, 0, 0, 0.65);
border-radius: 6px;
color: #FFFFFF;
font-size: 12px;
font-weight: 600;
line-height: 18px;
}
.dh-poster-play {
position: absolute;
top: 50%;
left: 50%;
width: 56px;
height: 56px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(236, 35, 127, 0.88);
border-radius: 50%;
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
transform: translate(-50%, -50%);
transition: transform 0.2s ease, background 0.2s ease;
}
.dh-poster-play img {
width: 22px;
height: 22px;
margin-left: 3px;
}
/* player.svg 本身是黑色填充,粉底上统一显示为白色 */
.dh-poster-play img,
.dh-btn--primary img {
filter: brightness(0) invert(1);
}
.dh-poster:hover .dh-poster-play {
background: #EC237F;
transform: translate(-50%, -50%) scale(1.08);
}
.dh-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.dh-brand {
display: flex;
align-items: center;
gap: 8px;
color: #FFFFFF;
font-size: 14px;
line-height: 20px;
}
.dh-brand-avatar {
width: 28px;
height: 28px;
border-radius: 50%;
}
.dh-title {
margin: 0;
color: #FFFFFF;
font-size: 32px;
font-weight: 600;
line-height: 42px;
}
.dh-meta {
display: flex;
flex-wrap: wrap;
align-items: center;
color: rgba(255, 255, 255, 0.6);
font-size: 14px;
line-height: 20px;
}
.dh-meta span + span::before {
content: "·";
margin: 0 8px;
color: rgba(255, 255, 255, 0.35);
}
.dh-intro-title {
margin: 6px 0 0;
color: #FFFFFF;
font-size: 16px;
font-weight: 600;
line-height: 24px;
}
.dh-intro {
margin: 0;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
color: rgba(255, 255, 255, 0.72);
font-size: 14px;
line-height: 22px;
}
.dh-intro.is-expanded {
display: block;
-webkit-line-clamp: unset;
}
.dh-intro-toggle {
margin-top: -6px;
padding: 0;
background: none;
border: 0;
color: #EC237F;
font-size: 13px;
line-height: 20px;
cursor: pointer;
}
.dh-tags,
.dh-themes {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
}
.dh-tag {
padding: 4px 12px;
background: rgba(255, 255, 255, 0.08);
border-radius: 999px;
color: rgba(255, 255, 255, 0.85);
font-size: 12px;
line-height: 18px;
text-decoration: none;
transition: background 0.18s ease, color 0.18s ease;
}
a.dh-tag:hover {
background: rgba(236, 35, 127, 0.16);
color: #EC237F;
}
.dh-themes-label {
color: rgba(255, 255, 255, 0.5);
font-size: 13px;
line-height: 20px;
}
.dh-theme {
padding: 3px 12px;
border: 1px solid rgba(236, 35, 127, 0.6);
border-radius: 999px;
color: #EC237F;
font-size: 13px;
line-height: 18px;
text-decoration: none;
}
a.dh-theme:hover {
background: rgba(236, 35, 127, 0.12);
}
.dh-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 6px;
}
.dh-btn {
height: 48px;
padding: 0 24px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 999px;
box-sizing: border-box;
color: #FFFFFF;
font-family: inherit;
font-size: 16px;
font-weight: 600;
line-height: 22px;
text-decoration: none;
white-space: nowrap;
cursor: pointer;
transition: border-color 0.18s ease, background 0.18s ease, filter 0.18s ease;
}
.dh-btn img {
width: 18px;
height: 18px;
}
.dh-btn:hover {
border-color: rgba(255, 255, 255, 0.45);
background: rgba(255, 255, 255, 0.04);
}
.dh-btn--primary {
padding: 0 32px;
background: #EC237F;
border-color: #EC237F;
}
.dh-btn--primary:hover {
background: #EC237F;
border-color: #EC237F;
filter: brightness(1.08);
}
/* ---------- 选集卡 ---------- */
.dh-episodes-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
}
.dh-episodes-title {
margin: 0;
color: #FFFFFF;
font-size: 20px;
font-weight: 600;
line-height: 28px;
}
.dh-episodes-sub {
margin-top: 4px;
color: rgba(255, 255, 255, 0.5);
font-size: 13px;
line-height: 20px;
}
.dh-episodes-hint {
flex-shrink: 0;
color: #EC237F;
font-size: 13px;
line-height: 28px;
}
.dh-ranges {
display: flex;
gap: 8px;
margin-top: 16px;
overflow-x: auto;
scrollbar-width: none;
}
.dh-ranges::-webkit-scrollbar {
display: none;
}
.dh-range {
flex: 0 0 auto;
height: 32px;
padding: 0 14px;
background: rgba(255, 255, 255, 0.06);
border: 0;
border-radius: 8px;
color: rgba(255, 255, 255, 0.7);
font-family: inherit;
font-size: 13px;
cursor: pointer;
}
.dh-range.is-active {
background: rgba(236, 35, 127, 0.16);
color: #EC237F;
}
.dh-ep-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
gap: 12px 10px;
margin-top: 16px;
}
.dh-ep {
position: relative;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.06);
border-radius: 10px;
color: #FFFFFF;
font-size: 15px;
font-weight: 500;
text-decoration: none;
transition: background 0.18s ease, color 0.18s ease;
}
.dh-ep:hover {
background: rgba(236, 35, 127, 0.18);
color: #EC237F;
}
.dh-ep.is-range-hidden {
display: none;
}
.dh-ep-lock {
position: absolute;
top: -6px;
right: -4px;
padding: 0 5px;
background: #EC237F;
border-radius: 6px 6px 6px 0;
color: #FFFFFF;
font-size: 10px;
font-weight: 600;
line-height: 15px;
}
/* ---------- 官方地址卡(详情页内,含手机端) ---------- */
body.is-detail-page .content-official-info {
display: grid !important;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 14px 24px;
padding: 24px 32px;
background: #1A1A1A;
outline: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 20px;
color: rgba(255, 255, 255, 0.55);
font-size: 13px;
line-height: 20px;
}
body.is-detail-page .content-official-info::before {
content: "官方地址 · 请收藏,防止迷路";
grid-column: 1 / -1;
color: #FFFFFF;
font-size: 16px;
font-weight: 600;
line-height: 24px;
}
body.is-detail-page .content-official-info a {
color: #EC237F;
font-size: 14px;
word-break: break-all;
}
/* ---------- 平板:信息卡缩小海报 ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
.dh-card {
padding: 24px;
}
.dh-poster {
flex-basis: 170px;
}
.dh-title {
font-size: 26px;
line-height: 36px;
}
}
/* ---------- 手机 ---------- */
@media (max-width: 767px) {
.dh-card {
padding: 16px;
background: rgba(26, 26, 26, 0.82);
border-radius: 16px;
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}
.dh-hero {
flex-direction: column;
gap: 16px;
}
.dh-poster {
flex: none;
width: 48%;
max-width: 190px;
}
.dh-poster-play {
width: 46px;
height: 46px;
}
.dh-poster-play img {
width: 18px;
height: 18px;
}
.dh-info {
width: 100%;
gap: 10px;
}
.dh-brand {
font-size: 13px;
}
.dh-brand-avatar {
width: 24px;
height: 24px;
}
.dh-title {
font-size: 22px;
line-height: 30px;
}
.dh-meta {
font-size: 12px;
line-height: 18px;
}
.dh-meta span + span::before {
margin: 0 6px;
}
.dh-intro-title {
font-size: 15px;
line-height: 22px;
}
.dh-intro {
font-size: 13px;
line-height: 20px;
}
.dh-actions {
width: 100%;
gap: 10px;
}
.dh-actions {
flex-wrap: nowrap;
}
.dh-btn {
height: 42px;
padding: 0 14px;
gap: 6px;
font-size: 15px;
}
.dh-btn img {
width: 16px;
height: 16px;
}
.dh-btn--primary {
flex: 1;
padding: 0 16px;
}
.dh-episodes-title {
font-size: 17px;
line-height: 24px;
}
.dh-episodes-sub,
.dh-episodes-hint {
font-size: 12px;
}
.dh-episodes-hint {
line-height: 24px;
}
.dh-ep-grid {
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 10px 8px;
}
.dh-ep {
height: 42px;
font-size: 14px;
}
body.is-detail-page .content-official-info {
grid-template-columns: 1fr;
gap: 12px;
padding: 16px;
border-radius: 16px;
}
body.is-detail-page .content-official-info::before {
font-size: 15px;
line-height: 22px;
}
}