/* ==========================================================
   1. 基础重置与通用样式 (已修复全站居中问题)
   ========================================================== */
body, ul, li, figure {
    padding: 0;
    list-style: none;
}

body {
    margin: 0 auto; /* 确保在大屏下居中 */
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    max-width: 1920px;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul, li, figure {
    margin: 0;
}

h1, h2, h3, h4, h5, h6, figure {
    font-weight: normal;
    margin: 0;
    padding: 0;
}

a { text-decoration: none; }
i { font-style: normal; }
.m-d-none, .none { display: none; }

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.5);
    position: absolute;
    right: 0;
    top: 0;
}
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 0 rgba(230, 33, 41, 0.2);
    border-radius: 0;
    background: rgba(255, 255, 255, 0);
}
::-webkit-scrollbar-thumb {
    border-radius: .035rem;
    box-shadow: inset 0 0 0 rgba(255, 255, 255, 0);
    background-color: #333;
}

/* 选中文字样式 */
::selection {
    background: #AF1E23;
    color: #fff;
}

/* 通用布局类 */
.wrap-box, .main {
    box-sizing: border-box;
    padding-left: 11vw;
    padding-right: 11vw;
    width: 100%;
}
@media screen and (max-width: 1600px) {
    .wrap-box, .main { padding-left: 7.5vw; padding-right: 7.5vw; }
}
@media screen and (max-width: 1440px) {
    .wrap-box, .main { padding-left: 100px; padding-right: 100px; }
}
@media screen and (max-width: 1360px) {
    .wrap-box, .main { padding-left: 80px; padding-right: 80px; }
}
@media screen and (max-width: 768px) {
    .wrap-box, .main { 
        max-width: 100%; 
        padding-left: .2rem; 
        padding-right: .2rem; 
    }
}

/* 文字动画类 */
.txt-up i {
    will-change: transform, opacity;
    display: inline-block;
    font-weight: inherit;
    opacity: 0;
    transform: translateY(80%);
    clip-path: inset(0% 0% 0% 100%);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), clip-path 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}
.txt-up i.kg {
    min-width: 0.5em;
    min-height: 1em;
}

/* ==========================================================
   2. Header 头部结构
   ========================================================== */
header {
    width: 100%;
    text-align: center;
    display: flex;
    font-size: 0;
    z-index: 998;
    height: 80px;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    transition: all .5s ease-in-out;
}

.kmain {
    padding: 0;
    margin: auto;
    max-width: 1920px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ★ 用 flex + order 调整顺序：左(logo) → 中(导航) → 右(搜索)
      HTML 里原本的顺序是 左 → 右 → 中，用 order 即可重新排 */
header .kmain .header-left {
    order: 1;
    flex: 0 0 auto;
    padding: 0 0 0 10px;   /* 去掉原 padding-top，flex 会垂直居中 */
}
header .header-left .logo a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header .header-left .logo img {
    max-width: 100%;
    height: 60px;
}
header .header-left .logo svg {
    height: 46px;
    width: auto;
}
header .header-left .logo svg path {
    transition: all .3s ease-in-out;
}

/* ★ 中间导航：占满剩余宽度，并在 logo 与搜索之间居中 */
header .kmain .header-center {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
    margin-right: 0;
}

/* ★ 右侧搜索：固定宽度，贴在右边 */
header .kmain .header-right {
    order: 3;
    flex: 0 0 auto;
}

/* ==========================================================
   3. 右侧图标与搜索
   ========================================================== */
header .header-right .h-ico-list {
    margin: 25px;
}
header .header-right .h-ico-list a,
header .header-right .h-ico-list i {
    width: 100%;
    line-height: 26px;
    color: #333;
    font-family: "common";
    cursor: pointer;
    transition: all .5s ease-in-out;
}
header .header-right .h-ico-list a { font-size: 18px; }
header .header-right .h-ico-list i { font-size: 16px; }

header .header-right .h-ico-list .ico.flex {
    display: flex;
    justify-content: space-between;
}
header .header-right .h-ico-list a.ico i, 
header .header-right .h-ico-list .search i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 32px;
    display: inline-block;
    text-align: center;
}
header .header-right .h-ico-list a.ico i:hover, 
header .header-right .h-ico-list .search i:hover {
    background: #AF1E23;
    color: #fff;
}
header .header-right .h-ico-list a.ico { margin-left: 10px; }
header .header-right .h-ico-list a.ico i { font-size: 20px; }

