.twt-news-container-padding{
    padding: 0 30px;
    margin-top: 120px;
}
/*总排版容器*/
.twt-news-container{
    max-width: 800px;
    margin: 0 auto 0;
    display: flex;
    justify-content: space-between;
    align-content: flex-start;
    gap: 24px;
    min-width: 0; /* ✅ 关键点：允许所有子项收缩 */
}
.twt-article-content img{
    max-width: 100%;
    height: auto;
}
/*总排版容器*/

/*新闻详情*/
.twt-article-detail {
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: #333;
    min-width: 100%;
}
.twt-article-title {
    font-size: 52px;
    font-weight: bold;
    text-align: center;
    color: #222222;
    margin-top: 60px;
}
.twt-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    font-size: 14px;
    color: #818999;
    margin-top: 32px;
    justify-content: center;
}
/*分割线*/
.twt-article-line{
    flex: 1;
    height: 1px;
    background-color: #ECEEF5;
    margin-top: 48px;
}

.twt-article-content{
    word-break: break-word;
    overflow-wrap: break-word;
    margin-top: 48px;
}
.twt-article-content > p {
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 15px;
}
.twt-article-content > h2 {
    font-size: 16px;
    margin: 24px 0 12px;
    font-weight: bold;
}

/*分割线*/
.twt-article-nav-line{
    flex: 1;
    height: 1px;
    background-color: #ECEEF5;
    margin-top: 97px;
    margin-bottom: 32px;

}

/* 维持默认桌面端样式 */
.twt-article-nav {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin: 80px 0 0 0;
    font-size: 14px;
    color: #333;
}

.twt-article-prev,
.twt-article-next {
    display: flex;
    align-items: center;
    flex: 0 1 auto;             /* ✅ 允许按比例缩放 */
    gap: 8px;
    min-width: 0;            /* ✅ 子项允许被压缩 */
    color: #666;
    max-width: 48%;
    text-decoration: none;
    transition: color 0.2s;
}
.disabled{
    opacity: 0.7;
    cursor: not-allowed;
}
.twt-article-prev-img,
.twt-article-next-img {
    width: 48px;
    flex-shrink: 0;
}
.twt-article-prev-img{
    margin-right: 16px;
}
.twt-article-next-img {
    margin-left: 16px;
}

.twt-article-prev-text,
.twt-article-next-text {
    flex: 0 1 auto;             /* ✅ 让它填满剩余空间并允许收缩 */
    min-width: 0;            /* ✅ 必须，配合 flex 才能省略 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
}
.twt-article-next-text{
    text-align: right;
}
/*新闻详情*/

/*新闻推荐*/
.twt-related-reading {
    border: 1px solid #ECEEF5;
    padding: 24px;
    border-radius: 32px;
    margin-top: 80px;
}
.twt-related-title {
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 12px;
    text-align: center;
}
.twt-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 32px 0 0 0;
}
.twt-related-item {
    flex: 1 1 calc(50% - 12px);
    font-size: 16px;
    color: #222222;
}
.twt-related-item > a {
    width: 100%;
    text-decoration: none;
    color: #222222;
    display: -webkit-box;              /* ✅ 关键：必须是 -webkit-box */
    -webkit-line-clamp: 1;            /* 限制最多 1 行 */
    -webkit-box-orient: vertical;     /* 垂直排列 */
    overflow: hidden;                 /* 超出隐藏 */
    text-overflow: ellipsis;         /* 省略号 */

    word-break: break-word;
    overflow-wrap: break-word;
    transition: color 0.2s;
    font-size: 16px;
    line-height: 1.5;
}
.twt-related-item > a:hover {
    color: #1677ff;
}
/*新闻推荐*/





/*响应式*/
@media (1440px <= width) {

}
@media (1208px <= width <= 1439px) {
    /* 样式 for 大屏 */
}

@media (990px <= width <= 1207px) {
    /* 样式 for 中等屏 */
}

@media (750px <= width <= 989px) {
    /* 样式 for 平板 */
}

@media (520px <= width <= 749px) {
    /* 样式 for 小屏 */
    .twt-article-title{
        font-size: 38px;
    }
    .twt-article-nav {
        gap: 24px;
    }
    .twt-article-prev,
    .twt-article-next{
        flex-direction: column;
        align-items: flex-end;
        text-align: left;
    }
    .twt-article-prev{
        align-items: flex-start;
    }
    .twt-article-prev-img,
    .twt-article-next-img {
        width: 24px;
        margin: 0 0 8px 0;
    }
    .twt-article-next {
        flex-direction: column-reverse !important;
    }
    .twt-article-prev-text,
    .twt-article-next-text {
        flex: 1;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;              /* 最多两行 */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5;
        font-size: 14px;
    }
    .twt-article-detail{
        padding:0 0;
    }
}

@media (width <= 519px) {
    /* 样式 for 超小屏（手机） */
    .twt-news-container-padding{
        padding: 0 16px;
    }
    .twt-article-title{
        font-size: 28px;
    }
    .twt-article-nav {
        gap: 24px;
    }
    .twt-article-prev,
    .twt-article-next{
        flex-direction: column;
        align-items: flex-end;
        text-align: left;
    }
    .twt-article-prev{
        align-items: flex-start;
    }
    .twt-article-prev-img,
    .twt-article-next-img {
        width: 24px;
        margin: 0 0 8px 0;
    }
    .twt-article-next {
        flex-direction: column-reverse !important;
    }
    .twt-article-prev-text,
    .twt-article-next-text {
        flex: 1;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;              /* 最多两行 */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5;
        font-size: 14px;
    }
    .twt-article-detail{
        padding:0 0;
    }
}
