/**
 * site.css - 全站公用自定义样式
 * 加载位置：footer.tpl
 */

/*  my define */
span.last_crumb {
    vertical-align: middle;
}

#logo {
    max-height: none !important;
}

#logo img {
    height: auto !important;
}

/* ===== DpToast 通知组件 ===== */
.dp-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    min-width: 240px;
    max-width: 88vw;
    padding: 13px 22px;
    border-radius: 30px;
    font-size: 14px;
    color: #fff;
    text-align: center;
    z-index: 2147483647;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transition: opacity .28s, transform .28s;
    pointer-events: none;
    white-space: nowrap;
}

.dp-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    cursor: pointer;
}

.dp-toast.success {
    background: #28a745;
}

.dp-toast.error {
    background: #dc3545;
}

/* 移动端适配：将提示框移至顶部，避免被底部拉起的询盘窗遮挡 */
@media (max-width: 768px) {
    .dp-toast {
        bottom: auto;
        top: 20%;
    }
}


/* ===== 左侧分类树：激活项背景色 ===== */

/* 一级分类激活：只对标题行(div)加背景，避免背景延伸到子菜单区域 */
.left-cat .mtree>li.active>div {
    background-color: #86a2e7;
    border-radius: 4px;
}

/* 二级分类激活 */
.left-cat .mtree>li>ul>li.active>a {
    background-color: #86a2e7 !important;
    border-radius: 3px;
    margin-top: 3px;
}

/* 二级分类 hover 背景（仅真实 hover 设备生效，避免手机粘连） */
@media (hover: hover) {
    .left-cat .mtree>li>ul>li:not(.active)>a:hover {
        background-color: #bebebe !important;
        color: #fff;
    }

    .left-cat .mtree>li:not(.active):hover>div {
        background-color: #bebebe;
        border-radius: 4px;
    }
}

/* 触摸设备：tap 时短暂显示反馈色（:active） */
@media (hover: none) {
    .left-cat .mtree>li>ul>li:not(.active)>a:active {
        background-color: #bebebe !important;
        color: #fff;
    }

    .left-cat .mtree>li:not(.active):active>div {
        background-color: #bebebe;
        border-radius: 4px;
    }

    /* 扩大箭头 <b> 的触摸区域 */
    .left-cat ul.mtree>li>b {
        position: absolute;
        right: 0;
        top: 0;
        width: 48px;
        height: 100%;
        min-height: 48px;
        z-index: 5;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}

/* 修正：非 active 的一级分类展开(mtree-open)时不应变蓝字 */
.left-cat .mtree>li.mtree-open:not(.active)>div>a {
    color: #333333 !important;
}

/* ===== 统一文字颜色，所有状态不再变色 ===== */
/* 一级分类：所有状态字色固定 */
.left-cat .mtree>li>div>a,
.left-cat .mtree>li:hover>div>a,
.left-cat .mtree>li.active>div>a,
.left-cat .mtree>li.mtree-open>div>a,
.left-cat .mtree>li.mtree-node:hover>div>a,
.left-cat .mtree>li.mtree-open:hover>div>a {
    color: #333333 !important;
}

/* 二级分类：所有状态字色固定 */
.left-cat .mtree>li>ul>li>a,
.left-cat .mtree>li>ul>li:hover>a,
.left-cat .mtree>li>ul>li.active>a,
.left-cat .mtree ul li:hover a {
    color: #333333 !important;
    margin-top: 3px;
}

/* ===== 统一箭头颜色（与文字一致） ===== */
.left-cat ul.mtree.transit>li.mtree-open>b:before,
.left-cat ul.mtree .mtree-level-1 li.mtree-open>b:before,
.left-cat ul.mtree.transit li.mtree-closed>b:before,
.left-cat ul.mtree .mtree-level-1 li.mtree-closed>b:before {
    color: #333333 !important;
}


/* ===== 移动端：防止固定底导栏遮住页面末尾内容 ===== */
@media (max-width: 992px) {
    body {
        padding-bottom: 60px;
    }

    /* 内页 banner 高度限制（参考网站约 220px） */
    .contact_container {
        height: 220px !important;
        min-height: 220px !important;
    }

    /* back-to-top 按钮上移，避免被底导栏遮住 */
    .progress-wrap {
        bottom: 70px !important;
    }
}

/* ===== 产品列表：Grid 模式图片正方形（与参考网站一致）===== */
.cbp-vm-view-grid .cbp-vm-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f7f7;
}

