/* =====================================================================
   Board Mount 分类页(SEO模块化模板) 变体样式
   仅补充 Cartzilla theme 没有的变体; 基础组件(accordion/product-card/
   widget-list/faq-box)全部复用 style.min.css / editor-content.css
   ===================================================================== */

/* ---------- 模块通用: 区块标题(黑粗+红色短下划线装饰) ---------- */
.cp-sec-title { font-size: 1.25rem; font-weight: 700; color: #1a1a1a; margin-bottom: 1rem; padding-bottom: .5rem; position: relative; }
.cp-sec-title::after { content: ""; display: block; width: 3rem; height: 3px; background: #c3102f; margin-top: .4rem; border-radius: 2px; }

/* ---------- 模块1: 左图右文介绍卡 ---------- */
.cp-intro-media { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; border-right: 1px solid #f0f0f0; }
.cp-intro-media img { max-width: 200px; max-height: 160px; object-fit: contain; }
.cp-intro-media .cp-cat-name { font-weight: 700; margin-top: .75rem; }
.cp-intro-media .cp-results { color: #6b7280; font-size: .8125rem; }
.cp-intro-scroll { max-height: 320px; overflow-y: auto; padding-right: .5rem; }
.cp-intro-scroll p { font-size: .875rem; color: #4b5563; line-height: 1.7; }
@media (max-width: 767.98px) {
    .cp-intro-media { border-right: 0; border-bottom: 1px solid #f0f0f0; }
    .cp-intro-scroll { max-height: none; overflow: visible; } /* 移动端取消嵌套滚动 */
}

/* ---------- 模块2: 子类手风琴(Cartzilla accordion 变体) ---------- */
.cp-cat .card-header { background: #f8f9fb; padding: .55rem 1rem; }
.cp-cat.is-open > .card-header { background: #fbeef0; border-color: #f3c7ce; }
.cp-cat.is-open .accordion-heading a { color: #c3102f; }
.cp-cat-head-inner { display: flex; align-items: center; font-size: .9375rem; }
.cp-cat-thumb { width: 34px; height: 34px; object-fit: contain; margin-right: .65rem; border-radius: 4px; background: #fff; }
.cp-cat-head-inner .cp-cat-title { font-weight: 600; color: inherit; }
.cp-cat-head-inner .cp-cat-num { color: #6b7280; font-size: .8125rem; margin-left: .35rem; }
.cp-cat-head-inner .accordion-indicator { margin-left: auto; }
.cp-cat-body-media { flex: 0 0 180px; }
.cp-cat-body-media img { width: 180px; height: 135px; object-fit: contain; border-radius: 6px; border: 1px solid #ececec; background: #fff; }
.cp-cat-desc { color: #4b5563; font-size: .875rem; line-height: 1.65; }
@media (max-width: 575.98px) { .cp-cat-body-media { flex-basis: 100%; margin-bottom: .75rem; } }

/* ---------- 模块3: 推荐制造商品牌条(浅粉底+红描边容器+左侧红竖条标题) ---------- */
.cp-mfr-bar { display: flex; align-items: stretch; background: #fbeef0; border: 1px solid #c3102f; border-radius: 10px; padding: 1rem 1.25rem; }
.cp-mfr-label { flex: 0 0 auto; display: flex; align-items: center; padding-left: .85rem; position: relative; font-weight: 700; color: #1a1a1a; line-height: 1.25; margin-right: 1.5rem; }
.cp-mfr-label::before { content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 4px; border-radius: 2px; background: #c3102f; }
.cp-mfr-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; flex: 1 1 auto; gap: .6rem .75rem; min-width: 0; }
.cp-mfr-logo { display: flex; align-items: center; justify-content: center; height: 40px; flex: 1 1 0; min-width: 0; }
.cp-mfr-logo img { max-height: 40px; max-width: 118px; object-fit: contain; }
.cp-mfr-logo .cp-mfr-name { font-weight: 600; color: #374151; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 767.98px) { .cp-mfr-label { margin-right: 0; margin-bottom: .75rem; } .cp-mfr-bar { flex-direction: column; } }

/* ---------- 模块4: 精选产品行卡(参考图05: 左图+竖分隔线+右文字, 白底细边小圆角) ---------- */
.cp-pro-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; padding: .75rem; transition: box-shadow .2s, border-color .2s; }
.cp-pro-card:hover { border-color: #c3102f; box-shadow: 0 4px 12px rgba(195,16,47,.08); }
.cp-pro-thumb { flex: 0 0 96px; align-self: stretch; border-right: 1px solid #ececec; margin-right: .85rem; }
.cp-pro-thumb img { width: 96px; height: 96px; object-fit: contain; }
.cp-pro-body { flex: 1 1 auto; min-width: 0; }
.cp-pro-body .product-meta { color: #374151; }
.cp-part-link { color: #c3102f; text-decoration: underline; }
.cp-part-link:hover { color: #9d0b26; }
.cp-pro-desc { color: #6b7280; font-size: .75rem; line-height: 1.4; min-height: 2.1em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-qty { width: 3.8rem; }
.cp-feat-head .cp-sec-title { margin-bottom: 0; }
@media (max-width: 575.98px) {
    .cp-pro-thumb { flex-basis: 76px; }
    .cp-pro-thumb img { width: 76px; height: 76px; }
}

/* ---------- 模块5: 全部制造商(5列网格 + pill 按钮 + 分隔线构图) ---------- */
.col-xl-20p { -ms-flex: 0 0 20%; flex: 0 0 20%; max-width: 20%; }
@media (min-width: 1200px) { .col-xl-20p { -ms-flex: 0 0 20%; flex: 0 0 20%; max-width: 20%; } }
/* 2026-11-20 手机端撑开修复(续): 模板 d-block 的 display:block!important 定义在 style.min.css 且
   加载顺序在 catpage 之后, 同优先级压掉 flex; 用 a.cp-allmfr-item(特异性0,1,1)稳定压过 .d-block(0,1,0),
   成为 flex 容器后配合 .cp-am-name 的 min-width:0 + ellipsis 才能真正截断长厂商名 */
a.cp-allmfr-item { display: flex !important; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: .5rem .75rem; font-size: .875rem; }
.cp-allmfr-item:hover { border-color: #c3102f; text-decoration: none; }
/* 2026-11-20 手机端撑开修复: flex子项默认min-width:auto, 长厂商名单词会撑破两列网格;
   加 min-width:0 让 nowrap+ellipsis 真正在窄列内截断 */
.cp-allmfr-item .cp-am-name { font-weight: 600; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
.cp-allmfr-item .cp-am-num { color: #6b7280; font-size: .75rem; white-space: nowrap; flex: 0 0 auto; }
.cp-allmfr-more { display: flex; align-items: center; margin-top: 1rem; }
.cp-allmfr-more hr { border-color: #e8e8e8; }

/* ---------- FAQ(复用 editor-content.css faq-box; 旧结构全站兼容见文件末尾) ---------- */
.cp-faq .faq-number { min-width: 36px; }
