@import url('../header/sub.css');


/* ============================================
   产品详情页 - 头部展示区
   模块：product-show
   说明：左侧产品图片 + 右侧产品标题、规格参数、询价按钮
   命名遵循 BEM 规范
   ============================================ */

/* ---------- 区块：产品展示头部容器 ---------- */
.product-show__header {
    width: 100%;
    background-color: var(--color-bg-secondary, #ffffff);
    padding: 20px 0;
}

/* ---------- 区块：左右两栏布局容器 ---------- */
.product-show__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

/* ---------- 元素：左侧媒体区 ---------- */
.product-show__media {
    flex: 0 0 auto;
    width: 50%;
    max-width: 565px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--header-color-bg, #ffffff);
}

/* ---------- 元素：产品主图 ---------- */
.product-show__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 565px;
    object-fit: contain;
}

/* ---------- 元素：右侧内容区 ---------- */
.product-show__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 10px;
}

/* ---------- 元素：产品标题 ---------- */
.product-show__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--header-color-accent-2, #fcbc04);
    margin: 0 0 30px 0;
    word-break: break-word;
}

/* ---------- 元素：规格参数列表 ---------- */
.product-show__specs {
    list-style: none;
    margin: 0 0 40px 0;
    padding: 0;
}

/* ---------- 元素：单条规格 ---------- */
.product-show__spec {
    display: flex;
    align-items: center;
    font-size: 18px;
    line-height: 1.6;
    color: var(--header-color-text, #000000);
    margin-bottom: 14px;
}

.product-show__spec:last-child {
    margin-bottom: 0;
}

/* ---------- 元素：规格前的实心圆点 ---------- */
.product-show__bullet {
    flex: 0 0 auto;
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--header-color-accent, #000000);
    margin-right: 14px;
}

/* ---------- 元素：规格文本 ---------- */
.product-show__text {
    flex: 1 1 auto;
}

/* ---------- 元素：按钮操作区 ---------- */
.product-show__action {
    margin-top: 30px;
}

/* ---------- 元素：SEND INQUIRY 按钮 ---------- */
.product-show__btn {
    display: inline-block;
    padding: 14px 32px;
    /* background-color: #d8232a; */
    background-color: #000;
    color: var(--header-color-white, #ffffff);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.product-show__btn:hover {
    /* background-color: #b51c22;
    color: var(--header-color-white, #ffffff); */
    background-color: var(--header-color-accent-2, #fcbc04);
    color: #000;
}

.product-show__btn:active {
    transform: translateY(1px);
}


/* ============================================
   响应式适配 - 平板端
   ============================================ */
@media screen and (max-width: 992px) {
    .product-show__inner {
        gap: 30px;
    }

    .product-show__title {
        font-size: 30px;
        margin-bottom: 24px;
    }

    .product-show__spec {
        font-size: 17px;
    }

    .product-show__specs {
        margin-bottom: 30px;
    }
}

/* ============================================
   响应式适配 - 移动端
   ============================================ */
@media screen and (max-width: 768px) {
    .product-show__header {
        padding: 10px 0;
    }

    .product-show__inner {
        flex-direction: column;
        gap: 24px;
    }

    .product-show__media {
        width: 100%;
        max-width: 100%;
    }

    .product-show__image {
        max-width: 100%;
    }

    .product-show__content {
        width: 100%;
        padding-top: 0;
    }

    .product-show__title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .product-show__specs {
        margin-bottom: 24px;
    }

    .product-show__spec {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .product-show__bullet {
        width: 10px;
        height: 10px;
        margin-right: 10px;
    }

    .product-show__action {
        margin-top: 20px;
    }

    .product-show__btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ============================================
   响应式适配 - 小屏移动端
   ============================================ */
@media screen and (max-width: 480px) {
    .product-show__title {
        font-size: 20px;
    }

    .product-show__spec {
        font-size: 14px;
    }
}


/* ============================================
   产品详情页 - 产品描述区
   模块：product-show__description
   说明：含黄色图标标签 + 浅灰背景标题栏 + 正文段落
   命名遵循 BEM 规范
   ============================================ */

/* ---------- 区块：产品描述整体容器 ---------- */

.product-show__description .w-banxin {
    border-bottom: 2px dashed var(--header-color-border, #E0E8EC);
    padding: 0 0 20px 0;
}

.product-show__description {
    width: 100%;
    background-color: var(--header-color-bg, #ffffff);
    /* padding: 0 0 30px 0; */

}




/* ---------- 元素：描述区标题栏（图标 + 文字） ---------- */
.product-show__description-tab {
    display: flex;
    align-items: stretch;
    width: 100%;
    /* background-color: #f2f4f5; */
    /* 与截图一致的浅灰背景 */
}

/* ---------- 元素：黄色图标方块（含右下角斜切） ---------- */
.product-show__description-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    background-color: var(--header-color-accent-2, #fcbc04);
    /* 与站点主色一致 */
    position: relative;
    /* 通过 clip-path 实现右下角斜切效果 */
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.product-show__description-icon svg {
    display: block;
    width: 28px;
    height: 28px;
}

/* ---------- 元素：描述区标题文字 ---------- */
.product-show__description-title {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 !important;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--header-color-accent, #000000);
    position: relative;
}

.product-show__description-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--header-color-accent-2, #fcbc04);
}

/* ---------- 元素：描述正文容器 ---------- */
.product-show__description-content {
    width: 100%;
    padding: 28px 0 0 0;
}

/* ---------- 元素：描述正文段落 ---------- */
.product-show__description-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--header-color-text, #000000);
    word-break: break-word;
}


/* ============================================
   响应式适配 - 描述区 平板端
   ============================================ */
@media screen and (max-width: 992px) {
    .product-show__description-tab {
        height: 56px;
    }

    .product-show__description-icon {
        width: 60px;
    }

    .product-show__description-icon svg {
        width: 24px;
        height: 24px;
    }

    .product-show__description-title {
        font-size: 20px;
        padding: 0 20px;
    }

    .product-show__description-title::after {
        bottom: -5px;
    }

    .product-show__description-content {
        padding-top: 24px;
    }

    .product-show__description-text {
        font-size: 15px;
    }
}

/* ============================================
   响应式适配 - 描述区 移动端
   ============================================ */
@media screen and (max-width: 768px) {
    .product-show__description {
        padding-bottom: 20px;
    }

    .product-show__description-tab {
        height: 50px;
    }

    .product-show__description-icon {
        width: 50px;
    }

    .product-show__description-icon svg {
        width: 22px;
        height: 22px;
    }

    .product-show__description-title {
        font-size: 18px;
        padding: 0 16px;
    }

    .product-show__description-content {
        padding-top: 20px;
    }

    .product-show__description-text {
        font-size: 14px;
        line-height: 1.7;
    }
}

/* ============================================
   响应式适配 - 描述区 小屏移动端
   ============================================ */
@media screen and (max-width: 480px) {
    .product-show__description-title {
        font-size: 16px;
    }

    .product-show__description-text {
        font-size: 13px;
    }
}


/* ============================================
   产品详情页 - 产品特征/应用场景区
   模块：product-show__features
   说明：包含 Applications 黄色标签、4 个应用类目列表与底部双图展示
   命名遵循 BEM 规范
   ============================================ */

/* ---------- 区块：产品特征整体容器 ---------- */
.product-show__features {
    width: 100%;
    background-color: var(--header-color-bg, #ffffff);
    padding: 10px 0 40px 0;
}

/* ---------- 区块：内容居中容器（沿用 w-banxin 宽度） ---------- */
.product-show__features-inner {
    display: block;
}

/* ---------- 元素：Application 标签行容器 ---------- */
.product-show__features-applications {
    display: block;
    width: 100%;
    margin: 0 0 18px 0;
}

/* ---------- 元素：黄色 Applications 标签块（带右下角斜切） ---------- */
.product-show__features-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 40px;
    padding: 0 18px;
    background-color: #333;
    /* 与站点主色保持一致 */
    position: relative;
    /* 与描述区同款斜切视觉 */
    /* clip-path: polygon(0 0, 100% 0, 100% 70%, 80% 100%, 0 100%); */
}

/* ---------- 元素：Applications 文字 ---------- */
.product-show__features-tab-title {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: var(--header-color-white, #ffffff);
}

/* ---------- 元素：应用类目列表 ---------- */
.product-show__features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* ---------- 元素：单个类目 ---------- */
.product-show__features-item {
    display: block;
    margin: 0 0 18px 0;
    padding: 0;
}

.product-show__features-item:last-child {
    margin-bottom: 0;
}

/* ---------- 元素：类目标题 ---------- */
.product-show__features-item-title {
    margin: 0 0 4px 0;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--header-color-text, #000000);
}

/* ---------- 元素：类目描述文字 ---------- */
.product-show__features-item-desc {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--header-color-text-secondary, #878787);
}

/* ---------- 区块：底部图片展示区（2 列网格，多行自动换行） ---------- */
.product-show__features-gallery {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    margin-top: 36px;
}

/* ---------- 元素：单张图片容器（每行 2 列） ---------- */
.product-show__features-gallery-item {
    flex: 0 0 calc((100% - 12px) / 2);
    width: calc((100% - 12px) / 2);
    overflow: hidden;
    background-color: var(--color-bg-secondary, #f7fafc);
}

/* ---------- 元素：展示图片 ---------- */
.product-show__features-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* ============================================
   图片悬停放大效果
   说明：鼠标划过时图片轻微放大，容器需设置 overflow: hidden
   适用：.product-show__image（主图）
         .product-show__features-image（特征区图片）
   ============================================ */

/* ---------- 主图容器：裁剪超出部分，保证放大不溢出 ---------- */
.product-show__media {
    overflow: hidden;
}

/* ---------- 主图：过渡动画 + 悬停放大 ---------- */
.product-show__image {
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.product-show__media:hover .product-show__image {
    transform: scale(1.08);
}

/* ---------- 特征区图片：过渡动画 + 悬停放大 ---------- */
.product-show__features-image {
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.product-show__features-gallery-item:hover .product-show__features-image {
    transform: scale(1.08);
}


/* ============================================
   响应式适配 - 特征区 平板端
   ============================================ */
@media screen and (max-width: 992px) {
    .product-show__features {
        padding: 8px 0 30px 0;
    }

    .product-show__features-tab {
        height: 38px;
        min-width: 110px;
        padding: 0 16px;
    }

    .product-show__features-tab-title {
        font-size: 17px;
    }

    .product-show__features-item-title {
        font-size: 17px;
    }

    .product-show__features-item-desc {
        font-size: 13px;
    }

    .product-show__features-gallery {
        margin-top: 28px;
        gap: 10px;
    }

    .product-show__features-gallery-item {
        flex: 0 0 calc((100% - 10px) / 2);
        width: calc((100% - 10px) / 2);
    }
}

/* ============================================
   响应式适配 - 特征区 移动端（仍保持 2 列）
   ============================================ */
@media screen and (max-width: 768px) {
    .product-show__features {
        padding: 6px 0 24px 0;
    }

    .product-show__features-applications {
        margin-bottom: 14px;
    }

    .product-show__features-tab {
        height: 34px;
        min-width: 100px;
        padding: 0 14px;
    }

    .product-show__features-tab-title {
        font-size: 16px;
    }

    .product-show__features-item {
        margin-bottom: 14px;
    }

    .product-show__features-item-title {
        font-size: 16px;
    }

    .product-show__features-item-desc {
        font-size: 13px;
        line-height: 1.5;
    }

    .product-show__features-gallery {
        margin-top: 22px;
        gap: 8px;
    }

    .product-show__features-gallery-item {
        flex: 0 0 calc((100% - 8px) / 2);
        width: calc((100% - 8px) / 2);
    }
}

/* ============================================
   响应式适配 - 特征区 小屏移动端（图片改为单列堆叠）
   ============================================ */
@media screen and (max-width: 480px) {
    .product-show__features {
        padding: 4px 0 20px 0;
    }

    .product-show__features-tab {
        height: 32px;
        min-width: 90px;
        padding: 0 12px;
    }

    .product-show__features-tab-title {
        font-size: 15px;
    }

    .product-show__features-item-title {
        font-size: 15px;
    }

    .product-show__features-item-desc {
        font-size: 12px;
    }

    .product-show__features-gallery {
        flex-direction: column;
        gap: 10px;
    }

    .product-show__features-gallery-item {
        flex: 1 1 100%;
        width: 100%;
    }
}


/* ============================================
   富文本表格样式
   模块：product-show__features-list-container
   说明：用于产品详情页富文本（{$zytz}）中表格的展示
        边框 1px，单元格带内边距
   ============================================ */

.product-show__features-list-container table,
.product-show__description-content table {
    width: 100% !important;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--header-color-text, #000000);
    background-color: var(--header-color-bg, #ffffff);
}

.product-show__features-list-container table th,
.product-show__features-list-container table td,
.product-show__description-content table th,
.product-show__description-content table td {
    border: 1px solid var(--header-color-border, #E0E8EC);
    padding: 10px 14px;
    text-align: left;
    vertical-align: middle;
    word-break: break-word;
}

.product-show__features-list-container table th,
.product-show__description-content table th {
    background-color: #f7fafc;
    font-weight: 700;
    color: var(--header-color-accent, #000000);
}

.product-show__features-list-container table tbody tr:hover,
.product-show__description-content table tbody tr:hover {
    background-color: #fafbfc;
}


/* ============================================
   响应式适配 - 富文本表格 移动端
   ============================================ */
@media screen and (max-width: 768px) {

    .product-show__features-list-container table,
    .product-show__description-content table {
        font-size: 13px;
    }

    .product-show__features-list-container table th,
    .product-show__features-list-container table td,
    .product-show__description-content table th,
    .product-show__description-content table td {
        padding: 8px 10px;
    }
}


/* ============================================
   富文本表格 - 单元格含图片的特殊处理
   说明：处理 1 行 2 列且 tr.firstRow 中包含图片的表格
        图片自适应单元格宽度、居中显示、保留圆角
   ============================================ */

.product-show__features-list-container table tr.firstRow td,
.product-show__description-content table tr.firstRow td {
    padding: 12px;
    text-align: center;
    vertical-align: middle;
}

.product-show__features-list-container table tr.firstRow td img,
.product-show__description-content table tr.firstRow td img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 4px;
}

/* 当单元格内仅含单张图片时，去掉边框视觉，使其更接近图片墙效果 */
.product-show__features-list-container table tr.firstRow td:has(> img:only-child),
.product-show__description-content table tr.firstRow td:has(> img:only-child) {
    border: none;
    padding: 6px;
    background-color: transparent;
}


/* ============================================
   响应式适配 - firstRow 图片单元格 移动端
   ============================================ */
@media screen and (max-width: 768px) {

    .product-show__features-list-container table tr.firstRow td,
    .product-show__description-content table tr.firstRow td {
        padding: 8px;
    }
}