.news-detail {
    --nd-red: #ff3b3f;
    --nd-text: #252525;
    --nd-muted: #808080;
    --nd-line: #e8e8e8;
    --nd-canvas: #f4f4f4;
    min-height: 70vh;
    padding-top: 76px;
    overflow-x: clip;
    background: var(--nd-canvas);
    color: var(--nd-text);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

.news-detail * {
    box-sizing: border-box;
}

.news-detail__container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.news-detail__masthead {
    padding: 8px 0 6px;
    background: var(--nd-canvas);
}

.news-detail__breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 30px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    color: #858585;
    font-size: 13px;
    white-space: nowrap;
}

.news-detail__breadcrumb a {
    overflow: hidden;
    color: #666;
    text-decoration: none;
    text-overflow: ellipsis;
}

.news-detail__breadcrumb a:hover {
    color: var(--nd-red);
}

.news-detail__breadcrumb i {
    color: #b7b7b7;
    font-size: 10px;
}

.news-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 860px) 300px;
    gap: 20px;
    align-items: stretch;
    padding: 8px 0 56px;
}

.news-detail__main {
    display: grid;
    align-content: start;
    gap: 20px;
    min-width: 0;
}

.news-detail__article-card,
.news-detail__related,
.news-detail__panel {
    background: #fff;
}

.news-detail__article-card {
    min-width: 0;
    padding: 22px 20px 0;
}

.news-detail__header {
    padding: 0 0 22px;
    border-bottom: 1px solid #f0f0f0;
}

.news-detail__header h1 {
    margin: 0 0 20px;
    color: #202020;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: wrap;
}

.news-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    color: var(--nd-muted);
    font-size: 13px;
    line-height: 1.6;
}

.news-detail__meta a {
    color: inherit;
    text-decoration: none;
}

.news-detail__meta a:hover {
    color: var(--nd-red);
}

.news-detail__meta > * + *::before {
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 11px 3px 0;
    border-radius: 50%;
    background: #b5b5b5;
    content: "";
}

.news-detail__richtext {
    padding: 24px 0 8px;
    color: #303030;
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-detail__richtext p {
    margin: 0 0 13px;
}

.news-detail__richtext h2,
.news-detail__richtext h3,
.news-detail__richtext h4 {
    margin: 30px 0 16px;
    color: #202020;
    font-weight: 600;
    line-height: 1.55;
}

.news-detail__richtext h2 {
    font-size: 23px;
}

.news-detail__richtext h3 {
    font-size: 20px;
}

.news-detail__richtext h4 {
    font-size: 18px;
}

.news-detail__richtext img,
.news-detail__richtext video,
.news-detail__richtext iframe {
    max-width: 100%;
    height: auto;
}

.news-detail__richtext img {
    display: block;
    margin: 20px auto;
    object-fit: contain;
}

.news-detail__richtext figure {
    max-width: 100%;
    margin: 24px 0;
}

.news-detail__richtext figcaption {
    margin-top: 8px;
    color: #929292;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.news-detail__richtext blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--nd-red);
    background: #f7f7f7;
    color: #666;
}

.news-detail__richtext ul,
.news-detail__richtext ol {
    margin: 0 0 20px;
    padding-left: 2em;
}

.news-detail__richtext table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.news-detail__richtext a {
    color: #d92f33;
    text-underline-offset: 3px;
}

.news-detail__notice {
    min-width: 0;
    max-width: 100%;
    margin: 24px 0 0;
    padding: 16px;
    border: 1px solid #dedede;
    background: #fafafa;
    color: #858585;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: normal;
}

.news-detail__notice p {
    margin: 0;
}

.news-detail__notice p + p {
    margin-top: 6px;
}

.news-detail__notice strong {
    font-weight: 700;
}

.news-detail__notice a {
    color: inherit;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.news-detail__notice a:hover,
.news-detail__notice a:focus-visible {
    color: #666;
    text-decoration: underline;
}

.news-detail__actions-slot {
    height: 60px;
    margin: 22px -20px 0;
}

.news-detail__actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 60px;
    min-height: 60px;
    padding: 0 20px;
    border-top: 1px solid #ededed;
    background: #fff;
}

.news-detail__actions.is-docked {
    position: fixed;
    z-index: 80;
    bottom: 0;
    left: var(--news-actions-left, 0);
    width: var(--news-actions-width, 100%);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, .07);
}

