/* ================================================================
   JSF Magnetics — 全站品牌主题样式
   品牌色:  工业科技蓝 #2B5A9B | 品牌活力红 #D0121B
   文字色:  磁芯深灰   #333333 | 辅助灰蓝  #2C3E50
   背景色:  科技浅灰   #F4F6F9 | 纯白       #FFFFFF
   字体:    Inter (英文) / system-ui fallback
================================================================ */

/* ── Google Fonts (Inter) ──────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS 变量 ─────────────────────────────────────────────── */
:root {
    --jsf-blue:        #2B5A9B;
    --jsf-blue-dark:   #1D4E89;
    --jsf-blue-light:  #EBF2FB;
    --jsf-red:         #D0121B;
    --jsf-red-dark:    #A50E16;
    --jsf-dark:        #333333;
    --jsf-dark-alt:    #2C3E50;
    --jsf-grey-bg:     #F4F6F9;
    --jsf-grey-border: #DEE5EF;
    --jsf-white:       #FFFFFF;
    --jsf-text-muted:  #6B7A8D;

    --jsf-shadow-sm:   0 2px 8px rgba(43,90,155,.10);
    --jsf-shadow-md:   0 4px 20px rgba(43,90,155,.14);
    --jsf-shadow-lg:   0 8px 40px rgba(43,90,155,.18);

    --jsf-radius:      8px;
    --jsf-radius-lg:   12px;
    --jsf-radius-xl:   16px;
    --jsf-transition:  0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════════════════════
   核心组件基础样式 (高优先级)
   ──────────────────────────────────────────────────────────── */

/* ── 材质型号徽章 (Grade Badge) ── */
.jsf-grade-badge {
    display: inline-flex;
    align-items: center;
    background: #ffffff !important;
    color: var(--jsf-blue) !important;
    border: 1px solid var(--jsf-grey-border) !important;
    border-radius: 8px !important;
    padding: 0.6rem 1rem !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    font-family: 'Inter', monospace !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(43, 90, 155, 0.05) !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin: 2px;
}

.jsf-grade-badge::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--jsf-blue) !important;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.jsf-grade-badge:hover {
    color: #ffffff !important;
    border-color: var(--jsf-blue) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 6px 15px rgba(43, 90, 155, 0.22) !important;
}

.jsf-grade-badge:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 标签徽章颜色映射 (Premium Version) */
.jsf-tag { 
    display: inline-flex; 
    align-items: center;
    padding: 0.35rem 0.85rem !important; 
    font-size: 11.5px !important; 
    font-weight: 700 !important;
    border-radius: 50px !important; 
    letter-spacing: 0.03em !important; 
    line-height: 1 !important; 
    text-transform: uppercase !important;
    border: 1px solid transparent !important;
    transition: all var(--jsf-transition) !important;
    cursor: default;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}

