/* =========================================================
   宏邦智能 · 新闻文章详情页
   依赖站点现有 main.css / inner-pages.css，全部使用 hb-nd 前缀
   ========================================================= */

.hb-nd,
.hb-nd * {
    box-sizing: border-box;
}

.hb-nd {
    --hb-nd-blue: #075bd8;
    --hb-nd-blue-dark: #0346ad;
    --hb-nd-ink: #263142;
    --hb-nd-muted: #6b7687;
    --hb-nd-line: #dfe7f0;
    --hb-nd-soft: #eff3f9;
    --hb-nd-white: #fff;
    position: relative;
    overflow: clip;
    width: 100%;
    max-width: 100%;
    color: var(--hb-nd-ink);
    background: #fff;
    white-space: normal;
}

.hb-nd a {
    color: inherit;
    text-decoration: none;
}

.hb-nd img {
    max-width: 100%;
}

.hb-nd__progress {
    position: fixed;
    z-index: 1200;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    pointer-events: none;
    background: rgba(7, 91, 216, 0.08);
}

.hb-nd__progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #075bd8, #18a1ea);
    box-shadow: 0 0 12px rgba(7, 91, 216, 0.4);
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

.hb-nd__header {
    position: relative;
    padding: 30px 0 30px;
    margin-bottom: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 18%, rgba(7, 91, 216, 0.09), transparent 25%),
        linear-gradient(180deg, #fff 0%, #f7faff 100%);
}

.hb-nd__header::before,
.hb-nd__header::after {
    position: absolute;
    pointer-events: none;
    content: "";
}

