/*
    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;
    }
}




/*
    news
*/
.news-section {
    padding: 3rem 0;
}

.news-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    aspect-ratio: 1.2 / 1;
    background: var(--brand-light-gray);
    border: 1px solid transparent;
    border-radius: 16px;
    transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease;
}

.news-card:hover {
    border-color: var(--brand-gray);
    transform: translateY(-4px);
}

.news-card__link {
    min-height: 100%;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(22px, 1.65vw, 24px);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 20px;
    color: #6e7377;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.news-category {
    display: inline-flex;
    align-items: center;
    max-width: 60%;
    padding: 3px 9px;
    background: var(--brand-main);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.2;
}

.news-category span {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-time {
    flex-shrink: 0;
}

.news-title {
    display: -webkit-box;
    overflow: hidden;
    margin: clamp(18px, 1.7vw, 22px) 0 0;
    color: var(--brand-dark);
    font-size: clamp(18px, 1.35vw, 19px);
    font-weight: 600;
    line-height: 1.34;
    overflow-wrap: anywhere;
    word-break: normal;
    word-break: auto-phrase;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    transition: color 180ms ease;
}

.news-intro {
    display: -webkit-box;
    overflow: hidden;
    margin: auto 0 0;
    padding-top: 18px;
    color: #6e7377;
    font-size: 13px;
    line-height: 1.62;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: auto;
    margin-left: auto;
    background: #ffffff;
    border-radius: 50%;
    color: var(--brand-dark);
    font-size: 14px;
    transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms ease;
}

.news-intro + .news-arrow {
    margin-top: 16px;
}

@media (hover: hover) {
    .news-card:hover .news-title {
        color: var(--brand-main);
    }

    .news-card:hover .news-arrow {
        color: var(--brand-main);
        transform: translate(2px, -2px);
    }
}

.no-content {
    font-size: 2rem;
    font-weight: 300;
    display: flex;
    justify-content: center;
    min-height: 300px;
    align-items: center;
    color: #676767;
}

@media (max-width: 1023px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-card {
        aspect-ratio: 1.2 / 1;
    }

    .news-title {
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 750px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        aspect-ratio: auto;
        min-height: 330px;
    }

    .news-intro {
        -webkit-line-clamp: 3;
    }
}
