/* 新闻内容区域 */
.news-container {
    width: 1200px;
    background: white;
    margin: 60px auto;
    padding: 0 20px;
}

.news-title {
    color: #535456;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    line-height: 1.4;
}

.news-title-lists {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.news-author,
.news-data {
    color: #666;
    font-size: 14px;
}

.clear {
    clear: both;
}

.news-meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.news-image {
    width: 100%;
    margin: 20px 0;
    border-radius: 6px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-content {
    margin-top: 25px;
    color: #535456;
    font-size: 16px;
    line-height: 1.8;
}

.news-content p {
    margin-bottom: 15px;
    font-size: 16px;
    text-align: justify;
    line-height: 1.8;
}

/* 重置从其他地方复制来的样式 */
.news-content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 重置图片样式 */
.news-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: 15px auto !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    cursor: default !important; /* 桌面端不显示点击手势 */
}

/* 重置段落样式 */
.news-content p,
.news-content section {
    margin: 15px 0 !important;
    padding: 0 !important;
    line-height: 1.8 !important;
    font-size: 16px !important;
    text-align: justify !important;
}

/* 重置span样式 */
.news-content span {
    font-size: inherit !important;
    line-height: inherit !important;
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 翻页控件 */
.news-pages {
    margin: 40px 0;
    padding: 20px;
    border-top: 1px solid #eaeaea;
    text-align: center;
}

.news-pages a {
    color: #005AAB;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid #005AAB;
    border-radius: 6px;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-pages a:hover {
    background-color: #005AAB;
    color: white;
}

.news-pages a span {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* 覆盖可能影响移动端的桌面端样式 */
@media screen and (max-width: 768px) {
    .news-container .news-pages a span {
        margin-left: 0 !important;
        float: none !important;
    }
}

.news-pages a:hover span {
    color: #fff;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 20px;
    padding: 15px 0;
    border-top: 1px solid #eaeaea;
}

.page-btn {
    background-color: #1a5f9e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
}

.page-btn:hover {
    background-color: #134980;
}

.page-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* 图片弹窗样式 */
.image-modal-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
}

.image-modal-mobile img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.2s ease;
    transform-origin: center center;
}

/* 移除原来的::after伪元素，避免与JS创建的关闭按钮冲突 */
/* .image-modal-mobile::after {
    content: '×';
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
} */

/* 移动端适配 */
@media screen and (max-width: 768px) {
    /* 强制防止页面横向滚动的全局样式 */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100vw;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* 防止任何元素导致横向滚动 */
    *, *::before, *::after {
        box-sizing: border-box;
        max-width: 100vw !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .container {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100vw;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .news-container {
        width: 100%;
        margin: 20px auto;
        padding: 0 15px;
        overflow-x: hidden;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .news-title {
        font-size: 22px;
        margin-bottom: 15px;
        padding: 0 10px;
        line-height: 1.3;
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .news-title-lists {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
        margin-bottom: 20px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .news-author,
    .news-data {
        font-size: 12px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .news-content {
        font-size: 14px;
        line-height: 1.6;
        margin-top: 20px;
        overflow-x: hidden;
        max-width: 100vw;
        /* 添加以下样式确保内容不超出页面 */
        padding: 0 5px;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* 强制重置移动端的所有内容样式 */
    .news-content *,
    .news-content p,
    .news-content section,
    .news-content div {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin: 10px 0 !important;
        padding: 0 !important;
        text-align: left !important;
        max-width: 100% !important;
        width: auto !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        position: static !important;
        float: none !important;
        display: block !important;
    }
    
    /* 保持span标签为内联元素，但允许在必要时换行 */
    .news-content span {
        display: inline !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: inherit !important;
        line-height: inherit !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important; /* 允许换行 */
    }
    
    /* 特别处理p标签内的嵌套span */
    .news-content p span,
    .news-content p span span,
    .news-content p span span span {
        display: inline !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: inherit !important;
        line-height: inherit !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important; /* 允许换行 */
        float: none !important;
        position: static !important;
    }
    
    /* 处理复杂的嵌套span结构 */
    .news-content p [leaf] span,
    .news-content p [textstyle] span,
    .news-content p span[style] {
        display: inline !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important; /* 允许换行 */
        float: none !important;
        position: static !important;
    }
    
    /* 移动端图片完全响应式 */
    .news-content img,
    .news-content section img,
    .news-content *[data-src],
    .news-content *[class*='img'],
    .news-content .rich_pages,
    .news-content .wxw-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 15px auto !important;
        padding: 0 !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        box-sizing: border-box !important;
        object-fit: cover !important;
        cursor: pointer !important; /* 添加点击手势 */
    }
    
    /* 移动端段落样式重置 */
    .news-content p {
        margin: 12px 0 !important;
        padding: 0 !important;
        text-align: justify !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 移动端section样式重置 */
    .news-content section {
        margin: 15px 0 !important;
        padding: 0 !important;
        text-align: center !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* 移动端文字样式统一 */
    .news-content span[style] {
        font-size: 14px !important;
        line-height: 1.6 !important;
        font-family: inherit !important;
        color: inherit !important;
        background: transparent !important;
        font-weight: normal !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }
    
    /* 保留重要的强调样式 */
    .news-content span[style*="bold"] {
        font-weight: bold !important;
    }
    
    .news-content span[style*="color"] {
        /* 保留颜色但确保可读性 */
    }
    
    /* 移动端翻页样式 - 改进显示效果 */
    .news-pages {
        margin: 30px 0;
        padding: 15px 10px;
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    .news-pages a {
        display: flex;
        width: 100%;
        font-size: 15px;
        text-align: left;
        border-radius: 8px;
        box-sizing: border-box;
        max-width: 100%;
        text-decoration: none;
        margin-bottom: 12px;
        background-color: #f8f9fa;
        border: 1px solid #eaeaea;
        color: #333 !important;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        overflow: hidden;
        min-height: 60px;
    }
    
    .news-pages a:last-child {
        margin-bottom: 0;
    }
    
    .news-pages a:hover {
        background-color: #005AAB;
        color: white;
        border-color: #005AAB;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 90, 171, 0.2);
    }
    
    /* 内部包装元素样式 */
    .news-pages a > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 16px 12px;
        box-sizing: border-box;
        color: #333; /* 确保文字颜色 */
    }
    
    /* 主标题文本样式 */
    .news-pages a > div > span:first-child {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.6;
        color: #333;
        margin-right: 5px;
        font-size: 15px;
    }
    
    /* 时间戳文本样式 */
    .news-pages a span:last-child {
        font-size: 13px;
        color: #666;
        white-space: nowrap;
        line-height: 1.6;
        text-align: right;
        min-width: 70px;
    }
    
    /* 修复可能被覆盖的文本颜色 */
    .news-pages a {
        color: #333;
    }
    
    .news-pages a:hover span {
        color: #fff;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }
    
    .page-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    /* 特别处理从其他地方复制来的复杂样式 */
    .news-content *[style] {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin: 10px 0 !important;
        padding: 0 !important;
        text-align: left !important;
        float: none !important;
        display: block !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important; /* 确保可以换行 */
    }
    
    /* 处理内联样式中的固定宽度问题 */
    .news-content *[style*="width: 677px"],
    .news-content *[style*="width:677px"],
    .news-content *[style*="width: 100%"],
    .news-content *[style*="width:100%"],
    .news-content *[style*="width: 900px"],
    .news-content *[style*="width:900px"],
    .news-content *[style*="width"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        box-sizing: border-box !important;
        white-space: normal !important; /* 确保可以换行 */
    }
    
    /* 处理所有包含style属性的图片 */
    .news-content img[style] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 10px auto !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }
    
    /* 处理所有可能的图片容器 */
    .news-content *[class*="img"],
    .news-content *[class*="image"],
    .news-content *[data-src],
    .news-content *[data-w] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 10px auto !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }
    
    /* 处理图片容器 */
    .news-content .rich_pages,
    .news-content .wxw-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 10px auto !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }
    
    /* 处理背景色和特殊样式 */
    .news-content *[style*="background-color"],
    .news-content *[style*="background"] {
        background: transparent !important;
    }
    
    /* 处理文字对齐 */
    .news-content *[style*="text-align: center"] {
        text-align: center !important;
    }
    
    .news-content *[style*="text-align: justify"] {
        text-align: justify !important;
    }
    
    .news-content *[style*="text-align: left"] {
        text-align: left !important;
    }
    
    .news-content *[style*="text-align: right"] {
        text-align: right !important;
    }
    
    /* 处理特殊字体样式 */
    .news-content *[style*="font-family"] {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    }
    
    /* 处理从其他地方复制来的复杂内联样式 */
    .news-content *[data-ratio],
    .news-content *[data-w],
    .news-content *[data-src] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 10px auto !important;
        box-sizing: border-box !important;
    }
    
    /* 处理图片的特殊属性 */
    .news-content img[data-src],
    .news-content img[data-ratio],
    .news-content img[data-w] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 10px auto !important;
        box-sizing: border-box !important;
    }
    
    /* 处理文字溢出问题 */
    .news-content *[style*="white-space: nowrap"] {
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* 处理浮动元素 */
    .news-content *[style*="float:"] {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 处理绝对定位元素 */
    .news-content *[style*="position: absolute"],
    .news-content *[style*="position: fixed"] {
        position: static !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 处理内联样式中的大字体 */
    .news-content *[style*="font-size"][style*="px"] {
        font-size: 14px !important;
    }
    
    /* 处理内联样式中的行高 */
    .news-content *[style*="line-height"] {
        line-height: 1.6 !important;
    }
    
    /* 处理复杂的文本样式 */
    .news-content span[leaf],
    .news-content span[textstyle] {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* 修复移动端span标签换行问题 */
    .news-content p span {
        display: inline !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: inherit !important;
        font-size: inherit !important;
    }
    
    /* 处理段落间距 */
    .news-content p[data-pm-slice] {
        margin: 12px 0 !important;
        padding: 0 !important;
        text-align: justify !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* 处理特殊背景色文本 */
    .news-content span[style*="background-color: rgb(121, 123, 170)"] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px auto !important;
        padding: 8px 12px !important;
        text-align: center !important;
        font-weight: bold !important;
        color: #fff !important;
        background-color: #797baa !important;
        border-radius: 4px !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* 处理引用文本 */
    .news-content p[style*="background: rgb(255, 255, 255)"] {
        background: transparent !important;
    }
    
    /* 处理特殊颜色文本 */
    .news-content span[style*="color: rgb(214, 168, 65)"] {
        color: #d6a841 !important;
        font-weight: bold !important;
    }
    
    /* 处理标题文本 */
    .news-content span[style*="font-weight: bold"] {
        font-weight: bold !important;
    }
    
    /* 处理链接文本 */
    .news-content a {
        color: #005AAB !important;
        text-decoration: underline !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* 处理图片容器 */
    .news-content section[nodeleaf] {
        text-align: center !important;
        margin: 15px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 处理特殊段落样式 */
    .news-content p[style*="margin-right: 0;margin-left: 0"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 处理居中对齐的文本 */
    .news-content *[style*="text-align: center"] {
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 防止内容溢出的最终保障 */
    .news-content *[style*="width"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 处理固定定位元素 */
    .news-content *[style*="position:"] {
        position: static !important;
    }
    
    /* 强制所有子元素不超出容器 */
    .news-content * {
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* 防止任何元素导致横向滚动 */
    .news-content *[style*="overflow"] {
        overflow-x: hidden !important;
    }
    
    /* 最终保障：强制所有元素不超过屏幕宽度 */
    .news-content {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 5px;
    }
    
    /* 处理特殊容器 */
    .news-content section,
    .news-content div {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* 移动端图片弹窗样式 */
    .image-modal-mobile img {
        max-width: 95%;
        max-height: 95%;
        object-fit: contain;
        border-radius: 6px;
        touch-action: manipulation;
    }
    
    /* 改进模态框关闭按钮样式 */
    .image-modal-mobile .close-btn {
        top: 15px;
        right: 20px;
        font-size: 36px;
    }
}

/* 桌面端图片样式（移除点击手势） */
@media screen and (min-width: 769px) {
    .news-content img {
        cursor: default !important;
    }
}
/* ============ 手机端：隐藏正文里被误渲染的 <style> 标签 · 2026-09-30 ============
   发布视频新闻时 SSCMS 播放器组件会在正文里输出一段 <style>，
   本来应该是 display:none，但被本文件里 .news-content * 那批
   高优先级规则盖成了块级元素，于是 CSS 代码直接显示在页面上。
   下面用更高优先级的选择器把它压回去。                              */
@media screen and (max-width: 768px) {
  .news-content style,
  .news-content p > span > style,
  .news-content span style {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }
}