/**
 * 文章列表、文章详情页样式
 * 参照：新闻中心列表页、详情页（banner 背景 newbj.png）
 */

/* ========== 内页 Banner（导航下方区域） ========== */
#newsList .innerBanner,
#newsDetail .innerBanner {
    min-height: 220px;
    background: #4a5568 url("/static/web/images/newbj.png") center center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#newsList .innerBanner .innerText,
#newsDetail .innerBanner .innerText {
    text-align: center;
    color: #fff;
}

#newsList .innerBanner .innerText h1,
#newsDetail .innerBanner .innerText h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    letter-spacing: 0.05em;
}

#newsList .innerBanner .innerText h3,
#newsDetail .innerBanner .innerText h3 {
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
    letter-spacing: 0.1em;
}

/* ========== 面包屑 ========== */
#newsList .breadcrumb-nav,
#newsDetail .breadcrumb-nav {
    background: #fff;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

#newsList .breadcrumb-nav .container,
#newsDetail .breadcrumb-nav .container {
    max-width: var(--content-max-width, 1400px);
    margin: 0 auto;
    padding: 0 var(--content-padding-x, 24px);
}

#newsList .breadcrumb-text,
#newsDetail .breadcrumb-text {
    color: #6b7280;
    margin-right: 0.25rem;
}

#newsList .breadcrumb-link,
#newsDetail .breadcrumb-link {
    color: #6b7280;
    text-decoration: none;
}

#newsList .breadcrumb-link:hover,
#newsDetail .breadcrumb-link:hover {
    color: #398D40;
}

#newsList .breadcrumb-separator,
#newsDetail .breadcrumb-separator {
    color: #9ca3af;
    margin: 0 0.35rem;
}

#newsList .breadcrumb-current,
#newsDetail .breadcrumb-current {
    color: #398D40;
    font-weight: 500;
}

/* ========== 主内容区背景 ========== */
#newsList .det_main,
#newsDetail .det_main {
    background: #f3f4f6;
    padding: 1.5rem 0 2.5rem;
}

#newsList .det_main .container,
#newsDetail .det_main .container {
    max-width: var(--content-max-width, 1400px);
    margin: 0 auto;
    padding: 0 var(--content-padding-x, 24px);
    display: flex;
    gap: 1.5rem;
}

/* ========== 左侧栏 ========== */
#newsList .det_l,
#newsDetail .det_l {
    width: 240px;
    flex-shrink: 0;
}

/* 列表页左侧栏无灰色标题块，仅导航列表 */
#newsList .detNavBox {
    background: #fff;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
}

/* 详情页左侧栏与列表页一致：无灰色标题块 */
#newsDetail .detNavBox {
    background: #fff;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
}

#newsList .sidebar-header,
#newsDetail .sidebar-header {
    padding: 1rem 1.25rem;
}

#newsDetail .sidebar-header .cn,
#newsDetail .sidebar-header .en {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.2rem 0;
}

#newsDetail .sidebar-header .en {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.05em;
}

#newsList .detNav,
#newsDetail .detNav {
    list-style: none;
    margin: 0;
    padding: 0;
}

#newsList .detNav li,
#newsDetail .detNav li {
    margin: 0;
}

#newsList .detNav li a,
#newsDetail .detNav li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #374151;
    background: #fff;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s, color 0.2s;
}

#newsList .detNav li a:hover,
#newsDetail .detNav li a:hover {
    background: #f9fafb;
    color: #398D40;
}

#newsList .detNav li a.cur,
#newsDetail .detNav li a.cur {
    background: #398D40;
    color: #fff;
    border-bottom-color: #398D40;
}

#newsList .detContact,
#newsDetail .detContact {
    background: #fff;
    padding: 0.75rem 1.25rem;
    border: 1px solid #e5e7eb;
    background-image: none;
}

#newsList .detContact a,
#newsDetail .detContact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

#newsList .detContact a:hover,
#newsDetail .detContact a:hover {
    color: #398D40;
}

#newsList .detContact a img,
#newsDetail .detContact a img {
    margin-left: auto;
}

/* ========== 右侧内容区 ========== */
#newsList .det_r,
#newsDetail .det_r {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

/* ========== 文章列表（列表页） ========== */
#newsList .list-imgT {
    margin: 0;
    padding: 0;
    list-style: none;
}

