/* 新闻页面样式 - 完全重写版本 */
.news_sub_page {
    padding: 0;
    background-color: #fff;
}

/* 全局日期样式，确保在所有分辨率下都能正确显示 */
.news_sub_page-date-day {
    font-size: 26px;
    font-weight: bold;
    color: #f0a030 !important;
    /* 强制应用橙色 */
    line-height: 1;
}

.news_sub_page-date-year {
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

.news_sub_page-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    text-align: center;
    padding-right: 20px;
    border-right: none;
    align-self: stretch;
    /* 确保日期区域高度与父容器一致 */
    position: relative;
    /* 为垂直分隔线定位 */
}

/* 使用伪元素创建垂直分隔线，确保其高度与父容器一致 */
.news_sub_page-date::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #e0e0e0;
}

/* 确保新闻项目在垂直方向上正确对齐 */
.news_sub_page-item {
    display: flex;
    align-items: center;
    /* 改为顶部对齐，以便在标题换行时保持良好的视觉效果 */
    position: relative;
    /* 为可能的长标题提供相对定位上下文 */
}

.news_sub_page-item:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news_sub_page-item-date {
    align-items: center;
    color: #daa520;
    display: flex;
    flex-direction: column;
    line-height: 25px;
    width: 100px;
    font-size: 20px;
}

.news_sub_page-item-title {
    color: #666;
    font-family: Microsoft YaHei;
    font-size: 20px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 600px;
    margin-bottom: 0px;
}

/* 标题容器样式调整 */
.news_sub_page-title {
    padding-left: 20px;
    /* 为标题添加左侧内边距，与分隔线保持距离 */
    display: flex;
    align-items: center;
    min-height: 60px;
    /* 确保标题区域有最小高度 */
    flex: 1;
    position: relative;
    /* 为可能的长标题提供相对定位上下文 */
}

/* 确保标题文本换行时不会破坏布局 */
.news_sub_page-title a {
    word-break: break-word;
    /* 允许在任何字符处换行 */
    overflow-wrap: break-word;
    /* 确保长单词也能正确换行 */
    hyphens: auto;
    /* 在适当的位置添加连字符 */
}