.jsf-tag-blue   { background: #EBF2FB !important; color: #1D4E89 !important; border-color: rgba(29, 78, 137, 0.12) !important; }
.jsf-tag-green  { background: #E8F8F0 !important; color: #1A7A45 !important; border-color: rgba(26, 122, 69, 0.12) !important; }
.jsf-tag-red    { background: #FEECEC !important; color: #A50E16 !important; border-color: rgba(165, 14, 22, 0.12) !important; }
.jsf-tag-orange { background: #FEF3E2 !important; color: #954F0A !important; border-color: rgba(149, 79, 10, 0.12) !important; }
.jsf-tag-purple { background: #F2EAFA !important; color: #6023A0 !important; border-color: rgba(96, 35, 160, 0.12) !important; }
.jsf-tag-teal   { background: #E2F6F6 !important; color: #0B6E6E !important; border-color: rgba(11, 110, 110, 0.12) !important; }
.jsf-tag-gray   { background: #F0F4F8 !important; color: #475569 !important; border-color: rgba(71, 85, 105, 0.12) !important; }
.jsf-tag-yellow { background: #FEF9E2 !important; color: #8A700A !important; border-color: rgba(138, 112, 10, 0.12) !important; }
.jsf-tag-pink   { background: #FDE8F3 !important; color: #9C1F68 !important; border-color: rgba(156, 31, 104, 0.12) !important; }

.jsf-tag:hover {
    filter: brightness(0.98) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08) !important;
}

/* ── 常用颜色工具类 ────────────────────────────────────────── */
.text-jsf-blue { color: var(--jsf-blue) !important; }
.text-jsf-blue-dark { color: var(--jsf-blue-dark) !important; }
.text-jsf-red { color: var(--jsf-red) !important; }
.bg-jsf-blue-light { background-color: var(--jsf-blue-light) !important; }
.bg-jsf-grey-bg { background-color: var(--jsf-grey-bg) !important; }

/* ── 全局重置 ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;          /* 提升基础字号至 Web 标准 16px */
    line-height: 1.65;        /* 提升正文的呼吸感 */
    color: var(--jsf-dark);
    background-color: var(--jsf-white);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main#main-content { flex: 1 0 auto; }

a { color: var(--jsf-blue); text-decoration: none; transition: color var(--jsf-transition); }
a:hover { color: var(--jsf-blue-dark); text-decoration: underline; text-underline-offset: 4px; }

/* ══════════════════════════════════════════════════════════════
   导航栏
══════════════════════════════════════════════════════════════ */
.jsf-navbar {
    background-color: var(--jsf-blue);
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    padding-top: .85rem;
    padding-bottom: .85rem;
}

/* Logo 品牌印章 */
.jsf-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--jsf-red);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .04em;
    border-radius: 6px;
    flex-shrink: 0;
}

.jsf-brand-text {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.jsf-brand-sub {
    font-size: 11px;
    color: rgba(255,255,255,.75);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.jsf-navbar .nav-link {
    color: rgba(255,255,255,.88) !important;
    font-size: 15.5px;        /* 放大导航字号 */
    font-weight: 500;
    padding: .5rem .85rem;
    border-radius: var(--jsf-radius);
    transition: background var(--jsf-transition), color var(--jsf-transition);
}

.jsf-navbar .nav-link:hover,
.jsf-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.15);
}

/* 全局按钮去下划线 */
.btn, .btn:hover, .btn:focus, .btn:active {
    text-decoration: none !important;
}

/* CTA 按钮 */
.jsf-btn-cta {
    background-color: var(--jsf-red);
    border: 2px solid var(--jsf-red);
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;          /* 放大按钮字体 */
    border-radius: var(--jsf-radius);
    transition: background var(--jsf-transition), transform var(--jsf-transition), box-shadow var(--jsf-transition);
}

.jsf-btn-cta:hover {
    background-color: var(--jsf-red-dark);
    border-color: var(--jsf-red-dark);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(208,18,27,.35);
}

/* 下拉菜单 */
.jsf-dropdown {
    border: 1px solid var(--jsf-grey-border);
    box-shadow: var(--jsf-shadow-md);
    border-radius: var(--jsf-radius);
    padding: .5rem;
    margin-top: .25rem;
}

.jsf-dropdown .dropdown-item {
    border-radius: 6px;
    font-size: 14px;
    padding: .45rem .85rem;
    color: var(--jsf-dark-alt);
    transition: background var(--jsf-transition);
}

.jsf-dropdown .dropdown-item:hover {
    background: var(--jsf-blue-light);
    color: var(--jsf-blue);
}

/* ══════════════════════════════════════════════════════════════
   页脚
══════════════════════════════════════════════════════════════ */
.jsf-footer {
    background-color: var(--jsf-dark-alt);
    color: rgba(255,255,255,.8);
}

.jsf-footer-brand { display: flex; align-items: center; }
.jsf-footer-brand .jsf-brand-mark { font-size: 12px; width: 34px; height: 34px; }

.jsf-footer-heading {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .85rem;
}

.jsf-footer-desc { font-size: 13.5px; color: rgba(255,255,255,.65); line-height: 1.7; }

.jsf-footer-links li { margin-bottom: .45rem; }
.jsf-footer-links a,
.jsf-footer-link {
    color: rgba(255,255,255,.65);
    font-size: 13.5px;
    transition: color var(--jsf-transition);
}
.jsf-footer-links a:hover,
.jsf-footer-link:hover { color: #fff; }

.jsf-footer-divider { border-color: rgba(255,255,255,.12); }
.jsf-footer-copy { font-size: 12.5px; color: rgba(255,255,255,.45); }

/* ══════════════════════════════════════════════════════════════
   通用工具类
══════════════════════════════════════════════════════════════ */

/* 区块背景 */

/* 区块背景 */
.bg-jsf-light { background-color: var(--jsf-grey-bg); }

/* ── 通用卡片 (Generic Card) ── */
.jsf-card {
    border: 1px solid var(--jsf-grey-border);
    border-radius: var(--jsf-radius-lg);
    background: var(--jsf-white);
    box-shadow: var(--jsf-shadow-sm);
    transition: box-shadow var(--jsf-transition), transform var(--jsf-transition);
}

.jsf-card:hover {
    box-shadow: var(--jsf-shadow-md);
    transform: translateY(-4px);
}

/* ── 交互增强 ── */
.hover-up { transition: transform var(--jsf-transition), box-shadow var(--jsf-transition); }
.hover-up:hover { transform: translateY(-5px); box-shadow: var(--jsf-shadow-lg); }

.hover-glow:hover { box-shadow: 0 0 20px rgba(43,90,155,0.25); }

/* ── 产品展示卡片 (Product Card) ── */
.jsf-product-card {
    background: var(--jsf-white);
    border: 1px solid var(--jsf-grey-border);
    border-radius: var(--jsf-radius-lg);
    box-shadow: var(--jsf-shadow-sm);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s ease, 
                border-color 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.jsf-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--jsf-shadow-lg);
    border-color: rgba(43,90,155,0.25);
}

.jsf-product-card .card-header {
    background: linear-gradient(135deg, rgba(43,90,155,0.03) 0%, rgba(43,90,155,0.08) 100%);
    border-bottom: 1px solid rgba(43,90,155,0.08);
    padding: 1.25rem 1.5rem;
}

.jsf-product-card .card-title {
    color: var(--jsf-blue-dark);
    font-weight: 800;
    font-family: 'Inter', monospace; /* Use monospace for material grades */
    letter-spacing: -0.01em;
    margin: 0;
}

.jsf-product-card .card-category-badge {
    background: var(--jsf-blue-light);
    color: var(--jsf-blue);
    border: 1px solid rgba(43, 90, 155, 0.1);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    display: inline-flex;
    align-items: center;
}

.jsf-product-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.jsf-product-card .card-description {
    font-size: 14px;
    color: var(--jsf-text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.8em;
}

.jsf-product-card .param-list {
    margin-bottom: 1.25rem;
    padding: 0;
    list-style: none;
}

.jsf-product-card .param-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--jsf-grey-border);
    font-size: 13px;
}

.jsf-product-card .param-item:last-child {
    border-bottom: none;
}

.jsf-product-card .param-label {
    color: var(--jsf-text-muted);
}

.jsf-product-card .param-value {
    color: var(--jsf-dark);
    font-weight: 600;
}

.jsf-product-card .card-footer-actions {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--jsf-grey-bg);
    display: flex;
    gap: 0.75rem;
}

.jsf-product-card .btn-quick-quote {
    flex: 0 0 45%;
    border: 1px solid var(--jsf-grey-border);
    color: var(--jsf-text-muted);
    background: transparent;
    font-weight: 600;
    font-size: 13px;
}

.jsf-product-card .btn-quick-quote:hover {
    border-color: var(--jsf-blue);
    color: var(--jsf-blue);
    background: var(--jsf-blue-light);
}

/* 参数表格 */

/* 参数表格 */
.jsf-param-table {
    font-size: 13.5px;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.jsf-param-table thead th {
    background: var(--jsf-blue);
    color: #fff;
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .7rem 1rem;
    white-space: nowrap;
}

.jsf-param-table thead th:first-child { border-radius: var(--jsf-radius) 0 0 0; }
.jsf-param-table thead th:last-child  { border-radius: 0 var(--jsf-radius) 0 0; }

.jsf-param-table tbody td {
    padding: .6rem 1rem;
    border-bottom: 1px solid var(--jsf-grey-border);
    vertical-align: middle;
}

.jsf-param-table tbody tr:last-child td { border-bottom: none; }
.jsf-param-table tbody tr:nth-child(even) td { background-color: var(--jsf-grey-bg); }
.jsf-param-table tbody tr:hover td { background-color: var(--jsf-blue-light); }

/* 章节标题 */
.jsf-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--jsf-blue);
    text-transform: uppercase;
    letter-spacing: .07em;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.jsf-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background: var(--jsf-red);
    border-radius: 2px;
}

/* 响应式辅助 */
@media (max-width: 991.98px) {
    .jsf-navbar .nav-link { padding: .55rem 1rem; border-radius: 0; }
    .jsf-btn-cta { width: 100%; text-align: center; margin-top: .5rem; }
}


/* =========================================
   Material Detail Page Specific Styles
========================================= */
/* ── 详情页专用样式 ─────────────────────────────────────── */
.jsf-hero {
    background: linear-gradient(135deg, var(--jsf-blue) 0%, var(--jsf-blue-dark) 100%);
    color: #fff;
    padding: 2.5rem 0 2rem;
}

.jsf-breadcrumb .breadcrumb-item { font-size: 13px; }
.jsf-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,.7); }
.jsf-breadcrumb .breadcrumb-item a:hover { color: #fff; }
.jsf-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.jsf-breadcrumb .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.45); }

