/* 店铺详情页样式 - 广东艺而亿科技有限公司商城平台 */

/* ===== 基础重置和全局样式 ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #F5F5F5;
    margin: 0;
    padding: 0;
}

/* ===== 容器和布局 ===== */
.zh_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.zh_main_wrapper {
    background-color: #F5F5F5;
    min-height: 100vh;
    padding: 20px 0 40px;
}

.zh_content_layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 30px;
}

.zh_main_content {
    background: transparent;
}

.zh_sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== 面包屑导航 ===== */
.zh_breadcrumb {
    background: #FFFFFF;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 0;
}

.zh_breadcrumb_nav {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.zh_breadcrumb_item {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zh_breadcrumb_item:hover {
    color: #D32F2F;
}

.zh_breadcrumb_separator {
    margin: 0 10px;
    color: #999999;
}

.zh_breadcrumb_current {
    color: #D32F2F;
    font-weight: 500;
}

/* ===== 店铺头部区域 ===== */
.zh_store_header_section {
    margin-bottom: 30px;
}

.zh_store_cover {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
}

.zh_cover_image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    opacity: 0.9;
}

.zh_cover_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(211, 47, 47, 0.8) 0%, 
        rgba(183, 28, 28, 0.9) 100%);
    display: flex;
    align-items: center;
    padding: 40px;
}

.zh_store_main_info {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.zh_store_avatar {
    position: relative;
    flex-shrink: 0;
}

.zh_store_avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    background: #FFFFFF;
    padding: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.zh_verified_badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: #FBC02D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.zh_store_details {
    flex: 1;
    color: #FFFFFF;
}

.zh_store_title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.zh_store_subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 16px;
    font-weight: 400;
}

.zh_store_meta {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    font-size: 14px;
}

.zh_location,
.zh_join_time {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.zh_service_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.zh_service_tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.zh_service_tag.zh_verified {
    background: rgba(251, 192, 45, 0.2);
    border-color: rgba(251, 192, 45, 0.5);
}

.zh_store_actions {
    display: flex;
    gap: 12px;
}

.zh_primary_btn,
.zh_secondary_btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zh_primary_btn {
    background: #FBC02D;
    color: #333333;
    box-shadow: 0 4px 12px rgba(251, 192, 45, 0.4);
}

.zh_primary_btn:hover {
    background: #F9A825;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(251, 192, 45, 0.6);
}

.zh_secondary_btn {
    background: rgba(255,255,255,0.2);
    color: #FFFFFF;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.zh_secondary_btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* ===== 统计信息区域 ===== */
.zh_stats_section {
    margin-bottom: 30px;
}

.zh_stats_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #FFFFFF;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.zh_stat_item {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F5F5F5 0%, #FFFFFF 100%);
    transition: transform 0.3s ease;
}

.zh_stat_item:hover {
    transform: translateY(-4px);
}

.zh_stat_number {
    font-size: 28px;
    font-weight: 700;
    color: #D32F2F;
    margin-bottom: 8px;
}

.zh_stat_label {
    font-size: 14px;
    color: #666666;
    font-weight: 500;
}

/* ===== 通用章节样式 ===== */
.zh_business_section,
.zh_showcase_section,
.zh_products_section {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.zh_section_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #F5F5F5;
}

.zh_section_title {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zh_section_title i {
    color: #D32F2F;
}

.zh_view_more {
    color: #D32F2F;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.zh_view_more:hover {
    color: #B71C1C;
}

/* ===== 主营商品介绍 ===== */
.zh_business_content p {
    font-size: 16px;
    line-height: 1.8;
    color: #666666;
    margin: 0;
}

/* ===== 店铺展示区域 ===== */
.zh_showcase_slider {
    border-radius: 12px;
    overflow: hidden;
}

.zh_showcase_slider img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.zh_showcase_grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 400px;
}

.zh_showcase_item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.zh_showcase_item:hover {
    transform: scale(1.02);
}

.zh_showcase_main {
    grid-row: 1 / 3;
}

.zh_showcase_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zh_showcase_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #FFFFFF;
    padding: 20px;
}

.zh_showcase_overlay h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.zh_showcase_overlay p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* ===== 商品网格 ===== */
.zh_products_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.zh_product_card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.zh_product_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.zh_product_link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.zh_product_image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.zh_product_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zh_product_card:hover .zh_product_image img {
    transform: scale(1.1);
}

.zh_new_badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FBC02D;
    color: #333333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
}

