/* ----- Section Category Header ----- */
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px; background: #f8f9fa;
    border-left: 5px solid #c83232; margin-bottom: 24px;
}
/* .section-header h2 { font-size: 20px; font-weight: 700; margin: 0; } */
.section-header a { font-size: 18px; color: #666; }
.section-header a:hover { color: #c83232; text-decoration: none; }

/* ----- Sidebar ----- */
.sidebar-sticky { position: sticky; top: 80px; }
.sidebar-sticky .card-header { padding: 14px 18px; }
.sidebar-sticky .list-group-item { font-size: 15px; padding: 10px 18px; }

/* 产品分类折叠菜单 */
.sidebar-product-nav dl { margin-bottom: 0; }
.sidebar-product-nav dt {
    padding: 12px 0; border-bottom: 1px solid #e9ecef;
    font-weight: 600; font-size: 15px; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.sidebar-product-nav dl:last-child dt{ border-bottom: none; }
.sidebar-product-nav dt a { color: #333; font-size: 15px; text-decoration: none; }
.sidebar-product-nav dt a:hover { color: #c83232; }
.sidebar-product-nav .toggle-btn { color: #999; font-size: 20px; line-height: 1; }
.sidebar-product-nav dd { margin: 5px 0 5px 12px; padding: 6px 0; border-bottom: 1px dashed #dee2e6; }
.sidebar-product-nav dd a { font-size: 14px; color: #666; display: block; text-decoration: none; }
.sidebar-product-nav dd a:hover { color: #c83232; }

/* 侧边推荐产品 */
.sidebar-prod-item { display: flex; gap: 12px; margin-bottom: 16px; }
.sidebar-prod-thumb { flex-shrink: 0; }
.sidebar-featured-img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; display: block; }
.sidebar-prod-info { display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.sidebar-prod-title { font-size: 1rem; line-height: 1.4; color: #333; text-decoration: none; }
.sidebar-prod-title:hover { color: #c83232; text-decoration: none; }
.sidebar-prod-btn { font-size: 0.875rem; align-self: flex-start; margin-top: 8px; padding: 3px 14px; }

/* 侧边联系方式图标 */
.sidebar-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 15px; }
.sidebar-contact-item .icon-wrap {
    width: 34px; height: 34px; border-radius: 50%;
    background: #f0f0f0; display: flex; align-items: center;
    justify-content: center; color: #c83232; flex-shrink: 0;
}
.sidebar-contact-item a { color: #555; word-break: break-all; }
.sidebar-contact-item a:hover { color: #c83232; }

/* ----- News Card ----- */
.news-card-link { text-decoration: none; color: inherit; }
.news-card-link:hover .card { box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.14) !important; }
.news-card-link:hover .card-img-top,
.news-card-link:hover .news-card-cover { transform: scale(1.05); }
.news-card-cover { width: 100%; height: 260px; object-fit: cover; transition: transform .4s ease; }
.news-card-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card-title { font-size: 17px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; }
.news-card-date { font-size: 13px; color: #aaa; }

/* ----- Product Card (Grid) ----- */
.product-card .product-card-img {width: 100%;display: block; transition: transform .4s ease;}
.product-card:hover .product-card-img { transform: scale(1.05); }
.product-card .card-body { padding: 12px 10px; }
.product-card-name { font-size: 15px; line-height: 1.45; color: #333; text-decoration: none; display: block; }
.product-card-name:hover { color: #c83232; text-decoration: none; }
.hot-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: #c83232; color: #fff; font-size: 12px;
    padding: 3px 10px; border-radius: 2px;
}

/* ----- Product List Item (list_product) ----- */
.product-list-card { display: flex; background: #fff; border: 1px solid #e9ecef; border-radius: 8px; overflow: hidden; transition: box-shadow .25s; }
.product-list-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.product-list-card-img { width: 300px; min-width: 300px; overflow: hidden; }
.product-list-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.product-list-card:hover .product-list-card-img img { transform: scale(1.04); }
.product-list-card-body { flex: 1; padding: 28px 32px; }
.product-list-card-body h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.product-list-card-body h2 a { color: #333; text-decoration: none; }
.product-list-card-body h2 a:hover { color: #c83232; }
.product-list-card-body .text-muted { font-size: 15px; line-height: 1.7; }
.product-tag-badge {
    display: inline-block; background: #f0f2f4;
    font-size: 13px; padding: 4px 12px; margin: 3px; border-radius: 3px; color: #555;
    text-decoration: none;
}
.product-tag-badge:hover { background: #333; color: #fff; text-decoration: none; }

/* ----- Product Show — 图片画廊 ----- */
.product-gallery-main {
    border: 1px solid #e9ecef; border-radius: 6px;
    background: #f8f9fa; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1 / 1; margin-bottom: 10px; cursor: zoom-in;
}
.product-gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .3s; }
.product-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.product-gallery-thumbs li {
    width: 68px; height: 68px; border: 2px solid #e9ecef;
    border-radius: 4px; overflow: hidden; cursor: pointer; flex-shrink: 0;
}
.product-gallery-thumbs li img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery-thumbs li.active { border-color: #c83232; }

/* 产品属性行 */
.prod-attr-label { font-size: 13px; color: #c83232; font-weight: 700; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .04em; }
.prod-attr-value { font-size: 16px; color: #444; margin-bottom: 16px; }

.content-area { font-size: 16px; line-height: 2; }
.content-area p{vertical-align: middle;margin-bottom: 0px;}
.content-area img,.content-area video{ max-width: 100%; display: inline-block; vertical-align: middle; }

/* 产品内容区 */
.product-content-area { border-top: 1px solid #e9ecef; padding-top: 32px; }
/* .product-content-area img { max-width: 100%; display: inline-block; vertical-align: middle; } */
.nei-table { width: 100%; overflow: auto; }
.nei-table table { border-collapse: collapse; border-spacing: 0; }
.nei-table table, .nei-table table th, .nei-table table td { border: 1px solid #bbb; }
.nei-table table th, .nei-table table td { padding: 8px 14px; font-size: 15px; }

/* ----- News Detail ----- */
.news-detail-title { font-size: 30px; font-weight: 700; line-height: 1.4; }
.news-detail-date { background: #f0f0f0; display: inline-block; padding: 5px 14px; font-size: 14px; color: #777; border-radius: 3px; }
.news-detail-content { font-size: 16px; line-height: 2; }
 .news-detail-content img, .news-detail-content video{ max-width: 100%; } 

/* 上一篇 / 下一篇 */
.article-nav a { font-size: 15px; color: #555; text-decoration: none; }
.article-nav a:hover { color: #c83232; }

/* ----- 分页 (覆盖 ThinkPHP render() 输出的 ul.pagination) ----- */
.pagination { flex-wrap: wrap; }
.pagination .page-link { color: #333; border-color: #dee2e6; }
.pagination .page-item.active .page-link { background-color: #c83232; border-color: #c83232; color: #fff; }
.pagination .page-link:hover { color: #c83232; }

/* ----- 响应式 ----- */
@media (max-width: 767px) {
    .product-list-card { flex-direction: column; }
    .product-list-card-img { width: 100%; min-width: unset; height: 200px; }
    .product-gallery-thumbs li { width: 56px; height: 56px; }
}
