/* 产品模板表格样式 */
.ptm-products-table-wrapper {
    position: relative;
    margin-bottom: 20px;
    overflow: visible;
}

.ptm-products-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    font-size: 12px;
}

/* 固定表头容器 */
.ptm-table-header-clone {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #ddd;
}

.ptm-table-header-clone.active {
    display: block;
}

.ptm-table-header-clone table {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    background: #f5f5f5;
}

.ptm-table-header-clone th {
    padding: 8px 10px;
    font-weight: bold;
    text-align: left;
    border: 1px solid #ddd;
    border-top: none;
    white-space: pre-line;
}

.ptm-products-table th,
.ptm-products-table td {
    padding: 8px 10px;
    border: 1px solid #ddd;
    text-align: left;
    white-space: pre-line;
    vertical-align: top;
}

.ptm-products-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.ptm-products-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.ptm-products-table tr:hover {
    background-color: #f1f1f1;
}

/* 响应式表格 */
@media screen and (max-width: 767px) {
    .ptm-products-table-wrapper {
        overflow-x: auto;
    }
    .ptm-products-table {
        min-width: 600px;
    }
    .ptm-table-header-clone {
        display: none !important;
    }
}

.ptm-rfq-button, .ptm-view-more-button {
    padding: 6px 12px;
    background-color: #2251A6;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    display: inline-block;
}
.ptm-rfq-button:hover, .ptm-view-more-button:hover {
    background-color: #005177;
    color: #fff;
}

/* 左右两栏布局 */
.ptm-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1440px;
    width:100%;
    margin: 0 auto;
    padding: 20px;
}

.ptm-sidebar {
    width: 25%;
    padding-right: 20px;
}

.ptm-main-content {
    width: 75%;
}

.ptm-sidebar-section {
    margin-bottom: 30px;
    background-color: #f8f8f8;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ptm-sidebar-section h3 {
    padding: 15px;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 35px;
    background-color: #2251A6;
    color: white;
}

/* 搜索框样式 */
.ptm-search-form {
    position: relative;
}

.ptm-search-field {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ptm-search-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 10px;
    border: none;
    background-color: #2251A6;
    color: #fff;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    cursor: pointer;
}

.ptm-search-submit:hover {
    background-color: #005177;
}

/* 分类列表 */
.ptm-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding: 15px;
}

.ptm-categories-list li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.ptm-categories-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.ptm-categories-list a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 5px 0;
}

.ptm-categories-list a:hover {
    color: #2251A6;
}

.ptm-categories-list .ptm-active a {
    color: #2251A6;
    font-weight: bold;
}

/* 联系表单 */
.ptm-contact-form {
    margin-top: 15px;
}

.ptm-form-row {
    margin-bottom: 15px;
}

.ptm-form-row input,
.ptm-form-row textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ptm-form-row textarea {
    height: 100px;
}

.ptm-submit-button {
    padding: 10px 15px;
    background-color: #2251A6;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ptm-submit-button:hover {
    background-color: #005177;
}

/* 右侧内容区 */
.ptm-category-header {
    margin-bottom: 20px;
}

.ptm-category-title {
    margin-top: 0;
    font-size: 24px;
}

.ptm-category-description {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

/* 子分类按钮 */
.ptm-subcategories {
    margin: 20px 0;
}

.ptm-subcategory-buttons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ptm-subcategory-buttons li {
    margin: 0;
}

.ptm-subcategory-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.ptm-subcategory-button:hover {
    background-color: #e9e9e9;
    color: #000;
    border-color: #ccc;
}

.ptm-subcategory-button.active {
    background-color: #2196F3;
    color: white;
    border-color: #1976D2;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .ptm-subcategory-buttons {
        gap: 5px;
    }
    
    .ptm-subcategory-button {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* 产品搜索 */
.ptm-product-search {
    margin-bottom: 20px;
}

.ptm-inline-search-form {
    display: flex;
}

.ptm-inline-search-form .ptm-search-field {
    flex-grow: 1;
    margin-right: 10px;
}

.ptm-inline-search-form .ptm-search-submit {
    position: static;
    height: auto;
}

/* 分页 */
.ptm-pagination {
    margin-top: 20px;
    text-align: center;
}

.ptm-pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

.ptm-pagination .page-numbers.current {
    background-color: #2251A6;
    color: #fff;
    border-color: #2251A6;
}

.ptm-pagination a.page-numbers:hover {
    background-color: #f5f5f5;
}

/* RFQ弹窗样式 */
#ptm-rfq-popup {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    display: none;
}

.ptm-rfq-popup-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.ptm-rfq-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.ptm-rfq-close:hover,
.ptm-rfq-close:focus {
    color: black;
    text-decoration: none;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .ptm-container {
        flex-direction: column;
    }
    
    .ptm-sidebar,
    .ptm-main-content {
        width: 100%;
        padding-right: 0;
    }
    
    .ptm-sidebar {
        margin-bottom: 30px;
    }
    
    .ptm-products-table {
        display: block;
        overflow-x: auto;
    }
} 

.elementor-widget-search-form .elementor-search-form__submit {
    min-width: 50px;
    border: none;
    border-radius: 0;
    padding: 10px;
    --e-search-form-submit-text-color: #000000;
    background-color: #f1f2f3 !important;
    --e-search-form-submit-icon-size: 17px;
}
#elementor-search-form-fefe235 {
    padding: 10px;
}


