@charset "UTF-8";
body{
    overflow-x: hidden;
}
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    transition: all 0.3s ease;
    background-color: #244DA7;
    color: #fff;
}

.navbar.navbar-open {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* 滚动后的导航栏样式 */
.navbar.scrolled {

}

/* 导航栏内容容器 */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1560px;
    margin: 0 auto;
    height: 80px;
    width: 92%;
}

/* 品牌logo */
.navbar-brand .logo {
    height: 60px;
    display: block;
}

/* 导航菜单 */
.navbar-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    flex: 1;
}

/* 导航项 */
.nav-item {
    height: 80px;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
    font-size: 18px;
    height: 80px;
    line-height: 80px;
    display: block;
    padding: 0 20px;
}
.nav-item.active .nav-link,
.nav-item.cur .nav-link,
.nav-link:hover {
    color: #fff;
    background: #47B850;
}

.nav-link:focus,
.nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

/* 二级菜单容器 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #333;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* 鼠标悬停时显示二级菜单 */
.nav-item .dropdown.current,
.nav-item:hover .dropdown {
    max-height: 100vh;
    opacity: 1;
}


/* 二级菜单内容容器 */
.dropdown-content {
    width: 92%;
    max-width: 1200px;
    margin: auto;
    padding: 30px 0;
}

/* 二级菜单列 */
.dropdown-column {
    flex: 1;
    min-width: 200px;
    padding: 0 15px;
    margin-bottom: 20px;
}

.dropdown-column h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.dropdown-column a {
    display: block;
    color: #666;
    padding: 5px 0;
    text-decoration: none;
    transition: color 0.3s;
}

.dropdown-column a:hover {
    color: #000;
}

/* 产品网格 */
.nav_pro_list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 40px;
}

.nav_pro_list .item {
    width: calc((100% - 80px) / 5);
    text-decoration: none;
    color: #333;
    column-gap: 12px;
}
.nav_pro_list .item .img img {
    height: 30px;
}
.nav_pro_list .item .t {
    font-size: 16px;
    text-align: center;
    transition: color 0.3s;
    line-height: 1;
}

.nav_pro_list .item:hover .t {
    color: #244DA7;
}

/* 右侧区域 */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar .iconbtn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}
.navbar .iconbtn svg{
    fill: #fff;
    width: 20px;
    height: 20px;
}
.navbar .iconbtn:hover {
    background: #47B850;
    transform: scale(1.1);
}

.navbar .tel {
    display: flex;
    flex-direction: column;
    margin-left: 15px;
    font-weight: bold;
}

.navbar .tel a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 17px;
    white-space: nowrap;
}


/* 搜索区域 */
.navbar-search {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #333;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;

}
.navbar-search.search-open{
    max-height: 100vh;
    opacity: 1;
    min-height: 50vh;
}

.search-form {
    max-width: 900px;
    margin: 80px auto 0;
    display: flex;
    width: 94%;
}

.search-input {
    flex: 1;
    padding: 0 20px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    height: 50px;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: none;
    box-shadow: none;
    outline: none;
}
.search-btn {
    padding: 0 50px;
    background: #244DA7;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.search-btn svg{
    width: 22px;
    height: 22px;
    fill:#fff;
}
.search-btn:hover {
    background: #47B850;
}

.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.search-close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

/* 遮罩层 */
.globalnav-curtain {
    background: rgba(232, 232, 237, .4);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    visibility: hidden;
    position: fixed;
    opacity: 0;
    top: 80px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    z-index: 1;
    transition: opacity .32s cubic-bezier(.4, 0, .6, 1) 80ms, visibility .32s step-end 80ms;
}

.navbar.navbar-open .globalnav-curtain {
    opacity: 1;
    visibility: visible;
    transition: opacity .32s cubic-bezier(.4, 0, .6, 1) 80ms, visibility .32s step-start 80ms;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: #47B850;
}


.search-dropdown {
    position: relative;
    width: 140px;
}
.search-dropdown-header {
    padding: 10px 10px 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color:#333;
    height: 50px;
    box-sizing: border-box;
}
.search-dropdown-header svg{
    color:#ccc;
    width: 16px;
    height: 16px;
}
.search-dropdown-options {
    position: absolute;
    width: 100%;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-top: none;
    background: #fff;
    display: none;
    z-index: 1000;
    box-sizing: border-box;
}
.dropdown-option {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
    color:#333;
}
.dropdown-option:hover {
    color:#244DA7;
}
.search-dropdown .arrow {
    transition: transform 0.3s;
}
.search-dropdown .arrow.open {
    transform: rotate(180deg);
}

