
/* 产品页面样式 */
/* 样式初始化 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
a {
    text-decoration: none;
    color: #333;
}
 body {
    background-color: #fff !important;
    color: #333;
 }
.page-container {
    max-width: 1400px;
    margin: 0 auto;
}
/* 广告图模块 */
.product-banner {
    width: 100%;
    height: 320px;
    background-color: #ccc;
    background-image: url("../assets/images/long-banner.jpg");
    
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.banner-title {
    font-size: 2.5rem;
    color: #333;
    text-align: center;

}

/* 产品容器 */
.product-section {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    gap: 40px;
}
.product-category-list {
    flex: 2;
}
.product-list-title {
    font-size: 2rem;
}
.product-sidebar {
    flex: 1;
}
.product-list {
   padding: 30px 0 30px;
   border-bottom: 1px solid #ccc;
}
.product-list:first-child {
    padding-top: 0;
}
.product-list-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-list-items li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.product-list-items li h3 {
    font-size: 15px;   
    color: #333;
}
.searchForm {display: flex;}
.searchForm input {
    height: 45px;
   
}
.searchForm label {
    flex: 3;

}
.searchForm .search-submit {
    flex: 1;

}
.product-category {
    border: 1px solid #ccc;
    padding: 0 20px;
}
.product-contact {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

/**
 * 产品分类菜单展开收起样式
 * Product Category Menu Toggle Styles
 * 
 * 留言表单固定定位样式
 * Sticky Contact Form Styles
 */

/* 分类列表基础样式 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    position: relative;
    margin-bottom: 2px;
}

.category-list a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    background-color: transparent; /* 去掉灰色背景 */
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.category-list a:hover {
    background-color: #f8f9fa; /* 悬停时显示浅色背景 */
    color: #c82025; /* 改为红色 */
}

/* 包含子菜单的分类项样式 */
.has-sub-category {
    position: relative;
}

.has-sub-category > a {
    padding-right: 40px; /* 为箭头图标留出空间 */
    cursor: pointer;
}

/* 箭头图标样式 */
.arrow-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
}

/* 展开状态时的箭头样式 */
/* .has-sub-category.expanded > a {
    background-color: #c82025;
    color: white;
} */

.has-sub-category.expanded .arrow-icon {
    transform: translateY(-50%) rotate(180deg);
}

/* 子菜单样式 */
.sub-category {
    display: none;
    list-style: none;
    padding: 0;
    margin: 8px 0 0 15px; /* 二级分类下的子分类向右缩进15px */
    background-color: #ffffff;
    /* border-left: 3px solid #c82025;  */
    border-radius: 0 4px 4px 0;
}

/* 分类卡片网格布局 */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* 分类卡片样式 */
.subcategories-container {
    padding: 30px 0 ;
}
.subcategory-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

/* 产品列表样式 */
.products-container {
    padding: 30px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.products-title {
    text-align: center;
    margin-bottom: 30px;
}

.products-title h2 {
    font-size: 2rem;
    color: #333;
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #c82025;
}

.product-thumbnail {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-thumbnail a {
    display: block;
    height: 100%;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-thumbnail img {
    transform: scale(1.05);
}
.products-container .product-item {
    padding: 0;
}


.product-title {
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 30px;
}

.product-title a {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #c82025;
}

.product-excerpt {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.product-more {
    text-align: center;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: #c82025;
    color: white;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #a01a1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 32, 37, 0.3);
}

/* 没有产品时的提示信息 */
.no-products-message {
    text-align: center;
    padding: 60px 0;
    color: #666;
}

.no-products-message p {
    font-size: 1.1rem;
}

/* 分页样式 */
.pagination-wrapper {
    text-align: center;
    margin: 40px 0;
}

.pagination-wrapper .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
    background-color: #c82025;
    color: white;
    border-color: #c82025;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-title h2 {
        font-size: 1.5rem;
    }
    
    .product-thumbnail {
        height: 200px;
    }
    
   
    
    .product-title a {
        font-size: 1.1rem;
    }
}

/* 推荐产品样式 */
.recommended-products {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.recommended-products .subcategories-grid {
    margin: 20px 0;
}

.recommended-product-item {
    border: 1px solid #ddd;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    padding: 30px 20px;
}

.recommended-product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.recommended-product-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recommended-product-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recommended-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommended-product-item:hover .recommended-product-image img {
    transform: scale(1.05);
}

.recommended-product-name {
    padding: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
  

/* 推荐产品样式 - 带边框 */
.recommended-product-item {
    border: 1px solid #ddd;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.subcategory-item:hover,
.recommended-product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.subcategory-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 分类图片容器 */
.subcategory-image,
.recommended-product-image {
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subcategory-image img,
.recommended-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.subcategory-item:hover .subcategory-image img,
.recommended-product-item:hover .recommended-product-image img {
    transform: scale(1.05);
}

.subcategory-name,
.recommended-product-name {
    padding: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.subcategory-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.subcategory-image img:hover {
    transform: scale(1.05);
}

/* 分类标题 */
.subcategories-title {
    margin: 30px 0 20px;
    text-align: center;
    color: #333;
}

.sub-category li {
    margin-bottom: 1px;
}

.sub-category a {
    padding: 8px 15px;
    background-color: transparent;
    border-radius: 0;
    font-size: 14px;
    color: #555;
    padding-left: 15px; /* 子分类文字向右偏移 */
}

/* 三级分类缩进 */
.sub-category .sub-category {
    margin-left: 15px; /* 三级分类额外缩进 */
}

/* 四级及更深级别分类保持与三级相同缩进 */
.sub-category .sub-category .sub-category {
    margin-left: 0; /* 四级分类不额外缩进 */
}

/* 移除子分类的箭头图标 */
.sub-category .has-sub-category > a .arrow-icon {
    display: none;
}

.sub-category a:hover {
    background-color: #f1f3f4;
    color: #c82025; /* 改为红色 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-list a {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .has-sub-category > a {
        padding-right: 35px;
    }
    
    .arrow-icon {
        right: 12px;
        font-size: 10px;
    }
    
    .sub-category {
        margin-left: 15px;
    }
    
    .sub-category a {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* 动画效果 */
.sub-category {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载状态 */
.category-list.loading .arrow-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* 分页样式 */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: #c82025;
    color: white;
    border-color: #c82025;
}

.pagination .page-numbers.dots {
    border: none;
    background: none;
    color: #999;
}

/* 留言表单固定定位样式 */
.product-contact {
    transition: all 0.3s ease;
}

.product-contact.sticky-active {
    position: fixed;
    top: 150px;
    right: 0;
    width: auto;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 25px;
    margin: 0 15px 0 0;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.product-contact.sticky-active .title {
    color: #c82025;
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
    border-bottom: 2px solid #c82025;
    padding-bottom: 10px;
}

/* 固定定位时的表单样式优化 */
.product-contact.sticky-active .wpcf7-form {
    margin-top: 15px;
}

.product-contact.sticky-active .wpcf7-form input,
.product-contact.sticky-active .wpcf7-form textarea {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 10px 12px;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.product-contact.sticky-active .wpcf7-form input:focus,
.product-contact.sticky-active .wpcf7-form textarea:focus {
    border-color: #c82025;
    box-shadow: 0 0 0 2px rgba(200, 32, 37, 0.2);
    outline: none;
}

.product-contact.sticky-active .wpcf7-form input[type="submit"] {
    background-color: #c82025;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.product-category-lsit {
    width: 66.66%;
}
.product-sidebar {
    flex: 1;
}
.product-contact.sticky-active .wpcf7-form input[type="submit"]:hover {
    background-color: #a01a1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 32, 37, 0.3);
}

/* 占位符样式 */
#sticky-placeholder {
    transition: all 0.3s ease;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .product-contact.sticky-active {
        top: 120px;
        right: 10px;
        left: 10px;
        margin: 0;
        max-height: calc(100vh - 140px);
        padding: 20px;
        border-radius: 10px;
    }
    
    .product-contact.sticky-active .title {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .product-contact.sticky-active {
        top: 100px;
        padding: 15px;
        border-radius: 8px;
    }
    
    .product-contact.sticky-active .title {
        font-size: 14px;
    }
}

/* 面包屑导航样式 */
.product-banner {
    position: relative;
}

.breadcrumb-navigation {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 14px;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 4px;
}

.breadcrumb-navigation a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-navigation a:hover {
    color: #f78da7;
    text-decoration: underline;
}

.breadcrumb-navigation .current-crumb {
    color: #f78da7;
    font-weight: 500;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .breadcrumb-navigation {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 15px;
        text-align: center;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.quote-form {
    max-width: 1000px;
    border-radius: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
}
/* 报价咨询表单样式 */
.quote-form-container {
    margin-top: 50px;
    margin-bottom: 30px;
    overflow: hidden;
}

.quote-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
}

.quote-form h3 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

.quote-form .form-row {
    margin-bottom: 20px;
}

.quote-form .form-row:last-child {
    margin-bottom: 0;
}

.quote-form .form-row.flex {
    display: flex;
    gap: 20px;
}

.quote-form .form-field {
    width: 50%;
}

.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.quote-form input[type="text"]:focus,
.quote-form input[type="email"]:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: #ff0000;
}

.quote-form textarea {
    height: 120px;
    resize: vertical;
    min-height: 100px;
}

.quote-form .submit-button {
    width: 100%;
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quote-form .submit-button:hover {
    background-color: #cc0000;
}

/* 表单消息样式 */
.quote-success-message,
.quote-error-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.quote-success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.quote-error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .quote-form {
        padding: 25px;
    }
    
    .quote-form .form-row.flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .quote-form .form-field {
        width: 100%;
    }
}