.cbp-vm-view-grid .cbp-vm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cbp-vm-view-grid ul li:hover .cbp-vm-image img {
    transform: scale(1.05);
}

/* ===== 视图切换按钮：统一正方形尺寸 ===== */
.cbp-vm-options a {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/*手机底部导航选中态*/
/*.mobile_nav a.active {
    color: '';
    background: '';
}
.mobile_nav a.active svg {
    fill: '';
}*/

/* =====================================================
   产品详情页 - 新增元素样式
   ===================================================== */

/* ── 规格区 ── */
.pro_detail_specs {
    margin: 14px 0;
}

.pro_detail_specs table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pro_detail_specs table td {
    padding: 8px 14px;
    border: 1px solid #e8e8e8;
}

.pro_detail_specs table tr:nth-child(odd) td {
    background: #f7f8fa;
}

.pro_detail_specs table tr:nth-child(even) td {
    background: #fff;
}

/* ── 询价按钮 ── */
.btn_inquire {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2a3d8f;
    color: #fff;
    padding: 11px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
    text-decoration: none;
    margin: 16px 0 8px;
    transition: background .3s;
}

.btn_inquire:hover {
    background: #1b2d6e;
    color: #fff;
}

/* ── 分享区 ── */
.pro_detail_share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.share_label {
    font-size: 13px;
    color: #666;
}

.share_icons {
    display: flex;
    gap: 8px;
}

.share_btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
}

.share_btn:hover {
    opacity: .85;
    transform: scale(1.1);
    color: #fff;
}

.share_fb {
    background: #1877f2;
}

.share_tw {
    background: #1da1f2;
}

.share_in {
    background: #0a66c2;
}

.share_wechat {
    background: #2dbb00;
}

.share_email {
    background: #888;
}

.share_copy {
    background: #5f6b7a;
}

.share-wechat-open {
    overflow: hidden;
}

.share-wechat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 2147483646;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.share-wechat-modal {
    width: min(92vw, 420px);
    background: #111;
    color: #fff;
    border-radius: 14px;
    padding: 22px 20px 18px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.share-wechat-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 24px;
    line-height: 32px;
    cursor: pointer;
}

.share-wechat-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.share-wechat-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
    margin-bottom: 16px;
    word-break: break-word;
}

.share-wechat-qr {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-wechat-qr img {
    display: block;
    width: 240px;
    height: 240px;
}

.share-wechat-url {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, .62);
    word-break: break-all;
}

/* ── Tags 标签栏 ── */
.pro_detail_tagbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 16px 0;
}

.tagbar_label {
    font-size: 13px;
    color: #555;
    font-weight: 600;
    margin-right: 4px;
    white-space: nowrap;
}

.pro_tag_badge {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #d0d5e8;
    border-radius: 20px;
    font-size: 12px;
    color: #444;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}

.pro_tag_badge:hover {
    background: #2a3d8f;
    color: #fff;
    border-color: #2a3d8f;
}

/* ── 上下篇导航 ── */
.pro_prev_next_box {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.prev_next_item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    text-decoration: none;
    color: #333;
    transition: background .2s;
}

.prev_next_item+.prev_next_item {
    border-top: 1px solid #eee;
}

.prev_next_item:hover {
    background: #f5f7ff;
    color: #2a3d8f;
}

.pn_arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8ecf5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #2a3d8f;
}

.pn_label {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    min-width: 70px;
}

.pn_title {
    font-size: 14px;
    flex: 1;
}

.prev_next_item:hover .pn_title {
    color: #2a3d8f;
}

/* ── 留言区 ── */
.pro_leave_message {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #f5f7ff;
    border: 1px solid #e0e4f5;
    border-radius: 6px;
    padding: 24px 28px;
    margin: 20px 0;
}

.leave_msg_icon {
    font-size: 42px;
    color: #2a3d8f;
    flex-shrink: 0;
    line-height: 1;
}

.leave_msg_body h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #2a3d8f;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.leave_msg_body p {
    font-size: 14px;
    color: #666;
    margin: 0 0 14px;
    line-height: 1.7;
}

