/*
Theme Name: GeneratePress BNT Child
Theme URI: https://example.com/generatepress-bnt
Description: Custom child theme with three-bar floating header.
Author: Your Name
Author URI: https://example.com
Template: generatepress
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-bnt
*/

/* ========== Global font & base ========== */
body {
    font-family: 'Exo 2', sans-serif;
    background-color: #ffffff;
}

:root {
    --bnt-header-height: 176.28px;
}

/* ========== Floating header container ========== */
.bnt-site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transform: none !important;
}

/* ========== Shared inner container ========== */
.bnt-header-inner {
    padding: 0;
    display: flex;
    align-items: center;
}

/* ========== Top Bar ========== */
.bnt-top-bar {
    background-color: #2d2d2d;
    color: #ffffff;
    position: relative;
}
.bnt-top-bar .bnt-header-inner {
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
}
.bnt-logo-area {
    display: flex;
    align-items: center;
}
.bnt-logo-area .custom-logo {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
}
.bnt-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
}

/* 汉堡按钮 */
.bnt-hamburger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    margin-left: auto;
    flex-shrink: 0;
}
.bnt-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.bnt-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bnt-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bnt-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Primary menu */
.bnt-primary-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.bnt-primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}
.bnt-primary-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}
.bnt-primary-menu > li > a {
    display: block;
    padding: 10px 30px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.bnt-primary-menu > li:hover > a,
.bnt-primary-menu > li.current-menu-item > a { color: #dddddd; }
.bnt-primary-menu > li:not(:last-child)::before {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background-color: rgba(255,255,255,0.3);
}
.bnt-primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 10px;
    right: 10px;
    height: 3px;
    background-color: #ffffff;
    transform: scaleX(0);
    transition: transform 0.25s ease;
    z-index: 2;
}
.bnt-primary-menu > li:hover > a::after,
.bnt-primary-menu > li.current-menu-item > a::after,
.bnt-primary-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }

/* ========== Middle Bar ========== */
.bnt-middle-bar {
    background-color: #ffffff;
    color: #0a1f44;
    position: relative;
}
.bnt-middle-bar .bnt-header-inner {
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 9px;
}
.bnt-product-navigation { margin-right: 20px; }
.bnt-product-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.bnt-product-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}
.bnt-product-menu > li > a {
    display: block;
    padding: 10px 15px;
    color: #0a1f44;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: background-color 0.2s;
    position: relative;
}
.bnt-product-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 10px;
    right: 10px;
    height: 3px;
    background-color: #0a1f44;
    transform: scaleX(0);
    transition: transform 0.25s ease;
    z-index: 2;
}
.bnt-product-menu > li:hover > a::after,
.bnt-product-menu > li.current-menu-item > a::after,
.bnt-product-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }

