@charset "utf-8";
/* ============================================================================
   中恒钛航 · 全站产品列表页  cp-list.css  v1
   ----------------------------------------------------------------------------
   ★ 放置：[!--news.url--]hcss/cp-list.css（与产品中心 / 各大类封面页同目录）
     模板里已加引用，且放在 css/m-fix.css 之后，权重最高。
   ★ 依赖（均已在原模板引用，无需重复上传）：
     css/base.css  css/chanpin.css  css/chanpin_cate.css  css/m-fix.css
   ★ 作用域：所有规则锁在 #cpListGrid / .cpl- 前缀下，不改整站页头页脚。
     原 .product-cen-list（chanpin_cate.css）与 .product_center_list（chanpin.css）
     的 3 列规则由 #cpListGrid 高权重覆盖为 4 列，其余样式保持不动。
   ★ 配色：深空蓝 #0A2540 + 钛橙 #E67E22 + 钛银灰（与产品中心 v2 同款白底）
   ============================================================================ */

/* ---------------------------------------------------------------------------
   一、Hero 白底卡片（banner 下方，避免两片蓝连成一片）
   --------------------------------------------------------------------------- */
.cpl-hero { background: #F5F7FA; padding: 18px 0 4px; }
.cpl-hero-in {
    max-width: 1400px; margin: 0 auto; padding: 20px 24px 22px;
    background: #FFFFFF; border: 1px solid #E6E9EE; border-radius: 12px;
    box-shadow: 0 2px 14px rgba(10, 37, 64, .05);
}
.cpl-hero-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.cpl-hero-tag {
    font-size: 12px; color: #44546A; background: #F1F5F9;
    border: 1px solid #E6E9EE; border-radius: 20px; padding: 4px 12px;
}
.cpl-hero-tag.alt { color: #8B9DC3; background: #FFFFFF; }
.cpl-hero-sum {
    margin: 0; font-size: 14px; line-height: 1.85; color: #44546A;
    text-align: justify; padding-left: 12px; border-left: 3px solid #E67E22;
}
.cpl-hero-sum b { color: #0A2540; font-size: 16px; }
.cpl-note {
    margin: 12px 0 0; padding: 9px 12px; font-size: 12.5px; line-height: 1.7;
    color: #8A5A00; background: #FFF7E8; border: 1px solid #F5D9A8; border-radius: 8px;
}
.cpl-hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #EEF1F5; }
.cpl-hero-links a {
    font-size: 12.5px; color: #44546A; text-decoration: none;
    border: 1px solid #E1E6EC; border-radius: 18px; padding: 5px 14px; transition: .15s;
}
.cpl-hero-links a:hover { color: #FFFFFF; background: #0A2540; border-color: #0A2540; }

/* ---------------------------------------------------------------------------
   二、轻量三级筛选（牌号 / 供货状态 / 关键词）
   --------------------------------------------------------------------------- */
.cpl-filter {
    max-width: 1400px; margin: 18px auto 0; padding: 18px 24px 16px;
    background: #FFFFFF; border: 1px solid #E6E9EE; border-radius: 12px;
}
.cpl-frow { display: flex; align-items: flex-start; gap: 14px; padding: 9px 0; border-bottom: 1px dashed #EEF1F5; }
.cpl-frow:last-of-type { border-bottom: 0; }
.cpl-flab {
    flex: 0 0 132px; font-size: 13.5px; font-weight: 700; color: #0A2540;
    padding-top: 6px; white-space: nowrap;
}
.cpl-flab i { display: block; font-style: normal; font-size: 11px; font-weight: 400; color: #8B9DC3; margin-top: 3px; }
.cpl-tags { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.cpl-tag {
    font-size: 12.5px; color: #44546A; background: #F7F9FC;
    border: 1px solid #E1E6EC; border-radius: 18px; padding: 5px 14px;
    cursor: pointer; transition: .15s; white-space: nowrap;
}
.cpl-tag small { font-size: 11px; color: #8B9DC3; margin-left: 5px; }
.cpl-tag:hover { border-color: #0A2540; color: #0A2540; }
.cpl-tag.on { background: #0A2540; border-color: #0A2540; color: #FFFFFF; }
.cpl-tag.on small { color: rgba(255,255,255,.72); }
.cpl-tag[data-extra="1"] { display: none; }
.cpl-filter.more .cpl-tag[data-extra="1"] { display: inline-block; }
.cpl-toggle {
    font-size: 12.5px; color: #E67E22; background: #FFFFFF; border: 1px dashed #E67E22;
    border-radius: 18px; padding: 5px 14px; cursor: pointer;
}
.cpl-kw {
    flex: 1; min-width: 0; max-width: 520px; font-size: 13px; color: #0A2540;
    border: 1px solid #E1E6EC; border-radius: 20px; padding: 7px 16px; outline: none;
}
.cpl-kw:focus { border-color: #E67E22; box-shadow: 0 0 0 3px rgba(230,126,34,.10); }
.cpl-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; min-height: 22px; }
.cpl-pills-lab { font-size: 12px; color: #8B9DC3; margin-right: 2px; }
.cpl-pill {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
    color: #0A2540; background: #EAF1F8; border: 1px solid #D6E2EF;
    border-radius: 16px; padding: 4px 6px 4px 12px;
}
.cpl-pill button {
    border: 0; background: #FFFFFF; color: #6B7A8F; border-radius: 50%;
    width: 17px; height: 17px; line-height: 15px; text-align: center; cursor: pointer; font-size: 13px;
}
.cpl-clr {
    font-size: 12px; color: #E67E22; background: transparent;
    border: 1px solid #F0C79A; border-radius: 16px; padding: 4px 12px; cursor: pointer;
}

/* ---------------------------------------------------------------------------
   三、产品网格：桌面 4 列（覆盖原 3 列）
   --------------------------------------------------------------------------- */
#cpListGrid {
    display: flex !important; flex-wrap: wrap !important;
    gap: 16px !important; padding: 0 !important; margin: 0 !important;
}
#cpListGrid > dl.cpl-card {
    flex: 0 0 calc(25% - 12px) !important;
    max-width: calc(25% - 12px) !important;
    margin: 0 !important; border: 1px solid #E6E9EE !important;
    border-radius: 10px !important; background: #FFFFFF !important;
    box-shadow: none !important;
    display: flex; flex-direction: column; overflow: hidden;
    box-sizing: border-box; position: relative;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
#cpListGrid > dl.cpl-card::after { content: none !important; }
#cpListGrid > dl.cpl-card:hover {
    transform: translateY(-3px); border-color: #D6DEE8 !important;
    box-shadow: 0 12px 30px rgba(10, 37, 64, .11) !important;
}
#cpListGrid > dl.cpl-card.hide { display: none !important; }

/* 图片区（16:10，无图占位） */
#cpListGrid dt.cpl-img {
    position: relative; width: 100%; margin: 0; padding: 0;
    aspect-ratio: 16 / 10; background: #F0F4F8; overflow: hidden; float: none;
}
#cpListGrid dt.cpl-img > a { display: block; width: 100%; height: 100%; }
#cpListGrid dt.cpl-img img {
    position: absolute; inset: 0; display: block; width: 100%; height: 100%;
    max-height: none; object-fit: cover; border: 0;
    filter: saturate(.92); transition: transform .5s ease, filter .35s ease;
}
#cpListGrid > dl.cpl-card:hover dt.cpl-img img { transform: scale(1.06); filter: saturate(1.1); }
#cpListGrid dt.cpl-img.noimg img { display: none; }
.cpl-ph {
    display: none; position: absolute; inset: 0; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 800; letter-spacing: 1px; color: rgba(255,255,255,.95);
    text-shadow: 0 2px 14px rgba(0,0,0,.25);
    background: linear-gradient(135deg, #1E4E7E, #2C6EA8);
}
#cpListGrid dt.cpl-img.noimg .cpl-ph { display: flex; }
.cpl-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    font-size: 11.5px; font-weight: 700; color: #8B9DC3;
    background: rgba(255,255,255,.95); border-radius: 20px; padding: 3px 10px;
}
.cpl-badge.s { color: #0E7C4A; } .cpl-badge.p { color: #C2410C; }
.cpl-badge.m { color: #6B7A8F; } .cpl-badge.n { color: #8B9DC3; }

/* 信息区 */
#cpListGrid dd.cpl-bd {
    margin: 0; padding: 13px 15px 15px; height: auto;
    display: flex; flex-direction: column; flex: 1; min-width: 0;
}
#cpListGrid dd.cpl-bd h3 {
    margin: 0 0 7px; height: auto; line-height: 1.45;
    font-size: 14.5px; font-weight: 700; color: #0A2540;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
#cpListGrid dd.cpl-bd h3 a { color: #0A2540; text-decoration: none; display: inline; }
#cpListGrid > dl.cpl-card:hover dd.cpl-bd h3 a { color: #E67E22; }
.cpl-spec {
    font-size: 12.5px; color: #6B7A8F; margin: 0 0 5px; min-height: 0; max-height: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.6;
    display: block; -webkit-line-clamp: unset; -webkit-box-orient: unset;
}
.cpl-spec:empty::before { content: '规格来电确认'; color: #8B9DC3; }
.cpl-std {
    font-size: 12px; color: #8B9DC3; margin: 0; line-height: 1.6;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cpl-std i {
    font-style: normal; background: #F1F5F9; color: #7A8AA0;
    border-radius: 4px; padding: 1px 6px; margin-right: 6px; font-size: 11px;
}
.cpl-std-v:empty::before { content: '以随货 MTC 为准'; }

/* ★ 两按钮等宽、强制同一行（最新统一口径，无大类/子类标签） */
.cpl-ft {
    display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
    padding-top: 11px; border-top: 1px dashed #E6E9EE; margin-top: auto;
}
.cpl-btn {
    flex: 1 1 0; min-width: 0; text-align: center; font-size: 12px;
    border: 1px solid #E1E6EC; border-radius: 16px; padding: 5px 4px;
    color: #44546A; background: #FFFFFF; white-space: nowrap;
    text-decoration: none; cursor: pointer; transition: .15s;
}
.cpl-btn:hover { border-color: #0A2540; color: #0A2540; }
.cpl-btn.primary { background: #E67E22; border-color: #E67E22; color: #FFFFFF; }
.cpl-btn.primary:hover { background: #D35400; border-color: #D35400; color: #FFFFFF; }
#cpListGrid .clear, #cpListGrid .product-cen-list-desc { display: none !important; }

/* 触屏设备：hover 不粘滞 */
@media (hover: none) and (pointer: coarse) {
    #cpListGrid > dl.cpl-card:hover {
        transform: none; box-shadow: none !important; border-color: #E6E9EE !important;
    }
    #cpListGrid > dl.cpl-card:hover dt.cpl-img img { transform: none; filter: saturate(.92); }
    #cpListGrid > dl.cpl-card:hover dd.cpl-bd h3 a { color: #0A2540; }
}

/* ---------------------------------------------------------------------------
   四、空态 / 加载更多 / 提示
   --------------------------------------------------------------------------- */
.cpl-empty {
    display: none; max-width: 1400px; margin: 16px auto 0; padding: 48px 20px;
    text-align: center; background: #FFFFFF; border: 1px dashed #D6DEE8; border-radius: 12px;
}
.cpl-empty.show { display: block; }
.cpl-empty b { display: block; font-size: 16px; color: #0A2540; margin-bottom: 8px; }
.cpl-empty span { font-size: 13.5px; color: #6B7A8F; line-height: 1.8; }
.cpl-empty-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.cpl-empty-btns a {
    font-size: 13px; color: #FFFFFF; background: #0A2540;
    border-radius: 22px; padding: 9px 22px; text-decoration: none;
}
.cpl-empty-btns a + a { background: #E67E22; }
.cpl-more {
    display: none; margin: 0 auto 8px; padding: 11px 34px;
    border: 1px solid #E1E6EC; background: #FFFFFF; border-radius: 26px;
    font-size: 13.5px; color: #44546A; align-items: center; gap: 6px;
    cursor: pointer; transition: .15s;
}
.cpl-more.show { display: flex; }
.cpl-more b { color: #E67E22; font-size: 15px; }
.cpl-more:hover { border-color: #0A2540; color: #0A2540; box-shadow: 0 6px 18px rgba(10,37,64,.07); }
.cpl-all { display: none; text-align: center; font-size: 12.5px; color: #8B9DC3; margin: 0 0 8px; }
.cpl-all.show { display: block; }
.cpl-warn {
    max-width: 1400px; margin: 12px auto; padding: 10px 14px; font-size: 12.5px;
    line-height: 1.7; color: #8A5A00; background: #FFF7E8;
    border: 1px solid #F5D9A8; border-radius: 8px;
}
.cpl-warn[hidden] { display: none !important; }

/* ---------------------------------------------------------------------------
   五、同牌号跨栏目互链 / 相关入口
   --------------------------------------------------------------------------- */
.cpl-cross, .cpl-links {
    max-width: 1400px; margin: 22px auto 0; padding: 20px 24px 22px;
    background: #FFFFFF; border: 1px solid #E6E9EE; border-radius: 12px;
}
.cpl-cross h2, .cpl-links h2 {
    margin: 0 0 6px; font-size: 17px; color: #0A2540; font-weight: 700;
    padding-left: 12px; border-left: 4px solid #E67E22;
}
.cpl-cross h2 em { font-style: normal; font-size: 11px; color: #8B9DC3; margin-left: 10px; letter-spacing: 1px; }
.cpl-cross-lead { margin: 0 0 14px; font-size: 12.5px; color: #8B9DC3; line-height: 1.7; }
.cpl-cross-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cpl-cross-card {
    display: block; padding: 12px 14px; border: 1px solid #E6E9EE; border-radius: 10px;
    background: #F9FBFD; text-decoration: none; transition: .15s; min-width: 0;
}
.cpl-cross-card:hover { border-color: #E67E22; background: #FFF8F1; transform: translateY(-2px); }
.cpl-cross-grade { display: inline-block; font-size: 11px; color: #E67E22; font-weight: 700; margin-bottom: 5px; }
.cpl-cross-card b { display: block; font-size: 13px; color: #0A2540; line-height: 1.5;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpl-cross-card small { display: block; font-size: 11.5px; color: #8B9DC3; margin-top: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpl-cross-more { display: inline-block; margin-top: 14px; font-size: 12.5px; color: #E67E22; text-decoration: none; }
.cpl-links-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.cpl-links-grid a { display: block; padding: 14px 16px; border: 1px solid #E6E9EE;
    border-radius: 10px; text-decoration: none; background: #F9FBFD; transition: .15s; }
.cpl-links-grid a:hover { border-color: #0A2540; background: #FFFFFF; }
.cpl-links-grid b { display: block; font-size: 14px; color: #0A2540; margin-bottom: 4px; }
.cpl-links-grid span { display: block; font-size: 12px; color: #8B9DC3; line-height: 1.6; }

/* ---------------------------------------------------------------------------
   六、扫码询价弹层 + 已复制提示（cp-list.js 动态创建）
   --------------------------------------------------------------------------- */
.cpl-modal-mask {
    position: fixed; inset: 0; z-index: 1300; background: rgba(10, 37, 64, .52);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cpl-modal {
    width: 100%; max-width: 360px; background: #FFFFFF; border-radius: 14px;
    padding: 24px; text-align: center; box-shadow: 0 20px 60px rgba(10,37,64,.28);
}
.cpl-modal h3 { margin: 0 0 8px; font-size: 17px; color: #0A2540; }
.cpl-modal p { margin: 0 0 14px; font-size: 12.5px; line-height: 1.8; color: #6B7A8F; }
.cpl-modal img { width: 168px; height: 168px; object-fit: contain; border: 1px solid #E6E9EE; border-radius: 8px; }
.cpl-modal .cpl-modal-ph {
    width: 168px; height: 168px; margin: 0 auto; display: flex; align-items: center; justify-content: center;
    border: 1px dashed #D6DEE8; border-radius: 8px; color: #8B9DC3; font-size: 12.5px; text-align: center;
}
.cpl-modal-btns { display: flex; gap: 8px; margin-top: 18px; }
.cpl-modal-btns button {
    flex: 1 1 0; font-size: 13px; padding: 9px 8px; border-radius: 20px; cursor: pointer;
    border: 1px solid #E1E6EC; background: #FFFFFF; color: #44546A;
}
.cpl-modal-btns button.cpl-modal-copy { background: #E67E22; border-color: #E67E22; color: #FFFFFF; }
.cpl-toast {
    position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(10px);
    z-index: 1400; background: #0E7C4A; color: #FFFFFF; font-size: 13px;
    padding: 10px 20px; border-radius: 22px; box-shadow: 0 8px 24px rgba(10,37,64,.22);
    opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.cpl-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cpl-toast.err { background: #C2410C; }

/* ---------------------------------------------------------------------------
   七、响应式
   --------------------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
    #cpListGrid > dl.cpl-card { flex: 0 0 calc(33.333% - 11px) !important; max-width: calc(33.333% - 11px) !important; }
    .cpl-cross-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 900px) {
    #cpListGrid > dl.cpl-card { flex: 0 0 calc(50% - 8px) !important; max-width: calc(50% - 8px) !important; }
    .cpl-flab { flex-basis: 108px; }
    .cpl-cross-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cpl-links-grid { grid-template-columns: 1fr; }
}
@media screen and (max-width: 560px) {
    #cpListGrid { gap: 12px !important; }
    #cpListGrid > dl.cpl-card { flex: 0 0 100% !important; max-width: 100% !important; }
    .cpl-hero-in, .cpl-filter, .cpl-cross, .cpl-links { padding-left: 14px; padding-right: 14px; }
    .cpl-frow { flex-direction: column; gap: 6px; }
    .cpl-flab { flex-basis: auto; padding-top: 0; }
    .cpl-kw { max-width: 100%; }
    .cpl-cross-grid { grid-template-columns: 1fr; }
    .cpl-hero-sum { font-size: 13px; }
    .cpl-toast { bottom: 70px; }
}

/* ---------------------------------------------------------------------------
   八、打印：全部产品展开，去掉交互件
   --------------------------------------------------------------------------- */
@media print {
    #cpListGrid > dl.cpl-card.hide { display: flex !important; }
    #cpListGrid > dl.cpl-card { box-shadow: none !important; border: 1px solid #999 !important; break-inside: avoid; }
    #cpListGrid dt.cpl-img { aspect-ratio: auto; height: 120px; }
    .cpl-filter, .cpl-more, .cpl-modal-mask, .cpl-toast, .cpl-hero-links,
    .cpl-cross-more, .cpl-pills, .cpl-warn { display: none !important; }
    .cpl-hero-in, .cpl-cross, .cpl-links { box-shadow: none; border: 1px solid #CCC; }
}
