﻿section {
    align-items: stretch;
    width: 100%;
}
.Bread {
    text-align:left;
}
    .Bread > a {
        color: #3699FF;
    }
    .Bread > span {
        color: #b1b1b1;
    }
    .Nav_Product > .Nav_Category_Name {
        background: #00bd66;
        color: #fff;
    }

.ClickShowDescription {
    cursor: pointer;
    margin-left: 20px;
}

.CategoryDescription {
    padding: 10px 0px 0 0;
    width: 100%;
    vertical-align: top;
}

.CategoryName {
    text-align: center;
    display: inline-block;
    width: calc(100% - 40px);
    padding: 20px;
    background: #444f36;
    font-size: 20px;
    border-bottom: 1px solid #fff;
    color: #efefef;
}

.CategoryIntroduce {
    background: #F2E5C0;
    width: calc(100% - 40px);
    display:none;
}

.CategoryImage {
    float: left;
    margin-right: 20px;
}

    .CategoryImage img {
        height: 200px;
        float: left;
    }

.CategoryImage, .CategoryDescription_Text {
    text-align: left;
}

.CategoryDescription_Text {
    background: #F2E5C0;
    line-height: 20px;
}

.ProductList {
    width: calc(100% - 40px);
    vertical-align: top;
    position: relative;
    font-size: 0;
}

.ProductListWrap {
    column-count: 4; /* 两列，可根据需求改 2、3、4 */
    column-gap: 16px; /* 列间距 */
    padding: 10px;
}

.EachProduct {
    width: 100%;
    margin-bottom: 16px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    /*overflow: hidden;*/
    transition: transform 0.2s ease;
}

.image-cover {
    position: absolute;
    inset: 0;
    z-index: 10;
    /*background: rgba(0,0,0,0.3);*/
    pointer-events: all;
}

.EachProduct:hover {
    transform: translateY(-4px);
}

.EachProduct img {
    width: 100%;
    height: auto;
    position: relative !important;
    z-index: auto !important; /* 取消懒加载库设的高层级 */
    transform: none !important; /* 避免 GPU transform 形成新上下文 */
    will-change: auto !important;
}

.ProductName {
    display: block;
    padding: 8px;
    font-size: 14px;
    text-align: center;
    color: #333;
}

.EachProduct {
    font-size: 16px;
}

@media(max-width:810px) {
    .Nav_Product .Nav_Category_Name {
        padding-right: 20px;
    }
}

@media(max-width:745px) {

    .ProductListWrap {
        column-count: 3;
    }

    bottom {
        width: calc(100% - 40px);
        padding: 20px;
    }

    .PageStatistics {
        float: none;
    }
}

@media(max-width:525px) {
    .ProductListWrap {
        column-count: 2;
    }

    .CategoryImage {
        width: 100%;
        margin-right: 0;
        padding-bottom: 20px;
    }

        .CategoryImage img {
            width: 100%;
            height: auto;
        }

        .CategoryDescription_Text, .CategoryImage img, .CategoryImage {
            width: 100%;
        }

    .EachProduct {
        margin-right: 0 !important;
        /*padding: 10px;*/
    }

    .CategoryDescription {
        width: calc(100% - 40px);
    }

    section {
        padding: 0;
    }

    bottom {
        width: 100%;
        padding: 20px;
    }

    .CategoryIntroduce {
        overflow-y: auto;
        max-height: 700px;
    }
}

@media(max-width:385px) {

    .CategoryImage {
        margin-right: 0;
    }

    .CategoryIntroduce {
        max-height: 420px;
    }

    .CategoryImage img {
        height: auto;
        float: none;
    }
}
