/* 
 * myproductdetail_ 前缀的CSS样式 - 产品详情页面专用
 * 所有样式都以myproductdetail_为前缀，避免与其他模块冲突
 * 包含三个正方形图片集轮播，带点状指示器（已修正居中与底部位置）
 * 追加：左侧分类树 + 左右两栏布局
 * 修正：图片集容器使用auto-fit、空容器display:none，实现完美居中
 */

/* 重置和基础样式 - 仅针对myproductdetail模块 */
.myproductdetail_container {
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 宽版容器 - 用于主要内容区域 */
.myproductdetail_container_wide {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* 模块指示区域 */
.myproductdetail_module_indicator {
    margin-top: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 60px 0;
}

.myproductdetail_module_indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.myproductdetail_header {
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.myproductdetail_title {
    font-size: 2.8rem;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.myproductdetail_subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* 二级分类菜单 */
.myproductdetail_category_nav {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 100;
    width: 100%;
}

.myproductdetail_category_list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    position: relative;
}

.myproductdetail_category_item {
    margin: 0 10px;
    position: relative;
}

.myproductdetail_category_link {
    display: block;
    padding: 12px 25px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.myproductdetail_category_link:hover {
    color: #e60012;
}

.myproductdetail_category_item.active .myproductdetail_category_link {
    color: #e60012;
    font-weight: 700;
}

/* 三级分类悬浮菜单 - 修正定位 */
.myproductdetail_tertiary_menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-top: 1px solid #eee;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.myproductdetail_tertiary_menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 400px;
    padding: 20px 0;
}

.myproductdetail_tertiary_content {
    padding: 0;
}

.myproductdetail_tertiary_list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.myproductdetail_tertiary_item {
    margin: 0;
}

.myproductdetail_tertiary_link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    background-color: #f8f9fa;
    justify-content: center;
}

.myproductdetail_tertiary_link:hover {
    background-color: #e60012;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}

.myproductdetail_tertiary_icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    color: #e60012;
    transition: color 0.3s ease;
}

.myproductdetail_tertiary_link:hover .myproductdetail_tertiary_icon {
    color: #fff;
}

/* 面包屑导航区域 */
.myproductdetail_breadcrumb_area {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
}

.myproductdetail_breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 1.2rem;
}

.myproductdetail_breadcrumb_link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 2px 5px;
    border-radius: 4px;
}

.myproductdetail_breadcrumb_link:hover {
    color: #e60012;
    background-color: #f1f3f5;
}

.myproductdetail_breadcrumb_separator {
    margin: 0 8px;
    color: #adb5bd;
}

.myproductdetail_breadcrumb_current {
    color: #495057;
    font-weight: 600;
    padding: 2px 8px;
    background-color: #e9ecef;
    border-radius: 4px;
}

/* 主要内容区域 - 全屏宽度 */
.myproductdetail_content_area {
    padding: 40px 0 60px;
    background-color: #fff;
    width: 100%;
}

.myproductdetail_fullwidth_container {
    width: 100%;
}

/* 产品详情容器 */
.myproductdetail_detail_container {
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f5;
    margin-bottom: 40px;
}

/* ==================== 新增：左右两栏布局 ==================== */
.myproductdetail_two_column_layout {
    display: flex;
    gap: 0;
    position: relative;
}

/* 左侧分类树侧边栏 */
.myproductdetail_left_sidebar {
    width: 300px;
    flex-shrink: 0;
    background: #fafbfc;
    border-right: 1px solid #e9ecef;
    min-height: 600px;
}

/* ★★★ 修复：右侧内容强制纵向排列 ★★★ */
.myproductdetail_right_content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;   /* 纵向排列 */
    width: 100%;
}

/* 确保右侧所有直接子元素宽度100%，防止横向布局 */
.myproductdetail_right_content > * {
    width: 100%;
    flex-shrink: 0;
}