.jsf-material-name {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.15;
}

.jsf-hero-category {
    font-size: 13.5px;
    color: rgba(255,255,255,.72);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.jsf-hero-application {
    font-size: 14.5px;
    color: rgba(255,255,255,.85);
    line-height: 1.6;
    max-width: 640px;
}

/* 侧边栏粘性问询卡 */
.jsf-sticky-card {
    position: sticky;
    top: 80px;
}

.jsf-inquiry-card {
    border: 2px solid var(--jsf-blue);
    border-radius: var(--jsf-radius-lg);
    overflow: hidden;
}

.jsf-inquiry-card .card-header {
    background: var(--jsf-blue);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-radius: 0;
    padding: .9rem 1.25rem;
}

.jsf-inquiry-card .card-body { padding: 1.25rem; }

.jsf-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem 0;
    border-bottom: 1px dashed var(--jsf-grey-border);
    font-size: 13.5px;
}

.jsf-spec-item:last-child { border-bottom: none; }
.jsf-spec-label { color: var(--jsf-text-muted); font-weight: 500; }
.jsf-spec-value { font-weight: 600; color: var(--jsf-dark); text-align: right; max-width: 60%; }

/* 竞品对照表 */
.jsf-competitor-table th {
    background: var(--jsf-dark-alt);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: .65rem 1rem;
}

