/* ==========================================================================
   文章详情页排版（仅作用于 news.html 的 .article-content）
   目标：把 1100px 的超宽正文收窄到舒适阅读宽度，重建字号/行高/段距节奏
   ========================================================================== */

.article-content {
    max-width: 860px;
    margin: 26px auto 0;
    color: #2b3340;
    line-height: 1.9;
}

/* ---------- 文章头部 ---------- */
.article-head {
    padding-bottom: 22px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e8edf3;
}

.article-cat {
    display: inline-block;
    padding: 6px 11px;
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .5px;
    color: #0965c8;
    background: #eaf3ff;
    border: 1px solid #d3e6fb;
    border-radius: 4px;
}

.article-content h1 {
    margin: 0 0 16px;
    font-size: 30px;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: .4px;
    color: #17202b;
    text-align: left;
}

.article-content .news-info {
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    color: #8b96a5;
}

.article-content .news-info span {
    margin: 0 24px 0 0;
}

/* ---------- 正文 ---------- */
.article-body {
    font-size: 16.5px;
    line-height: 2;
    letter-spacing: .3px;
    color: #2f3742;
    text-align: justify;
    word-break: break-word;
}

/* 段落间距：用 em 随字号缩放，避免 base.css 的固定 20px */
.article-body > p {
    margin: 0 0 1.35em;
}

/* 首段做导语强调：浅底 + 左侧主色条 */
.article-body > p:first-of-type {
    margin-bottom: 1.7em;
    padding: 16px 20px;
    font-size: 17.5px;
    line-height: 1.9;
    color: #1e2a38;
    background: #f7fafd;
    border-left: 4px solid #0965c8;
    border-radius: 0 6px 6px 0;
}

/* 小标题：左侧主色竖条，章节感明确 */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    margin: 2.1em 0 .9em;
    padding-left: 13px;
    font-weight: 700;
    line-height: 1.5;
    color: #16202b;
    border-left: 4px solid #0965c8;
}

.article-body h1,
.article-body h2 { font-size: 21px; }
.article-body h3 { font-size: 19px; }
.article-body h4 { font-size: 17px; }

.article-body h2:first-child,
.article-body h3:first-child {
    margin-top: 0;
}

.article-body strong {
    font-weight: 700;
    color: #0b4f9e;
}

.article-body em {
    color: #55627a;
}

.article-body a {
    color: #0965c8;
    text-decoration: none;
    border-bottom: 1px solid rgba(9, 101, 200, .35);
}

.article-body a:hover {
    color: #f22645;
    border-bottom-color: rgba(242, 38, 69, .4);
}

/* 列表 */
.article-body ul,
.article-body ol {
    margin: 0 0 1.4em;
    padding-left: 1.6em;
}

.article-body li {
    margin-bottom: .5em;
}

.article-body li::marker {
    color: #0965c8;
}

/* 引用 */
.article-body blockquote {
    margin: 1.6em 0;
    padding: 16px 20px;
    color: #4a566a;
    background: #f5f8fc;
    border-left: 4px solid #9fc3ea;
    border-radius: 0 6px 6px 0;
}

/* 正文插图 */
.article-body img {
    display: block;
    max-width: 100% !important;
    height: auto;
    margin: 26px auto;
    border-radius: 8px;
}

/* 封面：任何文章都要有缩略图（ico → 正文首图 → 品牌默认图），等比不再放大发虚 */
.article-cover-wrap {
    margin: 0 0 30px;
    border-radius: 10px;
    overflow: hidden;
    background: #eef3f9;
    box-shadow: 0 10px 28px rgba(16, 42, 76, .12);
    line-height: 0;
}

.article-body img.article-cover {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}

/* 没有封面时 {content:ico} 回退为 nopic.png，隐藏掉 */
.article-cover[src$="nopic.png"] {
    display: none !important;
}

/* 文末公司信息条 */
.article-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    margin-top: 34px;
    padding: 15px 18px;
    font-size: 13px;
    line-height: 1.7;
    color: #7b879a;
    background: #f6f9fd;
    border: 1px solid #e6eef8;
    border-radius: 8px;
}

/* 表格（GEO 文里可能出现对比表） */
.article-body table {
    width: 100%;
    margin: 1.6em 0;
    font-size: 15px;
    border-collapse: collapse;
}

.article-body th,
.article-body td {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #e3eaf2;
}

.article-body th {
    font-weight: 600;
    color: #1f2b3a;
    background: #f4f8fd;
}

/* ---------- 上一篇/下一篇 ---------- */
.article-content + .nextinfo,
.nextinfo {
    margin: 34px 0 10px;
    padding-top: 20px;
    border-top: 1px solid #e8edf3;
}

.nextinfo li {
    font-size: 14px;
    line-height: 2;
    color: #8b96a5;
}

.nextinfo li a {
    color: #46536a;
}

.nextinfo li a:hover {
    color: #0965c8;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .article-content {
        margin-top: 18px;
    }

    .article-content h1 {
        font-size: 22px;
        line-height: 1.5;
    }

    .article-body {
        font-size: 16px;
        line-height: 1.9;
        letter-spacing: .2px;
    }

    .article-body > p:first-of-type {
        padding: 13px 15px;
        font-size: 16.5px;
    }

    .article-body h3 {
        font-size: 18px;
        margin-top: 1.8em;
    }

    .article-content .news-info span {
        margin-right: 14px;
    }

    .nextinfo li {
        width: 100% !important;
        float: none !important;
        white-space: normal !important;
    }
}

/* ==========================================================================
   侧栏三块：为你推荐 / 最新文章 / 猜你喜欢（带缩略图）
   ========================================================================== */
.page-info .right-box {
    width: 280px;
}

.page-info .left-box {
    margin-right: 320px;
}

.tjnews {
    background: #fff;
    border: 1px solid #eaeff6;
    border-radius: 10px;
    overflow: hidden;
}

.tjnews + .tjnews {
    margin-top: 18px;
}

.tjnews h2 {
    margin: 0;
    padding: 13px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #1b2b3d;
    letter-spacing: .5px;
    background: #f7fafd;
    border-bottom: 2px solid #0965c8;
}

.tjnews ul {
    border: 0;
}

.tjnews ul li {
    padding: 0;
    border-bottom: 1px solid #f2f5f9;
}

.tjnews ul li:last-child {
    border-bottom: 0;
}

.tjnews ul li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    background: #fff;
    transition: background .2s;
}

.tjnews ul li a:hover {
    background: #f7fafd;
}

/* 缩略图：固定 76×54，等比裁切 */
.tj-thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 54px;
    overflow: hidden;
    border-radius: 4px;
    background: #eef3f9;
}

.tj-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    border-radius: 0;
    transition: transform .3s;
}

.tjnews ul li a:hover .tj-thumb img {
    transform: scale(1.06);
}

.tj-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 54px;
}

.tj-t {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
    color: #46536a;
}

.tjnews ul li a:hover .tj-t {
    color: #0965c8;
}

.tj-d {
    font-size: 11.5px;
    line-height: 1.4;
    color: #a7b2c1;
}

/* 正文里的 figure 不要带默认外边距 */
.article-body figure {
    margin: 0;
}

/* 右侧「热线/微信」浮窗是 fixed 75px，宽屏下会压住「为你推荐」右半列
   → 详情页整体右缩 80px 让它，正文宽度不变（受 max-width 控制） */
@media (min-width: 1200px) {
    .page-info {
        box-sizing: border-box;
        padding-right: 80px;
    }
}
