
.twt-main-news-box {
    margin: 93px auto 120px;
    max-width: 1440px;
    width: calc(100% - 96px);
}

/* 资讯banner */
.twt-main-news-box-banner {
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #E0F2FE;
    padding: 158px 30px;
}

.twt-main-news-box-banner-img {
    vertical-align: middle;
}
.twt-main-news-box-banner-h1{
    position: absolute;
    font-weight: 500;
    font-size: 52px;
    color: #000000;
    margin: 0 0;
    padding: 0 40px;
    text-align: center;
}

/* 资讯banner End */

/* 资讯分类 */
.twt-main-news-box-flex {
    display: flex;
    overflow-y: hidden;
    margin: 60px auto 0;
    gap: 8px;
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
    -ms-overflow-style: none; /* IE 和 Edge 隐藏滚动条 */
    border-radius: 32px 32px 32px 32px;
    border: 1px solid #ECEEF5;
    padding: 8px;
    max-width: calc(100vw - 114px);
    width: fit-content;
}

/* 针对 WebKit 浏览器（如 Chrome、Safari）隐藏滚动条 */
.twt-main-news-box-flex::-webkit-scrollbar {
    display: none; /* 隐藏滚动条 */
}

.twt-main-news-box-flex-title {
    color: #222222;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 58px;
    white-space: nowrap; /* 禁止文本换行 */
    overflow: hidden; /* 隐藏超出容器的内容 */
    flex-shrink: 0; /* 禁止子元素收缩 */
    cursor: pointer;
}

.twt-active {
    color: #ffffff;
    background-color: #222222;
}

/* 资讯分类 End */

