/* 产品详情页样式 - 杭州危安行科技有限公司 */

/* 商品页面头部 */
.zh_goods_header {
    padding: 40px 0 30px;
}

.zh_goods_header .zh_page_title_section {
    display: none;
}

/* 产品详情主要内容 */
.zh_product_details_section {
    padding: 40px 0 80px;
}

.zh_product_details_layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.zh_product_main_content {
    min-width: 0;
}

/* 产品详情包装器 */
.zh_product_details_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* 产品图片区域 */
.zh_product_images_section {
    position: sticky;
    top: 120px;
}

.zh_product_gallery {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
}

.zh_main_image {
    margin-bottom: 20px;
}

.zh_large_image_wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.zh_main_product_image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.zh_image_zoom_trigger {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.zh_large_image_wrapper:hover .zh_image_zoom_trigger {
    opacity: 1;
    visibility: visible;
}

.zh_image_zoom_trigger:hover {
    background: #59ff85;
    color: #000;
}

.zh_thumbnail_images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.zh_thumbnail_item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zh_thumbnail_item.active {
    border-color: #59ff85;
}

.zh_thumbnail_item:hover {
    border-color: rgba(89, 255, 133, 0.5);
}

.zh_thumbnail_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品信息区域 */
.zh_product_info_section {
    padding: 20px 0;
}

.zh_product_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.zh_product_title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    flex: 1;
    margin-right: 20px;
}

.zh_product_badge_new {
    flex-shrink: 0;
}

.zh_product_badge_new span {
    background: linear-gradient(135deg, #59ff85 0%, #40cc6a 100%);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.zh_product_rating_section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.zh_rating_stars {
    display: flex;
    gap: 3px;
}

.zh_rating_stars i {
    color: #ffd700;
    font-size: 16px;
}

.zh_rating_text {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.zh_reviews_count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.zh_product_price_section {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.zh_price_main {
    margin-bottom: 15px;
}

.zh_current_price {
    color: #59ff85;
    font-size: 2.2rem;
    font-weight: 700;
    margin-right: 15px;
}

.zh_original_price {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    font-size: 1.3rem;
}

.zh_price_features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.zh_price_tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(89, 255, 133, 0.1);
    color: #59ff85;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid rgba(89, 255, 133, 0.2);
}

.zh_price_tag i {
    font-size: 0.8rem;
}

/* 产品特点 */
.zh_product_features_section {
    margin-bottom: 30px;
}

.zh_features_title {
    color: #59ff85;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.zh_features_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.zh_feature_item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.zh_feature_item:hover {
    background: rgba(89, 255, 133, 0.05);
    border-color: rgba(89, 255, 133, 0.2);
}

.zh_feature_icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #59ff85 0%, #40cc6a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 16px;
    flex-shrink: 0;
}

.zh_feature_content h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.zh_feature_content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* 商家信息 */
.zh_product_seller_section {
    margin-bottom: 30px;
}

.zh_seller_info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
}

.zh_seller_icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #59ff85 0%, #40cc6a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 20px;
    flex-shrink: 0;
}

