/* 商品列表页样式 - zh_ 前缀 - 基于Figma深色科技风格 */

/* 面包屑导航 */
.zh_breadcrumb {
    background: rgba(10, 10, 10, 0.95);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.zh_breadcrumb_container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    color: #94a3b8;
    font-size: 14px;
}

.zh_breadcrumb_container a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zh_breadcrumb_container a:hover {
    color: #0ea5e9;
}

/* 主容器 */
.zh_category_main {
    background: #000000;
    min-height: 100vh;
    padding: 30px 0;
}

.zh_category_container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 30px;
}

/* 左侧边栏 */
.zh_sidebar {
    width: 280px;
    flex-shrink: 0;
}

.zh_sidebar_section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.zh_sidebar_title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.zh_sidebar_item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.zh_sidebar_item:last-child {
    border-bottom: none;
}

.zh_sidebar_link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
}

.zh_sidebar_link:hover {
    color: #00d4ff;
    padding-left: 8px;
}

.zh_sidebar_product_image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.zh_sidebar_product_image:hover {
    transform: scale(1.05);
}

.zh_sidebar_product_title {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.zh_sidebar_product_price {
    font-size: 18px;
    font-weight: 700;
    color: #00d4ff;
}

/* 右侧主内容区 */
.zh_content {
    flex: 1;
}

/* 排序栏 */
.zh_sort_bar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.zh_sort_label {
    color: #94a3b8;
    font-size: 14px;
    margin-right: 15px;
}

.zh_sort_links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.zh_sort_link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.zh_sort_link:hover,
.zh_sort_link.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    color: #00d4ff;
}

/* 商品网格 */
.zh_products_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.zh_product_card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.zh_product_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.zh_product_card:hover::before {
    opacity: 1;
}

.zh_product_card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.zh_product_link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
}

.zh_product_image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zh_product_card:hover .zh_product_image {
    transform: scale(1.05);
}

.zh_product_info {
    padding: 20px;
}

.zh_product_title {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.zh_product_shop {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 12px;
}

.zh_product_price {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zh_price_current {
    font-size: 22px;
    font-weight: 700;
    color: #00d4ff;
}

.zh_price_market {
    font-size: 14px;
    color: #64748b;
    text-decoration: line-through;
}

/* 分页 */
.zh_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.zh_pagination_link {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.zh_pagination_link:hover,
.zh_pagination_link.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    color: #00d4ff;
}

.zh_pagination_link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 空状态 */
.zh_empty_state {
    text-align: center;
    padding: 80px 20px;
}

.zh_empty_icon {
    font-size: 64px;
    color: #64748b;
    margin-bottom: 20px;
}

.zh_empty_title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.zh_empty_description {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 30px;
}

.zh_empty_button {
    display: inline-block;
    background: linear-gradient(135deg, #00d4ff 0%, #0ea5e9 100%);
    color: #000000;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.zh_empty_button:hover {
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

/* 响应式 */
@media (max-width: 1200px) {
    .zh_category_container {
        padding: 0 20px;
    }

    .zh_products_grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .zh_category_container {
        flex-direction: column;
    }

    .zh_sidebar {
        width: 100%;
    }

    .zh_products_grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .zh_category_main {
        padding: 20px 0;
    }

    .zh_breadcrumb_container {
        padding: 0 20px;
        font-size: 13px;
    }

    .zh_category_container {
        padding: 0 15px;
    }

    .zh_sort_bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .zh_products_grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .zh_product_image {
        height: 180px;
    }

    .zh_product_info {
        padding: 15px;
    }

    .zh_product_title {
        font-size: 14px;
    }

    .zh_price_current {
        font-size: 18px;
    }
}