/* 资讯列表 */
.twt-main-news-box-news-list {
    display: grid;
    /* 一行三个，平均宽度 */
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.twt-main-news-box-news-list-box {
    border: 1px solid #ECEEF5;
    border-radius: 32px;
    padding: 24px 24px 40px 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s ease;
    cursor: pointer;
}
.twt-main-news-box-news-list-box:hover{
    transform: translateY(-10px);
    box-shadow: 0 4px 12px 0 rgba(0,0,0,0.05);
}
.twt-main-news-box-news-list-box-height{
    height: 185px;
}
.twt-main-news-box-news-list-box-title {
    font-weight: 500;
    font-size: 28px;
    color: #000000;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 24px;
}

.twt-main-news-box-news-list-box-desc {
    font-weight: 400;
    font-size: 14px;
    color: #818999;
    text-align: left;
    margin-top: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.twt-main-news-box-news-list-box-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 42px;
}

.twt-main-news-box-news-list-box-flex-left {
    width: 198px;
    height: 116px;
    object-fit: cover;
    border-radius: 10px;
}

.twt-main-news-box-news-list-box-flex-right {
    font-weight: 400;
    font-size: 14px;
    color: #818999;
    text-align: right;
}

/* 资讯列表 End */


/* 分页器 */
.twt-pagination-flex {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.twt-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 100%;
    font-size: 14px;
    margin: 0 auto 0 auto;
}

.twt-pagination-list {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.twt-pagination-item {
    padding: 7px 12px;
    text-align: center;
    border: 1px solid #ECEEF5;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.pagination-item-prev {
    padding: 7px 10px;
    text-align: center;
    border: 1px solid #ECEEF5;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-item-next {
    padding: 7px 10px;
    text-align: center;
    border: 1px solid #ECEEF5;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.twt-pagination-item--active {
    background-color: #1677ff !important;
    color: #fff;
    border-color: transparent;
    cursor: default;
}

.twt-pagination-item:hover {
    background-color: #f2f2f2;
}

.twt-pagination-item--ellipsis {
    pointer-events: none;
    background: none;
    border: none;
    color: #222222;
    width: 18px;
    height: 32px;
    line-height: 48px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    font-weight: bold;
}

.twt-pagination-item-left {
    width: 12px;
    height: 12px;
}

.twt-pagination-item-right {
    width: 12px;
    height: 12px;
}

.twt-pagination-operations {
    display: flex;
    align-items: center;
    gap: 8px;
}

/*.twt-pagination-size-select {*/
/*    padding: 7px 12px;*/
/*    border: 1px solid #ECEEF5;*/
/*    border-radius: 6px;*/
/*    background-color: #fff;*/
/*    appearance: none;*/
/*    cursor: pointer;*/
/*}*/

.twt-pagination-total {
    color: #222222;
    white-space: nowrap;
}

.twt-pagination-size-select {
    appearance: none; /* 去除原生箭头 */
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 7px 26px 7px 12px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ECEEF5;
    border-radius: 8px;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;

    cursor: pointer;
    transition: border 0.3s ease;
}

.twt-pagination-size-select:focus {
    outline: none;
    border-color: #222;
}

/* 分页器 End */


/* 暂无数据 */
.twt-news-type-list-empty{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin:117px 0 0;
    height: 20vh;
}
.twt-news-type-list-empty-img{
    width: 120px;
}
.twt-news-type-list-empty-text{
    font-size: 12px;
    color: #818999;
    margin-top: 4px;
}
/* 暂无数据 End */

/* loading */
.bottom-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

/* 禁用态可选 */
.bottom-loading.twt-disabled {
    display: none;
}

/* 加载动画小圆圈 */
.spinner {
    width: 32px;
    height: 32px;
    border: 4px solid #ccc;
    border-top: 4px solid #007bff; /* 你可以改成主色调 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 动画关键帧 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* loading End */


/*响应式*/
@media (1440px <= width) {
    .twt-main-news-box-flex{
        max-width: 1200px;
    }
}

@media (1208px <= width <= 1439px) {
    /* 样式 for 大屏 */
    .twt-main-news-box-news-list {
        /* 一行二个，平均宽度 */
        grid-template-columns: repeat(2, 1fr);
    }
    .twt-main-news-box-flex{
        max-width: calc(100vw - 128px);
    }
}

@media (990px <= width <= 1207px) {
    /* 样式 for 中等屏 */
    .twt-main-news-box-news-list {
        /* 一行二个，平均宽度 */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (750px <= width <= 989px) {
    /* 样式 for 平板 */
    .twt-main-news-box-news-list {
        /* 一行二个，平均宽度 */
        grid-template-columns: repeat(2, 1fr);
    }
    .twt-main-news-box-news-list-box-flex-left{
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    .twt-main-news-box-news-list-box-flex-right{
        display: none;
    }
    .twt-main-news-box-news-list-box-flex{
        margin-top: 16px;
    }
    .twt-main-news-box-news-list-box-height{
        height: auto;
    }
    .twt-main-news-box{
        margin-bottom: 64px;
        margin-top: 97px;
    }
    .twt-pagination-flex{
        display: none;
    }
    .twt-main-news-box-banner{
        display: none;
    }
    .twt-main-news-box {
        width: calc(100% - 68px);
    }
    .twt-main-news-box-flex {
        max-width: calc(100vw - 86px);
    }
}

@media (520px <= width <= 749px) {
    /* 样式 for 小屏 */
    .twt-main-news-box-news-list {
        /* 一行一个，平均宽度 */
        grid-template-columns: repeat(1, 1fr);
    }
    .twt-main-news-box-news-list-box-flex-left{
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    .twt-main-news-box-news-list-box-flex-right{
        display: none;
    }
    .twt-main-news-box-news-list-box-flex{
        margin-top: 16px;
    }
    .twt-main-news-box-news-list-box-height{
        height: auto;
    }
    .twt-main-news-box{
        width: calc(100% - 64px);
        margin-bottom: 64px;
        margin-top: 97px;
    }
    .twt-pagination-flex{
        display: none;
    }
    .twt-main-news-box-banner{
        display: none;
    }

    .twt-main-news-box-flex {
        max-width: calc(100vw - 86px);
    }
}

@media (width <= 519px) {
    /* 样式 for 超小屏（手机） */
    .twt-main-news-box-news-list {
        /* 一行一个，平均宽度 */
        grid-template-columns: repeat(1, 1fr);
        margin-top: 24px;
    }
    .twt-main-news-box-news-list-box-flex-left{
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    .twt-main-news-box-news-list-box-flex-right{
        display: none;
    }
    .twt-main-news-box-news-list-box-flex{
        margin-top: 16px;
    }
    .twt-main-news-box-news-list-box-height{
        height: auto;
    }
    .twt-main-news-box{
        width: calc(100% - 32px);
        margin-bottom: 64px;
        margin-top: 97px;
    }
    .twt-pagination-flex{
        display: none;
    }
    .twt-main-news-box-banner{
        display: none;
    }
    .twt-main-news-box-flex {
        max-width: calc(100vw - 50px);
    }
}