/*!
Theme Name: Anxin
Theme URI: https://www.wpzhiku.com/
Author: Wenprise Co., LTD
Author URI: https://www.wpzhiku.com
Description: WordPress Flashfox Theme
Version: 1.0.0
Template: kadence
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: flashfox
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

FlashFox is based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

.woocommerce-product-search select {
    padding-left: .75em;
}

.site-header .wp-block-columns {
    margin-bottom: 0;
}

.site-header .kt-blocks-info-box-text {
    white-space: nowrap;
}

/**
 * 产品分类选项卡样式
 */
.product-category-tabs {
    margin-bottom: 30px;
    margin-top: -100px;
    position: relative;
}

/* 父分类标签样式 */
.product-category-tabs .parent-tabs {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
    overflow: auto;
}

.product-category-tabs .parent-tabs .tab {
    padding: 6px 12px;
    cursor: pointer;
    margin-right: 5px;
    border-bottom: none;
    transition: all 0.3s ease;
    position: relative;
    color: #fff;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 14px;
}



.product-category-tabs .parent-tabs .tab:hover {
    background-color: #007bff;
}

.product-category-tabs .parent-tabs .tab.active {
    font-weight: bold;
    background-color: #007bff;
    color: #fff;
}

/* 子分类内容区域样式 */
.product-category-tabs .tab-content {
    border-top: none;
    padding: 20px 0;
}

.product-category-tabs .tab-pane {
    display: none;
}

.product-category-tabs .tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 子分类网格布局 */
.product-category-tabs .subcategory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}


@media(min-width: 768px){
    .product-category-tabs .parent-tabs .tab{
        padding: 12px 20px;
        font-size: 16px;
    }

    .product-category-tabs .subcategory-grid{
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

.product-category-tabs .subcategory-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.product-category-tabs .subcategory-item:hover {
    transform: translateY(-5px);
}

.product-category-tabs .subcategory-item.active a {
    color: #007bff;
}

.product-category-tabs .subcategory-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.product-category-tabs .subcategory-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-category-tabs .subcategory-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-category-tabs .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2rem;
}

.product-category-tabs .subcategory-name {
    padding: 10px;
    text-align: center;
    font-weight: 500;
}

.product-category-tabs .no-subcategories {
    text-align: center;
    padding: 20px;
    color: #999;
}

.part-products-container {
    margin-top: 30px;
}

/* 弹窗样式 */
.oe-codes-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.oe-codes-modal.active {
    display: flex;
}

.oe-codes-modal-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.oe-codes-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.oe-codes-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.oe-codes-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.oe-codes-modal-content {
    padding: 20px;
}

.oe-codes-modal-content ul{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.oe-codes-modal-content ul li{
    color: #666;
    font-size: 14px;
    line-height: 24px;
}

.term-description {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.part-products-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.part-product-item {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.part-product-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.part-product-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.part-product-image {
    width: 150px;
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

.part-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.part-product-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.part-product-title {
    font-size: 21px;
    font-weight: 600;
    color: #333;
}

.part-product-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.part-product-code {
    color: #0066cc;
    font-weight: 500;
    margin-bottom: 5px;
}

.part-product-specs {
    color: #666;
    font-size: 14px;
}

.part-product-category {
    color: #666;
    font-size: 13px;
}

.no-products-found {
    text-align: center;
    padding: 40px 0;
    font-size: 18px;
    color: #666;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

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

.pagination .page-numbers.current:hover {
    background-color: #0066cc;
}

.subcategory-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.subcategory-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.subcategory-arrow {
    color: #888;
    font-size: 24px;
}


#scroll-banner {
    top: 0;
    width: 100%;
    color: #fff;
    font-weight: 500;
    z-index: 10000;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.scroll-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll-left 15s linear infinite;
    font-size: 14px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media screen and (max-width: 480px) {
    .scroll-text {
        font-size: 14px;
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}