.btn_leave_msg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2a3d8f;
    color: #fff;
    padding: 9px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .3s;
}

.btn_leave_msg:hover {
    background: #1b2d6e;
    color: #fff;
}

/* ── 产品详情内容区 ── */
.pro_detail_content {
    margin: 24px 0;
}

.pro_content_title {
    background: #2a3d8f;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 10px 18px;
    text-transform: uppercase;
    margin-bottom: 16px;
    border-radius: 3px 3px 0 0;
}

.pro_content_body {
    padding: 0 4px;
    line-height: 1.8;
    color: #444;
    font-size: 14px;
}

.pro_content_body img {
    max-width: 100%;
    height: auto;
}

/* 产品详情富文本：编辑器常把单张图片包在 p 里，默认段落边距会造成上下白边 */
.mostBox .tab-content .text.newm p.richtext-img-only {
    margin: 0;
    line-height: 0;
}

.mostBox .tab-content .text.newm p.richtext-img-only img {
    display: block;
}

.mostBox .tab-content .text.newm p.richtext-empty {
    margin: 0;
    padding: 0;
    line-height: 0;
    height: 0;
    min-height: 0;
    overflow: hidden;
}

/* ── 侧边栏新产品组件 ── */
.sidebar_new_products {
    margin-top: 20px;
}

.sidebar_pro_item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar_pro_img {
    flex-shrink: 0;
    width: 70px;
    height: 56px;
    overflow: hidden;
    border-radius: 3px;
    display: block;
}

.sidebar_pro_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.sidebar_pro_img:hover img {
    transform: scale(1.08);
}

.sidebar_pro_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar_pro_title {
    font-size: 13px;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar_pro_title:hover {
    color: #2a3d8f;
}

.sidebar_pro_more {
    font-size: 12px;
    color: #2a3d8f;
    text-decoration: none;
    font-weight: 600;
}

.sidebar_pro_more:hover {
    text-decoration: underline;
}


/* 侧边栏新闻样式优化 */
#sideNewsSwiper .swiper-slide {
    padding-bottom: 12px;
}

#sideNewsSwiper .box .image {
    width: 40%;
    /* 增加新闻图片占比 */
    height: 80px;
    /* 强制拉高高度 */
}

#sideNewsSwiper .box .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 关键：裁剪展示，防止变形 */
}

#sideNewsSwiper .box .main {
    width: 60%;
    padding-left: 12px;
}

#sideNewsSwiper .box .main .date {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}

#sideNewsSwiper .box .main .title {
    font-size: 14px;
    line-height: 20px;
    height: 40px;
    /* 限制2行左右高度 */
    overflow: hidden;
}

#sideNewsSwiper .box .main .page_more {
    margin-top: 5px;
    font-weight: 600;
}


/* ── 产品列表悬停优化 ── */
.cbp-vm-switcher>ul>li>div {
    border: 1px solid transparent !important;
    transition: all 0.3s ease;
}

.cbp-vm-switcher>ul>li:hover>div {
    border-color: #2f318b !important;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1) !important;
}

/* ── 产品列表样式增强（仅限网格模式生效，不影响列表模式） ── */
.cbp-vm-switcher:not(.cbp-vm-view-list)>ul>li .cbp-vm-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f7f7f7;
    margin-bottom: 10px;
}

.cbp-vm-switcher:not(.cbp-vm-view-list)>ul>li .cbp-vm-image::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.cbp-vm-switcher:not(.cbp-vm-view-list)>ul>li .cbp-vm-image img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* ── 首页产品分类高度对齐 ── */
.cat_content .list {
    display: flex !important;
    flex-wrap: wrap !important;
}

.cat_content .list li {
    display: flex !important;
    float: none !important;
    margin-bottom: 30px;
}

.cat_content .list li .column {
    flex: 1 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center;
}

.cat_content .list li .image {
    width: 45% !important;
    flex-shrink: 0;
    position: relative;
    border-radius: 50% !important;
    /* 强制圆角 */
    overflow: hidden !important;
    /* 强制裁剪 */
    background: #fff;
    /* 增加底色填充边缘可能存在的间隙 */
}

