/* ============================================================
   prod-marking — theme-compat.css（具体站点二次改造层）
   站点：www.cqscan.cn（条码扫描枪/扫描器/扫描模组）
   1) 配色统一为深蓝 #1E2A6D + 黄 #FBC649（与站点 Logo 一致）
   2) 主导航：真实链接 + 仅有子栏目时输出下拉（caret 分离，点击可跳转）
   3) Logo 统一 object-fit:contain 尺寸约束（桌面56/280，移动42/220）
   4) 列表页横幅标题、纯文字卡片、页签、分页样式
   5) 新页脚与浮动联系栏（电话/微信/联系，弹层可用）
   ============================================================ */

/* ---------- 1) 配色统一：各栏目旧色（绿/紫等）收敛到主蓝 ---------- */
:root {
    --green: #1E2A6D;
    --purple: #1E2A6D;
    --blue: #1E2A6D;
}
a:visited { color: inherit; }
.mainColor { color: #1E2A6D; }
.mainBg { background: #1E2A6D; color: #fff; }

/* ---------- 2) Logo 约束 ---------- */
.site-logo {
    object-fit: contain;
    max-height: 56px;
    max-width: 280px;
    width: auto;
    height: auto;
}
.site-logo-text {
    font-weight: 700;
    color: #1E2A6D;
    font-size: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    display: inline-block;
}
#pcLogoAndpcSearch a { display: inline-flex; align-items: center; }
.navbar-brand { background: transparent !important; text-align: left !important; width: auto !important; padding: .6rem 0 .6rem 1rem !important; }
.navbar-brand .site-logo.site-logo-mobile {
    object-fit: contain;
    max-height: 42px !important;
    max-width: 220px !important;
    width: auto !important;
    height: auto !important;
}
.navbar-brand .site-logo-text { color: #fff; font-size: 1.05rem; max-width: 200px; }

/* ---------- 3) 主导航：链接可点击 + 条件下拉 ---------- */
.navbar-nav .nav-item.has-sub { position: relative; display: flex; align-items: stretch; }
.navbar-nav .has-sub .nav-link { flex: 1 1 auto; }
.nav-caret {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .7);
    padding: 0 .9rem 0 .2rem;
    cursor: pointer;
    font-size: .8rem;
    line-height: 1;
}
.nav-caret:hover, .nav-caret:focus { color: #fff; }
.nav-item.has-sub:hover > .dropdown-menu { display: block; }
.bg-dark .dropdown-menu {
    background: #1b2444;
    border: 1px solid #2c3763;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 24px rgba(10, 16, 40, .28);
    margin: 0;
    padding: .45rem 0;
    min-width: 10rem;
}
.bg-dark .dropdown-item { color: #dfe3f2; padding: .5rem 1.3rem; }
.bg-dark .dropdown-item:hover, .bg-dark .dropdown-item:focus { background: #243059; color: #fff; }
@media (max-width: 767.98px) {
    .navbar-collapse .has-sub { flex-wrap: wrap; }
    .navbar-collapse .has-sub .nav-link { flex: 1 1 auto; }
    .navbar-collapse .nav-caret { padding: 1.1rem .9rem 0 .4rem; align-self: flex-start; }
    .navbar-collapse .dropdown-menu {
        position: static;
        display: none;
        background: #161e3d;
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin: 0 0 .4rem;
        padding: .2rem 0 .2rem 1.2rem;
        min-width: 0;
        flex-basis: 100%;
    }
    .navbar-collapse .dropdown-menu.show { display: block; }
    .mobile-search .form-control { border-radius: .35rem 0 0 .35rem; }
    .mobile-search .btn { border-radius: 0 .35rem .35rem 0; }
}

/* ---------- 4-A) 移动端横幅标题与区块适配 ---------- */
@media (max-width: 767.98px) {
    .page-banner-title { padding: 1.8rem 1.1rem .8rem; }
    .page-banner-title h2 { font-size: 1.25rem; }
    .page-banner-title p { font-size: .72rem; }
    .home-section { padding: 2rem 0; }
    .section-title { font-size: 1.2rem; }
    .footer-phone { font-size: 1.2rem; }
    .quick-nav-name { flex-basis: 100%; }
}

/* ---------- 4) 列表页横幅标题（深色渐变叠底，白字可读） ---------- */
#scateImgDiv { position: relative; }
.page-banner-title {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 2.6rem 2rem 1.1rem;
    background: linear-gradient(180deg, rgba(13, 22, 54, 0) 0%, rgba(13, 22, 54, .88) 78%);
    color: #fff;
}
.page-banner-title h2 { font-size: 1.7rem; font-weight: 700; margin: 0; color: #fff; }
.page-banner-title p { margin: .2rem 0 0; font-size: .85rem; color: rgba(255, 255, 255, .78); }
.scate-h2 { font-size: 1.7rem; font-weight: 700; color: #1d2740; margin: 0; }

/* ---------- 5) 首页区块 ---------- */
.home-section { padding: 3rem 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    border-bottom: 3px solid #1E2A6D;
    margin-bottom: 1.6rem;
    padding-bottom: .5rem;
}
.section-title { font-size: 1.45rem; font-weight: 700; color: #1E2A6D; margin: 0; }
.section-title .bi { color: #1E2A6D; margin-right: .2rem; }
.section-more { color: #1E2A6D; font-size: .92rem; white-space: nowrap; }
.section-more:hover { color: #c79a00; }
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li { display: flex; align-items: center; border-bottom: 1px dashed #e3e7f1; }
.rank-list li:last-child { border-bottom: none; }
.rank-list a { color: #2a3450; }
.rank-list a:hover { color: #1E2A6D; }
.rank-no {
    flex: 0 0 1.7rem;
    height: 1.7rem;
    margin-right: .7rem;
    border-radius: 6px;
    background: #1E2A6D;
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rank-list li:nth-child(-n+2) .rank-no { background: #c79a00; }
.brand-center { border-top: 1px dashed #d8dcea; padding-top: 1.4rem; }
.brand-title { font-size: 1.1rem; color: #1d2740; margin-bottom: .9rem; }
.brand-title small { color: #8892ab; font-weight: 400; margin-left: .5rem; }
.brand-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    background: #fff;
    border: 1px solid #e2e6f0;
    border-left: 4px solid #1E2A6D;
    border-radius: 8px;
    padding: 1rem 1.6rem;
    margin: 0 .8rem .8rem 0;
    min-width: 210px;
    transition: box-shadow .2s ease, transform .2s ease;
}
.brand-card:hover { box-shadow: 0 8px 20px rgba(20, 29, 64, .12); transform: translateY(-2px); text-decoration: none; }
.brand-name { font-size: 1.1rem; font-weight: 700; color: #1E2A6D; }
.brand-link { font-size: .85rem; color: #8892ab; }
.brand-card:hover .brand-link { color: #c79a00; }
.home-empty-tip {
    text-align: center;
    color: #8892ab;
    background: #f6f7fb;
    border: 1px dashed #d8dcea;
    border-radius: 10px;
    padding: 2.4rem 1rem;
    margin: 0 .5rem;
}
.home-empty-tip .bi { font-size: 2.2rem; display: block; margin-bottom: .6rem; color: #b9c0d6; }
.home-empty-tip p { margin: 0; }
.service-block { background: #fff; border-radius: 8px; padding: 1.4rem 1.6rem; }
.quick-nav-row {
    display: flex;
    align-items: flex-start;
    padding: .65rem 0;
    border-bottom: 1px dashed #dde2ee;
}
.quick-nav-row:last-child { border-bottom: none; }
.quick-nav-name { flex: 0 0 150px; font-weight: 700; color: #1E2A6D; }
.quick-nav-items { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; }
.quick-nav-items a { color: #5a6478; font-size: .92rem; }
.quick-nav-items a:hover { color: #1E2A6D; }
@media (max-width: 767.98px) {
    .quick-nav-name { flex-basis: 100%; }
}

/* ---------- 6) 内容列表纯文字卡片 ---------- */
.text-card {
    background: #fff;
    border: 1px solid #e5e8ef;
    border-left: 4px solid #1E2A6D;
    border-radius: 8px;
    padding: 1.05rem 1.4rem;
    transition: box-shadow .2s ease;
}
.text-card:hover { box-shadow: 0 8px 20px rgba(20, 29, 64, .1); }
.text-card-title { color: #232c46; font-weight: 600; font-size: 1.05rem; flex: 1 1 240px; }
.text-card-title:hover { color: #1E2A6D; text-decoration: none; }
.text-card-link { color: #1E2A6D; font-size: .88rem; white-space: nowrap; margin-left: 1rem; }
.text-card-link:hover { color: #c79a00; text-decoration: none; }
.text-card-desc { color: #66708a; margin: .55rem 0 0; font-size: .92rem; }

/* ---------- 7) 产品详情 CTA ---------- */
.product-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .8rem 1.5rem;
    background: linear-gradient(135deg, #16224e, #1E3A8A);
    color: #fff;
    border-radius: 10px;
    padding: 1.1rem 1.5rem;
}
.product-cta-inner a { color: #1d2740; }

/* ---------- 8) 联系页 / 关于页卡片 ---------- */
.contact-card {
    background: #fff;
    border: 1px solid #e5e8ef;
    border-top: 4px solid #1E2A6D;
    border-radius: 10px;
    padding: 1.6rem 1.7rem;
}
.contact-card-title { color: #1E2A6D; font-size: 1.25rem; margin-bottom: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
    display: flex;
    gap: .85rem;
    padding: .68rem 0;
    border-bottom: 1px dashed #e8ebf3;
    align-items: flex-start;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .bi { color: #1E2A6D; font-size: 1.1rem; margin-top: .22rem; }
.contact-list em { font-style: normal; color: #8892ab; font-size: .82rem; display: block; }
.contact-list span { color: #1d2740; font-weight: 500; }
.contact-list a { color: #1E2A6D; }
.contact-note { margin-top: 1rem; color: #66708a; font-size: .92rem; }
.qr-card {
    background: #fff;
    border: 1px solid #e5e8ef;
    border-radius: 10px;
    padding: 1.6rem;
    text-align: center;
}
.qr-card img { display: inline-block; }
.qr-card p { margin: .9rem 0 0; color: #1E2A6D; font-weight: 600; font-size: 1.05rem; }
.qr-card small { color: #8892ab; display: block; margin-top: .3rem; }
.relate-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e8ef;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    height: 100%;
    color: inherit;
    transition: box-shadow .2s ease;
}
.relate-card:hover { box-shadow: 0 8px 20px rgba(20, 29, 64, .1); text-decoration: none; }
.relate-card strong { display: block; color: #1E2A6D; margin-bottom: .3rem; font-size: 1.02rem; }
.relate-card span { color: #66708a; font-size: .9rem; }

/* ---------- 9) 页脚 ---------- */
.site-footer {
    background: #141d40;
    color: #c7cde4;
    padding: 2.1rem 1rem 1.6rem;
    text-align: center;
    margin-top: 2.5rem;
}
.footer-contact { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .5rem 2.5rem; }
.footer-phone { font-size: 1.45rem; color: #fff; font-weight: 700; }
.footer-phone .bi, .footer-mail .bi { color: #FBC649; margin-right: .35rem; }
.footer-mail { font-size: .95rem; }
.footer-mail a { color: #c7cde4; }
.footer-mail a:hover { color: #fff; }
.footer-meta { margin-top: .8rem; }
.footer-meta small { display: inline-block; color: #8b93b8; margin: .15rem 1rem; }

/* ---------- 10) 浮动联系栏（右缘，可交互） ---------- */
.float-bar {
    position: fixed;
    right: 14px;
    top: 45%;
    transform: translateY(-50%);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #1E2A6D;
    color: #fff;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    box-shadow: 0 4px 14px rgba(20, 29, 64, .35);
    cursor: pointer;
    font-size: .72rem;
    transition: background .2s ease, transform .2s ease;
}
.float-btn .bi { font-size: 1.3rem; }
.float-btn:hover, .float-btn:focus { background: #16224e; color: #fff; transform: translateX(-2px); text-decoration: none; }
.float-pop {
    position: fixed;
    right: 84px;
    top: 45%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #e2e6f0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 28px rgba(16, 24, 56, .22);
    display: none;
    z-index: 9001;
    color: #1d2740;
    font-size: 1.15rem;
}
.float-pop .bi { color: #1E2A6D; margin-right: .3rem; }
.float-pop.show { display: block; }
.float-pop-qr { text-align: center; }
.float-pop-qr img { display: block; margin: 0 auto .5rem; border-radius: 8px; }
.float-pop-qr small { color: #8892ab; font-size: .82rem; }
@media (max-width: 767.98px) {
    .float-bar { right: 8px; gap: 7px; }
    .float-btn { width: 46px; height: 46px; font-size: .66rem; }
    .float-btn .bi { font-size: 1.1rem; }
    .float-pop { right: 64px; font-size: 1rem; padding: .8rem 1.2rem; }
    .float-pop-qr img { width: 130px; height: 130px; }
}

/* ---------- 11) 分页 / 兜底 ---------- */
ul.pagination { flex-wrap: wrap; justify-content: center; margin: 1rem 0; }
.page-item.active .page-link { background: #1E2A6D; border-color: #1E2A6D; }
.page-link { color: #1E2A6D; }
.page-link:hover { color: #16224e; }
.dropdown-menu:empty { display: none !important; }
.header-phone { color: #333; font-weight: bold; white-space: nowrap; }
.header-phone .bi { vertical-align: -0.125em; }
#floatConection, #minProgram, #phonePop, #showConectTable { display: none !important; }

/* ============================================================
   12) 导航配色统一（深蓝主题）+ 下拉菜单修复（20260921-2）
   背景：mycss 旧"产品索引大菜单"规则（width:100%!important、
   min-height:18rem、70% 宽菜单项、黄色底）导致新下拉文字截断；
   旧导航为深灰底+整块黄高亮，与蓝色主题不协调。此处用变量覆写
   与更高优先级 !important 修复。
   ============================================================ */
:root {
    --bannerBg: #16224e;                              /* 导航条：深藏蓝 */
    --activeBg: #2c3f96;                              /* 当前项：亮一档的蓝 */
    --activeColor: #fff;
    --bannerHoverColor: #fff;
    --bannerHoverBg: rgba(255, 255, 255, .14);
    --mobileCollapsibleNavbarBg: #16224e;             /* 手机折叠菜单：深藏蓝（原黄色） */
}
.navbar {
    background: linear-gradient(90deg, #121c40, #1E3A8A) !important;
}
/* 当前项 / JS 高亮项：蓝底白字 + 金色下划线点缀 */
.navbar-nav .navs.active > .nav-link,
.navbar-nav .navs.colorBg > .nav-link,
.navbar-nav .navs > .nav-link:hover,
.navbar-nav .navs > .nav-link:focus {
    color: #fff !important;
    background: var(--activeBg) !important;
    border-bottom: 3px solid var(--yellow);
}
.navbar-nav .navs > .nav-link { border-bottom: 3px solid transparent; }

/* ---------- 桌面下拉菜单：彻底覆盖旧大菜单 !important 规则 ---------- */
.bg-dark .navbar-nav .nav-item > .dropdown-menu {
    width: auto !important;
    min-width: 9rem !important;
    min-height: 0 !important;
    background: #1b2444 !important;
    border: 1px solid #2c3763 !important;
    border-top: 2px solid var(--yellow) !important;
    border-radius: 0 0 8px 8px !important;
    margin: 0 !important;
    padding: .5rem 0 !important;
    left: 0 !important;
    top: 100% !important;
    position: absolute !important;
    box-shadow: 0 12px 26px rgba(10, 16, 40, .35);
}
.bg-dark .navbar-nav .dropdown-item,
.bg-dark .navbar-nav .dropdown-menu-sm .dropdown-item {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    padding: .55rem 1.5rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    color: #dfe3f2 !important;
    background: transparent !important;
    font-size: 1rem;
    white-space: nowrap;
}
.bg-dark .navbar-nav .dropdown-item:hover,
.bg-dark .navbar-nav .dropdown-item:focus {
    background: #243059 !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 400 !important;
}

/* ---------- 手机折叠菜单内的下拉（旧规则同样污染） ---------- */
@media (max-width: 767.98px) {
    .navbar-collapse .dropdown-menu {
        width: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 0 .3rem 1.2rem !important;
        box-shadow: none !important;
    }
    .navbar-collapse .dropdown-menu .dropdown-item {
        display: block !important;
        width: auto !important;
        padding: .5rem .9rem !important;
        line-height: 1.6 !important;
        margin: 0 !important;
        color: #c3cae4 !important;
        background: transparent !important;
        border-left: 2px solid #2c3763;
    }
    .navbar-collapse .dropdown-menu .dropdown-item:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, .07) !important;
    }
    #collapsibleNavbar { background: #16224e !important; }
}

/* ---------- 13) 悬浮按钮防截断（图标+双字标签完整显示） ---------- */
.float-btn {
    min-height: 60px;
    height: auto;
    padding: 9px 6px;
    line-height: 1.15;
}
.float-btn .bi { font-size: 1.25rem; line-height: 1; }
.float-btn span { display: block; font-size: .72rem; }
@media (max-width: 767.98px) {
    .float-btn { min-height: 52px; padding: 7px 5px; }
    .float-btn .bi { font-size: 1.1rem; }
    .float-btn span { font-size: .66rem; }
}

/* ---------- 14) 悬浮栏对比度修复：深色照片上深蓝按钮不可见 ----------
   改为白底深蓝字卡片 + 阴影描边；电话为主操作用品牌金底；
   悬停才反转为深蓝。任何背景（深色横幅/浅色内容区）均清晰。 */
.float-bar { gap: 10px; }
.float-btn {
    background: #fff;
    color: #1E2A6D;
    border: 1px solid #dfe4f2;
    box-shadow: 0 6px 20px rgba(16, 24, 56, .28);
}
.float-btn .bi { color: #1E2A6D; }
.float-btn:hover, .float-btn:focus {
    background: #1E2A6D;
    color: #fff;
    border-color: #1E2A6D;
    box-shadow: 0 8px 22px rgba(16, 24, 56, .38);
}
.float-btn:hover .bi, .float-btn:focus .bi { color: #fff; }
/* 电话 = 主转化入口，品牌金底 */
#fbPhone {
    background: #FBC649;
    color: #16224e;
    border-color: #e9b233;
}
#fbPhone .bi { color: #16224e; }
#fbPhone:hover, #fbPhone:focus {
    background: #16224e;
    color: #FBC649;
    border-color: #16224e;
}
#fbPhone:hover .bi, #fbPhone:focus .bi { color: #FBC649; }
.float-pop { color: #1d2740; }
