/**
 * 新闻详情深色覆写：配合 body.site-dark
 * 路径：相对 new_page/html/*.html 引入
 *
 * 说明：大量历史稿件使用浅色内联 style（#333 / #666 / #f8f9fa），
 * 这里统一压成深色可读配色，避免「白底 + 浅字」或「灰雾块」。
 */

body.site-dark {
    background: var(--sd-bg);
}

body.site-dark .news-detail-banner {
    background: linear-gradient(180deg, rgba(8, 16, 32, 0.2), rgba(5, 11, 22, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 72px;
}

body.site-dark .news-detail-title h1 {
    color: var(--sd-text);
}

body.site-dark .news-detail-date {
    color: var(--sd-muted);
}

body.site-dark .news-detail-content {
    background: rgba(12, 20, 36, 0.82);
    border: 1px solid var(--sd-border);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    color: var(--sd-text);
    backdrop-filter: blur(10px);
}

body.site-dark .news-detail-content p {
    color: var(--sd-muted);
}

body.site-dark .news-detail-content h2,
body.site-dark .news-detail-content h3 {
    color: var(--sd-text) !important;
}

body.site-dark .news-detail-content b,
body.site-dark .news-detail-content strong {
    color: #e8eef8;
}

body.site-dark .news-detail-content a {
    color: #9ec4ff;
}

/* ---------- 压掉浅色内联文字 ---------- */
body.site-dark .news-detail-content [style*="color: #333"],
body.site-dark .news-detail-content [style*="color:#333"],
body.site-dark .news-detail-content [style*="color: #222"],
body.site-dark .news-detail-content [style*="color:#222"] {
    color: var(--sd-text) !important;
}

body.site-dark .news-detail-content [style*="color: #666"],
body.site-dark .news-detail-content [style*="color:#666"],
body.site-dark .news-detail-content [style*="color: #999"],
body.site-dark .news-detail-content [style*="color:#999"] {
    color: var(--sd-muted) !important;
}

body.site-dark .news-detail-content [style*="color: #874d00"],
body.site-dark .news-detail-content [style*="color:#874d00"] {
    color: #ffd591 !important;
}

/* ---------- 浅色提示 / 下载卡 → 深色玻璃 ---------- */
body.site-dark .news-detail-content [style*="background-color: #f8f9fa"],
body.site-dark .news-detail-content [style*="background-color:#f8f9fa"],
body.site-dark .news-detail-content [style*="background: #f8f9fa"],
body.site-dark .news-detail-content [style*="background:#f8f9fa"],
body.site-dark .news-detail-callout {
    background-color: rgba(91, 156, 255, 0.1) !important;
    border: 1px solid rgba(120, 170, 255, 0.22) !important;
    box-shadow: none !important;
}

body.site-dark .news-detail-content [style*="background-color: #fff7e6"],
body.site-dark .news-detail-content [style*="background-color:#fff7e6"],
body.site-dark .news-detail-content [style*="background: #fff7e6"],
body.site-dark .news-detail-content [style*="background:#fff7e6"] {
    background-color: rgba(250, 140, 22, 0.14) !important;
}

body.site-dark .news-detail-callout h3,
body.site-dark .news-detail-callout p {
    color: inherit;
}

body.site-dark .news-detail-callout h3 {
    color: var(--sd-text) !important;
}

body.site-dark .news-detail-callout p {
    color: var(--sd-muted) !important;
}

body.site-dark .news-detail-callout__btn,
body.site-dark .news-detail-content a[style*="background-color: #1890ff"],
body.site-dark .news-detail-content a[style*="background-color:#1890ff"] {
    background-color: #3d7aef !important;
    color: #fff !important;
}

body.site-dark .news-detail-callout__btn:hover,
body.site-dark .news-detail-content a[style*="background-color: #1890ff"]:hover,
body.site-dark .news-detail-content a[style*="background-color:#1890ff"]:hover {
    background-color: #5b9cff !important;
}

body.site-dark .back-to-news {
    background: linear-gradient(135deg, #3d7aef, #5b9cff);
}

body.site-dark .back-to-news:hover {
    background: linear-gradient(135deg, #4a88f5, #6aa8ff);
}

body.site-dark .nav-container {
    background: transparent;
    border-bottom-color: transparent;
}
