
    /* 基础样式保持不变 */
    a {
        text-decoration: none;
        color: #000;
    }
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
        background-color: #f8f8f8;
    }
    .container {
        max-width: 1200px;
        margin: auto;
        padding: 10px;
    }

 
    .product-title {
            font-size: 1.0em !important; 
            line-height: 1.4 !important; 
            white-space: normal !important; 
            text-align: center !important; 
            margin: 8px 0 !important; 
            min-height: 10px !important; 
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            margin-top: 2px
    }
    

    /* 保持原有分类容器样式 */
    .category {
        width: 100%;
        padding-top: 10px;
        box-sizing: border-box;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-top: 15px
    }

    .category-title {
        text-align: center;
        font-size: 1.5em;
        margin: 10px;
        color: #333;
        font-weight: bold;
    }

    .products {
        display: flex;
        flex-wrap: wrap;
         gap: 5px;
    }

      @media (min-width: 768px) {
            .products {
             justify-content: space-between;
             padding-left:20%;
             padding-right:20%

    }
        }

    .product {
        flex: 0 0 calc(20.0% - 5px);
        background: #fff;
        text-align: center;
        overflow: hidden;
        transition: transform 0.3s ease;
        padding: 10px;
        box-sizing: border-box;
        /* 新增flex布局实现居中 */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }



    @media (min-width: 769px) {
        .product {
            flex: 0 0 calc(25% - 15px);
        }
    }

    @media (min-width: 1200px) {
        .product {
            flex: 0 0 calc(12.5% - 15px);
        }
    }

    /* 修改图片样式 */
    .product img {
        width: 50px;  /* 固定宽度 */
        height: 50px; /* 固定高度 */
        object-fit: cover; /* 保持比例填充 */
        margin: 0 auto; /* 确保居中 */
    }
