
    /* 1. 基础全局设置，防止内边距撑破全宽 */
    .related-products-section, 
    .related-products-section * { 
        box-sizing: border-box; 
    }

    .related-products-section {
        width: 100%;
        padding: 40px 0; /* 仅设置上下边距，左右由 container 控制 */
        background-color: #FFFFFF;
    }

    /* 2. 核心容器，控制最大宽度并实现自动居中 */
    .products-container {
        max-width: 1600px;
        width: 95%; /* 确保在窄屏下有呼吸空间 */
        margin: 0 auto !important; /* 强制水平居中 */
        padding: 0 15px;
    }

    .products-main-title {
        text-align: center;
        font-size: 28px;
        font-weight: bold;
        color: #333;
        margin-bottom: 35px;
    }

    /* 3. 网格布局：网页版固定 4 列 */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        width: 100%;
    }

    .product-item {
        text-align: center;
        width: 100%;
    }

    .product-image-wrapper {
        width: 100%;
        aspect-ratio: 1 / 1; 
        overflow: hidden;
        background-color: #f9f9f9;
        margin-bottom: 12px;
        border-radius: 4px;
    }

    .product-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }

    .product-image-wrapper img:hover {
        transform: scale(1.05);
    }

    .product-sku {
        font-size: 16px;
        color: #555;
        font-weight: 500;
        margin: 5px 0;
    }

    .product-sku a {
        text-decoration: none;
        color: inherit;
    }

    /* --- 4. 手机端适配：修正偏移，确保完全居中 --- */
    @media (max-width: 768px) {
        .related-products-section {
            padding: 20px 0; /* 缩小手机端上下间距 */
        }

        .products-container {
            width: 100% !important; /* 占满屏幕 */
            padding: 0 10px !important;
            margin: 0 auto !important;
        }

        .products-grid {
            grid-template-columns: repeat(2, 1fr) !important; /* 手机端 2 列 */
            gap: 15px !important;
            justify-items: center; /* 格子内部居中 */
        }

        .products-main-title {
            font-size: 24px !important;
            margin-bottom: 25px !important;
        }

        .product-sku {
            font-size: 14px !important;
        }
    }
