/* 确保下拉菜单默认隐藏 */
.dropdown-menu {
    display: none;
    margin-top: 0;
    /* 消除默认间距 */
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.index-header{
    /* margin-top: -10px; */
}

/* 仅在悬停时显示下拉菜单 */
.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(90px);
}

/* 移除按钮的点击交互样式 */
.dropdown-toggle {
    cursor: default;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* 去掉bootstrap dropdown默认箭头*/
.dropdown-toggle::after {
    display: none !important;
}

.dropdown-toggle:focus,
.dropdown-toggle:active {
    outline: none !important;
    box-shadow: none !important;
}

.active-header {
    color: #1b8efc;
    border-bottom: 1px solid #ccc;
}

/* 检查顶层容器是否有额外边距*/
.ads-container {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 1055px;
    box-sizing: border-box;
}

.ads-container .ad-item {
    display: flex !important;
    /* width: 100%!important; */
    flex: 1 1 0%;
    /* min-width: 190px; */
    margin-left: 3px;
    width: 200px;
}

.ads-container a img {
    width: 100% !important;
    height: 80px !important;
}

.image-container {
    position: relative;
}

.logo_ad2 {
    margin: 10px auto 0;
    width: 1200px;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo_ad2 .a {
    display: block;
    width: 145px;
    background: url(../images/logo.png) no-repeat center center;
    background-size: 100% 100%;
    overflow: hidden;
    cursor: pointer;
}

.logo_ad2 .a h1{
    text-indent: -9999em;
}



/* 新增：bannerli 内SVG与文字对齐 */
.bannerli {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* 图标和文字间距，可按需调整 */
    vertical-align: middle;
}

/* 新增：SVG本身垂直对齐（兜底） */
.bannerli svg,
.dropdown-toggle svg {
    flex-shrink: 0;
    /* 防止SVG被压缩 */
    vertical-align: middle;
}

/* 新增：修复router-link内的对齐 */
.bannerli router-link,
.bannerli a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.bannerli svg{
    display: inline;
}

.bannerli img{
    display: inline;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 14px;
    color: #333 !important;
    padding: 0 8px !important;
    margin: 0;
    height: 50px;
    transition: all 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

/* 前四个菜单项边距更小 */
.nav-link.compact {
    padding: 0 4px !important;
}

/* 图标和文字大小一致 */
.bannerli svg,
.bannerli img,
.nav-link svg,
.nav-link img {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
    vertical-align: middle !important;
}

.dropdown-toggle svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
    vertical-align: middle !important;
}

.banner {
    display: flex;
    align-items: center;
    height: 50px;
    gap: 0;
}

/* 统一图标和文字的对齐 */
.bannerli {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.bannerli svg,
.bannerli img {
    width: 17px;
    height: 20px;
    flex-shrink: 0;
}

/* 伪元素下划线 */
.nav-item-hover:hover::after {
    content: '';
    position: absolute;
    bottom: 8px;  /* 从 -8px 改成 -2px，让下划线更靠近文字 */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1b8efc;
    border-radius: 1px;
}

/* 悬浮和激活颜色 */