/* ============================================================
   bnt-secondary-category.css
   二级产品分类页样式（同时作为 primary-category 的基础样式）
   ============================================================ */

.bnt-category-page {
    width: 100%;
    max-width: 100%;
}

/* ============================================================
   1. 头图区块
   ============================================================ */
.bnt-hero {
    position: relative;
    width: 100%;
    min-height: 90vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}
.bnt-hero-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
}
.bnt-hero-text {
    width: 45%;
    text-align: left;
}
.bnt-hero-inner h1 {
    color: #fff;
    font-size: 4.5rem;
    font-weight: 700;
    margin: 0 0 20px;
}
.bnt-hero-text .bnt-hero-subtitle {
    font-size: 1.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin: 8px 0 18px;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
.bnt-hero-inner p {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
.bnt-hero-inner .bnt-btn {
    display: inline-block;
    background: none;
    border: none;
    padding: 10px 0;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.bnt-hero-inner .bnt-btn::after {
    content: ">";
    margin-left: 8px;
    transition: transform 0.2s ease, margin-left 0.2s ease;
    display: inline-block;
}
.bnt-hero-inner .bnt-btn:hover::after {
    transform: translateX(4px);
    margin-left: 12px;
}
.bnt-hero-inner .bnt-btn:hover,
.bnt-hero-inner .bnt-btn:focus,
.bnt-hero-inner .bnt-btn:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff;
    text-decoration: none;
}

/* ============================================================
   2. Core Tech
   ============================================================ */
.bnt-core-tech { padding: 80px 0; background: #ffffff; }
.bnt-core-tech h2 { color: #5a5a5a; text-align: left; font-size: 3.5rem; font-weight: 700; margin-bottom: 40px; }
.bnt-core-item { display: flex; flex-direction: row; align-items: center; gap: 40px; margin-bottom: 60px; }
.bnt-core-item:last-child { margin-bottom: 0; }
.bnt-core-img { order: 2; flex: 0 0 50%; max-width: 50%; }
.bnt-core-content { order: 1; flex: 1 1 50%; max-width: 50%; }

/* 修复 Core Tech 链接样式 */
.bnt-core-img a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.bnt-core-img img { width: 100%; height: auto; display: block; transition: opacity 0.3s; }
.bnt-core-img a:hover img { opacity: 0.9; }
.bnt-core-content h3 { font-size: 1.8rem; font-weight: 600; color: #0a1f44; margin: 0 0 15px; }
.bnt-core-content h3 a { color: inherit; text-decoration: none; transition: color 0.2s; }
.bnt-core-content h3 a:hover { color: #1a3a6a; }
.bnt-core-content p { font-size: 1rem; color: #555; line-height: 1.6; margin-bottom: 20px; }
.bnt-core-params-title { font-size: 1.1rem; font-weight: 600; color: #0a1f44; margin: 15px 0 10px; }
.bnt-core-params { width: 100%; border-collapse: collapse; margin-bottom: 25px; }
.bnt-core-params td { padding: 8px 12px; border-bottom: 1px solid #e0e0e0; font-size: 0.95rem; }
.bnt-core-params td:first-child { font-weight: 600; color: #0a1f44; width: 40%; }

/* 修复按钮样式 */
.bnt-core-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.bnt-core-actions .bnt-btn { 
    display: inline-block; 
    padding: 12px 28px; 
    font-size: 0.95rem; 
    font-weight: 600; 
    text-decoration: none; 
    border-radius: 4px; 
    transition: all 0.2s; 
    box-sizing: border-box; 
}

/* Quote 按钮（带边框） */
.bnt-core-actions .bnt-btn-quote { 
    color: #0a1f44; 
    border: 1px solid #0a1f44;
    background: transparent;
}
.bnt-core-actions .bnt-btn-quote:hover { 
    background: #0a1f44; 
    color: #ffffff; /* 修复：悬停时文字变白，解决冲突 */
    border-color: #0a1f44;
}

/* Link 按钮（无背景，带箭头） */
.bnt-core-actions .bnt-btn:not(.bnt-btn-quote) { 
    background: transparent !important; 
    border: none !important; 
    padding: 12px 0; 
    color: #0a1f44; 
    border-radius: 0; 
}
.bnt-core-actions .bnt-btn:not(.bnt-btn-quote)::after { 
    content: ">"; 
    margin-left: 8px; 
    transition: transform 0.2s ease, margin-left 0.2s ease; 
    display: inline-block; 
}
.bnt-core-actions .bnt-btn:not(.bnt-btn-quote):hover { 
    color: #1a3a6a; 
    text-decoration: none; 
}
.bnt-core-actions .bnt-btn:not(.bnt-btn-quote):hover::after { 
    transform: translateX(4px); 
    margin-left: 12px; 
}

/* ============================================================
   3. 全屏背景文案区块（Application Scenarios）
   ============================================================ */
.bnt-full-bg {
    display: block !important;
    padding: 80px 20px !important;
    text-align: left !important;
}
.bnt-full-bg .bnt-section-title { color: #ffffff !important; }
.bnt-full-bg .bnt-section-title::before { color: rgba(255,255,255,0.3) !important; }
.bnt-full-intro { color: #ffffff; font-size: 1.2rem; line-height: 1.6; margin-bottom: 40px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.bnt-full-items-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 30px; }
.bnt-full-item { background: rgba(10, 31, 68, 0.55); padding: 20px; border-radius: 8px; }
.bnt-full-item h3 { color: #ffffff; font-size: 1.3rem; font-weight: 600; margin: 0 0 10px; }
.bnt-full-item p { color: #f0f0f0; font-size: 0.95rem; line-height: 1.5; margin: 0; }

/* ============================================================
   4. 产品版块（Tab 切换 + 网格）
   ============================================================ */
.bnt-products-section { padding: 80px 0; }
.bnt-product-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.bnt-tab-btn { padding: 10px 24px; background: #ffffff; border: 1px solid #d0d5dd; border-radius: 4px; cursor: pointer; font-size: 1rem; font-weight: 500; color: #0a1f44; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.bnt-tab-btn:hover, .bnt-tab-btn.active { background: #0a1f44; color: #ffffff; border-color: #0a1f44; }
.bnt-product-panels { position: relative; }
.bnt-panel { display: none; }
.bnt-panel.active { display: block; width: 100%; }

.bnt-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 20px 0 0; }
.bnt-product-card { background: #ffffff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.bnt-product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.12); }
.bnt-product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.bnt-product-card h4 { font-size: 1.2rem; font-weight: 600; color: #0a1f44; margin: 15px 15px 8px; }
.bnt-product-card p { font-size: 0.95rem; color: #555; line-height: 1.5; margin: 0 15px 15px; }

.bnt-product-card img,
.bnt-product-card h4 a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.bnt-product-card h4 a:hover {
    color: #1a3a6a;
}

.bnt-product-card .bnt-btn { display: inline-block; padding: 10px 0; margin: 0 15px 20px auto; color: #0a1f44; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: color 0.2s ease; align-self: flex-end; }
.bnt-product-card .bnt-btn::after { content: ">"; margin-left: 8px; transition: transform 0.2s ease, margin-left 0.2s ease; display: inline-block; }
.bnt-product-card .bnt-btn:hover { color: #1a3a6a; text-decoration: none; background: transparent !important; border: none !important; }
.bnt-product-card .bnt-btn:hover::after { transform: translateX(4px); margin-left: 12px; }

/* ============================================================
   5. Case Studies
   ============================================================ */
.bnt-case-studies { background-image: url('/wp-content/uploads/2026/09/Case-Studies-bg.jpg'); padding: 80px 0; }
.bnt-case-studies h2 { color: #fff; text-align: left; font-size: 3.5rem; font-weight: 700; margin-bottom: 40px; }
.bnt-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.bnt-case-item { background: #ffffff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 40px; }
.bnt-case-date { font-size: 0.85rem; color: #999; margin-bottom: 30px; }
.bnt-case-item h3 { font-size: 1.3rem; font-weight: 600; color: #0a1f44; margin: 0 0 30px; }
.bnt-case-item p { font-size: 0.95rem; color: #555; line-height: 1.5; margin-bottom: 30px; }
.bnt-case-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* ============================================================
   6. Recommended Information
   ============================================================ */
.bnt-recommended { padding: 80px 0; }
.bnt-recommended .bnt-container { padding: 0; }
.bnt-recommended h2 { color: #5a5a5a; text-align: left; font-size: 3.5rem; font-weight: 700; margin-bottom: 40px; }
.bnt-recommended-grid { display: flex; gap: 50px; align-items: flex-start; }
.bnt-rec-featured { flex: 1 1 40%; max-width: 40%; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 40px; margin-bottom: 0; }
.bnt-rec-featured .bnt-rec-date { font-size: 0.85rem; color: #999; margin-bottom: 30px; }
.bnt-rec-featured h3 { font-size: 1.5rem; font-weight: 500; color: #0a1f44; margin: 0 0 30px; }
.bnt-rec-featured p { font-size: 1rem; color: #555; line-height: 1.6; margin-bottom: 30px; }
.bnt-rec-featured img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

.bnt-rec-list { flex: 1 1 60%; display: flex; flex-direction: column; gap: 50px; }
.bnt-rec-item { display: flex; gap: 30px; align-items: center; background: #ffffff; border-radius: 6px; padding: 15px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.bnt-rec-text { flex: 1; }
.bnt-rec-text h3 { font-size: 1.5rem; font-weight: 500; color: #0a1f44; margin: 0 0 20px; }
.bnt-rec-text p { font-size: 1rem; color: #555; line-height: 1.6; margin-bottom: 15px; }
.bnt-rec-thumb { flex: 0 0 220px; width: 220px; height: 165px; border-radius: 4px; overflow: hidden; }
.bnt-rec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bnt-case-link, .bnt-rec-link { display: block; text-decoration: none; color: inherit; }
.bnt-case-link:hover, .bnt-rec-link:hover { text-decoration: none; color: inherit; }

/* ============================================================
   7. Section 标题装饰（全局）
   ============================================================ */
.bnt-section-title { position: relative; display: inline-block; z-index: 1; color: #0a1f44; font-size: 3.5rem; font-weight: 700; margin-bottom: 40px; text-align: left; }
.bnt-section-title::before {
    content: attr(data-title);
    position: absolute; top: 50%; left: 0; transform: translateY(-70%) translateX(0);
    font-size: 5.5rem; font-weight: 700; color: rgba(118,118,118,0.1); z-index: -1; white-space: nowrap; pointer-events: none; line-height: 1; opacity: 0.8;
}

/* ============================================================
   8. 响应式
   ============================================================ */
@media (max-width: 992px) {
    .bnt-hero-inner { width: 80%; }
    .bnt-hero-text { width: 80%; }
    .bnt-hero-text .bnt-hero-subtitle { font-size: 1.35rem; }
    .bnt-hero-inner h1 { font-size: 2.5rem; }

    .bnt-core-item { flex-direction: column; }
    .bnt-core-img, .bnt-core-content { order: 0; flex: 1 1 100%; max-width: 100%; }

    .bnt-full-items-grid { grid-template-columns: repeat(2, 1fr); }
    .bnt-product-grid { grid-template-columns: repeat(2, 1fr); }
    .bnt-case-grid { grid-template-columns: 1fr 1fr; }

    .bnt-recommended-grid { flex-direction: column; }
    .bnt-rec-featured, .bnt-rec-list { flex: 1 1 100%; max-width: 100%; }
}

@media (max-width: 768px) {
    .bnt-hero { min-height: 70vh; }
    .bnt-hero-inner { width: 100%; padding: 0 15px; }
    .bnt-hero-text { width: 100%; }
    .bnt-hero-text .bnt-hero-subtitle { font-size: 1.15rem; margin: 6px 0 14px; }
    .bnt-hero-inner h1 { font-size: 2rem; }

    .bnt-section-title::before { font-size: 3rem; }
    .bnt-full-items-grid, .bnt-product-grid, .bnt-case-grid { grid-template-columns: 1fr; }

    .bnt-tab-btn { padding: 8px 16px; font-size: 0.9rem; }
    .bnt-rec-item { flex-direction: column; align-items: flex-start; }
    .bnt-rec-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; flex: 0 0 auto; }
}