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.
381 lines
7.6 KiB
381 lines
7.6 KiB
.main-search {
|
|
background: var(--color-white);
|
|
}
|
|
|
|
.sr-page {
|
|
padding-top: calc(var(--header-h) + 9rem);
|
|
padding-bottom: 7.5rem;
|
|
}
|
|
|
|
.sr-hero {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 1.5rem;
|
|
margin-bottom: 5rem;
|
|
}
|
|
.sr-hero__title {
|
|
margin: 0;
|
|
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);
|
|
text-align: center;
|
|
}
|
|
|
|
.sr-search.s-search {
|
|
width: min(50rem, 100%);
|
|
padding-left: 2rem;
|
|
}
|
|
|
|
.sr-hot {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.75rem 1rem;
|
|
}
|
|
.sr-hot__label {
|
|
color: var(--color-text);
|
|
font-family: "MiSans VF", "PingFang SC", sans-serif;
|
|
font-size: var(--font-16);
|
|
font-weight: 400;
|
|
line-height: var(--font-22);
|
|
}
|
|
.sr-hot__list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
}
|
|
.sr-hot__tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 2.25rem;
|
|
padding: 0.5rem 1.5rem;
|
|
border: 0;
|
|
border-radius: 6.25rem;
|
|
background: rgba(175, 181, 185, 0.15);
|
|
color: var(--color-text-muted);
|
|
font-family: "MiSans VF", "PingFang SC", sans-serif;
|
|
font-size: var(--font-16);
|
|
font-weight: 400;
|
|
line-height: var(--font-22);
|
|
cursor: pointer;
|
|
transition: color 0.25s ease, background 0.25s ease;
|
|
}
|
|
.sr-hot__tag:hover {
|
|
color: var(--color-primary);
|
|
background: rgba(239, 67, 53, 0.1);
|
|
}
|
|
|
|
.sr-tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 1.5rem;
|
|
align-items: stretch;
|
|
border-bottom: 1px solid rgb(223, 224, 226);
|
|
}
|
|
.sr-tabs__item {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 4rem;
|
|
padding: 1rem 0;
|
|
border: 0;
|
|
border-bottom: 0.125rem solid transparent;
|
|
margin-bottom: -1px;
|
|
background: transparent;
|
|
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;
|
|
cursor: pointer;
|
|
transition: color var(--duration-fast) var(--easing);
|
|
}
|
|
.sr-tabs__item.is-active {
|
|
color: var(--color-primary);
|
|
border-bottom-color: var(--color-primary);
|
|
}
|
|
.sr-tabs__item:hover:not(.is-active) {
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.sr-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-bottom: 3.5rem;
|
|
}
|
|
|
|
.sr-item {
|
|
display: flex;
|
|
gap: 2rem;
|
|
align-items: stretch;
|
|
padding: 2.5rem 0;
|
|
border-bottom: 1px solid rgb(223, 224, 226);
|
|
}
|
|
.sr-item[hidden] {
|
|
display: none;
|
|
}
|
|
.sr-item__media {
|
|
display: block;
|
|
flex-shrink: 0;
|
|
width: 18.75rem;
|
|
aspect-ratio: 300/200;
|
|
overflow: hidden;
|
|
border-radius: 1rem;
|
|
/* padding: 24px; */
|
|
padding: 1.5rem;
|
|
background: rgba(175, 181, 185, 0.15);
|
|
}
|
|
.sr-item__media img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
transition: transform var(--duration-normal) var(--easing);
|
|
}
|
|
.sr-item__media:hover img {
|
|
transform: scale(1.04);
|
|
}
|
|
.sr-item__body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
gap: 1.5rem;
|
|
}
|
|
.sr-item__main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
.sr-item__meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
.sr-item__type, .sr-item__date {
|
|
color: var(--color-text-muted);
|
|
font-family: "MiSans VF", "PingFang SC", sans-serif;
|
|
font-size: var(--font-16);
|
|
font-weight: 400;
|
|
line-height: var(--font-22);
|
|
}
|
|
.sr-item__type {
|
|
font-weight: 500;
|
|
}
|
|
.sr-item__sep {
|
|
display: block;
|
|
width: 1px;
|
|
height: 0.875rem;
|
|
background: rgb(223, 224, 226);
|
|
}
|
|
.sr-item__title {
|
|
margin: 0;
|
|
font-family: "MiSans VF", "PingFang SC", sans-serif;
|
|
font-size: var(--font-20);
|
|
font-weight: 500;
|
|
line-height: var(--font-28);
|
|
}
|
|
.sr-item__title a {
|
|
color: var(--color-text);
|
|
text-decoration: none;
|
|
transition: color var(--duration-fast) var(--easing);
|
|
}
|
|
.sr-item__title a:hover {
|
|
color: var(--color-primary);
|
|
}
|
|
.sr-item__desc {
|
|
margin: 0;
|
|
color: var(--color-text-muted);
|
|
font-family: "MiSans VF", "PingFang SC", sans-serif;
|
|
font-size: var(--font-16);
|
|
font-weight: 400;
|
|
line-height: var(--font-28);
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 3;
|
|
overflow: hidden;
|
|
}
|
|
.sr-item__more {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.625rem;
|
|
align-self: flex-start;
|
|
color: var(--color-text-muted);
|
|
font-family: "MiSans VF", "PingFang SC", sans-serif;
|
|
font-size: var(--font-16);
|
|
font-weight: 400;
|
|
line-height: var(--font-22);
|
|
text-decoration: none;
|
|
transition: color var(--duration-fast) var(--easing);
|
|
}
|
|
.sr-item__more svg {
|
|
display: block;
|
|
width: 1rem;
|
|
height: auto;
|
|
flex-shrink: 0;
|
|
}
|
|
.sr-item__more svg path {
|
|
fill: currentColor;
|
|
transition: fill var(--duration-fast) var(--easing);
|
|
}
|
|
.sr-item__more:hover {
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
/* 分类型:统一左右布局,仅叠加交互样式(视频播放与视频教程页一致) */
|
|
.sr-item--video .sr-item__media--video {
|
|
position: relative;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
text-align: left;
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
}
|
|
.sr-item--video .v-card__media {
|
|
width: 100%;
|
|
height: 100%;
|
|
aspect-ratio: auto;
|
|
border-radius: inherit;
|
|
}
|
|
.sr-item--video .v-card__cover {
|
|
object-fit: cover;
|
|
}
|
|
.sr-item--video .sr-item__media--video:hover .v-card__cover {
|
|
transform: scale(1.04);
|
|
}
|
|
.sr-item--video .sr-item__media--video:hover .v-card__play {
|
|
opacity: 1;
|
|
transform: translate(-50%, -50%) scale(1);
|
|
}
|
|
.sr-item--video .v-card__play img,
|
|
.sr-item--video .sr-item__media:hover .v-card__play img {
|
|
width: 1rem;
|
|
height: auto;
|
|
margin-left: 0.125rem;
|
|
object-fit: contain;
|
|
transform: none;
|
|
}
|
|
.sr-item--faq .sr-item__faq {
|
|
margin: 0;
|
|
border-bottom: 0;
|
|
border-top: none;
|
|
}
|
|
.sr-item--faq .f-item__trigger {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
.sr-item--faq .f-item__panel > .f-item__a {
|
|
min-height: 0;
|
|
}
|
|
.sr-item--faq .f-item.is-open .f-item__a {
|
|
padding-left: 1.25rem;
|
|
padding-right: 1.25rem;
|
|
}
|
|
.sr-item__more--download img,
|
|
.sr-item__more--product .s-product-card__arrow {
|
|
display: block;
|
|
width: 1.25rem;
|
|
height: auto;
|
|
flex-shrink: 0;
|
|
}
|
|
.sr-item__more--download:hover,
|
|
.sr-item__more--product:hover {
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.sr-page {
|
|
padding-top: calc(var(--header-h) + 32Px);
|
|
padding-bottom: 80Px;
|
|
}
|
|
.sr-hero {
|
|
gap: 20Px;
|
|
margin-bottom: 48Px;
|
|
}
|
|
.sr-hero__title {
|
|
font-size: 36Px;
|
|
line-height: 48Px;
|
|
}
|
|
.sr-search.s-search {
|
|
padding-left: 20Px;
|
|
}
|
|
.sr-tabs {
|
|
gap: 16Px;
|
|
overflow-x: auto;
|
|
flex-wrap: nowrap;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: none;
|
|
}
|
|
.sr-tabs::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
.sr-tabs__item {
|
|
flex-shrink: 0;
|
|
min-height: 52Px;
|
|
font-size: 16Px;
|
|
}
|
|
.sr-item {
|
|
gap: 24Px;
|
|
padding: 32Px 0;
|
|
}
|
|
.sr-item__media {
|
|
width: 220Px;
|
|
}
|
|
.sr-item__title {
|
|
font-size: 18Px;
|
|
line-height: 26Px;
|
|
}
|
|
}
|
|
@media (max-width: 576px) {
|
|
.sr-hero {
|
|
align-items: stretch;
|
|
margin-bottom: 40Px;
|
|
}
|
|
.sr-hero__title {
|
|
font-size: 28Px;
|
|
line-height: 36Px;
|
|
}
|
|
.sr-hot {
|
|
justify-content: flex-start;
|
|
}
|
|
.sr-hot__tag {
|
|
min-height: 32Px;
|
|
padding: 4Px 14Px;
|
|
font-size: 14Px;
|
|
}
|
|
.sr-item {
|
|
flex-direction: column;
|
|
gap: 16Px;
|
|
padding: 24Px 0;
|
|
}
|
|
.sr-item__media {
|
|
width: 100%;
|
|
}
|
|
.sr-item__body {
|
|
gap: 16Px;
|
|
}
|
|
.sr-item__main {
|
|
gap: 12Px;
|
|
}
|
|
.sr-item__title {
|
|
font-size: 16Px;
|
|
line-height: 24Px;
|
|
}
|
|
.sr-item__desc {
|
|
font-size: 14Px;
|
|
line-height: 22Px;
|
|
-webkit-line-clamp: 4;
|
|
}
|
|
}
|