.news-detail {
    margin: 35px auto 0;
}

.news-detail-header {
    margin-bottom: 22px;
}

.news-detail-header h1 {
    color: #1e293b;
    font-size: 44px;
    line-height: 1.25;
}

.news-detail-header .news-meta {
    margin-top: 15px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.share-button {
    padding: 5px 8px;
    background: transparent;
    color: var(--main-highlight-color);
    box-shadow: none;
}

.share-button i.fa-solid {
    color: currentColor;
}

.share-button:hover {
    transform: none;
    background: #fff7ed;
    box-shadow: none;
}

.news-detail-body {
    overflow: hidden;
    padding: 26px;
    border: 1px solid #e7ded4;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(15, 23, 42, .05);
}

.news-lead {
    margin: 0 0 20px;
    color: #334155;
    font-size: 19px;
    font-weight: 650;
    line-height: 1.7;
}

.news-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.article-content {
    margin-top: 25px;
    color: #263442;
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.article-content h2 {
    padding-top: 30px;
    color: #1e293b;
    font-size: 30px;
    line-height: 1.35;
}

.article-content h3 {
    color: #334155;
    font-size: 23px;
    line-height: 1.4;
}

.article-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px;
}

.article-content iframe,
.article-content video {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 12px;
}

.article-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.article-content a {
    text-decoration: underline;
}

.article-content blockquote {
    margin: 20px 0;
    padding: 12px 18px;
    border-left: 4px solid var(--main-highlight-color);
    background: #fff7ed;
}

#toc {
    display: grid;
    gap: 7px;
    margin: 0 0 24px;
    text-align: left;
}

#toc h3 {
    margin-bottom: 3px;
    color: #1e293b;
}

#toc a {
    font-weight: 600;
    line-height: 1.45;
}

#toc a::before {
    content: '\203A';
    margin-right: 7px;
    color: var(--main-highlight-color);
}

.share-button-bottom {
    margin-top: 20px;
    padding: 9px 12px;
    background: #fff7ed;
}

.related-news {
    margin-top: 55px;
}

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

.related-news-grid .news-card-content {
    right: 12px;
    bottom: 12px;
    left: 12px;
}

.related-news-grid .news-card-content strong {
    font-size: 17px;
}

@media (max-width: 1100px) {
    .news-list {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 800px) {
    .news-page-header {
        align-items: flex-start;
    }

    .news-detail-header h1 {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .news-page {
        padding: 20px 0 40px;
    }

    .news-page-header {
        display: block;
        margin-bottom: 22px;
    }

    .news-page-header h1 {
        font-size: 30px;
    }

    .news-sort {
        margin-top: 18px;
    }

    .news-list-card {
        grid-template-columns: 145px minmax(0, 1fr);
    }

    .news-list-image {
        min-height: 155px;
    }

    .news-list-content {
        padding: 13px;
    }

    .news-list-content h2 a {
        font-size: 18px;
    }

    .news-list-content p {
        -webkit-line-clamp: 2;
    }

    .news-detail {
        margin-top: 20px;
    }

    .news-detail-header h1 {
        font-size: 30px;
    }

    .news-detail-header .news-meta {
        gap: 7px;
    }

    .news-detail-body {
        padding: 16px;
        border-radius: 18px;
    }

    .news-lead {
        font-size: 17px;
    }

    .article-content {
        font-size: 16px;
        line-height: 1.75;
    }

    .article-content h2 {
        font-size: 25px;
    }

    .article-content h3 {
        font-size: 21px;
    }

    .related-news {
        margin-top: 40px;
    }

    .related-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 420px) {
    .news-list-card {
        grid-template-columns: 1fr;
    }

    .news-list-image {
        min-height: 0;
    }

    .news-list-image img {
        aspect-ratio: 16 / 9;
    }

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