/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

.product-banner-section {
    background-size: cover;
    /* 背景图片填充整个容器 */
    background-position: center;
    /* 背景图片居中 */
    background-repeat: no-repeat;
    /* 背景图片不重复 */
    height: 300px;
    /* 根据需要调整高度 */
    display: flex;
    align-items: center;
    /* 使内容垂直居中 */
    justify-content: flex-start;
    /* 使内容水平对齐到最左边 */
}

.product-banner-content {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    /* 确保内容不超过最大宽度 */
    padding-left: 5vw;
    /* 左边距，可以根据需要调整 */
    padding-right: 5vw;
}

.product-banner-content h2 {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 36px;
    color: #000000;
    text-align: left;
    font-style: Regular;
}


.product-banner-content p {
    font-family: PingFangSC, PingFang SC;
    font-weight: 300;
    font-size: 22px;
    color: #000000;
    text-align: left;
    font-style: Regular;
    margin-block-end: 0!important;
}

@media (max-width:768px){
.product-banner-section {
        background-image: url('https://torch.pgywebtest.top/wp-content/uploads/2024/10/产品banner.jpg')!important;
    }    
    
.product-banner-content h2 {
    font-size: 24px;
}

.product-banner-content p {
    font-size: 16px;
}

.product-banner-section {
    height: 230px;
}

.product-sidebar {
    display: none;
}
}


.product-section {
	 background:#ffffff;
    display: flow-root;
    box-sizing: border-box;
    padding-top: 40px;
    padding-bottom: 80px;
}

.product-container {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    /* 确保内容不超过最大宽度 */
}

.product-flex {
    display: flex;
    flex-wrap: nowrap;
    /* 禁止换行 */
    gap: 30px;
    /* 子元素之间的间隔 */
}

.product-sidebar {
    width: calc(20% - 10px);
    /* 减去一半的 gap 值 */
}

.product-content {
    width: calc(80% - 10px);
    /* 减去一半的 gap 值 */
    background-color: #fff;
}

.product-category-info {
    background-size: cover;
    /* 背景图片按比例缩放，完全展示 */
    background-position: right center;
    background-repeat: no-repeat;
    /* 背景图片不重复 */
}

.product-category-content {
    width: 78%;
    text-align: left;
    padding: 30px;
    min-height: 178px;
    box-sizing: border-box;
}

.product-category-content h1 {
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 24px;
    color: #000000;
    line-height: 33px;
    text-align: left;
    font-style: normal;
}

.product-category-content p {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 15px;
    color: #666666;
    line-height: 28px;
    text-align: left;
    font-style: normal;
    margin-bottom: 0;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .product-flex {
        flex-wrap: wrap;
        /* 允许换行 */
    }

    .product-sidebar,
    .product-content {
        width: 100%;
        /* 在移动端时，宽度为100% */
        margin-bottom: 20px;
        /* 增加一些间距 */
    }

    .product-category-content {
        width: 100%;

    }

}


.accordion-category {
    border: 1px solid #E4ECF1;
}

.accordion-item {
    border-bottom: 1px solid #E4ECF1;
}

.accordion-item.expanded {
    border-left: 2px solid #00c758;
}

.accordion-header {
    padding: 10px;
    cursor: pointer;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    text-align: left;
    font-style: normal;
    position: relative;
    padding-left: 25px;
}

.accordion-body {
    display: none;
    padding-left: 35px;
}

.accordion-item.expanded .accordion-body {
    display: block;
}

.accordion-item.expanded .accordion-header {
    color: #00C758;
}