.jsf-competitor-table tbody td { padding: .6rem 1rem; font-size: 13.5px; }
.jsf-competitor-table tbody tr:hover td { background: var(--jsf-blue-light); }

/* 相似程度徽章 */
.badge-equivalent  { background:#1A7A45; color:#fff; }


/* =========================================
   Material Detail Page Specific Styles
========================================= */
/* ── 详情页专用样式 ─────────────────────────────────────── */
.jsf-hero {
    background: linear-gradient(135deg, var(--jsf-blue) 0%, var(--jsf-blue-dark) 100%);
    color: #fff;
    padding: 2.5rem 0 2rem;
}

.jsf-breadcrumb .breadcrumb-item { font-size: 13px; }
.jsf-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,.7); }
.jsf-breadcrumb .breadcrumb-item a:hover { color: #fff; }
.jsf-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.jsf-breadcrumb .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.45); }

.jsf-material-name {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.15;
}

.jsf-hero-category {
    font-size: 13.5px;
    color: rgba(255,255,255,.72);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.jsf-hero-application {
    font-size: 14.5px;
    color: rgba(255,255,255,.85);
    line-height: 1.6;
    max-width: 640px;
}

/* 侧边栏粘性问询卡 */
.jsf-sticky-card {
    position: sticky;
    top: 80px;
}

.jsf-inquiry-card {
    border: 2px solid var(--jsf-blue);
    border-radius: var(--jsf-radius-lg);
    overflow: hidden;
}

.jsf-inquiry-card .card-header {
    background: var(--jsf-blue);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-radius: 0;
    padding: .9rem 1.25rem;
}

.jsf-inquiry-card .card-body { padding: 1.25rem; }

.jsf-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem 0;
    border-bottom: 1px dashed var(--jsf-grey-border);
    font-size: 13.5px;
}

.jsf-spec-item:last-child { border-bottom: none; }
.jsf-spec-label { color: var(--jsf-text-muted); font-weight: 500; }
.jsf-spec-value { font-weight: 600; color: var(--jsf-dark); text-align: right; max-width: 60%; }

/* 竞品对照表 */
.jsf-competitor-table th {
    background: var(--jsf-dark-alt);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: .65rem 1rem;
}

