/* ============================================================
   bnt-taxonomy.css
   分类归档页 + 文章分类页 + 搜索结果页
   ============================================================ */

/* ============================================================
   1. 全屏面包屑包裹器
   ============================================================ */
.bnt-breadcrumb-fullwidth {
    width: 100%;
    background: #f5f5f5;
    box-sizing: border-box;
    overflow: hidden;
}
.bnt-breadcrumb {
    display: block;
    padding: 15px 0;
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}
.bnt-breadcrumb a {
    color: #0a1f44;
    text-decoration: none;
}
.bnt-breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================================
   2. 分类页主容器
   ============================================================ */
.bnt-category-page {
    background: #ffffff;
}
.bnt-cat-main-wrap {
    padding: 80px 0;
    background: #fff;
}
.bnt-cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* 分类页左栏图片 */
.bnt-cat-image {
    max-width: 350px;
}
.bnt-cat-placeholder-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 分类页右栏信息 */
.bnt-cat-info {
    flex: 1;
    min-width: 300px;
}
.bnt-cat-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0a1f44;
    margin: 0 0 15px;
}
.bnt-cat-description {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}
.bnt-cat-divider {
    border: 0;
    border-top: 2px solid #eaeaea;
    margin: 0 0 30px;
}

/* ============================================================
   3. 产品列表网格（3 列 × N 行）
   ============================================================ */
.bnt-product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.bnt-product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}
.bnt-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.bnt-product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.bnt-product-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}
.bnt-product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bnt-product-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #ddd;
}
.bnt-product-card-info {
    padding: 15px;
}
.bnt-product-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0a1f44;
    margin: 0 0 8px;
}
.bnt-product-card-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}
.bnt-product-card-btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 4px;
}

/* 分页 */
.bnt-pagination {
    margin-top: 40px;
    text-align: center;
}
.bnt-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #0a1f44;
    text-decoration: none;
}
.bnt-pagination .page-numbers.current {
    background: #0a1f44;
    color: #fff;
    border-color: #0a1f44;
}

/* ============================================================
   4. 文章列表（每行一篇，左图右文）
   ============================================================ */
.bnt-post-list {
    display: block;
}
.bnt-post-card {
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}
.bnt-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.bnt-post-card-link {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    flex-wrap: wrap;
}

/* 文章列表左侧图片容器 */
.bnt-post-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}
.bnt-post-thumb-img {
    width: 450px;
    height: 100%;
    object-fit: cover;
}
.bnt-post-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #ddd;
}

/* 文章列表右侧内容 */
.bnt-post-card-info {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
}
.bnt-post-card-cat {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #f39c12;
    margin: 0 0 8px;
}
.bnt-post-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0a1f44;
    margin: 0 0 8px;
}
.bnt-post-card-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
}
.bnt-post-card-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}
.bnt-post-card-btn {
    align-self: flex-start;
    padding: 8px 25px;
    font-size: 0.9rem;
    border-radius: 4px;
}

/* ============================================================
   5. 文章分类页两栏布局（左 350px 侧栏 + 右侧自适应）
   ============================================================ */
.bnt-cat-layout {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    width: 100%;
}
.bnt-cat-layout .bnt-sidebar {
    flex: 0 0 350px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.bnt-cat-layout .bnt-cat-info {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
}

/* 侧栏占位图片 */
.bnt-cat-layout .bnt-details-sidebar {
    width: 100%;
    max-width: 350px;
}
.bnt-cat-layout .bnt-placeholder-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

/* ============================================================
   6. 搜索结果页专用样式
   ============================================================ */
.bnt-search-query {
    color: #f39c12;
    font-weight: 700;
}
.bnt-search-mark {
    background: #fff;
    color: #0a1f44;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 700;
}

/* 空结果引导 */
.bnt-search-empty {
    background: #f5f7fa;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    margin-top: 20px;
}
.bnt-search-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a1f44;
    margin: 0 0 12px;
}
.bnt-search-empty p {
    font-size: 1rem;
    color: #5a6273;
    line-height: 1.6;
    margin: 0 0 20px;
}
.bnt-search-empty-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 搜索页图片固定宽度 */
body.search .bnt-cat-layout .bnt-post-thumb {
    flex: 0 0 280px;
    max-width: 280px;
    width: 280px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}
body.search .bnt-cat-layout .bnt-post-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.search .bnt-cat-layout .bnt-post-card-info {
    min-width: 0;
}

/* ============================================================
   7. 响应式
   ============================================================ */
@media (max-width: 992px) {
    .bnt-cat-grid { flex-direction: column; }
    .bnt-cat-image { flex: 0 0 auto; max-width: 100%; text-align: center; }
    .bnt-cat-placeholder-img { max-width: 350px; }
    .bnt-product-list { grid-template-columns: repeat(2, 1fr); }

    .bnt-cat-layout { flex-direction: column; }
    .bnt-cat-layout .bnt-sidebar, .bnt-cat-layout .bnt-cat-info { flex: 1 1 100%; max-width: 100%; }

    /* 侧栏下移 */
    .bnt-cat-layout .bnt-cat-info, .bnt-cat-grid .bnt-cat-info { order: 1; width: 100%; }
    .bnt-cat-layout .bnt-sidebar, .bnt-cat-grid .bnt-sidebar {
        order: 2; width: 100%; max-width: 100%; margin-top: 40px;
    }
    .bnt-cat-layout .bnt-sidebar .bnt-details-sidebar, .bnt-cat-grid .bnt-sidebar .bnt-details-sidebar {
        max-width: 350px; margin: 0 auto 30px;
    }
    .bnt-cat-layout .bnt-sidebar .bnt-sidebar-block, .bnt-cat-grid .bnt-sidebar .bnt-sidebar-block {
        max-width: 500px; margin-left: auto; margin-right: auto;
    }
}

@media (max-width: 768px) {
    .bnt-product-list { grid-template-columns: 1fr; }
    .bnt-cat-title { font-size: 1.8rem; }

    .bnt-post-card-link { flex-direction: column; }
    .bnt-post-thumb { flex: 0 0 auto; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; }
    .bnt-post-card-info { padding: 15px; }

    .bnt-search-empty { padding: 40px 24px; }
    .bnt-search-empty-title { font-size: 1.25rem; }
    body.search .bnt-cat-layout .bnt-post-thumb { flex: 0 0 auto; width: 100%; max-width: 100%; }
}