/*----------bootstrap-navbar-css------------*/
.navbar-logo {
    padding: 5px;
    color: #fff;
	display: flex;
	align-items: flex-end;
}

.navbar-logo .text {
	display: flex;
	align-items: center;
	font-size: 38px;
	font-family: "Co Headline W01 Regular";
}

.navbar-brand {
	margin-right: 0;
}

.navbar-mainbg {
    background-color: #101044;
    padding: 0px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    max-width: 950px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
	font-family: "Co Headline W01 Regular";
}

#navbarSupportedContent {
    overflow: hidden;
    position: relative;
    flex: 1;
}

#navbarSupportedContent ul {
    padding: 0px;
    margin: 0px;
}

#navbarSupportedContent ul li a i {
    margin-right: 10px;
}

#navbarSupportedContent li {
    list-style-type: none;
    float: left;
}

#navbarSupportedContent ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 20px 20px;
    transition-duration: 0.6s;
    transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

/* ===== 高亮块：由 active 菜单项自身的背景承担 =====
   旧实现用一个绝对定位的 .hori-selector 去"模拟"高亮，位置靠 JS 量 li 的坐标与宽高；
   字体没加载完、容器换行、JS 没加载、CDN 给了坏文件，任一因素都会让它错位。
   现在直接用 a 元素的 background —— 背景永远在文字下面，位置就是这一项自己，
   两者本质上不可能错位，也不再需要 JS 参与。
   顶部用 inset 阴影压出 10px 的 nav 底色，保持原来"高亮块悬浮一点"的观感。 */
#navbarSupportedContent>ul>li.active>a {
    background-color: #6e00aa;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: inset 0 10px 0 #101044;
    transition: background-color 0.35s;
}

/* 旧的高亮方块整体停用，避免残留元素再画一次 */
.hori-selector,
.hori-selector .left,
.hori-selector .right {
    display: none !important;
}

#navbarSupportedContent>ul>li.active>a {
    color: #fff;
}

#navbarSupportedContent a:not(:only-child):after {
    content: "\f105";
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 20px;
    font-family: iconfont;
    display: inline-block;
    padding-right: 3px;
    vertical-align: middle;
    font-weight: 900;
    transition: 0.5s;
}

#navbarSupportedContent .active>a:not(:only-child):after {
    transform: rotate(90deg);
}

.nav-link .iconfont{
	font-size: 20px !important;
}

@media (min-width: 992px) {
    .navbar-expand-custom {
        -ms-flex-flow: row nowrap;
        flex-flow: row nowrap;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }
    .navbar-expand-custom .navbar-nav {
        -ms-flex-direction: row;
        flex-direction: row;
    }
    .navbar-expand-custom .navbar-toggler {
        display: none;
    }
    .navbar-expand-custom .navbar-collapse {
        display: -ms-flexbox !important;
        display: flex !important;
        -ms-flex-preferred-size: auto;
        flex-basis: auto;
    }
}

@media (max-width: 991px) {
    #navbarSupportedContent ul li a {
        padding: 12px 30px;
    }
    /* 移动端：左侧药丸形高亮，与原来的观感保持一致 */
    #navbarSupportedContent>ul>li.active>a {
        box-shadow: none;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-radius: 25px 0 0 25px;
        margin-left: 10px;
    }
    .navbar-content {
        max-width: none; 
		padding: 0;
        width: 100%;
    }
    .navbar-brand {
        margin-left: 0;
        margin-right: 0;
    }
    .navbar-toggler {
        margin-left: auto;
    }
	
	.navbar-toggler .iconfont {
	    font-size: 20px;
	}
	
    .navbar-collapse {
        flex-direction: column;
        width: 100%;
    }
    .navbar-nav {
        width: 100%;
        margin-left: 0;
    }
    .navbar-nav li {
        float: none;
    }
    .navbar-nav li a {
        float: none;
    }
}