.zh_product_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(211, 47, 47, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zh_product_card:hover .zh_product_overlay {
    opacity: 1;
}

.zh_view_btn {
    background: #FFFFFF;
    color: #D32F2F;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.zh_product_overlay:hover .zh_view_btn {
    transform: scale(1.05);
}

.zh_product_info {
    padding: 20px;
}

.zh_product_name {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.zh_product_desc {
    font-size: 14px;
    color: #666666;
    margin: 0 0 12px 0;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.zh_product_price {
    margin: 0;
}

.zh_current_price {
    font-size: 20px;
    font-weight: 700;
    color: #D32F2F;
}

/* ===== 侧边栏样式 ===== */
.zh_sidebar_card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.zh_card_header {
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
    color: #FFFFFF;
    padding: 20px;
}

.zh_card_title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== 店铺信息列表 ===== */
.zh_store_info_list {
    padding: 24px;
}

.zh_info_row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #F5F5F5;
}

.zh_info_row:last-child {
    border-bottom: none;
}

.zh_info_label {
    font-size: 14px;
    color: #666666;
    font-weight: 500;
    min-width: 80px;
}

.zh_info_value {
    font-size: 14px;
    color: #333333;
    text-align: right;
    flex: 1;
    margin-left: 16px;
}

/* ===== 商品分类树 ===== */
.zh_category_tree {
    padding: 20px;
}

.zh_category_node {
    border-bottom: 1px solid #F5F5F5;
}

.zh_category_node:last-child {
    border-bottom: none;
}

.zh_category_parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.zh_category_parent:hover {
    color: #D32F2F;
}

.zh_category_text {
    font-size: 14px;
    font-weight: 500;
}

.zh_category_toggle {
    font-size: 12px;
    color: #666666;
    transition: transform 0.3s ease;
}

.zh_subcategory_list {
    list-style: none;
    margin: 0;
    padding: 0 0 12px 16px;
}

.zh_subcategory_item {
    padding: 6px 0;
}

.zh_subcategory_item a {
    color: #666666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.zh_subcategory_item a:hover {
    color: #D32F2F;
}

/* ===== 热销排行 ===== */
.zh_ranking_list {
    padding: 20px;
}

.zh_ranking_item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F5F5F5;
    transition: background-color 0.3s ease;
}

.zh_ranking_item:last-child {
    border-bottom: none;
}

.zh_ranking_item:hover {
    background: #F8F9FA;
    margin: 0 -20px;
    padding: 12px 20px;
}

.zh_ranking_number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F5F5F5;
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
}

.zh_ranking_number.zh_top_three {
    background: linear-gradient(135deg, #FBC02D 0%, #F9A825 100%);
    color: #FFFFFF;
}

.zh_ranking_content {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.zh_ranking_thumb {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.zh_ranking_info {
    flex: 1;
    min-width: 0;
}

.zh_ranking_name {
    font-size: 13px;
    font-weight: 500;
    color: #333333;
    margin: 0 0 4px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.zh_ranking_price {
    font-size: 13px;
    font-weight: 600;
    color: #D32F2F;
    margin-bottom: 1px;
}

.zh_ranking_sales {
    font-size: 10px;
    color: #666666;
}

/* ===== 地图区域 ===== */
.zh_map_wrapper {
    padding: 20px;
}

.zh_map_container {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: #F5F5F5;
    margin-bottom: 12px;
}

.zh_map_address {
    text-align: center;
}

.zh_map_address p {
    margin: 0;
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .zh_content_layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .zh_stats_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .zh_showcase_grid {
        grid-template-columns: 1fr 1fr;
        height: 300px;
    }
    
    .zh_showcase_main {
        grid-row: 1 / 2;
    }
}

@media (max-width: 768px) {
    .zh_container {
        padding: 0 16px;
    }
    
    .zh_cover_overlay {
        padding: 20px;
    }
    
    .zh_store_main_info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .zh_store_title {
        font-size: 24px;
    }
    
    .zh_store_meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .zh_stats_grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }
    
    .zh_products_grid {
        grid-template-columns: 1fr;
    }
    
    .zh_showcase_grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .zh_showcase_item {
        height: 200px;
    }
    
    .zh_business_section,
    .zh_showcase_section,
    .zh_products_section {
        padding: 20px;
    }
    
    .zh_section_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .zh_store_actions {
        flex-direction: column;
        width: 100%;
    }
    
    .zh_primary_btn,
    .zh_secondary_btn {
        width: 100%;
        justify-content: center;
    }
    
    .zh_service_tags {
        justify-content: center;
    }
}
