/* 商品列表页样式 - 营养健康商城 - 参考Figma布局 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1b1b1b;
    background: #f5f5f5;
}

.zh_container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 面包屑导航 */
.zh_breadcrumb {
    background: #fff;
    padding: 20px 0;
    margin-bottom: 30px;
}

.zh_breadcrumb_list {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.zh_breadcrumb_item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #505050;
    font-size: 14px;
}

.zh_breadcrumb_item a {
    color: #505050;
    text-decoration: none;
    transition: color 0.3s;
}

.zh_breadcrumb_item a:hover {
    color: #e60000;
}

.zh_breadcrumb_separator {
    color: #999;
}

/* 主要内容区域 - 参考Figma不对称布局 */
.zh_search_main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

/* 左侧筛选区域 */
.zh_filter_sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.zh_filter_section {
    background: #fff;
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.zh_filter_title {
    font-size: 18px;
    font-weight: 700;
    color: #1b1b1b;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e60000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zh_filter_title i {
    color: #e60000;
}

.zh_filter_list {
    list-style: none;
}

.zh_filter_item {
    margin-bottom: 12px;
}

.zh_filter_item a,
.zh_filter_item label {
    color: #505050;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
}

.zh_filter_item a:hover,
.zh_filter_item label:hover {
    background: #fce2e2;
    color: #e60000;
    transform: translateX(5px);
}

.zh_filter_item.active a {
    background: linear-gradient(135deg, #e60000 0%, #ff3333 100%);
    color: #fff;
    font-weight: 600;
}

.zh_price_inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.zh_price_input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.zh_price_input:focus {
    border-color: #e60000;
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}

.zh_price_btn {
    background: #e60000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.zh_price_btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
}

/* 筛选标签 */
.zh_filter_tags {
    background: #efefef;
    padding: 20px 30px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.zh_tags_list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.zh_filter_tag {
    background: #fff;
    color: #505050;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e0e0e0;
}

.zh_tag_close {
    color: #e60000;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s;
}

.zh_tag_close:hover {
    transform: rotate(90deg);
}

.zh_clear_filters {
    color: #e60000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.zh_clear_filters:hover {
    text-decoration: underline;
}

/* 右侧商品区域 */
.zh_products_area {
    min-height: 600px;
}

/* 排序栏 - 参考Figma深色卡片 */
.zh_sort_bar {
    background: linear-gradient(135deg, #1b1b1b 0%, #0a142f 100%);
    padding: 25px 30px;
    border-radius: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #fff;
}

.zh_result_count {
    font-size: 16px;
    color: #e0e0e0;
}

.zh_result_count strong {
    color: #e60000;
    font-size: 20px;
    font-weight: 700;
}

.zh_sort_options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.zh_sort_btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.zh_sort_btn:hover {
    background: rgba(230, 0, 0, 0.2);
    border-color: #e60000;
    color: #fff;
}

.zh_sort_btn.active {
    background: #e60000;
    border-color: #e60000;
    color: #fff;
    font-weight: 600;
}

/* 商品网格 */
.zh_products_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.zh_product_card {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.4s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    position: relative;
}

.zh_product_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(230, 0, 0, 0.15);
}

.zh_product_card:nth-child(3n+1) {
    border-bottom-right-radius: 100px;
}

.zh_product_card:nth-child(3n+2) {
    border-top-left-radius: 100px;
}

.zh_product_image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

.zh_product_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.zh_product_card:hover .zh_product_image img {
    transform: scale(1.08);
}

.zh_product_badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #e60000 0%, #ff3333 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
}

.zh_product_store {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: #505050;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 5px;
}

.zh_product_store i {
    color: #e60000;
}

.zh_product_content {
    padding: 25px;
}

.zh_product_title {
    margin-bottom: 15px;
}

.zh_product_title a {
    color: #1b1b1b;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.zh_product_title a:hover {
    color: #e60000;
}

.zh_product_desc {
    color: #999;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_product_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

.zh_product_price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.zh_current_price {
    color: #e60000;
    font-size: 26px;
    font-weight: 700;
}

.zh_market_price {
    color: #999;
    font-size: 13px;
    text-decoration: line-through;
}

.zh_view_btn {
    background: linear-gradient(135deg, #e60000 0%, #ff3333 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.25);
}

.zh_view_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 0, 0, 0.35);
}

/* 空状态 */
.zh_empty_state {
    background: #fff;
    border-radius: 30px;
    padding: 80px 40px;
    text-align: center;
}

.zh_empty_icon {
    font-size: 80px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.zh_empty_title {
    font-size: 20px;
    color: #505050;
    margin-bottom: 15px;
}

.zh_empty_desc {
    color: #999;
    font-size: 14px;
    margin-bottom: 30px;
}

.zh_empty_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e60000;
    color: #fff;
    padding: 14px 30px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.zh_empty_btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 0, 0.3);
}

/* 分页 - 参考Figma样式 */
.zh_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.zh_pagination .pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    align-items: center;
}

/* 隐藏统计信息、首页、尾页、跳转框 */
.zh_pagination .pagination > li:first-child,
.zh_pagination .pagination > li:nth-child(2),
.zh_pagination .pagination > li:last-child,
.zh_pagination .pagination > li:nth-last-child(2) {
    display: none !important;
}

/* 分页项基础样式 */
.zh_pagination .pagination li {
    margin: 0;
}

.zh_pagination .pagination li a,
.zh_pagination .pagination li span {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    text-decoration: none;
    color: #505050;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    padding: 0 12px;
}

/* 悬停效果 */
.zh_pagination .pagination li a:hover {
    background: #fce2e2;
    color: #e60000;
    border-color: #e60000;
    transform: translateY(-2px);
}

/* 当前页样式 */
.zh_pagination .pagination li.active span {
    background: linear-gradient(135deg, #e60000 0%, #ff3333 100%);
    color: #fff;
    border-color: #e60000;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
}

/* 禁用状态 */
.zh_pagination .pagination li.disabled span {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* 最近浏览 */
.zh_recent_section {
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    margin-top: 60px;
}

.zh_recent_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.zh_recent_title {
    font-size: 24px;
    font-weight: 700;
    color: #1b1b1b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zh_recent_title i {
    color: #e60000;
}

.zh_recent_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.zh_recent_item {
    text-align: center;
}

.zh_recent_image {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
}

.zh_recent_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.zh_recent_item:hover .zh_recent_image img {
    transform: scale(1.05);
}

.zh_recent_name {
    color: #1b1b1b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.zh_recent_name:hover {
    color: #e60000;
}

.zh_recent_price {
    color: #e60000;
    font-size: 18px;
    font-weight: 700;
    margin-top: 8px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .zh_search_main {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }

    .zh_products_grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .zh_search_main {
        grid-template-columns: 1fr;
    }

    .zh_filter_sidebar {
        position: static;
    }

    .zh_filter_section {
        border-radius: 20px;
        padding: 25px;
    }

    .zh_products_grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
}

@media (max-width: 768px) {
    .zh_sort_bar {
        padding: 20px;
        border-radius: 20px;
    }

    .zh_products_grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .zh_product_card {
        border-radius: 20px;
    }

    .zh_product_card:nth-child(3n+1),
    .zh_product_card:nth-child(3n+2) {
        border-radius: 20px;
    }

    .zh_product_image {
        height: 220px;
    }

    .zh_recent_grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .zh_products_grid {
        grid-template-columns: 1fr;
    }

    .zh_sort_bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .zh_pagination {
        gap: 8px;
    }

    .zh_page_item {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }
}
