/* 
 * myproductlist_ 前缀的CSS样式
 * 产品列表页面专用样式 - 新增左侧分类树布局
 * 响应式设计：3个断点 (1200px, 992px, 768px, 480px)
 */

/* 重置和基础样式 */
.myproductlist_container {
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;

}

/* 模块指示区域 */
.myproductlist_module_indicator {
    margin-top: 80px;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

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

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

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

.myproductlist_subtitle {
    font-size: 1.2rem;
    color: #FFFFFF;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

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

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

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

.myproductlist_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;
}

.myproductlist_category_link:hover {
    color: #e60012;
}

.myproductlist_category_item.active .myproductlist_category_link {
    color: #e60012;
    font-weight: 700;
}

/* 三级分类悬浮菜单 */
.myproductlist_tertiary_menu {
    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;
}

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

.myproductlist_tertiary_content {
    padding: 20px 0;
}

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

.myproductlist_tertiary_item {
    margin: 0;
}

.myproductlist_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;
}

.myproductlist_tertiary_link:hover {
    background-color: #e60012;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 0, 18, 0.2);
}

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

.myproductlist_tertiary_link:hover .myproductlist_tertiary_icon {
    color: #fff;
}

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

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

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

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

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

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

/* ==================== 主要内容区域 ==================== */
.myproductlist_content_area {
    padding: 40px 0 60px;
    background-color: #fff;
}

/* 新的布局容器 */
.myproductlist_layout_container {
    display: flex;
    gap: 30px;
    position: relative;
}

/* 左侧分类树导航区域 */
.myproductlist_category_tree_wrapper {
    width: 320px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f5;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

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

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

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

.myproductlist_tree_expand_all:hover,
.myproductlist_tree_collapse_all:hover {
    background: #e60012;
    border-color: #e60012;
    color: #fff;
}

.myproductlist_category_tree_scroll {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    min-height: 300px; /* 设置最小高度 */
}

/* 隐藏滚动条但保持滚动功能 */
.myproductlist_category_tree_scroll::-webkit-scrollbar {
    width: 6px;
}

.myproductlist_category_tree_scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.myproductlist_category_tree_scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.myproductlist_category_tree_scroll::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 分类树样式 */
.myproductlist_category_tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.myproductlist_tree_item {
    margin: 0;
    position: relative;
}

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

/* 修改：调整箭头位置，使其更紧凑 */
.myproductlist_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;
}

.myproductlist_tree_toggle:hover {
    background: #f1f3f5;
    color: #e60012;
}

.myproductlist_tree_toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    width: 12px;
    height: 12px;
}

.myproductlist_tree_item.expanded .myproductlist_tree_toggle i {
    transform: rotate(90deg);
}

.myproductlist_tree_spacer {
    width: 23px; /* 与箭头宽度 + 右边距保持一致 (20px + 3px) */
    height: 20px;
    flex-shrink: 0;
}

.myproductlist_tree_link {
    display: flex;
    align-items: center;
    padding: 8px 6px; /* 固定padding，不随深度变化 */
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
}

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

/* 修改：调整图标与分类名称的间距 */
.myproductlist_tree_icon {
    margin-right: 3px; /* 调整为2-3像素间距 */
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.myproductlist_tree_default_icon {
    margin-right: 3px; /* 调整为2-3像素间距 */
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.myproductlist_tree_link.current .myproductlist_tree_default_icon {
    color: #e60012;
}

.myproductlist_tree_name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-left: 3px; /* 确保名称和图标之间有2-3像素间距 */
}

/* 子分类缩进 */
.myproductlist_tree_children {
    list-style: none;
    margin: 0;
    padding-left: 13px; /* 调整缩进，与箭头+间距的总宽度对齐 */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.myproductlist_tree_item.expanded > .myproductlist_tree_children {
    max-height: 2000px;
}

/* 修改：通过节点的margin-left来控制缩进，而不是链接的padding-left */
.myproductlist_tree_item[data-depth="1"] .myproductlist_tree_node {
    margin-left: 10px;
}

.myproductlist_tree_item[data-depth="2"] .myproductlist_tree_node {
    margin-left: 20px;
}

.myproductlist_tree_item[data-depth="3"] .myproductlist_tree_node {
    margin-left: 30px;
}

.myproductlist_tree_item[data-depth="4"] .myproductlist_tree_node {
    margin-left: 40px;
}

/* 修正分类树高亮样式 */
.myproductlist_tree_item.active .myproductlist_tree_name {
    font-weight: bold;
}

/* 当前选中分类的链接内部的名字变红 */
.myproductlist_tree_link.current .myproductlist_tree_name {
    font-weight: bold;
    color: #e60012 !important;
}

/* 添加：确保图标颜色 */
.myproductlist_tree_link.current .myproductlist_tree_icon,
.myproductlist_tree_link.current .myproductlist_tree_default_icon {
    color: #333 !important;
}

.myproductlist_tree_link.current .myproductlist_tree_icon i,
.myproductlist_tree_link.current .myproductlist_tree_default_icon i {
    color: inherit !important;
}

/* 路径上的分类（父级）只加粗不变红 */
.myproductlist_tree_item.in-path:not(.active) .myproductlist_tree_name {
    font-weight: bold;
    color: inherit;
}

/* 移除父级影响子级的选择器 */
.myproductlist_tree_item.active .myproductlist_tree_children .myproductlist_tree_name {
    font-weight: normal !important;
    color: inherit !important;
}

/* 空状态 */
.myproductlist_tree_empty {
    padding: 30px 20px;
    text-align: center;
    color: #6c757d;
}

.myproductlist_tree_empty p {
    margin: 0;
    font-size: 0.95rem;
}

/* 移动端分类树切换按钮 */
.myproductlist_mobile_tree_toggle {
    display: none;
    padding: 15px;
    border-top: 1px solid #f1f3f5;
}

.myproductlist_mobile_tree_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #e60012;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.myproductlist_mobile_tree_btn:hover {
    background: #cc0010;
    transform: translateY(-2px);
}

/* 右侧产品列表区域 */
.myproductlist_product_area {
    flex: 1;
    min-width: 0; /* 防止flex元素溢出 */
}

.myproductlist_product_header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.myproductlist_product_title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.myproductlist_product_count {
    font-size: 1.2rem;
    color: #e60012;
    font-weight: 600;
}

/* ==================== 产品项整体可点击样式 ==================== */

/* 产品项作为链接标签 */
a.myproductlist_item {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 点击效果 */
a.myproductlist_item:active {
    transform: scale(0.98);
}

/* 产品项整体边框和悬浮效果 */
a.myproductlist_item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent; /* 初始透明边框 */
    display: flex;
    flex-direction: column;
    height: 100%; /* 确保所有项等高 */
}

/* 悬停时边框变红和上浮效果 */
a.myproductlist_item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: #e60012;
}

