172 lines
3.8 KiB
CSS
172 lines
3.8 KiB
CSS
.yuedong_about_why_main {
|
|
padding: 3.4375rem 0;
|
|
background-color: #f7f7f7;
|
|
}
|
|
|
|
/* container handled by global.css */
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_title {
|
|
font-size: var(--font-size-64);
|
|
font-weight: 700;
|
|
font-family: Oswald, var(--title-font-family), sans-serif;
|
|
color: var(--title-text-color);
|
|
text-align: center;
|
|
text-transform: uppercase;
|
|
margin: 0 0 1.875rem;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_item {
|
|
width: calc((100% - 3 * 1.25rem) / 4);
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_img_wrap {
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
aspect-ratio: 370 / 360;
|
|
width: 100%;
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_info {
|
|
padding: 1rem 0.9375rem;
|
|
background-color: #fff;
|
|
flex: 1;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_name {
|
|
font-size: var(--font-size-24);
|
|
font-weight: 700;
|
|
font-family: Oswald, var(--title-font-family), sans-serif;
|
|
color: var(--title-text-color);
|
|
margin: 0 0 0.625rem;
|
|
line-height: 1.3;
|
|
transition: color 0.3s ease;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_desc {
|
|
font-family: var(--font-family);
|
|
font-size: var(--font-size-16);
|
|
line-height: 0.875rem;
|
|
color: var(--title-text-color);
|
|
margin: 0;
|
|
transition: color 0.3s ease;
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 4;
|
|
-webkit-box-orient: vertical;
|
|
line-clamp: 4;
|
|
}
|
|
|
|
/* Hover */
|
|
.yuedong_about_why_main .yuedong_about_why_item:hover .yuedong_about_why_info {
|
|
background-color: var(--color-primary);
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_item:hover .yuedong_about_why_name,
|
|
.yuedong_about_why_main .yuedong_about_why_item:hover .yuedong_about_why_desc {
|
|
color: #fff;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media screen and (max-width: 1400px) {
|
|
.yuedong_about_why_main {
|
|
padding: 2.5rem 0;
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_title {
|
|
font-size: var(--font-size-56);
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 1200px) {
|
|
.yuedong_about_why_main {
|
|
padding: 2.1875rem 0;
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_title {
|
|
font-size: var(--font-size-48);
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 992px) {
|
|
.yuedong_about_why_main {
|
|
padding: 1.875rem 0;
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_title {
|
|
font-size: var(--font-size-40);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_item {
|
|
width: calc((100% - 1.25rem) / 2);
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 768px) {
|
|
.yuedong_about_why_main {
|
|
padding: 1.5625rem 0;
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_title {
|
|
font-size: var(--font-size-32);
|
|
margin-bottom: 0.875rem;
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_info {
|
|
padding: 0.75rem 0.625rem;
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_name {
|
|
font-size: var(--font-size-20);
|
|
margin-bottom: 0.4375rem;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 576px) {
|
|
.yuedong_about_why_main {
|
|
padding: 1.25rem 0;
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_title {
|
|
font-size: var(--font-size-28);
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_item {
|
|
width: calc((100% - 1.25rem) / 2);
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_info {
|
|
padding: 0.5rem 0.4375rem;
|
|
}
|
|
|
|
.yuedong_about_why_main .yuedong_about_why_name {
|
|
font-size: var(--font-size-18);
|
|
margin-bottom: 0.3125rem;
|
|
}
|
|
}
|