﻿/*导航整体*/
.newMainHeader {
    height: 80px;
    background: #fdd000; /*黄色*/
}
    /*左侧图标*/
    .newMainHeader .leftlogo {
        width: 215px;
        height: 80px;
        background: #003b83; /*深蓝*/
    }
    /*图标和导航间过度图片*/
    .newMainHeader .logo {
        position: absolute;
        top: 5px;
        left: 15px;
        width: 150px;
    }
    /*导航*/
    .newMainHeader .centermenu {
        width: 100%;
        height: 80px;
    }

/*导航图标*/
.menuimg {
    display: inline-block;
}

    .menuimg img {
        height: 20px;
        width: 20px;
        vertical-align: middle;
        margin-top: -4px;
    }

/** 导航基础通用样式 */
.nav > li {
    position: relative;
    display: block;
}

.nav li:hover {
    color: white;
    background: #005ead; /*浅蓝*/
}

    .nav li:hover > ul {
        margin: 0;
        display: block;
        position: absolute;
    }

.nav > li > a {
    position: relative;
    display: block;
    padding: 10px 15px;
}

    .nav > li > a:focus {
        color: white;
        text-decoration: none;
    }

    .nav > li > a:hover {
        text-decoration: none;
    }

    .nav > li > a.menuimg:hover {
        text-decoration: none;
    }

    .nav > li > a:not(.menuimg):hover {
        color: white;
        text-decoration: none;
    }

.nav > li ul {
    display: none;
}

/** 导航栏主菜单样式 */
.navbar-nav {
    flex-direction: row;
    float: left;
    width: auto;
    margin: 0;
}

    .navbar-nav > li {
        float: left;
        height: 80px;
    }

        .navbar-nav > li > a {
            padding: 0 0 0 12px;
            display: inline-block;
            height: 80px;
            padding: 20px 5px;
            font-size: 15px;
            line-height: 40px;
        }

            .navbar-nav > li > a:hover {
                text-decoration: none;
            }

            .navbar-nav > li > a:focus {
                text-decoration: none;
            }

            .navbar-nav > li > a.setting-icon:hover {
                height: 21px;
                margin-top: 1px;
                margin-left: 15px;
                width: 25px;
            }

            /* 关键逻辑：鼠标悬停时切换显示状态 */
            .navbar-nav > li > a:hover .icon-default {
                display: none;
            }

            .navbar-nav > li > a:hover .icon-hover {
                display: inline-block;
            }

        .navbar-nav > li:first-child {
            margin: 0 0 0 0;
        }

        .navbar-nav > li a {
            color: black;
        }

    .navbar-nav .cart-number {
        position: absolute;
        right: 5px;
        top: 20px;
        font-size: 9px;
        display: inline-block;
        line-height: 11px;
        text-align: center;
        border-radius: 4px;
        padding: 4px 4px;
        background: #ff4b00;
    }

    .navbar-nav .user-name {
        max-width: 100px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .navbar-nav .menufirst {
        position: absolute;
        width: 140px;
        top: 79px;
        left: 0;
        z-index: 10;
        border-top: 1px solid #fdd000; /*黄色*/
        background: #003b83; /*深蓝*/
    }

        .navbar-nav .menufirst a {
            color: white;
        }

        .navbar-nav .menufirst:before {
            content: "";
            position: absolute;
            height: 0;
            width: 0;
            left: 50%;
            margin-left: -4px;
            z-index: 2;
        }

        .navbar-nav .menufirst > li {
            float: left;
            width: 100%;
        }

            .navbar-nav .menufirst > li > img {
                float: left;
                margin-right: 3px;
            }

.menufirst > li > img {
    margin: 10px 0;
}

/** 二级下拉菜单样式 */
.navbar-nav .menutwo {
    top: 0;
    left: 140px;
    position: absolute;
    width: 200px;
    z-index: 10;
    background: #003b83; /*深蓝*/
}

    .navbar-nav .menutwo a {
        color: white;
    }

    .navbar-nav .menutwo:before {
        content: "";
        position: absolute;
        height: 0;
        width: 0;
        border-left: 8px solid transparent;
        border-top: 8px solid #fff;
        border-right: 8px solid transparent;
        transform: rotate(270deg);
        top: 15px;
        left: -4px;
        z-index: 2;
    }

    .navbar-nav .menutwo > li {
        float: left;
        width: 100%;
    }

.newMainHeader #navRightList {
    margin-right: 12px;
}

/*图标切换逻辑*/
.icon-default {
    display: inline-block;
}

.icon-hover {
    display: none; /* 默认隐藏悬停图标 */
}