/* ========== Search form ========== */
.bnt-search-form { flex-shrink: 0; }
.bnt-search-wrapper {
    display: flex;
    align-items: center;
    background-color: #f5f7fa;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    padding: 1px 4px;
    box-sizing: border-box;
}
.bnt-search-input {
    background: transparent;
    border: none;
    color: #0a1f44;
    padding: 8px 6px;
    font-size: 14px;
    outline: none;
    width: 280px;
    line-height: 1.2;
}
.bnt-search-input::placeholder { color: #6b7280; }
.bnt-search-button {
    background: none;
    border: none;
    color: #0a1f44;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== Bottom Promo Bar ========== */
.bnt-promo-bar {
    background-color: #e0e0e0;
    text-align: center;
}
.bnt-promo-bar .bnt-header-inner {
    justify-content: center;
    padding-top: 8px;
    padding-bottom: 8px;
}
.bnt-promo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    text-align: center;
    color: #333333;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.bnt-promo-label { color: #333333; font-size: 0.9rem; letter-spacing: 0.3px; }
.bnt-promo-link {
    display: inline-block;
    color: #f39c12;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    text-decoration: none;
    padding: 1px 5px;
    border-radius: 3px;
    border-bottom: 1px dashed rgba(243,156,18,0.55);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.bnt-promo-link:hover {
    color: #ffb84d;
    border-bottom-color: #ffb84d;
    border-bottom-style: solid;
    background: rgba(243,156,18,0.08);
}

/* ========== Footer ========== */
.bnt-footer {
    background-color: #2d2d2d;
    color: #ffffff;
    padding: 40px 20px 20px;
    font-family: 'Exo 2', sans-serif;
    overflow-x: clip;
}
.bnt-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}
.bnt-footer-col { flex: 1 1 auto; min-width: 180px; position: relative; }
.bnt-footer-col-anti { flex: 2 1 400px; }
.bnt-footer-subcols { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; margin: 0; }
.bnt-footer-subcol { flex: 1 1 150px; list-style: none; padding: 0; margin: 0; }
.bnt-footer-subcols > li, .bnt-footer-subcol > li { flex: 1 1 150px; list-style: none; padding: 0; margin: 0; }
.bnt-footer-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; color: #ffffff; letter-spacing: 0.5px; }
.bnt-footer-subcol h4, .bnt-footer-subcols > li > a, .bnt-footer-subcol > li > a {
    font-size: 1rem; font-weight: 600; margin: 12px 0 8px 0; color: #dddddd;
    border-bottom: 1px solid rgba(255,255,255,0); padding-bottom: 5px; display: inline-block; text-decoration: none;
}
.bnt-footer-subcol ul, .bnt-footer-subcols ul, .bnt-footer-col-nav ul { list-style: none; padding: 0; margin: 0; }
.bnt-footer-subcol ul li, .bnt-footer-subcols ul li, .bnt-footer-col-nav ul li { margin-bottom: 6px; }
.bnt-footer-subcol ul li a, .bnt-footer-subcols ul li a, .bnt-footer-col-nav ul li a { color: #bbbbbb; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.bnt-footer-subcol ul li a:hover, .bnt-footer-subcols ul li a:hover, .bnt-footer-col-nav ul li a:hover { color: #ffffff; }
.bnt-footer-col:not(:last-child)::after {
    content: ''; position: absolute; right: -20px; top: 0; bottom: 0; width: 1px; background-color: rgba(255, 255, 255, 0.15);
}
.bnt-footer-divider {
    width: 100vw; position: relative; left: 50%; transform: translateX(-50%);
    border-top: 1px solid rgba(255,255,255,0.15); margin: 30px 0;
}
.bnt-footer-bottom { max-width: 1600px; margin: 0 auto; }
.bnt-footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; }
.bnt-footer-logo { flex-shrink: 0; }
.bnt-footer-logo .custom-logo { max-height: 40px; width: auto; display: block; }
.bnt-footer-logo-text { font-size: 28px; font-weight: 700; color: #ffffff; text-decoration: none; }
.bnt-footer-copyright { color: #aaaaaa; font-size: 0.9rem; }
.bnt-footer-title a { color: inherit; text-decoration: none; }
.bnt-footer-col-anti .bnt-footer-title { text-align: center; }

/* ========== Dropdowns & Mega Menu ========== */
.bnt-primary-menu .sub-menu { top: calc(100% + 21px) !important; left: 50% !important; transform: translateX(-50%) !important; margin-top: 0 !important; }
.bnt-primary-menu .sub-menu, .bnt-product-menu .sub-menu {
    position: absolute; background-color: #ffffff; list-style: none; margin: 0; padding: 10px 0; min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12); opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s; z-index: 1000;
}
.bnt-primary-menu > li:hover > .sub-menu, .bnt-primary-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.bnt-primary-menu .sub-menu li, .bnt-product-menu .sub-menu li { margin: 0; position: relative; }
.bnt-primary-menu .sub-menu li a, .bnt-product-menu .sub-menu li a {
    display: block; padding: 8px 20px; color: #0a1f44; text-decoration: none; font-size: 14px; white-space: nowrap; transition: background-color 0.2s;
}
.bnt-primary-menu .sub-menu li a:hover, .bnt-product-menu .sub-menu li a:hover { background-color: #f0f4f8; }
.bnt-primary-menu .sub-menu .sub-menu { left: 100%; top: 0; }
.bnt-mega-dropdown {
    margin-top: 0; border-top: none; position: absolute; top: 100%; left: 0; width: 100vw; background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); z-index: 998; display: none; padding: 30px 0;
}
.bnt-mega-dropdown.active { display: block; }
.bnt-mega-inner { max-width: 1600px; margin: 0 auto; padding: 0 30px; display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 30px; }
.bnt-mega-image { flex: 0 0 450px; height: 300px; background-size: cover; background-position: center; border-radius: 4px; margin: 10px 0; }
.bnt-mega-columns { flex: 1; display: flex; flex-wrap: wrap; gap: 30px; }
.bnt-mega-col { flex: 1 1 200px; min-width: 180px; }
.bnt-mega-col-title {
    position: relative; display: block; font-size: 1.1rem; font-weight: 700; color: #0a1f44; text-decoration: none; margin-bottom: 12px; padding-bottom: 8px;
}
.bnt-mega-col-title::after { content: ""; position: absolute; bottom: 0; left: 0; width: 60%; height: 2px; background-color: #d2d2d2; border-radius: 1px; }
.bnt-mega-col-title:hover { color: #0056b3; }
.bnt-mega-col-links { list-style: none; margin: 0; padding: 0; }
.bnt-mega-col-links li { margin-bottom: 8px; }
.bnt-mega-col-links li a { color: #333333; text-decoration: none; font-size: 0.95rem; transition: color 0.2s, padding-left 0.2s; }
.bnt-mega-col-links li a:hover { color: #0a1f44; padding-left: 4px; }
@media (min-width: 769px) { .bnt-product-menu .sub-menu { display: none !important; } }

/* ========== 面包屑兜底 ========== */
.bnt-breadcrumb-fullwidth {
    width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
    background: #f5f5f5; box-sizing: border-box; overflow: hidden; min-height: 40px; display: flex; align-items: center;
}
.bnt-breadcrumb-fullwidth .bnt-container { max-width: 1600px; margin: 0 auto; box-sizing: border-box; width: 100%; }
.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; }

/* ========== 移动抽屉 ========== */
.bnt-mobile-drawer { position: fixed; inset: 0; z-index: 10001; display: none; opacity: 0; transition: opacity 0.3s; }
.bnt-mobile-drawer.is-open { display: block; opacity: 1; }
.bnt-mobile-drawer-backdrop { position: absolute; inset: 0; background: rgba(10, 31, 68, 0.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.bnt-mobile-drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: 85%; max-width: 360px; background: #ffffff; overflow-y: auto;
    -webkit-overflow-scrolling: touch; transform: translateX(100%); transition: transform 0.3s ease; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,0.18);
}
.bnt-mobile-drawer.is-open .bnt-mobile-drawer-panel { transform: translateX(0); }
body.bnt-drawer-lock { overflow: hidden; }
.bnt-mobile-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e0e4ea; background: #2d2d2d; color: #ffffff; flex-shrink: 0; }
.bnt-mobile-drawer-title { font-size: 1rem; font-weight: 700; letter-spacing: 0.5px; }
.bnt-mobile-close { width: 36px; height: 36px; padding: 0; background: transparent; border: none; color: #ffffff; font-size: 26px; line-height: 1; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.bnt-mobile-close:hover { background: rgba(255,255,255,0.12); }
.bnt-mobile-section { padding: 18px 20px; border-bottom: 1px solid #e0e4ea; }
.bnt-mobile-section-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #f39c12; margin-bottom: 12px; }
.bnt-mobile-menu { list-style: none; margin: 0; padding: 0; }
.bnt-mobile-menu > li { position: relative; }
.bnt-mobile-menu > li > a { display: block; padding: 12px 40px 12px 0; font-size: 1.05rem; font-weight: 600; color: #0a1f44; text-decoration: none; border-bottom: 1px solid #f0f2f6; }
.bnt-mobile-menu > li:last-child > a { border-bottom: none; }
.bnt-mobile-menu .sub-menu { list-style: none; margin: 0 0 8px; padding: 0 0 0 16px; display: none; border-left: 2px solid #f0f2f6; }
.bnt-mobile-menu > li.is-expanded > .sub-menu { display: block; }
.bnt-mobile-menu .sub-menu > li > a { display: block; padding: 10px 0; font-size: 0.95rem; font-weight: 500; color: #5a6273; text-decoration: none; border-bottom: 1px dashed #eaeaea; }
.bnt-mobile-menu .sub-menu > li:last-child > a { border-bottom: none; }
.bnt-submenu-toggle { position: absolute; right: 0; top: 6px; width: 36px; height: 36px; padding: 0; background: transparent; border: none; cursor: pointer; color: #0a1f44; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.bnt-mobile-search { display: flex; margin: 0; padding: 18px 20px; border-top: 1px solid #e0e4ea; background: #f5f7fa; flex-shrink: 0; }
.bnt-mobile-search input { flex: 1; padding: 12px 14px; font-size: 0.95rem; border: 1px solid #d0d5dd; border-right: none; border-radius: 4px 0 0 4px; background: #fff; outline: none; min-width: 0; }
.bnt-mobile-search button { padding: 0 16px; background: #0a1f44; color: #fff; border: 1px solid #0a1f44; border-radius: 0 4px 4px 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ============================================================
   ★ 终极修复补丁：全站父容器重置 + 全宽区块解锁 + 移动端统一间距
   ============================================================ */

/* 1. 彻底干碎所有主题外层限制 */
html, body { margin: 0 !important; padding: 0 !important; width: 100% !important; overflow-x: hidden !important; }
body #content, body .site-content, body .grid-container, body .content-area, body .inside-article, body .entry-content {
    width: 100% !important; max-width: 100% !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important;
    float: none !important; box-sizing: border-box !important; display: block !important;
}
body #page {
    width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin: 0 !important;
    padding-top: var(--bnt-header-height, 176px) !important; 
    padding-left: 0 !important; padding-right: 0 !important; padding-bottom: 0 !important;
    box-sizing: border-box !important; display: block !important;
}

/* 2. 统一全宽区块 */
.bnt-home-hero, .bnt-home-manufacturing, .bnt-home-application, .bnt-home-contact, .bnt-manufacturing,
.bnt-about-page .bnt-mil-hero, .bnt-about-stats, .bnt-about-mv, .bnt-about-values, .bnt-about-cta,
.bnt-about-page .bnt-mil-certs, .bnt-about-news, .bnt-contact-hero, .bnt-contact-main, .bnt-contact-offices,
.bnt-contact-page .bnt-mil-faq, .bnt-hero, .bnt-full-bg, .bnt-case-studies, .bnt-mil-hero, .bnt-breadcrumb-fullwidth {
    width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important;
    left: auto !important; right: auto !important; position: relative !important; box-sizing: border-box !important;
}

/* 3. 规范全站内容容器 */
.bnt-container, .bnt-header-inner, .bnt-footer-inner {
    width: 100% !important; max-width: 1600px !important; margin-left: auto !important; margin-right: auto !important;
    padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box !important;
}
.bnt-home-hero .bnt-container, .bnt-mil-hero .bnt-container, .bnt-about-page .bnt-mil-hero .bnt-container,
.bnt-contact-hero .bnt-container, .bnt-hero .bnt-container {
    padding-left: 20px !important; padding-right: 20px !important;
}

/* ============================================================
   响应式 (≤ 992px & ≤ 768px)
   ============================================================ */
@media (max-width: 992px) {
    :root { --bnt-header-height: 120px; }
    .bnt-hamburger { display: flex; margin-left: 0; }
    .bnt-site-header { transform: translateZ(0) !important; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
    .bnt-primary-navigation, .bnt-product-navigation, .bnt-search-form, .bnt-middle-bar, .bnt-mega-dropdown { display: none !important; }
    .bnt-top-bar .bnt-header-inner { flex-direction: row; justify-content: space-between; align-items: center; padding-left: 15px; padding-right: 15px; }
    
    .bnt-footer-inner { flex-direction: column; gap: 30px; }
    .bnt-footer-col { flex: 1 1 100% !important; }
    .bnt-footer-subcols { flex-direction: column; }
    .bnt-footer-bottom-inner { flex-direction: column; text-align: center; }
    .bnt-footer-col:not(:last-child)::after { display: none; }
    
    .bnt-mega-inner { flex-direction: column; padding: 0 15px; }
    .bnt-mega-image { display: none; }
    .bnt-mega-columns { width: 100%; }
    .bnt-promo-text { gap: 8px; font-size: 0.85rem; padding: 6px 0; }
    .bnt-promo-label { font-size: 0.82rem; }
    .bnt-promo-link { font-size: 0.78rem; }
}

@media (max-width: 768px) {
    :root { --bnt-header-height: 112px; }
    
    /* 页头微调 */
    .bnt-promo-text { gap: 4px !important; }
    .bnt-promo-label, .bnt-promo-link { font-size: 0.75rem !important; line-height: 1.2 !important; }
    .bnt-promo-link { white-space: nowrap !important; }
    .bnt-promo-bar .bnt-header-inner { padding-top: 5px !important; padding-bottom: 5px !important; }
    .bnt-logo-area .custom-logo { max-height: 40px; }
    .bnt-logo-text { font-size: 22px; }
    
    /* 安全缓冲 */
    body #page { padding-top: calc(var(--bnt-header-height, 112px) + 0px) !important; }

    /* 统一左右边距 */
    .bnt-container, .bnt-header-inner, .bnt-footer-inner { padding-left: 15px !important; padding-right: 15px !important; }
    .bnt-home-hero .bnt-container, .bnt-mil-hero .bnt-container, .bnt-contact-hero .bnt-container, .bnt-hero .bnt-container { padding-left: 15px !important; padding-right: 15px !important; }
    
    /* 面包屑 */
    .bnt-breadcrumb { padding: 12px 0 !important; font-size: 0.85rem !important; }

    /* 统一大区块上下 Padding */
    .bnt-mil-section, .bnt-about-intro, .bnt-about-mv, .bnt-about-journey, .bnt-about-values, .bnt-about-news,
    .bnt-contact-channels, .bnt-contact-main, .bnt-contact-offices, .bnt-home-family, .bnt-home-products,
    .bnt-home-resources, .bnt-home-manufacturing, .bnt-home-application, .bnt-home-contact, .bnt-product-lines,
    .bnt-core-tech, .bnt-products-section, .bnt-full-bg, .bnt-case-studies, .bnt-recommended, .bnt-bottom-related, .bnt-cat-main-wrap {
        padding-top: 50px !important; padding-bottom: 50px !important;
    }
    .bnt-post-main-wrap { padding-top: 40px !important; padding-bottom: 40px !important; }
    .bnt-product-grid { padding-top: 30px !important; padding-bottom: 30px !important; }

    /* 统一网格间距 */
    .bnt-product-grid, .bnt-mfg-grid, .bnt-family-grid, .bnt-about-values-grid, .bnt-about-mv-grid,
    .bnt-contact-channels-grid, .bnt-contact-offices-grid, .bnt-product-list, .bnt-case-grid,
    .bnt-bottom-products-grid, .bnt-bottom-articles-grid, .bnt-mil-threat-grid, .bnt-mil-cap-grid,
    .bnt-mil-scenario-grid, .bnt-mil-systems-grid, .bnt-mil-cert-grid, .bnt-cuv-matrix-grid,
    .bnt-cuv-apps-grid, .bnt-mil-recommend-grid, .bnt-mil-articles-grid, .bnt-hub-industry-grid,
    .bnt-related-grid, .bnt-journey-collage { gap: 20px !important; }

    /* 侧边栏与主内容间距 */
    .bnt-cat-layout, .bnt-post-layout, .bnt-details-grid, .bnt-cat-grid { gap: 30px !important; }
    .bnt-post-layout .bnt-sidebar, .bnt-details-grid .bnt-sidebar, .bnt-cat-layout .bnt-sidebar, .bnt-cat-grid .bnt-sidebar { margin-top: 0 !important; }
    .bnt-sidebar { gap: 30px !important; }

    /* 标题区 */
    .bnt-mil-section-head, .bnt-bottom-title { margin-bottom: 30px !important; }
    .bnt-home .bnt-section-title { margin-bottom: 35px !important; }
    .bnt-product-tabs, .bnt-home-products .bnt-product-tabs, .bnt-home-resources .bnt-product-tabs { margin-bottom: 25px !important; }

    /* 底部模块 */
    .bnt-bottom-block { margin-bottom: 40px !important; }
    .bnt-bottom-block:last-child { margin-bottom: 0 !important; }
    
    /* 悬浮认证 */
    .bnt-home-certs { padding-top: 25px !important; padding-bottom: 25px !important; margin-top: -20px !important; margin-bottom: -20px !important; }
}

/* ============================================================
   404 Page — Navigation Recovery
   风格：深蓝 #0a1f44 + 橙色 #f39c12，与全站一致
   ============================================================ */

/* ---------- 1. Hero ---------- */
.bnt-404-hero {
    background: #0a1f44;
    padding: 120px 0 100px;
    text-align: center;
}
.bnt-404-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}
.bnt-404-code {
    display: block;
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -4px;
    color: #f39c12;
    margin-bottom: 24px;
}
.bnt-404-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}
.bnt-404-desc {
    font-size: 1.1rem;
    color: #a7b0c2;
    line-height: 1.7;
    margin: 0 0 36px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}
.bnt-404-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.bnt-404-hero .bnt-btn-primary {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #ffffff;
    border: none;
    padding: 15px 36px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.bnt-404-hero .bnt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(243,156,18,0.4);
    color: #ffffff;
}
.bnt-404-hero .bnt-btn-ghost {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 15px 36px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.bnt-404-hero .bnt-btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: #ffffff;
    color: #ffffff;
}

/* ---------- 2. 搜索区 ---------- */
.bnt-404-search-section {
    background: #f5f7fa;
    padding: 70px 0;
    text-align: center;
}
.bnt-404-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0a1f44;
    margin: 0 0 28px;
    letter-spacing: -0.3px;
}
.bnt-404-search-form {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(10,31,68,0.08);
    border-radius: 6px;
    overflow: hidden;
}
.bnt-404-search-form input[type="search"] {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #d0d5dd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    background: #ffffff;
    outline: none;
    color: #0a1f44;
}
.bnt-404-search-form input[type="search"]::placeholder {
    color: #9aa1ab;
}
.bnt-404-search-form button {
    padding: 0 32px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    color: #ffffff;
    background: #0a1f44;
    border: 1px solid #0a1f44;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.bnt-404-search-form button:hover {
    background: #1a3a6a;
}

/* ---------- 3. 热门分类卡片 ---------- */
.bnt-404-recommend {
    background: #ffffff;
    padding: 80px 0;
}
.bnt-404-recommend .bnt-404-section-title {
    text-align: center;
}
.bnt-404-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto;
}
.bnt-404-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.bnt-404-card:hover {
    transform: translateY(-4px);
    border-color: #f39c12;
    box-shadow: 0 12px 28px rgba(10,31,68,0.1);
}
.bnt-404-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-color: #e0e4ea;
}
.bnt-404-card-body {
    padding: 20px 22px 24px;
}
.bnt-404-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a1f44;
    margin: 0 0 10px;
    line-height: 1.35;
}
.bnt-404-card-cta {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f39c12;
    letter-spacing: 0.3px;
}

/* ---------- 4. 联系入口 ---------- */
.bnt-404-contact {
    background: #0a1f44;
    padding: 70px 0;
}
.bnt-404-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.bnt-404-contact-text {
    flex: 1 1 480px;
}
.bnt-404-contact-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: -0.3px;
}
.bnt-404-contact-text p {
    font-size: 1rem;
    color: #a7b0c2;
    line-height: 1.6;
    margin: 0;
}
.bnt-404-contact .bnt-btn-primary {
    flex-shrink: 0;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #ffffff;
    border: none;
    padding: 15px 36px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.bnt-404-contact .bnt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(243,156,18,0.4);
    color: #ffffff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .bnt-404-code { font-size: 6rem; }
    .bnt-404-title { font-size: 2rem; }
    .bnt-404-grid { grid-template-columns: repeat(2, 1fr); }
    .bnt-404-contact-inner { flex-direction: column; text-align: center; }
    .bnt-404-contact-text { flex: 1 1 100%; }
}
@media (max-width: 768px) {
    .bnt-404-hero { padding: 80px 0 70px; }
    .bnt-404-code { font-size: 4.5rem; letter-spacing: -2px; }
    .bnt-404-title { font-size: 1.6rem; }
    .bnt-404-desc { font-size: 1rem; }
    .bnt-404-actions { flex-direction: column; align-items: center; }
    .bnt-404-actions .bnt-btn-primary,
    .bnt-404-actions .bnt-btn-ghost { width: 100%; max-width: 320px; text-align: center; }
    .bnt-404-grid { grid-template-columns: 1fr; }
    .bnt-404-search-form { flex-direction: column; }
    .bnt-404-search-form input[type="search"] {
        border-right: 1px solid #d0d5dd;
        border-radius: 6px 6px 0 0;
    }
    .bnt-404-search-form button {
        border-radius: 0 0 6px 6px;
        padding: 14px 32px;
    }
    .bnt-404-contact-text h2 { font-size: 1.4rem; }
    .bnt-404-contact .bnt-btn-primary { width: 100%; max-width: 320px; text-align: center; }
}