/* ==================== 左侧分类树样式（新加） ==================== */
.myproductdetail_category_tree_wrapper {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border: none;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.myproductdetail_category_tree_header {
    padding: 20px;
    border-bottom: 1px solid #f1f3f5;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.myproductdetail_category_tree_title {
    margin: 0;
    font-size: 1.2rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.myproductdetail_category_tree_title i { color: #e60012; font-size: 1.1rem; }

.myproductdetail_tree_controls { display: flex; gap: 8px; }

.myproductdetail_tree_expand_all,
.myproductdetail_tree_collapse_all {
    background: transparent;
    border: 1px solid #dee2e6;
    color: #6c757d;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.myproductdetail_tree_expand_all:hover,
.myproductdetail_tree_collapse_all:hover {
    background: #e60012;
    border-color: #e60012;
    color: #fff;
}

.myproductdetail_category_tree_scroll {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    min-height: 400px;
}

.myproductdetail_category_tree_scroll::-webkit-scrollbar { width: 6px; }
.myproductdetail_category_tree_scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
.myproductdetail_category_tree_scroll::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
.myproductdetail_category_tree_scroll::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }

.myproductdetail_category_tree { list-style: none; margin: 0; padding: 0; }
.myproductdetail_tree_item { margin: 0; position: relative; }

.myproductdetail_tree_node {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 4px;
    border-bottom: 1px solid #f1f1f1;
}

.myproductdetail_tree_toggle {
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 3px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: #6c757d;
    padding: 0;
}

.myproductdetail_tree_toggle:hover { background: #f1f3f5; color: #e60012; }
.myproductdetail_tree_toggle i { font-size: 0.8rem; transition: transform 0.3s ease; width: 12px; height: 12px; }
.myproductdetail_tree_item.expanded .myproductdetail_tree_toggle i { transform: rotate(90deg); }

.myproductdetail_tree_spacer { width: 23px; height: 20px; flex-shrink: 0; }

.myproductdetail_tree_link {
    display: flex;
    align-items: center;
    padding: 8px 6px;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
}

.myproductdetail_tree_link:hover { background: #f8f9fa; color: #e60012; }

.myproductdetail_tree_name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-left: 3px;
}

.myproductdetail_tree_children { list-style: none; margin: 0; padding-left: 13px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.myproductdetail_tree_item.expanded > .myproductdetail_tree_children { max-height: 2000px; }

.myproductdetail_tree_item[data-depth="1"] .myproductdetail_tree_node { margin-left: 10px; }
.myproductdetail_tree_item[data-depth="2"] .myproductdetail_tree_node { margin-left: 20px; }
.myproductdetail_tree_item[data-depth="3"] .myproductdetail_tree_node { margin-left: 30px; }
.myproductdetail_tree_item[data-depth="4"] .myproductdetail_tree_node { margin-left: 40px; }

.myproductdetail_tree_link.current .myproductdetail_tree_name { font-weight: bold; color: #e60012; }
.myproductdetail_tree_item.in-path .myproductdetail_tree_name { font-weight: bold; color: inherit; }

/* ★ 新增：直接作用于链接本身，确保标红 */
.myproductdetail_tree_item.current > .myproductdetail_tree_node > .myproductdetail_tree_link {
    color: #e60012 !important;
    font-weight: bold !important;
}


.myproductdetail_tree_empty {
    padding: 30px 20px;
    text-align: center;
    color: #6c757d;
}
.myproductdetail_tree_empty p { margin: 0; font-size: 0.95rem; }

/* ==================== 原有样式继续 ==================== */
/* 上方区块：产品标题信息 */
.myproductdetail_header_section {
    padding: 40px 0 30px;
}

/* 状态标签 */
.myproductdetail_status_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.myproductdetail_status_tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.myproductdetail_status_tag_featured {
    background-color: #ffc107;
    color: #212529;
}

.myproductdetail_status_tag_new {
    background-color: #17a2b8;
    color: #fff;
}

.myproductdetail_status_tag_hot {
    background-color: #dc3545;
    color: #fff;
}

.myproductdetail_main_title {
    font-size: 2.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.myproductdetail_sub_title {
    font-size: 1.3rem;
    color: #6c757d;
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 产品编号和型号 */
.myproductdetail_code_info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.myproductdetail_code_item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #495057;
}

.myproductdetail_code_icon {
    margin-right: 8px;
    color: #e60012;
    width: 16px;
    height: 16px;
}

.myproductdetail_code_item strong {
    margin-right: 5px;
    color: #2c3e50;
}

.myproductdetail_meta_info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    max-width: 800px;
    margin: 0 auto;
}

.myproductdetail_meta_left,
.myproductdetail_meta_right {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.myproductdetail_meta_item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #6c757d;
}

.myproductdetail_meta_icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: #e60012;
}

.myproductdetail_category_tag {
    color: #e60012;
    text-decoration: none;
    padding: 3px 10px;
    background-color: #e8f5e9;
    border-radius: 4px;
    font-weight: 500;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.myproductdetail_category_tag:hover {
    background-color: #e60012;
    color: #fff;
}

.myproductdetail_view_count {
    font-weight: 600;
    color: #2c3e50;
}

/* 价格和交货信息 */
.myproductdetail_price_section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px 0;
    max-width: 800px;
    margin: 0 auto;
}

.myproductdetail_price_main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.myproductdetail_price_label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.myproductdetail_price_value {
    display: flex;
    align-items: baseline;
    font-size: 1.8rem;
    color: #dc3545;
    font-weight: 700;
}

.myproductdetail_price_currency {
    font-size: 1.2rem;
    margin-right: 2px;
}

.myproductdetail_price_number {
    font-size: 1.8rem;
}

.myproductdetail_price_unit {
    font-size: 1rem;
    color: #6c757d;
    margin-left: 4px;
}

.myproductdetail_delivery_info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.myproductdetail_delivery_item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #495057;
}

.myproductdetail_delivery_icon {
    margin-right: 8px;
    color: #17a2b8;
    width: 16px;
    height: 16px;
}

.myproductdetail_delivery_item strong {
    margin-right: 5px;
    color: #2c3e50;
}

/* 灰色分隔线 */
.myproductdetail_section_divider {
    width: 100%;
    height: 1px;
    background-color: #eee;
    margin: 0;
}

/* 中间区块：产品内容 */
.myproductdetail_content_section {
    padding: 40px 0;
}

/* ==================== ★★★ 修正：三个正方形图片集布局样式 ★★★ ==================== */

/* 三个图片集整体容器 */
.myproductdetail_galleries_section {
    margin-bottom: 40px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* ★ 修正：使用auto-fit实现列数自适应 + 居中 */
.myproductdetail_galleries_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;          /* 容器整体居中 */
    width: 100%;
    margin-bottom: 20px;
    justify-content: center; /* 横向居中网格列 */
    justify-items: center;   /* 每个网格项在其单元格内水平居中 */
    align-items: center;     /* 每个网格项在其单元格内垂直居中 */
}

/* 每个图片集包装器 */
.myproductdetail_gallery_wrapper {
    width: 100%;
    min-width: 0;
    max-width: 400px;        /* 限制每个图片集最大宽度，防止拉伸过大 */
}

/* ★ 修正：空图片集容器 - 直接用display:none移除，不占网格空间 */
.myproductdetail_gallery_wrapper.empty-gallery {
    display: none !important;
}

/* 正方形轮播容器 */
.myproductdetail_gallery_carousel {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    aspect-ratio: 1 / 1;  /* 保持正方形 */
    width: 100%;
    margin: 0 auto;
}

.myproductdetail_gallery_viewport {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.myproductdetail_gallery_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
}

.myproductdetail_gallery_slide.active {
    opacity: 1;
    z-index: 1;
}

.myproductdetail_gallery_image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.myproductdetail_gallery_image:hover {
    transform: scale(1.02);
}

.myproductdetail_gallery_placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1rem;
}

.myproductdetail_gallery_placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #adb5bd;
}

/* 点状指示器 - 位于图片底部内侧 */
.myproductdetail_gallery_dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    padding: 5px;
    display:none;
}

/* 渐变背景层，提升点状指示器可见性 */
.myproductdetail_gallery_dots::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
    z-index: -1;
}

