/* ============================================================
   差异化栏目模板共用样式（简洁稳重风）
   配合 include/page_banner.html 与 channel/news.html 等模板使用
   设计变量沿用 theme.css 的 --msx-* 体系
   ============================================================ */

/* ---------- 全宽 banner ---------- */
.msx-pbanner {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center 30%;
    margin-top: -67px; /* 上嵌透明导航之下，与首页 hero 一致 */
    padding-top: 67px;
}
.msx-pbanner-inner {
    position: relative;
    z-index: 2;
    width: 1200px;
    max-width: calc(100% - 48px);
    margin: 0 auto;
    padding: 76px 0 64px;
    color: #fff;
}
.msx-pbanner-title {
    margin: 0 0 12px;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    letter-spacing: 1px;
}
.msx-pbanner-sub {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(226, 236, 255, .88);
}
.msx-pbanner-bread {
    font-size: 14px;
    color: rgba(226, 236, 255, .72);
}
.msx-pbanner-bread a { color: rgba(226, 236, 255, .88); text-decoration: none; }
.msx-pbanner-bread a:hover { color: #fff; }
.msx-pbanner-bread .bc-sep { margin: 0 8px; color: rgba(226, 236, 255, .5); }
.msx-pbanner-bread span:last-child { color: #fff; }

/* ---------- 通用容器与区块标题 ---------- */
.msx-wrap {
    width: 1200px;
    max-width: calc(100% - 48px);
    margin: 0 auto;
}
.msx-sec {
    padding: 72px 0;
}
.msx-sec + .msx-sec { border-top: 1px solid #eef1f6; }
.msx-sec-head {
    margin-bottom: 44px;
    text-align: center;
}
.msx-sec-head-title {
    margin: 0 0 14px;
    font-size: 30px;
    font-weight: 700;
    color: var(--msx-primary-deep, #011537);
    letter-spacing: 1px;
}
.msx-sec-head-line {
    width: 48px; height: 3px;
    margin: 0 auto;
    border-radius: 3px;
    background: var(--msx-primary, #2365ed);
}

/* ---------- 新闻版式：首条大图头条 + 卡片网格 ---------- */
.msx-news-grid { display: block; }
.msx-news-hero {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 44px;
    padding: 28px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8edf5;
    transition: box-shadow .3s;
}
.msx-news-hero:hover { box-shadow: 0 10px 28px rgba(1, 21, 55, .10); }
.msx-news-hero-img {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f8;
}
.msx-news-hero-img img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .5s ease;
}
.msx-news-hero:hover .msx-news-hero-img img { transform: scale(1.03); }
.msx-news-hero-date {
    display: block;
    margin-bottom: 12px;
    color: var(--msx-primary, #2365ed);
    font-size: 14px;
}
.msx-news-hero-title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--msx-primary-deep, #011537);
}
.msx-news-hero-title a { color: inherit; text-decoration: none; }
.msx-news-hero-title a:hover { color: var(--msx-primary, #2365ed); }
.msx-news-hero-desc {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.9;
    color: #6b7484;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.msx-news-hero-more {
    display: inline-block;
    padding: 9px 24px;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    background: var(--msx-primary, #2365ed);
    text-decoration: none;
    transition: background .25s;
}
.msx-news-hero-more:hover { background: #1b56cf; }
.msx-news-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.msx-news-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8edf5;
    transition: box-shadow .3s;
}
.msx-news-card:hover { box-shadow: 0 10px 24px rgba(1, 21, 55, .10); }
.msx-news-card-img {
    display: block;
    overflow: hidden;
    background: #eef2f8;
}
.msx-news-card-img img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .5s ease;
}
.msx-news-card:hover .msx-news-card-img img { transform: scale(1.04); }
.msx-news-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.msx-news-card-date { font-size: 13px; color: #9aa3b3; margin-bottom: 8px; }
.msx-news-card-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}
.msx-news-card-title a { color: var(--msx-primary-deep, #011537); text-decoration: none; }
.msx-news-card-title a:hover { color: var(--msx-primary, #2365ed); }
.msx-news-card-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #7b8494;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 产品版式：大图双列卡片 ---------- */
.msx-prod-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.msx-prod-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8edf5;
    transition: box-shadow .3s;
}
.msx-prod-card:hover { box-shadow: 0 10px 26px rgba(1, 21, 55, .10); }
.msx-prod-card-img {
    display: block;
    overflow: hidden;
    background: #eef2f8;
    min-height: 220px;
}
.msx-prod-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.msx-prod-card:hover .msx-prod-card-img img { transform: scale(1.04); }
.msx-prod-card-body { display: flex; flex-direction: column; justify-content: center; padding: 28px 26px; }
.msx-prod-card-title { margin: 0 0 10px; font-size: 20px; font-weight: 700; color: var(--msx-primary-deep, #011537); }
.msx-prod-card-title a { color: inherit; text-decoration: none; }
.msx-prod-card-title a:hover { color: var(--msx-primary, #2365ed); }
.msx-prod-card-desc {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.85;
    color: #6b7484;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.msx-prod-card-more {
    display: inline-block;
    width: max-content;
    padding: 8px 20px;
    border-radius: 4px;
    border: 1px solid var(--msx-primary, #2365ed);
    color: var(--msx-primary, #2365ed);
    font-size: 13px;
    text-decoration: none;
    transition: all .25s;
}
.msx-prod-card-more:hover { color: #fff; background: var(--msx-primary, #2365ed); }

/* ---------- 解决方案版式：图文交替 ---------- */
.msx-sol-list { display: block; }
.msx-sol-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 28px 0 52px;
}
.msx-sol-item + .msx-sol-item { border-top: 1px solid #eef1f6; }
.msx-sol-item.msx-sol-reverse { grid-template-columns: 1fr 1.2fr; }
.msx-sol-item.msx-sol-reverse .msx-sol-copy { order: -1; }
.msx-sol-num {
    font-size: 15px;
    font-weight: 700;
    color: var(--msx-primary, #2365ed);
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.msx-sol-pic {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #eef2f8;
}
.msx-sol-pic img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .5s ease;
}
.msx-sol-item:hover .msx-sol-pic img { transform: scale(1.03); }
.msx-sol-copy { padding: 8px 0; }
.msx-sol-title { margin: 0 0 14px; font-size: 24px; font-weight: 700; color: var(--msx-primary-deep, #011537); }
.msx-sol-title a { color: inherit; text-decoration: none; }
.msx-sol-title a:hover { color: var(--msx-primary, #2365ed); }
.msx-sol-desc {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.9;
    color: #6b7484;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.msx-sol-more {
    display: inline-block;
    padding: 9px 24px;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    background: var(--msx-primary-deep, #011537);
    text-decoration: none;
    transition: background .25s;
}
.msx-sol-more:hover { background: var(--msx-primary, #2365ed); }

/* ---------- 案例版式：卡片网格 + 徽标墙 ---------- */
.msx-case-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.msx-case-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8edf5;
    transition: box-shadow .3s;
}
.msx-case-card:hover { box-shadow: 0 10px 26px rgba(1, 21, 55, .10); }
.msx-case-card-img { display: block; overflow: hidden; background: #eef2f8; min-height: 190px; }
.msx-case-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.msx-case-card:hover .msx-case-card-img img { transform: scale(1.04); }
.msx-case-card-body { display: flex; flex-direction: column; justify-content: center; padding: 24px 22px; }
.msx-case-card-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--msx-primary-deep, #011537); }
.msx-case-card-title a { color: inherit; text-decoration: none; }
.msx-case-card-title a:hover { color: var(--msx-primary, #2365ed); }
.msx-case-card-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #7b8494;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.msx-logo-wall {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 44px;
}
.msx-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    padding: 16px;
    border: 1px solid #e8edf5;
    border-radius: 8px;
    background: #fff;
    transition: border-color .25s;
}
.msx-logo-item img { max-width: 86%; max-height: 68%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: all .3s; }
.msx-logo-item:hover { border-color: #c9d8f5; }
.msx-logo-item:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- 公司版式：图文混排 + 数据条 ---------- */
.msx-company-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 56px;
    align-items: center;
}
.msx-company-copy { padding: 16px 0; }
.msx-company-copy h2 { margin: 0 0 20px; font-size: 28px; font-weight: 700; color: var(--msx-primary-deep, #011537); line-height: 1.4; }
.msx-company-copy p { margin: 0 0 16px; font-size: 15px; line-height: 2; color: #5f6878; }
.msx-company-pic { display: block; border-radius: 10px; overflow: hidden; background: #eef2f8; }
.msx-company-pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.msx-stat-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 56px;
    padding: 32px 28px;
    border-radius: 10px;
    background: var(--msx-primary-deep, #011537);
}
.msx-stat-item { text-align: center; }
.msx-stat-num { font-size: 34px; font-weight: 700; color: #fff; }
.msx-stat-label { margin-top: 6px; font-size: 13px; letter-spacing: 1px; color: rgba(226, 236, 255, .75); }

/* ---------- 分页 & 空状态 ---------- */
.msx-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 52px;
}
.msx-page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #dfe5ef;
    background: #fff;
    color: #45506a;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: all .2s;
}
.msx-page-btn:hover { border-color: var(--msx-primary, #2365ed); color: var(--msx-primary, #2365ed); }
.msx-page-btn.active { color: #fff; border-color: var(--msx-primary, #2365ed); background: var(--msx-primary, #2365ed); }
.msx-page-btn.disabled { opacity: .45; cursor: not-allowed; }
.msx-page-btn.disabled:hover { border-color: #dfe5ef; color: #45506a; }
.msx-page-info { color: #9aa3b3; padding: 0 4px; }
.msx-empty {
    padding: 80px 20px;
    text-align: center;
    color: #9aa3b3;
}
.msx-empty-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #f1f4fa;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .msx-pbanner { min-height: 260px; }
    .msx-pbanner-title { font-size: 30px; }
    .msx-sec { padding: 56px 0; }
    .msx-news-hero { grid-template-columns: 1fr; padding: 20px; }
    .msx-news-cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .msx-prod-list { grid-template-columns: 1fr; }
    .msx-sol-item, .msx-sol-item.msx-sol-reverse { grid-template-columns: 1fr; gap: 24px; }
    .msx-sol-item.msx-sol-reverse .msx-sol-copy { order: 0; }
    .msx-case-list { grid-template-columns: 1fr; }
    .msx-logo-wall { grid-template-columns: repeat(3, 1fr); }
    .msx-company-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
    .msx-pbanner { min-height: 220px; }
    .msx-pbanner-title { font-size: 26px; }
    .msx-pbanner-inner { padding: 60px 0 44px; }
    .msx-sec { padding: 44px 0; }
    .msx-sec-head-title { font-size: 24px; }
    .msx-news-cards { grid-template-columns: 1fr; }
    .msx-news-hero-title { font-size: 19px; }
    .msx-prod-card { grid-template-columns: 1fr; }
    .msx-prod-card-img { min-height: 180px; }
    .msx-case-card { grid-template-columns: 1fr; }
    .msx-logo-wall { grid-template-columns: repeat(2, 1fr); }
    .msx-stat-bar { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .msx-sol-item { padding: 20px 0 36px; gap: 18px; }
}

/* ---------- 产品分类侧栏布局（参考 demo.wuwenhui.cn/router.html） ---------- */
.msx-prod-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 36px;
    align-items: start;
}
.msx-cat-side {
    border: 1px solid #e8edf5;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.msx-cat-head {
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--msx-primary-deep, #011537);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.msx-cat-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}
.msx-cat-item { padding: 0; }
.msx-cat-item > a {
    display: block;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #33405c;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all .2s;
}
.msx-cat-item > a:hover { color: var(--msx-primary, #2365ed); background: #f5f8fe; }
.msx-cat-item.active > a { color: var(--msx-primary, #2365ed); background: #f0f5ff; border-left-color: var(--msx-primary, #2365ed); }
.msx-cat-sub {
    list-style: none;
    margin: 0;
    padding: 0 0 6px;
}
.msx-cat-sub-item > a {
    display: block;
    padding: 8px 20px 8px 38px;
    font-size: 14px;
    color: #5f6878;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all .2s;
}
.msx-cat-sub-item > a:hover { color: var(--msx-primary, #2365ed); background: #f8fafd; }
.msx-cat-sub-item.active > a { color: var(--msx-primary, #2365ed); background: #f0f5ff; border-left-color: var(--msx-primary, #2365ed); }
.msx-cat-sub-item.sub2 > a { padding-left: 56px; }
.msx-prod-main { min-width: 0; }
/* 产品卡片改竖排紧凑式：图 + 型号 + 卖点 */
.msx-prod-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.msx-prod-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8edf5;
    transition: box-shadow .3s;
}
.msx-prod-card:hover { box-shadow: 0 10px 26px rgba(1, 21, 55, .10); }
.msx-prod-card-img { display: block; overflow: hidden; background: #eef2f8; }
.msx-prod-card-img img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .5s ease;
}
.msx-prod-card:hover .msx-prod-card-img img { transform: scale(1.04); }
.msx-prod-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.msx-prod-card-title { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--msx-primary-deep, #011537); }
.msx-prod-card-title a { color: inherit; text-decoration: none; }
.msx-prod-card-title a:hover { color: var(--msx-primary, #2365ed); }
.msx-prod-card-desc {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.8;
    color: #7b8494;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.msx-prod-card-more {
    display: inline-block;
    width: max-content;
    margin-top: auto;
    padding: 7px 18px;
    border-radius: 4px;
    border: 1px solid var(--msx-primary, #2365ed);
    color: var(--msx-primary, #2365ed);
    font-size: 13px;
    text-decoration: none;
    transition: all .25s;
}
.msx-prod-card-more:hover { color: #fff; background: var(--msx-primary, #2365ed); }
@media (max-width: 1024px) {
    .msx-prod-layout { grid-template-columns: 1fr; gap: 20px; }
    .msx-cat-side { overflow-x: auto; }
    .msx-cat-list { display: flex; flex-wrap: nowrap; padding: 0; }
    .msx-cat-item { flex: 0 0 auto; }
    .msx-cat-item > a { border-left: none; border-bottom: 3px solid transparent; }
    .msx-cat-item.active > a { border-left: none; border-bottom-color: var(--msx-primary, #2365ed); }
    .msx-cat-sub { display: none; }
    .msx-prod-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .msx-prod-list { grid-template-columns: 1fr; }
}
