Files
SEONexus/code/public/static/css/modules/detail/detail_02.css
2025-12-31 00:49:32 +08:00

126 lines
2.4 KiB
CSS

/* detail_02.css */
.__PFX__-d2-page { padding-bottom: 20px; }
/* 顶部大横图 */
.__PFX__-d2-hero {
position: relative;
height: 200px;
overflow: hidden;
}
@media(min-width:768px){
.__PFX__-d2-hero { height: 260px; }
}
.__PFX__-d2-heroimg {
width: 100%;
height: 100%;
object-fit: cover;
}
.__PFX__-d2-heromask {
position: absolute;
inset: 0;
background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
}
.__PFX__-d2-heroinfo {
position: absolute;
left: 12px;
right: 12px;
bottom: 12px;
color: #fff;
}
.__PFX__-d2-heroinfo h1 {
font-size: 20px;
margin-bottom: 4px;
}
/* 基本信息 */
.__PFX__-d2-info {
padding: 12px;
font-size: 13px;
}
.__PFX__-d2-info p { margin-bottom: 4px; }
/* 线路 tabs */
.__PFX__-d2-tabs {
padding: 0 12px;
margin-top: 10px;
display: flex;
gap: 8px;
overflow-x: auto;
}
.__PFX__-d2-tabbtn {
padding: 6px 12px;
border-radius: 14px;
border: 1px solid rgba(0,0,0,.08);
background: #f6f6f6;
font-size: 12px;
white-space: nowrap;
}
.__PFX__-d2-tabbtn.active {
background: var(--primary-color);
border-color: var(--primary-color);
color: #fff;
}
/* 集数列表 */
.__PFX__-d2-lines { padding: 10px 12px 0; }
.__PFX__-d2-epis {
display: none;
flex-wrap: wrap;
gap: 8px;
}
.__PFX__-d2-epis.active { display: flex; }
.__PFX__-d2-epis li a {
display: block;
padding: 6px 10px;
font-size: 12px;
border-radius: 6px;
background: #fafafa;
border: 1px solid rgba(0,0,0,.06);
}
.__PFX__-d2-epis li a.active {
background: var(--primary-color);
color: #fff;
}
/* 简介 */
.__PFX__-d2-desc {
padding: 14px 12px 0;
}
.__PFX__-d2-desc h2 {
font-size: 16px;
color: var(--primary-color);
margin-bottom: 6px;
}
.__PFX__-d2-desc p {
font-size: 14px;
line-height: 1.7;
}
/* 相关推荐 */
.__PFX__-d2-rel {
padding: 16px 12px 0;
}
.__PFX__-d2-rel h3 {
font-size: 16px;
color: var(--primary-color);
margin-bottom: 8px;
}
.__PFX__-d2-relgrid {
display: grid;
gap: 12px;
grid-template-columns: repeat(2,1fr);
}
@media(min-width:768px){
.__PFX__-d2-relgrid { grid-template-columns: repeat(4,1fr); }
}
.__PFX__-d2-relcard img {
width: 100%;
aspect-ratio: 2/3;
border-radius: 10px;
object-fit: cover;
}
.__PFX__-d2-relcard p {
font-size: 12px;
margin-top: 4px;
}