/* ========================================
   bnt-primary-category.css – 顶级产品分类页专属样式
   ======================================== */

/* ---------- 1. Product Lines（子分类卡片） ---------- */
.bnt-product-lines {
    padding: 80px 0;
    background: #ffffff;
}
.bnt-product-lines-grid {
    display: grid;
    gap: 30px;
}
/* 4个或2个分类：一行2列 */
.bnt-product-lines-grid.bnt-lines-cols-3,
.bnt-product-lines-grid.bnt-lines-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.bnt-product-line-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}
.bnt-product-line-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.bnt-product-line-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s;
}
.bnt-product-line-card:hover .bnt-product-line-img {
    transform: scale(1.05);
}
.bnt-product-line-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,31,68,0.9) 0%, rgba(10,31,68,0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s;
}
.bnt-product-line-card:hover .bnt-product-line-overlay {
    opacity: 1;
}
.bnt-product-line-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
}
.bnt-product-line-overlay p {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.5;
    margin: 0;
}

/* ---------- 2. Manufacturing Capabilities（全宽背景 + 悬停切换） ---------- */
.bnt-manufacturing {
    position: relative;
    min-height: 800px;
    overflow: hidden;
    background: #0a1f44;
}

.bnt-mfg-bgs {
    position: absolute;
    inset: 0;
}
.bnt-mfg-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.bnt-mfg-bg.active {
    opacity: 1;
}

/* 内容区域 */
.bnt-mfg-inner {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    min-height: 600px;
}

/* 小标题列表 */
.bnt-mfg-tabs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-left: 30px;
    max-width: 400px;
}
.bnt-mfg-tabs::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #d2d2d2;
}

.bnt-mfg-tab {
    position: relative;
    cursor: pointer;
    padding: 5px 0;
}
.bnt-mfg-tab h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    margin: 0;
    transition: color 0.3s ease;
}
.bnt-mfg-tab:hover h3,
.bnt-mfg-tab.active h3 {
    color: #ffffff;
}

/* 悬停橙线 */
.bnt-mfg-tab::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}
.bnt-mfg-tab:hover::before,
.bnt-mfg-tab.active::before {
    background-color: #f39c12;
}

/* 描述内容 */
.bnt-mfg-descriptions {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
}
.bnt-mfg-description {
    font-size: 1.3rem;
    color: #fff;
    line-height: 1.7;
    display: none;
}
.bnt-mfg-description.active {
    display: block;
}

/* 标题容器 */
.bnt-mfg-title-wrap {
    position: relative;
    z-index: 3;
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 0;
    box-sizing: border-box;
}
.bnt-manufacturing .bnt-section-title {
    color: #ffffff !important;
}
.bnt-manufacturing .bnt-section-title::before {
    color: rgba(255,255,255,0.15) !important;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .bnt-product-lines-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .bnt-product-lines-grid.bnt-lines-cols-3,
    .bnt-product-lines-grid.bnt-lines-cols-2 {
        grid-template-columns: 1fr;
    }
    .bnt-mfg-tabs {
        max-width: 100%;
    }
}