/*
    hero
*/
.banner-section {
    height: 50vh;
    position: relative;
    overflow: hidden;
}

.banner-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.banner-overlay div {
    white-space: break-spaces;
    font-family: "Source-Sans-Pro-Bold-2";
    color: #ffffff;
    font-size: clamp(2rem, 4.6vw, 3.5rem);
    line-height: clamp(2rem, 4.6vw, 3.5rem);
    font-weight: bold;
    text-align: center;
}

.banner-section .slick-carousel .slick-dots {
    background: #ffffff77;
    border-radius: 40px;
    width: fit-content;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: auto;
}

.banner-section .slick-carousel .slick-arrow {
    z-index: -1;
}

.banner-section .slick-carousel .slick-prev {
    left: 25px;
}

.banner-section .slick-carousel .slick-next {
    right: 25px;
}

.banner-section .slick-carousel .slick-prev,
.banner-section .slick-carousel .slick-next {
    width: 60px;
    height: 60px;
}

.banner-section .slick-carousel .slick-prev:before,
.banner-section .slick-carousel .slick-next:before {
    font-size: 60px;
}

/* 大于1024px, ipad、pc */
@media (min-width: 1024px) {
    .banner-section .swiper {
        height: calc(100vw * 0.27);
    }

    .banner-section .slick-carousel .slick-arrow {
        z-index: 1;
    }
}




/**
 *  分类栏目
 */
.category-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 20px;
}

.category-section .section-title {
    font-family: "AbrilFatface-Regular-2", sans-serif !important;
    font-size: 3rem;
    font-weight: 350;
    text-align: center;
    color: var(--brand-dark);
    margin: 1rem 0 3rem 0;
}

.category-section .cate-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 0;
    width: 100%;
    border-top: 1px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
}

.category-section .cate-block .cate-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.category-section .cate-item-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    flex-grow: 1;
    color: #555555;
    font-size: 1.25rem;
    width: 1px;
    overflow: hidden;
    height: 60px;
    gap: 1rem 2.5rem;
}

.category-section .cate-item-list.open {
    height: unset !important;
}

.category-section .cate-item-list .item {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    line-height: 26px;
    border-radius: 50px;
    margin: 1rem 0.25rem;
    color: var(--brand-dark);
}

.category-section .item a {
    color: #555555;
    text-decoration: none;
}

.category-section .item::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 8px;
    right: 8px;
    height: 4px;
    background: linear-gradient(135deg, var(--brand-main), var(--brand-secondary));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-section .item.active::after {
    transform: scaleX(1);
}

.category-section .item:hover::after {
    transform: scaleX(1);
}


.category-section .op-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    width: 100px;
    cursor: pointer;
}

.category-section .op-col .more {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    height: 60px;
    color: #555555;
}

/* 小于1024px, ipad、pc */
@media (max-width: 1024px) {

    .category-section .cate-block {
        padding: 1rem 0;
    }
}




/*
    material
*/
.material-section {
    padding: 3rem 0;
}

.material-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(3, 1fr);
}

.material-card {
    display: flex;
    flex-direction: column;
    background: white;
}

.material-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.material-image {
    aspect-ratio: 1/1;
    background: #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.material-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px 0;
}

.material-title {
    flex-grow: 1;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--brand-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.material-title a {
    text-decoration: none;
    color: var(--brand-dark);
}

.material-goodsno {
    flex-grow: 1;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--brand-gray);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.material-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 0.9rem;
}

.material-tag {
    background: var(--brand-main);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    max-width: 30%;
    height: 24px;
    display: inline-flex;
    align-items: center;
}

.material-tag span {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    box-sizing: border-box;
}

.no-content {
    font-size: 2rem;
    font-weight: 300;
    display: flex;
    justify-content: center;
    min-height: 300px;
    align-items: center;
    color: #676767;
}

/* 小于750px - 手机 */
@media (max-width: 750px) {
    .material-grid {
        grid-template-columns: 1fr;
    }
}

/* 小于1024px - ipad */
@media (min-width: 750px) and (max-width: 1023px) {
    .material-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