/** 强制图片容器为 1:1 比例 **/
.cat_content .list li .image::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.cat_content .list li .image img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    /* 改用 contain 确保图片完整不超出 */
    border-radius: 50%;
}

.cat_content .list li .wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-left: 15px !important;
}

/* ── 响应式表格 ── */
.table-responsive {
    width: 100%;
    margin-bottom: 20px;
    overflow-y: hidden;
    overflow-x: auto;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    border: 1px solid #eee;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    width: 100% !important;
    max-width: none !important;
    margin-bottom: 0;
}

.table-responsive table td,
.table-responsive table th {
    white-space: nowrap;
    padding: 12px 15px;
    border: 1px solid #f2f2f2;
}

/* ── 响应式 ── */





@media (max-width: 768px) {
    .pro_leave_message {
        flex-direction: column;
        gap: 12px;
        padding: 18px;
    }

    .leave_msg_icon {
        font-size: 30px;
    }

    .pro_detail_share {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 垂直滑动容器高度限制，防止移动端卡死 */
.swiper_scroll_height {
    height: 480px;
    /* PC 默认高度 */
    max-height: 80vh;
    overflow: hidden;
    position: relative;
}

@media (max-width: 992px) {
    .swiper_scroll_height {
        height: 350px;
        /* 移动端减小高度，方便用户划过该区域 */
    }

    /*产品详情-规格*/
    .ptab-list li {
        padding: 10px 15px;
    }
}

/* 解决可能存在的点击粘连 */
.swiper-slide {
    -webkit-tap-highlight-color: transparent;
}

.main_title .bread_title {
    color: #333;
    font-size: 24px;
    text-transform: uppercase;
    line-height: 120%;
    margin: 0;
    position: relative;
    z-index: 2;
    display: block;
    font-family: "Workhorse";
    margin-bottom: 0;
}


.pro-table {
    margin-top: 20px;
    border-top: 1px solid #eee;
}

.ptab-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ptab-list li {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.ptab-list li:nth-child(even) {
    background: #fcfcfc;
}

.ptab-list li p {
    width: 120px;
    margin: 0;
    color: #666;
    font-weight: bold;
    flex-shrink: 0;
    background: transparent !important;
    /* 强制背景透明，防止手机端覆盖背景色 */
}

.ptab-list li span {
    color: #333;
    flex: 1;
}

/* 兼容富文本模式下的内容排版 */
.spec-rich-text {
    padding: 10px 0;
    line-height: 1.6;
}

.news li .news-list-right {
    padding-top: 0px;
}

.news li .news-list-left {
    padding-top: 10px;
    height: 200px;
}
.news li .link img{
    height: 180px;
}

/* =====================================================
   全站自动弹窗询盘 (Dialog Mode)
   ===================================================== */
.dp-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

/* 弹窗激活时的 body 锁定 */
body.dp-dialog-open {
    overflow: hidden;
}

body.dp-dialog-open .dp-dialog-overlay {
    opacity: 1;
    visibility: visible;
}

/* 弹窗容器 - 复用原有 ID 但在 dialog 模式下重写布局 */
#online_qq_layer.is-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -50%) scale(0.9);
    width: 600px;
    max-width: 90vw;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 99999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    overflow: hidden;
}

body.dp-dialog-open #online_qq_layer.is-dialog {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* 弹窗 Header */
#online_qq_layer.is-dialog .i_message_inquiry .title {
    background: #2f318b;
    color: #fff;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

/* 针对弹窗模式下的标题 */
#online_qq_layer.is-dialog .i_message_inquiry .title em {
    display: block;
    font-style: normal;
}

/* 弹窗关闭按钮 */
#online_qq_layer.is-dialog .dialog-close {
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s;
    font-weight: 300;
}

#online_qq_layer.is-dialog .dialog-close:hover {
    opacity: 1;
}

/* 弹窗内容区 */
#online_qq_layer.is-dialog #onlineService {
    display: block !important;
    width: 100% !important;
}

#online_qq_layer.is-dialog .online_form {
    padding: 25px;
}

#online_qq_layer.is-dialog .i_message_inquiry .text {
    margin-bottom: 20px;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* 弹窗模式下隐藏原本的悬浮标签（解决 PC 端重叠/错乱问题） */
