/**
 * 旧版内页内容区 + 新版 footer / header 兼容
 * 业务概览页：整页内容区统一白底，不要灰底+卡片多层
 */

body:not(.page-home) {
    background: #fff;
}

body:not(.page-home) .page-wrapper {
    background: #fff;
}

/* ---------- 列表 / 详情页 ---------- */
body:not(.page-home) .news-list-section,
body:not(.page-home) .news-details-section {
    background-color: #fff;
}

/* 详情页 h1 需覆盖 style.css 全局 h1{font-size:100px} */
body:not(.page-home) .news-details-content {
    background: #fff;
    padding: 40px;
}

body:not(.page-home) .news-details-content h1.news-title {
    margin: 0 0 20px;
    padding: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.35;
    color: #333;
    background: transparent;
}

body:not(.page-home) .news-details-content .news-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

body:not(.page-home) .news-details-content .news-meta span {
    display: inline-block;
    margin-right: 25px;
    color: #666;
    font-size: 14px;
}

body:not(.page-home) .news-details-content .news-meta i {
    color: #20c997;
    margin-right: 5px;
}

body:not(.page-home) .news-details-content .news-image {
    margin-bottom: 30px;
    text-align: center;
}

body:not(.page-home) .news-details-content .news-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

body:not(.page-home) .news-details-content .news-content {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

body:not(.page-home) .news-details-content .news-content p {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    body:not(.page-home) .news-details-content {
        padding: 10px;
    }

    body:not(.page-home) .news-details-content h1.news-title {
        font-size: 24px;
    }

    body:not(.page-home) .news-details-content .news-meta span {
        display: block;
        margin-right: 0;
        margin-bottom: 8px;
    }
}

body:not(.page-home) .page-breadcrumb {
    background: #fff;
}

body:not(.page-home) .main-footer.hp-footer-v2 {
    margin-top: 0;
}

/* ---------- 业务概览 / 文章专题：图一效果，整块白底 ---------- */
body:not(.page-home) .article-section {
    background: #fff;
}

body:not(.page-home) .article-section .container,
body:not(.page-home) .article-section .row {
    background: transparent;
}

body:not(.page-home) .article-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

body:not(.page-home) .article-header h2 {
    color: #152b26;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 30px;
    font: var(--weight-bold, 700) var(--text-32, 32px / 44px) var(--font-page, sans-serif);
}

body:not(.page-home) .article-body {
    font: var(--weight-regular, 400) var(--text-18, 18px / 34px) var(--font-page, sans-serif);
    color: #455752;
    letter-spacing: 0;
}

body:not(.page-home) .article-body h3 {
    color: #0084bb;
    font: var(--weight-bold, 700) var(--text-24, 24px / 34px) var(--font-page, sans-serif);
    margin: 36px 0 16px;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

body:not(.page-home) .article-body h4 {
    color: #152b26;
    font: var(--weight-bold, 700) var(--text-18, 18px / 34px) var(--font-page, sans-serif);
    margin: 28px 0 12px;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

body:not(.page-home) .article-body p {
    margin-bottom: 24px;
    color: #455752;
    font: inherit;
    line-height: inherit;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* 富文本链接：盖掉编辑器内联 14px Arial */
body:not(.page-home) .article-body a,
body:not(.page-home) .article-body span,
body:not(.page-home) .article-body font {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

body:not(.page-home) .article-body a {
    font: inherit !important;
    color: #0084bb !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body:not(.page-home) .article-body h3 a,
body:not(.page-home) .article-body h4 a {
    font: inherit !important;
    color: inherit !important;
    text-decoration: none;
}

/* ---------- 标杆项目展示：卡片区独立字阶，不被正文 18px 吞掉 ---------- */
body:not(.page-home) .article-body h4.mt-40:has(+ .project-showcase),
body:not(.page-home) .article-body h4:has(+ .project-showcase),
body:not(.page-home) .article-body .project-showcase > h3 {
    margin: 40px 0 20px;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #152b26 !important;
    font: var(--weight-bold, 700) var(--text-24, 24px / 34px) var(--font-page, sans-serif) !important;
    text-align: center !important;
}

body:not(.page-home) .article-body .project-showcase {
    margin-top: 8px;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

body:not(.page-home) .article-body .project-showcase > .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

/* 默认单列；PC 三列 */
body:not(.page-home) .article-body .project-showcase > .row > [class*="col-"] {
    float: none !important;
    flex: 0 0 100% !important;
    -webkit-box-flex: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 28px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    body:not(.page-home) .article-body .project-showcase > .row > [class*="col-"] {
        flex: 0 0 33.333333% !important;
        width: 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

body:not(.page-home) .article-body .project-showcase > .row.mt-4 {
    margin-top: 0 !important;
}

body:not(.page-home) .article-body .project-item {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body:not(.page-home) .article-body .project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 4px;
    background: #eef2f0;
}

body:not(.page-home) .article-body .project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

body:not(.page-home) .article-body .project-info {
    padding: 12px 0 0;
    flex: 1;
}

body:not(.page-home) .article-body .project-info h5 {
    margin: 0 0 6px;
    color: #152b26 !important;
    font: var(--weight-bold, 700) var(--text-16, 16px / 28px) var(--font-page, sans-serif) !important;
}

body:not(.page-home) .article-body .project-info p {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #666 !important;
    font: var(--weight-regular, 400) var(--text-14, 14px / 24px) var(--font-page, sans-serif) !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-align: left;
}

@media (max-width: 767px) {
    body:not(.page-home) .article-body h4:has(+ .project-showcase),
    body:not(.page-home) .article-body .project-showcase > h3 {
        font: var(--weight-bold, 700) var(--text-24, 22px / 32px) var(--font-page, sans-serif) !important;
        margin: 28px 0 16px;
        text-align: center !important;
    }

    body:not(.page-home) .article-body .project-showcase > .row {
        display: flex;
        flex-wrap: wrap;
        margin-left: 0;
        margin-right: 0;
    }

    body:not(.page-home) .article-body .project-showcase > .row > [class*="col-"] {
        float: none !important;
        flex: 0 0 100% !important;
        -webkit-box-flex: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0;
        padding-right: 0;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 22px;
    }

    body:not(.page-home) .article-body .project-image,
    body:not(.page-home) .article-body .project-item {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    body:not(.page-home) .article-body .project-info,
    body:not(.page-home) .article-body .project-info h5,
    body:not(.page-home) .article-body .project-info p {
        text-align: center !important;
    }

    body:not(.page-home) .article-body .project-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
        float: none !important;
    }

    body:not(.page-home) .article-body .project-info h5 {
        font: var(--weight-bold, 700) var(--text-16, 16px / 26px) var(--font-page, sans-serif) !important;
    }

    body:not(.page-home) .article-body .project-info p {
        font: var(--weight-regular, 400) var(--text-14, 13px / 20px) var(--font-page, sans-serif) !important;
    }
}

/* 侧栏：与主内容同一白底，不再单独卡片 */
body:not(.page-home) .article-sidebar {
    padding-left: 30px;
}

body:not(.page-home) .sidebar-widget {
    background: transparent;
    padding: 0 0 30px;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}

body:not(.page-home) .sidebar-widget + .sidebar-widget {
    padding-top: 30px;
    border-top: 1px solid #eee;
}

body:not(.page-home) .widget-title {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 10px;
}

body:not(.page-home) .partner-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body:not(.page-home) .partner-item {
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    background: transparent;
}

body:not(.page-home) .partner-item a {
    display: block;
}

/* 侧栏图：单列竖排 + 限制宽度（与旧版 inline 样式 max-width:70% 一致） */
body:not(.page-home) .article-sidebar .partner-item img,
body:not(.page-home) .partner-widget .partner-item img,
body:not(.page-home) .partners-sidebar .partner-item img {
    display: block;
    width: auto;
    max-width: 70%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

body:not(.page-home) .related-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

body:not(.page-home) .related-links li {
    margin-bottom: 8px;
}

body:not(.page-home) .related-links a {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

body:not(.page-home) .related-links a:hover {
    color: #ff6600;
}

body:not(.page-home) .related-links i {
    margin-right: 8px;
    color: #ff6600;
}

/* 年份筛选：原生 select（24px），不用 nice-select，保留浏览器原生下拉选项样式 */
body:not(.page-home) .year-filter .nice-select {
    display: none !important;
}

body:not(.page-home) .content-title .title-actions .year-filter select#yearFilter,
body:not(.page-home) .year-filter select#yearFilter {
    display: block !important;
    width: 100% !important;
    min-width: 120px !important;
    height: 50px !important;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    font-size: 24px !important;
    line-height: normal !important;
    font-weight: 400 !important;
    color: #333 !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
}

body:not(.page-home) .year-filter select#yearFilter:focus,
body:not(.page-home) .year-filter select#yearFilter:hover {
    border-color: #ddd !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 若仍加载 V2 内页 CSS：强制整页白底、去掉卡片层次 */
body:not(.page-home) .hp-inner-main {
    background: #fff !important;
}

body:not(.page-home) .hp-inner-main::before {
    display: none !important;
}

body:not(.page-home) .hp-inner-content,
body:not(.page-home) .hp-article {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body:not(.page-home) .hp-inner-aside,
body:not(.page-home) .hp-inner-partners {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body:not(.page-home) .hp-article-body > h2,
body:not(.page-home) .hp-article-body > h3,
body:not(.page-home) .hp-article-body > h4,
body:not(.page-home) .hp-article-body > p,
body:not(.page-home) .hp-article-body > div {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-left: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body:not(.page-home) .hp-inner-partners .partner-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 16px !important;
}

body:not(.page-home) .hp-inner-partners .partner-item {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    text-align: center !important;
}

body:not(.page-home) .hp-inner-partners .partner-item img {
    width: auto !important;
    max-width: 70% !important;
    height: auto !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

body:not(.page-home) .hp-article-lead {
    background: transparent !important;
    border-left: none !important;
    padding: 0 !important;
    margin-bottom: 1.25em !important;
}

@media (max-width: 991px) {
    body:not(.page-home) .article-sidebar {
        padding-left: 0;
        margin-top: 40px;
        border-top: 1px solid #eee;
        padding-top: 30px;
    }
}

@media (max-width: 768px) {
    body:not(.page-home) .article-sidebar {
        padding-left: 0;
    }
}