/* 添加悬停时产品名称变红效果 */
a.myproductlist_item:hover .myproductlist_name_text {
    color: #e60012;
}

/* 产品名称样式调整 - 移除链接样式 */
.myproductlist_name_text {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.4;
    text-align: center;
}

/* 单张图片容器 */
.myproductlist_single_image_container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    overflow: hidden;
}

.myproductlist_single_image_container .myproductlist_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* 悬停时图片放大效果 */
a.myproductlist_item:hover .myproductlist_single_image_container .myproductlist_image {
    transform: scale(1.05);
}

/* 图片容器保持原有宽高比 */
.myproductlist_image_wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 宽高比 */
    background-color: #f8f9fa;
    overflow: hidden;
}

.myproductlist_single_image_container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 产品信息区域 - 添加内边距 */
.myproductlist_info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
}

/* 修改产品名称样式 - 移除链接样式 */
.myproductlist_name {
    margin: 0;
    text-align: center;
}

/* 产品名称链接样式移除 */
.myproductlist_name_link {
    display: none; /* 隐藏原有链接样式 */
}

/* 移除非链接产品项的原有悬停效果 */
.myproductlist_item:not(a):hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: #e60012;
}

/* 修改：产品列表网格 - PC端每行4个产品 */
.myproductlist_grid_sidebar {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC端改为4列 */
    gap: 25px;
    margin-bottom: 50px;
}

/* 确保产品网格中的链接项布局正确 */
.myproductlist_grid_sidebar a.myproductlist_item {
    grid-column: auto;
}

/* 空状态 */
.myproductlist_empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.myproductlist_empty p {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
}

/* 分页区域 */
.myproductlist_pagination_area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    padding-bottom: 40px;
}

.myproductlist_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.myproductlist_page_link {
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    font-size: 0.95rem;
}

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

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

.myproductlist_page_num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.myproductlist_page_num:hover,
.myproductlist_page_num.active {
    background-color: #e60012;
    color: #fff;
    border-color: #e60012;
}

.myproductlist_page_dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #6c757d;
}

/* 图片查看模态框 */
.myproductlist_image_modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.myproductlist_image_modal.active {
    display: flex;
}

.myproductlist_image_modal_content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.myproductlist_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;
    z-index: 10001;
}

.myproductlist_image_modal_close:hover {
    color: #e60012;
}

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

.myproductlist_image_modal_caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0 0 8px 8px;
}

/* 移动端遮罩 */
.myproductlist_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;
}

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

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