#online_qq_layer.is-dialog #online_qq_tab {
    display: none !important;
}

/* 移动端调整弹窗标题间距 */
@media (max-width: 768px) {
    #online_qq_layer.is-dialog .i_message_inquiry .title {
        padding: 15px 20px;
        font-size: 16px;
    }
}

/* ===== History Products ===== */
.history-pro-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.history-pro-item {
    width: calc(25% - 12px);
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .history-pro-item {
        width: calc(33.333% - 11px);
    }
}

@media (max-width: 767px) {
    .history-pro-item {
        width: calc(50% - 8px);
    }
}

.history-pro-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color .2s;
    height: 100%;
}

.history-pro-card:hover {
    border-color: #3a4fc1;
}

.history-pro-img {
    width: 100%;
    padding-top: 75%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.history-pro-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.history-pro-title {
    padding: 5px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 50px;
}

/* ===== News ===== */
.history-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-news-list li {
    border-bottom: 1px solid #eee;
}

.history-news-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 8px;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: border-color .2s;
}

.history-news-card:hover {
    border-color: #3a4fc1;
}

.history-news-card img {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.history-news-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-news-title {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.history-news-date {
    font-size: 12px;
    color: #999;
}



/* =====================================================
   产品评价 (Evaluation / Reviews)
   ===================================================== */
.evaluation-wrap {
    padding: 10px 0 30px;
}

.reviews-wrap {
    margin-top: 20px;
    padding: 0 0 10px;
}

.reviews-head {
    border-top: 1px solid #dcdcdc;
    padding-top: 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.reviews-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .8px;
    color: #1e2b57;
}

.reviews-count {
    font-size: 13px;
    letter-spacing: .8px;
    color: #fff;
    background: linear-gradient(135deg, #1e2b57, #3b5bd6);
    padding: 7px 12px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(30, 43, 87, .18);
}

.eval-item {
    border-bottom: 1px solid #ddd;
    padding: 22px 0;
}

.eval-header {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*.eval-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }*/
.eval-meta-left {
    font-size: 16px;
    color: #444;
    float: left
}

.eval-meta-right {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    float: right
}

.eval-user {
    font-weight: 800;
    color: #222;
    font-size: 16px;
}

.eval-date {
    color: #999;
    font-size: 13px;
}

.eval-rating-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.eval-rating-label {
    font-size: 12px;
    color: #6b5842;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.eval-stars {
    color: #d97706;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 5px 10px;
    border-radius: 999px;
}

.eval-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 12px;
}

.eval-imgs {
    display: flex;
    flex-wrap: wrap;
    /*gap: 10px;*/
}

.eval-img-box {
    margin-right: 10px;
    width: 110px;
    height: 82px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
}

.eval-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.eval-img-box:hover img {
    transform: scale(1.1);
}

.eval-empty {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-style: italic;
}

.eval-stars2 {
    color: red;
    font-weight: bold
}

/* 评价表单 */
.eval-form-wrap {
    margin-top: 38px;
    padding: 30px;
    background: linear-gradient(180deg, #fff, #f8faff);
    border: 1px solid #e7ecff;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(26, 35, 74, .06);
}

.eval-form-wrap .form-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 18px;
    color: #16213d;
    border-bottom: 2px solid #2a3d8f;
    display: inline-block;
    padding-bottom: 6px;
}

.eval-form-wrap .form-control {
    border-radius: 12px;
    border: 1px solid #dbe2ff;
    padding: 11px 16px;
    box-shadow: none;
}

.eval-form-wrap .form-control:focus {
    border-color: #2a3d8f;
    box-shadow: 0 0 0 4px rgba(42, 61, 143, 0.08);
}

.eval-field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.eval-rating-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #555;
}

.rating-pill {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.rating-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 16px;
    border-radius: 20px;
    border: 1px solid #d9dff5;
    background: linear-gradient(180deg, #ffffff, #eef2ff);
    color: #243a84;
    font-weight: 800;
    font-size: 15px;
    transition: all .18s ease;
    box-shadow: 0 6px 16px rgba(42, 61, 143, .06);
}

.rating-pill:hover span,
.rating-pill input:focus+span {
    transform: translateY(-1px);
    border-color: #2a3d8f;
    box-shadow: 0 10px 22px rgba(42, 61, 143, .14);
}

.rating-pill input:checked+span {
    background: linear-gradient(135deg, #2a3d8f, #4a67e6);
    border-color: #2a3d8f;
    color: #fff;
}

.eval-textarea {
    min-height: 120px;
    resize: vertical;
}

.eval-upload-group {
    margin-top: 8px;
}

.eval-upload-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.eval-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px 0 14px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #2a3d8f, #4a67e6);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 10px 22px rgba(42, 61, 143, .18);
}

.eval-upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(42, 61, 143, .22);
    color: #fff;
}

.eval-upload-icon {
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    font-size: 16px;
    font-weight: 800;
}

.eval-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 44px;
    align-items: flex-start;
}

