﻿/* ==============================
   Product Category Page
   Final Version
   主色：#e886ae
   副色：#d8759e
================================= */

.product-menu-box {
    width: 1360px;
    padding: 42px 0 70px;
    display: flex;
    gap: 34px;
    align-items: flex-start;
    overflow: visible;
}

.product-menu-box-left,
.product-menu-box-right {
    float: none !important;
}

/* ==============================
   左侧分类菜单
================================= */

.product-menu-box-left {
    width: 320px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #f5d6e3;
    border-radius: 14px;
    padding: 22px 18px;
    box-shadow: 0 14px 34px rgba(216, 117, 158, 0.08);
    position: sticky;
    top: 155px;
    z-index: 5;
}

    .product-menu-box-left h2 {
        position: relative;
        margin: 0 0 20px;
        padding-left: 14px;
        color: #111111;
        font-size: 1.35rem;
        line-height: 34px;
        font-weight: normal;
    }

        .product-menu-box-left h2:before {
            content: "";
            position: absolute;
            left: 0;
            top: 9px;
            width: 3px;
            height: 17px;
            background: #e886ae;
            border-radius: 3px;
        }

/* 左侧搜索框 */
.product-menu-box-left-search {
    width: 100%;
    height: 42px;
    margin-bottom: 16px;
    border: 1px solid #f5d6e3;
    border-radius: 24px;
    background: #fff8fb;
    overflow: hidden;
}

    .product-menu-box-left-search input {
        width: calc(100% - 44px);
        height: 42px;
        line-height: 42px;
        padding: 0 15px;
        border: none;
        background: transparent;
        color: #333333;
        font-size: 0.92rem;
    }

        .product-menu-box-left-search input::placeholder {
            color: #b88fa0;
        }

    .product-menu-box-left-search button {
        width: 44px;
        height: 42px;
        border: none;
        background: #e886ae;
        color: #ffffff;
        font-size: 1rem;
        cursor: pointer;
    }

        .product-menu-box-left-search button:hover {
            background: #d8759e;
        }