.news-detail__share-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-detail__share-button,
.news-detail__share-icon {
    border: 0;
    background: transparent;
    color: #888;
    font: inherit;
    cursor: pointer;
}

.news-detail__share-button {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    min-height: 34px;
    padding: 0 8px 0 0;
    font-size: 13px;
}

.news-detail__share-button--poster {
    color: #b65a5d;
}

.news-detail__share-button i {
    font-size: 15px;
}

.news-detail__share-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}

.news-detail__share-button:hover,
.news-detail__share-icon:hover,
.news-detail__share-icon:focus-visible {
    color: #555;
}

.news-detail__share-button--poster:hover,
.news-detail__share-button--poster:focus-visible {
    color: #9f4448;
}

.news-detail__share-icon--wechat:hover,
.news-detail__share-icon--wechat:focus-visible {
    color: #707070;
}

.news-detail__share-item {
    position: relative;
}

.news-detail__qr-popover {
    position: absolute;
    z-index: 30;
    bottom: calc(100% + 10px);
    left: 50%;
    width: 172px;
    padding: 14px;
    border: 1px solid #e2e2e2;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity .18s ease, transform .18s ease;
}

.news-detail__share-item:hover .news-detail__qr-popover,
.news-detail__share-item:focus-within .news-detail__qr-popover,
.news-detail__share-item.is-open .news-detail__qr-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.news-detail__qr-popover [data-news-detail-qr] {
    width: 142px;
    height: 142px;
    margin: 0 auto;
}

.news-detail__qr-popover canvas,
.news-detail__qr-popover img {
    display: block;
    width: 142px;
    height: 142px;
}

.news-detail__qr-popover p {
    margin: 9px 0 0;
    color: #777;
    font-size: 12px;
    text-align: center;
}

.news-detail__adjacent {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 0;
}

.news-detail__adjacent-card {
    position: relative;
    display: block;
    min-height: 82px;
    overflow: hidden;
    background: #555;
    color: #fff;
    text-decoration: none;
}

.news-detail__adjacent-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

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

.news-detail__adjacent-shade {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, .56);
}

.news-detail__adjacent-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 82px;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 14px;
}

.news-detail__adjacent-content strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    text-overflow: ellipsis;
    text-wrap: wrap;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-detail__adjacent-content small {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
}

.news-detail__adjacent-card.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9e9e9;
    color: #999;
    font-size: 13px;
}

.news-detail__related {
    padding: 20px 22px 24px;
}

.news-detail__section-title {
    margin-bottom: 14px;
    padding-left: 10px;
    border-left: 3px solid var(--nd-red);
}

.news-detail__section-title h2 {
    margin: 0;
    color: #303030;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.news-detail__related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
}

.news-detail__related-grid a {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    min-height: 63px;
    border-bottom: 1px solid #ececec;
    color: #444;
    text-decoration: none;
}

.news-detail__related-grid i {
    color: #d1d1d1;
    font-size: 9px;
}

.news-detail__related-grid strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    text-overflow: ellipsis;
    text-wrap: wrap;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-detail__related-grid a:hover strong {
    color: var(--nd-red);
}

.news-detail__sidebar {
    min-width: 0;
    align-self: stretch;
}

.news-detail__sidebar-inner {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 20px;
}

.news-detail__panel {
    padding: 18px 15px 10px;
}

.news-detail__sidebar-list {
    display: grid;
}

.news-detail__sidebar-list a {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 82px;
    padding: 10px 0;
    border-top: 1px solid #eeeeee;
    color: inherit;
    text-decoration: none;
}

.news-detail__sidebar-list a:first-child {
    border-top: 0;
}

.news-detail__sidebar-list img,
.news-detail__sidebar-placeholder {
    display: flex;
    width: 100px;
    height: 64px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eeeeee;
    color: #aaa;
}

.news-detail__sidebar-list img {
    object-fit: cover;
}

