/* 商品详情页样式 */
.zh_goods_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 面包屑导航 */
.zh_breadcrumb {
    background: #F8FAFC;
    padding: 15px 0;
    margin-bottom: 30px;
}

.zh_breadcrumb_inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748B;
}

.zh_breadcrumb a {
    color: #64748B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zh_breadcrumb a:hover {
    color: #9F26C3;
}

.zh_breadcrumb .separator {
    color: #CBD5E1;
}

.zh_breadcrumb .current {
    color: #1E293B;
    font-weight: 500;
}

/* 主要商品区域 */
.zh_goods_main {
    padding: 20px 0;
}

.zh_goods_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* 商品图片区域 */
.zh_goods_gallery {
    position: relative;
}

.zh_main_image_container {
    position: relative;
    background: #F8FAFC;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    margin-bottom: 20px;
    border: 1px solid #E2E8F0;
}

.zh_main_image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.zh_main_image:hover {
    transform: scale(1.05);
}

.zh_zoom_indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zh_main_image_container:hover .zh_zoom_indicator {
    opacity: 1;
}



/* 缩略图列表 */
.zh_thumbnail_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.zh_thumbnail_item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #F8FAFC;
}

.zh_thumbnail_item.active {
    border-color: #9F26C3;
    box-shadow: 0 0 0 1px #9F26C3;
}

.zh_thumbnail_item:hover {
    border-color: #9F26C3;
    transform: translateY(-2px);
}

.zh_thumbnail_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 商品信息区域 */
.zh_goods_info {
    padding: 20px 0;
}

.zh_goods_badge {
    display: inline-block;
    background: linear-gradient(135deg, #9F26C3, #C084FC);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zh_goods_title {
    font-size: 28px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.3;
    margin-bottom: 12px;
}

.zh_goods_subtitle {
    font-size: 16px;
    color: #64748B;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* 价格区域 */
.zh_price_section {
    background: linear-gradient(135deg, #F8FAFC, #F1F5F9);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 32px;
    border: 1px solid #E2E8F0;
}

.zh_price_main {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.zh_current_price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.zh_currency {
    font-size: 20px;
    color: #9F26C3;
    font-weight: 600;
}

.zh_price_value {
    font-size: 36px;
    font-weight: 800;
    color: #9F26C3;
    line-height: 1;
}

.zh_market_price {
    color: #94A3B8;
    text-decoration: line-through;
    font-size: 16px;
}

.zh_discount_badge {
    background: #EF4444;
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.zh_promotion_price {
    background: #F59E0B;
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
}

/* 评分区域 */
.zh_rating_section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: #FEFEFE;
    border-radius: 12px;
    border: 1px solid #F1F5F9;
}

.zh_rating_label {
    font-weight: 600;
    color: #374151;
}

.zh_rating_stars {
    display: flex;
    gap: 4px;
}

.zh_rating_star {
    color: #FCD34D;
    font-size: 18px;
}

/* 商品属性 */
.zh_goods_attributes {
    margin-bottom: 32px;
}

.zh_attribute_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.zh_attribute_item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
}

.zh_attribute_label {
    color: #64748B;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.zh_attribute_value {
    color: #1E293B;
    font-weight: 600;
}

/* 店铺信息区域 */
.zh_store_info_section {
    background: #FEFEFE;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #F1F5F9;
}

.zh_store_info_section .zh_attribute_item {
    padding: 10px 0;
    border-bottom: 1px solid #F8FAFC;
}

.zh_store_info_section .zh_attribute_item:last-child {
    border-bottom: none;
}

.zh_store_info_section .zh_attribute_value a {
    transition: color 0.3s ease;
}

.zh_store_info_section .zh_attribute_value a:hover {
    color: #8A1FA3 !important;
}

/* 规格选择 */
.zh_spec_section {
    margin-bottom: 32px;
}

.zh_spec_group {
    margin-bottom: 24px;
}

.zh_spec_label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: block;
}

.zh_spec_options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.zh_spec_option {
    padding: 12px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    background: white;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.zh_spec_option:hover {
    border-color: #9F26C3;
    color: #9F26C3;
    transform: translateY(-1px);
}

.zh_spec_option.hovered {
    border-color: #9F26C3;
    background: #9F26C3;
    color: white;
}

.zh_spec_option.disable {
    border-color: #F1F5F9;
    background: #F8FAFC;
    color: #CBD5E1;
    cursor: not-allowed;
}

.zh_spec_option.disable:hover {
    transform: none;
}

/* 数量选择 */
.zh_quantity_section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px;
    background: #FEFEFE;
    border-radius: 12px;
    border: 1px solid #F1F5F9;
}

.zh_quantity_label {
    font-weight: 600;
    color: #374151;
    min-width: 60px;
}

.zh_quantity_control {
    display: flex;
    align-items: center;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
}

.zh_quantity_btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #F8FAFC;
    color: #64748B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zh_quantity_btn:hover {
    background: #9F26C3;
    color: white;
}

.zh_quantity_btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.zh_quantity_input {
    width: 80px;
    height: 44px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    outline: none;
    background: white;
}

.zh_stock_info {
    color: #64748B;
    font-size: 14px;
}

/* 购买按钮区域 */
.zh_purchase_section {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.zh_btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 160px;
}

.zh_btn_primary {
    background: linear-gradient(135deg, #9F26C3, #C084FC);
    color: white;
    box-shadow: 0 4px 14px rgba(159, 38, 195, 0.3);
}

.zh_btn_primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(159, 38, 195, 0.4);
}

.zh_btn_secondary {
    background: white;
    color: #9F26C3;
    border: 2px solid #9F26C3;
}

.zh_btn_secondary:hover {
    background: #9F26C3;
    color: white;
    transform: translateY(-2px);
}

.zh_btn_disabled {
    background: #F1F5F9;
    color: #94A3B8;
    cursor: not-allowed;
}



/* 商品详情区域 */
.zh_goods_detail_section {
    margin: 40px 0;
}

/* 商品详情内容 */
.zh_goods_description {
    line-height: 1.8;
    color: #374151;
}

.zh_goods_description img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.zh_goods_description h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1E293B;
    margin: 32px 0 16px;
}