/* 分页组件样式 */
.pagination-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.page-link,
.page-link.disabled,
.ellipsis {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 42px;
    min-width: 42px;
    margin: 5px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-link {
    color: #3498db;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.page-link:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.page-link.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.page-link.disabled {
    color: #adb5bd;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    cursor: not-allowed;
}

.ellipsis {
    color: #6c757d;
    background: transparent;
    border: none;
    cursor: default;
}

/* 响应式设计 */
@media (max-width: 576px) {}

/* ===== PC端样式 ===== */
@media (min-width: 992px) {

    /* 主容器布局 */
    .news_sub_page .container {
        max-width: none;
        padding: 0;
    }

    /* 主要区域宽度设置 */
    .news_sub_page-main-content,
    .news_sub_page-breadcrumb-header,
    .news_sub_page-logo-section {
        width: 77%;
        margin: 0 auto;
    }

    /* 内容容器 */
    .news_sub_page-main-content>.container,
    .news_sub_page-breadcrumb-header>.container,
    .news_sub_page-logo-section>.container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
        border-radius: 0;
        overflow: hidden;
    }

    /* 布局结构 */
    .news_sub_page-layout {
        display: flex;
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* 左侧菜单 */
    .news_sub_page-sidebar {
        width: 220px;
        background-color: #fff;
        padding: 10px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    }

    /* 菜单标题图片区 */
    .news_sub_page-menu-header {
        width: 100%;
        margin-bottom: 15px;
        text-align: center;
    }

    .news_sub_page-menu-header img {
        max-width: 100%;
        height: auto;
    }

    /* 菜单项 */
    .news_sub_page-menu-item {
        padding: 15px 20px;
        margin-bottom: 10px;
        cursor: pointer;
        font-size: 20px;
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
    }

    .news_sub_page-menu-item:hover {
        background-color: #f0f7ff;
        border-left-color: #1874d5;
    }

    .news_sub_page-menu-item.active {
        background-color: #e9f0f7;
        color: #1874d5;
        border-left-color: #f0a030;
        font-weight: 500;
    }

    .news_sub_page-menu-item.active>a>span {
        color: #1874d5;
    }

    /* 右侧内容区 */
    .news_sub_page-content {
        flex: 1;
        background-color: #fff;
        padding: 25px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    }

    /* 新闻列表容器 */
    .news_sub_page-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* 新闻列表项 */
    .news_sub_page-item {
        display: flex;
        align-items: center;
        /* 改为顶部对齐，以便在标题换行时保持良好的视觉效果 */
        padding: 5px 30px;
        margin-bottom: 0;
        background-color: #f8f9fa;
        border-bottom: none;
        gap: 20px;
        border-radius: 0;
        transition: all 0.3s ease;
    }

    .news_sub_page-item:hover {
        background-color: #f0f0f0;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    /* 新闻标题 */
    .news_sub_page-title {
        padding-left: 20px;
        /* 为标题添加左侧内边距，与分隔线保持距离 */
        display: flex;
        align-items: center;
        min-height: 60px;
        /* 确保标题区域有最小高度 */
        flex: 1;
        font-size: 16px;
        line-height: 1.6;
    }

    .news_sub_page-title a {
        color: #333;
        text-decoration: none;
        transition: color 0.2s ease;
        font-weight: 500;
    }

    .news_sub_page-title a:hover {
        color: #1874d5;
    }

    /* 分页区域 */
    .news_sub_page-pagination-footer {
        margin-top: 40px;
        padding-bottom: 20px;
        text-align: center;
    }

    .news_sub_page-pagination-container {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        background-color: #fff;
        padding: 5px;
        border-radius: 4px;
    }

    .news_sub_page-page-btn,
    .news_sub_page-page-number {
        min-width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        border: 1px solid #e0e0e0;
        background-color: #fff;
        border-radius: 4px;
        font-size: 14px;
        color: #333;
        cursor: pointer;
        transition: all 0.2s ease;
        padding: 0 10px;
    }

    .news_sub_page-page-number.active {
        background-color: #1874d5;
        color: white;
        border-color: #1874d5;
        font-weight: 500;
    }

    .news_sub_page-page-btn:hover,
    .news_sub_page-page-number:hover {
        background-color: #f0f7ff;
        color: #1874d5;
        border-color: #1874d5;
    }

    .news_sub_page-page-btn.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

    .news_sub_page-page-ellipsis {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        padding: 0 5px;
        color: #666;
    }

    .news_sub_page-page-info {
        margin: 0 10px;
        color: #666;
        font-size: 14px;
    }

    .news_sub_page-page-size-select {
        margin-left: 15px;
        display: flex;
        align-items: center;
    }

    .news_sub_page-page-size-select select {
        margin-left: 5px;
        padding: 5px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        background-color: #fff;
        font-size: 14px;
        color: #333;
    }

    /* 新闻中心标题区域 */
    .news_sub_page-logo-section {
        background-color: #1874d5;
        padding: 20px 0;
        margin-bottom: 30px;
    }

    .news_sub_page-title-main {
        color: #fff;
        margin: 0;
        font-size: 28px;
        font-weight: bold;
        text-align: center;
    }

    /* 面包屑导航 */
    .news_sub_page-breadcrumb-header {
        background-color: transparent;
        padding: 15px 0;
        margin-bottom: 15px;
    }

    .news_sub_page-breadcrumb {
        font-size: 14px;
    }

    .news_sub_page-breadcrumb-item {
        display: inline-block;
    }

    .news_sub_page-breadcrumb-separator {
        margin: 0 8px;
        color: #ccc;
    }

    .news_sub_page-breadcrumb-item.current {
        color: #1874d5;
        font-weight: 500;
    }

    /* 加载和错误状态 */
    .news_sub_page-loading {
        text-align: center;
        padding: 30px;
        font-size: 16px;
        color: #666;
    }

    .news_sub_page-error-message,
    .news_sub_page-no-news {
        text-align: center;
        padding: 30px 0;
        color: #999;
        font-size: 16px;
    }

    .news_sub_page-error-message {
        color: #dc3545;
    }
}

/* ===== 平板过渡样式 ===== */
@media (min-width: 768px) and (max-width: 991px) {
    .news_sub_page-layout {
        flex-direction: column;
        max-width: 90%;
        margin: 0 auto;
    }

    .news_sub_page-sidebar {
        width: 100%;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        padding: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .news_sub_page-menu-header {
        display: none;
    }

    .news_sub_page-menu-item {
        padding: 12px 20px;
        margin: 0 5px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .news_sub_page-menu-item.active {
        border-bottom-color: #f0a030;
        border-left: none;
    }

    .news_sub_page-content {
        padding: 20px;
    }

    .news_sub_page-item {
        padding: 15px 20px;
        display: flex;
        align-items: center;
    }

    /* 修改日期布局为水平排列 */
    .news_sub_page-date {
        flex-direction: row;
        min-width: auto;
        padding-right: 10px;
        margin-right: 10px;
        gap: 5px;
        align-items: baseline;
        align-self: center;
        /* 在平板模式下对齐到顶部 */
    }

    /* 平板端日期字体大小调整 */
    .news_sub_page-date-day {
        font-size: 22px;
    }

    .news_sub_page-date-year {
        font-size: 12px;
    }

    /* 在平板模式下调整分隔线位置 */
    .news_sub_page-date::after {
        top: 2px;
        /* 微调分隔线位置，使其与文本对齐 */
        bottom: 2px;
        height: 80%;
        /* 减小分隔线高度 */
    }

    /* 调整标题内边距 */
    .news_sub_page-title {
        padding-left: 15px;
        min-height: auto;
        /* 平板模式下不需要最小高度 */
    }

    /* 统一小分辨率分页器样式 */
    .news_sub_page-pagination-footer {
        text-align: center;
        margin-top: 20px;
    }

    .news_sub_page-pagination-container {
        display: inline-flex;
        /* 使用 inline-flex 便于 text-align:center 居中 */
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        width: auto;
        /* 根据内容自适应 */
    }

    /* 隐藏辅助信息，保留核心按钮 */
    .news_sub_page-page-info,
    .news_sub_page-page-size-select {
        display: none;
    }

    .news_sub_page-page-btn,
    .news_sub_page-page-number {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
        padding: 0 8px;
    }
}

/* ===== 手机端样式 ===== */
@media (max-width: 767px) {

    /* 移除内边距，全宽显示 */
    .news_sub_page .container {
        padding-left: 0;
        padding-right: 0;
    }

    /* 内容区域透明背景 */
    .news_sub_page-content {
        background-color: transparent;
        box-shadow: none;
        padding: 10px;
    }

    /* 布局调整为垂直方向 */
    .news_sub_page-layout {
        flex-direction: column;
        gap: 0;
    }

    /* 顶部菜单栏 */
    .news_sub_page-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 0;
        margin: 0;
        box-shadow: none;
        border-bottom: 1px solid #eee;
        border-radius: 0;
        background-color: #f8f9fa;
    }

    /* 隐藏菜单头部图片 */
    .news_sub_page-menu-header {
        display: none;
    }

    .news_sub_page-menu-items-container {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        display: flex;
        flex-wrap: wrap;
        overflow: visible !important;
        padding: 10px 0;
        scrollbar-width: none;
    }

    /* 菜单项水平排列 */
    .news_sub_page-menu-item {
        display: flex;
        justify-content: center;
        width: 45%;
        border-bottom: none;
        /* 关键修复：确保相对定位的父元素有合适的尺寸和溢出设置 */
        flex-shrink: 0;
        margin-left: 12px;
        min-width: 150px;
        overflow: visible !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 10px;
    }

    .news_sub_page-menu-item:last-child {
        border-right: none;
    }

    .news_sub_page-menu-item.active {
        background: #1874d5;
        color: white;
        border-left: none;
        font-weight: 500;
    }

    .news_sub_page-menu-item.active::after {
        display: none;
    }

    /* 新闻列表容器 */
    .news_sub_page-container {
        grid-template-columns: 1fr;
        /* 手机上改为单列 */
        gap: 15px;
    }

    /* 新闻列表项 */
    .news_sub_page-item {
        padding: 12px;
        align-items: center;
        background-color: #f8f9fa;
        border-radius: 4px;
        display: flex;
    }

    /* 修改日期布局为水平排列 */
    .news_sub_page-date {
        flex-direction: row;
        min-width: auto;
        padding-right: 10px;
        margin-right: 10px;
        gap: 5px;
        align-items: baseline;
        align-self: center;
        /* 在手机模式下对齐到顶部 */
    }

    /* 在手机模式下调整分隔线位置 */
    .news_sub_page-date::after {
        top: 2px;
        /* 微调分隔线位置，使其与文本对齐 */
        bottom: 2px;
        height: 80%;
        /* 减小分隔线高度 */
    }

    /* 调整标题内边距 */
    .news_sub_page-title {
        padding-left: 12px;
        min-height: auto;
        /* 手机模式下不需要最小高度 */
    }

    /* 手机端日期字体大小调整 */
    .news_sub_page-date-day {
        font-size: 18px;
    }

    .news_sub_page-date-year {
        font-size: 11px;
    }

    /* 新闻标题 */
    .news_sub_page-title {
        font-size: 14px;
        line-height: 1.4;
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    /* 分页器 */
    .news_sub_page-pagination-footer {
        margin-top: 20px;
    }

    .news_sub_page-pagination-container {
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }

    .news_sub_page-page-btn,
    .news_sub_page-page-number {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .news_sub_page-page-info,
    .news_sub_page-page-size-select {
        display: none;
    }

    /* 面包屑导航 */
    .news_sub_page-breadcrumb-header {
        padding: 8px 0;
    }

    .news_sub_page-breadcrumb {
        padding: 0 10px;
        font-size: 12px;
    }

    /* 标题区域 */
    .news_sub_page-logo-section {
        padding: 15px 0;
        margin-bottom: 15px;
    }

    .news_sub_page-title-main {
        font-size: 20px;
    }

    .news_sub_page-item-title {
        width: 200px;
    }

    .pagination-horizontal {
        margin: 20px 0;
    }

    .page-link,
    .page-link.disabled,
    .ellipsis {
        height: 36px;
        min-width: 36px;
        padding: 0 10px;
        font-size: 14px;
        margin: 3px;
    }
}

/* ===== 超小屏幕优化 ===== */
@media (max-width: 480px) {

    .news_sub_page-item {
        padding: 10px;
        gap: 8px;
    }

    /* 超小屏幕日期字体大小调整 */
    .news_sub_page-date-day {
        font-size: 16px;
    }

    .news_sub_page-date-year {
        font-size: 10px;
    }

    /* 超小屏幕下调整分隔线和间距 */
    .news_sub_page-date {
        padding-right: 8px;
        margin-right: 8px;
        gap: 3px;
    }

    .news_sub_page-date::after {
        height: 70%;
        /* 进一步减小分隔线高度 */
        top: 4px;
    }

    /* 调整标题内边距和大小 */
    .news_sub_page-title {
        font-size: 13px;
        padding-left: 8px;
    }

    .news_sub_page-page-btn,
    .news_sub_page-page-number {
        min-width: 32px;
        height: 28px;
        font-size: 11px;
        padding: 0 5px;
    }
}

/* ===== 新闻详情弹窗样式 ===== */
.news_sub_page-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.news_sub_page-modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.news_sub_page-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.news_sub_page-modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.news_sub_page-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news_sub_page-modal-meta {
    padding: 8px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #666;
}

.news_sub_page-modal-body {
    padding: 15px;
    line-height: 1.6;
}

.news_sub_page-modal-body img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

/* 弹窗移动端适配 */
@media (max-width: 480px) {
    .news_sub_page-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .news_sub_page-modal-header {
        padding: 12px;
    }

    .news_sub_page-modal-header h2 {
        font-size: 18px;
    }

    .news_sub_page-modal-body {
        padding: 12px;
    }
}

/* 直接针对分页器元素的样式，确保在任何分辨率下都能正确显示 */
.news_sub_page-pagination-container {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 5px !important;
    text-align: center !important;
    width: auto !important;
}

.news_sub_page-pagination-footer {
    text-align: center !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.news_sub_page-page-btn,
.news_sub_page-page-number,
button[class*="news_sub_page-page-"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
    margin: 2px !important;
    padding: 0 8px !important;
    border: 1px solid #e0e0e0 !important;
    background-color: #fff !important;
    color: #333 !important;
    font-size: 12px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    text-decoration: none !important;
}

.news_sub_page-page-number.active,
button[class*="news_sub_page-page-"].active {
    background-color: #1874d5 !important;
    color: white !important;
    border-color: #1874d5 !important;
}

.news_sub_page-page-ellipsis {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 5px !important;
    height: 32px !important;
}

@media (max-width: 767px) {

    .news_sub_page-page-info,
    .news_sub_page-page-size-select {
        display: none !important;
    }
}