.jsf-competitor-table tbody td { padding: .6rem 1rem; font-size: 13.5px; }
.jsf-competitor-table tbody tr:hover td { background: var(--jsf-blue-light); }

/* 相似程度徽章 */
.badge-equivalent  { background:#1A7A45; color:#fff; }
.badge-similar     { background:#1D4E89; color:#fff; }
.badge-replacement { background:#0B6E6E; color:#fff; }
.badge-reference   { background:#555555; color:#fff; }

/* 区块卡片 */
.jsf-detail-section {
    background: #fff;
    border: 1px solid var(--jsf-grey-border);
    border-radius: var(--jsf-radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.jsf-detail-section .jsf-section-header {
    background: var(--jsf-grey-bg);
    border-bottom: 1px solid var(--jsf-grey-border);
    padding: .85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.jsf-section-icon {
    width: 28px;
    height: 28px;
    background: var(--jsf-blue);
    color: #fff;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.jsf-section-h {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--jsf-blue);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 0;
}

/* 空状态 */
.jsf-empty-state {
    text-align: center;
    padding: 2.5rem;
    color: var(--jsf-text-muted);
    font-size: 15px;
}

/* 富文本描述区 */
.jsf-description-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--jsf-dark-alt);
    padding: 1.5rem;
}

.jsf-description-content h2,
.jsf-description-content h3,
.jsf-description-content h4 {
    color: var(--jsf-blue);
    font-weight: 700;
    margin-top: 1.25rem;
}

.jsf-description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 14.5px;
}

.jsf-description-content table th,
.jsf-description-content table td {
    border: 1px solid var(--jsf-grey-border);
    padding: .65rem .85rem;
}

.jsf-description-content table th {
    background: var(--jsf-grey-bg);
    font-weight: 600;
}

/* =========================================
   Styles Extracted from news_detail.html
========================================= */

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}
.article-content p {
    margin-bottom: 1rem;
}

/* =========================================
   Styles Extracted from inquiry_form.html
========================================= */

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.form-control.is-invalid {
    border-color: #dc3545;
}

/* =========================================
   Styles Extracted from page_detail.html
========================================= */

.page-content {
    line-height: 1.8;
    font-size: 1.05rem;
}
.page-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 0.375rem;
}
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}
.page-content p {
    margin-bottom: 1.2rem;
}
.page-content ul,
.page-content ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}
.page-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
}
.page-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}
.page-content table th,
.page-content table td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    text-align: left;
}
.page-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}