/* ==========================================================
   4. 导航栏 Navbar
   ========================================================== */
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0;
    transition: all .3s ease-in-out;
}
header nav .menu { display: none; }
header nav .menu span,
header nav .menu span::after, 
header nav .menu span::before {
    transition: all .3s ease-in-out;
}

header nav .navbar-nav {
    display: inline-block;
    vertical-align: middle;
}
header nav .navbar-nav > li {
    display: inline-flex;
    align-items: center;
    height: 80px;
    vertical-align: middle;
    margin-right: 55px;
}
/* ★ 最后一项不再带右间距，避免居中时视觉偏左 */
header nav .navbar-nav > li:last-child {
    margin-right: 0;
}
header nav .navbar-nav > li:not(.p) { position: relative; }
header nav .navbar-nav > li a {
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
header nav .navbar-nav > li a span {
    line-height: 80px;
    color: #333;
    font-size: 18px;
    font-weight: 400;
    background: linear-gradient(#AF1E23, #AF1E23) 100% 100% / 0 4px no-repeat;
    will-change: background-size;
    transition: background-size 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) 0s, color 0.3s ease;
}

/* 下拉菜单 */
header nav .navbar-nav > li .child {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0.1rem 0.1rem rgba(153, 153, 153, 0.3);
    transition: all .3s ease-in-out;
}
header nav .navbar-nav > li .child .list {
    width: 100%;
    text-align: center;
}
header nav .navbar-nav > li .child .list .nav-item2 a {
    color: #555;
    display: block;
    padding: .18rem 0;
    line-height: 1;
    height: auto;
    font-size: .16rem;
    border-bottom: 1px solid #eee;
    transition: all .3s ease-in-out;
}
header nav .navbar-nav > li .child .list .nav-item2 a:hover {
    background: none;
    color: #AF1E23;
}

/* 产品中心全宽下拉 */
header nav .navbar-nav > li.p .child {
    width: 100%;
    max-width: 1920px;
    height: 180px;
    overflow-y: auto;
    border-top: 1px solid #ddd;
}
header nav .navbar-nav > li.p .child .list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0rem;
    height: auto;
}
header nav .navbar-nav > li.p .child .list .nav-item2 {
    border-right: 1px solid #eee;
}
header nav .navbar-nav > li .child .list .nav-item2 a.flex {
    display: flex;
    justify-content: space-between;
    padding: .18rem .18rem;
}
header nav .navbar-nav > li .child .list .nav-item2 a.flex .img {
    width: .48rem;
    height: .48rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: .1rem;
}
header nav .navbar-nav > li .child .list .nav-item2 a.flex .img img {
    max-width: 100%;
    max-height: 100%;
    flex-shrink: 0;
}
header nav .navbar-nav > li .child .list .nav-item2 a.flex div {
    width: 100%;
    text-align: left;
}

/* hover 和激活态 */
header nav .navbar-nav > li:hover a span, 
header nav .navbar-nav > li.active a span {
    background-position: 0 100%;
    background-size: 100% 3px;
    color: #AF1E23;
    font-weight: bold;
}
header nav .navbar-nav > li:hover .child {
    opacity: 1;
    pointer-events: auto;
}

