/* 产品资讯样式 */
.news-page,
.news-detail-page {
    min-height: 580px;

}

.news-page {
    padding: 32px 0 76px;
    background: #f7f9fc;
}

.news-page__container {
    max-width: 1200px;
}

.news-detail-page__container {
    max-width: 1120px;
}

.news-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
}

.news-empty {
    display: flex;
    min-height: 280px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 10px;
}

.news-empty h2 {
    margin: 0;
    color: var(--site-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.news-empty p {
    margin: 0;
    color: var(--site-text-secondary);
    font-size: 14px;
    line-height: 1.75;
}

.news-empty__link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 16px;
    color: var(--site-primary);
    font-size: 14px;
    border-radius: 6px;
    background: var(--site-primary-soft);
}

.news-empty__link:hover {
    color: var(--site-primary);
    text-decoration: underline;
}

.news-empty__link:focus-visible {
    outline: 2px solid var(--site-primary);
    outline-offset: 3px;
}

.news-card {
    overflow: hidden;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(33, 55, 85, .035);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.news-card:hover {
    box-shadow: 0 12px 26px rgba(33, 86, 150, .10);
    transform: translateY(-2px);
}

.news-card__link {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    color: inherit;
    transition: background-color .2s ease;
}

.news-card__link:hover {
    color: inherit;
    background: #fbfdff;
}

.news-card__cover {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    background: #edf2f8;
}

.news-card__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.news-card:hover .news-card__cover img {
    transform: scale(1.035);
}

.news-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--site-text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.news-card__body h2,
.news-card__body p,
.news-sidebar__latest span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-card__body h2 {
    margin: 0;
    color: var(--site-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.55;
}

.news-card__body p {
    margin: 10px 0 0;
    color: var(--site-text-secondary);
    font-size: 14px;
    line-height: 1.75;
}

.news-card__more {
    margin-top: auto;
    padding-top: 12px;
    color: var(--site-primary);
    font-size: 13px;
    line-height: 1.4;
}

.news-card__more .layui-icon {
    margin-left: 3px;
    font-size: 12px;
}

.news-list .page {
    display: flex;
    justify-content: center;
    padding: 12px 20px 14px;
}

.news-list .pagination {
    margin: 0;
}

.news-list .pagination > li > a,
.news-list .pagination > li > span {
    min-width: 32px;
    margin: 0 3px;
    padding: 6px 10px;
    color: var(--site-text-secondary);
    border: 1px solid var(--site-border);
    border-radius: 5px;
}

.news-list .pagination > .active > a,
.news-list .pagination > .active > span,
.news-list .pagination > li > a:hover {
    color: #fff;
    border-color: var(--site-primary);
    background: var(--site-primary);
}

.news-sidebar {
    display: grid;
    gap: 24px;
}

.news-sidebar__latest,
.news-sidebar__categories {
    padding: 24px 22px;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 12px;
}

.news-sidebar h2,
.news-sidebar__category-details > summary {
    margin: 0;
    color: var(--site-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.news-sidebar__category-details > summary {
    cursor: pointer;
    list-style: none;
    touch-action: manipulation;
}

.news-sidebar__category-details > summary::-webkit-details-marker {
    display: none;
}

.news-sidebar__categories nav {
    margin-top: 12px;
}

.news-sidebar__categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 0 10px;
    color: var(--site-text-secondary);
    font-size: 13px;
    line-height: 1.4;
    border-radius: 6px;
    transition: color var(--site-transition), background-color var(--site-transition);
}

.news-sidebar__categories a:hover {
    color: var(--site-primary);
    background: var(--site-primary-soft);
}

.news-sidebar__categories a.is-active {
    color: var(--site-primary);
    background: transparent;
}

.news-sidebar__categories a span {
    font-weight: 500;
}

.news-sidebar__categories a em {
    color: var(--site-text-muted);
    font-size: 12px;
    font-style: normal;
}

.news-sidebar__latest ul {
    margin: 14px 0 0;
    padding: 0;
}

.news-sidebar__latest li {
    list-style: none;
}

.news-sidebar__latest li + li {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--site-border);
}

.news-sidebar__latest a {
    display: block;
}

.news-sidebar__latest time {
    display: block;
    margin-bottom: 5px;
    color: var(--site-text-muted);
    font-size: 11px;
    line-height: 1.3;
}

.news-sidebar__latest span {
    color: var(--site-text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.news-detail-page {
    padding: 34px 0 76px;
    background: #fff;
}

.news-article {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 0 68px;
    background: transparent;
}

.news-article__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--site-text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.news-card__meta span,
.news-sidebar__categories a.is-active em,
.news-sidebar__latest a:hover span,
.news-article__back:hover {
    color: var(--site-primary);
}

.news-article__header {
    margin-top: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--site-border);
}

.news-article__header h1 {
    margin: 0;
    color: var(--site-text);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.4;
}

.news-article__header time {
    display: block;
    margin-top: 16px;
    color: var(--site-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.news-article__content {
    margin-top: 30px;
    color: #404854;
    font-size: 16px;
    line-height: 1.85;
    word-break: break-word;
}

.news-article__content h1,
.news-article__content h2,
.news-article__content h3,
.news-article__content h4,
.news-article__content h5,
.news-article__content h6 {
    margin: 2em 0 .75em;
    padding: 0 !important;
    color: var(--site-text);
    font-weight: 600;
    line-height: 1.5;
    font-family: inherit !important;
    border: 0 !important;
    border-image: none !important;
}

.news-article__content h2 {
    font-size: 21px !important;
}

.news-article__content h3 {
    font-size: 18px !important;
}

.news-article__content p,
.news-article__content table td,
.news-article__content table th {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.news-article__content p {
    margin: 0 0 1.2em;
}

.news-article__content ul,
.news-article__content ol {
    margin: 1.1em 0;
    padding-left: 1.6em;
}

.news-article__content ul li {
    list-style: disc;
}

.news-article__content ol li {
    list-style: decimal;
}

.news-article__content li + li {
    margin-top: .55em;
}

.news-article__content a {
    color: var(--site-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-article__content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: 6px;
}

.news-article__content table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    margin: 1.5em 0;
    border: 0 !important;
    border-collapse: collapse !important;
    color: var(--site-text-secondary) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    font-family: inherit !important;
}

.news-article__content table td,
.news-article__content table th {
    min-width: 0 !important;
    padding: 10px 14px !important;

    border: 1px solid var(--site-border) !important;
}

.news-article__content table tr:first-child td,
.news-article__content table tr:first-child th {
    color: var(--site-text) !important;
    font-weight: 600 !important;
    background: #f5f8fc !important;
}

@media (max-width: 1100px) {
    .news-page__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .news-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}
@media (max-width: 767px) {
    .news-page {
        padding: 24px 0 48px;
    }

    .news-card__link {
        grid-template-columns: 106px minmax(0, 1fr);
        gap: 15px;
        padding: 14px;
    }

    .news-card__cover {
        height: 106px;
    }

    .news-card__body h2 {
        font-size: 16px;
    }

    .news-card__body p {
        display: none;
    }

    .news-card__meta {
        gap: 7px;
        margin-bottom: 7px;
        font-size: 11px;
    }

    .news-card__more {
        padding-top: 8px;
    }

    .news-sidebar {
        order: -1;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .news-sidebar__categories {
        overflow: hidden;
        padding: 0 0 8px;
    }

    .news-sidebar__category-details > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        padding: 0 16px;
        font-size: 17px;
        border-bottom: 1px solid transparent;
    }

    .news-sidebar__category-details > summary::after {
        content: "+";
        color: var(--site-text-muted);
        font-size: 22px;
        font-weight: 400;
        line-height: 1;
    }

    .news-sidebar__category-details[open] > summary {
        border-bottom-color: var(--site-border);
    }

    .news-sidebar__category-details[open] > summary::after {
        content: "−";
    }

    .news-sidebar__categories nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin-top: 4px;
    }

    .news-sidebar__categories a {
        min-width: 0;
        min-height: 44px;
        padding: 8px 16px;
        border: 0;
    }

    .news-sidebar__latest {
        display: none;
    }

    .news-list .page {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 22px 14px;
    }

    .news-list .pagination {
        display: flex;
        flex-wrap: nowrap;
    }

    .news-detail-page {
        padding: 22px 0 46px;
    }

    .news-article {
        padding: 0 20px 42px;
    }

    .news-article__header {
        margin-top: 20px;
        padding-bottom: 20px;
    }

    .news-article__header h1 {
        font-size: 25px;
        line-height: 1.45;
    }

    .news-article__content {
        margin-top: 24px;
        font-size: 15px;

    }

}