.myproductdetail_gallery_dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.myproductdetail_gallery_dot:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
}

.myproductdetail_gallery_dot.active {
    background-color: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* 导航箭头 - 鼠标悬停时显示 */
.myproductdetail_gallery_prev,
.myproductdetail_gallery_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.myproductdetail_gallery_carousel:hover .myproductdetail_gallery_prev,
.myproductdetail_gallery_carousel:hover .myproductdetail_gallery_next {
    opacity: 1;
}

.myproductdetail_gallery_prev:hover,
.myproductdetail_gallery_next:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.myproductdetail_gallery_prev {
    left: 15px;
}

.myproductdetail_gallery_next {
    right: 15px;
}

/* ==================== 三个正方形图片集布局样式 - 结束 ==================== */

/* 认证信息 */
.myproductdetail_certifications {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e60012;
}

.myproductdetail_certifications_title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

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

.myproductdetail_certification_badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #fff;
    color: #495057;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

/* 选项卡区域 */
.myproductdetail_tabs_section {
    margin-top: 40px;
}

/* 选项卡导航 */
.myproductdetail_tabs_nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.myproductdetail_tab_nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: transparent;
    border: none;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.myproductdetail_tab_nav:hover {
    color: #e60012;
    background-color: #f8f9fa;
}

.myproductdetail_tab_nav.active {
    color: #e60012;
    border-bottom-color: #e60012;
    font-weight: 600;
}

.myproductdetail_tab_icon {
    font-size: 1.1rem;
}

/* 选项卡内容 */
.myproductdetail_tabs_content {
    min-height: 300px;
}

.myproductdetail_tab_pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.myproductdetail_tab_pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 内容区块标题 */
.myproductdetail_section_title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e60012;
    position: relative;
}

