睿能科技
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

475 lines
9.4 KiB

.main-news {
background: var(--color-white);
}
.n-page {
padding-top: calc(var(--header-h) + 7.5rem);
padding-bottom: 6.25rem;
}
.n-head {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 2.5rem;
margin-bottom: 3.5rem;
}
.n-head__title {
margin: 0;
display: flex;
flex-direction: column;
color: var(--color-text);
font-family: "MiSans VF", "PingFang SC", sans-serif;
font-size: var(--font-48);
font-weight: 400;
line-height: var(--font-64);
}
.n-tabs {
display: flex;
flex-wrap: wrap;
gap: 1rem;
align-items: center;
flex-shrink: 0;
}
.n-tabs__item {
min-height: 3rem;
padding: 0.75rem 2rem;
border: 0;
border-radius: 6.25rem;
background: rgba(175, 181, 185, 0.15);
color: rgba(46, 53, 58, 0.6);
font-family: "MiSans VF", "PingFang SC", sans-serif;
font-size: var(--font-18);
font-weight: 400;
line-height: var(--font-24);
cursor: pointer;
}
.n-tabs__item.is-active {
background: var(--color-primary);
color: var(--color-white);
}
.n-link {
display: inline-flex;
align-items: center;
gap: 0.625rem;
color: var(--color-text-muted);
font-family: "MiSans VF", "PingFang SC", sans-serif;
font-size: var(--font-18);
font-weight: 400;
line-height: var(--font-24);
text-decoration: none;
transition: color var(--duration-fast) var(--easing);
}
.n-link img {
display: block;
width: 1rem;
height: auto;
transition: filter var(--duration-fast) var(--easing);
}
.n-link:hover {
color: var(--color-primary);
}
.n-link:hover img {
filter: brightness(0) saturate(100%) invert(36%) sepia(74%) saturate(2148%) hue-rotate(339deg) brightness(97%) contrast(92%);
}
.n-link--sm {
gap: 0.625rem;
font-size: var(--font-16);
line-height: var(--font-22);
}
.n-featured {
position: relative;
padding: 3rem;
margin-bottom: 5rem;
border-radius: 2.5rem;
background: rgba(175, 181, 185, 0.15);
}
.n-featured__swiper {
overflow: hidden;
}
.n-featured__slide {
display: grid;
grid-template-columns: minmax(0, 45rem) minmax(0, 1fr);
gap: 3rem;
align-items: center;
}
.n-featured__media {
min-width: 0;
border-radius: 2rem;
overflow: hidden;
background: var(--color-white);
}
.n-featured__media img {
display: block;
width: 100%;
height: auto;
aspect-ratio: 720/480;
object-fit: cover;
transition: transform var(--duration-normal) var(--easing);
}
.n-featured__body {
display: flex;
flex-direction: column;
justify-content: space-between;
align-self: stretch;
min-width: 0;
padding: 2.5rem 0;
}
.n-featured__content {
display: flex;
flex-direction: column;
gap: 2.5rem;
}
.n-featured__date {
color: var(--color-text-muted);
font-family: "D-DIN-PRO", "PingFang SC", sans-serif;
font-size: var(--font-18);
font-weight: 400;
line-height: var(--font-18);
}
.n-featured__title {
margin: 0;
color: var(--color-text);
font-family: "MiSans VF", "PingFang SC", sans-serif;
font-size: var(--font-28);
font-weight: 500;
line-height: var(--font-36);
transition: color var(--duration-fast) var(--easing);
min-height: 4.5rem;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.n-featured__desc {
margin: 0;
color: var(--color-text-muted);
font-family: "MiSans VF", "PingFang SC", sans-serif;
font-size: var(--font-18);
font-weight: 400;
line-height: var(--font-28);
min-height: 5.25rem;
display: -webkit-box;
-webkit-line-clamp: 3;
line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.n-featured__foot {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
margin-top: auto;
padding-top: 2rem;
padding-right: 8rem;
border-top: 1px solid rgb(223, 224, 226);
transition: border-color var(--duration-fast) var(--easing);
}
.n-featured__nav {
position: absolute;
right: 3rem;
bottom: 3rem;
z-index: 2;
}
.n-featured:hover {
cursor: pointer;
}
.n-featured:hover .n-featured__title {
color: var(--color-primary);
}
.n-featured:hover .n-featured__media img {
transform: scale(1.1);
}
.n-featured:hover .n-featured__foot {
border-top-color: var(--color-primary);
}
.n-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 2.5rem;
margin-bottom: 5rem;
}
.n-card {
display: flex;
flex-direction: column;
gap: 2.5rem;
min-width: 0;
padding: 2.5rem;
border-radius: 1.5rem;
background: rgba(175, 181, 185, 0.15);
}
.n-card__top {
display: flex;
flex-direction: column;
gap: 1.5rem;
min-width: 0;
}
.n-card__date {
color: rgba(46, 53, 58, 0.6);
font-family: "D-DIN-PRO", "PingFang SC", sans-serif;
font-size: var(--font-18);
font-weight: 400;
line-height: var(--font-18);
}
.n-card__title {
margin: 0;
min-height: 4rem;
color: var(--color-text);
font-family: "MiSans VF", "PingFang SC", sans-serif;
font-size: var(--font-20);
font-weight: 500;
line-height: var(--font-32);
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
transition: color var(--duration-fast) var(--easing);
}
.n-card__media {
margin-top: auto;
border-radius: 1rem;
overflow: hidden;
aspect-ratio: 437/260;
}
.n-card__media img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform var(--duration-normal) var(--easing);
}
.n-card .n-link {
padding-top: 1.5rem;
border-top: 1px solid rgb(223, 224, 226);
transition: border-color var(--duration-fast) var(--easing);
}
.n-card:hover {
cursor: pointer;
}
.n-card:hover .n-card__title {
color: var(--color-primary);
}
.n-card:hover .n-card__media img {
transform: scale(1.1);
}
.n-card:hover .n-link {
border-top-color: var(--color-primary);
}
.n-pagination {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.n-pagination__btn, .n-pagination__page {
display: inline-flex;
align-items: center;
justify-content: center;
width: 3rem;
height: 3rem;
padding: 0;
background-color: rgba(175, 181, 185, 0.15);
border-radius: 1rem;
color: var(--color-text-muted);
font-family: "MiSans VF", "PingFang SC", sans-serif;
font-size: var(--font-18);
font-weight: 400;
line-height: var(--font-24);
cursor: default;
}
.n-pagination__btn img {
display: block;
width: 0.875rem;
height: auto;
transform: scaleX(-1);
filter: grayscale(1) opacity(0.45);
}
.n-pagination__btn--next img {
transform: none;
filter: none;
}
.n-pagination__page.is-active {
background: var(--color-primary);
color: var(--color-white);
}
@media (max-width: 1439px) {
.n-page {
padding-top: calc(var(--header-h) + 48Px);
padding-bottom: 72Px;
}
.n-head {
flex-direction: column;
align-items: flex-start;
gap: 32Px;
margin-bottom: 40Px;
}
.n-head__title {
font-size: 36Px;
line-height: 48Px;
}
.n-tabs__item {
min-height: 44Px;
padding: 10Px 24Px;
font-size: 16Px;
}
.n-featured {
gap: 32Px;
padding: 32Px;
margin-bottom: 56Px;
border-radius: 24Px;
}
.n-featured__slide {
grid-template-columns: 1fr;
gap: 32Px;
}
.n-featured__media {
border-radius: 20Px;
}
.n-featured__body {
padding: 0;
}
.n-featured__content {
gap: 24Px;
}
.n-featured__title {
font-size: 24Px;
line-height: 34Px;
}
.n-featured__desc {
font-size: 16Px;
line-height: 26Px;
}
.n-featured__foot {
margin-top: 24Px;
padding-top: 24Px;
padding-right: 112Px;
}
.n-featured__nav {
right: 32Px;
bottom: 32Px;
}
.n-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 24Px;
margin-bottom: 56Px;
}
.n-card {
gap: 28Px;
padding: 28Px;
border-radius: 20Px;
}
.n-card__title {
min-height: 56Px;
font-size: 18Px;
line-height: 28Px;
}
}
@media (max-width: 576px) {
.n-page {
padding-top: calc(var(--header-h) + 5rem);
padding-bottom: 48Px;
}
.n-head {
gap: 24Px;
margin-bottom: 28Px;
}
.n-head__title {
font-size: 28Px;
line-height: 38Px;
}
.n-tabs {
width: 100%;
overflow-x: auto;
flex-wrap: nowrap;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.n-tabs::-webkit-scrollbar {
display: none;
}
.n-tabs__item {
flex-shrink: 0;
min-height: 40Px;
padding: 8Px 20Px;
font-size: 14Px;
}
.n-featured {
gap: 20Px;
padding: 20Px;
margin-bottom: 40Px;
border-radius: 16Px;
}
.n-featured__slide {
gap: 20Px;
}
.n-featured__media {
border-radius: 12Px;
}
.n-featured__content {
gap: 16Px;
}
.n-featured__date {
font-size: 14Px;
}
.n-featured__title {
font-size: 20Px;
line-height: 28Px;
min-height: 56Px;
}
.n-featured__desc {
font-size: 14Px;
line-height: 22Px;
min-height: 66Px;
}
.n-featured__foot {
margin-top: 16Px;
min-height: 3rem;
}
.n-featured__nav {
right: 20Px;
bottom: 10Px;
}
.n-grid {
grid-template-columns: 1fr;
gap: 16Px;
margin-bottom: 40Px;
}
.n-card {
gap: 20Px;
padding: 20Px;
border-radius: 16Px;
}
.n-card__top {
gap: 16Px;
}
.n-card__date {
font-size: 14Px;
}
.n-card__title {
min-height: 0;
font-size: 16Px;
line-height: 24Px;
}
.n-card .n-link {
padding-top: 16Px;
}
.n-pagination {
gap: 10Px;
}
.n-pagination__btn, .n-pagination__page {
width: 40Px;
height: 40Px;
border-radius: 12Px;
font-size: 16Px;
}
}