.eval-preview-item {
    position: relative;
    display: inline-block;
}

.eval-preview-item img {
    display: block;
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid #dfe5ff;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
}

.remove-eval-img {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(231, 76, 60, .25);
}

.eval-submit-row {
    margin-top: 18px;
}

.eval-notice {
    margin: 0 0 16px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
}

.eval-notice.success {
    background: #eef8ee;
    color: #246b2e;
    border: 1px solid #cde8d0;
}

.eval-notice.error {
    background: #fff1f1;
    color: #b32626;
    border: 1px solid #f2c7c7;
}

.features-tab .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

.features-tab .nav-tabs>li {
    float: none;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .eval-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .eval-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .eval-item {
        padding: 16px 0;
    }

    .eval-content {
        font-size: 18px;
    }

    .eval-img-box {
        width: 68px;
        height: 68px;
    }

    .eval-form-wrap {
        padding: 20px 15px;
    }

    .eval-form-wrap .form-title {
        font-size: 18px;
    }

    .eval-upload-bar {
        flex-direction: column;
    }

    .features-tab .nav-tabs {
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== 首页新闻 / 合作伙伴 ===== */
.home_section {
    padding: 30px 0 10px;
}

.home_news_section {
    background: #fff;
}

.home_partner_section {
    padding-top: 10px;
    padding-bottom: 40px;
    margin-top: 50px
}

.home_section_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.home_section_head_news {
    justify-content: center;
    text-align: center;
}

.home_section_head_center {
    justify-content: center;
    text-align: center;
}

.home_section_head_center h2,
.home_section_head_news h2 {
    text-align: center;
}

.home_section_head h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    color: #202020;
    letter-spacing: .5px;
}

.home_section_more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: #2f318b;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.home_section_more:hover {
    color: #fff;
    opacity: .92;
}

.home_news_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.home_news_card {
    background: #fff;
    border: 1px solid #e8e8e8;
    transition: all .28s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
}

.home_news_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .08);
    border-color: #cfd6ff;
}

.home_news_link {
    display: flex;
    flex-direction: column;
    color: inherit;
    width: 100%;
    min-height: 100%;
}

.home_news_media {
    position: relative;
    /*aspect-ratio: 4 / 3;*/
    overflow: hidden;
    background: #f6f6f6;
    height: 180px;
}

.home_news_media img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    transition: transform .4s ease;
}

.home_news_card:hover .home_news_media img {
    transform: scale(1.04);
}

