/* index.components.homenews — extracted from inline <style> for HTML validity. Linked from homenews.blade.php. */
.mobile_tabs_news {
    display: none;
    position: relative;
    justify-content: center;
    align-items: center;
    height: 48px;
    margin: 40px 0 20px;
}

.mobile_tabs_news .tab-item {
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    height: 36px;
    white-space: nowrap;
    border-radius: 999px;
    border: 2px solid #ccc;
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease,
        z-index 0s 0.35s;
    cursor: pointer;
    position: relative;
    background-color: #e8e8e8;
    transform: scale(0.92) translateY(0);
    z-index: 1;
    margin-left: -60px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    justify-content: flex-start;
    color: rgba(47, 51, 62, 0.6);
}

.mobile_tabs_news .tab-item span {
    display: none;
}

.mobile_tabs_news .tab-item:hover {
    border-color: #ffaa00;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile_tabs_news .tab-item:first-child {
    margin-left: 0;
}

.mobile_tabs_news .tab-item:not(.active):last-child {
    margin-right: 0;
}

.mobile_tabs_news .tab-item.active~.tab-item {
    justify-content: flex-end;
}

.mobile_tabs_news .tab-item.active {
    background-color: #ffaa00;
    color: #2F333E;
    transform: scale(1) translateY(-3px);
    justify-content: space-between;
    z-index: 10;
    border: 2px solid #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    font-weight: bold;
    font-size: 24px;
    height: 48px;
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease,
        z-index 0s 0s;
}

.mobile_tabs_news .tab-item.active span {
    display: inline-flex;
}

.mobile_tabs_news .tab_iconx {
    font-size: 32px;
}

.mobile_tabs_news .tab-item {
    display: none;
}

@media (max-width:768px) {
    .mobile_tabs_news {
        display: flex;
    }

    .mobile_tabs_news .tab-item {
        font-size: 14px;
        padding: 3px 12px;
        height: 32px;
        white-space: nowrap;
        display: flex;
        width: fit-content;
        margin-left: -40px;
        align-items: center;
        justify-content: flex-start;
    }

    .mobile_tabs_news .tab-item.active {
        background-color: #ffaa00;
        transform: scale(1) translateY(-2px);
        padding: 0px 12px;
        z-index: 10;
        width: fit-content;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #2F333E;
        height: 42px;
    }

    .mobile_tabs_news .tab_iconx {
        font-size: 24px;
    }
}

.show_news {
    display: block !important;
}

.hidden_news {
    display: none;
}

.news_title_tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}

.more_news a {
    font-weight: 500;
    font-size: 14px;
    color: #FFFFFF;
    padding: 4px 6px;
    background: #2F333E;
    border-radius: 2px 2px 2px 2px;
}


.news_title_tab .title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

/* News Tab 独立样式 */
.news_title_tab .tab-group {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    height: 48px;
}

.news_title_tab .tab-item {
    align-items: center;
    gap: 12px;
    padding: 5px 12px;
    min-width: 100px;
    width: fit-content;
    white-space: nowrap;
    height: 36px;
    border-radius: 999px;
    border: 2px solid #ccc;
    cursor: pointer;
    position: relative;
    background-color: #e8e8e8;
    transform: scale(0.92) translateY(0);
    z-index: 1;
    margin-left: -40px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    justify-content: flex-start;
    color: rgba(47, 51, 62, 0.6);
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease,
        z-index 0s 0.35s;
}

.news_title_tab .tab-item span {
    display: none;
}

.news_title_tab .tab-item.active~.tab-item {
    justify-content: flex-end;
}

.news_title_tab .tab-item:hover {
    border-color: #ffaa00;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news_title_tab .tab-item:first-child {
    margin-left: 0;
}

.news_title_tab .tab-item:not(.active):last-child {
    margin-right: 0;
}

.news_title_tab .tab-item.active {
    background-color: #ffaa00;
    color: #2F333E;
    transform: scale(1) translateY(-3px);
    z-index: 10;
    border: 2px solid #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    font-weight: bold;
    font-size: 24px;
    font-family: "default_bold";
    justify-content: space-between;
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease,
        z-index 0s 0s;
    height: 48px;
}

