/* Shared square cards: 商品一览、讯息公告 and home product images. */
.catalog-page {background:#f7f7f6;}
.brand.catalog-page {background:transparent;}
.catalog-page .content-card-list {margin-top:40px;}
.content-card-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:30px 20px;padding:0;margin:0 0 40px;list-style:none;}
.content-card-grid::before,.content-card-grid::after {display:none;}
.content-card-grid > li {min-width:0;}
.content-card {display:block;height:100%;box-sizing:border-box;overflow:hidden;border:1px solid #dedede;background:#fff;color:#393939;}
.content-card-image {position:relative;padding-top:100%;overflow:hidden;background:#fff;}
.content-card-image img {position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;transition:opacity .2s;}
.content-card-info {padding:12px 14px 16px;}
.content-card-date {display:block;color:#767676;font-size:13px;line-height:22px;margin-bottom:4px;}
/* 商品编码为空时保留一行高度，长编码允许换行。 */
.content-card-code {display:block;min-height:22px;color:#767676;font-size:13px;line-height:22px;margin-bottom:4px;overflow-wrap:anywhere;word-break:break-word;}
.content-card-title {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;height:48px;overflow:hidden;text-overflow:ellipsis;overflow-wrap:anywhere;font-size:15px;font-weight:400;line-height:24px;margin:0;}
.content-card:hover .content-card-image img {opacity:.8;}
.content-card:hover .content-card-title {color:#b01b22;}
.content-card:focus-visible,.home-product-card:focus-visible {outline:2px solid #b01b22;outline-offset:3px;}
.content-card-list .page {margin-top:24px;}
.index .index-brand .list ul li {height:auto;box-sizing:border-box;}
.index .index-brand .list ul li a.home-product-card {height:auto;max-width:140px;margin:0 auto;background:#fff;color:#393939;}
.home-product-image {display:block;position:relative;padding-top:100%;overflow:hidden;}
.index .index-brand .list ul li a .home-product-image img {position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;margin:0;object-fit:contain;filter:none;}
.home-product-card:hover .home-product-title {color:#b01b22;}
.home-product-title {display:block;font-size:16px;line-height:24px;padding:12px 8px;text-align:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
@media(max-width:1024px) {.content-card-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 16px;}}
@media(max-width:640px) {
 .catalog-page .content-card-list {margin-top:24px;}
 .content-card-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px;}
 .content-card-info {padding:10px 10px 12px;}
 .content-card-title {font-size:14px;line-height:22px;height:44px;}
 .home-product-title {font-size:14px;}
}
@media(prefers-reduced-motion:reduce) {.content-card-image img {transition:none;}}

/* 商品详情：保留居中标题，正文左对齐并提高可读性。 */
.product-detail .content .conLeft .con .tits {font-size:32px;line-height:1.5;color:#333;}
.product-detail .content .conLeft .con .conn {text-align:left;font-size:16px;line-height:30px;color:#444;}
@media(max-width:768px) {.product-detail .content .conLeft .con .tits {font-size:26px;line-height:1.5;}}
