/* ============================================================
   2026-11-17 产品列表页卡片化
   一级：lists_pro.html  → .pro-cat-grid / .pro-cat-tile
   二级：lists_pro2.html → .pro-sub-grid / .pro-sub-card
   统一使用 pro- 前缀，与旧的 .productList/.productCat/.productPic
   完全解耦，删掉 base.html 里本文件的引用即可整体回退。
   ============================================================ */

/* ---------------- 一级：产品分类 ---------------- */
.pro-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 1080px;
    max-width: calc(100% - 30px);
    margin: 56px auto 72px
}

.pro-cat-tile {
    display: block;
    background: #fff;
    border: 1px solid #e8efe9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(31, 74, 46, .06);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease
}

.pro-cat-tile:hover {
    transform: translateY(-4px);
    border-color: #bcdcc4;
    box-shadow: 0 16px 34px rgba(31, 74, 46, .13)
}

.pro-cat-thumb {
    position: relative;
    padding-top: 72%;
    overflow: hidden;
    background: #f4f8f4
}

.pro-cat-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease
}

.pro-cat-tile:hover .pro-cat-thumb img {
    transform: scale(1.05)
}

.pro-cat-name {
    padding: 18px 14px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #1f4a2e;
    letter-spacing: .5px
}

/* ---------------- 二级：子分类 + 产品条目 ---------------- */
.pro-sub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    width: 1080px;
    max-width: calc(100% - 30px);
    margin: 56px auto 72px
}

.pro-sub-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e8efe9;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(31, 74, 46, .06)
}

.pro-sub-media {
    flex: 0 0 158px;
    width: 158px;
    height: 158px;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f8f4
}

.pro-sub-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.pro-sub-body {
    flex: 1;
    min-width: 0
}

.pro-sub-body h3 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
    color: #1f4a2e;
    font-weight: 700
}

.pro-sub-links {
    margin: 0;
    padding: 0;
    list-style: none
}

.pro-sub-links li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 6px
}

.pro-sub-links li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #9ed0aa
}

.pro-sub-links li:last-child {
    margin-bottom: 0
}

.pro-sub-links a {
    font-size: 13.5px;
    line-height: 1.65;
    color: #5a6b60;
    word-break: break-word
}

.pro-sub-links a:hover {
    color: #2c7a42
}

.pro-sub-empty {
    margin: 0;
    font-size: 13.5px;
    color: #8a9a90
}

/* ---------------- 响应式 ---------------- */
@media screen and (max-width: 1080px) {
    .pro-cat-grid,
    .pro-sub-grid {
        gap: 18px;
        margin-top: 40px;
        margin-bottom: 56px
    }

    .pro-sub-card {
        padding: 16px;
        gap: 16px
    }

    .pro-sub-media {
        flex-basis: 130px;
        width: 130px;
        height: 130px
    }
}

@media screen and (max-width: 820px) {
    .pro-cat-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .pro-sub-grid {
        grid-template-columns: 1fr
    }
}

@media screen and (max-width: 520px) {
    .pro-cat-grid,
    .pro-sub-grid {
        max-width: calc(100% - 24px);
        margin-bottom: 40px
    }

    .pro-cat-grid {
        grid-template-columns: 1fr
    }

    .pro-cat-name {
        padding: 14px 12px;
        font-size: 15px
    }

    .pro-sub-card {
        padding: 14px;
        gap: 14px
    }

    .pro-sub-media {
        flex-basis: 104px;
        width: 104px;
        height: 104px
    }
}

/* ---------------- 三级：具体产品网格底部留白 ----------------
   style.css 里 .pd_s_1_img3 把 margin-bottom 覆盖成了 0，
   导致列表紧贴页脚；本文件后加载，同特异性覆盖回正常留白。 */
.pd_s_1_img3 {
    margin-bottom: 72px
}

@media screen and (max-width: 1080px) {
    .pd_s_1_img3 {
        margin-bottom: 56px
    }
}

@media screen and (max-width: 520px) {
    .pd_s_1_img3 {
        margin-bottom: 40px
    }
}

/* ============================================================
   产品详情（show_pro.html）正文
   ------------------------------------------------------------------
   正文容器沿用 solutions-refresh.css 里的 .sol-richtext 卡片排版，
   这里只补产品描述特有的处理：
   1) UEditor 里常用 float:left 让文字绕图，读起来很挤 → 统一取消浮动居中
   2) 分节标题（商品优势 / 典型应用 / 技术参数）字号被内层 span 压回 16px → 提权
   3) 技术参数表格列多，宽度交给 .sol-richtext 的 table 规则自适应
   ============================================================ */

.sol-richtext img {
    float: none !important
}

/* 分节标题：覆盖内层 span 的内联字号 */
.sol-richtext p > span[style*="color: rgb(0, 176, 80)"] span,
.sol-richtext p > span[style*="color:rgb(0, 176, 80)"] span {
    font-size: inherit !important
}

/* 产品详情的分节标题加一条下划分隔，段落层次更清楚 */
.publicny > .sol-richtext p > span[style*="color: rgb(0, 176, 80)"],
.publicny > .sol-richtext p > span[style*="color:rgb(0, 176, 80)"] {
    display: block;
    padding-bottom: 8px;
    margin: 8px 0 4px;
    border-bottom: 1px solid #e2eae4
}

.publicny > .sol-richtext table {
    width: 100%
}

/* 产品详情窄屏：responsive.css 把 .yyss 强制成 width:100%!important，
   会让卡片贴边，这里显式恢复左右留白（application 详情有 .sol-body 前缀的规则，不受影响） */
@media screen and (max-width: 1080px) {
    .publicny > .sol-richtext {
        width: auto !important;
        max-width: none !important;
        margin: 0 12px 32px !important;
        padding: 30px 24px 34px
    }
}

@media screen and (max-width: 520px) {
    .publicny > .sol-richtext {
        margin: 0 10px 28px !important;
        padding: 24px 18px 28px
    }
}