.myproductdetail_section_title:first-child {
    margin-top: 0;
}

.myproductdetail_section_title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #dc3545;
}

/* 内容区块样式 */
.myproductdetail_description,
.myproductdetail_features,
.myproductdetail_applications,
.myproductdetail_installation,
.myproductdetail_maintenance,
.myproductdetail_packaging,
.myproductdetail_downloads,
.myproductdetail_specifications,
.myproductdetail_pricing,
.myproductdetail_drawings,
.myproductdetail_full_content {
    margin-bottom: 30px;
}

.myproductdetail_description_content,
.myproductdetail_features_content,
.myproductdetail_applications_content,
.myproductdetail_installation_content,
.myproductdetail_maintenance_content,
.myproductdetail_packaging_content,
.myproductdetail_full_content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.myproductdetail_full_content p {
    margin-bottom: 25px;
    text-align: justify;
}

/* 资料下载 */
.myproductdetail_downloads_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.myproductdetail_download_item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    border-left: 4px solid #e60012;
}

.myproductdetail_download_item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
    color: #e60012;
}

.myproductdetail_download_icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    font-size: 1.2rem;
    color: #e60012;
}

.myproductdetail_download_text {
    flex: 1;
    font-weight: 500;
}

.myproductdetail_download_arrow {
    color: #6c757d;
    transition: color 0.3s ease;
}

.myproductdetail_download_item:hover .myproductdetail_download_arrow {
    color: #e60012;
}

/* 技术参数 */
.myproductdetail_parameter_group {
    margin-bottom: 30px;
}

.myproductdetail_parameter_group_title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #17a2b8;
}

.myproductdetail_parameter_table {
    overflow-x: auto;
}

.myproductdetail_specs_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.myproductdetail_specs_table thead {
    background-color: #f8f9fa;
}

.myproductdetail_specs_table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
}

.myproductdetail_specs_table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.myproductdetail_specs_table tbody tr:hover {
    background-color: #f8f9fa;
}

.myproductdetail_specs_table tbody tr.important {
    background-color: #fff3cd;
}

.myproductdetail_specs_table tbody tr.important:hover {
    background-color: #ffeaa7;
}

.myproductdetail_param_code {
    display: inline-block;
    padding: 2px 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    font-size: 0.85rem;
    margin-right: 8px;
    color: #6c757d;
}

.myproductdetail_important_icon {
    color: #ffc107;
    font-size: 1.1rem;
}

/* 价格信息 */
.myproductdetail_price_table {
    overflow-x: auto;
    margin-bottom: 30px;
}

.myproductdetail_pricing_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.myproductdetail_pricing_table thead {
    background-color: #f8f9fa;
}

.myproductdetail_pricing_table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
}

.myproductdetail_pricing_table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.myproductdetail_pricing_table tbody tr:hover {
    background-color: #f8f9fa;
}

.myproductdetail_pricing_table tbody tr.default-price {
    background-color: #d4edda;
    font-weight: 500;
}