.news_title_tab .tab-item.active span {
    display: inline-flex;
}

.news_title_tab .tab_iconx {
    font-size: 20px;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
}

@media (max-width:768px) {
    .news_title_tab .tab-item.active {
        height: 42px;
    }

    .news_title_tab .tab-item.active {
        height: 42px;
    }

    .news-container {
        padding: 0 10px;
    }
}

.news-card-link {
    display: block;
    height: 100%;
}

/* dot  点 */
.news-swiper-pagination {
    display: none;
}

.news-card {
    background: #fff;
    overflow: hidden;
    padding-bottom: 16px;
    position: relative;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-link:hover .news-card {
    border-color: var(--primary-color);
}

.news-card-link:hover .news-card__img {
    transform: scale(1.05);
}

.news-card-link:hover .news-card__title {
    color: var(--primary-color);
}

.news-card__img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    aspect-ratio: 16/9;
    display: block;
    transition: transform 0.25s ease;
    background: radial-gradient(circle, #727171 0%, #3a3a3a 100%);
    flex-shrink: 0;
}

.news-card__title {

    width: 100%;
    padding: 16px 16px 0;
    transition: color 0.25s ease;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(18px * 3 + 32px);
    font-size: 14px;
    color: #333333;
    margin: 0 0 8px;
    line-height: 18px;

}



.news-card__desc {
    font-size: 14px;
    color: #666;
    padding: 0 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-weight: 400;
    font-size: 12px;
    color: rgba(51, 51, 51, 0.7);
    line-height: 16px;
}

.news-card__desc img,
.news-card__desc table,
.news-card__desc iframe,
.news-card__desc video {
    max-width: 100%;
}

.create_time {
    font-size: 12px;
    padding: 0 16px;
    margin-top: auto;
    padding-top: 8px;
    font-weight: 400;
    font-size: 12px;
    color: rgba(51, 51, 51, 0.7);

}


@media not all and (max-width:768px) {
    .news-list .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        grid-template-rows: auto;
        gap: 24px;
    }

    .news-list .swiper-slide {
        width: auto;
        height: auto;
    }
}

@media (max-width:1200px) {
    .news-list .swiper-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.m_more_news {
    display: none;
}

.m_more_news .tab-item.active {
    padding: 0px 10px;
}

@media (max-width:768px) {
    .m_more_news {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 26px;
    }

    .m_more_news .tab-item {
        padding: 0px 16px;
    }

    .m_more_news a {
        font-weight: 500;
        font-size: 12px;
        color: #FFFFFF;
        padding: 4px 4px;
        background: #2F333E;
        border-radius: 2px 2px 2px 2px;
    }

    .m_more_news a {
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 500;
        font-size: 12px;
        color: #FFFFFF;

    }

    .youtube_wrapper {
        padding-top: 0px !important;
    }


    .news_title_tab {
        display: none;
    }

    .news-card__title {
        padding-bottom: 0;
        /* 移动端下 padding 只剩顶部 16px，硬上限同步收紧 */
        max-height: calc(18px * 3 + 16px);
    }

    .news-card {
        padding-bottom: 0px;
    }

    .news-card__img {
        height: 186px;
    }

    .news-card__desc {
        display: none;
    }


    .news-list.swiper-container {
        background-color: #fff;
        padding: 16px 0;
    }

    .news-list .swiper-slide {
        height: auto;
        box-sizing: border-box;
        padding: 0 12px;
    }

    .news-list .news-card__title {
        width: auto;
    }

    .news-swiper-pagination {
        display: block;
        text-align: center;
        line-height: 1;
    }

    .news-swiper-pagination .swiper-pagination-bullet {
        width: 7px;
        height: 7px;
        margin: 0 4px;
        background: #2F333E;
        opacity: 0.5;
        transform: none;
        transition: width 0.25s ease, background-color 0.25s ease;
    }

    .news-swiper-pagination .swiper-pagination-bullet-active {
        border-radius: 4px;
        background: #000;
        transform: none;
    }
}
