/* 商品列表页样式 - 参考首页深色系设计风格 */

/* 页面头部横幅 */
.zh_category_banner {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2b2520 0%, #3a3129 100%);
    overflow: hidden;
    padding: 80px 0;
}

.zh_banner_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.zh_banner_content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #F0F0F0;
}

.zh_breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
}

.zh_breadcrumb_item {
    color: rgba(240,240,240,0.8);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.zh_breadcrumb_item:hover {
    color: #FA7D09;
}

.zh_breadcrumb_divider {
    color: rgba(240,240,240,0.6);
}

.zh_breadcrumb_active {
    color: #FA7D09;
    font-weight: 600;
}

.zh_banner_title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #F0F0F0;
}

.zh_banner_desc {
    font-size: 18px;
    color: rgba(240,240,240,0.8);
    margin: 0;
}

/* 筛选区域 */
.zh_filter_section {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.zh_filter_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.zh_filter_group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.zh_filter_label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zh_filter_label i {
    color: #FA7D09;
}

.zh_filter_tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.zh_filter_tag {
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.zh_filter_tag:hover {
    border-color: #FA7D09;
    color: #FA7D09;
    transform: translateY(-2px);
}

.zh_tag_active {
    background: #FA7D09;
    border-color: #FA7D09;
    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: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #666;
}

.zh_sort_trigger:hover {
    border-color: #FA7D09;
    color: #FA7D09;
}

.zh_sort_menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-width: 150px;
    z-index: 100;
    display: none;
}

.zh_sort_menu.active {
    display: block;
}

.zh_sort_option {
    display: block;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.zh_sort_option:last-child {
    border-bottom: none;
}

.zh_sort_option:hover,
.zh_sort_option.active {
    background: #FA7D09;
    color: #fff;
}

.zh_view_switcher {
    display: flex;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.zh_view_btn {
    padding: 10px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh_view_btn:hover,
.zh_view_btn.active {
    background: #FA7D09;
    color: #fff;
}

/* 产品展示区域 */
.zh_products_section {
    padding: 60px 0;
    background: #fff;
}

.zh_products_wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.zh_product_item {
    transition: all 0.3s;
}

.zh_product_card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.zh_product_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(250,125,9,0.2);
    border-color: #FA7D09;
}

.zh_product_img_wrap {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.zh_product_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.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(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.zh_product_card:hover .zh_product_overlay {
    opacity: 1;
}

.zh_quick_view {
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.zh_quick_view i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.zh_product_badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.zh_badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #FA7D09;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.zh_product_details {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.zh_product_name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.zh_product_name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.zh_product_name a:hover {
    color: #FA7D09;
}

.zh_product_rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.zh_stars_display {
    display: flex;
    gap: 2px;
}

.zh_stars_display i {
    color: #FA7D09;
    font-size: 14px;
}

.zh_rating_num {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.zh_product_pricing {
    margin-bottom: 15px;
}

.zh_price_now {
    font-size: 24px;
    font-weight: 700;
    color: #FA7D09;
    margin-right: 8px;
}

.zh_price_old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.zh_product_features {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.zh_feature_icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    border: 1px solid #eee;
}

.zh_feature_icon i {
    color: #FA7D09;
    font-size: 10px;
}

.zh_product_actions {
    margin-top: auto;
}

.zh_btn_view_detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: #FA7D09;
    border: 2px solid #FA7D09;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    justify-content: center;
}

.zh_btn_view_detail:hover {
    background: #FA7D09;
    color: #fff;
    transform: translateY(-2px);
}

/* 列表视图 */
.zh_products_list_view {
    display: none;
}

.zh_list_item {
    margin-bottom: 20px;
}

.zh_list_card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: all 0.3s;
}

.zh_list_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(250,125,9,0.15);
    border-color: #FA7D09;
}

.zh_list_img {
    width: 200px;
    height: 150px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.zh_list_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.zh_list_card:hover .zh_list_img img {
    transform: scale(1.1);
}

.zh_list_content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.zh_list_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.zh_list_title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.zh_list_title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.zh_list_title a:hover {
    color: #FA7D09;
}

.zh_list_badges {
    display: flex;
    gap: 8px;
}

.zh_mini_badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    border: 1px solid #eee;
}

.zh_mini_badge i {
    color: #FA7D09;
    font-size: 10px;
}

.zh_list_rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.zh_stars_small {
    display: flex;
    gap: 2px;
}

.zh_stars_small i {
    color: #FA7D09;
    font-size: 12px;
}

.zh_rating_score {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.zh_list_desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.zh_list_meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.zh_meta_item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #999;
}

.zh_meta_item i {
    color: #FA7D09;
    font-size: 12px;
}

.zh_list_actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 24px;
    border-left: 1px solid #eee;
    min-width: 200px;
}

.zh_list_price_block {
    margin-bottom: 20px;
    text-align: right;
}

.zh_list_price {
    font-size: 28px;
    font-weight: 700;
    color: #FA7D09;
    margin-bottom: 4px;
}

.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 24px;
    background: #FA7D09;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.zh_btn_list_detail:hover {
    background: #e56d00;
    transform: translateY(-2px);
    color: #fff;
}

/* 分页 */
.zh_pagination_area {
    text-align: center;
    margin-top: 50px;
}

.zh_pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.zh_pagination a,
.zh_pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.zh_pagination a {
    color: #666;
    background: transparent;
}

.zh_pagination a:hover {
    background: #FA7D09;
    color: #fff;
}

.zh_pagination .current {
    background: #FA7D09;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .zh_products_wrapper {
        grid-template-columns: repeat(auto-fill, minmax(280px, 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 {
        justify-content: center;
    }

    .zh_toolbar_controls {
        justify-content: center;
    }

    .zh_products_wrapper {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .zh_list_card {
        flex-direction: column;
    }

    .zh_list_img {
        width: 100%;
        height: 200px;
    }

    .zh_list_actions {
        border-left: none;
        border-top: 1px solid #eee;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-width: auto;
    }

    .zh_list_price_block {
        margin-bottom: 0;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .zh_category_banner {
        min-height: 300px;
        padding: 60px 0;
    }

    .zh_banner_title {
        font-size: 28px;
    }

    .zh_banner_desc {
        font-size: 16px;
    }

    .zh_filter_section {
        padding: 20px 0;
    }

    .zh_filter_tags {
        justify-content: center;
    }

    .zh_products_wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .zh_products_section {
        padding: 40px 0;
    }

    .zh_list_content {
        padding: 20px;
    }

    .zh_list_actions {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .zh_list_price_block {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .zh_banner_title {
        font-size: 24px;
    }

    .zh_filter_group {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .zh_filter_tags {
        flex-direction: column;
        width: 100%;
    }

    .zh_filter_tag {
        text-align: center;
        justify-content: center;
    }

    .zh_toolbar_controls {
        flex-direction: column;
        gap: 15px;
    }

    .zh_sort_trigger {
        width: 100%;
        justify-content: center;
    }

    .zh_view_switcher {
        width: 100%;
        justify-content: center;
    }
}