/* 商品详情页样式 - zh_ 前缀 - 基于Figma深色科技风格 */

/* 面包屑导航 */
.zh_breadcrumb {
    background: rgba(10, 10, 10, 0.95);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.zh_breadcrumb_container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    color: #94a3b8;
    font-size: 14px;
}

.zh_breadcrumb_container a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zh_breadcrumb_container a:hover {
    color: #0ea5e9;
}

/* 主容器 */
.zh_goods_main {
    background: #000000;
    min-height: 100vh;
    padding: 30px 0;
}

.zh_goods_container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 商品主要信息区 */
.zh_product_main {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 50px;
}

/* 图片展示区 */
.zh_product_images {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.zh_main_image_wrapper {
    width: 100%;
    height: 500px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.zh_main_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.zh_main_image:hover {
    transform: scale(1.1);
}

.zh_thumb_images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.zh_thumb_item {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(0, 212, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.zh_thumb_item:hover,
.zh_thumb_item.active {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.zh_thumb_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 商品信息区 */
.zh_product_details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.zh_product_name {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 10px;
}

.zh_shop_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    color: #00d4ff;
    font-size: 14px;
    margin-bottom: 10px;
}

.zh_price_section {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
}

.zh_price_row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.zh_price_row:last-child {
    margin-bottom: 0;
}

.zh_price_label {
    color: #94a3b8;
    font-size: 14px;
    min-width: 80px;
}

.zh_market_price {
    color: #64748b;
    font-size: 16px;
    text-decoration: line-through;
}

.zh_shop_price {
    font-size: 40px;
    font-weight: 700;
    color: #00d4ff;
}

.zh_currency {
    font-size: 24px;
}

/* 服务标签 */
.zh_services {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.zh_service_tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    color: #cbd5e1;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 商品属性 */
.zh_attributes {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.zh_attr_row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.zh_attr_row:last-child {
    border-bottom: none;
}

.zh_attr_label {
    color: #94a3b8;
    font-size: 14px;
    min-width: 100px;
    flex-shrink: 0;
}

.zh_attr_value {
    color: #ffffff;
    font-size: 14px;
}

/* 数量选择和购买按钮 */
.zh_buy_section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
}

.zh_quantity_selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.zh_quantity_label {
    color: #94a3b8;
    font-size: 14px;
}

.zh_quantity_controls {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.zh_quantity_btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #00d4ff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zh_quantity_btn:hover {
    background: rgba(0, 212, 255, 0.1);
}

.zh_quantity_input {
    width: 60px;
    height: 40px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(0, 212, 255, 0.2);
    border-right: 1px solid rgba(0, 212, 255, 0.2);
    color: #ffffff;
    text-align: center;
    font-size: 16px;
    outline: none;
}

.zh_total_amount {
    color: #94a3b8;
    font-size: 14px;
}

.zh_total_price {
    color: #00d4ff;
    font-size: 24px;
    font-weight: 700;
    margin-left: 10px;
}

.zh_action_buttons {
    display: flex;
    gap: 15px;
}

.zh_btn_buy,
.zh_btn_cart {
    flex: 1;
    padding: 16px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.zh_btn_buy {
    background: linear-gradient(135deg, #00d4ff 0%, #0ea5e9 100%);
    color: #000000;
}

.zh_btn_buy:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.zh_btn_cart {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.zh_btn_cart:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
}

/* 相关商品 */
.zh_related_products {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
}

.zh_section_title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.zh_related_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.zh_related_card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.zh_related_card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.zh_related_link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.zh_related_image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.zh_related_info {
    padding: 15px;
}

.zh_related_title {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zh_related_price {
    font-size: 18px;
    font-weight: 700;
    color: #00d4ff;
}

/* 响应式 */
@media (max-width: 1200px) {
    .zh_product_main {
        grid-template-columns: 450px 1fr;
        gap: 30px;
        padding: 30px;
    }
}

@media (max-width: 991px) {
    .zh_product_main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .zh_product_images {
        position: relative;
        top: 0;
    }

    .zh_main_image_wrapper {
        height: 400px;
    }

    .zh_product_name {
        font-size: 28px;
    }

    .zh_shop_price {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .zh_goods_container {
        padding: 0 15px;
    }

    .zh_product_main {
        padding: 20px;
    }

    .zh_main_image_wrapper {
        height: 300px;
    }

    .zh_product_name {
        font-size: 24px;
    }

    .zh_shop_price {
        font-size: 28px;
    }

    .zh_action_buttons {
        flex-direction: column;
    }

    .zh_related_grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .zh_related_image {
        height: 150px;
    }
}
