/* 产品栏目初始页（还原原站 catid=1：全宽大图 banner + 介绍区 h1 + 产品系列图片卡片网格） */

/* 主色统一为原站品牌红 #e2001a */
:root {
    --prod-red: #e2001a;
}

/* 本页元素统一 border-box：padding/border 计入宽度，避免小节标题(padding-left+border-left)
   在默认 content-box 下把内容撑出列边界（即“文字超出区域”的根因之一） */
#et-main-area .product-intro,
#et-main-area .product-intro * { box-sizing: border-box; }

/* 顶部全宽 banner（对应原站 et_pb_fullwidth_slider：背景图 slajder1.png + /产品 文字） */
.product-banner {
    position: relative;
    width: 100%;
    min-height: 300px;
    background: #1f1f26 url(/static/cms/images/prod_banner.png) center center / cover no-repeat;
    display: flex;
    align-items: center;          /* 仅垂直居中 */
}
.product-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 26, 0.42);   /* 深色蒙版，保证白字清晰 */
    z-index: 0;
}
/* 与下方模块同宽（max-width: var(--container)=1080px），整体区域不超出限定宽度；文字靠左 */
#et-main-area .product-banner .product-banner__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;              /* 与下方 .container 一致 */
    padding: 0 15px;
    text-align: left !important;
}
/* 文字白色（盖过全局 #et-main-area h2 { color:#222 }），靠左显示 */
#et-main-area .product-banner .pb-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff !important;
    text-align: left !important;
    margin: 0;
    letter-spacing: 1px;
    position: relative;
}
/* 标题前的红色平行四边形斜杠（加宽加高，并用 z-index 分层让标题文字压住块的右半） */
.product-banner .pb-slash {
    display: inline-block;
    width: 0.9em;
    height: 1.3em;
    background: var(--prod-red) !important;
    transform: skewX(-18deg);
    margin-right: 0.25em;
    vertical-align: -0.12em;
    position: relative;
    z-index: 1;
}
.product-banner .pb-title-text {
    position: relative;
    z-index: 2;
    margin-left: -0.62em;
}

/* 介绍区（对应原站 et_pb_text：h1 大标题 + 副标题 + 段落 + 产品特性/专业技术/经营范围/解决方案还包括） */
/* 与 banner / 产品卡片同宽（1080px 内容区），左对齐，不缩窄 */
.product-intro {
    display: block;                   /* 删除右侧“请求报价”按钮列，热处理设备板块整行通铺、向右扩展 */
    margin: 52px 0 28px;
    overflow: hidden;                 /* 兜底：任何子项意外溢出都被裁在介绍区内，不会跑到区域外 */
}
.product-intro .pi-left { min-width: 0; overflow-wrap: break-word; word-break: break-word; }
/* 覆盖 UEditor 内容内联的 text-wrap-mode:nowrap，恢复中文正常折行，
   避免长段落不换行而溢出到右侧“请求报价”按钮列（即“文字超过右侧按钮”的根因） */
#et-main-area .product-intro .pi-left span {
    text-wrap-mode: wrap !important;
    white-space: normal !important;
}
/* 介绍区主标题：热处理设备（对齐原站 h1；带红色下划装饰线） */
/* inline-block + border-bottom：红线仅覆盖标题文字宽度，形成下划装饰线；
   选择器优先级高于全局 #et-main-area h1（color:#222），确保颜色/红线生效 */
#et-main-area .product-intro .intro-title {
    display: inline-block;
    font-size: 30px;
    font-weight: 700;
    color: #1f1f26;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--prod-red);
}
.product-intro .intro-sub {
    font-size: 17px;
    color: var(--prod-red);
    font-weight: 600;
    margin: 0 0 22px;
}
.product-intro p {
    font-size: 14px;
    line-height: 1.95;
    color: #555;
    margin: 0 0 14px;
    text-align: justify;
}
/* 小节标题（产品特性 / 专业技术 / 经营范围 / 西科沃克解决方案还包括） */
.product-intro .intro-h {
    font-size: 19px;
    font-weight: 700;
    color: #1f1f26;
    margin: 26px 0 8px;
    padding-left: 12px;
    border-left: 4px solid var(--prod-red);
}
/* 产品系列卡片网格（对应原站 et_pb_row_1：et_pb_blurb 3 列网格，图片在上、标题、描述、红色“更多”按钮） */
.product-blurb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);   /* 一排 4 个 */
    gap: 36px 32px;
    margin: 50px 0 64px;
}
/* 单卡片：无白底边框，图片在上、左对齐文字（对齐原站 et_pb_blurb_position_top + et_pb_text_align_left） */
.product-blurb {
    display: flex;
    flex-direction: column;
    text-align: left;
    text-decoration: none;
    color: inherit;
    background: transparent;
}
.product-blurb .pb-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;   /* 正方形裁切：图片按 object-fit:cover 填满，超出部分裁掉，不拉伸变形 */
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 16px;
    background: #f4f4f4;
}
.product-blurb .pb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.product-blurb:hover .pb-thumb img {
    transform: scale(1.06);
}
.product-blurb .pb-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--prod-red);
    color: #fff;
    font-size: 40px;
    font-weight: 700;
}
/* 标题：2 行截断（对齐原站 h4.et_pb_module_header a：height 1.2em / -webkit-line-clamp 2） */
.product-blurb .pb-name {
    font-size: 15px;
    font-weight: 700;
    color: #1f1f26;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    transition: color .2s ease;
}
/* 卡片整体已非链接（跳转仅聚焦“更多”按钮），故取消整卡 hover 时标题变红，避免误导 */
/* 描述：3 行截断（对齐原站 et_pb_blurb_description p:first-child：height 75px / line-height 25px） */
/* 描述：高度随内容弹性（不再固定 66px / 3 行截断，富文本多长就显示多高；
   同排卡片由 grid 默认 stretch 取最高者对齐，其余靠“更多”margin-top:auto 底部对齐） */
.product-blurb .pb-desc {
    font-size: 12px;
    line-height: 22px;
    color: #777;
    margin: 0 0 14px;
}
/* “更多”按钮：平行四边形（背景斜切、文字保持水平，居中放置） */
.product-blurb .pb-more {
    position: relative;
    align-self: center;
    display: inline-block;
    margin-top: auto;
    padding: 7px 26px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    z-index: 0;
}
.product-blurb .pb-more::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--prod-red);
    transform: skewX(-16deg);   /* 平行四边形：左右边缘斜切 */
    z-index: -1;
    transition: background .2s ease;
}
.product-blurb .pb-more:hover::before {
    background: #c10016;
}

/* 响应式 */
@media (max-width: 980px) {
    .product-blurb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 760px) {
    .product-banner {
        min-height: 280px;
    }
    .product-banner .pb-title {
        font-size: 32px;
    }
    .product-intro .intro-title {
        font-size: 24px;
    }
    .product-blurb-grid {
        grid-template-columns: 1fr;
    }
}
