/* --- 1. 后台列表缩略图样式 (产品与项目共用 100x100) --- */
.column-product_thumb,
.column-project_thumb { 
    width: 7.5rem !important; 
    text-align: center; 
    vertical-align: middle !important; 
}

.column-product_thumb img,
.column-project_thumb img { 
    max-width: 6.25rem; 
    height: auto; 
    border-radius: 0.25rem; 
    border: 0.0625rem solid #ddd; 
    display: block;
    margin: 0 auto;
}

/* --- 2. 前端分类展示网格 (产品与项目短代码共用) --- */
.product-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: flex-start;
}

/* 电脑端：一行三个 */
.product-item {
    width: calc((100% - 2.5rem) / 3);
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 0.625rem;
}

/* 手机端响应式：一行两个 (遵循你的原始分类布局) */
@media (max-width: 768px) {
    .product-item {
        width: calc((100% - 1.25rem) / 2);
    }
}

/* --- 3. 详情页底部关联栏 (Related Products & Projects 共用) --- */
.related-products-container { 
    padding: 0 8%; 
    margin-top: 2.5rem; 
    box-sizing: border-box; 
}

.related-main-title { 
    text-align: left; 
    margin-bottom: 1.25rem; 
    font-family: "Poppins", sans-serif; 
    font-size: 1.75rem; 
    font-weight: normal; 
}

.related-ul { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: flex-start; 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    gap: 1.25rem; 
}

/* 电脑端：一行四个 */
.related-li { 
    flex: 0 0 calc(25% - 0.9375rem); 
    text-align: center; 
    box-sizing: border-box; 
}

.related-li span { 
    display: block; 
    font-family: "Poppins", sans-serif; 
    margin-top: 0.625rem; 
}

/* 手机端响应式：相关产品/项目强制一行一个 */
@media (max-width: 768px) {
    .related-li { 
        flex: 0 0 100% !important; 
        max-width: 100% !important; 
        margin-bottom: 1.25rem; 
    }
}

/* --- 4. 通用图片及分页样式 --- */
.product-thumbnail img, 
.related-li img { 
    width: 100%; 
    height: auto; 
    display: block; 
    border-radius: 0.25rem; 
}

.pagination { 
    text-align: center; 
    margin-top: 1.25rem; 
    clear: both;
}

.pagination .page-numbers { 
    display: inline-block;
    padding: 0.375rem 0.75rem; 
    margin: 0 0.1875rem; 
    border: 0.0625rem solid #ccc; 
    background: #f0f0f0; 
    text-decoration: none;
    color: #333;
}

.pagination .page-numbers.current { 
    background: #f39800; 
    color: #fff; 
    border-color: #f39800;
}