/* ============ SWP theme custom additions ============ */
body { background: #fff; }
img { max-width: 100%; }
/* 隐藏原站询盘插件遗留的空占位图（src 为空会显示成破图） */
img.sk-contact-xinfeng, img[src=""] { display: none !important; }

/* ---- Photos 区：8 张证书横排轮播（与原站 Owl 一致，200x200 正方形）---- */
.trusted-partners-wrap .layout { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.trusted-partners-wrap .title { text-align: center; font-size: 26px; color: #0b3a6f; margin: 30px 0 24px; }
.trusted-partners-info { position: relative; overflow: hidden; padding: 0 40px; }
ul.truster-side.gallery { display: flex !important; gap: 18px; overflow-x: auto; scroll-behavior: smooth; list-style: none; margin: 0; padding: 0 0 8px; scrollbar-width: none; }
ul.truster-side.gallery::-webkit-scrollbar { display: none; }
ul.truster-side.gallery li.item-img { flex: 0 0 200px; width: 200px; height: 200px; border: 1px solid #e5e7e9; box-sizing: border-box; overflow: hidden; }
ul.truster-side.gallery li.item-img a { display: block; width: 100%; height: 100%; }
ul.truster-side.gallery li.item-img img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.trusted-partners-info::before, .trusted-partners-info::after {
    content: ''; position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px; height: 60px; cursor: pointer; z-index: 3;
    background-repeat: no-repeat; background-position: center;
}
.trusted-partners-info::before { left: 0; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23999" d="M15 3l-9 9 9 9 1.4-1.4L8.8 12l7.6-7.6z"/></svg>'); }
.trusted-partners-info::after { right: 0; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23999" d="M9 3L7.6 4.4 14.2 12l-6.6 7.6L9 21l9-9z"/></svg>'); }

/* 原站依赖 wow.js 触发动画，这里无 wow.js —— 强制显示所有 wow 元素 */
.wow { opacity: 1 !important; visibility: visible !important; animation: none !important; transform: none !important; }

/* banner 原图已自带标题文字，隐藏自定义叠层文字 */
.swp-slide-cap { display: none; }

/* 新闻三栏：强制横向排列 3 个 */
.company-synopses { white-space: nowrap; font-size: 0; }
.company-synopses .synopsis-item { display: inline-block !important; width: 33.33% !important; vertical-align: top; white-space: normal; font-size: 14px; }
.company-synopses .synopsis-item .item-img img { width: 100%; height: 200px; object-fit: cover; }

/* ---- Hero slider：原图自带标题，按原始比例完整显示 ---- */
#rev_slider_3_1_wrapper { position: relative; width: 100%; overflow: hidden; background: #122c52; }
.swp-hero-inner { position: relative; width: 100%; overflow: hidden; }
.swp-slides { position: relative; width: 100%; }
.swp-slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .8s ease; }
.swp-slide.active { position: relative; opacity: 1; }
.swp-slide img { width: 100%; height: auto; display: block; }
.swp-slide-cap { display: none; }
.swp-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.swp-dot { display: block; width: 20px; height: 7px; background: rgba(255,255,255,.55); cursor: pointer; border: 0; }
.swp-dot.active { background: #f2b632; }

/* ---- Ensure original layout sections render ---- */
.index-layout, .main_content { min-height: 200px; }
.main-product-wrap .product-wrap { display: flex; flex-wrap: wrap; }
.main-product-wrap .product-item { width: 25%; box-sizing: border-box; padding: 10px; }
.product-item .pd-img img { width: 100%; height: auto; display: block; }

/* ---- Inner pages ---- */
/* 内页 banner */
.wml-banner-img { width: 100%; overflow: hidden; }
.wml-banner-img img { width: 100%; height: auto; display: block; }
.path-bar { background: #f5f6f7; border-bottom: 1px solid #e5e7e9; padding: 12px 0; font-size: 13px; color: #666; }
.path-bar a { color: #c0392b; text-decoration: none; }
.path-bar .layout { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.main_content { max-width: 1200px; margin: 0 auto; padding: 30px 15px 60px; display: flex; gap: 30px; align-items: flex-start; }
.main_content:after { content: none; }
.main_content .clear { display: none; }
/* 左侧栏 */
.main_content .aside { width: 220px; flex: 0 0 220px; }
.aside .side-widget { margin-bottom: 22px; }
.aside .side-tit-bar { background: #1b4a8f; }
.aside .side-tit { color: #fff; font-size: 15px; font-weight: 700; margin: 0; padding: 10px 15px; }
.aside .side-cate { border: 1px solid #e5e7e9; border-top: 0; }
.aside .side-cate-menu, .aside .side-cate-menu ul { list-style: none; margin: 0; padding: 0; }
.aside .side-cate-menu > li { border-bottom: 1px solid #eef0f2; }
.aside .side-cate-menu > li > a { display: block; padding: 11px 15px; color: #333; font-size: 13px; text-decoration: none; position: relative; }
.aside .side-cate-menu > li > a:after { content: '+'; position: absolute; right: 14px; color: #1b4a8f; font-weight: 700; }
.aside .side-cate-menu .sub-menu { border-top: 1px dashed #eef0f2; }
.aside .side-cate-menu .sub-menu li a { display: block; padding: 7px 15px 7px 28px; color: #666; font-size: 12px; text-decoration: none; }
.aside .side-products .side-cont { border: 1px solid #e5e7e9; border-top: 0; padding: 10px 8px; position: relative; }
.aside .products-scroll-list { max-height: 430px; overflow: hidden; }
.aside .products-scroll-list ul { list-style: none; margin: 0; padding: 0; }
.aside .products-scroll-list li { margin-bottom: 12px; text-align: center; }
.aside .products-scroll-list figure { margin: 0; }
.aside .products-scroll-list .item-img img { width: 100%; max-width: 150px; height: auto; border: 1px solid #eee; }
.aside .products-scroll-list figcaption a { display: block; font-size: 12px; color: #0b3a6f; line-height: 1.4; margin-top: 4px; text-decoration: none; }
/* 主内容 */
.main_content .main { flex: 1 1 auto; min-width: 0; }
.main_content .main-tit-bar { border-bottom: 2px solid #1b4a8f; margin-bottom: 18px; }
.main_content .main-tit-bar .title { font-size: 22px; color: #0b3a6f; margin: 0; padding-bottom: 8px; font-weight: 700; }
.swp-inner-wrap { min-height: 300px; }
.swp-inner-title { font-size: 26px; color: #0b3a6f; padding-bottom: 14px; border-bottom: 2px solid #0b3a6f; margin-bottom: 24px; }
.swp-archive-head { margin-bottom: 10px; }
/* 正文 */
.main_content .entry { font-size: 15px; line-height: 2; color: #444; }
.main_content .entry img { max-width: 100%; height: auto; }
/* 询盘表单（原站结构）*/
.inquiry-form-wrap { border: 1px solid #d9dee3; margin-top: 28px; padding: 18px; }
.inquiry-form-title { background: #1b4a8f; color: #fff; display: inline-block; margin: -18px -18px 16px; padding: 8px 20px; font-size: 15px; }
.inquiry-form .form-item { margin-bottom: 12px; }
.inquiry-form .form-input { width: 100%; padding: 9px 12px; border: 1px solid #d9dee3; box-sizing: border-box; font-size: 14px; }
.inquiry-form textarea { width: 100%; min-height: 110px; padding: 9px 12px; border: 1px solid #d9dee3; box-sizing: border-box; }
.inquiry-form .form-submit { background: #f2b632; color: #333; border: 0; padding: 8px 22px; cursor: pointer; float: right; }
/* 产品列表（Products 页，3 列 —— 与原站一致）*/
.main_content .product-list { display: flex; flex-wrap: wrap; font-size: 0; }
.main_content .product-list .product-item,
.main_content .product-list .container-item {
    width: 33.333% !important; max-width: 33.333% !important; flex: 0 0 33.333% !important;
    box-sizing: border-box; padding: 12px; margin: 0 !important; text-align: center; font-size: 14px;
}
.main_content .product-list .pd-img, .main_content .product-list .item-wrap { width: 100%; }
.main_content .product-list .pd-img img { width: 100%; height: 200px; object-fit: contain; display: block; }
.main_content .product-list .pd-name { font-size: 14px; font-weight: 400; margin: 10px 0; line-height: 1.4; }
.main_content .product-list .pd-name a { color: #0b3a6f; text-decoration: none; }
/* 新闻列表（News 页）*/
.main_content .blog-list .blog-item { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed #d9dee3; }
.main_content .blog-list .item-img { flex: 0 0 220px; width: 220px; }
.main_content .blog-list .item-img img { width: 100%; height: 140px; object-fit: cover; }
.main_content .blog-list .blog-tit { margin: 0 0 8px; font-size: 16px; }
.main_content .blog-list .blog-tit a { color: #0b3a6f; text-decoration: none; }
.main_content .blog-list .blog-date { color: #999; font-size: 12px; margin-bottom: 6px; }
.main_content .blog-list .item-info p { color: #555; font-size: 13px; line-height: 1.7; margin: 0 0 8px; }
.main_content .blog-list .blog-more { color: #c0392b; font-size: 12px; text-decoration: none; }

/* ---- 新闻详情页 ---- */
.news-detail-title { font-size: 22px; color: #0b3a6f; margin: 0 0 8px; line-height: 1.4; }
.news-detail-date { color: #999; font-size: 13px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.news-detail-content { font-size: 15px; line-height: 2; color: #444; }
.news-detail-content img { max-width: 100%; height: auto; display: block; margin: 16px 0; }
.news-detail-content p { margin: 12px 0; }
.news-detail-back { margin: 28px 0 10px; }
.news-detail-back a { color: #0b3a6f; text-decoration: none; }

/* ---- 产品详情页（与原站 product-intro 一致）---- */
.main_content .product-intro { border: 1px solid #e5e7e9; padding: 18px; margin-bottom: 20px; overflow: hidden; }
.main_content .product-intro .product-view { float: left; width: 55%; box-sizing: border-box; padding-right: 20px; }
.main_content .product-intro .product-image { border: 1px solid #eee; text-align: center; padding: 10px; }
.main_content .product-intro .product-image img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.main_content .product-intro .image-additional { margin-top: 12px; }
.main_content .product-intro .image-items { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.main_content .product-intro .image-items li { width: 72px; height: 72px; border: 1px solid #e5e7e9; }
.main_content .product-intro .image-items img { width: 100%; height: 100%; object-fit: cover; }
.main_content .product-intro .product-summary { float: right; width: 45%; box-sizing: border-box; }
.main_content .product-intro .product-title { font-size: 20px; color: #0b3a6f; line-height: 1.4; margin: 0 0 18px; font-weight: 700; }
.main_content .product-intro .product-meta .product-inquiry-lead { font-size: 14px; color: #444; line-height: 1.7; }
.main_content .product-intro .product-contact-line { font-size: 13px; color: #555; margin: 8px 0; line-height: 1.6; }
.main_content .product-intro .product-contact-line a { color: #0b3a6f; }
/* tab 正文 */
.tab-content-wrap { margin: 20px 0; }
.tab-content-wrap .tab-tit { border-bottom: 2px solid #1b4a8f; display: flex; gap: 4px; }
.tab-content-wrap .tab-item { display: inline-block; padding: 9px 22px; background: #eef2f7; color: #0b3a6f; font-weight: 600; font-size: 14px; cursor: pointer; }
.tab-content-wrap .tab-item.current { background: #1b4a8f; color: #fff; }
.tab-content-wrap .tab-item a { color: inherit; text-decoration: none; }
.tab-content-wrap .tab-cont { border: 1px solid #e5e7e9; border-top: 0; padding: 18px; font-size: 14px; line-height: 1.9; color: #444; }
.tab-content-wrap .tab-cont img { max-width: 100%; height: auto; display: block; margin: 12px 0; }
/* 正文内嵌的原站 tab-panel 导入时带 disabled 被隐藏，强制显示其真实内容 */
.tab-cont .tab-panel, .tab-cont .tab-panel.disabled, .tab-cont .tab-panel-content, .tab-cont .fl-rich-text, .tab-cont .sk-show-content { display: block !important; opacity: 1 !important; visibility: visible !important; height: auto !important; }
.tab-cont .tab-title-bar, .tab-cont .swp-gallery { display: none !important; }
.tab-cont .sk-show-com-h3 { color: #0b3a6f; font-size: 16px; margin: 16px 0 8px; }
.tab-cont .sk-show-com-ul { padding-left: 20px; }
.tab-cont .sk-show-com-li { margin: 6px 0; }
/* Related Products */
.goods-may-like { margin-top: 28px; }
.goods-may-like .side-tit { background: #1b4a8f; color: #fff; padding: 10px 15px; font-size: 15px; margin: 0 0 12px; }
.goods-may-like .product-list-inner { display: flex; flex-wrap: wrap; }
.goods-may-like .product-item { width: 33.333% !important; max-width: 33.333% !important; flex: 0 0 33.333% !important; box-sizing: border-box; padding: 10px; text-align: center; }
.goods-may-like .pd-img img { width: 100%; height: 160px; object-fit: contain; }
.goods-may-like .pd-name { font-size: 13px; font-weight: 400; margin: 8px 0; line-height: 1.4; }
.goods-may-like .pd-name a { color: #0b3a6f; text-decoration: none; }

/* product main: image + inquiry side by side */
.swp-product-main { display: flex; gap: 30px; margin-bottom: 30px; flex-wrap: wrap; }
.swp-product-gallery { flex: 1 1 55%; min-width: 300px; }
.swp-product-hero { width: 100%; max-width: 620px; border: 1px solid #e5e7e9; display: block; }
.swp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.swp-thumbs img { width: 90px; height: 90px; object-fit: cover; border: 1px solid #ddd; cursor: pointer; }
.swp-product-side { flex: 1 1 35%; min-width: 260px; background: #f7f9fb; padding: 24px; border: 1px solid #e5e7e9; }
.swp-inquiry-lead { font-size: 15px; color: #333; line-height: 1.7; }
.swp-inquiry-btn { display: inline-block; background: #0e9f6e; color: #fff; padding: 12px 28px; text-decoration: none; font-weight: 700; margin: 10px 0; }
.swp-inquiry-btn:hover { background: #0b8a5e; }
.swp-contact-line { font-size: 14px; color: #555; margin: 8px 0; }
.swp-contact-line a { color: #0b3a6f; }

/* entry content — full images */
.swp-entry { font-size: 15px; line-height: 1.9; color: #333; }
.swp-entry img { max-width: 100%; height: auto; display: block; margin: 14px 0; }
.swp-entry h2, .swp-entry h3, .swp-entry h4 { color: #0b3a6f; margin: 22px 0 10px; }
.swp-entry table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.swp-entry table td, .swp-entry table th { border: 1px solid #ddd; padding: 8px 10px; }
.swp-product-back { margin-top: 30px; }
.swp-product-back a { color: #0b3a6f; }

/* archive grid + news list */
.archive-grid .product-item { width: 25%; box-sizing: border-box; padding: 10px; }
.swp-news-list { list-style: none; padding: 0; }
.swp-news-item { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid #eee; }
.swp-news-item .item-img { width: 220px; flex-shrink: 0; }
.swp-news-item .item-img img { width: 100%; height: auto; }
.swp-news-item .item-info h3 a { color: #0b3a6f; text-decoration: none; font-size: 18px; }
.swp-related { background: #f7f9fb; padding: 40px 0; }
.swp-related .layout { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.swp-related .title { font-size: 24px; color: #0b3a6f; margin-bottom: 20px; }
.swp-pagination { text-align: center; margin: 30px 0; }
.swp-pagination .page-numbers { display: inline-block; padding: 6px 12px; margin: 0 3px; border: 1px solid #ddd; text-decoration: none; color: #0b3a6f; }

@media (max-width: 768px) {
    .main-product-wrap .product-item, .archive-grid .product-item { width: 50%; }
    .swp-news-item { flex-direction: column; }
    .swp-news-item .item-img { width: 100%; }
    .main_content { flex-direction: column; }
    .main_content .aside { width: 100%; flex: 0 0 auto; }
    .aside .products-scroll-list ul { display: flex; overflow-x: auto; }
    .aside .products-scroll-list li { flex: 0 0 130px; }
    .main_content .product-list .product-item { width: 50%; }
    ul.truster-side.gallery li.item-img { flex: 0 0 150px; width: 150px; height: 150px; }
    .main_content .blog-list .blog-item { flex-direction: column; }
    .main_content .blog-list .item-img { width: 100%; flex: 0 0 auto; }
}
