/* 头部导航样式 */
.header-container {
    width: 100%;
    min-width: 1820px;
    height: 100px;
    /* background-color: red; */
    color: white;
    position: fixed;
    /* 改为fixed定位实现悬浮效果 */
    padding-top: 7px;
    top: 0;
    z-index: 1000;
    background-color: transparent;
    /* 默认透明背景 */
    transition: all 0.3s ease;
    /* 添加过渡效果 */
}

#header-component {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    /* 必须与JS中的headerHeight一致 */
    z-index: 1000;
}

/* 滚动超过50px时的样式 */
.header-container.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content,
.nav-links a {
    color: white;
    transition: all 0.3s ease;
}

/* 滚动后的文字颜色（黑色） */
.header-container.scrolled .header-content,
.header-container.scrolled .nav-links a {
    color: black;
}

.header-content {
    width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 93px;
}

.logoImg {
    width: 225px;
    height: 68px;
    display: inline;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

/* .nav-links a:hover {
    color: white;
} */

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 0;
    height: 3px;
    background: currentColor;
    /* 使用当前文字颜色 */
    border-radius: 3px;
    transition: width 0.3s ease;
}

.srcImg {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.nav-links a.active::after {
    width: 100%;
}

/* 新增二级菜单样式 */
.nav-item {
    position: relative;
}

.submenu {
    position: absolute;
    top: 250%;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 10px 0;
}

.nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
}

.submenu a {
    color: #333 !important;
    display: block;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    transition: all 0.2s;
}

.submenu a:hover {
    background-color: #f5f5f5;
}

/* 确保下划线只对一级导航有效 */
.nav-links>li>a.active::after {
    width: 100%;
}

/* 二级菜单链接不显示下划线 */
.submenu a::after {
    display: none !important;
}

/* 去掉二级菜单前面的小圆点 */
.submenu {
    list-style: none;
    /* 这是关键属性 */
    padding-left: 0;
    /* 去掉默认的左边距 */
}

.submenu li {
    list-style: none;
    /* 确保li元素也没有小圆点 */
}

/* 滚动时的二级菜单样式 */
.header-container.scrolled .submenu {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 二级菜单箭头
.submenu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent white transparent;
} */

/* 滚动后的箭头颜色调整 */
.header-container.scrolled .submenu::before {
    border-color: transparent transparent white transparent;
}

/* 底部样式 */
.footer-container {
    min-width: 1820px;
    height: 231px;
    background-image: url('/static/index/images/footBac.png');
    object-fit: contain;
    background-size: 100%;
    color: #ecf0f1;
    background-color: #1B1B1B;
    padding: 41px 0 0 0;
    margin-bottom: 0;
    /* 确保没有下边距 */
}

.footer-content {
    width: 1400px;
    height: 130px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footLeft {
    width: 600px;
    height: 130px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loginImg {
    width: 190px;
    height: 59px;
    display: block;
}

.fontLeftTxt {
    /*width: 250px;*/
    height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.footLitxt {
    font-weight: 500;
    font-size: 14px;
    color: #FFFFFF;
}

.footRight {
    width: 500px;
    height: 130px;
    display: flex;
    justify-content: space-around;
}

.footCodeBox {
    width: 100px;
    height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.footCodeImgBox {
    width: 100px;
    height: 100px;
    background-color: white;
}

.footCodeImgBoxC {
    width: 100px;
    height: 100px;
}

.footCodeTxt {
    text-align: center;
    width: 100px;
    height: 20px;
    font-weight: 500;
    font-size: 13px;
    color: #FFFFFF;
}

.footer-bottom {
    width: 1400px;
    padding: 16px;
    margin: 41px auto 0 auto;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}