/* 左侧分类列表 */
.product-menu-box-left ul {
    width: 100%;
    max-height: 640px;
    overflow-y: auto;
    padding-right: 5px;
}

    .product-menu-box-left ul li {
        width: 100%;
        margin-bottom: 7px;
    }

        .product-menu-box-left ul li a {
            position: relative;
            display: block;
            width: 100%;
            min-height: 38px;
            line-height: 22px;
            padding: 8px 12px 8px 20px;
            color: #333333;
            font-size: 0.93rem;
            background: #fff8fb;
            border: 1px solid #f5e3eb;
            border-radius: 9px;
            overflow: hidden;
        }

            .product-menu-box-left ul li a:before {
                content: "";
                position: absolute;
                left: 9px;
                top: 17px;
                width: 4px;
                height: 4px;
                background: #e886ae;
                border-radius: 50%;
            }

            .product-menu-box-left ul li a:hover,
            .product-menu-box-left ul li a.active {
                color: #ffffff;
                background: linear-gradient(270deg, #d8759e 0%, #e886ae 100%);
                border-color: transparent;
                box-shadow: 0 10px 22px rgba(216, 117, 158, 0.20);
                transform: translateX(3px);
            }

                .product-menu-box-left ul li a:hover:before,
                .product-menu-box-left ul li a.active:before {
                    background: #ffffff;
                }

    /* 左侧滚动条 */
    .product-menu-box-left ul::-webkit-scrollbar {
        width: 5px;
    }

    .product-menu-box-left ul::-webkit-scrollbar-track {
        background: #fff1f7;
        border-radius: 10px;
    }

    .product-menu-box-left ul::-webkit-scrollbar-thumb {
        background: #e8a5c1;
        border-radius: 10px;
    }

        .product-menu-box-left ul::-webkit-scrollbar-thumb:hover {
            background: #e886ae;
        }


/* ==============================
   右侧分类内容
================================= */

.product-menu-box-right {
    flex: 1;
    min-width: 0;
}

    /* 一级分类整体 */
    .product-category-section,
    .product-menu-box-right dl {
        width: 100%;
        margin: 0 0 40px;
        padding: 0 0 30px;
        background: #ffffff;
        border: 1px solid #f5d6e3;
        border-radius: 14px;
        box-shadow: 0 14px 34px rgba(216, 117, 158, 0.06);
        overflow: hidden;
        scroll-margin-top: 115px;
    }

        .product-category-section:hover,
        .product-menu-box-right dl:hover {
            box-shadow: 0 18px 42px rgba(216, 117, 158, 0.12);
        }

        /* 一级分类标题 */
        .product-category-title,
        .product-menu-box-right dl dt {
            width: 100%;
            padding: 20px 26px 15px;
            border-bottom: 1px solid #f5d6e3;
            background: linear-gradient(180deg, #ffffff 0%, #fff8fb 100%);
        }

            .product-category-title a,
            .product-menu-box-right dl dt a {
                position: relative;
                display: inline-block;
                padding-left: 16px;
                color: #111111;
                font-size: 1.45rem;
                line-height: 34px;
                font-weight: bold;
                text-decoration: none;
            }

                .product-category-title a:before,
                .product-menu-box-right dl dt a:before {
                    content: "";
                    position: absolute;
                    left: 0;
                    top: 9px;
                    width: 4px;
                    height: 18px;
                    background: #e886ae;
                    border-radius: 4px;
                }

                .product-category-title a:hover,
                .product-menu-box-right dl dt a:hover {
                    color: #e886ae;
                }

        /* 内容区域 */
        .product-category-content,
        .product-menu-box-right dl dd {
            width: 100%;
            margin: 0;
            padding: 22px 26px 0;
        }

/* ==============================
   无子级的二级分类：紧凑标签区
================================= */

.product-menu-box-simple {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    margin-bottom: 26px;
}

    .product-menu-box-simple a {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        line-height: 22px;
        padding: 8px 15px;
        color: #1f2d3d;
        font-size: 0.92rem;
        background: #fff8fb;
        border: 1px solid #f5d6e3;
        border-radius: 8px;
        text-decoration: none;
        transition: all .25s ease;
    }

        .product-menu-box-simple a:hover {
            color: #ffffff;
            background: #e886ae;
            border-color: #e886ae;
            box-shadow: 0 10px 22px rgba(216, 117, 158, 0.18);
            transform: translateY(-2px);
        }


/* ==============================
   有子级的二级分类分组
================================= */

.product-menu-box-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 44px;
    row-gap: 26px;
    align-items: start;
}

.product-menu-box-item {
    width: 100%;
    min-width: 0;
}

    /* 二级分组标题 */
    .product-menu-box-item .group-title,
    .product-menu-box-item > a {
        position: relative;
        display: block;
        width: 100%;
        margin-bottom: 10px;
        padding-left: 14px;
        color: #0f172a;
        font-size: 1.05rem;
        line-height: 27px;
        font-weight: 700;
        text-decoration: none;
    }

        .product-menu-box-item .group-title:before,
        .product-menu-box-item > a:before {
            content: "";
            position: absolute;
            left: 0;
            top: 11px;
            width: 5px;
            height: 5px;
            background: #e886ae;
            border-radius: 50%;
        }

        .product-menu-box-item .group-title:hover,
        .product-menu-box-item > a:hover {
            color: #e886ae;
        }

    /* 三级分类 */
    .product-menu-box-item ul {
        width: 100%;
        margin: 0;
        padding: 0;
    }

        .product-menu-box-item ul li {
            position: relative;
            width: 100%;
            margin-bottom: 6px;
            padding-left: 12px;
        }

            .product-menu-box-item ul li:before {
                content: "-";
                position: absolute;
                left: 0;
                top: 0;
                color: #b88fa0;
            }

            .product-menu-box-item ul li a {
                display: block;
                color: #44566c;
                font-size: 0.9rem;
                line-height: 23px;
                text-decoration: none;
                transition: all .25s ease;
            }

                .product-menu-box-item ul li a:hover {
                    color: #e886ae;
                    padding-left: 4px;
                }

            /* 四级分类 */
            .product-menu-box-item ul li ul.sub-list,
            .product-menu-box-item ul li ul {
                margin-top: 5px;
                padding-left: 12px;
            }

                .product-menu-box-item ul li ul.sub-list li,
                .product-menu-box-item ul li ul li {
                    margin-bottom: 5px;
                }

                    .product-menu-box-item ul li ul.sub-list li a,
                    .product-menu-box-item ul li ul li a {
                        color: #667085;
                        font-size: 0.84rem;
                        line-height: 21px;
                    }

                        .product-menu-box-item ul li ul.sub-list li a:hover,
                        .product-menu-box-item ul li ul li a:hover {
                            color: #e886ae;
                        }

/* 空数据 */
.product-category-empty {
    padding: 36px 20px;
    text-align: center;
    color: #8a97ab;
    background: #ffffff;
    border: 1px dashed #f5d6e3;
    border-radius: 12px;
}


/* ==============================
   兼容旧 JS 结构
   如果右侧还是直接 dd > .product-menu-box-item
================================= */

.product-menu-box-right dl dd > .product-menu-box-item.no-child {
    display: inline-block;
    margin: 0 10px 12px 0;
}

    .product-menu-box-right dl dd > .product-menu-box-item.no-child > a {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        line-height: 22px;
        margin: 0;
        padding: 8px 15px;
        color: #1f2d3d;
        font-size: 0.92rem;
        font-weight: normal;
        background: #fff8fb;
        border: 1px solid #f5d6e3;
        border-radius: 8px;
    }

        .product-menu-box-right dl dd > .product-menu-box-item.no-child > a:before {
            display: none;
        }

        .product-menu-box-right dl dd > .product-menu-box-item.no-child > a:hover {
            color: #ffffff;
            background: #e886ae;
            border-color: #e886ae;
        }


/* ==============================
   Mobile
================================= */

@media screen and (max-width: 768px) {
    .product-menu-box {
        width: 94%;
        padding: 28px 0 42px;
        display: block;
    }

    .product-menu-box-left,
    .product-menu-box-right {
        width: 100%;
    }

    .product-menu-box-left {
        position: static;
        padding: 18px 15px;
        border-radius: 12px;
        margin-bottom: 18px;
    }

        .product-menu-box-left h2 {
            font-size: 1.15rem;
            line-height: 30px;
            margin-bottom: 14px;
        }

    .product-menu-box-left-search {
        height: 40px;
        margin-bottom: 14px;
    }

        .product-menu-box-left-search input {
            height: 40px;
            line-height: 40px;
            font-size: 0.86rem;
        }

        .product-menu-box-left-search button {
            height: 40px;
        }

    .product-menu-box-left ul {
        max-height: 230px;
    }

        .product-menu-box-left ul li {
            margin-bottom: 6px;
        }

            .product-menu-box-left ul li a {
                min-height: 36px;
                padding: 7px 10px 7px 18px;
                font-size: 0.86rem;
            }

    .product-category-section,
    .product-menu-box-right dl {
        margin-bottom: 20px;
        padding-bottom: 18px;
        border-radius: 12px;
    }

        .product-category-title,
        .product-menu-box-right dl dt {
            padding: 18px 16px 12px;
        }

            .product-category-title a,
            .product-menu-box-right dl dt a {
                font-size: 1.15rem;
                line-height: 30px;
            }

        .product-category-content,
        .product-menu-box-right dl dd {
            padding: 16px 16px 0;
        }

    .product-menu-box-simple {
        gap: 9px;
        margin-bottom: 20px;
    }

        .product-menu-box-simple a {
            min-height: 36px;
            padding: 7px 11px;
            font-size: 0.85rem;
            border-radius: 7px;
        }

    .product-menu-box-groups {
        grid-template-columns: 1fr;
        row-gap: 20px;
        column-gap: 0;
    }

    .product-menu-box-item .group-title,
    .product-menu-box-item > a {
        font-size: 0.98rem;
        line-height: 24px;
        margin-bottom: 8px;
    }

    .product-menu-box-item ul li {
        margin-bottom: 5px;
    }

        .product-menu-box-item ul li a {
            font-size: 0.85rem;
            line-height: 21px;
        }

        .product-menu-box-item ul li ul.sub-list li a,
        .product-menu-box-item ul li ul li a {
            font-size: 0.8rem;
            line-height: 20px;
        }
}
