2026-07-20 15:49:49 +08:00

98 lines
2.2 KiB
CSS

.yuedong_home_wall{
padding-top: 3.375rem;
}
.yuedong_home_wall_title{
color: var(--title-text-color);
font-size: var(--font-size-64);
font-weight: 700;
line-height: normal;
text-transform: uppercase;
max-width: 1268px;
margin: 0 auto;
}
.yuedong_home_wall_desc{
color: var(--title-text-color);
font-size: var(--font-size-16);
font-weight: 350;
line-height: 1.87;
max-width: 1268px;
margin: 0.5rem auto 0;
}
.yuedong_home_wall_content{
margin-top: 2.0625rem;
display: grid;
grid-template-columns: repeat(4, 1fr);
}
.yuedong_home_wall_content_item{
overflow: hidden;
position: relative;
}
.yuedong_home_wall_content_item_title{
display: none;
position: absolute;
bottom: 1.8125rem;
left: 50%;
padding: 1rem 2.125rem;
background: var(--color-primary);
color: #FFF;
font-size: var(--font-size-24);
font-weight: 500;
line-height: normal;
transform: translateX(-50%);
max-width: 90%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.yuedong_home_wall_content_item:hover .yuedong_home_wall_content_item_title{
display: block;
}
.yuedong_home_wall_content_item img{
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.yuedong_home_wall_content_item:nth-child(1),
.yuedong_home_wall_content_item:nth-child(2),
.yuedong_home_wall_content_item:nth-child(5){
grid-column: span 2;
aspect-ratio: 960 / 555;
}
.yuedong_home_wall_content_item:nth-child(3),
.yuedong_home_wall_content_item:nth-child(4){
grid-column: span 1;
aspect-ratio: 480 / 555;
}
@media screen and (max-width: 1500px){
.yuedong_home_wall_content_item_title {
padding: 0.625rem 1.0625rem;
}
}
@media screen and (max-width: 992px){
.yuedong_home_wall_content{
grid-template-columns: repeat(2, 1fr);
}
.yuedong_home_wall_content_item:nth-child(1),
.yuedong_home_wall_content_item:nth-child(2),
.yuedong_home_wall_content_item:nth-child(5){
grid-column: span 2;
aspect-ratio: 960 / 555;
}
.yuedong_home_wall_content_item:nth-child(3),
.yuedong_home_wall_content_item:nth-child(4){
grid-column: span 1;
aspect-ratio: 480 / 555;
}
}