/* News detail page. Database content supplies structure; this file owns design. */
:root {
    --article-ink: #24364b;
    --article-text: #465568;
    --article-muted: #748093;
    --article-line: #e3e8ee;
    --article-accent: #ef7737;
    --article-paper: #ffffff;
    --article-canvas: #f4f6f8;
}

.news-detail-page {
    background: var(--article-canvas);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.news-detail-page .article-page-hero {
    min-height: 190px;
    padding: 55px 0;
    background-position: center 38%;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.news-detail-page .article-page-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(
        90deg,
        rgba(14, 25, 45, .94) 0%,
        rgba(20, 37, 61, .82) 54%,
        rgba(20, 37, 61, .62) 100%
    );
}

.news-detail-page .article-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.news-detail-page .article-hero-inner > .pull-left,
.news-detail-page .article-hero-inner > .pull-right {
    float: none;
    width: auto;
}

.news-detail-page .article-hero-inner > .pull-right {
    min-width: 0;
    margin-left: auto;
}

.news-detail-page .article-page-hero .title-tag {
    color: rgba(255, 255, 255, .94);
    font-family: var(--regulix-font-family) !important;
    font-size: 26px;
    font-weight: 600 !important;
    line-height: 1.35;
    letter-spacing: 0;
    margin: 0;
}

.news-detail-page .article-page-hero .text {
    margin-top: 7px;
    color: rgba(255, 255, 255, .68);
    font-family: var(--regulix-font-family) !important;
    font-size: 14px;
    font-weight: 400 !important;
    line-height: 1.55;
    letter-spacing: 0;
}

.news-detail-page .article-page-hero .bread-crumb {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    float: none;
    margin: 0;
    padding-top: 0;
}

.news-detail-page .article-page-hero .bread-crumb li,
.news-detail-page .article-page-hero .bread-crumb li a {
    color: rgba(255, 255, 255, .7);
    font-family: var(--regulix-font-family) !important;
    font-size: 14px;
    font-weight: 400 !important;
    line-height: 1.5;
    letter-spacing: 0;
}

.news-detail-page .article-page-hero .bread-crumb li:last-child {
    color: rgba(255, 255, 255, .92);
    font-weight: 600 !important;
}

.news-detail-page .article-page-hero .bread-crumb li {
    position: relative;
    flex: 0 0 auto;
    float: none;
    margin-right: 14px;
    padding-right: 18px;
}

.news-detail-page .article-page-hero .bread-crumb li::before {
    top: 50%;
    right: 0;
    color: rgba(255, 255, 255, .38);
    font-size: 13px;
    line-height: 1;
    content: "›";
    transform: translateY(-50%);
}

.news-detail-page .article-page-hero .bread-crumb li:last-child {
    margin-right: 0;
    padding-right: 0;
}

.news-detail-page .article-page-hero .bread-crumb li:last-child::before {
    display: none;
}

.news-detail-page .article-page-hero .bread-crumb li a:hover,
.news-detail-page .article-page-hero .bread-crumb li a:focus-visible {
    color: #fff;
}

.news-detail-page .sidebar-page-container.style-two {
    padding: 64px 0 88px;
    background: var(--article-canvas);
}

.news-detail-page .news-and-resources .inner-box {
    margin-top: 0;
    padding: 48px 52px 52px;
    border: 1px solid rgba(24, 38, 58, .08);
    border-radius: 8px;
    background: var(--article-paper);
    box-shadow: 0 18px 45px rgba(28, 42, 61, .07);
}

.news-detail-page .news-and-resources .inner-box::before {
    display: none;
}

.news-detail-page .news-and-resources .article-header {
    display: block !important;
    margin: 0 !important;
    padding: 0 0 30px;
    border-bottom: 1px solid var(--article-line);
}

.article-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    color: var(--article-accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
}

.article-kicker span + span::before {
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 9px 3px 0;
    border-radius: 50%;
    background: #b7c0cb;
    content: "";
}

/* 新闻主标题 H1 */
.news-detail-page .news-and-resources .article-header h1 {
    width: auto;
    max-width: 100%;
    color: var(--article-ink);
    font-family: var(--regulix-font-family) !important;
    font-size: 30px;
    font-weight: 400 !important;
    line-height: 1.38;
    letter-spacing: 0;
    margin: 0 0 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--article-muted);
    font-size: 14px;
    line-height: 1.5;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
}

