/* ========================================
   诺君安官网 - 英文站样式（视觉还原版）
   基于原站 www.bjnja.com/en 视觉设计
   主色调: #494d7a
   ======================================== */

/* 英文站基础复用中文站 style.css 的所有变量和通用样式 */
/* 以下为英文站特有覆盖 */

body {
    font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    padding-top: 75px !important;
    position: relative;
}

/* ========== 导航栏（原站风格，匹配 BS3 结构） ========== */
.main-navigation {
    text-align: center;
    position: fixed;
    width: 100%;
    z-index: 9999;
    background-color: #fff;
    top: 0;
    left: 0;
}
/* BS5的.row是flex容器 + .row>*强制width:100% → 全部恢复为BS3原生float布局 */
.main-navigation .row {
    display: block !important;
    margin-left: -15px;
    margin-right: -15px;
    flex-wrap: unset !important;
    position: relative;  /* 为.info absolute定位提供参照 */
}
/* 破解BS5 .row>*的width:100%强制约束 */
.main-navigation .row > * {
    width: auto !important;
    max-width: none !important;
    flex-shrink: unset !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}
.main-navigation .row:before,
.main-navigation .row:after {
    content: " ";
    display: table;
}
.main-navigation .row:after {
    clear: both;
}
/* BS3的.navbar-header默认float:left，BS5没有此样式 */
.navbar-header {
    float: left !important;
    width: auto !important;
}
.navbar-brand {
    padding: 0 !important;
    float: left !important;
}
.navbar-brand img {
    height: auto;
}
.menu li {
    list-style: none;
    display: inline-block;
    position: relative;
}
.menu li a {
    display: block;
    font-size: 1.2rem;
    color: #000;
    height: 75px;
    line-height: 75px;
    padding: 0 20px;
    font-weight: 300;
    text-decoration: none;
}
.menu li a:hover,
.menu li a:focus {
    color: #494d7a;
}
.menu > li .dropdown-menu {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.menu > li:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li {
    width: 100%;
}
.dropdown-menu li a {
    line-height: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    padding: 0 1.25rem;
}
.dropdown-menu li a:hover {
    background: #494d7a;
    color: #fff;
}
/* 语言切换按钮（原站风格：右上角absolute定位，与.navbar-header同级） */
/* BS5 .row 即使设为display:block，float在某些情况下仍不稳定，改用absolute */
.info {
    position: absolute;
    right: 15px;
    top: 1.5rem;
    z-index: 100;
    float: none !important;
    margin-top: 0;
}
/* .EN_CN 按钮已在 style.css 中统一定义 */
/* 移动端汉堡按钮 */
.menu-toggle {
    border: 1px solid #494d7a;
    color: #494d7a;
}

/* 英文站侧边栏 */
.sidebar {
    background: var(--bg-light, #f8f9fa);
    padding: 20px;
    border-radius: 0;
    border-left: 3px solid var(--primary-color, #494d7a);
}

.sidebar-title {
    color: var(--primary-color, #494d7a);
    font-size: 1rem;
    font-weight: 400;
}

.sidebar .nav-link {
    color: var(--body-text, #505050);
    font-weight: 300;
    font-size: 0.9rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: var(--primary-color, #494d7a);
    background: #e8f0fe;
}

/* 英文站卡片 */
.card {
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-3px);
}

.card .card-title {
    color: var(--primary-color, #494d7a);
    font-weight: 400;
}

/* 英文站页脚 - 匹配原站 footer 结构 */
footer {
    margin-top: 2.375rem;
    padding: 2.2rem 0 1rem;
    background-color: #4b555e;
}
footer .col-sm-2 {
    width: 20%;
    padding: 0 0.43rem;
}
footer h1 {
    border-bottom: 0.01rem solid #fff;
    font-size: 0.9375rem !important;
    padding-bottom: 0.8rem;
    color: #fff !important;
    font-weight: 300;
}
footer a {
    font-size: 0.625rem;
    color: #fff;
    font-weight: 300;
    text-decoration: none;
}
footer h1, footer a {
    color: #fff;
    font-weight: 300;
}
footer a:hover {
    color: #fff;
}

/* ========== 英文站响应式适配 ========== */

/* 平板端 (768px-991px) */
@media (max-width: 991px) {
    header .nav-link {
        font-size: 0.85rem;
        padding: 0 0.6rem !important;
        height: 60px;
        line-height: 60px;
    }

    .col-lg-3 .sidebar {
        margin-top: 20px;
    }
}

/* 手机端 (<768px) */
@media (max-width: 768px) {
    .carousel-item img {
        max-height: 250px;
        object-fit: cover;
    }

    .sidebar {
        margin-bottom: 15px;
        padding: 15px;
        border-left: none;
        border-top: 3px solid var(--primary-color, #494d7a);
    }

    .sidebar-title {
        font-size: 1rem;
        cursor: pointer;
        position: relative;
    }

    .sidebar-title::after {
        content: '\f078';
        font-family: FontAwesome;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        transition: transform 0.3s;
    }

    .sidebar-title.collapsed::after {
        transform: translateY(-50%) rotate(-90deg);
    }

    .sidebar .sidebar-nav {
        max-height: 500px;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .sidebar .sidebar-nav.collapsed {
        max-height: 0;
    }

    .sidebar .nav-link {
        padding: 10px 15px;
        min-height: 44px;
        display: flex;
        align-items: center;
        font-size: 14px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .content-area,
    .page-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .breadcrumb {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .card .btn {
        min-height: 36px;
        min-width: 60px;
        padding: 6px 14px;
    }

    .col-lg .card {
        margin-bottom: 10px;
    }

    .list-group-item {
        padding: 12px;
        min-height: 44px;
    }

    .list-group-item h6 {
        font-size: 14px;
    }

    /* Offcanvas */
    .offcanvas {
        width: 280px !important;
    }

    .offcanvas .nav-link {
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #333;
        font-size: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .offcanvas .nav-link:hover,
    .offcanvas .nav-link:focus {
        color: var(--primary-color, #494d7a);
        background: #f8f9fa;
    }

    .offcanvas .nav.flex-column .nav.flex-column .nav-link {
        padding-left: 28px;
        font-size: 14px;
    }

    .offcanvas-header {
        background: var(--primary-color, #494d7a);
        color: #fff;
    }

    .offcanvas-title {
        color: #fff;
    }

    .offcanvas .btn-close {
        filter: brightness(0) invert(1);
    }

    footer h5 {
        font-size: 14px;
    }

    footer a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* 小屏手机 (<576px) */
@media (max-width: 576px) {
    .carousel-item img {
        max-height: 180px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    header .container {
        padding: 5px 10px;
    }

    header {
        padding: 6px 0;
    }

    .col-lg {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .col-lg-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .list-group-item img {
        width: 60px !important;
        height: 45px !important;
    }

    .offcanvas {
        width: 260px !important;
    }
}

/* ========== 原站首页布局样式 ========== */
.box {
    margin-top: 5.3rem;
}
.box.company {
    position: relative;
}
.advimg img {
    width: 100%;
}
.company_btn {
    position: absolute;
    left: 60px;
    bottom: 20%;
    background-color: #F85359;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    padding: 10px 55px;
    display: block;
    border-radius: 10px;
}
.company_btn:hover {
    color: #fff;
    text-decoration: none;
}
.platetil:before {
    content: " ";
    display: block;
}
.platetil h1 {
    padding: 5rem 0;
    margin: 0;
    color: #494d7a;
    text-align: center;
}
.platetil h1 i {
    font-style: normal;
}
.platetil_sol h4,
.platetil_sw h4,
.platetil_hw h4 {
    font-size: 1.7rem;
    color: #494d7a;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    height: 1.8rem;
}
.platetil_sol p,
.platetil_sw p,
.platetil_hw p {
    margin-bottom: 3rem;
    color: #a3a0a0;
    font-size: 0.9375rem;
    font-weight: 300;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    height: 5rem;
}
.platetil_sol a img,
.platetil_sw a img,
.platetil_hw a img {
    width: 100%;
}
/* 页脚社交图标 - 与原站一致 */
.sjico {
    margin-top: 1rem;
    text-align: center;
}
.sjico a {
    color: #B4B9BD !important;
    font-size: 2rem;
    margin-right: 1rem;
}
.sjico a:hover {
    color: #F85359 !important;
}
/* 页脚版权 - 与原站一致 */
.webinfo {
    text-align: right;
    color: #fff;
    font-weight: 300;
    font-size: 0.625rem;
    margin-top: 0;
}
.webinfo p {
    color: #fff;
    font-size: 0.625rem;
    margin: 0;
    font-weight: 300;
}

/* ========== 软件产品infobox卡片（原站风格） ========== */
.infobox {
    border: 0.01rem solid #ccc;
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s;
}
.infobox:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.infobox img {
    margin: 2.375rem 0;
    max-width: 100%;
}
.infobox h3 {
    color: #494d7a;
    font-size: 1.685625rem;
    font-weight: 400;
    padding: 0 2.1875rem;
}
.infobox p {
    color: #a3a0a0;
    font-size: 0.9375rem;
    padding: 0 2.1875rem;
    text-align: left;
    font-weight: 300;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    height: 3rem;
}
.read {
    display: inline-block;
    background-color: #494d7a;
    color: #fff;
    width: 10.125rem;
    height: 2.1875rem;
    line-height: 2.1875rem;
    margin-top: 3rem;
    margin-bottom: 2.375rem;
    text-decoration: none;
}
.read:hover {
    color: #fff;
    text-decoration: none;
}

/* ========== 硬件产品yjbox横向布局（原站风格） ========== */
.yjbox {
    margin-bottom: 2rem;
    position: relative;
}
.yjconbox {
    border: 0.08rem solid #ddd;
    padding-bottom: 5.2rem;
}
.yjbox img {
    float: left;
    max-width: 300px;
}
.yjbox:nth-child(odd) img {
    float: right;
}
.yjbox:nth-child(odd) .yjinfo {
    margin-left: 0;
}
.yjbox:nth-child(odd) .yjconbox {
    padding-left: 2rem;
}
.yjconbox:after {
    display: block;
    content: "";
    clear: both;
}
.yjinfo {
    margin-left: 320px;
    position: relative;
    padding: 1rem 2rem 0 0;
}
.yjinfo h3 {
    color: #494d7a;
    font-size: 1.5rem;
    font-weight: 300;
}
.yjinfo p {
    color: #a6a3a3;
    font-size: 1rem;
    font-weight: 300;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.yjbox > a {
    color: #494d7a;
    position: absolute;
    right: 2rem;
    bottom: 3rem;
    font-size: 1.6rem;
    font-weight: 300;
    text-decoration: none;
}
.yjbox:nth-child(odd) > a {
    left: 2rem;
    right: auto;
}
.yjbox > a:hover {
    color: #494d7a;
}

/* ========== 方案详情页（原站 solu_til / solu_info / context） ========== */
.banner {
    position: relative;
}
.banner img {
    width: 100%;
}
.bannerbox {
    position: absolute;
    top: 3rem;
    min-width: 21.5rem;
}
.bannerbox h1 {
    color: #fff;
    background-color: #494d7a;
    margin: 0;
    font-size: 1.5rem;
    height: 2.4rem;
    line-height: 2.4rem;
    padding-left: 4rem;
}
.bannerbox ul {
    background-color: rgba(255,255,255,0.5);
    overflow: hidden;
}
.bannerbox ul li {
    position: relative;
}
.bannerbox ul li:before {
    display: block;
    content: "";
    width: 0.9375rem;
    height: 0.1875rem;
    background-color: #fff;
    position: absolute;
    top: 1.2rem;
    left: 1.5rem;
}
.bannerbox ul li a {
    margin-left: 3rem;
    padding-left: 1rem;
    display: block;
    width: 100%;
    height: 2.5rem;
    line-height: 2.5rem;
    color: #558090;
    padding-right: 1rem;
}
.bannerbox ul li a:hover {
    background-color: rgba(255,255,255,0.4);
    color: #050505;
}
.onsub {
    background-color: #fff;
    color: #050505 !important;
}
.thismenu {
    position: absolute;
    top: 3rem;
    left: 31rem;
    color: #fff;
    font-size: 2rem;
}
.crumbs {
    padding: 1.775rem 0;
    border-bottom: 0.01rem solid #d3d4d4;
}
.crumbs, .crumbs a {
    color: #231815;
    font-size: 1.125rem;
    font-weight: 300;
}
.solu_til {
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}
.solu_til:after {
    display: block;
    content: "";
    clear: both;
}
.solu_info {
    margin-left: 25rem;
}
.solu_info h1, .solu_info h2 {
    color: #494d7a;
    margin: 0;
}
.solu_info h1 {
    font-size: 1.7rem;
    border-bottom: 0.3rem solid #494d7a;
    padding-top: 6rem;
    padding-bottom: 2rem;
}
.solu_info h2 {
    padding-top: 1.7rem;
    font-size: 2rem;
}
.sub_banner {
    margin: 3.8rem 0;
}
.sub_banner img {
    width: 100%;
}
.solu_t {
    margin-bottom: 3rem;
}
.solu_t h1 {
    border-bottom: 0.3rem solid #494d7a;
    color: #494d7a;
    font-size: 2rem;
    padding-bottom: 1.8rem;
}
.context {
    color: #494d7a;
    line-height: 2.5rem;
    font-weight: 300;
    font-size: 1.3rem;
}
.context p {
    margin: 0;
}
.solution ul {
    padding-left: 1.2rem;
}
.solution ul li {
    list-style-image: url("../images/fangkuai.jpg");
}

/* ========== 合作联系页面（原站 cooph1 / coop_info / msgbox / selbox） ========== */
.cooph1 {
    text-align: center;
    margin: 0;
    margin-bottom: 4.4rem;
}
.coop_info {
    margin: 0;
    margin-bottom: 8rem;
    font-size: 1.3rem;
    color: #a3a3a4;
    font-weight: lighter;
}
.dcl:after {
    display: block;
    content: " ";
    clear: both;
}
.msgbox {
    border: 0.2rem solid #080808;
    padding: 5.625rem 4.8125rem;
}
.msgbox p {
    font-size: 0.9375rem;
    margin: 0;
    line-height: 2rem;
    font-weight: 300;
}
.msgbox input[type=text], .msgbox textarea {
    width: 100%;
}
.msgbox textarea {
    border: 0.1rem solid #525580;
}
.msgbox h3 {
    font-weight: 300;
    font-size: 1.5625rem;
    padding: 3rem 0.9375rem;
    clear: both;
}
.selbox {
    border: 0.13rem solid #525580;
    margin-bottom: 2.375rem;
}
.selbox:after {
    display: block;
    content: "";
    clear: both;
}
.selbox h2 {
    font-size: 1.75rem;
    color: #fff;
    background-color: #5dc5ad;
    margin: 0;
    height: 3.625rem;
    line-height: 3.625rem;
    font-weight: 300;
    padding-left: 2.1875rem;
}
.selboxpadd {
    padding: 2.0625rem 1.4375rem;
}
.selboxpadd:after {
    display: block;
    content: " ";
    clear: both;
}

/* ========== 成功案例列表（原站 success / success_box） ========== */
.success {
    margin: 0;
    padding-bottom: 2rem;
    border-bottom: 0.3rem solid #494d7a;
    color: #494d7a;
    font-size: 3.25rem;
    margin-bottom: 2rem;
}
.success_box {
    margin-bottom: 2rem;
}
.success_box li {
    border-bottom: 0.13rem solid #e1e1e1;
    padding-bottom: 2.7rem;
    padding-top: 2.7rem;
    position: relative;
}
.success_box li:after {
    clear: both;
    display: block;
    content: " ";
}
.more_success {
    position: absolute;
    right: 5rem;
    bottom: 3.5rem;
    color: #494d7a;
}
.more_success:hover {
    color: #494d7a;
}
.success_info {
    height: 5rem;
    overflow: hidden;
}
.success_img {
    float: left;
    margin-left: 4rem;
    margin-top: 1rem;
}
.success_list {
    margin-left: 22rem;
    background-color: #ebf6f6;
    border-left: 0.3rem solid #83ccc9;
    padding: 2rem 3.8rem;
    min-height: 11.5rem;
}
.success_list:after {
    display: block;
    content: " ";
    clear: both;
}
.success_list h1 {
    margin: 0;
    font-size: 1.12rem;
    color: #494d7a;
}
.success_list p {
    font-size: 1rem;
    color: #9fa0a0;
    line-height: 1.4rem;
    padding-top: 0.5rem;
}

/* ========== 图片100%容器 ========== */
.img100 img {
    max-width: 100%;
}

/* ========== 列表样式 ========== */
.list-paddingleft-2 li {
    list-style-image: url('../images/list-icon.jpg');
}
.left {
    float: left;
}
.right {
    float: right;
}

/* ========== 分页 ========== */
.pagenum { overflow: hidden; margin-top: 2rem; }
.pagelist { overflow: hidden; text-align: center; }
.pagelist ul { overflow: hidden; display: inline-block; }
.pagelist ul li { float: left; margin: 3px; }
.pagelist ul li a { display: block; padding: 0px 10px; background: #ddd; color: #666; font-weight: normal; font-size: 13px; }
.pagelist ul li a:hover { background: #494d7a; color: #FFF; }
.currentlist { background: #494d7a; padding: 0px 10px; color: #fff; font-weight: 300; font-size: 13px; }
.othenpage { background: #CCCCCC; padding: 0px 10px; color: #666; font-weight: 300; font-size: 13px; }

/* ========== 英文首页布局还原 ========== */

/* 
 * BS3 float栅格恢复
 * 核心问题：BS5的.row是flex容器，但原站HTML结构中.col-sm-4
 * 不是.row的直接子元素（被.platetil包裹），导致flex宽度不生效。
 * 解决方案：用BS3的float栅格覆盖BS5的flex栅格。
 */

/* 首页嵌套.row不应使用flex（原站BS3的.row是block+clearfix） */
main .container > .row > .row,
main .container > .row > .row > .row,
/* 更宽的选择器确保覆盖BS5 flex */
.container > .row > .row {
    display: block !important;
    margin-left: -15px;
    margin-right: -15px;
    flex-wrap: unset !important;
}
main .container > .row > .row:before,
main .container > .row > .row:after,
main .container > .row > .row > .row:before,
main .container > .row > .row > .row:after,
.container > .row > .row:before,
.container > .row > .row:after {
    content: " ";
    display: table;
}
main .container > .row > .row:after,
main .container > .row > .row > .row:after,
.container > .row > .row:after {
    clear: both;
}

/* plattil区域 - 恢复BS3的float:left栅格 */
/* 全局float规则 */
.platetil .col-sm-4 {
    float: left !important;
    width: 33.33333333% !important;
    flex: none !important;
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}
.platetil .col-sm-12 {
    float: left !important;
    width: 100% !important;
    flex: none !important;
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}
.platetil:after {
    display: block !important;
    content: "";
    clear: both !important;
}

/* 确保platetil父级清除浮动 */
.platetil:before {
    content: " ";
    display: table;
}

/* 容器宽度匹配原站 Bootstrap 3 */
@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 970px;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 750px;
    }
}

/* 轮播图还原原站 BS3 风格 */
.banner {
    position: relative;
    margin-top: 0;
}
.banner img {
    width: 100%;
}

/* 轮播图指示器 - 还原原站 li 风格（BS5用button） */
.carousel-indicators [data-bs-target] {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background-color: rgba(255,255,255,0.5) !important;
    border: 1px solid #fff !important;
    margin: 0 3px !important;
    padding: 0 !important;
    text-indent: -9999px;
    overflow: hidden;
    cursor: pointer;
    box-sizing: content-box;
    flex: 0 0 auto;
}
.carousel-indicators .active {
    background-color: #fff !important;
}

/* 轮播图控制按钮 - 还原原站大箭头风格 */
.carousel-control-prev,
.carousel-control-next {
    width: 8% !important;
    opacity: 0.5;
    filter: alpha(opacity=50);
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.9;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px !important;
    height: 30px !important;
}

/* 轮播图项目 - 移除BS5样式干扰 */
.carousel-item img {
    width: 100% !important;
    max-height: none !important;
    object-fit: fill !important;
    display: block;
}
.carousel-item a {
    display: block;
}

/* 轮播图内边距和过渡 */
.carousel-inner > .carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Company按钮还原原站尺寸 */
.company_btn {
    position: absolute;
    left: 60px;
    bottom: 20%;
    background-color: #F85359;
    color: #fff;
    font-size: 22px !important;
    text-align: center;
    padding: 10px 55px;
    display: block;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
}
.company_btn:hover {
    color: #fff;
    text-decoration: none;
}

/* 页面主体还原原站间距 */
main {
    display: block;
}

/* box区块间距 */
.box {
    margin-top: 5.3rem;
}
.box:first-child {
    margin-top: 0;
}

/* 页脚社交区还原 */
footer .sjico {
    margin-top: 1rem;
    text-align: center;
}
footer .sjico a {
    color: #B4B9BD !important;
    font-size: 2rem;
    margin-right: 1rem;
}