.zh_seller_content h4 {
    color: #59ff85;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.zh_seller_content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

.zh_seller_link {
    color: #59ff85;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.zh_seller_link:hover {
    color: #fff;
}

/* 数量选择 */
.zh_quantity_section {
    margin-bottom: 30px;
}

.zh_quantity_label {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.zh_quantity_controls {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    width: fit-content;
}

.zh_qty_btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh_qty_btn:hover {
    background: rgba(89, 255, 133, 0.2);
    color: #59ff85;
}

.zh_qty_input {
    width: 80px;
    height: 45px;
    background: transparent;
    border: none;
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
}

.zh_qty_fixed {
    width: 80px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* 操作按钮 */
.zh_action_buttons_section {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.zh_btn_large {
    flex: 1;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.zh_add_to_cart {
    background: linear-gradient(135deg, #59ff85 0%, #40cc6a 100%);
    color: #000;
}

.zh_add_to_cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(89, 255, 133, 0.3);
}

.zh_buy_now {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.zh_buy_now:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.zh_additional_actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.zh_action_link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.zh_action_link:hover {
    color: #59ff85;
}

/* 标签页 */
.zh_product_tabs_section {
    margin-top: 50px;
}

.zh_tabs_navigation {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 8px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.zh_tab_btn {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    min-width: 140px;
}

.zh_tab_btn:hover {
    color: #59ff85;
    background: rgba(89, 255, 133, 0.1);
}

.zh_tab_btn.active {
    background: linear-gradient(135deg, #59ff85 0%, #40cc6a 100%);
    color: #000;
}

.zh_tabs_content {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
}

.zh_tab_panel {
    display: none;
}

.zh_tab_panel.active {
    display: block;
}

.zh_tab_panel h3 {
    color: #59ff85;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
}

/* 产品描述 */
.zh_product_description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.zh_description_content {
    margin-bottom: 30px;
}

.zh_product_images_detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.zh_detail_image {
    width: 100%;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.zh_detail_image:hover {
    transform: scale(1.05);
}

/* 技术参数表格 */
.zh_specs_table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.zh_specs_table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.zh_specs_table td {
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
}

.zh_specs_table td:first-child {
    color: #59ff85;
    font-weight: 600;
    width: 30%;
}

.zh_specs_table tr:hover {
    background: rgba(89, 255, 133, 0.05);
}

/* 用户评价 */
.zh_reviews_summary {
    margin-bottom: 30px;
    text-align: center;
}

.zh_rating_overview {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.zh_rating_score {
    font-size: 3rem;
    font-weight: 700;
    color: #59ff85;
}

.zh_rating_stars_large {
    display: flex;
    gap: 5px;
}

.zh_rating_stars_large i {
    color: #ffd700;
    font-size: 20px;
}

.zh_total_reviews {
    color: rgba(255, 255, 255, 0.7);
}

.zh_review_item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.zh_reviewer_info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.zh_reviewer_avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #59ff85 0%, #40cc6a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 24px;
}

.zh_reviewer_details h5 {
    color: #fff;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.zh_review_rating {
    display: flex;
    gap: 2px;
}

.zh_review_rating i {
    color: #ffd700;
    font-size: 14px;
}

.zh_review_content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 10px;
}

.zh_review_date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* 安装指南 */
.zh_installation_steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.zh_step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.zh_step:hover {
    background: rgba(89, 255, 133, 0.05);
    border-color: rgba(89, 255, 133, 0.2);
}

.zh_step_number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #59ff85 0%, #40cc6a 100%);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.zh_step_content h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.zh_step_content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

/* 侧边栏 */
.zh_product_sidebar {
    position: sticky;
    top: 120px;
}

/* 商家信息侧边栏 */
.zh_merchant_info {
    text-align: center;
}

.zh_merchant_header {
    margin-bottom: 20px;
}

.zh_merchant_name {
    margin: 0;
}

.zh_merchant_name a {
    color: #59ff85;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.zh_merchant_name a:hover {
    color: #fff;
}

.zh_merchant_stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zh_stat_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.zh_stat_value {
    color: #59ff85;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 安全保障 */
.zh_security_items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zh_security_item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.zh_security_item i {
    color: #59ff85;
    width: 16px;
}

/* 推荐产品 */
.zh_recommended_products {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.zh_recommended_item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.zh_recommended_item:hover {
    background: rgba(89, 255, 133, 0.05);
    transform: translateY(-2px);
}

.zh_recommended_image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.zh_recommended_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zh_recommended_info {
    flex: 1;
    min-width: 0;
}

.zh_recommended_title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_recommended_price {
    color: #59ff85;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .zh_product_details_layout {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }
    
    .zh_product_details_wrapper {
        gap: 30px;
    }
    
    .zh_features_grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .zh_product_details_layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .zh_product_sidebar {
        order: 2;
        position: static;
    }
    
    .zh_product_main_content {
        order: 1;
    }
    
    .zh_product_details_wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .zh_product_images_section {
        position: static;
    }
    
    .zh_main_product_image {
        height: 300px;
    }
    
    .zh_product_title {
        font-size: 1.5rem;
    }
    
    .zh_current_price {
        font-size: 1.8rem;
    }
    
    .zh_action_buttons_section {
        flex-direction: column;
    }
    
    .zh_tabs_navigation {
        overflow-x: auto;
    }
    
    .zh_tab_btn {
        min-width: 120px;
        padding: 12px 15px;
    }
    
    .zh_tabs_content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .zh_product_details_section {
        padding: 20px 0 40px;
    }
    
    .zh_product_gallery {
        padding: 15px;
    }
    
    .zh_main_product_image {
        height: 250px;
    }
    
    .zh_thumbnail_images {
        gap: 8px;
    }
    
    .zh_thumbnail_item {
        width: 60px;
        height: 60px;
    }
    
    .zh_product_title {
        font-size: 1.3rem;
    }
    
    .zh_current_price {
        font-size: 1.6rem;
    }
    
    .zh_price_features {
        justify-content: center;
    }
    
    .zh_features_grid {
        gap: 12px;
    }
    
    .zh_feature_item {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }
    
    .zh_feature_icon {
        margin-bottom: 10px;
    }
    
    .zh_quantity_controls {
        margin: 0 auto;
    }
    
    .zh_tabs_content {
        padding: 15px;
    }
    
    .zh_sidebar_widget {
        padding: 20px;
    }
}