.elementor-widget-divider .elementor-divider-separator {
width: 52px;
    color: white;
    margin: 10px;
    --divider-border-style: solid;
    --divider-color: #FFFFFF;
    --divider-border-width: 3px;
}
.elementor-element-7f9bde2 .elementor-widget-container {
    width:100%;
    margin-top:10px;
}

/* 产品模板表格样式 */
.ptm-table-container {
    position: relative;
    max-height: 500px;
    overflow: auto;
    margin-bottom: 20px;
}

.ptm-products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 12px;
}

.ptm-products-table th,
.ptm-products-table td {
    padding: 8px 10px;
    border: 1px solid #ddd;
    text-align: left;
    min-width: 100px; /* 设置最小宽度，防止内容过少时列过窄 */
}

.ptm-products-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* 添加表头底部阴影，增强视觉效果 */
.ptm-products-table th::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
}

.ptm-products-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.ptm-products-table tr:hover {
    background-color: #f1f1f1;
}

/* 响应式表格 */
@media screen and (max-width: 767px) {
    .ptm-table-container {
        max-height: none;
        overflow-x: auto;
    }
    
    .ptm-products-table th {
        position: sticky;
        top: 0;
        background: #f5f5f5;
        z-index: 10;
    }
}

.ptm-table-wrapper {
    width: 100%;
    margin: 20px 0;
    overflow-x: auto;
    position: relative;
}

.ptm-products-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

/* 表头样式 */
.ptm-products-table thead th {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    box-sizing: border-box;
    font-size: inherit;
    font-weight: bold;
    font-family: inherit;
}

/* 表体样式 */
.ptm-products-table tbody td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    background: #fff;
    box-sizing: border-box;
    font-size: inherit;
    font-family: inherit;
}

/* 固定表头容器 */
.ptm-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f5f5f5;
    z-index: 100;
    display: none;
    border-bottom: 1px solid #ddd;
    overflow-x: hidden;
    box-sizing: border-box;
}

.ptm-sticky-header table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
    background: #f5f5f5;
    table-layout: fixed;
}

.ptm-sticky-header th {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
    border-bottom: none;
    box-sizing: border-box;
    font-size: inherit;
    font-weight: bold;
    font-family: inherit;
}

/* 确保固定表头和原表头字体一致 */
.ptm-sticky-header th {
    font-size: 14px; /* 设置一个基础字体大小 */
}

.ptm-products-table thead th {
    font-size: 14px; /* 与固定表头相同的字体大小 */
}

/* 多行文本字段样式 */
.ptm-products-table td {
    white-space: pre-line;
    line-height: 1.5;
    vertical-align: top;
}

/* 确保表格单元格内容不会过宽 */
.ptm-products-table td {
    max-width: 300px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* RFQ按钮样式 */
.ptm-rfq-button,
.ptm-view-more-button {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.ptm-rfq-button {
    background-color: #2196F3;
    color: white;
    border: 1px solid #1976D2;
}

.ptm-view-more-button {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #388E3C;
}

.ptm-rfq-button:hover {
    background-color: #1976D2;
}

.ptm-view-more-button:hover {
    background-color: #388E3C;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .ptm-products-table,
    .ptm-sticky-header table {
        font-size: 14px;
    }

    .ptm-products-table th,
    .ptm-products-table td,
    .ptm-sticky-header th {
        padding: 8px;
        font-size: 14px;
    }

    .ptm-rfq-button,
    .ptm-view-more-button {
        padding: 6px 12px;
        font-size: 14px;
    }
}

.ptm-sort-order-field {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.ptm-sort-order-field h3 {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 14px;
    color: #23282d;
}

.ptm-sort-order-field .description {
    margin: 5px 0;
    color: #666;
}

.ptm-sort-order-field input[type="number"] {
    width: 100px;
}

/* 后台编辑页面的多行文本框样式 */
.form-table textarea.large-text {
    min-height: 100px;
    width: 100%;
    padding: 8px;
    line-height: 1.5;
}

/* 添加JavaScript支持 */
.js-ptm-header-fixed {
    top: var(--ptm-header-offset, 80px) !important;
}