/* ================================================================
   Migrated from base.html
================================================================ */
/* ── 全局搜索弹层 ── */
        #globalSearchOverlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(10, 25, 47, 0.85);
            z-index: 2000;
            align-items: flex-start;
            justify-content: center;
            padding-top: 80px;
            backdrop-filter: blur(4px);
        }
        #globalSearchOverlay.active { display: flex; }
        #globalSearchOverlay .search-box {
            width: 90%;
            max-width: 700px;
            background: #fff;
            border-radius: 16px;
            padding: 24px 28px;
            box-shadow: 0 25px 60px rgba(0,0,0,0.35);
            animation: slideDown .25s ease;
        }
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-20px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        #globalSearchInput {
            font-size: 18px;
            border: none;
            border-bottom: 2px solid var(--jsf-grey-border, #dee2e6);
            border-radius: 0;
            padding: 10px 0;
            outline: none;
            width: 100%;
        }
        #globalSearchInput:focus { border-bottom-color: var(--jsf-blue, #1d4e89); }

        /* ── Mega Menu ── */
        .jsf-mega-menu {
            width: 580px;
            padding: 0;
            border: none;
            border-radius: 12px;
            box-shadow: 0 12px 36px rgba(0,0,0,0.14);
            left: 50%;
            transform: translateX(-50%);
        }
        .jsf-mega-left {
            background: #f8f9fa;
            border-radius: 12px 0 0 12px;
            padding: 20px 16px;
            border-right: 1px solid #e9ecef;
        }
        .jsf-mega-right {
            padding: 20px 16px;
            border-radius: 0 12px 12px 0;
        }
        .jsf-mega-label {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: #6c757d;
            margin-bottom: 8px;
        }
        .jsf-mega-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 10px;
            border-radius: 8px;
            text-decoration: none;
            color: #212529;
            font-size: 14px;
            font-weight: 500;
            transition: background .18s, color .18s;
            margin-bottom: 2px;
        }
        .jsf-mega-item:hover {
            background: var(--jsf-blue, #1d4e89);
            color: #fff;
        }
        .jsf-mega-item .icon {
            width: 30px;
            height: 30px;
            border-radius: 6px;
            background: rgba(29,78,137,.1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }
        .jsf-mega-item:hover .icon { background: rgba(255,255,255,.2); }
        .jsf-mega-item .sub { font-size: 11px; color: #6c757d; }
        .jsf-mega-item:hover .sub { color: rgba(255,255,255,.75); }

        /* 移动端 Mega Menu 手风琴模式 */
        @media (max-width: 991.98px) {
            .jsf-mega-menu {
                width: 100% !important;
                position: static !important;
                transform: none !important;
                box-shadow: none !important;
                border: 1px solid var(--jsf-grey-border, #dee2e6);
                margin-top: 10px;
                border-radius: 8px;
            }
            .jsf-mega-menu .row { flex-direction: column; }
            .jsf-mega-left { width: 100%; border-right: none; border-radius: 8px 8px 0 0; }
            .jsf-mega-right { width: 100%; border-top: 1px solid #e9ecef; border-radius: 0 0 8px 8px; }
        }

        /* ═══════════════════════════════════════
           移动端 CTA 按钮：紧凑化
           ═══════════════════════════════════════ */
        .mobile-cta-btn {
            font-size: 12px !important;
            padding: 5px 11px !important;
            line-height: 1.4;
            white-space: nowrap;
        }

        /* ── 搜索图标按钮 ── */
        .btn-search-icon {
            background: transparent;
            border: none;
            color: inherit;
            font-size: 18px;
            padding: 6px 6px;
            line-height: 1;
            cursor: pointer;
            opacity: .75;
            transition: opacity .2s;
        }
        .btn-search-icon:hover { opacity: 1; }
        .jsf-navbar .btn-search-icon { color: #fff; }

        /* ═══════════════════════════════════════
           超小屏（< 400px）：隐藏品牌副标题
           ═══════════════════════════════════════ */
        @media (max-width: 399px) {
            .jsf-brand-sub { display: none !important; }
            .mobile-cta-btn {
                font-size: 11px !important;
                padding: 4px 8px !important;
            }
        }

        /* ═══════════════════════════════════════
           流式字体（防止 Hero 标题在小屏溢出）
           ═══════════════════════════════════════ */
        .jsf-fluid-h1 {
            font-size: clamp(1.6rem, 6vw, 3.5rem);
            line-height: 1.15;
        }
        .jsf-fluid-lead {
            font-size: clamp(0.95rem, 2.5vw, 1.25rem);
        }

        /* ═══════════════════════════════════════
           Hero 搜索框：移动端按钮宽度限制
           ═══════════════════════════════════════ */
        .hero-search-btn {
            width: auto !important;
            min-width: 80px;
            max-width: 120px;
            flex-shrink: 0;
            white-space: nowrap;
            font-size: clamp(13px, 3vw, 16px) !important;
            padding: 0 16px !important;
        }
        .hero-search-input {
            min-width: 0;
            flex: 1 1 0;
            font-size: clamp(13px, 3vw, 16px);
        }

        /* ═══════════════════════════════════════
           防止 navbar 水平溢出
           ═══════════════════════════════════════ */
        .jsf-navbar .container {
            flex-wrap: nowrap;
        }
        .navbar-brand {
            flex-shrink: 0;
            min-width: 0;
        }

        /* ═══════════════════════════════════════
           产品列表页 Hero：移动端 padding 减小
           ═══════════════════════════════════════ */
        @media (max-width: 767px) {
            .jsf-hero { min-height: 340px !important; }
            .jsf-hero .display-3 { font-size: clamp(1.6rem, 7vw, 2.4rem) !important; }
            .jsf-hero .display-4 { font-size: clamp(1.4rem, 6vw, 2rem) !important; }
            .jsf-hero .lead      { font-size: 0.95rem !important; }
        }

        /* ═══════════════════════════════════════
           产能数字卡片：小屏横排两格
           ═══════════════════════════════════════ */
        @media (max-width: 575px) {
            .capability-number { font-size: 2rem !important; }
        }