/* 商家详情页样式 - 杭州金豚网络科技有限公司 */

/* 页面头部样式 */
.zh_brand_header {
    padding: 60px 0 40px;
}

.zh_page_header_bg {
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 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;
}

/* 商家信息展示区域 */
.zh_brand_info_section {
    padding: 80px 0;
}

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

.zh_brand_header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.zh_brand_avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 32px;
}

.zh_brand_details {
    min-width: 0;
}

.zh_brand_name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.zh_brand_description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

.zh_brand_actions {
    display: flex;
    justify-content: flex-end;
}

.zh_contact_brand {
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 100%);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zh_contact_brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

/* 商家统计信息 */
.zh_brand_stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.zh_stat_card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.zh_stat_card:hover {
    background: rgba(255, 107, 53, 0.08);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-5px);
}

.zh_stat_icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 24px;
    margin: 0 auto 20px;
}

.zh_stat_label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.zh_stat_value {
    color: #FF6B35;
    font-size: 1.3rem;
    font-weight: 700;
}

/* 商家产品列表区域 */
.zh_brand_products_section {
    padding: 80px 0;
}

.zh_section_header {
    text-align: center;
    margin-bottom: 50px;
}

.zh_section_title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

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

/* 产品工具栏 */
.zh_products_toolbar {
    display: flex;
    justify-content: flex-start;
    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(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    color: #FF6B35;
}

.zh_view_btn.active {
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 100%);
    border-color: #FF6B35;
    color: #000;
}

/* 产品网格 */
.zh_products_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.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(255, 107, 53, 0.08);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 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, #FF6B35 0%, #ff8c5a 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: #FF6B35;
    border-color: #FF6B35;
    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: #FF6B35;
}

.zh_product_price {
    margin-bottom: 12px;
}

.zh_current_price {
    color: #FF6B35;
    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(255, 107, 53, 0.1);
    color: #FF6B35;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

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

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

.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(255, 107, 53, 0.08);
    border-color: rgba(255, 107, 53, 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, #FF6B35 0%, #ff8c5a 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: #FF6B35;
}

.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: #FF6B35;
    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: #FF6B35;
    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_products_text {
    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;
    margin-bottom: 40px;
}

.zh_product_text_item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.zh_product_text_item:last-child {
    border-bottom: none;
}

.zh_product_text_item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zh_product_text_item a:hover {
    color: #FF6B35;
}

/* 分页 */
.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_brand_header {
        grid-template-columns: auto 1fr;
        gap: 20px;
    }
    
    .zh_brand_actions {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 20px;
    }
    
    .zh_brand_stats {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .zh_brand_info_section {
        padding: 40px 0;
    }
    
    .zh_brand_profile {
        padding: 25px;
    }
    
    .zh_brand_header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .zh_brand_name {
        font-size: 2rem;
    }
    
    .zh_brand_stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .zh_section_title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .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_products_toolbar {
        padding: 15px 20px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .zh_brand_profile {
        padding: 20px;
    }
    
    .zh_brand_avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .zh_brand_name {
        font-size: 1.6rem;
    }
    
    .zh_brand_description {
        font-size: 1rem;
    }
    
    .zh_stat_card {
        padding: 20px;
    }
    
    .zh_stat_icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .zh_section_title {
        font-size: 1.5rem;
    }
    
    .zh_products_grid {
        grid-template-columns: 1fr;
    }
    
    .zh_product_content {
        padding: 15px;
    }
}