.article-meta span::before {
    width: 18px;
    height: 2px;
    margin-right: 9px;
    background: var(--article-accent);
    content: "";
}

.news-detail-page .news-and-resources .article-meta .post-date {
    position: static !important;
    display: inline !important;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0;
    color: var(--article-muted);
    background: transparent;
    font-family: var(--regulix-font-family) !important;
    font-size: 14px;
    font-weight: 400 !important;
    text-align: left !important;
}

.article-meta .post-date::before {
    margin-right: 13px;
    color: #c1c8d1;
    content: "/";
}

.news-detail-page .news-and-resources .inner-box .lower-content {
    padding-top: 36px;
}

/* 正文 */
.article-body {
    color: var(--article-text);
    font-family: var(--regulix-font-family) !important;
    font-size: 17px;
    font-weight: 400 !important;
    line-height: 1.95;
    overflow-wrap: anywhere;
    overflow-x: auto;
}

/* Neutralize presentation fragments left in articles created before cleanup. */
.article-body span {
    color: inherit !important;
    background: transparent !important;
    font: inherit !important;
    letter-spacing: inherit !important;
}

.article-body > :first-child {
    margin-top: 0 !important;
}

.article-body > :last-child {
    margin-bottom: 0 !important;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body dl,
.article-body blockquote,
.article-body figure,
.article-body pre,
.article-body table {
    margin: 0 0 1.5em;
}

.article-body p,
.article-body li,
.article-body dt,
.article-body dd {
    color: inherit;
    font-family: inherit !important;
    font-size: inherit;
    font-weight: 400 !important;
    line-height: inherit;
}

.article-body > p:first-child {
    margin-bottom: 2.2em;
    padding: 0 0 2.1em;
    border-bottom: 1px solid var(--article-line);
    color: #293a50;
    font-size: 18px;
    line-height: 2;
}

/*
 * Older structured articles use:
 * <p><strong>section title</strong><br>…</p>
 */
.article-body p > strong:first-child,
.article-body p > b:first-child {
    display: block;
    margin: 2.15em 0 .75em;
    padding-left: 15px;
    border-left: 3px solid var(--article-accent);
    color: #2d4056;
    font-size: 22px;
    font-weight: 400 !important;
    line-height: 1.55;
    letter-spacing: 0;
}

.article-body p > strong:first-child + br,
.article-body p > b:first-child + br {
    display: none;
}

/* 正文章节标题 */
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: #2d4056;
    font-family: var(--regulix-font-family) !important;
    font-weight: 400 !important;
    letter-spacing: 0;
    margin: 1.8em 0 .75em;
}

/* H2 */
.article-body h2 {
    padding-left: 15px;
    border-left: 3px solid var(--article-accent);
    font-size: 22px;
    line-height: 1.45;
}

/* H3 */
.article-body h3 {
    font-size: 20px;
    font-weight: 600 !important;
    line-height: 1.45;
}

/* H4 */
.article-body h4 {
    font-size: 18px;
    font-weight: 600 !important;
    line-height: 1.45;
}

.article-body h5,
.article-body h6 {
    font-size: 17px;
    line-height: 1.45;
}

.article-body ul,
.article-body ol {
    padding-left: 1.6em;
}

.article-body li {
    margin-bottom: .55em;
}

