/* ========================================
   bnt-related-blocks.css – 通用侧边栏 + 底部横栏
   ======================================== */

/* ---------- 侧边栏标题 ---------- */
.bnt-sidebar-title {
    position: relative;
    padding-left: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a1f44;
    margin: 0 0 20px;
    letter-spacing: 0.3px;
}
.bnt-sidebar-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background: linear-gradient(180deg, #f39c12 0%, #e67e22 100%);
    border-radius: 3px;
}

/* ---------- 侧边栏容器 ---------- */
.bnt-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 350px;
}
.bnt-sidebar-block { position: relative; }

/* ---------- 1. Main Product ---------- */
.bnt-main-product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bnt-main-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}
.bnt-main-product-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}
.bnt-main-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.bnt-main-product-card:hover .bnt-main-product-thumb img { transform: scale(1.05); }

.bnt-top-pick-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-radius: 4px;
    box-shadow: 0 3px 8px rgba(243,156,18,0.4);
}
.bnt-main-product-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,31,68,0.4) 0%, transparent 60%);
    pointer-events: none;
}
.bnt-main-product-card h4 { font-size: 1.1rem; font-weight: 700; color: #0a1f44; margin: 15px 18px 8px; line-height: 1.35; }
.bnt-main-product-card p { font-size: 0.9rem; color: #666; line-height: 1.5; margin: 0 18px 18px; }

/* ---------- 2. Recommended Products ---------- */
.bnt-rec-product-list {
    list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px;
}
.bnt-rec-product-item {
    display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; padding: 8px; border-radius: 6px; transition: background 0.2s;
}
.bnt-rec-product-item:hover { background: #f5f7fa; }
.bnt-rec-product-thumb { flex: 0 0 70px; width: 70px; height: 70px; border-radius: 6px; overflow: hidden; background: #f0f0f0; }
.bnt-rec-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bnt-rec-product-item h4 { font-size: 0.95rem; font-weight: 600; color: #0a1f44; line-height: 1.35; margin: 0; transition: color 0.2s; }
.bnt-rec-product-item:hover h4 { color: #1a3a6a; }

/* ---------- 3. Case Studies ---------- */
.bnt-sidebar-case-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.bnt-sidebar-case-card { display: block; text-decoration: none; border-radius: 6px; overflow: hidden; }
.bnt-sidebar-case-thumb { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #f0f0f0; }
.bnt-sidebar-case-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.bnt-sidebar-case-card:hover .bnt-sidebar-case-thumb img { transform: scale(1.06); }
.bnt-sidebar-case-thumb::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.bnt-case-overlay-title {
    position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; color: #fff; font-size: 0.85rem; font-weight: 600; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    background: rgba(10, 31, 68, 0.6); padding: 8px 10px; border-radius: 4px;
}

/* ---------- 4. Related Reading ---------- */
.bnt-related-reading-list { list-style: none; margin: 0; padding: 0; }
.bnt-related-reading-list li { border-bottom: 1px solid #eaeaea; }
.bnt-related-reading-list li:last-child { border-bottom: none; }
.bnt-related-reading-list a { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; text-decoration: none; color: #0a1f44; font-size: 0.95rem; font-weight: 500; line-height: 1.4; transition: color 0.2s; }
.bnt-related-reading-list a:hover { color: #f39c12; }
.bnt-reading-arrow { color: #f39c12; font-weight: 700; font-size: 1.1rem; line-height: 1; margin-top: 2px; flex-shrink: 0; transition: transform 0.2s; }
.bnt-related-reading-list a:hover .bnt-reading-arrow { transform: translateX(3px); }

/* ---------- 占位 ---------- */
.bnt-thumb-placeholder { width: 100%; height: 100%; background: #ddd; }

/* ---------- 侧边栏联系表单 ---------- */
.bnt-block-contact-form {
    background: #f5f7fa; padding: 25px 22px; border-radius: 8px; border-top: 3px solid;
    border-image: linear-gradient(90deg, #f39c12 0%, #e67e22 100%) 1;
}
.bnt-block-contact-form .bnt-sidebar-title { padding-left: 0; margin-bottom: 18px; }
.bnt-block-contact-form .bnt-sidebar-title::before { display: none; }
.bnt-sidebar-form { display: flex; flex-direction: column; gap: 12px; }
.bnt-sidebar-form .bnt-form-group { width: 100%; }
.bnt-sidebar-form input, .bnt-sidebar-form textarea {
    width: 100%; padding: 10px 14px; font-size: 0.95rem; font-family: inherit; color: #0a1f44; background: #ffffff; border: 1px solid #d0d5dd;
    border-radius: 5px; box-sizing: border-box; transition: border-color 0.2s ease, box-shadow 0.2s ease; outline: none;
}
.bnt-sidebar-form input::placeholder, .bnt-sidebar-form textarea::placeholder { color: #9aa1ab; }
.bnt-sidebar-form input:focus, .bnt-sidebar-form textarea:focus { border-color: #f39c12; box-shadow: 0 0 0 3px rgba(243,156,18,0.15); }
.bnt-sidebar-form textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.bnt-sidebar-form-submit {
    display: inline-block; width: 100%; padding: 12px 20px; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.3px; color: #ffffff;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); border: none; border-radius: 5px; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; margin-top: 6px;
}
.bnt-sidebar-form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(243,156,18,0.35); filter: brightness(1.05); }

/* ---------- Flagship Products ---------- */
.bnt-flagship-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bnt-flagship-item { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; padding: 8px; border-radius: 6px; transition: background 0.2s; }
.bnt-flagship-item:hover { background: #f5f7fa; }
.bnt-flagship-thumb { flex: 0 0 70px; width: 70px; height: 70px; border-radius: 6px; overflow: hidden; background: #f0f0f0; }
.bnt-flagship-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bnt-flagship-item h4 { font-size: 0.95rem; font-weight: 600; color: #0a1f44; line-height: 1.35; margin: 0; transition: color 0.2s; }
.bnt-flagship-item:hover h4 { color: #1a3a6a; }

/* ---------- 底部横栏 ---------- */
.bnt-bottom-related { padding: 80px 0; background: #f5f7fa; }
.bnt-bottom-block { margin-bottom: 70px; }
.bnt-bottom-block:last-child { margin-bottom: 0; }

.bnt-bottom-title {
    display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 1.5rem; font-weight: 700; color: #0a1f44; margin: 0 0 40px; text-align: center;
}
.bnt-bottom-title::before, .bnt-bottom-title::after {
    content: ""; display: block; width: 60px; height: 5px; border-radius: 3px;
}
.bnt-bottom-title::before { background: linear-gradient(90deg, rgba(243,156,18,0.2) 0%, #f39c12 50%, #e67e22 100%); }
.bnt-bottom-title::after { background: linear-gradient(270deg, rgba(243,156,18,0.2) 0%, #f39c12 50%, #e67e22 100%); }

/* 网格共用 */
.bnt-bottom-products-grid, .bnt-bottom-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.bnt-bottom-product-card {
    display: flex; flex-direction: column; background: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bnt-bottom-product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.bnt-bottom-product-thumb { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #f0f0f0; }
.bnt-bottom-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.bnt-bottom-product-card:hover .bnt-bottom-product-thumb img { transform: scale(1.05); }
.bnt-bottom-product-card h3 { font-size: 1.15rem; font-weight: 700; color: #0a1f44; margin: 15px 20px 8px; }
.bnt-bottom-product-card p { font-size: 0.95rem; color: #555; line-height: 1.5; margin: 0 20px 15px; }
.bnt-bottom-product-card .bnt-btn {
    margin: auto 20px 20px; padding: 8px 0; background: none; border: none; color: #0a1f44; font-size: 0.9rem; font-weight: 600; text-decoration: none; align-self: flex-start; transition: color 0.2s;
}
.bnt-bottom-product-card .bnt-btn::after { content: ">"; margin-left: 6px; display: inline-block; transition: transform 0.2s; }
.bnt-bottom-product-card:hover .bnt-btn { color: #1a3a6a; }
.bnt-bottom-product-card:hover .bnt-btn::after { transform: translateX(4px); }

.bnt-bottom-article-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 30px; }
.bnt-bottom-article-date { font-size: 0.85rem; color: #999; margin-bottom: 20px; }
.bnt-bottom-article-card h3 { font-size: 1.3rem; font-weight: 600; color: #0a1f44; margin: 0 0 20px; line-height: 1.35; transition: color 0.2s; }
.bnt-bottom-article-link { text-decoration: none; color: inherit; }
.bnt-bottom-article-link:hover h3 { color: #1a3a6a; }
.bnt-bottom-article-card p { font-size: 0.95rem; color: #555; line-height: 1.5; margin-bottom: 20px; }
.bnt-bottom-article-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .bnt-bottom-products-grid, .bnt-bottom-articles-grid { grid-template-columns: repeat(2, 1fr); }
    .bnt-bottom-title { font-size: 2rem; }
}
@media (max-width: 768px) {
    .bnt-bottom-products-grid, .bnt-bottom-articles-grid { grid-template-columns: 1fr; }
    .bnt-sidebar-case-grid { grid-template-columns: repeat(2, 1fr); }
    .bnt-bottom-title { font-size: 1.25rem; gap: 14px; }
    .bnt-bottom-title::before, .bnt-bottom-title::after { width: 36px; height: 4px; }
}