/* 详情页:信息卡(海报 + 剧集信息)与选集卡,结构参考 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; } } /* ---------- 本站详情页外观:封面右置渐变信息卡、下划线分段选集、热门短剧横排置底 ---------- */ .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; } }