.news-detail__sidebar-copy {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.news-detail__sidebar-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #3d3d3d;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-overflow: ellipsis;
    text-wrap: wrap;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-detail__sidebar-copy small {
    color: #9a9a9a;
    font-size: 11px;
}

.news-detail__sidebar-list a:hover strong {
    color: var(--nd-red);
}

.news-detail__empty {
    margin: 12px 0;
    color: var(--nd-muted);
    font-size: 13px;
}

.news-detail__poster-dialog {
    width: min(420px, calc(100% - 28px));
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: auto;
    border: 0;
    background: transparent;
}

.news-detail__poster-dialog::backdrop {
    background: rgba(0, 0, 0, .64);
}

.news-detail__poster-dialog-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 28px;
    background: transparent;
}

.news-detail__poster-dialog canvas {
    display: block;
    width: min(100%, 375px);
    height: auto;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .22);
}

.news-detail__poster-actions {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    overflow: hidden;
    border: 1px solid #eeeeee;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .14);
}

.news-detail__poster-actions button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 0 17px;
    border: 0;
    background: #fff;
    color: #666;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.news-detail__poster-actions button:hover,
.news-detail__poster-actions button:focus-visible {
    color: #333;
}

.news-detail__poster-actions > span {
    width: 1px;
    height: 18px;
    background: #dddddd;
}

.news-detail__poster-qr-source {
    position: fixed;
    left: -10000px;
    width: 220px;
    height: 220px;
    overflow: hidden;
}

.news-detail__toast {
    position: fixed;
    z-index: 120;
    bottom: 32px;
    left: 50%;
    padding: 10px 16px;
    border-radius: 3px;
    background: rgba(22, 22, 22, .92);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 18px);
    transition: opacity .2s ease, transform .2s ease;
}

.news-detail__toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 980px) {
    .news-detail__layout {
        grid-template-columns: minmax(0, 1fr);
    }

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

@media (max-width: 640px) {
    .news-detail {
        padding-top: 50px;
    }

    .news-detail__container {
        width: min(100% - 24px, 1200px);
    }

    .news-detail__masthead {
        padding: 7px 0 5px;
    }

    .news-detail__breadcrumb {
        min-height: 28px;
        padding: 0;
        font-size: 12px;
    }

    .news-detail__layout,
    .news-detail__main,
    .news-detail__sidebar-inner {
        gap: 14px;
    }

    .news-detail__layout {
        padding-top: 7px;
        padding-bottom: 34px;
    }

    .news-detail__article-card {
        padding: 18px 16px 0;
    }

    .news-detail__header {
        padding-bottom: 18px;
    }

    .news-detail__header h1 {
        margin-bottom: 14px;
        font-size: 22px;
        line-height: 1.4;
    }

    .news-detail__meta {
        gap: 5px 9px;
        font-size: 12px;
    }

    .news-detail__meta > * + *::before {
        margin-right: 7px;
    }

    .news-detail__richtext {
        padding-top: 20px;
        font-size: 16px;
        line-height: 1.78;
    }

    .news-detail__richtext p {
        margin-bottom: 12px;
    }

    .news-detail__notice {
        margin-top: 18px;
        padding: 13px;
    }

    .news-detail__actions-slot {
        height: 58px;
        margin-right: -16px;
        margin-left: -16px;
    }

    .news-detail__actions {
        height: 58px;
        min-height: 58px;
        padding: 0 16px;
    }

    .news-detail__share-actions {
        flex-wrap: wrap;
    }

    .news-detail__qr-popover {
        left: 0;
        transform: translate(0, 8px);
    }

    .news-detail__share-item:hover .news-detail__qr-popover,
    .news-detail__share-item:focus-within .news-detail__qr-popover,
    .news-detail__share-item.is-open .news-detail__qr-popover {
        transform: translate(0, 0);
    }

    .news-detail__adjacent {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0;
    }

    .news-detail__adjacent-card,
    .news-detail__adjacent-content {
        min-height: 82px;
    }

    .news-detail__related {
        padding: 18px 16px 20px;
    }

    .news-detail__related-grid {
        grid-template-columns: 1fr;
    }

    .news-detail__sidebar-inner {
        grid-template-columns: 1fr;
    }

    .news-detail__panel {
        padding: 17px 14px 8px;
    }

    .news-detail__toast {
        bottom: 18px;
        max-width: calc(100% - 28px);
        white-space: nowrap;
    }
}
