/* 产品列表页样式 - 杭州危安行科技有限公司 */

/* 页面头部样式 */
.zh_page_header {
    position: relative;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(40, 40, 40, 0.95) 100%);
    overflow: hidden;
}

.zh_page_header_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(89, 255, 133, 0.1) 0%, transparent 50%),
        url('https://images.unsplash.com/photo-1558618047-3c8c76ca7d13?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}

.zh_breadcrumb_wrapper {
    text-align: center;
}

.zh_breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.zh_breadcrumb_link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.zh_breadcrumb_link:hover {
    color: #59ff85;
}

.zh_breadcrumb_separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.zh_breadcrumb_current {
    color: #59ff85;
    font-weight: 600;
}

.zh_page_title_section {
    text-align: center;
}

.zh_page_title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #59ff85 0%, #40cc6a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.zh_page_subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto;
}

/* 主要内容布局 */
.zh_main_content {
    padding: 80px 0;
}

.zh_content_layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* 侧边栏样式 */
.zh_sidebar {
    position: sticky;
    top: 120px;
}

.zh_sidebar_widget {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.zh_sidebar_widget:hover {
    background: rgba(89, 255, 133, 0.08);
    border-color: rgba(89, 255, 133, 0.3);
}

.zh_widget_title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #59ff85;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zh_widget_title i {
    width: 20px;
    text-align: center;
}

/* 分类列表 */
.zh_category_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zh_category_item {
    margin-bottom: 10px;
}

.zh_category_link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.zh_category_link:hover {
    background: rgba(89, 255, 133, 0.1);
    border-color: rgba(89, 255, 133, 0.3);
    color: #59ff85;
    transform: translateX(5px);
}

.zh_category_link i:first-child {
    color: #59ff85;
    width: 20px;
}

.zh_category_link i:last-child {
    font-size: 12px;
    opacity: 0.6;
}

/* 筛选器 */
.zh_filter_section {
    margin-bottom: 20px;
}

