.latest-news-wrapper { padding: 8rem 24rem; } .latest-news-wrapper h3 span, .news-wrapper h3 span { width: 0.3rem; height: 1.8rem; display: inline-block; background: #FF7200; margin-right: 1rem; } .latest-news-wrapper h3, .news-wrapper h3 { font-size: 1.8rem; display: flex; align-items: center; } .latest-news-list, .news-list { display: flex; justify-content: space-between; margin-top: 5rem; } .latest-news-list > div, .news-list > div { background: #fff; width: 32%; border-radius: 0.4rem; border: #f3f3f3 1px solid; overflow: hidden; position: relative; } .latest-news-list > div:hover, .news-list > div:hover { box-shadow: 0 0.1rem 1rem 0.1rem rgb(0 84 199 / 10%); } .latest-news-list > div:hover .background { background: #000000; opacity: 0.5; } .latest-news-list > div:hover h4, .latest-news-list > div:hover p, .latest-news-list > div:hover span { color: #fff !important; } .latest-news-list > div:hover img { transform: translate(0) scale(1.2); transition: 1s ease-out; } .latest-news-list > div img { width: 100%; height: 100%; transform: translate(0) scale(1); transition: 1s ease-out; } .latest-news-list > div .background { width: 100%; background: #ffffff; display: block; height: 100%; position: absolute; top: 0; transition: 0.4s ease-out; } .latest-news-list > div .content { position: absolute; top: 2.5rem; width: 100%; height: 100%; padding: 0 2.5rem; } .latest-news-list > div .content h4 { font-size: 1.7rem; line-height: 3rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; height: 6rem; } .latest-news-list > div .content p { font-size: 1.4rem; line-height: 2.6rem; margin-top: 2rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; height: 7.8rem; } .latest-news-list > div .latest-news-time { position: absolute; bottom: 2.5rem; width: 100%; display: flex; justify-content: space-between; padding: 0 2.5rem; align-items: flex-end; } .latest-news-list > div .latest-news-time .month { font-size: 1.4rem; font-family: JetB, serif; } .latest-news-list > div .latest-news-time .month span { font-size: 3rem; font-family: JetB, serif; } .latest-news-list > div .latest-news-time .year span { font-size: 1.8rem; font-family: JetB, serif; color: #0147a6; } .news-wrapper { padding: 0 24rem 5rem 24rem; } .news-list { flex-wrap: wrap; justify-content: normal; } .news-list > div { width: 23.8%; margin-right: 1.6%; margin-bottom: 3rem; } .news-list > div:nth-child(4n) { margin-right: 0; } .news-list > div img { display: none; } .news-list > div .content { padding: 2rem; } .news-list > div .content h4 { font-size: 1.5rem; line-height: 2.2rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; height: 4.4rem; } .news-list > div .content p { font-size: 1.2rem; line-height: 2rem; margin-top: 2rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; height: 4rem; } .news-list > div .latest-news-time { width: 100%; display: flex; justify-content: space-between; padding: 0 2rem 2rem 2rem; align-items: flex-end; } .news-list > div .latest-news-time .month { font-size: 1.2rem; font-family: JetB, serif; } .news-list > div .latest-news-time .month span { font-size: 2rem; font-family: JetB, serif; } .news-list > div .latest-news-time .year span { font-size: 1.4rem; font-family: JetB, serif; color: #0147a6; } .paging-wrapper { text-align: center; display: flex; justify-content: center; padding: 0 12rem 8rem 12rem; align-items: center; } .paging-wrapper i { font-weight: 600; color: #0147a6; font-size: 1.4rem; margin: 0 1rem; } .paging-wrapper ul { text-align: center; display: flex; } .paging-wrapper li { cursor: pointer; font-size: 1.4rem; margin: 0 1rem; font-weight: 600; color: #0147a6; } .page-active { color: #FF7200 !important; } /* 兼容不同分辨率样式 */ @media screen and (max-width: 1919px) and (min-width: 1680px) { .latest-news-wrapper { padding: 8rem 12rem; } .news-wrapper { padding: 0 12rem 5rem 12rem; } } @media screen and (max-width: 1679px) and (min-width: 1600px) { .latest-news-wrapper { padding: 8rem 12rem; } .news-wrapper { padding: 0 12rem 5rem 12rem; } } @media screen and (max-width: 1599px) and (min-width: 1440px) { .latest-news-wrapper { padding: 8rem 12rem; } .news-wrapper { padding: 0 12rem 5rem 12rem; } .latest-news-list > div .content p { -webkit-line-clamp: 2; height: 5rem; } .news-list > div .content p { margin-top: 1.5rem; } } @media screen and (max-width: 1439px) and (min-width: 1280px) { .latest-news-wrapper { padding: 7rem 10rem; } .latest-news-wrapper h3, .news-wrapper h3 { font-size: 1.7rem; } .latest-news-wrapper h3 span, .news-wrapper h3 span { width: 0.2rem; height: 1.7rem; } .latest-news-list > div .content h4 { font-size: 1.6rem; line-height: 2.6rem; } .news-wrapper { padding: 0 10rem 5rem 10rem; } .latest-news-list > div .content p { -webkit-line-clamp: 2; height: 5rem; margin-top: 1rem; } .latest-news-list > div .latest-news-time .month span { font-size: 2.6rem; } .latest-news-list > div .latest-news-time .year span { font-size: 1.6rem; } .news-list > div .content p { margin-top: 1.5rem; } .latest-news-list > div .content { padding: 0 2rem; } .latest-news-list, .news-list { margin-top: 3.5rem; } .news-list > div .content { padding: 1.5rem; } .news-list > div .content h4 { font-size: 1.4rem; -webkit-line-clamp: 1; height: auto; } .news-list > div { margin-bottom: 2rem; } .paging-wrapper li,.paging-wrapper i{ font-size: 1.3rem; } }