.site-header {
    position     : sticky;
    top          : 0;
    z-index      : 80;
    height       : var(--wj-header-height);
    background   : #fff;
    border-bottom: 1px solid rgba(22, 89, 170, .06)
}

.header-inner {
    width      : min(var(--wj-container), calc(100% - 48px));
    height     : 100%;
    margin     : auto;
    display    : flex;
    align-items: center
}

.brand {
    display    : inline-flex;
    align-items: center;
    min-width  : 205px
}

.brand-logo {
    display: block;
    width  : 116px
}

.brand-logo img {
    width : 100%;
    height: auto
}

.brand-text {
    display: none
}

.desktop-nav {
    height     : 100%;
    display    : flex;
    align-items: center;
    gap        : 36px;
    margin     : auto
}

.desktop-nav>a,
.nav-dropdown-trigger {
    height     : 100%;
    display    : flex;
    align-items: center;
    position   : relative;
    color      : #26324f;
    white-space: nowrap
}

.desktop-nav>a:hover,
.desktop-nav>a.active,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active {
    color: var(--wj-blue)
}

/* 下划线：默认隐藏，悬浮/选中时从中间向两侧展开 */
.desktop-nav>a:after,
.nav-dropdown-trigger:after {
    content         : "";
    position        : absolute;
    left            : 50%;
    bottom          : 0;
    width           : 0;
    height          : 2px;
    border-radius   : 1px;
    background      : var(--wj-blue);
    transform       : translateX(-50%);
    transition      : width .3s ease
}

.desktop-nav>a:hover:after,
.desktop-nav>a.active:after,
.nav-dropdown-trigger:hover:after,
.nav-dropdown-trigger.active:after {
    width: 60px
}

.nav-dropdown {
    height  : 100%;
    position: relative
}

.nav-dropdown-menu {
    position  : absolute;
    left      : 50%;
    top       : 70px;
    min-width : 220px;
    padding   : 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(32, 68, 120, .16);
    transform : translate(-50%, 8px);
    opacity   : 0;
    visibility: hidden;
    transition: .2s
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity   : 1;
    visibility: visible;
    transform : translate(-50%, 0)
}

.nav-dropdown-menu a {
    display    : flex;
    align-items: center;
    gap        : 12px;
    padding    : 12px 14px;
    color      : var(--wj-body)
}

.nav-dropdown-menu a:hover {
    color     : var(--wj-blue);
    background: var(--wj-blue-soft)
}

.nav-dropdown-menu b {
    color    : var(--wj-blue);
    font-size: 12px
}

.nav-dropdown-menu span {
    flex: 1
}

.nav-dropdown-menu i {
    font-style: normal
}

.header-action {
    display: inline-flex;
    align-items: baseline;
    padding: 5px 8px;
    color: #fff;
    background: linear-gradient(90deg, var(--wj-blue), var(--wj-cyan));
    border-radius: 4px;
    white-space: nowrap;
}

.header-action span {
    margin-left: 15px
}

.mobile-menu-trigger,.header-action-mobile,
.mobile-nav {
    display: none
}