/* 中等屏幕 (1200px以下) */
@media (max-width: 1200px) {
    .myproductlist_grid_sidebar {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .myproductlist_category_tree_wrapper {
        width: 280px;
    }
    
    .myproductlist_layout_container {
        gap: 25px;
    }
    
    a.myproductlist_item:hover {
        transform: translateY(-6px);
    }
}

/* 平板横屏 (992px以下) */
@media (max-width: 992px) {
    .myproductlist_grid_sidebar {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .myproductlist_category_tree_wrapper {
        width: 260px;
    }
    
    .myproductlist_product_title {
        font-size: 1.6rem;
    }
    
    .myproductlist_tertiary_list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    a.myproductlist_item:hover {
        transform: translateY(-5px);
    }
}

/* 平板竖屏 (768px以下) - 二级菜单改为水平滚动 + 原生滚动条可见 */
@media (max-width: 768px) {
    
    .myproductlist_category_tree_scroll {
        min-height: 400px;
    }
    
    .myproductlist_module_indicator {
        padding: 60px 0;
        margin-top: 60px;
        min-height: 350px;
    }
    
    .myproductlist_title {
        font-size: 2rem;
    }
    
    /* 二级菜单容器 - 改为水平滚动布局（使用原生滚动条） */
    .myproductlist_category_list {
        flex-direction: row !important;      /* 水平排列 */
        flex-wrap: nowrap !important;        /* 禁止换行 */
        overflow-x: auto !important;         /* 横向滚动 */
        -webkit-overflow-scrolling: touch;   /* 移动端平滑滚动 */
        justify-content: flex-start !important;
        padding: 10px 15px !important;
        gap: 8px;
        /* 不再自定义滚动条样式，让浏览器使用原生滚动条（滚动时可见） */
    }
    
    /* 菜单项样式 - 固定宽度不拉伸 */
    .myproductlist_category_item {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
    }
    
    /* 菜单链接文字不换行，调整内边距 */
    .myproductlist_category_link {
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 0.95rem;
    }
    
    /* 可选：右侧渐变阴影提示可滚动（增强用户体验） */
    .myproductlist_category_nav {
        position: relative;
    }
    .myproductlist_category_nav::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, rgba(0,0,0,0.05));
        pointer-events: none;
        z-index: 5;
        display: block;
    }
    
    /* 三级菜单在移动端的样式（保持原样） */
    .myproductlist_tertiary_menu {
        position: static;
        box-shadow: none;
        border: none;
        margin-top: 10px;
    }
    
    .myproductlist_tertiary_menu.active {
        padding: 10px 0;
        max-height: 1000px;
    }
    
    .myproductlist_tertiary_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .myproductlist_tertiary_link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    /* 移动端布局：左侧分类树变为滑动面板 */
    .myproductlist_layout_container {
        flex-direction: column;
        gap: 0;
    }
    
    .myproductlist_category_tree_wrapper {
        width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 9999;
        border-radius: 0;
        box-shadow: none;
        transition: left 0.3s ease;
        max-height: 100vh;
    }
    
    .myproductlist_category_tree_wrapper.active {
        left: 0;
    }
    
    .myproductlist_mobile_tree_toggle {
        display: block;
    }
    
    .myproductlist_product_area {
        width: 100%;
    }
    
    .myproductlist_grid_sidebar {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .myproductlist_breadcrumb {
        font-size: 0.9rem;
    }
    
    .myproductlist_breadcrumb_separator {
        margin: 0 5px;
    }
    
    .myproductlist_pagination {
        gap: 5px;
    }
    
    .myproductlist_page_link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .myproductlist_page_num {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* 模态框在移动端的调整 */
    .myproductlist_image_modal_prev,
    .myproductlist_image_modal_next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .myproductlist_image_modal_prev {
        left: 10px;
    }
    
    .myproductlist_image_modal_next {
        right: 10px;
    }
    
    a.myproductlist_item:hover {
        transform: translateY(-3px);
    }
    
    .myproductlist_name_text {
        font-size: 1.1rem;
    }
}

/* 超小屏幕/手机 (480px以下) */
@media (max-width: 480px) {
    .myproductlist_grid_sidebar {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .myproductlist_module_indicator {
        padding: 40px 0;
        min-height: 250px;
    }
    
    .myproductlist_title {
        font-size: 1.8rem;
    }
    
    .myproductlist_product_title {
        font-size: 1.4rem;
    }
    
    .myproductlist_info {
        padding: 15px;
    }
    
    .myproductlist_name_text {
        font-size: 1.1rem;
    }
    
    .myproductlist_breadcrumb {
        font-size: 0.85rem;
    }
    
    .myproductlist_breadcrumb_separator {
        margin: 0 5px;
    }
    
    .myproductlist_pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .myproductlist_page_link {
        width: 100%;
        text-align: center;
    }
    
    .myproductlist_page_numbers {
        order: -1;
        width: 100%;
        justify-content: center;
    }
    
    .myproductlist_tertiary_list {
        grid-template-columns: 1fr;
    }
    
    .myproductlist_tertiary_link {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* 修改：对于大屏幕（1200px以上）保持4列 */
@media (min-width: 1201px) {
    .myproductlist_grid_sidebar {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================== 新增：移动端底部筛选按钮 ==================== */
.myproductlist_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;
}

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

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

/* 只在移动端（≤768px）显示底部按钮，PC端隐藏 */
@media (min-width: 769px) {
    .myproductlist_mobile_filter_btn {
        display: none;
    }
}

/* 移动端分类树面板微调：增加关闭按钮区域优化 */
@media (max-width: 768px) {
    .myproductlist_category_tree_wrapper {
        width: 85%;
        max-width: 320px;
    }
    
    .myproductlist_mobile_filter_btn {
        bottom: 80px;
        right: 20px;
        padding: 10px 20px;
        font-size: 0.9rem;
        max-width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .myproductlist_mobile_filter_btn {
        bottom: 80px;       /* 小屏可稍微抬高避免与底部导航冲突 */
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}