.hb-nd__header::before {
    top: -170px;
    right: -130px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(7, 91, 216, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 54px rgba(7, 91, 216, 0.025),
        0 0 0 108px rgba(7, 91, 216, 0.018);
}

.hb-nd__header::after {
    right: 5%;
    bottom: 16px;
    width: min(38vw, 540px);
    height: 86px;
    opacity: 0.55;
    background: repeating-linear-gradient(
        165deg,
        transparent 0 10px,
        rgba(7, 91, 216, 0.065) 10px 11px
    );
    mask-image: linear-gradient(90deg, transparent, #000 30%, transparent);
}

.hb-nd__header-inner {
    position: relative;
    z-index: 1;
    width: min(1040px, calc(100% - 48px));
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
}

.hb-nd__category {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid rgba(7, 91, 216, 0.18);
    border-radius: 999px;
    color: var(--hb-nd-blue);
    background: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.hb-nd__title {
    max-width: 980px;
    margin: 22px 0 20px;
    color: #202b39;
    font-size: clamp(36px, 4.4vw, 36px);
    font-weight: 700;
    line-height: 1.26;
    letter-spacing: -0.035em;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.hb-nd__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    align-items: center;
    color: var(--hb-nd-muted);
    font-size: 14px;
}

.hb-nd__meta span,
.hb-nd__meta time {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.hb-nd__meta svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--hb-nd-blue);
    stroke-width: 1.8;
}

.hb-nd__summary {
    max-width: 900px;
    margin: 30px 0 0;
    padding: 20px 24px;
    border-left: 3px solid var(--hb-nd-blue);
    color: #536174;
    background: rgba(255, 255, 255, 0.76);
    font-size: 17px;
    line-height: 1.9;
    white-space: normal;
    overflow-wrap: anywhere;
}

.hb-nd__summary:empty {
    display: none;
}

.hb-nd__cover-wrap {
    position: relative;
    z-index: 2;
    width: min(1440px, calc(100% - 80px));
    min-width: 0;
    max-width: 100%;
    margin: 0 auto -70px;
}

.hb-nd__cover {
    position: relative;
    aspect-ratio: 16 / 7.7;
    margin: 0;
    overflow: hidden;
    border: 8px solid #fff;
    border-radius: 16px;
    background: var(--hb-nd-soft);
    box-shadow: 0 28px 70px rgba(25, 54, 91, 0.16);
}

.hb-nd__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hb-nd__cover figcaption {
    position: absolute;
    right: 22px;
    bottom: 18px;
    max-width: calc(100% - 44px);
    padding: 7px 12px;
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(4, 31, 66, 0.68);
    font-size: 12px;
    backdrop-filter: blur(8px);
}

.hb-nd__main {
    padding: 100px 0 0px;
    background:
        radial-gradient(circle at 0 18%, rgba(7, 91, 216, 0.04), transparent 22%),
        #f5f8fc;
}

.hb-nd__layout {
    display: grid;
    width: min(1440px, calc(100% - 80px));
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1100px) minmax(250px, 340px);
    gap: 48px;
    align-items: start;
}

.hb-nd__article {
    min-width: 0;
    padding: clamp(38px, 5vw, 38px);
    border: 1px solid rgba(214, 224, 236, 0.88);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(25, 54, 91, 0.07);
}

.hb-nd__article-content {
    color: #3b4858;
    font-size: 17px;
    line-height: 2;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.hb-nd__article-content > :first-child {
    margin-top: 0 !important;
}

.hb-nd__article-content > :last-child {
    margin-bottom: 0 !important;
}

.hb-nd__article-content p {
    margin: 0 0 1.45em;
}

.hb-nd__article-content h2,
.hb-nd__article-content h3,
.hb-nd__article-content h4 {
    scroll-margin-top: 120px;
    color: #202b39;
    font-weight: 700;
    line-height: 1.45;
}

.hb-nd__article-content h2 {
    position: relative;
    margin: 2.1em 0 0.9em;
    padding-left: 18px;
    font-size: clamp(25px, 2.5vw, 31px);
}

.hb-nd__article-content h2::before {
    position: absolute;
    top: 0.22em;
    bottom: 0.18em;
    left: 0;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--hb-nd-blue), #38a8e8);
    content: "";
}

.hb-nd__article-content h3 {
    margin: 1.8em 0 0.75em;
    font-size: 22px;
}

.hb-nd__article-content h4 {
    margin: 1.6em 0 0.65em;
    font-size: 19px;
}

.hb-nd__article-content strong {
    color: #1d2c3e;
}

.hb-nd__article-content a {
    color: var(--hb-nd-blue);
    border-bottom: 1px solid rgba(7, 91, 216, 0.3);
}

.hb-nd__article-content a:hover {
    border-color: var(--hb-nd-blue);
}

.hb-nd__article-content ul,
.hb-nd__article-content ol {
    margin: 1.2em 0 1.6em;
    padding-left: 1.55em;
}

.hb-nd__article-content li {
    margin: 0.45em 0;
    padding-left: 0.25em;
}

.hb-nd__article-content li::marker {
    color: var(--hb-nd-blue);
    font-weight: 700;
}

.hb-nd__article-content blockquote {
    position: relative;
    margin: 2em 0;
    padding: 25px 28px 25px 32px;
    border: 0;
    border-radius: 9px;
    color: #425268;
    background: linear-gradient(135deg, #eef5ff, #f7faff);
    font-size: 17px;
    line-height: 1.9;
}

.hb-nd__article-content blockquote::before {
    position: absolute;
    top: 25px;
    bottom: 25px;
    left: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--hb-nd-blue);
    content: "";
}

.hb-nd__article-content blockquote > :last-child {
    margin-bottom: 0;
}

/*.hb-nd__article-content img {*/
/*    display: block;*/
/*    width: auto;*/
/*    height: auto;*/
/*    margin: 2em auto;*/
/*    border-radius: 10px;*/
/*    box-shadow: 0 16px 42px rgba(20, 46, 78, 0.1);*/
/*}*/

.hb-nd__article-content figure {
    margin: 2em 0;
}

.hb-nd__article-content figure img {
    margin: 0 auto;
}

.hb-nd__article-content figcaption {
    margin-top: 12px;
    color: #7b8797;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.hb-nd__article-content hr {
    height: 1px;
    margin: 2.5em 0;
    border: 0;
    background: var(--hb-nd-line);
}

.hb-nd__table-scroll {
    width: 100%;
    margin: 2em 0;
    overflow-x: auto;
    border: 1px solid var(--hb-nd-line);
    border-radius: 9px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.hb-nd__article-content table {
    width: 100% !important;
    min-width: 620px;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse;
    color: #465466;
    font-size: 15px;
}

.hb-nd__article-content table.hb-nd__table--compact {
    min-width: 100%;
}

.hb-nd__article-content th,
.hb-nd__article-content td {
    min-width: 110px;
    padding: 14px 16px !important;
    border: 1px solid #e5ebf2 !important;
    background: #fff;
    line-height: 1.7;
    text-align: left;
    vertical-align: middle;
}

.hb-nd__article-content th {
    color: #253449;
    background: #edf4fe;
    font-weight: 700;
}

.hb-nd__article-content iframe,
.hb-nd__article-content video {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 2em auto;
    border: 0;
    border-radius: 10px;
    background: #0d1d31;
    aspect-ratio: 16 / 9;
}

.hb-nd__article-content pre {
    margin: 2em 0;
    padding: 22px;
    overflow: auto;
    border-radius: 8px;
    color: #dce8f6;
    background: #10243f;
    font-size: 14px;
    line-height: 1.75;
}

.hb-nd__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    align-items: center;
    justify-content: space-between;
    margin-top: 54px;
    padding-top: 28px;
    border-top: 1px solid var(--hb-nd-line);
}

.hb-nd__tags,
.hb-nd__share {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.hb-nd__tags-label,
.hb-nd__share-label {
    margin-right: 4px;
    color: var(--hb-nd-muted);
    font-size: 13px;
}

.hb-nd__tag {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid var(--hb-nd-line);
    border-radius: 999px;
    color: #526074;
    background: #f8fafc;
    font-size: 13px;
}

.hb-nd__tag:hover {
    color: var(--hb-nd-blue);
    border-color: rgba(7, 91, 216, 0.35);
}

.hb-nd__share-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid var(--hb-nd-line);
    border-radius: 6px;
    color: #4e5d70;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    transition: 0.25s ease;
}

.hb-nd__share-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.hb-nd__share-button:hover,
.hb-nd__share-button:focus-visible {
    color: #fff;
    border-color: var(--hb-nd-blue);
    outline: none;
    background: var(--hb-nd-blue);
}

.hb-nd__share-status {
    width: 100%;
    min-height: 20px;
    margin: 0;
    color: #188457;
    font-size: 13px;
    text-align: right;
}

.hb-nd__aside {
    position: sticky;
    top: 116px;
    display: grid;
    gap: 20px;
}

.hb-nd__side-card {
    padding: 26px;
    border: 1px solid rgba(214, 224, 236, 0.9);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(25, 54, 91, 0.055);
}

.hb-nd__side-title {
    display: flex;
    gap: 11px;
    align-items: center;
    margin: 0 0 18px;
    color: #253247;
    font-size: 18px;
    line-height: 1.4;
}

.hb-nd__side-title::before {
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: var(--hb-nd-blue);
    content: "";
}

.hb-nd__toc-list {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hb-nd__toc-list:empty::after {
    color: var(--hb-nd-muted);
    font-size: 14px;
    content: "正文暂无分级标题";
}

.hb-nd__toc-link {
    position: relative;
    display: block;
    padding: 8px 0 8px 15px;
    color: #637084;
    font-size: 14px;
    line-height: 1.6;
    transition: 0.2s ease;
}

.hb-nd__toc-link::before {
    position: absolute;
    top: 15px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c8d4e3;
    content: "";
}

.hb-nd__toc-link--level-3 {
    padding-left: 27px;
    font-size: 13px;
}

.hb-nd__toc-link--level-3::before {
    left: 12px;
}

.hb-nd__toc-link:hover,
.hb-nd__toc-link.is-active {
    color: var(--hb-nd-blue);
}

.hb-nd__toc-link.is-active::before {
    background: var(--hb-nd-blue);
    box-shadow: 0 0 0 4px rgba(7, 91, 216, 0.1);
}

.hb-nd__contact {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #075bd8 0%, #0649ad 100%);
}

.hb-nd__contact::after {
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.04);
    content: "";
}

.hb-nd__contact > * {
    position: relative;
    z-index: 1;
}

.hb-nd__contact small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.hb-nd__contact h3 {
    margin: 10px 0 12px;
    color: #fff;
    font-size: 21px;
    line-height: 1.45;
}

.hb-nd__contact p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.75;
}

