.product-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: all 0.3s ease; height: 100%; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.product-card img { width: 100%; height: 220px; object-fit: cover; }
.product-card-body { padding: 20px; }
.product-card-body h4 { color: #0a4d8c; }
.product-card-body h4 a { color: inherit; text-decoration: none; }
.product-card-body h4 a:hover { color: #0077B6; }
.grid-filter.style-2 li:not(.activeFilter) a:hover { color: #0a4d8c !important; }
.grid-filter.style-2 li.activeFilter a { background-color: #0a4d8c !important; border-color: #0a4d8c !important; }
/* 产品一二级分类分行显示 */
.grid-filter-wrap.huaci-pf-wrap { flex-direction: column; row-gap: 0; }
.grid-filter-wrap.huaci-pf-wrap .huaci-pf-l2 { margin-top: 14px; }
/* 分类项按内容宽度，切换时避免尺寸抖动 */
.grid-filter-wrap.huaci-pf-wrap .grid-filter li { width: auto; flex: 0 0 auto; }
/* 选中项不加粗、不改变内边距，避免宽度/高度变化导致抖动 */
.grid-filter-wrap.huaci-pf-wrap .grid-filter li a { font-weight: 600; }
.grid-filter-wrap.huaci-pf-wrap .grid-filter li.activeFilter a { font-weight: 600; padding-top: 9px; padding-bottom: 9px; margin: 0; }
#portfolio { display: flex !important; flex-wrap: wrap !important; height: auto !important; position: relative !important; }
#portfolio > .portfolio-item { position: relative !important; left: auto !important; top: auto !important; width: 16.6667% !important; transition: opacity 0.25s ease, transform 0.25s ease; }
@media (max-width: 991.98px) { #portfolio > .portfolio-item { width: 33.3333% !important; } }
@media (max-width: 767.98px) { #portfolio > .portfolio-item { width: 50% !important; } }
#portfolio .portfolio-image { position: relative; width: 100%; padding-top: 100%; overflow: hidden; }
#portfolio .portfolio-image > a { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
#portfolio .portfolio-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.5s ease; }
#portfolio .portfolio-item:hover .portfolio-image img { transform: scale(1.08); }
#portfolio .portfolio-desc h3 { display: block; font-size: 0.9rem; line-height: 1.4; word-break: break-word; overflow-wrap: break-word; white-space: normal; }