.home_news_body {
    padding: 16px 16px 5px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home_news_date {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 75px;
    min-height: 70px;
    padding: 10px 12px;
    font-size: 12px;
    color: #fff;
    background: #2f318b;
    text-align: center;
    box-shadow: 0 8px 18px rgba(47, 49, 139, .2);
}

.home_news_date_day {
    display: block;
    font-size: 22px;
    line-height: 1;
    font-weight: 500;
    margin-bottom: 10px;
}

.home_news_date_month {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: .4px;
}

.home_news_title {
    margin: 0 0 10px;
    color: #222;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 500;
    min-height: 46px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home_news_text {
    color: #666;
    font-size: 13px;
    line-height: 1.65;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home_news_more {
    display: inline-block;
    margin-top: auto;
    padding-top: 12px;
    color: gray;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
}

.home_partner_grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.home_news_action {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.home_partner_item {
    border: 1px solid #e7e7e7;
    background: #fff;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: all .25s ease;
}

.home_partner_item:hover {
    border-color: #2f318b;
    box-shadow: 0 10px 24px rgba(47, 49, 139, .08);
}

.home_partner_link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home_partner_link img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    display: block;
}

@media (max-width: 1199px) {
    .home_news_grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .home_partner_grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home_news_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .home_section {
        padding: 24px 0 6px;
    }

    .home_section_head {
        margin-bottom: 16px;
    }

    .home_section_head h2 {
        font-size: 22px;
    }

    .home_news_grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home_partner_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .home_news_body {
        padding: 16px;
    }

    .home_news_title {
        min-height: auto;
        font-size: 16px;
    }

    .home_news_action {
        margin-top: 18px;
    }
}

/* 产品分类页：View Detail 悬浮时底部居中显示 */
.page_products .cbp-vm-view-grid ul li>div {
    display: flex;
    flex-direction: column;
    position: relative;
}

.page_products .cbp-vm-view-grid ul li .cbp-list-center {
    flex: 0 0 auto;
}

.page_products .cbp-vm-view-grid ul li .cbp-list-left {
    position: static;
}

.page_products .cbp-vm-view-grid ul li .more {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: -32px;
    width: auto;
    padding: 0;
    opacity: 0;
    transform: translateX(-50%);
    text-align: center;
}

.page_products .cbp-vm-view-grid ul li:hover .more {
    opacity: 1;
    z-index: 22;
}

.page_products .cbp-vm-view-grid ul li .more .main_more {
    margin: 0 auto !important;
}

/* 产品 mega menu：隐藏左侧滚动条线 */
.mainmenu ul li.product_vmegamenu > div.vmegamenu > ul > li {
    border-left: none !important;
}

.mainmenu ul li.product_vmegamenu > div.vmegamenu {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.mainmenu ul li.product_vmegamenu > div.vmegamenu::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}

/*banner*/
.banner {
    min-height: 260px !important;
}

.banner .swiper-slide img {
    height: 100% !important;
}

@media (max-width: 768px) {
    .banner {
        min-height: 0 !important;
        height: auto !important;
    }

    .banner .swiper-slide img {
        width: 100% !important;
        height: auto !important;
        object-fit: initial !important;
    }

    /* 移除波浪遮挡 / Remove waves that block content */
    .attachment_line_top,
    .attachment_line_bottom {
        display: none !important;
    }

    /* 移除暗色遮罩 / Remove dark overlay shading */
    .contact_container:before {
        display: none !important;
    }

    /* 首页新闻卡片：手机端优先完整展示图片 */
    .home_news_media {
        /*aspect-ratio: auto !important;
        height: auto !important;*/
        height: 180px;
        overflow: hidden;
        background: #f6f6f6;
    }

    .home_news_media img {
        /* height: auto !important;
        object-fit: contain !important;*/
        display: block;
        width: 100% !important;
        height: 100%;
    }
}

/*pc 邮箱手机号*/
/*.head_con {margin-top: 0px !important}*/

/* Inquiry form select: only keep floating dialog fixes here */
#online_qq_layer .i_message_inquiry .inquiry .input-group span.ms_c:before,
#online_qq_layer .i_message_inquiry .inquiry .input-group span.ms_c:after {
    display: none;
}

#online_qq_layer .i_message_inquiry .dp-select {
    position: relative;
    width: 100%;
}

#online_qq_layer .i_message_inquiry .dp-select:before {
    content: '*';
    color: red;
    position: absolute;
    right: 34px;
    top: 0;
    z-index: 11;
    line-height: 40px;
}

#online_qq_layer .i_message_inquiry .dp-select:after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -7px;
    border-right: 2px solid #8b92b8;
    border-bottom: 2px solid #8b92b8;
    transform: rotate(45deg);
    background: none;
    pointer-events: none;
    z-index: 10;
}

#online_qq_layer .i_message_inquiry .dp-select.is-open:after {
    margin-top: -2px;
    transform: rotate(-135deg);
}

#online_qq_layer .i_message_inquiry .dp-select-trigger {
    min-height: 40px;
    padding: 0 38px 0 14px;
    border: 1px solid #ccc;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

#online_qq_layer .i_message_inquiry .dp-select-menu {
    z-index: 200;
}

#online_qq_layer .i_message_inquiry .dp-select:before {
    right: 6px;
}