.myproductdetail_pricing_table tbody tr.default-price:hover {
    background-color: #c3e6cb;
}

.myproductdetail_price_cell {
    display: flex;
    align-items: baseline;
}

.myproductdetail_default_icon {
    color: #e60012;
    font-size: 1.2rem;
}

/* 产能信息 */
.myproductdetail_capacity_info {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.myproductdetail_capacity_title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.myproductdetail_capacity_content {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

/* 技术图纸 */
.myproductdetail_drawings_list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.myproductdetail_drawing_item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.myproductdetail_drawing_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.myproductdetail_drawing_preview {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.myproductdetail_drawing_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.myproductdetail_drawing_item:hover .myproductdetail_drawing_img {
    transform: scale(1.05);
}

.myproductdetail_drawing_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.myproductdetail_drawing_item:hover .myproductdetail_drawing_overlay {
    opacity: 1;
}

.myproductdetail_drawing_download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #e60012;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.myproductdetail_drawing_download:hover {
    background-color: #218838;
}

.myproductdetail_drawing_info {
    padding: 15px;
}

.myproductdetail_drawing_name {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.myproductdetail_drawing_desc {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* 相关产品 */
.myproductdetail_related_section {
    padding: 40px 0;
}

.myproductdetail_related_header {
    text-align: center;
    margin-bottom: 30px;
}

.myproductdetail_related_title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.myproductdetail_related_desc {
    color: #6c757d;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.myproductdetail_related_list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.myproductdetail_related_item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.myproductdetail_related_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.myproductdetail_related_link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.myproductdetail_related_image {
    height: 180px;
    overflow: hidden;
}

.myproductdetail_related_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.myproductdetail_related_item:hover .myproductdetail_related_img {
    transform: scale(1.05);
}

.myproductdetail_related_info {
    padding: 20px;
}

.myproductdetail_related_name {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.myproductdetail_related_subtitle {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.myproductdetail_related_price {
    display: flex;
    align-items: baseline;
    color: #dc3545;
    font-weight: 600;
}

.myproductdetail_related_currency {
    font-size: 1rem;
    margin-right: 2px;
}

.myproductdetail_related_price_value {
    font-size: 1.4rem;
}

.myproductdetail_related_price_unit {
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 4px;
}

/* 下方区块：分享功能 */
.myproductdetail_share_section {
    padding: 40px 0;
}

.myproductdetail_share_header {
    text-align: center;
    margin-bottom: 30px;
}

.myproductdetail_share_title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.myproductdetail_share_desc {
    color: #6c757d;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 分享按钮 */
.myproductdetail_share_buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.myproductdetail_share_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 140px;
}

.myproductdetail_share_icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.myproductdetail_share_text {
    font-size: 0.95rem;
}

/* 各分享按钮颜色 */
.myproductdetail_share_copy {
    background-color: #6c757d;
    color: #fff;
}

.myproductdetail_share_copy:hover {
    background-color: #5a6268;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.myproductdetail_share_whatsapp {
    background-color: #25d366;
    color: #fff;
}

.myproductdetail_share_whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.myproductdetail_share_tiktok {
    background-color: #000;
    color: #fff;
}

.myproductdetail_share_tiktok:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.myproductdetail_share_youtube {
    background-color: #ff0000;
    color: #fff;
}

.myproductdetail_share_youtube:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.myproductdetail_share_facebook {
    background-color: #1877f2;
    color: #fff;
}

.myproductdetail_share_facebook:hover {
    background-color: #0d65d9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.myproductdetail_share_linkedin {
    background-color: #0a66c2;
    color: #fff;
}

.myproductdetail_share_linkedin:hover {
    background-color: #0957a9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(10, 102, 194, 0.3);
}

.myproductdetail_share_x {
    background-color: #000000;
    color: #fff;
}

.myproductdetail_share_x:hover {
    background-color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 复制成功提示 */
.myproductdetail_copy_notice {
    text-align: center;
    padding: 12px 20px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 6px;
    font-weight: 500;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.myproductdetail_copy_notice.show {
    opacity: 1;
    display: block;
}

/* 上一篇/下一篇导航 */
.myproductdetail_post_navigation {
    background-color: #f8f9fa;
    padding: 30px 0;
    border-radius: 8px;
    margin-bottom: 0;
}

.myproductdetail_nav_inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.myproductdetail_prev_post {
    flex: 1;
    text-align: left;
}

.myproductdetail_next_post {
    flex: 1;
    text-align: right;
}

.myproductdetail_next_post .myproductdetail_nav_label {
    justify-content: flex-end;
}

.myproductdetail_next_post .myproductdetail_post_title,
.myproductdetail_next_post .myproductdetail_post_excerpt {
    text-align: right;
}

.myproductdetail_prev_post:hover,
.myproductdetail_next_post:hover {
    background-color: rgba(40, 167, 69, 0.05);
    border-radius: 8px;
}

.myproductdetail_nav_label {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.myproductdetail_nav_icon {
    margin: 0 8px;
}

.myproductdetail_post_link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.myproductdetail_post_link:hover {
    transform: translateX(5px);
}

.myproductdetail_prev_post .myproductdetail_post_link:hover {
    transform: translateX(-5px);
}

.myproductdetail_post_title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.myproductdetail_post_excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

/* 图片查看模态框 */
.myproductdetail_image_modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100000 !important;   /* 大幅提升层级，确保高于主菜单 */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: 80px;            /* 避开顶部固定菜单高度（根据实际菜单高度调整） */
    box-sizing: border-box;       /* 确保 padding 包含在宽高内 */
}

.myproductdetail_image_modal.active {
    display: flex;
}

.myproductdetail_image_modal_content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.myproductdetail_image_modal_close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.myproductdetail_image_modal_close:hover {
    color: #e60012;
}

.myproductdetail_image_modal_img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 8px;
}

.myproductdetail_image_modal_caption {
    color: #fff;
    text-align: center;
    margin-top: 15px;
    font-size: 1.1rem;
}

/* 修改：技术图纸模态框同样处理 */
.myproductdetail_drawing_modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100000 !important;   /* 提高层级 */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: 80px;
    box-sizing: border-box;
}

.myproductdetail_drawing_modal.active {
    display: flex;
}

.myproductdetail_drawing_modal_content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
}

.myproductdetail_drawing_modal_close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #495057;
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.myproductdetail_drawing_modal_close:hover {
    color: #dc3545;
}

.myproductdetail_drawing_modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.myproductdetail_drawing_modal_title {
    font-size: 1.4rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.myproductdetail_drawing_modal_download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #e60012;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.myproductdetail_drawing_modal_download:hover {
    background-color: #218838;
}

.myproductdetail_drawing_modal_img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    border-radius: 4px;
    margin: 0 auto;
}

.myproductdetail_drawing_modal_description {
    color: #6c757d;
    text-align: center;
    margin-top: 15px;
    font-size: 1rem;
}

/* ==================== 响应式设计 ==================== */

/* 响应式设计 - 中等屏幕 (1200px以下) */
@media (max-width: 1200px) {
    .myproductdetail_main_title {
        font-size: 2.2rem;
    }
    
    .myproductdetail_tertiary_list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .myproductdetail_drawings_list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .myproductdetail_related_list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* 三个图片集在中等屏幕下限制每个图片集宽度 */
    .myproductdetail_gallery_wrapper {
        max-width: 100%;
    }

    /* 左侧分类树在1200px下缩小宽度 */
    .myproductdetail_left_sidebar {
        width: 260px;
    }
}

/* 响应式设计 - 小屏幕/平板 (992px以下) */
@media (max-width: 992px) {
    /* 左侧分类树在992px下变为窄栏 */
    .myproductdetail_left_sidebar {
        width: 220px;
    }
    
    /* 左侧分类树在992px下变为窄栏 */
    .myproductdetail_two_column_layout {
        flex-direction: column; /* 上下排列 */
    }
    .myproductdetail_left_sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        min-height: auto;
    }
    .myproductdetail_category_tree_wrapper {
        position: static;
        max-height: none;
    }
    .myproductdetail_category_tree_scroll {
        min-height: 200px;
        max-height: 300px;
    }
    .myproductdetail_right_content {
        display: flex !important;
        flex-direction: column;
        width: 100%;
    }
}

/* 响应式设计 - 小屏幕/平板 (768px以下) */
@media (max-width: 768px) {
    .myproductdetail_module_indicator {
        padding: 40px 0;
        margin-top: 60px;
        min-height: 250px;
    }
    
    .myproductdetail_title {
        font-size: 2rem;
    }
    
    .myproductdetail_subtitle {
        font-size: 1.1rem;
    }
    
    .myproductdetail_container_wide {
        padding: 0 20px;
    }
    
    /* 二级菜单水平滚动 */
    .myproductdetail_category_list {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding: 10px 0;
        justify-content: flex-start;
    }
    
    .myproductdetail_category_item {
        flex-shrink: 0;
        width: auto;
        max-width: none;
        margin: 0 5px;
    }
    
    .myproductdetail_category_link {
        white-space: nowrap;
        text-align: center;
        padding: 12px 15px;
    }
    
    /* 三级分类菜单在移动端变为下拉菜单 */
    .myproductdetail_tertiary_menu {
        position: static;
        box-shadow: none;
        border: none;
        margin-top: 10px;
    }
    
    .myproductdetail_tertiary_menu.active {
        padding: 10px 0;
        max-height: 1000px;
    }
    
    .myproductdetail_tertiary_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* 产品标题和元信息 */
    .myproductdetail_main_title {
        font-size: 1.8rem;
        padding: 0 15px;
    }
    
    .myproductdetail_sub_title {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .myproductdetail_code_info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }
    
    .myproductdetail_meta_info {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .myproductdetail_meta_left,
    .myproductdetail_meta_right {
        flex-direction: column;
        gap: 10px;
    }
    
    .myproductdetail_price_section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    /* 三个图片集在手机端变为单列，auto-fit会自动处理，无需额外列数设置 */
    .myproductdetail_galleries_container {
        max-width: 400px;  /* 限制最大宽度 */
    }
    
    .myproductdetail_gallery_wrapper {
        max-width: 100%;
    }
    
    /* 点状指示器调整 */
    .myproductdetail_gallery_dots {
        bottom: 10px;
    }
    
    /* 导航箭头调整 */
    .myproductdetail_gallery_prev,
    .myproductdetail_gallery_next {
        opacity: 1;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .myproductdetail_gallery_prev {
        left: 10px;
    }
    
    .myproductdetail_gallery_next {
        right: 10px;
    }
    
    /* 选项卡导航 */
    .myproductdetail_tabs_nav {
        flex-direction: column;
        border-bottom: none;
        gap: 5px;
    }
    
    .myproductdetail_tab_nav {
        width: 100%;
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
        margin-bottom: 0;
    }
    
    .myproductdetail_tab_nav.active {
        border-bottom-color: transparent;
        border-left-color: #e60012;
    }
    
    /* 表格响应式 */
    .myproductdetail_parameter_table,
    .myproductdetail_price_table {
        font-size: 0.85rem;
    }
    
    .myproductdetail_specs_table th,
    .myproductdetail_specs_table td,
    .myproductdetail_pricing_table th,
    .myproductdetail_pricing_table td {
        padding: 8px 10px;
    }
    
    /* 技术图纸网格 */
    .myproductdetail_drawings_list {
        grid-template-columns: 1fr;
    }
    
    /* 相关产品网格 */
    .myproductdetail_related_list {
        grid-template-columns: 1fr;
    }
    
    /* 分享按钮 */
    .myproductdetail_share_buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .myproductdetail_share_btn {
        min-width: auto;
        width: 100%;
        padding: 12px 15px;
    }
    
    .myproductdetail_share_text {
        font-size: 0.9rem;
    }
    
    /* 上一篇/下一篇导航 */
    .myproductdetail_nav_inner {
        flex-direction: column;
    }
    
    .myproductdetail_prev_post,
    .myproductdetail_next_post {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .myproductdetail_post_title {
        font-size: 1.1rem;
    }
    
    /* 内容区块标题 */
    .myproductdetail_section_title {
        font-size: 1.5rem;
        margin: 25px 0 15px;
    }
    
    /* 技术参数组标题 */
    .myproductdetail_parameter_group_title {
        font-size: 1.2rem;
    }
    
    /* 模态框 */
    .myproductdetail_image_modal,
    .myproductdetail_drawing_modal {
        padding: 10px;
    }
    
    .myproductdetail_image_modal_content,
    .myproductdetail_drawing_modal_content {
        max-width: 95%;
    }
    
    .myproductdetail_drawing_modal_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .myproductdetail_drawing_modal_title {
        font-size: 1.2rem;
    }

    /* 左侧分类树在移动端不显示 */
    .myproductdetail_left_sidebar {
        display: none;
    }
}

/* 响应式设计 - 超小屏幕/手机 (480px以下) */
@media (max-width: 480px) {
    .myproductdetail_module_indicator {
        padding: 30px 0;
        min-height: 200px;
    }
    
    .myproductdetail_title {
        font-size: 1.8rem;
    }
    
    .myproductdetail_subtitle {
        font-size: 1rem;
    }
    
    .myproductdetail_main_title {
        font-size: 1.6rem;
    }
    
    .myproductdetail_sub_title {
        font-size: 1rem;
    }
    
    .myproductdetail_container_wide {
        padding: 0 15px;
    }
    
    .myproductdetail_tertiary_list {
        grid-template-columns: 1fr;
    }
    
    /* 三个正方形图片集在手机端调整 */
    .myproductdetail_galleries_container {
        max-width: 280px;  /* 让正方形卡片更紧凑 */
    }
    
    .myproductdetail_gallery_dots {
        bottom: 8px;
    }
    
    .myproductdetail_gallery_dot {
        width: 8px;
        height: 8px;
    }
    
    .myproductdetail_gallery_prev,
    .myproductdetail_gallery_next {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .myproductdetail_gallery_prev {
        left: 8px;
    }
    
    .myproductdetail_gallery_next {
        right: 8px;
    }
    
    /* 分享按钮 */
    .myproductdetail_share_buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .myproductdetail_share_btn {
        min-width: auto;
        padding: 12px 20px;
    }
    
    .myproductdetail_share_text {
        font-size: 0.9rem;
    }
    
    .myproductdetail_share_icon {
        font-size: 1rem;
    }
    
    /* 内容字体调整 */
    .myproductdetail_description_content,
    .myproductdetail_features_content,
    .myproductdetail_applications_content,
    .myproductdetail_installation_content,
    .myproductdetail_maintenance_content,
    .myproductdetail_packaging_content,
    .myproductdetail_full_content {
        font-size: 1rem;
    }
    
    /* 表格在小屏幕上可能需要水平滚动 */
    .myproductdetail_specs_table,
    .myproductdetail_pricing_table {
        min-width: 500px;
    }
}

/* ==================== 新增：移动端底部筛选按钮 ==================== */
.myproductdetail_mobile_filter_btn {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9997;
    background: #e60012;
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    background-color: rgba(230, 0, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.myproductdetail_mobile_filter_btn:hover {
    background: #cc0010;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.myproductdetail_mobile_filter_btn i {
    font-size: 1.0rem;
}

@media (min-width: 769px) {
    .myproductdetail_mobile_filter_btn {
        display: none !important;
    }
}

/* 移动端分类树面板滑出样式（覆盖原有左侧边栏） */
@media (max-width: 768px) {
    .myproductdetail_left_sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 9999;
        background: #fff;
        border-radius: 0;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease;
        display: block !important;   /* 覆盖原有的 display:none */
        overflow-y: auto;
    }

    .myproductdetail_left_sidebar.active {
        left: 0;
    }
    
    .myproductdetail_left_sidebar .myproductdetail_category_tree_wrapper {
        position: static;
        max-height: 100%;
        border: none;
        box-shadow: none;
    }

    .myproductdetail_mobile_filter_btn {
        bottom: 80px;
        padding: 10px 20px;
        font-size: 0.9rem;
        max-width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .myproductdetail_mobile_filter_btn {
        bottom: 80px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ==================== 新增：移动端遮罩 ==================== */
.myproductdetail_tree_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.myproductdetail_tree_overlay.active {
    display: block;
    opacity: 1;
}

/* 确保分类树内联元素在移动端显示正常 */
@media (max-width: 768px) {
    .myproductdetail_category_tree_scroll {
        min-height: 400px;
    }
}
