/* 商品详情页样式 - 营养健康商城 - 参考Figma布局 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1b1b1b;
    background: #f5f5f5;
}

.zh_container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 面包屑 */
.zh_breadcrumb {
    background: #fff;
    padding: 20px 0;
    margin-bottom: 30px;
}

.zh_breadcrumb_list {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.zh_breadcrumb_item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #505050;
    font-size: 14px;
}

.zh_breadcrumb_item a {
    color: #505050;
    text-decoration: none;
    transition: color 0.3s;
}

.zh_breadcrumb_item a:hover {
    color: #e60000;
}

.zh_breadcrumb_separator {
    color: #999;
}

/* 主要商品展示区 */
.zh_goods_main {
    background: #fff;
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.zh_goods_layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* 左侧图片区域 */
.zh_gallery_section {
    position: sticky;
    top: 120px;
}

.zh_main_image {
    background: #f5f5f5;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 500px;
    position: relative;
}

.zh_main_image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}

.zh_main_image:hover img {
    transform: scale(1.05);
}

.zh_image_badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zh_image_badge {
    background: linear-gradient(135deg, #e60000 0%, #ff3333 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
}

.zh_thumbnail_list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.zh_thumbnail_item {
    background: #f5f5f5;
    border-radius: 15px;
    overflow: hidden;
    height: 90px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.zh_thumbnail_item:hover,
.zh_thumbnail_item.active {
    border-color: #e60000;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.2);
}

.zh_thumbnail_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右侧商品信息 */
.zh_product_info {
    padding: 20px 0;
}

.zh_product_title {
    font-size: 28px;
    font-weight: 700;
    color: #1b1b1b;
    margin-bottom: 15px;
    line-height: 1.4;
}

.zh_product_subtitle {
    font-size: 16px;
    color: #505050;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* 价格区域 - 参考Figma粉色背景 */
.zh_price_section {
    background: linear-gradient(135deg, #fce2e2 0%, #fff5f5 100%);
    padding: 30px;
    border-radius: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(230, 0, 0, 0.1);
}

.zh_price_row {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 15px;
}

.zh_price_label {
    font-size: 14px;
    color: #505050;
    min-width: 60px;
}

.zh_price_value {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.zh_current_price {
    font-size: 36px;
    font-weight: 700;
    color: #e60000;
}

.zh_price_unit {
    font-size: 16px;
    color: #505050;
}

.zh_market_price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.zh_discount_badge {
    background: #e60000;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

/* 规格选择 */
.zh_specs_section {
    margin-bottom: 30px;
}

.zh_spec_row {
    margin-bottom: 25px;
}

.zh_spec_label {
    font-size: 15px;
    font-weight: 600;
    color: #1b1b1b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zh_spec_label i {
    color: #e60000;
}

.zh_spec_options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.zh_spec_option {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    color: #505050;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.zh_spec_option:hover {
    border-color: #e60000;
    color: #e60000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.2);
}

.zh_spec_option.active {
    background: linear-gradient(135deg, #e60000 0%, #ff3333 100%);
    border-color: #e60000;
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
}

.zh_spec_option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* 数量选择 */
.zh_quantity_row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.zh_quantity_label {
    font-size: 15px;
    font-weight: 600;
    color: #1b1b1b;
}

.zh_quantity_selector {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    background: #fff;
}

.zh_quantity_btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    color: #505050;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh_quantity_btn:hover {
    background: #e60000;
    color: #fff;
}

.zh_quantity_input {
    width: 80px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
    outline: none;
}

.zh_stock_info {
    font-size: 13px;
    color: #999;
}

/* 操作按钮区域 */
.zh_action_buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.zh_action_btn {
    padding: 16px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border: none;
    min-height: 54px;
}

.zh_add_cart_btn {
    background: #fff;
    color: #e60000;
    border: 2px solid #e60000;
}

.zh_add_cart_btn:hover {
    background: #e60000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 0, 0.3);
}

.zh_buy_now_btn {
    background: linear-gradient(135deg, #e60000 0%, #ff3333 100%);
    color: #fff;
    border: 2px solid #e60000;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.25);
}

.zh_buy_now_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 0, 0.4);
}

/* 商家信息卡片 - 参考Figma深色渐变 */
.zh_store_card {
    background: linear-gradient(135deg, #1b1b1b 0%, #0a142f 100%);
    color: #fff;
    padding: 25px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.zh_store_header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.zh_store_logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
}

.zh_store_logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zh_store_info {
    flex: 1;
}

.zh_store_name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.zh_store_rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #e0e0e0;
}

.zh_store_stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.zh_stat_item {
    text-align: center;
}

.zh_stat_value {
    font-size: 20px;
    font-weight: 700;
    color: #e60000;
    margin-bottom: 5px;
}

.zh_stat_label {
    font-size: 12px;
    color: #e0e0e0;
}

.zh_store_actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.zh_store_btn {
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.zh_visit_store_btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.zh_visit_store_btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #e60000;
}

.zh_contact_store_btn {
    background: #e60000;
    color: #fff;
    border: none;
}

.zh_contact_store_btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.4);
}

/* 服务保障 */
.zh_service_section {
    background: #efefef;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.zh_service_item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #505050;
}

.zh_service_item i {
    color: #e60000;
    font-size: 16px;
}

/* 商品详情标签页 */
.zh_tabs_section {
    background: #fff;
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.zh_tabs_nav {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.zh_tab_btn {
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #505050;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.zh_tab_btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e60000;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.zh_tab_btn:hover,
.zh_tab_btn.active {
    color: #e60000;
}

.zh_tab_btn.active::after {
    transform: scaleX(1);
}

.zh_tab_content {
    display: none;
}

.zh_tab_content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.zh_tab_pane {
    line-height: 1.8;
    color: #505050;
}

.zh_tab_pane img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 15px 0;
}

/* 参数表格 */
.zh_params_table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.zh_params_table tr {
    border-bottom: 1px solid #e0e0e0;
}

.zh_params_table td {
    padding: 15px;
}

.zh_params_table td:first-child {
    width: 30%;
    font-weight: 600;
    color: #1b1b1b;
    background: #f5f5f5;
}

.zh_params_table td:last-child {
    color: #505050;
}

/* 相关推荐 */
.zh_related_section {
    background: #fff;
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.zh_section_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.zh_section_title {
    font-size: 24px;
    font-weight: 700;
    color: #1b1b1b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zh_section_title i {
    color: #e60000;
}

.zh_view_all {
    color: #505050;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.zh_view_all:hover {
    color: #e60000;
}

.zh_related_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.zh_related_item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.zh_related_item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(230, 0, 0, 0.15);
    border-color: #e60000;
}

.zh_related_item:nth-child(4n+1) {
    border-bottom-right-radius: 80px;
}

.zh_related_item:nth-child(4n+2) {
    border-top-left-radius: 80px;
}

.zh_related_image {
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.zh_related_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.zh_related_item:hover .zh_related_image img {
    transform: scale(1.08);
}

.zh_related_info {
    padding: 15px;
}

.zh_related_title {
    font-size: 14px;
    font-weight: 600;
    color: #1b1b1b;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_related_title a {
    color: #1b1b1b;
    text-decoration: none;
    transition: color 0.3s;
}

.zh_related_title a:hover {
    color: #e60000;
}

.zh_related_price {
    color: #e60000;
    font-size: 20px;
    font-weight: 700;
}

/* 移动端浮动操作栏 */
.zh_mobile_bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    z-index: 1000;
}

.zh_mobile_actions {
    display: flex;
    gap: 10px;
}

.zh_mobile_btn {
    flex: 1;
    padding: 12px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

/* 响应式 */
@media (max-width: 1200px) {
    .zh_goods_layout {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .zh_related_grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 1024px) {
    .zh_goods_layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .zh_gallery_section {
        position: static;
    }

    .zh_main_image {
        height: 400px;
    }

    .zh_tabs_nav {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .zh_goods_main {
        padding: 25px;
        border-radius: 20px;
    }

    .zh_tabs_section,
    .zh_related_section {
        padding: 25px;
        border-radius: 20px;
    }

    .zh_product_title {
        font-size: 22px;
    }

    .zh_current_price {
        font-size: 28px;
    }

    .zh_action_buttons {
        grid-template-columns: 1fr;
    }

    .zh_store_stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .zh_related_grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .zh_mobile_bar {
        display: block;
    }

    .zh_goods_main .zh_action_buttons {
        display: none;
    }
}

@media (max-width: 480px) {
    .zh_main_image {
        height: 300px;
        border-radius: 20px;
    }

    .zh_thumbnail_list {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .zh_thumbnail_item {
        height: 70px;
    }

    .zh_price_section {
        padding: 20px;
        border-radius: 20px;
    }

    .zh_current_price {
        font-size: 24px;
    }

    .zh_spec_options {
        gap: 8px;
    }

    .zh_spec_option {
        padding: 10px 18px;
        font-size: 13px;
    }

    .zh_related_grid {
        grid-template-columns: 1fr;
    }

    .zh_related_item:nth-child(4n+1),
    .zh_related_item:nth-child(4n+2) {
        border-radius: 20px;
    }
}
