/* ==========================================================================
   新闻资讯（版式参照通锐 trvip.cn）
   列表：左侧「新闻分类」+ 右侧 3 列资讯卡
   详情：正文卡 + 右侧热门资讯
   列表页复用了 product.css 的 .tr-products-page / .tr-pro-side / .tr-pro-tabs
   ========================================================================== */

.tr-news-page {
    padding: 60px 0 70px;
}

/* ---------------------------- 列表卡片 ---------------------------- */
.tr-news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.tr-ncard {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef1f5;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}

.tr-ncard:hover {
    box-shadow: 0 14px 32px rgba(16, 42, 67, .12);
    transform: translateY(-4px);
    border-color: #dbe6f3;
}

.tr-ncard-pic {
    position: relative;
    display: block;
    height: 164px;
    overflow: hidden;
    background: #eef1f5;
}

.tr-ncard-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.tr-ncard:hover .tr-ncard-pic img {
    transform: scale(1.06);
}

.tr-ncard-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    padding: 4px 12px;
    font-size: 12px;
    color: #fff;
    background: var(--tr-main);
    border-radius: 3px;
    letter-spacing: .5px;
}

.tr-ncard-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 18px;
}

.tr-ncard-date {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
}

.tr-ncard-date i {
    margin-right: 5px;
}

.tr-ncard-title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
    color: #1a1f29;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .3s ease;
}

.tr-ncard:hover .tr-ncard-title {
    color: var(--tr-main);
}

.tr-ncard-desc {
    margin: 0 0 16px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #888;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tr-ncard-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f0f3f7;
    font-size: 12.5px;
    color: #999;
}

.tr-ncard-foot .tr-ncard-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.tr-ncard-foot .tr-ncard-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tr-ncard-foot .tr-ncard-meta i {
    font-size: 12px;
    color: var(--tr-main);
}

.tr-ncard-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--tr-main);
    font-weight: 600;
    transition: gap .3s ease;
}

.tr-ncard:hover .tr-ncard-more {
    gap: 9px;
}

/* ---------------------------- 详情页 ---------------------------- */
.tr-news-detail {
    padding: 56px 0 70px;
    background: #f6f8fb;
}

.tr-news-detail-layout {
    display: flex;
    align-items: flex-start;
    gap: 34px;
}

.tr-news-detail-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #eef1f5;
}

.tr-news-detail-side {
    flex: 0 0 300px;
    width: 300px;
}

.tr-article {
    padding: 34px 36px 36px;
}

.tr-article-head {
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef1f5;
}

.tr-article-title {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.4;
    font-weight: 700;
    color: #1a1f29;
}

.tr-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    color: #999;
}

.tr-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tr-article-meta i {
    font-size: 13px;
    color: var(--tr-main);
}

.tr-article-meta a {
    color: var(--tr-main);
    text-decoration: none;
}

.tr-article-cover {
    margin: 0 0 28px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef1f5;
}

.tr-article-cover img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.tr-article-body {
    font-size: 15px;
    line-height: 1.95;
    color: #444;
    word-break: break-word;
}

.tr-article-body p {
    margin: 0 0 18px;
    text-align: justify;
}

.tr-article-body img {
    max-width: 100%;
    height: auto;
    margin: 8px 0;
}

.tr-article-body h2,
.tr-article-body h3,
.tr-article-body h4 {
    margin: 26px 0 14px;
    font-weight: 700;
    color: #222;
}

.tr-article-body h2 {
    font-size: 22px;
}

.tr-article-body h3 {
    font-size: 19px;
}

.tr-article-body h4 {
    font-size: 17px;
}

.tr-article-body blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    background: #f5f8fc;
    border-left: 4px solid var(--tr-main);
    color: #555;
}

.tr-article-body a {
    color: var(--tr-main);
}

.tr-article-body ul,
.tr-article-body ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.tr-article-body li {
    margin-bottom: 6px;
}

/* 上一篇 / 下一篇 */
.tr-article-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #eef1f5;
}

.tr-article-nav a {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    padding: 14px 18px;
    background: #f5f8fc;
    border: 1px solid #eef1f5;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all .3s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tr-article-nav a:hover {
    border-color: var(--tr-main);
    color: var(--tr-main);
}

.tr-article-nav .tr-anav-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #aaa;
}

.tr-article-nav a.next {
    text-align: right;
}

/* 右侧小部件 */
.tr-news-widget {
    margin-bottom: 22px;
    padding: 22px 20px 24px;
    background: #fff;
    border: 1px solid #eef1f5;
}

.tr-news-widget:last-child {
    margin-bottom: 0;
}

.tr-news-widget-title {
    position: relative;
    margin: 0 0 18px;
    padding-left: 14px;
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

.tr-news-widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--tr-main);
}

.tr-news-hot {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tr-news-hot li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #eef1f5;
}

.tr-news-hot li:first-child {
    padding-top: 0;
}

.tr-news-hot li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.tr-news-hot-pic {
    flex: 0 0 72px;
    width: 72px;
    height: 56px;
    overflow: hidden;
    background: #eef1f5;
}

.tr-news-hot-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.tr-news-hot li:hover .tr-news-hot-pic img {
    transform: scale(1.08);
}

.tr-news-hot-txt {
    flex: 1;
    min-width: 0;
}

.tr-news-hot-txt a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    text-decoration: none;
    transition: color .3s ease;
}

.tr-news-hot-txt a:hover {
    color: var(--tr-main);
}

.tr-news-hot-date {
    margin-top: 6px;
    font-size: 12px;
    color: #aaa;
}

.tr-news-hot-date i {
    margin-right: 4px;
}

.tr-news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tr-news-tags a {
    display: inline-block;
    padding: 6px 13px;
    font-size: 13px;
    color: #4a5568;
    background: #f0f4f9;
    border-radius: 4px;
    text-decoration: none;
    transition: all .3s ease;
}

.tr-news-tags a:hover {
    color: #fff;
    background: var(--tr-main);
}

/* ---------------------------- 响应式 ---------------------------- */
@media screen and (max-width: 1199px) {
    .tr-news-detail-side {
        flex: 0 0 260px;
        width: 260px;
    }
}

@media screen and (max-width: 992px) {
    .tr-news-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .tr-news-page {
        padding: 30px 0 40px;
    }

    .tr-news-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tr-news-detail {
        padding: 28px 0 40px;
    }

    .tr-news-detail-layout {
        display: block;
    }

    .tr-news-detail-side {
        width: 100%;
        flex: none;
        margin-top: 20px;
    }

    .tr-article {
        padding: 20px 18px 24px;
    }

    .tr-article-title {
        font-size: 21px;
    }

    .tr-article-meta {
        gap: 10px 14px;
    }

    .tr-article-nav a {
        flex: none;
        width: 100%;
        white-space: normal;
    }

    .tr-article-nav a.next {
        text-align: left;
    }
}