.zh_filter_title {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.zh_price_filter {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 15px;
}

.zh_price_range {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zh_price_label {
    color: #59ff85;
    font-weight: 600;
}

.zh_price_separator {
    color: rgba(255, 255, 255, 0.5);
}

/* 热门产品 */
.zh_hot_products {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.zh_hot_product_item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.zh_hot_product_item:hover {
    background: rgba(89, 255, 133, 0.05);
    transform: translateY(-2px);
}

.zh_hot_product_image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.zh_hot_product_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zh_hot_product_info {
    flex: 1;
    min-width: 0;
}

.zh_hot_product_title {
    margin-bottom: 8px;
}

.zh_hot_product_title a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.zh_hot_product_title a:hover {
    color: #59ff85;
}

.zh_hot_product_price .zh_current_price {
    color: #59ff85;
    font-weight: 600;
    font-size: 0.9rem;
}

.zh_hot_product_price .zh_original_price {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    font-size: 0.8rem;
    margin-left: 8px;
}

/* 主内容区 */
.zh_main_area {
    min-height: 600px;
}

/* 产品工具栏 */
.zh_products_toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 25px;
    margin-bottom: 30px;
}

.zh_toolbar_left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.zh_view_mode {
    display: flex;
    gap: 8px;
}

.zh_view_btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh_view_btn:hover {
    background: rgba(89, 255, 133, 0.1);
    border-color: rgba(89, 255, 133, 0.3);
    color: #59ff85;
}

.zh_view_btn.active {
    background: linear-gradient(135deg, #59ff85 0%, #40cc6a 100%);
    border-color: #59ff85;
    color: #000;
}

.zh_results_count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.zh_count_number {
    color: #59ff85;
    font-weight: 600;
}

.zh_toolbar_right {
    display: flex;
    align-items: center;
}

.zh_sort_select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    padding: 10px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.zh_sort_select:hover,
.zh_sort_select:focus {
    background: rgba(89, 255, 133, 0.1);
    border-color: rgba(89, 255, 133, 0.3);
}

.zh_sort_select option {
    background: #333;
    color: #fff;
}

/* 产品网格 */
.zh_products_container {
    margin-bottom: 40px;
}

.zh_products_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.zh_product_card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.zh_product_card:hover {
    transform: translateY(-8px);
    background: rgba(89, 255, 133, 0.08);
    border-color: rgba(89, 255, 133, 0.3);
    box-shadow: 0 15px 40px rgba(89, 255, 133, 0.15);
}

.zh_product_image_wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.zh_product_link {
    display: block;
    width: 100%;
    height: 100%;
}

.zh_product_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zh_product_card:hover .zh_product_image {
    transform: scale(1.1);
}

.zh_product_badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.zh_badge_new {
    background: linear-gradient(135deg, #59ff85 0%, #40cc6a 100%);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.zh_product_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.zh_product_card:hover .zh_product_overlay {
    opacity: 1;
    visibility: visible;
}

.zh_product_actions {
    display: flex;
    gap: 10px;
}

.zh_action_btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh_action_btn:hover {
    background: #59ff85;
    border-color: #59ff85;
    color: #000;
    transform: scale(1.1);
}

.zh_product_content {
    padding: 20px;
}

.zh_product_title {
    margin-bottom: 12px;
}

.zh_product_title a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.zh_product_title a:hover {
    color: #59ff85;
}

.zh_product_price {
    margin-bottom: 12px;
}

.zh_current_price {
    color: #59ff85;
    font-size: 1.3rem;
    font-weight: 700;
    margin-right: 10px;
}

.zh_original_price {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    font-size: 1rem;
}

.zh_product_rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.zh_stars {
    display: flex;
    gap: 2px;
}

.zh_stars i {
    color: #ffd700;
    font-size: 14px;
}

.zh_rating_text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.zh_product_features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zh_feature_tag {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(89, 255, 133, 0.1);
    color: #59ff85;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(89, 255, 133, 0.2);
}

.zh_feature_tag i {
    font-size: 0.7rem;
}

/* 列表视图 */
.zh_products_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zh_product_list_item {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    gap: 20px;
}

.zh_product_list_item:hover {
    background: rgba(89, 255, 133, 0.08);
    border-color: rgba(89, 255, 133, 0.3);
    transform: translateY(-3px);
}

.zh_list_product_image {
    position: relative;
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
}

.zh_list_product_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zh_list_product_badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #59ff85 0%, #40cc6a 100%);
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.zh_list_product_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.zh_list_product_title {
    margin-bottom: 10px;
}

.zh_list_product_title a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.zh_list_product_title a:hover {
    color: #59ff85;
}

.zh_list_product_description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 15px;
}

.zh_list_product_features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.zh_list_feature_item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #59ff85;
    font-size: 0.9rem;
}

.zh_list_feature_item i {
    font-size: 0.8rem;
}

.zh_list_product_actions {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    text-align: right;
}

.zh_list_product_price {
    margin-bottom: 20px;
}

.zh_list_current_price {
    color: #59ff85;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.zh_list_original_price {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    font-size: 1rem;
}

.zh_list_action_buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.zh_btn_sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 20px;
}

/* 分页 */
.zh_pagination_wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.zh_pagination {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px 25px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .zh_content_layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .zh_content_layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .zh_sidebar {
        order: 2;
        position: static;
    }
    
    .zh_main_area {
        order: 1;
    }
    
    .zh_products_toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .zh_toolbar_left {
        justify-content: center;
    }
    
    .zh_products_grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .zh_product_list_item {
        flex-direction: column;
        text-align: center;
    }
    
    .zh_list_product_image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .zh_list_product_actions {
        width: 100%;
        align-items: center;
        text-align: center;
        margin-top: 20px;
    }
    
    .zh_list_action_buttons {
        flex-direction: row;
        justify-content: center;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .zh_page_title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .zh_main_content {
        padding: 40px 0;
    }
    
    .zh_products_grid {
        grid-template-columns: 1fr;
    }
    
    .zh_sidebar_widget {
        padding: 20px;
    }
    
    .zh_products_toolbar {
        padding: 15px 20px;
    }
    
    .zh_product_content {
        padding: 15px;
    }
}