/* ============================================================
   bnt-single-product.css – 产品单页 + 文章单页样式
   ============================================================ */

/* 页面背景与内边距初始化 */
.bnt-product-page, .bnt-post-page { background: #ffffff; width: 100%; box-sizing: border-box; }

/* ============================================================
   二、产品单页主区域
   ============================================================ */
.bnt-product-grid {
    display: flex; flex-wrap: wrap; gap: 40px; padding: 60px 20px; box-sizing: border-box;
}
.bnt-product-gallery {
    flex: 1 1 48%; min-width: 300px; position: relative; width: 100%; max-width: 100%; overflow: hidden;
}
.bnt-product-info {
    flex: 1 1 48%; min-width: 300px; display: flex; flex-direction: column;
}

/* Swiper 主轮播（v7：彻底锁死尺寸） */
.product-swiper {
    position: relative; width: 100% !important; max-width: 100% !important; aspect-ratio: 4 / 3;
    overflow: hidden !important; border-radius: 8px; background: #f8f9fb; border: 1px solid #d0d0d0; box-sizing: border-box;
}
@supports not (aspect-ratio: 4 / 3) {
    .product-swiper { min-height: 260px; }
}
.product-swiper .swiper-wrapper {
    height: 100% !important; width: 100% !important; max-width: 100% !important;
}
.product-swiper .swiper-slide {
    width: 100% !important; max-width: 100% !important; flex-shrink: 0 !important;
    display: flex !important; justify-content: center !important; align-items: center !important; height: 100% !important; overflow: hidden !important; box-sizing: border-box;
}
.product-swiper .swiper-slide img,
.product-swiper .swiper-slide .swiper-image {
    position: absolute !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important;
    width: auto !important; height: auto !important; max-width: calc(100% - 2px) !important; max-height: calc(100% - 2px) !important;
    object-fit: scale-down !important; object-position: center !important; display: block !important; margin: 0 !important;
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 20px; }

/* 缩略图 */
.product-thumbs {
    margin-top: 10px; width: 100%; max-width: 100%; height: 80px; overflow: hidden; box-sizing: border-box;
}
.product-thumbs .swiper-slide {
    width: 80px; height: 80px; margin-right: 10px; opacity: 0.6; cursor: pointer; border-radius: 4px; overflow: hidden; box-sizing: border-box; border: 1px solid #d0d0d0; transition: border-color 0.2s, opacity 0.2s;
}
.product-thumbs .swiper-slide:last-child { margin-right: 0; }
.product-thumbs .swiper-slide-thumb-active { opacity: 1; border: 1px solid #9f9f9f; }
.product-thumbs .thumb-image { width: 100%; height: 100%; object-fit: cover; }

/* 产品信息 */
.bnt-product-title { font-size: 2.2rem; font-weight: 700; color: #0a1f44; margin: 0 0 15px; }
.bnt-product-excerpt { font-size: 1.1rem; color: #333; margin-bottom: 20px; line-height: 1.6; }
.bnt-product-scenario { font-size: 1rem; color: #0a1f44; margin-bottom: 25px; }
.bnt-product-scenario strong { font-weight: 600; }
.bnt-product-actions { display: flex; flex-wrap: wrap; gap: 15px; }

/* 产品页按钮 */
.bnt-btn { display: inline-block; padding: 10px 25px; font-size: 1rem; font-weight: 600; text-decoration: none; border-radius: 4px; transition: background 0.2s, transform 0.1s; }
.bnt-btn-quote { color: #0a1f44; border: 1px solid #0a1f44; }
.bnt-btn-quote:hover { background: #0a1f44; color: #fff; }
.bnt-btn-whatsapp { background: #0a1f44; color: #fff; }
.bnt-btn-whatsapp:hover { background: #fff; color: #0a1f44; border: 1px solid #0a1f44; }

/* 两栏详情区 */
.bnt-details-grid { display: flex; flex-wrap: wrap; gap: 40px; margin-bottom: 80px; }
.bnt-details-sidebar { max-width: 350px; }
.bnt-placeholder-img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.bnt-details-tabs { flex: 1; min-width: 300px; }

/* 选项卡导航 */
.bnt-tabs-nav {
    list-style: none; margin: 0 0 20px; padding: 0; display: flex; border-bottom: 2px solid #ddd;
}
.bnt-tabs-nav li {
    padding: 12px 24px; cursor: pointer; font-size: 1.2rem; font-weight: 600; color: #888; transition: color 0.2s, border-color 0.2s; border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.bnt-tabs-nav li:hover { color: #0a1f44; }
.bnt-tabs-nav li.bnt-tab-active { color: #0a1f44; border-bottom-color: #0a1f44; }

/* 选项卡面板 */
.bnt-tab-panel { display: none; padding: 20px 0 0; }
.bnt-tab-panel.bnt-tab-active { display: block; }

/* Key Specifications */
.bnt-key-specs { background: #f5f5f5; padding: 20px 25px; border-radius: 6px; margin-bottom: 25px; }
.bnt-key-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px 30px; }
.bnt-key-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0; }
.bnt-key-label { font-weight: 600; color: #0a1f44; font-size: 0.95rem; margin-bottom: 4px; }
.bnt-key-value { font-size: 0.9rem; color: #333; }

/* Product Details 内容 */
.bnt-details-content { font-size: 1rem; line-height: 1.8; color: #333; }
.bnt-details-content h3 { font-size: 1.4rem; margin-top: 1.5em; font-weight: 600; color: #0a1f44; }
.bnt-details-content h3::before { content: ""; display: inline-block; width: 10px; height: 10px; background: #f39c12; transform: rotate(45deg); border-radius: 1px; margin-right: 12px; vertical-align: middle; position: relative; top: -1px; }

/* 参数表格 */
.bnt-params-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #ffffff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.bnt-params-table td { padding: 12px 18px; border-bottom: 1px solid #e0e4ea; font-size: 0.95rem; background-color: transparent; }
.bnt-params-table td:first-child { font-weight: 600; color: #0a1f44; width: 28%; }
.bnt-params-table td:nth-child(2) { width: 42%; }
.bnt-params-table td:nth-child(3) { width: 30%; color: #666; font-style: italic; }
.bnt-params-table tr:first-child td { background-color: #a5a5a5; color: #ffffff; font-weight: 700; }
.bnt-params-table tr:nth-child(even) td { background-color: #ffffff; }
.bnt-params-table tr:nth-child(odd):not(:first-child) td { background-color: #f5f7fa; }
.bnt-params-table tr:last-child td:first-child { border-bottom-left-radius: 6px; }
.bnt-params-table tr:last-child td:last-child { border-bottom-right-radius: 6px; }
.bnt-params-table tr:last-child td { border-bottom: none; }

/* FAQs */
.bnt-faq-item { margin-bottom: 25px; }
.bnt-faq-q { font-size: 1.1rem; font-weight: 600; color: #0a1f44; margin: 0 0 8px; position: relative; padding-left: 28px; }
.bnt-faq-q::before { content: "Q:"; position: absolute; left: 0; color: #0a1f44; font-weight: 700; }
.bnt-faq-a { font-size: 1rem; color: #333; line-height: 1.6; }
.bnt-faq-a::before { content: "A:"; margin-right: 5px; font-weight: 600; color: #555; }

/* ============================================================
   三、文章单页主区域
   ============================================================ */
.bnt-post-main-wrap { width: 100% !important; background: #ffffff !important; padding: 80px 0; box-sizing: border-box; }

.bnt-post-title { font-size: 2.2rem; font-weight: 700; color: #0a1f44; margin: 0 0 20px; }
.bnt-post-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; color: #666; margin-bottom: 5px; }
.bnt-post-share { display: flex; gap: 12px; }
.bnt-share-icon { color: #0a1f44; transition: color 0.2s; }
.bnt-share-icon:hover { color: #f39c12; }
.bnt-post-divider { border: 0; border-top: 2px solid #eaeaea; margin: 0 0 25px 0; }

/* You May Also Like */
.bnt-related-posts { background: #f5f5f5; padding: 20px; border-radius: 6px; margin-bottom: 30px; }
.bnt-related-posts h3 { font-size: 1.3rem; font-weight: 600; color: #0a1f44; margin: 0 0 15px 0; }
.bnt-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.bnt-related-item { border-radius: 6px; overflow: hidden; transition: transform 0.2s; }
.bnt-related-item:hover { transform: translateY(-3px); }
.bnt-related-link { display: flex; align-items: center; gap: 12px; padding: 8px 12px; text-decoration: none; color: #0a1f44; }
.bnt-related-title { font-size: 0.95rem; font-weight: 500; line-height: 1.3; background: transparent !important; }

/* 文章内容 */
.bnt-post-content { font-size: 1rem; line-height: 1.8; color: #333; margin-bottom: 40px; }
.bnt-post-content h3 { font-size: 1.4rem; margin-top: 1.5em; font-weight: 600; color: #0a1f44; }
.bnt-post-content h3::before { content: ""; display: inline-block; width: 10px; height: 10px; background: #f39c12; border-radius: 1px; margin-right: 12px; vertical-align: middle; position: relative; top: -1px; }
.bnt-post-content h2, .bnt-post-content h4 { color: #0a1f44; margin-top: 1.5em; }
.bnt-post-content ul, .bnt-post-content ol { padding-left: 1.5em; }
.bnt-post-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.bnt-post-content table th, .bnt-post-content table td { border: 1px solid #ddd; padding: 8px 12px; }

/* 文章底部联系表单 */
.bnt-contact-form { background: #f5f5f5; padding: 25px 30px; border-radius: 8px; margin-top: 10px; }
.bnt-contact-form h3 { margin-top: 0; color: #0a1f44; font-size: 1.3rem; font-weight: 600; margin-bottom: 20px; }
.bnt-form .bnt-form-row { display: flex; gap: 20px; margin-bottom: 15px; flex-wrap: wrap; }
.bnt-form-group { flex: 1; min-width: 200px; }
.bnt-form-group input, .bnt-form-group textarea { width: 100%; padding: 10px 14px; border-radius: 4px; font-size: 1rem; font-family: inherit; background: #fff !important; box-sizing: border-box; transition: border-color 0.2s; }
.bnt-form-group input:focus, .bnt-form-group textarea:focus { border-color: #0a1f44 !important; outline: none; }
.bnt-form-group textarea { resize: vertical; }
.bnt-form-submit { justify-content: flex-end; }
.bnt-form-submit .bnt-btn { color: #fff; background: #0a1f44; padding: 12px 36px; font-size: 1rem; border: none; cursor: pointer; }
.bnt-form-submit .bnt-btn:hover { background: #1a3a6a; }

/* 两栏布局 */
.bnt-post-layout { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 40px; width: 100%; }
.bnt-post-layout .bnt-sidebar { flex: 0 0 350px; max-width: 350px; width: 350px; position: sticky; align-self: flex-start; }
.bnt-post-layout .bnt-post-info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }

/* ============================================================
   四、响应式
   ============================================================ */
@media (max-width: 992px) {
    .bnt-product-grid { flex-direction: column; }
    .bnt-product-gallery, .bnt-product-info { flex: 1 1 100%; min-width: 0; }

    .bnt-details-grid { flex-direction: column; }
    .bnt-details-tabs { order: 1; width: 100%; flex: 1 1 100%; }
    .bnt-details-grid .bnt-sidebar { order: 2; width: 100%; max-width: 100%; margin-top: 40px; }
    .bnt-details-grid .bnt-details-sidebar { max-width: 350px; margin: 0 auto 30px; text-align: center; }
    .bnt-details-grid .bnt-sidebar-block { max-width: 500px; margin-left: auto; margin-right: auto; }
    .bnt-placeholder-img { max-width: 350px; }
    .bnt-key-grid { grid-template-columns: repeat(2, 1fr); }

    .bnt-post-layout { flex-direction: column; }
    .bnt-post-layout .bnt-post-info { order: 1; flex: 1 1 100%; width: 100%; }
    .bnt-post-layout .bnt-sidebar { order: 2; flex: 1 1 100%; max-width: 100%; width: 100%; position: static; margin-top: 40px; }
    .bnt-post-layout .bnt-sidebar .bnt-details-sidebar { max-width: 350px; margin: 0 auto 30px; }
    .bnt-post-layout .bnt-sidebar-block { max-width: 500px; margin-left: auto; margin-right: auto; }
    .bnt-related-grid { grid-template-columns: 1fr; }
    .bnt-form .bnt-form-row { flex-direction: column; gap: 10px; }
    .bnt-form-submit { justify-content: center; }
}

@media (max-width: 768px) {
    .bnt-product-grid { padding: 30px 15px; gap: 24px; }
    .product-swiper { border-radius: 6px; }
    .bnt-product-title { font-size: 1.8rem; }
    .bnt-tabs-nav li { padding: 10px 14px; font-size: 1rem; }
    .bnt-btn { padding: 10px 20px; font-size: 0.95rem; }
    .bnt-key-grid { grid-template-columns: 1fr; gap: 10px; }
    .product-thumbs { height: 60px; }
    .product-thumbs .swiper-slide { width: 60px; height: 60px; margin-right: 8px; }

    .bnt-post-title { font-size: 1.8rem; }
    .bnt-post-meta { flex-direction: column; align-items: flex-start; gap: 5px; }
    .bnt-contact-form { padding: 20px 15px; }
}