.article-body a {
    color: #d96125;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body strong,
.article-body b {
    color: var(--article-ink);
    font-weight: 400 !important;
}

.article-body blockquote {
    border: 0;
    border-left: 4px solid var(--article-accent);
    border-radius: 0 5px 5px 0;
    background: #f5f7f9;
    color: #4c5b6e;
    padding: 22px 26px;
}

.article-body img,
.article-body video {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.75em auto;
}

.article-body figure {
    text-align: center;
}

.article-body figcaption,
.article-body caption {
    color: #7a828d;
    font-size: 14px;
    line-height: 1.6;
}

.article-body hr {
    border: 0;
    border-top: 1px solid #e5e8ec;
    margin: 2em 0;
}

/* 表格 */
.article-body table {
    display: table !important;
    width: 100% !important;
    min-width: 620px;
    border-collapse: collapse !important;
    table-layout: auto;
}

.article-body table thead {
    display: table-header-group !important;
}

.article-body table tbody {
    display: table-row-group !important;
}

.article-body table tfoot {
    display: table-footer-group !important;
}

.article-body table tr {
    display: table-row !important;
}

.article-body table th,
.article-body table td {
    display: table-cell !important;
    width: auto !important;
    height: auto !important;
    border: 1px solid #dfe3e8 !important;
    padding: 10px 12px !important;
    background: #fff;
    color: #3f4651;
    font-size: 15px !important;
    line-height: 1.65 !important;
    text-align: left !important;
    vertical-align: top !important;
    white-space: normal !important;
}

.article-body table th {
    background: #f4f6f8;
    color: #263445;
    font-weight: 400 !important;
}

/* 标签 */
/* Official attribution stays outside the saved article body. */
.news-detail-page .article-source {
    margin-top: calc(32px + 1.8em);
    padding-top: 20px;
    border-top: 1px solid var(--article-line);
    color: var(--article-text);
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.news-detail-page .news-and-resources .article-source p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.news-detail-page .news-and-resources .article-source .article-source__note {
    margin-top: 10px;
}

.article-source__label {
    color: var(--article-ink);
    font-weight: 600;
}

.news-detail-page .article-source a {
    color: #b8501e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-detail-page .article-source a:hover,
.news-detail-page .article-source a:focus-visible {
    color: var(--article-ink);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 42px;
    padding-top: 26px;
    border-top: 1px solid var(--article-line);
}

.article-tags > strong {
    margin-right: 4px;
    color: var(--article-ink);
    font-size: 14px;
    font-weight: 600;
}

.article-tags .badge {
    margin: 0 !important;
    padding: 7px 11px;
    border: 1px solid #dfe5eb;
    border-radius: 3px;
    background: #f6f8fa;
    color: #5a6878;
    font-family: var(--regulix-font-family) !important;
    font-size: 13px;
    font-weight: 400;
    transition:
        color .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.article-tags .badge:hover {
    border-color: var(--article-accent);
    background: #fff7f2;
    color: #c95821;
}

/* CTA */
.article-cta {
    position: relative;
    margin-top: 46px;
    padding: 38px 40px;
    overflow: hidden;
    border-radius: 7px;
    background: linear-gradient(125deg, #17273d 0%, #263d59 100%);
    color: #fff;
}

.article-cta::after {
    position: absolute;
    right: -55px;
    bottom: -70px;
    width: 210px;
    height: 210px;
    border: 38px solid rgba(255, 255, 255, .035);
    border-radius: 50%;
    content: "";
}

.article-cta-label {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 12px;
    color: #f28a52;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
}

.article-cta h4 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    color: #fff;
    font-size: 23px;
    font-weight: 400 !important;
    line-height: 1.5;
}

.article-cta p {
    position: relative;
    z-index: 1;
    max-width: 540px;
    margin: 0 0 23px;
    color: rgba(255, 255, 255, .76);
    font-size: 15px;
    line-height: 1.75;
}

.article-cta .theme-btn {
    position: relative;
    z-index: 1;
}

/* 文章底部站内导航：保持与阅读区同宽，避免旧主题的大段空白。 */
.news-detail-page .services-page-section {
    padding: 50px 0 68px;
    background: var(--article-canvas);
}

.news-detail-page .services-page-section .services-block.style-two {
    margin-bottom: 0;
}

.news-detail-page .services-page-section .services-block .inner-box {
    height: 100%;
    border: 1px solid rgba(24, 38, 58, .08);
    border-bottom: 1px solid rgba(24, 38, 58, .08);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(28, 42, 61, .055);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-detail-page .services-page-section .services-block .inner-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 17px 34px rgba(28, 42, 61, .1);
}

.news-detail-page .services-page-section .services-block .image {
    overflow: hidden;
}

.news-detail-page .services-page-section .services-block .image img {
    aspect-ratio: 1.72 / 1;
    object-fit: cover;
    transition: transform .35s ease;
}

.news-detail-page .services-page-section .services-block .inner-box:hover .image img {
    transform: scale(1.025);
}

.news-detail-page .services-page-section .services-block .lower-content {
    min-height: 170px;
    padding: 47px 26px 22px;
}

.news-detail-page .services-page-section .services-block .lower-content .category {
    top: -27px;
    right: 22px;
    left: 22px;
    padding: 16px 12px;
    color: var(--article-ink);
    font-family: var(--regulix-font-family) !important;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 5px 16px rgba(28, 42, 61, .08);
}

.news-detail-page .services-page-section .services-block .lower-content .text {
    min-height: 52px;
    margin-bottom: 13px;
    color: var(--article-muted);
    font-family: var(--regulix-font-family) !important;
    font-size: 14px;
    line-height: 1.75;
}

.news-detail-page .services-page-section .services-block .lower-content .read-more {
    padding-right: 20px;
    color: var(--article-ink);
    font-family: var(--regulix-font-family) !important;
    font-size: 13px;
    font-weight: 600;
}

.news-detail-page .services-page-section .services-block .lower-content .read-more:hover {
    color: var(--article-accent);
}

/* Sidebar */
.news-detail-page .sidebar-page-container.style-two .sidebar-side {
    padding-top: 0;
}

.news-detail-page .sidebar {
    position: sticky !important;
    top: 24px;
}

.article-sidebar-card {
    margin-bottom: 0;
    padding: 31px 30px 26px;
    border: 1px solid rgba(24, 38, 58, .09);
    border-top: 3px solid var(--article-accent);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(28, 42, 61, .055);
}

.sidebar-eyebrow {
    margin-bottom: 9px;
    color: var(--article-accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
}

.news-detail-page .article-sidebar-card .sidebar-title {
    margin-bottom: 18px;
}

.news-detail-page .article-sidebar-card .sidebar-title-text {
    padding-left: 0;
    color: #2d4056;
    font-family: var(--regulix-font-family) !important;
    font-size: 19px;
    font-weight: 400 !important;
    line-height: 1.5;
    letter-spacing: .005em;
}

.news-detail-page .article-sidebar-card .sidebar-title-text::before {
    display: none;
}

.news-detail-page .article-sidebar-card .widget-content {
    padding: 0;
    border: 0;
}

.news-detail-page .article-sidebar-card .news-cat {
    counter-reset: latest-news;
}

.news-detail-page .article-sidebar-card .news-cat li {
    counter-increment: latest-news;
    margin: 0;
    padding: 16px 0 16px 35px;
    border-top: 1px solid var(--article-line);
}

.news-detail-page .article-sidebar-card .news-cat li::before {
    position: absolute;
    top: 17px;
    left: 0;
    color: #a2acb8;
    font-size: 12px;
    font-weight: 600;
    content: "0" counter(latest-news);
}

.news-detail-page .article-sidebar-card .news-cat li a {
    display: block;
    color: #425166;
    font-family: var(--regulix-font-family) !important;
    font-size: 15px;
    line-height: 1.65;
}

.news-detail-page .article-sidebar-card .news-cat li a::before {
    display: none;
}

.news-detail-page .article-sidebar-card .news-cat li a:hover {
    padding-left: 0;
    color: var(--article-accent);
}

.sidebar-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    color: var(--article-ink);
    font-size: 13px;
    font-weight: 600;
}

.sidebar-more span {
    color: var(--article-accent);
    font-size: 18px;
    transition: transform .2s ease;
}

.sidebar-more:hover {
    color: var(--article-accent);
}

.sidebar-more:hover span {
    transform: translateX(3px);
}

/*
 * The legacy theme caps every page at 1200px. News detail pages benefit from
 * a wider editorial grid on desktop: a readable article column plus a stable
 * 360px sidebar, while retaining comfortable viewport gutters.
 */
@media only screen and (min-width: 1200px) {
    .news-detail-page .article-page-hero > .auto-container,
    .news-detail-page .sidebar-page-container > .auto-container {
        width: calc(100% - 64px);
        max-width: 1460px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .news-detail-page .sidebar-page-container > .auto-container > .row {
        display: grid;
        grid-template-columns: minmax(0, 1000px) 360px;
        justify-content: space-between;
        column-gap: 40px;
        margin-right: 0;
        margin-left: 0;
    }

    .news-detail-page .sidebar-page-container .content-side,
    .news-detail-page .sidebar-page-container .sidebar-side {
        width: auto;
        max-width: none;
        padding-right: 0;
        padding-left: 0;
    }

    .news-detail-page .services-page-section > .auto-container {
        width: calc(100% - 64px);
        max-width: 1460px;
        padding-right: 16px;
        padding-left: 16px;
    }
}

/* Tablet */
@media only screen and (max-width: 1023px) {
    .news-detail-page .sidebar-page-container.style-two {
        padding: 48px 0 68px;
    }

    .news-detail-page .sidebar-page-container .auto-container {
        overflow: visible !important;
    }

    .news-detail-page .sidebar-page-container .row {
        margin-right: -15px !important;
        margin-left: -15px !important;
    }

    .news-detail-page .sidebar-page-container .content-side,
    .news-detail-page .sidebar-page-container .sidebar-side {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }

    .news-detail-page .sidebar-page-container .sidebar-side {
        margin-top: 30px !important;
    }

    .news-detail-page .sidebar {
        position: relative !important;
        top: 0;
    }
}

/* Mobile */
@media only screen and (max-width: 767px) {
    .news-detail-page .article-page-hero {
        min-height: 0;
        padding: 38px 0 40px;
    }

    .news-detail-page .article-hero-inner {
        display: block !important;
    }

    .news-detail-page .article-page-hero .title-tag {
        font-size: 22px;
        line-height: 1.4;
    }

    .news-detail-page .article-page-hero .text {
        margin-top: 5px;
        font-size: 13px;
        line-height: 1.55;
    }

    .news-detail-page .article-page-hero .bread-crumb {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: 11px;
    }

    .news-detail-page .article-page-hero .bread-crumb li {
        margin-right: 10px;
        padding-right: 14px;
    }

    .news-detail-page .article-page-hero .bread-crumb li,
    .news-detail-page .article-page-hero .bread-crumb li a {
        font-size: 13px;
    }

    .news-detail-page .sidebar-page-container.style-two {
        padding: 24px 0 54px;
    }

    .news-detail-page .news-and-resources .inner-box {
        padding: 29px 22px 32px;
        border-radius: 5px;
        box-shadow: 0 10px 30px rgba(28, 42, 61, .055);
    }

    .news-detail-page .news-and-resources .article-header {
        padding-bottom: 23px;
    }

    .article-kicker {
        margin-bottom: 11px;
        font-size: 11px;
    }

    /* 移动端新闻主标题 H1 */
    .news-detail-page .news-and-resources .article-header h1 {
        margin-bottom: 15px;
        font-size: 26px;
        font-weight: 400 !important;
        line-height: 1.38;
        letter-spacing: 0;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 6px 10px;
        font-size: 12px;
    }

    .news-detail-page .news-and-resources .article-meta .post-date {
        font-size: 12px;
    }

    .news-detail-page .news-and-resources .inner-box .lower-content {
        padding-top: 25px;
    }

    /* 移动端正文 */
    .article-body {
        font-size: 16px;
        line-height: 1.9;
    }

    .article-body > p:first-child {
        margin-bottom: 1.9em;
        padding-bottom: 1.8em;
        font-size: 16px;
        line-height: 1.95;
    }

    /* 旧文章中的模拟章节标题 */
    .article-body p > strong:first-child,
    .article-body p > b:first-child {
        margin-top: 1.9em;
        padding-left: 12px;
        font-size: 19px;
        line-height: 1.55;
    }

    /* 移动端 H2 */
    .article-body h2 {
        font-size: 20px;
        line-height: 1.45;
    }

    /* 移动端 H3 */
    .article-body h3 {
        font-size: 18px;
        line-height: 1.45;
    }

    /* 移动端 H4 */
    .article-body h4 {
        font-size: 17px;
        line-height: 1.45;
    }

    .article-body h5,
    .article-body h6 {
        font-size: 16px;
        line-height: 1.45;
    }

    .article-tags {
        margin-top: 32px;
        padding-top: 22px;
    }

    .article-cta {
        margin-top: 36px;
        padding: 30px 24px;
    }

    .article-cta h4 {
        font-size: 20px;
    }

    .article-sidebar-card {
        padding: 27px 24px 23px;
    }

    .news-detail-page .services-page-section {
        padding: 38px 0 52px;
    }

    .news-detail-page .services-page-section .services-block.style-two {
        margin-bottom: 24px;
    }

    .news-detail-page .services-page-section .services-block:last-child {
        margin-bottom: 0;
    }

    .news-detail-page .services-page-section .services-block .lower-content {
        min-height: 0;
        padding: 44px 21px 20px;
    }

    .news-detail-page .services-page-section .services-block .lower-content .category {
        right: 18px;
        left: 18px;
        padding: 14px 10px;
        font-size: 18px;
    }

    .news-detail-page .services-page-section .services-block .lower-content .text {
        min-height: 0;
        margin-bottom: 10px;
        font-size: 13px;
    }
}
