/* ============================================================
   product-bs.css - 产品详情页 Bootstrap 定制样式
   保留原页面排版：左图右参数 / 产品具体参数表 / 详情图 / 工程案例 / 产品推荐
   ============================================================ */

/* ---------- 绿色栏目标题 ---------- */
.product-h2 {
    margin: 0;
    padding: 6px 24px;
    font-size: 22px;
    font-weight: 400;
    line-height: 40px;
    color: #fff;
    background: #078a60;
    border-radius: 8px 8px 0 0;
}
.product-h2 a {
    color: #fff;
    text-decoration: none;
}

/* ---------- 详情（左图右参数） ---------- */
.product-pics {
    border-radius: 8px;
    overflow: hidden;
}
.product-pics .carousel-item img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    background: #fff;
}
.product-pics .carousel-control-prev,
.product-pics .carousel-control-next {
    width: 44px;
    opacity: 1;
}
.product-pics .carousel-control-prev-icon,
.product-pics .carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-size: 20px;
    background-color: rgba(7, 138, 96, 0.75);
    border-radius: 50%;
}
.product-pics .carousel-control-prev-icon:hover,
.product-pics .carousel-control-next-icon:hover {
    background-color: #078a60;
}

.product-title {
    padding-bottom: 10px;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    color: #000;
    border-bottom: 1px dashed #959595;
}
.product-attrs {
    margin: 0;
}
.product-attrs li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 26px;
    color: #333;
}
.product-attrs b {
    font-weight: 700;
    color: #333;
}
.product-qr {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 20px;
}
.product-qr img.qrcode {
    display: block;
    width: 120px;
    height: 120px;
}
.product-qr span {
    font-size: 14px;
    color: #666;
}
.product-btn {
    display: inline-block;
    min-width: 205px;
    height: 49px;
    padding: 0 24px;
    font-size: 16px;
    line-height: 49px;
    text-align: center;
    color: #fff;
    background: #fa7821;
    border-radius: 6px;
    text-decoration: none;
}
.product-btn:hover,
.product-btn:focus {
    color: #fff;
    background: #e56a15;
    text-decoration: none;
}

/* ---------- 产品具体参数表 ---------- */
.product-params-sub {
    padding: 0 18px;
    font-size: 18px;
    font-weight: 700;
    line-height: 56px;
    text-align: center;
    color: #333;
    background: #efefef;
    border: 1px solid #d3d3d3;
    border-top: 0;
}
.product-params-sub a {
    color: #333;
    text-decoration: none;
}
.product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.product-table th,
.product-table td {
    padding: 0 18px;
    line-height: 33px;
    border: 1px solid #d3d3d3;
    vertical-align: middle;
}
.product-table th {
    width: 14%;
    font-weight: 400;
    text-align: center;
    color: #333;
    background: #f6f6f6;
}
.product-table td {
    color: #333;
}

/* ---------- 详情正文（编辑器输出的图片） ---------- */
.product-content {
    padding-top: 24px;
}
.product-content img {
    max-width: 100% !important;
    height: auto !important;
    border: 1px solid #ccc;
}

/* ---------- 尚禾工程案例 ---------- */
.case-main {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}
.case-main img {
    display: block;
    width: 100%;
    aspect-ratio: 737 / 400;
    object-fit: cover;
}
.case-main-txt {
    position: absolute;
    left: 0;
    top: 0;
    width: 72%;
    margin: 0;
    padding: 20px;
    font-size: 14px;
    line-height: 24px;
    color: #e0e0e0;
    background: rgba(0, 0, 0, 0.55);
}
.case-main-txt em {
    display: block;
    padding-bottom: 9px;
    font-size: 16px;
    font-style: normal;
    color: #fff;
}
.case-thumbs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
}
.case-thumb {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}
.case-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 366 / 195;
    object-fit: cover;
    transition: opacity 0.2s;
}
.case-thumb:hover img {
    opacity: 0.85;
}
.case-thumb-txt {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 37px;
    font-size: 14px;
    line-height: 37px;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
}
.case-thumb.is-active img {
    box-shadow: 0 0 0 2px #078a60 inset;
}

/* ---------- 产品推荐 ---------- */
.product-rec {
    display: block;
    text-decoration: none;
}
.product-rec img {
    display: block;
    width: 100%;
    aspect-ratio: 300 / 201;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.product-rec-txt {
    display: block;
    padding-top: 8px;
    font-size: 14px;
    text-align: center;
    color: #333;
}
.product-rec:hover .product-rec-txt {
    color: #fa7821;
}

/* ---------- 响应式 ---------- */
@media (max-width: 991.98px) {
    .product-h2 {
        font-size: 18px;
        line-height: 36px;
    }
    .product-params-sub {
        font-size: 15px;
        line-height: 46px;
    }
    .product-table th,
    .product-table td {
        padding: 0 10px;
        font-size: 13px;
    }
    .product-table th {
        width: 22%;
    }
    .case-main-txt {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 575.98px) {
    .product-title {
        font-size: 20px;
    }
    .product-btn {
        display: block;
        min-width: 0;
    }
}
