.banner-section .banner-img{
    max-height: 350px;
    overflow: hidden;
}

.category {
    display: flex;
    margin: 80px auto;
}

.category__filters {
    flex: 0 0 20%;
}

.category__results {
    flex: 0 0 80%;
}

.no-products-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

.no-products-message p {
    margin: 0;
    font-weight: 500;
}

.loading-message {
    text-align: center;
    padding: 60px 20px;
    color: #14c8c8;
    font-size: 18px;
}

.loading-message p {
    margin: 0;
    font-weight: 500;
}

/* 通用 */
/* .filters__group {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
} */
.filters__title {
    color: #282828;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.filters__subgroup {
    padding-left: 8px;
    margin-bottom: 1rem;
}

.filters__subtitle {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.filters__options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filters__option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.25rem 0;
}

.filters__option input[type="checkbox"],
.filters__option input[type="radio"] {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
}

.filters__label {
    color: #666;
    font-size: 14px;
    font-weight: 400;
}

.filters__reset {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    justify-content: center;
}

.filters__reset:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.filters__reset .iconfont {
    font-size: 12px;
}

/* 自定义复选框 */
.checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.checkbox input {
    display: none;
}

.checkbox__custom {
    width: 16px;
    height: 16px;
    border: 1px solid #14c8c8;
    border-radius: 3px;
    margin-right: 8px;
    display: inline-block;
    position: relative;
}

.checkbox input:checked+.checkbox__custom {
    background-color: #14c8c8;
    border-color: transparent;
}

.checkbox input:checked+.checkbox__custom::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 0px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filters__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
    position: relative;
}

.filters__link .icon-arrow1 {
    opacity: 0;
    color: #14DCDC;
    transition: opacity 0.2s ease;
    /* font-size: 14px; */
}

.filters__link.active .icon-arrow1 {
    opacity: 1;
}

/* 折叠相关样式 */
.filters__content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.filters__content.collapsed {
    max-height: 0;
}

.icon-arrow1 {
    display: inline-block;
    transition: transform 0.3s ease;
}

.filters__link[data-toggle="collapse"].active .icon-arrow1 {
    transform: rotate(90deg);
}

/* 产品列表 - 改为 Grid 布局 */
.product-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.product-list__item {
    /* 让子项占满 grid 单元格 */
    display: flex !important;
}

/* 产品卡片 */
.product-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-decoration: none !important;
    text-align: center !important;
    background-color: #f1f1f1 !important;
    border-radius: 20px !important;
    position: relative !important;
    min-height: 320px !important;
    height: 100% !important;
    /* 保证等高 */
    padding: 16px !important;
    transition: box-shadow 0.3s ease !important;
    width: 100% !important;
    /* 适应 grid */
    box-sizing: border-box !important;
}

/* .product-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
} */

.product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.tag-text {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-bestseller {
    background-color: #ff7836;
    color: white;
}

.tag-new {
    background-color: #ff3636;
    color: white;
}

.product-card__info {
    margin: 30px auto;
}

.product-card__image,
.category__count {
    margin-bottom: 30px;
}

.product-card__name {
    font-size: 24px;
    font-weight: bold;
}

.product-card__description {
    font-size: 12px;
}

.product-card__learn-more {
    opacity: 0;
    font-size: 14px;
    color: #37c1ca;
    margin-bottom: 30px;
}

.product-card:hover .product-card__learn-more {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 移动端筛选按钮 */
.mobile-filter-toggle {
    display: none;
}

.mobile-filter-overlay {
    display: none;
}

/* PC端隐藏关闭按钮 */
.mobile-filter-close {
    display: none;
}

@media (max-width: 768px) {

    .banner-section .banner-img img{
        height: 50vh;
        object-fit: cover;
    }
    
    .banner-section .banner-content{
        width: 100%;
    }

    .category {
        flex-direction: column;
        margin-top: 40px;
        position: relative;
    }

    /* 移动端筛选按钮样式 */
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        background: #14c8c8;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        margin-bottom: 20px;
        transition: background-color 0.3s ease;
        order: -1;
        width: auto;
        align-self: flex-start;
    }

    .mobile-filter-toggle:hover {
        background: #12b3b3;
    }

    .mobile-filter-toggle.active {
        background: #0fa0a0;
    }

    .mobile-filter-toggle .filter-icon {
        font-size: 18px;
        line-height: 1;
    }

    /* 遮罩层 */
    .mobile-filter-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    body.filter-open .mobile-filter-overlay {
        opacity: 1;
        visibility: visible;
    }

    /* 移动端筛选面板 */
    .category__filters {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: #fff;
        z-index: 1001;
        padding: 20px;
        padding-top: 80px; /* 为导航栏留出空间 */
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .category__filters.active {
        transform: translateX(0);
    }

    .category__results {
        flex: 0 0 100%;
        width: 100%;
    }

    /* 移动端产品列表一行显示2个 */
    .product-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .filters__title{
        font-size: 14px;
    }

    .filters__option input[type="checkbox"],
    .filters__option input[type="radio"]{
        font-size: 12px;
    }

    .filters__subtitle,.filters__label{
        font-size: 12px;
    }

    /* 移动端显示关闭按钮 */
    .mobile-filter-close {
        display: flex;
        position: absolute;
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        font-size: 32px;
        line-height: 1;
        color: #666;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1002;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: color 0.3s ease;
    }

    .mobile-filter-close:hover {
        color: #333;
    }

    .product-card__name{
        font-size: 18px;
    }

    .product-card__info{
        margin: 10px 0;
    }

    .product-card__image{
        margin-bottom: 10px;
    }

    .product-card__learn-more{
        opacity: 1;
        margin-bottom: 0;
    }
}