#newsList .list-imgT dl {
    display: flex;
    gap: 1.25rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

#newsList .list-imgT dl:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* 无图列表项：仅标题、日期、摘要、MORE */
#newsList .list-imgT dl.list-imgT-item-no-img {
    display: block;
}

#newsList .list-imgT dl.list-imgT-item-no-img dd {
    margin: 0;
    flex: none;
    width: 100%;
}

#newsList .list-imgT dt {
    margin: 0;
    flex-shrink: 0;
    width: 200px;
}

#newsList .list-imgT dt img {
    width: 200px;
    height: 140px;
    object-fit: cover;
    display: block;
    border-radius: 0.375rem;
}

#newsList .list-imgT dd {
    margin: 0;
    flex: 1;
    min-width: 0;
}

#newsList .list-imgT dd h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

#newsList .list-imgT dd h3 a {
    color: #1f2937;
    text-decoration: none;
}

#newsList .list-imgT dd h3 a:hover {
    color: #398D40;
}

#newsList .list-imgT dd span {
    font-size: 0.875rem;
    color: #6b7280;
    display: block;
    margin-bottom: 0.5rem;
}

#newsList .list-imgT dd p {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
}

#newsList .list-imgT .imgT_more {
    font-size: 0.875rem;
    color: #398D40;
    text-decoration: none;
}

#newsList .list-imgT .imgT_more:hover {
    text-decoration: underline;
}

/* 列表空状态 */
#newsList .article-list-empty {
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
    padding: 3rem 1rem;
}

/* ========== 分页 ========== */
#newsList .pagess {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

#newsList .pagess .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

#newsList .pagess .pagination li {
    margin: 0;
}

#newsList .pagess .pagination li a,
#newsList .pagess .pagination li.thisclass {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    background: #f3f4f6;
    text-decoration: none;
    border-radius: 0.25rem;
}

#newsList .pagess .pagination li a:hover {
    background: #e5e7eb;
    color: #398D40;
}

#newsList .pagess .pagination li.thisclass {
    background: #398D40;
    color: #fff;
}

/* ========== 文章详情（详情页） ========== */
#newsDetail .article-detail-content {
    max-width: 100%;
}

#newsDetail .article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    line-height: 1.35;
}

#newsDetail .article-meta {
    margin-bottom: 1rem;
}

#newsDetail .article-date {
    font-size: 0.9rem;
    color: #6b7280;
}

#newsDetail .article-detail-content hr,
#newsDetail .article-body-sep {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0 0 1.25rem 0;
}

#newsDetail .article-image {
    margin-bottom: 1.25rem;
}

#newsDetail .article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

#newsDetail .article-body {
    font-size: 1rem;
    color: #374151;
    line-height: 1.7;
}

#newsDetail .article-body p {
    margin: 0 0 0.75rem 0;
}

/* 移动端分类标签（小屏显示） */
#newsList .mobile-category-tabs.visible-xs.visible-sm {
    display: none;
}

/* 移动端：左侧栏隐藏时右侧占满 */
@media (max-width: 991px) {
    #newsList .det_main .container,
    #newsDetail .det_main .container {
        flex-direction: column;
    }

    #newsList .det_l.hidden-xs.hidden-sm,
    #newsDetail .det_l.hidden-xs.hidden-sm {
        display: none !important;
    }

    #newsList .mobile-category-tabs.visible-xs.visible-sm {
        display: block !important;
        background: #fff;
        padding: 0.75rem 0;
        border-bottom: 1px solid #e5e7eb;
    }

    #newsList .mobile-category-tabs .category-tab {
        display: inline-block;
        padding: 0.4rem 0.75rem;
        margin-right: 0.5rem;
        color: #374151;
        text-decoration: none;
        font-size: 0.9rem;
    }

    #newsList .mobile-category-tabs .category-tab.active {
        color: #398D40;
        font-weight: 600;
    }

    #newsList .det_l,
    #newsDetail .det_l {
        width: 100%;
    }

    #newsList .list-imgT dl {
        flex-direction: column;
    }

    #newsList .list-imgT dt {
        width: 100%;
    }

    #newsList .list-imgT dt img {
        width: 100%;
        height: 200px;
    }
}

@media (min-width: 992px) {
    #newsList .mobile-category-tabs.visible-xs.visible-sm {
        display: none !important;
    }
}