.accordion-header::before {
    content: "\25B6";
    position: absolute;
    left: 10px;
    top: 50%;
    font-size: 12px;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.accordion-item.expanded .accordion-header::before {
    content: "\25BC";
    /* 向下的箭头 */
}


/* 一级分类下的子分类样式 */
.subcategories {
    list-style-type: none;
    padding-left: 0;
}

.subcategories li {
    margin-bottom: 5px;
}

.subcategories li:last-child {
    margin-bottom: 10px;
}

.subcategories li a {
    text-decoration: none;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 14px;
    color: #333333;
    line-height: 20px;
    text-align: left;
    font-style: normal;
}

/* 子分类展开时的颜色 */
.subcategories li.active a {
    color: #00C758;
}


.subcategories .highlight a {
    color: #00C758;
    /* 二级分类展开时高亮颜色 */
}


/* 二级分类 header 的样式 */
.subcategory-header {
    cursor: pointer;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    font-style: normal;
    position: relative;
    padding-left: 20px;
    color: #333333;
}

/* 添加展开/折叠的 + 号 */
.subcategory-header::before {
    content: "—";
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

/* 当展开时，切换为 - 号 */
.subcategory-header.expanded::before {
    content: "—";
}

.subcategory-header.expanded {
    color: #00C758;
    /* 二级分类展开时高亮颜色 */
}

/* 三级分类的样式 */
.third-level-subcategories {
    list-style-type: none;
    padding-left: 20px;
    display: none;
    /* 默认隐藏三级分类 */
}

/* 展开的三级分类显示 */
.subcategory-header.expanded+.third-level-subcategories {
    display: block;
}

.third-level-subcategories li {
    margin-bottom: 0px;
}

.third-level-subcategories li a {
    text-decoration: none;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 14px;
    color: #666666;
    line-height: 18px;
    text-align: left;
    font-style: normal;
}

/* 高亮当前三级分类 */
.third-level-subcategories li.highlight a {
    color: #00C758;
}



.product-content h3 {
    margin-top: 30px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 24px;
    color: #000000;
    line-height: 33px;
    text-align: left;
    padding: 30px;
    font-style: normal;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 每行显示三个项目 */
    gap: 30px;
    /* 项目之间的间距 */
}

.subcategory-item {
    text-align: left;
    height: 90px;
    background: #F4F4F4;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 20px;
    color: #21C268;
    display: flex;
    /* 使用 flex 布局 */
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
    font-style: normal;
    transition: background 0.3s, color 0.3s;
    /* 添加平滑过渡效果 */
}

.subcategory-item:hover {
    background: #21C268;
}

.subcategory-des {
    font-size: 12px;
}

.subcategory-item:hover .subcategory-name {
    color: #fff;
    /* hover 时字体颜色变为白色 */
}
.subcategory-item:hover .subcategory-des {
    color: #fff;
    /* hover 时字体颜色变为白色 */
}


/* 移动端的适配 */
@media (max-width: 768px) {
    .subcategory-grid {
        grid-template-columns: 1fr;
        /* 每行显示一个项目 */
    }
}

.subcategory-link {
    text-decoration: none;
}

.subcategory-name {
    font-family: PingFangSC, PingFang SC;
    font-size: 16px;
    font-weight: 500;
    color: #21C268;
}

/*分类页表格*/
.category-parameters-table thead tr:first-child {
    background: #F1F4F6;

}

.category-parameters-table thead tr:nth-child(2) th,
.category-parameters-table thead tr:nth-child(2) th label {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 12px;
    color: #666666;
    line-height: 14px;
    text-align: left;
    font-style: normal;
    ;
}

.category-parameters-table thead tr:nth-child(2) th {
    height: 50px;
    /* 固定高度，您可以根据需要调整 */
    overflow: auto;
    /* 启用滚动条 */
    white-space: nowrap;
    /* 防止内容自动换行 */
    text-overflow: ellipsis;
    /* 溢出时显示省略号 */
    padding: 10px;
    box-sizing: border-box;
    /* 确保内边距和边框不会增加高度 */
}

/* 可选：隐藏默认的滚动条，仅在溢出时显示 */
.category-parameters-table thead tr:nth-child(2) th::-webkit-scrollbar {
    width: 5px;
    /* 滚动条的宽度 */
}

.category-parameters-table thead tr:nth-child(2) th::-webkit-scrollbar-thumb {
    background-color: #888;
    /* 滚动条的颜色 */
    border-radius: 10px;
    /* 滚动条的圆角 */
}

.category-parameters-table thead tr:nth-child(2) th::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    /* 滚动条轨道颜色 */
}


.category-parameters-table {
    width: 100%;
	 border:none;
    /* 使表格宽度占满容器 */
    border-collapse: collapse;
    /* 合并边框 */
    overflow-x: auto;
    /* 允许横向滚动 */
    display: block;
    /* 使表格变为块元素，以便可以应用滚动条 */

}


.category-parameters-table tr th {
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 14px;
    color: #262626;
    line-height: 17px;
    font-style: normal;
    white-space: nowrap;
    /* 不换行 */

}

.category-parameters-table tr td {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 14px;
    position: relative;
    color: #666666;
    line-height: 17px;
    text-align: left;
    font-style: normal;
    white-space: nowrap;
    /* 不换行 */

}

.product-badge-hot {
    font-size: 12px;
    color: #FF4848;
    text-transform: uppercase;
    position: absolute;
    font-style: normal;
    margin-left: 5px;
    background: #FF48481F;
    padding: 4px 8px 4px 8px;
    border-radius: 8px 8px 8px 0px;
}

.product-badge-new {
    font-size: 12px;
    color: #21c268;
    text-transform: uppercase;
    position: absolute;
    font-style: normal;
    margin-left: 5px;
    background: #21C26833;
    padding: 4px 8px 4px 8px;
    border-radius: 8px 8px 8px 0px;
}

.category-parameters-table tr td>a {
    color: #21c268;
    font-weight: 500;
}



.product-category-table h4 {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 18px;
    color: #000000;
    line-height: 25px;
    text-align: left;
    font-style: normal;
}

.product-category-table h4::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 18px;
    background-color: #21C268;
    margin-right: 5px;
    vertical-align: middle;
}


