.bread-nav { padding: 5rem 24rem; display: flex; align-items: center; } .bread-nav a { font-size: 1.4rem; margin: 0 1rem; vertical-align: middle; } .bread-nav a:first-of-type { margin-left: 0; } .bread-nav span { font-size: 1.4rem; margin: 0 1rem; } .article-wrapper { padding: 5rem 24rem; display: flex; justify-content: space-between; align-items: start; } .article-content { width: 65%; } .article-wrapper h2 { font-size: 3.2rem; font-weight: 500; letter-spacing: 0.3rem; line-height: 5rem; margin-bottom: 2rem; } .article-time { font-size: 1.4rem; color: #c1c1c1; margin-bottom: 4rem; display: block; } .article-content img { width: 100%; margin: 2rem 0; } .article-content .text-content p { font-size: 1.6rem; line-height: 3rem; text-indent: 2em; } .article-list { background: #fff; width: 28%; padding: 3rem; border: #f8f8f8 1px solid; box-shadow: 0 0.1rem 1rem 0.1rem rgba(0, 84, 199, 0.1); } .article-list h3 { font-size: 1.5rem; } .article-list .title-line { background: #FF7200; width: 4rem; height: 0.2rem; display: block; margin-top: 1rem; } .article-list > div { border-bottom: #e3e3e3 1px dashed; padding-top: 2rem; } .article-list > div:last-of-type { border: none; } .article-list > div img, .prev-next-article > div img { display: none; } .article-list > div .content h4, .prev-next-article > div .content h4 { font-size: 1.4rem; line-height: 2.2rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; height: 4.4rem; } .article-list > div .content p, .prev-next-article > 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; } .article-list > div .latest-news-time, .prev-next-article > div .latest-news-time { width: 100%; display: flex; justify-content: space-between; padding: 2rem 0 2rem 0; align-items: flex-end; } .article-list > div .latest-news-time .month, .prev-next-article > div .latest-news-time .month { font-size: 1.2rem; font-family: JetB, serif; } .article-list > div .latest-news-time .month span, .prev-next-article > div .latest-news-time .month span { font-size: 2rem; font-family: JetB, serif; } .article-list > div .latest-news-time .year span, .prev-next-article > div .latest-news-time .year span { font-size: 1.4rem; font-family: JetB, serif; color: #0147a6; } .prev-next-article { display: flex; justify-content: space-between; margin-top: 10rem; margin-bottom: 5rem; } .prev-next-article > div { background: #fff; width: 48%; padding: 3rem; border: #f8f8f8 1px solid; box-shadow: 0 0.1rem 1rem 0.1rem rgba(0, 84, 199, 0.1); border-top: 0.4rem #FF7200 solid; } .prev-next-article > div .latest-news-time { padding-bottom: 0; } .prev-next-article h4 span { font-weight: normal; font-size: 1.2rem; background: #0147a6; color: #ffffff; border-radius: 0.4rem; padding: 0.2rem 0.5rem; margin-right: 1rem; } /* 兼容不同分辨率样式 */ @media screen and (max-width: 1919px) and (min-width: 1680px) { .bread-nav, .article-wrapper { padding: 5rem 16rem; } } @media screen and (max-width: 1679px) and (min-width: 1600px) { .bread-nav, .article-wrapper { padding: 5rem 12rem; } .article-wrapper h2 { font-size: 3rem; } .article-content { width: 68%; } .article-list { width: 27%; } } @media screen and (max-width: 1599px) and (min-width: 1440px) { .bread-nav, .article-wrapper { padding: 5rem 12rem; } .article-wrapper h2 { font-size: 2.8rem; } .article-content { width: 68%; } .article-list { width: 27%; } } @media screen and (max-width: 1439px) and (min-width: 1280px) { .bread-nav { padding: 5rem 8rem; } .article-wrapper { padding: 3rem 8rem; } .article-content .text-content p { font-size: 1.5rem; } .article-wrapper h2 { font-size: 2.6rem; } .article-content { width: 68%; } .article-list { width: 28%; padding: 2rem; } .article-list > div .content h4, .prev-next-article > div .content h4 { -webkit-line-clamp: 1; height: auto; } .article-list > div .content p, .prev-next-article > div .content p { margin-top: 1.5rem; } .prev-next-article > div { padding: 2rem; } }