Files
template-10582/src/pages/index/CatalogShowcase.scss

204 lines
3.6 KiB
SCSS

.catalog-card {
position: relative;
margin: 24px 16px 8px;
padding: 24px 20px;
background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #3b82f6 100%);
border-radius: 18px;
overflow: hidden;
box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
&:active {
opacity: 0.92;
}
/* ═══ 装饰圆 ═══ */
&__deco {
position: absolute;
border-radius: 50%;
pointer-events: none;
&--1 {
width: 160px;
height: 160px;
top: -40px;
right: -30px;
background: rgba(255, 255, 255, 0.06);
}
&--2 {
width: 100px;
height: 100px;
bottom: -20px;
left: 20%;
background: rgba(255, 255, 255, 0.04);
}
}
/* ═══ 内容区 ═══ */
&__content {
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
padding: 16px;
z-index: 1;
}
&__left {
flex: 1;
display: flex;
flex-direction: column;
gap: 6px;
padding-right: 16px;
}
&__cta {
display: inline-flex;
align-items: center;
gap: 4px;
margin-top: 12px;
background: rgba(255, 255, 255, 0.15);
border-radius: 100px;
padding: 8px 16px;
align-self: flex-start;
backdrop-filter: blur(4px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
/* ═══ 右侧书本图形 ═══ */
&__right {
flex-shrink: 0;
}
&__book {
width: 142px;
height: 180px;
background: rgba(255, 255, 255, 0.12);
border-radius: 4px 10px 10px 4px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
border: 1px solid rgba(255, 255, 255, 0.2);
}
&__book-spine {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 6px;
background: rgba(255, 255, 255, 0.15);
border-radius: 4px 0 0 4px;
}
&__book-pages {
display: flex;
gap: 3px;
align-items: flex-end;
}
&__book-page {
width: 4px;
background: rgba(255, 255, 255, 0.25);
border-radius: 2px;
&:nth-child(1) { height: 28px; }
&:nth-child(2) { height: 40px; }
&:nth-child(3) { height: 32px; }
}
}
.catalog-swiper {
margin: 24px 16px 8px;
&__header {
display: flex;
align-items: flex-end;
justify-content: space-between;
padding: 0 4px 12px;
gap: 12px;
}
&__title-wrap {
display: flex;
flex-direction: column;
gap: 4px;
}
&__eyebrow {
font-size: 20px;
line-height: 1;
letter-spacing: 3px;
color: #94a3b8;
}
&__title {
font-size: 36px;
line-height: 1.2;
font-weight: 700;
color: #0f172a;
}
&__cta {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 10px 14px;
border-radius: 999px;
background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
flex-shrink: 0;
}
&__cta-text {
font-size: 24px;
line-height: 1;
color: #ffffff;
font-weight: 600;
}
&__body {
border-radius: 20px;
overflow: hidden;
background: linear-gradient(135deg, #1e293b 0%, #2563eb 100%);
box-shadow: 0 12px 32px rgba(37, 99, 235, 0.18);
}
&__slide {
width: 100%;
//height: 220px;
overflow: hidden;
}
&__image {
width: 100%;
//height: 220px;
display: block;
}
&__placeholder {
//height: 220px;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
}
&__placeholder-text {
font-size: 28px;
color: rgba(255, 255, 255, 0.88);
}
.nut-swiper {
//height: 220px !important;
}
.nut-swiper-item {
//height: 220px !important;
}
.nut-swiper-item__inner {
height: 100%;
}
}