html {
    width: 100vw;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

.news-detail-page {
            background: #fff;
            color: #333;
        }

        .news-detail-section {
            padding: 24px 0 100px;
        }

        .news-detail-header {
            margin-bottom: 40px;
        }

        .news-detail-title {
            font-family: "Source Han Sans CN", "Noto Sans SC", "Microsoft YaHei", sans-serif;
            font-weight: 500;
            font-size: 36px;
            color: #333333;
            line-height: 50px;
            text-align: center;
            font-style: normal;
            text-transform: none;
            margin: 0 0 20px;
            word-break: break-word;
        }

        .news-detail-date {
            font-family: "Source Han Sans CN", "Noto Sans SC", "Microsoft YaHei", sans-serif;
            font-weight: 400;
            font-size: 16px;
            color: #999999;
            line-height: 22px;
            text-align: center;
            font-style: normal;
            text-transform: none;
            margin: 0;
        }

        .news-detail-content {
            font-family: "Source Han Sans CN", "Noto Sans SC", "Microsoft YaHei", sans-serif;
            font-weight: 400;
            font-size: 16px;
            color: #333;
            line-height: 1.9;
            word-break: break-word;
        }

        .news-detail-content p {
            margin: 0 0 18px;
        }

        .news-detail-content img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 24px auto;
            border-radius: 8px;
        }

        .news-detail-content h1,
        .news-detail-content h2,
        .news-detail-content h3,
        .news-detail-content h4 {
            color: #1a1a1a;
            font-weight: 500;
            margin: 28px 0 14px;
            line-height: 1.4;
        }

        .news-detail-content h2 { font-size: 24px; }
        .news-detail-content h3 { font-size: 20px; }
        .news-detail-content h4 { font-size: 18px; }

        .news-detail-content ul,
        .news-detail-content ol {
            margin: 0 0 18px;
            padding-left: 24px;
        }

        .news-detail-content li {
            margin-bottom: 8px;
        }

        .news-detail-content blockquote {
            margin: 20px 0;
            padding: 14px 18px;
            border-left: 4px solid #1e9fff;
            background: #f7fafc;
            color: #666;
        }

        .news-detail-content a {
            color: #1e9fff;
        }

        .news-detail-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }

        .news-detail-content table th,
        .news-detail-content table td {
            border: 1px solid #eee;
            padding: 10px 12px;
            text-align: left;
        }

        .news-detail-back-top {
            font-family: "Source Han Sans CN", "Noto Sans SC", "Microsoft YaHei", sans-serif;
            font-weight: 400;
            font-size: 16px;
            color: #999999;
            line-height: 22px;
            text-align: left;
            font-style: normal;
            text-transform: none;
            text-decoration: none;
            display: inline-block;
            margin-bottom: 5px;
        }

        .news-detail-back-top:hover {
            color: #1e9fff;
        }

        .news-detail-back-top .layui-icon {
            font-size: 14px;
            margin-right: 6px;
            vertical-align: -1px;
        }

        .news-detail-meta {
            margin-top: 10px;
            color: #999;
            font-size: 14px;
            text-align: center;
        }

        .article-like-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
            margin-top: 32px;
        }

        .article-like-button,
        .article-favorite-button {
            display: inline-flex;
            gap: 8px;
            align-items: center;
            min-width: 112px;
            height: 42px;
            justify-content: center;
            padding: 0 18px;
            border: 1px solid #dbe5f0;
            border-radius: 21px;
            background: #fff;
            color: #5d6b7a;
            cursor: pointer;
            font: inherit;
            transition: border-color .2s ease, background .2s ease, color .2s ease;
        }

        .article-like-button:hover,
        .article-like-button.is-liked,
        .article-favorite-button:hover,
        .article-favorite-button.is-favorited {
            border-color: #0066ff;
            background: #edf5ff;
            color: #0066ff;
        }

        .article-like-button:disabled,
        .article-favorite-button:disabled {
            cursor: default;
        }

        .article-login-modal[hidden] {
            display: none;
        }

        .article-login-modal {
            position: fixed;
            z-index: 2000;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(15, 23, 42, .48);
            box-sizing: border-box;
        }

        .article-login-card {
            position: relative;
            width: min(399px, 100%);
            padding: 38px 42px 30px;
            border: 1px solid rgba(255, 255, 255, .85);
            border-radius: 14px;
            background: #f7faff url('/app/index/index-login-background.png') center / cover no-repeat;
            box-shadow: 0 20px 50px rgba(15, 23, 42, .22);
            box-sizing: border-box;
        }

        .article-login-close {
            position: absolute;
            top: 14px;
            right: 14px;
            width: 28px;
            height: 28px;
            border: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, .8);
            color: #64748b;
            cursor: pointer;
        }

        .article-login-brand {
            display: block;
            width: 114px;
            height: 47px;
            margin: 0 auto 25px;
            object-fit: contain;
        }

        .article-login-form .layui-form-item {
            position: relative;
            margin-bottom: 14px;
        }

        .article-login-form .layui-input {
            width: 100%;
            height: 46px;
            padding: 0 20px;
            border: 0;
            border-radius: 23px;
            background: #fff;
            box-sizing: border-box;
        }

        .article-login-form .layui-input:focus {
            border: 1px solid #0066ff;
            box-shadow: 0 0 0 3px rgba(0, 102, 255, .12);
        }

        .article-login-captcha .layui-input {
            padding-right: 108px;
        }

        .article-login-captcha img {
            position: absolute;
            top: 9px;
            right: 12px;
            width: 83px;
            height: 28px;
            cursor: pointer;
            object-fit: cover;
        }

        .article-login-submit {
            width: 100%;
            height: 46px;
            border: 0;
            border-radius: 23px;
            background: #0066ff;
            color: #fff;
            cursor: pointer;
            font-size: 16px;
        }

        .article-login-options {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 14px;
            color: #666;
            font-size: 13px;
        }

        .article-login-options a {
            color: #666;
            text-decoration: none;
        }

        .article-login-options a:hover {
            color: #0066ff;
        }

        .detail-extras {
            margin-top: 56px;
            padding-top: 40px;
            border-top: 1px solid #edf0f4;
        }

        .detail-extras-title {
            margin: 0 0 22px;
            color: #1a1a1a;
            font-size: 22px;
            font-weight: 500;
        }

        .related-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 20px;
            margin-bottom: 48px;
        }

        .related-card {
            display: block;
            overflow: hidden;
            border: 1px solid #edf0f4;
            border-radius: 10px;
            color: inherit;
            text-decoration: none;
            transition: transform .2s ease, box-shadow .2s ease;
        }

        .related-card:hover {
            box-shadow: 0 12px 24px rgba(12, 42, 92, .1);
            transform: translateY(-3px);
        }

        .related-card img,
        .related-card .related-cover-fallback {
            display: block;
            width: 100%;
            height: 180px;
            object-fit: cover;
            background: #eef5ff;
        }

        .related-card .related-cover-fallback {
            background: #eaf3ff url('/app/news/news_list/news-cover.png') center / cover no-repeat;
        }

        .related-card-content {
            padding: 15px;
        }

        .related-card h4 {
            overflow: hidden;
            margin: 0 0 8px;
            color: #1a1a1a;
            font-size: 16px;
            font-weight: 500;
            line-height: 1.5;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .related-card p {
            overflow: hidden;
            margin: 0;
            color: #999;
            font-size: 13px;
            line-height: 1.7;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .comments-section {
            padding: 28px;
            border-radius: 12px;
            background: #f7f9fc;
        }

        .comment-list {
            display: grid;
            gap: 18px;
            margin-bottom: 26px;
        }

        .comment-item {
            display: flex;
            gap: 12px;
            padding-bottom: 18px;
            border-bottom: 1px solid #e9edf2;
        }

        .comment-avatar {
            display: flex;
            width: 38px;
            height: 38px;
            flex: 0 0 38px;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border-radius: 50%;
            background: #dbeafe;
            color: #1769d8;
            font-weight: 600;
        }

        .comment-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .comment-main {
            min-width: 0;
            flex: 1;
        }

        .comment-head {
            display: flex;
            gap: 12px;
            align-items: baseline;
            margin-bottom: 6px;
        }

        .comment-head strong {
            color: #333;
            font-size: 14px;
        }

        .comment-head span,
        .comment-main p {
            color: #999;
            font-size: 13px;
        }

        .comment-main p {
            margin: 0;
            color: #555;
            font-size: 14px;
            line-height: 1.8;
            white-space: pre-wrap;
        }

        .comment-empty,
        .comment-closed {
            padding: 20px 0;
            color: #999;
            font-size: 14px;
            text-align: center;
        }

        .comment-form h4 {
            margin: 0 0 16px;
            color: #333;
            font-size: 17px;
            font-weight: 500;
        }

        .comment-form input,
        .comment-form textarea {
            width: 100%;
            box-sizing: border-box;
            margin-bottom: 12px;
            padding: 11px 13px;
            border: 1px solid #dfe5ec;
            border-radius: 6px;
            background: #fff;
            color: #333;
            font: inherit;
            outline: none;
        }

        .comment-form textarea {
            min-height: 110px;
            resize: vertical;
        }

        .comment-form input:focus,
        .comment-form textarea:focus {
            border-color: #1e9fff;
            box-shadow: 0 0 0 3px rgba(30, 159, 255, .12);
        }

        .comment-submit {
            min-width: 112px;
            height: 40px;
            border: 0;
            border-radius: 20px;
            background: #0066ff;
            color: #fff;
            cursor: pointer;
            font: inherit;
        }

        @media screen and (max-width: 768px) {
            .news-detail-section {
                padding: 22px 0 64px;
            }

            .news-detail-title {
                font-size: 26px;
                line-height: 38px;
                margin-bottom: 14px;
            }

            .news-detail-date {
                font-size: 14px;
                text-align: center;
            }

            .news-detail-content {
                font-size: 15px;
            }

            .detail-extras {
                margin-top: 40px;
                padding-top: 30px;
            }

            .related-grid {
                grid-template-columns: 1fr;
            }

            .comments-section {
                padding: 20px;
            }
        }