.ss_topic{
    max-width: 900px;
    margin:30px auto 80px;
    width: 94%;
}
.ss_topic h2{
    font-size: 18px;
    font-weight: bold;
    color:#244DA7;
    margin-bottom: 20px;
}
.ss_bqlist{
    column-gap: 10px;
    row-gap: 10px;
}
.ss_bqlist a{
    display: inline-block;
    border-radius: 4px;
    border: 1px solid #ddd;
    color:#333;
    padding: 5px 12px;
    font-size: 14px;
}
.ss_bqlist a:hover{
    border-color: #47B850;
    color:#fff;
    background: #47B850;
}

.mfooter{
    height: 60px;
}
.mfooter_main{
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    z-index: 10;
}
.mfooter_main .item{
    width: 25%;
    height: 60px;
    font-size: 15px;
    color:#333;
}
.mfooter_main .item svg{
    width: 25px;
    height: 25px;
    fill:#666;
}
.mfooter_main .item:last-child{
    background: #47B850;
    color:#fff;
}
.mfooter_main .item:last-child svg{
    fill:#fff;
}





/* 移动端样式 */
@media (max-width: 1200px) {
    .nav-link{
        font-size: 15px;
        padding: 0 15px;
    }
    .navbar .tel a{
        font-size: 14px;
    }
    .navbar .iconbtn {
        width: 32px;
        height: 32px;
        background: none;
    }

    .navbar-brand .logo{
        height: 50px;
    }
}

@media (max-width: 1000px) {
    .nav_pro_list .item {
        width: calc((100% - 60px) / 4);
    }

    .nav-item:hover .dropdown{
        opacity: 0;
        max-height: 0;
    }
    .nav-item.current .dropdown.current{
        max-height: 100vh;
        opacity: 1;
    }
    .nav-item.active .nav-link, 
    .nav-link:hover{
        color: #fff;
        background: transparent;
    }

    .navbar-brand .logo{
        height: 40px;
    }

}

@media (max-width: 920px) {
    .navbar{
        position: sticky !important;
    }
    .navbar-container {
        padding: 0 4%;
        height: 60px;
    }

    .navbar-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #244DA7;
        color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 99;
        box-sizing: border-box;
    }

    .navbar-menu.current {
        max-height: 100vh;
        overflow-y: auto;
    }

    .nav-item {
        width: 100%;
        margin: 0;
        padding: 0;
        height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        position: relative;
        padding: 15px 20px;
        height: auto;
        line-height: 1.5;
        box-sizing: border-box;
    }

    .dropdown {
        position: static;
        width: 100%;
        transform: none;
        max-height: 0;
        background-color: #fff;
        box-shadow: none;
        left: 0;
    }

    .dropdown.current {
        max-height: 1000px;
        opacity: 1;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .dropdown-content {
        padding: 15px;
        flex-direction: column;
        box-sizing: border-box;
        width: 100%;
    }

    .dropdown-column {
        width: 100%;
        padding: 0;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 4%;
    }

    /* 添加箭头图标 */
    .has-dropdown .nav-link::after {
        content: '+';
        font-size: 20px;
        transition: transform 0.3s;
    }

    .has-dropdown.current .nav-link::after {
        content: '-';
    }
    .nav_pro_list{
        row-gap: 20px;
    }
    .nav_pro_list .item {
        width: calc(50% - 10px);
        column-gap: 10px;
    }
    .nav_pro_list .item .img img{
        height: 20px;
    }
    .nav_pro_list .item .t{
        font-size: 14px;
        word-break: break-all;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
    }

    .navbar-right .tel {
        display: none;
    }
    .navbar-right{
        position: absolute;
        left: 4%;
    }
    .navbar-right .flex{
        display: none !important;
    }
    .navbar-brand{
        display: flex;
        justify-content: center;
        width: 100%;
        position: absolute;
        left: 0;
    }

    #navPage{
        display: none;
    }

    .search-form{
        margin-top: 30px;
    }
    .search-btn{
        padding: 0 12px;
    }

    .search-dropdown-header{
        height: 45px;
        padding: 5px;
        font-size: 13px;
    }
    .search-input{
        padding: 0 10px;
        height: 45px;
    }
    .search-dropdown{
        width: 90px;
    }
    .globalnav-curtain{
        top: 60px;
        height: calc(100vh - 60px);
    }
    

}