/* 产品列表页样式 - 全新设计 */

/* 页面整体布局 - 避免被导航遮挡 */
.zh_category_page {
    padding-top: 120px;
}

/* 页面顶部横幅 */
.zh_category_banner {
    position: relative;
    background: linear-gradient(135deg, #749F06 0%, #638708 100%);
    padding: 80px 0 60px;
    margin-bottom: 40px;
    overflow: hidden;
}

.zh_banner_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,10 600,50 T1200,50 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.05)"/></svg>') repeat-x bottom;
    opacity: 0.3;
}

.zh_banner_content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.zh_breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 14px;
}

.zh_breadcrumb_item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.zh_breadcrumb_item:hover {
    color: #fff;
}

.zh_breadcrumb_active {
    color: #fff;
    font-weight: 600;
}

.zh_breadcrumb_divider {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.zh_banner_title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.zh_banner_desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 2px;
}

/* 筛选区域 */
.zh_filter_section {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.zh_filter_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 30px;
}

.zh_filter_group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.zh_filter_label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #18813f;
    font-size: 15px;
    white-space: nowrap;
}

.zh_filter_label i {
    font-size: 16px;
}

.zh_filter_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.zh_filter_tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #f8f9fa;
    color: #555;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.zh_filter_tag:hover {
    background: #e9f5e3;
    color: #749F06;
    border-color: #749F06;
}

.zh_filter_tag i {
    font-size: 14px;
}

.zh_tag_active {
    background: #749F06;
    color: #fff;
    border-color: #749F06;
}

.zh_tag_active:hover {
    background: #638708;
    border-color: #638708;
    color: #fff;
}

/* 工具栏控制 */
.zh_toolbar_controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 排序下拉菜单 */
.zh_sort_dropdown {
    position: relative;
}

.zh_sort_trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zh_sort_trigger:hover {
    background: #e9ecef;
    border-color: #749F06;
}

.zh_sort_trigger i:last-child {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.zh_sort_dropdown.active .zh_sort_trigger i:last-child {
    transform: rotate(180deg);
}

.zh_sort_menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 110;
}

.zh_sort_menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.zh_sort_option {
    display: block;
    padding: 10px 16px;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.zh_sort_option:hover {
    background: #e9f5e3;
    color: #749F06;
}

.zh_sort_option.active {
    background: #749F06;
    color: #fff;
    font-weight: 600;
}

/* 视图切换 */
.zh_view_switcher {
    display: flex;
    gap: 8px;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 30px;
    border: 2px solid #e9ecef;
}

.zh_view_btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zh_view_btn:hover {
    background: rgba(116, 159, 6, 0.1);
    color: #749F06;
}

.zh_view_btn.active {
    background: #749F06;
    color: #fff;
}

/* 产品展示区域 */
.zh_products_section {
    padding: 40px 0 80px;
}

/* 产品网格视图 */
.zh_products_wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.zh_product_item {
    height: 100%;
}

.zh_product_card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.zh_product_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(116, 159, 6, 0.2);
    border-color: #749F06;
}

.zh_product_img_wrap {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
    display: block;
}

.zh_product_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.zh_product_card:hover .zh_product_img {
    transform: scale(1.1);
}

.zh_product_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(116, 159, 6, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zh_product_card:hover .zh_product_overlay {
    opacity: 1;
}

.zh_quick_view {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.zh_product_card:hover .zh_quick_view {
    transform: translateY(0);
}

.zh_product_badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.zh_badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.zh_badge_featured {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #fff;
}

.zh_product_details {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.zh_product_name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.zh_product_name a {
    color: #18813f;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_product_name a:hover {
    color: #749F06;
}

.zh_product_rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.zh_stars_display {
    display: flex;
    gap: 2px;
    color: #FFD700;
    font-size: 14px;
}

.zh_rating_num {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.zh_product_pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.zh_price_now {
    font-size: 26px;
    font-weight: 800;
    color: #749F06;
}

.zh_price_old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.zh_product_features {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.zh_feature_icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #18813f;
    font-weight: 500;
}

.zh_feature_icon i {
    font-size: 14px;
}

.zh_product_actions {
    margin-top: auto;
}

.zh_btn_view_detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: #749F06;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.zh_btn_view_detail:hover {
    background: #638708;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(116, 159, 6, 0.3);
}

/* 产品列表视图 */
.zh_products_list_view {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

.zh_list_item {
    width: 100%;
}

.zh_list_card {
    display: flex;
    gap: 25px;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.zh_list_card:hover {
    box-shadow: 0 8px 24px rgba(116, 159, 6, 0.15);
    border-color: #749F06;
    transform: translateX(8px);
}

.zh_list_img {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
}

.zh_list_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.zh_list_card:hover .zh_list_img img {
    transform: scale(1.1);
}

.zh_list_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zh_list_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.zh_list_title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.zh_list_title a {
    color: #18813f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zh_list_title a:hover {
    color: #749F06;
}

.zh_list_badges {
    flex-shrink: 0;
}

.zh_mini_badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #e9f5e3;
    color: #18813f;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.zh_list_rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zh_stars_small {
    display: flex;
    gap: 2px;
    color: #FFD700;
    font-size: 14px;
}

.zh_rating_score {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.zh_list_desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.zh_list_meta {
    display: flex;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.zh_meta_item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #18813f;
    font-weight: 500;
}

.zh_meta_item i {
    font-size: 14px;
}

.zh_list_actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    padding-left: 20px;
    border-left: 1px solid #f0f0f0;
}

.zh_list_price_block {
    text-align: right;
}

.zh_list_price {
    font-size: 28px;
    font-weight: 800;
    color: #749F06;
    line-height: 1;
    margin-bottom: 5px;
}

.zh_list_price_old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.zh_btn_list_detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #749F06;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.zh_btn_list_detail:hover {
    background: #638708;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(116, 159, 6, 0.3);
}

/* 分页区域 */
.zh_pagination_area {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .zh_products_wrapper {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .zh_banner_title {
        font-size: 36px;
    }

    .zh_filter_bar {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .zh_filter_group {
        flex-direction: column;
        align-items: stretch;
    }

    .zh_toolbar_controls {
        justify-content: space-between;
    }

    .zh_products_wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .zh_list_img {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .zh_category_banner {
        padding: 80px 0 50px;
    }

    .zh_banner_title {
        font-size: 28px;
    }

    .zh_banner_desc {
        font-size: 14px;
    }

    .zh_products_wrapper {
        grid-template-columns: 1fr;
    }

    .zh_list_card {
        flex-direction: column;
    }

    .zh_list_img {
        width: 100%;
        height: 220px;
    }

    .zh_list_actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding-left: 0;
        padding-top: 15px;
    }

    .zh_list_price_block {
        text-align: left;
    }

    .zh_product_img_wrap {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .zh_filter_section {
        position: static;
    }

    .zh_filter_tags {
        width: 100%;
    }

    .zh_filter_tag {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }

    .zh_toolbar_controls {
        flex-direction: column;
        gap: 15px;
    }

    .zh_sort_dropdown,
    .zh_view_switcher {
        width: 100%;
    }

    .zh_sort_trigger {
        width: 100%;
        justify-content: space-between;
    }

    .zh_view_switcher {
        justify-content: center;
    }
}