.zh_goods_description ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.zh_goods_description li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #374151;
}

.zh_goods_description li i {
    color: #10B981;
    font-size: 16px;
}

/* 默认内容样式 */
.zh_default_content {
    text-align: center;
    padding: 40px 20px;
}

.zh_default_content img {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 32px;
}



/* 移动端底部购买栏 */
.zh_mobile_purchase_bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 20px;
    border-top: 1px solid #E2E8F0;
    display: none;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.zh_mobile_content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.zh_mobile_price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.zh_mobile_price .zh_currency {
    font-size: 16px;
    color: #9F26C3;
    font-weight: 600;
}

.zh_mobile_price .zh_price_value {
    font-size: 24px;
    font-weight: 800;
    color: #9F26C3;
}

.zh_mobile_actions {
    display: flex;
    gap: 12px;
}

.zh_mobile_btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zh_mobile_btn_cart {
    background: white;
    color: #9F26C3;
    border: 1px solid #9F26C3;
}

.zh_mobile_btn_buy {
    background: #9F26C3;
    color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .zh_goods_wrapper {
        gap: 40px;
    }
    
    .zh_thumbnail_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .zh_goods_container {
        padding: 0 15px;
    }
    
    .zh_goods_wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .zh_thumbnail_grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .zh_goods_title {
        font-size: 24px;
    }
    
    .zh_price_value {
        font-size: 28px;
    }
    
    .zh_purchase_section {
        flex-direction: column;
    }
    
    .zh_btn {
        width: 100%;
    }
    
    .zh_mobile_purchase_bar {
        display: block;
    }
    
    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .zh_goods_container {
        padding: 0 10px;
    }
    
    .zh_price_section {
        padding: 16px;
    }
    
    .zh_store_card {
        padding: 16px;
    }
    
    .zh_quantity_section {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .zh_quantity_control {
        align-self: center;
    }
}

/* 评分系统样式 */
.zh_rating {
    display: flex;
    gap: 2px;
}

.zh_rating_star {
    width: 16px;
    height: 16px;
    color: #FCD34D;
}

.zh_store_rating .zh_rating_star {
    width: 14px;
    height: 14px;
}

/* 加载动画 */
.zh_loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #64748B;
}

/* 空状态 */
.zh_empty_state {
    text-align: center;
    padding: 60px 20px;
    color: #64748B;
}

.zh_empty_state i {
    font-size: 48px;
    color: #CBD5E1;
    margin-bottom: 16px;
}