.product-category-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    margin-top: 64px;
}

/* 针对特定表格的边框设置 */
.product-category-table th,
.product-category-table td {
    border-right: none; 
    border-left: none;
    border-bottom: 1px solid #e1e1e1; /* 左边框 */
    border-top: 1px solid #e1e1e1; /* 右边框 */
    padding: 15px 10px; /* 内边距 */
    text-align: left; /* 左对齐 */
}

.product-category-table th:first-child,
.product-category-table td:first-child {
    border-left: 1px solid #e1e1e1; /* 第一个单元格左边框 */
    min-width: 150px;
}

.product-category-table th:last-child,
.product-category-table td:last-child {
    border-right: 1px solid #e1e1e1; /* 最后一个单元格右边框 */
}


.product-category-table input[type="checkbox"] {
    margin-right: 5px;
}

.product-category-table input[type="text"] {
    width: 100%;
    padding: 5px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    height: 25px;
    border-radius: 0;
    font-size: 12px;
}

.product-category-table select {
    width: 100%;
    padding: 5px;
    margin-bottom: 5px;
}

.product-category-table button {
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
    background: none;
    color: #21C268;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


.pagination a {
    padding: 10px;
    margin: 5px;
    border: 1px solid #ccc;
    color: #999999;
    text-decoration: none;
}

.pagination a:hover {
    background-color: #f4f4f4;
}

.filter-checkbox {
    margin-right: 10px;
}


.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 12px;
    color: #666666;
    line-height: 16px;
    text-align: left;
    border: 1px solid #E5E8EA;
    font-style: normal;
}

.compare-table th {
    background-color: #f1f8f6;
    padding: 20px 10px;
}

.fixed-width {
    width: 150px;
    /* 固定宽度，例如150px，可以根据实际情况调整 */
    color: #262626 !important;
    font-weight: 500;
}

.compare-table th,
.compare-table td:not(.fixed-width) {
    width: auto;
    /* 其余列自适应宽度 */
}

/*分页*/
/* 分页容器样式 */
.product-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 10px;
    list-style-type: none;
    border-radius: 0px;
}

/* 页码链接的基本样式 */
.product-pagination .page-numbers {
    display: inline-block;
    padding: 3px 10px;
    margin: 0 5px;
    font-size: 12px;
    color: #999999;
    text-decoration: none;
    border-radius: 0px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid #999999;
}

/* 鼠标悬停时 */
.product-pagination .page-numbers:hover {
    background-color: #21C268;
    color: white;
    border: 1px solid #21C268;
}

/* 当前页样式 */
.product-pagination .page-numbers.current {
    background-color: #21C268;
    color: white;
    cursor: default;
    pointer-events: none;
    /* 禁用当前页点击 */
    border: 1px solid #21C268;
}


/* 鼠标悬停时的下一页按钮 */
.product-pagination .next.page-numbers:hover {
    background-color: #21C268;
}

/* 禁用按钮样式（如果您需要禁用的分页按钮） */
.product-pagination .page-numbers.disabled {
    background-color: #e0e0e0;
    color: #888;
    cursor: default;
    pointer-events: none;
    /* 禁用点击 */
}