.hb-nd__contact-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--hb-nd-blue) !important;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
}

.hb-nd__pager {
    display: grid;
    width: min(1440px, calc(100% - 80px));
    margin: 40px auto 40px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hb-nd__pager-link {
    position: relative;
    min-width: 0;
    padding: 24px 26px;
    border: 1px solid var(--hb-nd-line);
    border-radius: 10px;
    background: #fff;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hb-nd__pager-link--next {
    text-align: right;
}

.hb-nd__pager-link:hover {
    border-color: rgba(7, 91, 216, 0.34);
    box-shadow: 0 14px 36px rgba(25, 54, 91, 0.08);
    transform: translateY(-3px);
}

.hb-nd__pager-label {
    display: block;
    margin-bottom: 6px;
    color: var(--hb-nd-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hb-nd__pager-title {
    display: block;
    overflow: hidden;
    color: #2c394b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.65;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hb-nd__related {
    padding: 92px 0 104px;
    background: #fff;
}

.hb-nd--no-cover .hb-nd__main {
    padding-top: 96px;
}

.hb-nd__related-inner {
    width: min(1440px, calc(100% - 80px));
    margin: 0 auto;
}

.hb-nd__related-head {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
}

.hb-nd__eyebrow {
    display: inline-flex;
    gap: 11px;
    align-items: center;
    color: var(--hb-nd-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.hb-nd__eyebrow::before {
    width: 28px;
    height: 2px;
    background: currentColor;
    content: "";
}

.hb-nd__related-head h2 {
    margin: 10px 0 0;
    color: #202b39;
    font-size: clamp(30px, 3.3vw, 43px);
    line-height: 1.25;
}

.hb-nd__more {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--hb-nd-blue) !important;
    font-size: 15px;
    font-weight: 700;
}

.hb-nd__more svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.hb-nd__related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.hb-nd__related-card:nth-child(n + 4) {
    display: none;
}

.hb-nd__related-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--hb-nd-line);
    border-radius: 10px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hb-nd__related-card:hover {
    box-shadow: 0 18px 45px rgba(25, 54, 91, 0.1);
    transform: translateY(-6px);
}

.hb-nd__related-media {
    aspect-ratio: 16 / 9.8;
    overflow: hidden;
    background: var(--hb-nd-soft);
}

.hb-nd__related-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hb-nd__related-card:hover img {
    transform: scale(1.055);
}

.hb-nd__related-body {
    padding: 23px 24px 25px;
}

.hb-nd__related-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    color: var(--hb-nd-muted);
    font-size: 12px;
}

.hb-nd__related-meta span {
    color: var(--hb-nd-blue);
    font-weight: 700;
}

.hb-nd__related-card h3 {
    display: -webkit-box;
    margin: 10px 0 0;
    overflow: hidden;
    color: #263344;
    font-size: 19px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 1100px) {
    .hb-nd__layout {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 30px;
    }

    .hb-nd__article {
        padding: 44px;
    }
}

@media (max-width: 991px) {
    .hb-nd__header {
        padding: 72px 0 54px;
    }

    .hb-nd__cover-wrap,
    .hb-nd__layout,
    .hb-nd__pager,
    .hb-nd__related-inner {
        width: min(calc(100% - 36px), 1280px);
    }

    .hb-nd__cover-wrap {
        margin-bottom: -50px;
    }

    .hb-nd__main {
        padding-top: 112px;
    }

    .hb-nd--no-cover .hb-nd__main {
        padding-top: 78px;
    }

    .hb-nd__layout {
        grid-template-columns: 1fr;
    }

    .hb-nd__aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hb-nd__related-card:nth-child(3) {
        display: none;
    }
}

@media (max-width: 680px) {
    .hb-nd,
    .hb-nd__header,
    .hb-nd__main,
    .hb-nd__related {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .hb-nd__header {
        padding: 56px 0 42px;
    }

    .hb-nd__header-inner {
        width: calc(100% - 28px);
        min-width: 0;
        max-width: calc(100% - 28px);
    }

    .hb-nd__title {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-top: 18px;
        font-size: clamp(30px, 9.3vw, 42px);
        letter-spacing: -0.02em;
        white-space: normal !important;
        word-break: break-all;
        overflow-wrap: anywhere;
    }

    .hb-nd__meta {
        gap: 8px 16px;
        font-size: 13px;
    }

    .hb-nd__summary {
        margin-top: 24px;
        padding: 17px 18px;
        font-size: 15px;
    }

    .hb-nd__cover-wrap,
    .hb-nd__layout,
    .hb-nd__pager,
    .hb-nd__related-inner {
        width: calc(100% - 28px);
        min-width: 0;
        max-width: calc(100% - 28px);
        margin-right: auto;
        margin-left: auto;
    }

    .hb-nd__cover {
        aspect-ratio: 4 / 2.65;
        border-width: 5px;
        border-radius: 11px;
    }

    .hb-nd__cover figcaption {
        display: none;
    }

    .hb-nd__main {
        padding: 92px 0 68px;
    }

    .hb-nd--no-cover .hb-nd__main {
        padding-top: 64px;
    }

    .hb-nd__article {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 30px 22px;
        overflow: hidden;
        border-radius: 10px;
    }

    .hb-nd__article-content {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        font-size: 16px;
        line-height: 1.95;
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .hb-nd__article-content h2 {
        padding-left: 15px;
        font-size: 24px;
    }

    .hb-nd__article-content h3 {
        font-size: 20px;
    }

    .hb-nd__article-content blockquote {
        padding: 21px 20px 21px 25px;
        font-size: 15px;
    }

    .hb-nd__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hb-nd__share-status {
        text-align: left;
    }

    .hb-nd__aside {
        grid-template-columns: 1fr;
    }

    .hb-nd__pager {
        grid-template-columns: 1fr;
    }

    .hb-nd__pager-link--next {
        text-align: left;
    }

    .hb-nd__related {
        padding: 68px 0 76px;
    }

    .hb-nd__related-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hb-nd__related-grid {
        grid-template-columns: 1fr;
    }

    .hb-nd__related-card:nth-child(3) {
        display: block;
    }
}

@media print {
    .hb-nd__progress,
    .hb-nd__aside,
    .hb-nd__share,
    .hb-nd__pager,
    .hb-nd__related {
        display: none !important;
    }

    .hb-nd__main {
        padding: 30px 0;
        background: #fff;
    }

    .hb-nd__layout {
        display: block;
        width: 100%;
    }

    .hb-nd__article {
        padding: 0;
        border: 0;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hb-nd *,
    .hb-nd *::before,
    .hb-nd *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