header.active {
    background: #fff;
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.2);
}
header.active .header-right .h-ico-list .search i {
    color: #AF1E23;
    border-color: #AF1E23;
}
header.active .header-right .h-ico-list .search:hover i {
    color: #fff;
}
header.active nav .navbar-nav > li a span {
    color: #333;
}
header.active nav .navbar-nav > li.active a span, 
header.active nav .navbar-nav > li:hover a span {
    background: linear-gradient(#AF1E23, #AF1E23) 0 100% / 100% 3px no-repeat;
    color: #AF1E23;
}

/* 弹窗搜索 */
.i-search {
    position: fixed;
    top: 0;
    left: 0;
    font-size: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: none;
}
.i-search .box {
    width: 10rem;
    height: auto;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.i-search .box form { position: relative; }
.i-search .box form input {
    border: none;
    border-bottom: 1px solid #fff;
    background: none;
    font-size: .3rem;
    color: #fff;
    width: 100%;
    line-height: 1;
    padding: .2rem 0;
    display: block;
    outline: none;
    margin-bottom: .3rem;
    font-family: "Microsoft YaHei", sans-serif;
}
.i-search .box form input::placeholder { color: #fff; }
.i-search .box form button {
    width: .6rem;
    height: .6rem;
    font-family: "common";
    color: #fff;
    text-align: center;
    line-height: .6rem;
    font-size: .36rem;
    border: none;
    outline: none;
    cursor: pointer;
    background: none;
    position: absolute;
    right: 0;
    top: 0;
    transition: all 0.5s ease-in-out;
}
.i-search .box form button:hover { color: #AF1E23; }
.i-search .close {
    position: absolute;
    right: .4rem;
    top: .4rem;
}
.i-search .close i {
    font-family: "common";
    font-size: .48rem;
    color: #fff;
    display: inline-block;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
}
.i-search .close i:hover {
    color: #AF1E23;
    transform: rotate(180deg);
}

/* ==========================================================
   5. 媒体查询适配
   ========================================================== */
@media screen and (max-width: 1440px) {
    header nav .navbar-nav > li { margin-right: 40px; }
    header nav .navbar-nav > li:last-child { margin-right: 0; } /* ★ 覆盖 */
    header nav .navbar-nav > li a span { font-size: 16px; }
}
@media screen and (max-width: 1360px) {
    header nav .navbar-nav > li .child .list .nav-item2 a { font-size: 14px; }
    header nav .navbar-nav > li .child .list .nav-item2 a.flex { padding: 14px; }
    header nav .navbar-nav > li .child .list .nav-item2 a.flex .img {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }
}

/* ==========================================================
   6. 手机端
   ========================================================== */
@media screen and (max-width: 768px) {
    body.hidden { overflow: hidden; }

    /* ★ 手机端恢复 block，避免 flex 影响 fixed 定位的汉堡菜单 */
    header .kmain {
        display: block;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 998;
        height: .6rem;
        background: #fff;
        transition: all 0.5s ease-in-out;
        box-shadow: 0 0 0.2rem rgba(230, 0, 18, 0.2);
    }
    header .header-left {
        position: fixed;
        top: 0;
        left: .2rem;
        height: .6rem;
        padding: 0;
        z-index: 2;
    }
    header .header-left .logo img { height: .32rem; max-width: auto }
    header .header-right .h-ico-list { display: none; }

    header.active { height: 100vh; overflow: hidden; }
    header.active .header-left { top: .3rem; left: .3rem; }

    .navber {
        position: fixed;
        right: 0;
        top: 0;
        height: .7rem;
        overflow: hidden;
    }
    .navber .menu {
        display: block;
        width: .22rem;
        height: .36rem;
        position: fixed;
        right: .25rem;
        top: .1rem;
        z-index: 2;
        transition: all 0.5s ease-in-out;
    }
    .navber .menu span {
        display: block;
        background: #333;
        width: 100%;
        height: 2px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
    }
    .navber .menu span::after,
    .navber .menu span::before {
        content: "";
        background: #333;
        width: 100%;
        height: 2px;
        position: absolute;
        left: 0;
    }
    .navber .menu span::after { top: -.07rem; }
    .navber .menu span::before { bottom: -.07rem; }

    /* 手机端菜单主容器 */
    .navber .navbar-nav {
        width: 100%;
        left: 0;
        position: fixed;
        top: -100vh;
        background: #fff;
        height: calc(100vh - 1rem);
        padding: 0 .3rem;
        margin: 1rem 0 0;
        box-sizing: border-box;
        transition: all 0.5s ease-in-out .5s;
        opacity: 0;
        transform: translateY(0);
        overflow-x: hidden;
        overflow-y: auto;
    }

    .navber .navbar-nav > li {
        display: block;
        margin: 0;
        height: auto;
        opacity: 0;
        transition: all 0.5s ease-in-out;
        border-bottom: 1px solid #eee;
        padding: .25rem 0;
    }
    .navber .navbar-nav > li.haschild > a::before {
        content: "\e61c";
        font-family: "common";
        font-size: .16rem;
        height: .4rem;
        width: .4rem;
        text-align: center;
        line-height: .4rem;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    .navber .navbar-nav > li.haschild.click > a::before {
        transform: rotate(90deg) translateX(-50%);
    }

    .navber .navbar-nav > li a {
        height: auto;
        display: block;
        position: relative;
    }
    .navber .navbar-nav > li a span {
        font-size: .18rem;
        line-height: 1.5;
    }
    .navber .navbar-nav > li a::after { display: none !important; }

    .navber .navbar-nav > li .child {
        position: relative;
        left: 0;
        top: 0;
        transform: translate(0, 0);
        pointer-events: auto;
        display: none;
        margin-top: .15rem;
        box-shadow: none;
    }

    /* 产品中心下拉保持 2 列 */
    .navber .navbar-nav > li.p .child {
        width: 100%;
        height: auto;
        border-top: none;
    }
    .navber .navbar-nav > li.p .child .list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: .1rem;
        height: auto;
    }
    .navber .navbar-nav > li.p .child .list .nav-item2 {
        background: #f5f5f5;
        padding: .12rem;
        text-align: center;
    }
    .navber .navbar-nav > li.p .child .list .nav-item2 a {
        font-size: .14rem;
        padding: 0;
        line-height: 1.4;
        border-bottom: none;
    }

    /* 其它普通菜单占满 3 列 */
    .navber .navbar-nav > li:not(.p) .child .list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: .1rem;
    }
    .navber .navbar-nav > li:not(.p) .child .list .nav-item2 {
        text-align: center;
        padding: .12rem 0;
        background: #f5f5f5;
    }
    .navber .navbar-nav > li:not(.p) .child .list .nav-item2 a {
        font-size: .14rem;
        padding: 0;
        border-bottom: none;
        display: block;
        white-space: nowrap;
    }

    .navber .navbar-nav > li:hover,
    .navber .navbar-nav > li.active { border-color: #AF1E23; }
    .navber .navbar-nav > li:hover a,
    .navber .navbar-nav > li.active a { color: #333; }
    .navber .navbar-nav > li:hover a span,
    .navber .navbar-nav > li.active a span { background: none !important; }
    .navber .navbar-nav > li:first-of-type { border-top: 1px solid #eee; }

    /* 展开状态 */
    .navber.open { pointer-events: auto; height: 100vh; }
    .navber.open .menu { right: .45rem; top: .43rem; }
    .navber.open .menu span { background: transparent; }
    .navber.open .menu span::after { transform: rotate(45deg); top: 0; bottom: 0; background: #333; }
    .navber.open .menu span::before { transform: rotate(-45deg); top: 0; bottom: 0; background: #333; }
    .navber.open .navbar-nav { top: 0; opacity: 1; transition: all 0.5s ease-in-out; }
    .navber.open .navbar-nav li { opacity: 1; transition: all 0.5s ease-in-out .5s; }

    .i-search {
        height: auto;
        top: .7rem;
        box-sizing: border-box;
        padding: .16rem .2rem;
    }
    .i-search .box { top: 0; left: 0; width: 100%; transform: translate(0); }
    .i-search .box form input { font-size: .16rem; margin: 0; padding: .16rem 0; }
    .i-search .box form button { width: 30%; font-size: .16rem; padding: .16rem 0; line-height: 1; display: none; }
    .i-search .close { top: 50%; transform: translateY(-50%); right: .2rem; }
    .i-search .close i { font-size: .28rem; }
}


 /* 独立作用域，避免和其他模块冲突 */
 .hx-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #E5ECF1;
    padding: 70px 20px 30px; 
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    box-sizing: border-box;
    line-height: 1.5;
}
.hx-footer *,
.hx-footer *::before,
.hx-footer *::after {
    box-sizing: border-box;
}
.hx-footer .hx-container {
    max-width: 1600px;
    margin: 0 auto;
}
/* 顶部主内容区 */
.hx-footer .footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}
/* 左侧联系信息 */
.hx-footer .footer-left {
    width: 35%;
    max-width: 450px;
}

.hx-footer .footer-logo {
    /* ★ 核心修改：加上负的 margin-top，让 LOGO 单独往上提 */
    margin-top: -15px; 
    margin-bottom: 25px; 
}

.hx-footer .footer-logo img {
    height: 75px; 
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.hx-footer .contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hx-footer .contact-item {
    display: flex;
    align-items: center;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

/* 图标样式 */
.hx-footer .contact-item svg {
    width: 26px;
    height: 26px;
    fill: #073773;
    background-color: #85b5f0;
    border-radius: 50%;
    padding: 6px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* 右侧导航区 */
.hx-footer .footer-right {
    flex: 1;
    padding-left: 60px;
}
.hx-footer .footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: start;
}
.hx-footer .hx-footer-col {
    display: flex;
    flex-direction: column;
}
.hx-footer .hx-footer-col-title {
    font-size: 18px;
    font-weight: bold;
    color: #0f3480;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    line-height: 24px !important;
    height: 24px !important;
    display: block !important;
}
.hx-footer .hx-footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 !important;
    padding: 0 !important;
}
.hx-footer .hx-footer-link {
    display: block !important;
    height: 22px !important;
    line-height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}
.hx-footer .hx-footer-link:hover,
.hx-footer .hx-footer-link.active {
    color: #c82222;
}
/* 底部版权区 */
.hx-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid #c9d4dc;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}
.hx-footer .footer-bottom a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}
.hx-footer .footer-bottom a:hover {
    color: #c82222;
}
/* ===== 响应式适配 ===== */
@media (max-width: 992px) {
    .hx-footer .footer-main {
        flex-direction: column;
        gap: 40px;
    }
    .hx-footer .footer-left {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    /* 手机/平板端复位，不再需要负边距 */
    .hx-footer .footer-logo {
        margin-top: 0;
    }
    .hx-footer .contact-list {
        display: flex !important;
        flex-direction: column;
        text-align: left;
    }
    .hx-footer .footer-right {
        padding-left: 0;
        width: 100%;
    }
    .hx-footer .footer-nav {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .hx-footer {
        padding: 30px 20px 20px;
    }
    .hx-footer .footer-main {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
    }
    .hx-footer .footer-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hx-footer .footer-logo {
        margin-bottom: 20px;
    }
    .hx-footer .footer-logo img {
        height: 50px;
    }
    .hx-footer .contact-list {
        gap: 12px;
        display: flex;
        flex-direction: column;
        text-align: left;
    }
    .hx-footer .contact-item {
        font-size: 14px;
        justify-content: flex-start;
    }
    .hx-footer .contact-item svg {
        width: 24px;
        height: 24px;
        padding: 5px;
        margin-right: 8px;
    }
    .hx-footer .footer-right {
        padding-left: 0;
        width: 100%;
    }
    .hx-footer .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 320px;
        margin: 0 auto;
    }
    .hx-footer .hx-footer-col {
        align-items: flex-start;
    }
    .hx-footer .hx-footer-col-title {
        font-size: 15px;
        margin-bottom: 12px !important;
        text-align: left;
    }
    .hx-footer .hx-footer-links {
        gap: 10px;
        align-items: flex-start;
    }
    .hx-footer .hx-footer-link {
        font-size: 13px;
        text-align: left;
        color: #666;
    }
    .hx-footer .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 12px;
        padding-top: 20px;
        border-top: none;
    }
}