.wj-footer {
    position  : relative;
    overflow  : hidden;
    color     : rgba(255, 255, 255, .8);
    background: linear-gradient(105deg, #1670e4, #247ff2);
    background-image: url("../images/ui/home/img_bottom.webp");
    background-size: 100% 100%;
}

/* .wj-footer:before {
    content      : "";
    position     : absolute;
    left         : -110px;
    bottom       : -145px;
    width        : 440px;
    height       : 440px;
    border-radius: 50%;
    background   : repeating-radial-gradient(circle, transparent 0 14px, rgba(87, 219, 255, .2) 15px 17px)
} */

.footer-main {
    position             : relative;
    z-index              : 1;
    display              : grid;
    grid-template-columns: 1.45fr repeat(3, 1fr) 1.3fr;
    gap                  : 38px;
    padding              : 52px 0 45px
}

.footer-brand .brand-logo {
    width : 130px;
    filter: brightness(0) invert(1)
}

.footer-qrs {
    display   : flex;
    gap       : 14px;
    margin-top: 25px
}

.qr-wrap {
    text-align: center
}

.qr-placeholder {
    width           : 66px;
    height          : 66px;
    margin: auto;
    border          : 5px solid #fff;
    background-color: #fff;
    background-image: repeating-linear-gradient(45deg, #111 0 3px, #fff 3px 6px), repeating-linear-gradient(-45deg, transparent 0 4px, #111 4px 6px)
}

.qr-wrap img.qr-code {
    width     : 66px;
    height    : 66px;
    border    : 1px solid #fff;
    box-sizing: content-box;
    object-fit: cover
}

.qr-wrap small {
    display   : block;
    margin-top: 6px;
    font-size : 10px
}

.footer-col {
    display       : flex;
    flex-direction: column;
    gap           : 12px
}

.footer-col strong {
    color        : #fff;
    margin-bottom: 5px
}

.footer-col a {
    font-size: 13px
}

.footer-col a:hover {
    color: #fff
}

.footer-contact span {
    display  : block;
    font-size: 12px
}

.footer-contact strong {
    display  : block;
    color    : #fff;
    font-size: 20px;
    margin   : 7px 0 20px
}

.footer-contact p {
    color      : #fff;
    font-size  : 13px;
    line-height: 1.8;
    margin-top : 8px
}

.footer-bottom {
    position       : relative;
    z-index        : 1;
    display        : flex;
    justify-content: center;
    gap            : 40px;
    padding        : 20px 0;
    border-top     : 1px solid rgba(255, 255, 255, .17);
    font-size      : 12px
}

.floating-contact {
    position     : fixed;
    z-index      : 60;
    right        : 16px;
    top          : 54%;
    transform    : translateY(-50%);
    width        : 58px;
    border-radius: 50px;
    background   : #fff;
    box-shadow   : 0 8px 26px rgba(32, 80, 145, .16)
}

.floating-contact a {
    display        : flex;
    height         : 60px;
    align-items    : center;
    justify-content: center;
    flex-direction : column;
    /* border-bottom  : 1px solid var(--wj-line); */
    color          : #50617e;
    font-size      : 11px
}

.floating-contact b {
    color    : var(--wj-blue);
    font-size: 15px
}

/* 保持 iconfont 图标原始样式，不被 b 的 font-size 覆盖 */
.floating-contact b i.iconfont {
    font-size: 16px;
    color    : inherit
}

.floating-contact .back-top {
    background     : var(--wj-blue);
    color          : #fff;
    border-bottom-left-radius : 50px;
    border-bottom-right-radius: 50px
}

.floating-contact .back-top b {
    color: #fff
}

.contact-modal {
    position   : fixed;
    z-index    : 100;
    inset      : 0;
    display    : none;
    place-items: center
}

.contact-modal.is-open {
    display: grid
}

body.modal-open {
    overflow: hidden
}

.modal-backdrop {
    position       : absolute;
    inset          : 0;
    z-index        : 0;
    background     : rgba(16, 49, 94, .42);
    backdrop-filter: blur(3px);
    border         : 0;
    padding        : 0;
    width          : 100%;
    height         : 100%
}

button.modal-close,
button.modal-backdrop {
    border    : 0;
    padding   : 0;
    cursor    : pointer
}

.contact-modal>section {
    position  : relative;
    z-index   : 1;
    width     : min(620px, calc(100% - 32px));
    max-height: calc(100vh - 36px);
    overflow  : auto;
    background: #fff;
    padding   : 34px;
    box-shadow: 0 24px 60px rgba(18, 56, 105, .25);
    border-radius: 8px;
}

.modal-close {
    position : absolute;
    right    : 18px;
    top      : 14px;
    font-size: 26px
}

.contact-modal section>p {
    font-size     : 12px;
    color         : var(--wj-blue);
    letter-spacing: 2px
}

.contact-modal section>h2 {
    font-size: 25px;
    margin   : 8px 0 10px
}

.contact-modal section>span {
    color: var(--wj-body)
}

.lead-form {
    display              : grid;
    grid-template-columns: 1fr 1fr;
    gap                  : 17px 15px;
    margin-top           : 24px
}

.lead-form label {
    display       : flex;
    flex-direction: column;
    gap           : 7px;
    color         : var(--wj-body)
}

.lead-form label.full {
    grid-column: 1/-1
}

.lead-form label b {
    color: #e54d4d
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width     : 100%;
    border    : 1px solid #dce5f0;
    background: #f8fbff;
    padding   : 11px 12px;
    outline   : none
}

.lead-form textarea {
    min-height: 86px;
    resize    : vertical
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    border-color: var(--wj-blue);
    background  : #fff
}

.lead-form select optgroup,
.lead-form select option {
    font-style : normal
}

.lead-form select {
    appearance         : none;
    -webkit-appearance : none;
    -moz-appearance    : none;
    font-family        : "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size          : inherit;
    color              : inherit;
    border-radius      : 0;
    cursor             : pointer;
    user-select        : none;
    -webkit-user-select: none;
    padding            : 13px 34px 13px 12px;
    background-image   : url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238ea3c0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat  : no-repeat;
    background-position: right 12px center;
    background-size    : 12px auto
}


.lead-form select optgroup {
    padding    : 6px 0;
    font-weight: 600
}

.lead-form select option {
    padding: 6px 0
}

.lead-form select:invalid,
.lead-form select:user-invalid,
.lead-form select:-moz-ui-invalid {
    box-shadow       : none !important;
    outline          : none !important;
    text-decoration  : none !important;
    border-color     : #dce5f0 !important;
    background-color : #fff !important;
    background-image : none !important
}

.lead-form footer {
    grid-column    : 1/-1;
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    padding-top    : 15px;
}

.lead-form button {
    border    : 0;
    color     : #fff;
    background: var(--wj-blue);
    padding   : 12px 20px;
    cursor    : pointer
}

.lead-form-status {
    font-size: 13px;
    color    : var(--wj-muted)
}

.lead-form-status.success {
    color: #16845e
}

.lead-form-status.error {
    color: #d54848
}

@media(max-width:1040px) {
    .desktop-nav {
        gap: 20px
    }

    .brand {
        min-width: 160px
    }

    .brand-logo {
        width: 105px
    }

    .footer-main {
        grid-template-columns: 1.4fr repeat(3, 1fr)
    }

    .footer-contact {
        grid-column: 1/-1
    }
}

@media(max-width:820px) {
    .site-header {
        height: 62px
    }

    .header-inner {
        width: calc(100% - 32px)
    }

    .desktop-nav,
    .header-action {
        display: none
    }
    .header-action-mobile{
         display: flex;
        position: absolute;
        right: 57px;
        cursor: pointer;
        color: #217cef;
    }
     .header-action-mobile i{
        font-size: 21px;
     }

    .mobile-menu-trigger {
        display        : flex;
        margin-left    : auto;
        width          : 38px;
        height         : 38px;
        border         : 0;
        flex-direction : column;
        align-items    : center;
        justify-content: center;
        gap            : 5px;
        z-index: 6666;
         cursor: pointer;
    }

    .mobile-menu-trigger i {
        width     : 22px;
        height    : 2px;
        background: var(--wj-text);
        transition: .2s
    }

    .mobile-menu-trigger.is-open i:first-child {
        transform: translateY(7px) rotate(45deg)
    }

    .mobile-menu-trigger.is-open i:nth-child(2) {
        opacity: 0
    }

    .mobile-menu-trigger.is-open i:last-child {
        transform: translateY(-7px) rotate(-45deg)
    }

    body.mobile-menu-open {
        overflow: hidden
    }

    .mobile-nav {
        position       : fixed;
        inset          : 0;
        z-index        : 1000;
        display        : flex;
        justify-content: flex-end;
        opacity        : 0;
        visibility     : hidden;
        pointer-events : none;
        transition     : opacity .3s ease, visibility .3s ease
    }

    .mobile-nav.is-open {
        opacity       : 1;
        visibility    : visible;
        pointer-events: auto
    }

    .mobile-nav-overlay {
        position  : absolute;
        inset     : 0;
        width     : 100%;
        background: rgba(0, 0, 0, .45)
    }

    .mobile-nav-panel {
        position: absolute;
        top: 0px;
        right: 0px;
        width: max-content;
        min-width: 219px;
        max-width: 71%;
        height: auto;
        max-height: 100%;
        background: #fff;
        border-radius: 8px 0 0 8px;
        box-shadow: -10px 0 30px rgba(30, 71, 127, .18);
        transform: translateX(100%);
        transition: transform .3s ease;
        overflow-y: auto;
        padding: 8px 0 14px;
    }

    .mobile-nav.is-open .mobile-nav-panel {
        transform: translateX(0)
    }

    .mobile-nav-item {
        display      : flex;
        align-items  : center;
        padding      : 14px 24px;
        font-size    : 15px;
        font-weight  : 500;
        color        : var(--wj-text);
        border-bottom: 1px solid var(--wj-line)
    }

    .mobile-nav-item.active {
        color: var(--wj-blue)
    }

    .mobile-nav-sub {
        background: #f7f9fc;
        padding   : 6px 0
    }

    .mobile-nav-sub:empty {
        display: none
    }

    .mobile-nav-sub-item {
        display      : block;
        padding      : 11px 22px 11px 38px;
        font-size    : 14px;
        color        : #4b5b76;
        border-bottom: 1px solid #e9eef5
    }

    .mobile-nav-sub-item:last-child {
        border-bottom: 0
    }

    .mobile-nav-sub-item.active {
        color: var(--wj-blue)
    }

    .footer-main {
        grid-template-columns: 1.2fr 1fr 1fr
    }

    .footer-col:nth-of-type(3) {
        display: none
    }

    .footer-contact {
        grid-column: auto
    }
}

@media(max-width:560px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        padding-top          : 38px
    }

    .footer-brand,
    .footer-contact {
        grid-column: 1/-1
    }

    .footer-col {
        display: none
    }

    .footer-bottom {
        flex-direction: column;
        gap           : 5px;
        text-align    : center;
        margin-bottom: 54px;
    }

    .contact-modal {
        display : none;
        padding : 16px 0;
        overflow: auto
    }

    .contact-modal.is-open {
        display: flex
    }

    .contact-modal>section {
        margin    : auto;
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        width     : calc(100% - 32px);
        padding   : 26px 20px
    }

    .lead-form {
        grid-template-columns: 1fr
    }

    .lead-form label.full,
    .lead-form footer {
        grid-column: 1
    }

    .lead-form footer {
        align-items   : stretch;
        flex-direction: column;
        gap           : 12px
    }

    .floating-contact {
        position    : fixed;
        top         : auto;
        right       : 0;
        bottom      : 0;
        left        : 0;
        width       : 100%;
        display     : flex;
        border-radius: 0;
        box-shadow  : 0 -4px 18px rgba(32, 80, 145, .14);
        transform   : none
    }

    .floating-contact a {
        flex          : 1;
        height        : 54px;
        border-bottom : 0;
        /* border-right  : 1px solid var(--wj-line); */
        font-size     : 12px
    }

    .floating-contact a:last-child {
        border-right: 0;
        border-radius: 0
    }

    body.mobile-menu-open .floating-contact {
        display: none
    }
}