/* 响应式设计：在移动设备上调整分页按钮大小 */
@media (max-width: 600px) {
    .product-pagination .page-numbers {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/*复选框重置*/

/* 基础复选框样式 */



input[type=checkbox] {
    cursor: pointer;
    position: relative;
    width: 14px;
    height: 14px;
    font-size: 12px;
}

input[type=checkbox]::after {
    position: absolute;
    top: 0;
    color: #000;
    width: 14px;
    height: 14px;
    display: inline-block;
    visibility: visible;
    padding-left: 0px;
    text-align: center;
    content: ' ';
    border-radius: 0px
}

input[type=checkbox]:checked::after {
    content: "✓";
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    background-color: #21C268;
}

/* 搜索框容器 */
.search-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}


.search-container input {
    padding-left: 30px;
    /* 为图标预留空间 */
    height: 35px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
    /* 调整宽度 */
    font-size: 14px;
}

.iconfont {
    margin-right: 5px;
    color: #21c268 !important;
    font-size: 16px;
}

.compare-buttons {
    margin-bottom: 20px;
}


.compare-buttons button {
    padding: 6px 22px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 12px;
}

.compare-buttons button.active {
    background: #21C268;
    color: #fff;
}

.compare-buttons button:not(.active) {
    background-color: #F1F4F6;
    color: #000000;
}

/*产品详情页*/

.product-content-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #F1F4F6;
    margin-bottom: 20px;
}

.product-img-cover {
    width: 25%;
    margin-right: 20px;
}

.product-img-cover img {
    width: 100%;
    height: auto;
}

.product-details {
    width: 70%;
}

.product-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-subtitle {
    font-size: 16px;
    color: #777;
    margin-bottom: 10px;
}

.product-buttons {
    margin-top: 15px;
}


.product-buttons .btn {
    display: inline-block;
    padding: 7px 22px;
    background-color: #21C268;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    margin-right: 10px;
}

.product-buttons .btn.btn-more-info {
    border: 1px solid #21c268;
    background: none;
    color: #21c268;
}

.product-buttons .btn .iconfont {
    font-size: 12px;
}

.product-buttons .btn-download .iconfont {
    color: #fff!important;
}


.product-description,
.product-features,
.product-application,
.product-information {
    margin-bottom: 30px;
}


.product-description h4,
.product-features h4,
.product-application h4,
.product-information h4 {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 18px;
    color: #000000;
    line-height: 25px;
    text-align: left;
    font-style: normal;
}

.product-description h4::before,
.product-features h4::before,
.product-application h4::before,
.product-information h4::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 18px;
    /* 竖线的高度 */
    background-color: #21C268;
    /* 竖线的颜色 */
    margin-right: 5px;
    /* 竖线和文本之间的距离 */
    vertical-align: middle;
    /* 垂直对齐文本 */

}

.product-description p {
    font-size: 14px;
    line-height: 1.6;
    margin-block-end: 5px;
    color: #333;
}

.product-features ul {
    list-style-type: disc;
    padding-left: 20px;
}

.product-features ul li {
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 5px;
}

.product-parameters-table tr:first-child {
    background: #F1F4F6;

}

.product-parameters-table {
    width: 100%;
    /* 使表格宽度占满容器 */
    border-collapse: collapse;
    /* 合并边框 */
    overflow-x: auto;
    /* 允许横向滚动 */
    display: block;
    /* 使表格变为块元素，以便可以应用滚动条 */

}

.product-parameters-table thead,
.product-parameters-table tbody {
    display: table;
    /* 使 thead 和 tbody 作为表格显示 */
    width: 100%;
    table-layout: auto;
    /* 自适应宽度 */

}

.product-parameters-table tr th {
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 14px;
    color: #262626;
    line-height: 17px;
    text-align: left;
    font-style: normal;
    white-space: nowrap;
    /* 不换行 */

}

.product-parameters-table tr td {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 12px;
    color: #666666;
    line-height: 17px;
    text-align: left;
    font-style: normal;
    white-space: nowrap;
    /* 不换行 */

}

.product-features ul {
    padding-left: 30px;

}

.product-features ul li::marker {
    color: #21C268;
    /* 设置项目符号颜色为绿色 */

}

.elementor-widget-text-editor .tg-wrap table {
    table-layout: auto; /* 根据内容自适应宽度 */
    width: auto; /* 表格宽度根据内容调整 */
}

.elementor-widget-text-editor .tg-wrap th,
.elementor-widget-text-editor .tg-wrap td {
    width: min-content; /* 单元格宽度根据最小内容宽度调整 */
    white-space: nowrap; /* 防止换行 */
}


.elementor-widget-text-editor .tg-wrap th:last-child,
.elementor-widget-text-editor .tg-wrap td:last-child {
    width: 100%; /* 最后一列占满剩余空间 */
}
