/* 导航栏基础样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    /* background: rgba(255, 255, 255, 0.95); */
    /* backdrop-filter: blur(10px); */
    /* box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); */
    position: relative;
    z-index: 1000;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header .logo  img{
    max-width: 240px;
}
.logo span {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 1px;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #052369;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}
.nav-link.active{
    color: #3dbee8;
}
.nav-link:hover {
    color: #3dbee8;
}

/* 箭头图标 */
.arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #052369;
    transition: all 0.3s ease;
}

.nav-link:hover .arrow {
    border-top-color: #3dbee8;
    transform: rotate(180deg);
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    /* padding: 10px 0; */
    margin: 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: #34495e;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #3dbee8;
    border-left-color: #3dbee8;
    padding-left: 30px;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #052369;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        margin-bottom: 5px;
        position: relative;
    }
    
    .nav-link {
        padding: 15px 0;
        font-size: 16px;
        color: #052369;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* 移动端箭头样式 */
    .nav-item.dropdown .arrow {
        width: 4px;
        height: 4px;
        border: solid #34495e;
        border-width: 0 2px 2px 0;
        display: inline-block;
        padding: 3px;
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        transition: all 0.3s ease;
        margin-left: 10px;
    }
    
    .nav-item.dropdown.active .arrow {
        transform: rotate(-135deg);
        border-color: #3dbee8;
    }
    
    /* 移动端下拉菜单 */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        /* background: #f8f9fa; */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 0;
        margin-top: 0;
    }
    
    .nav-item.dropdown.active .dropdown-menu {
        max-height: 300px;
    }
    
    .dropdown-menu a {
        padding: 12px 20px;
        font-size: 14px;
        border-left: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .dropdown-menu a:hover {
        padding-left: 25px;
        border-left: none;
    }
    
    /* 遮罩层 */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .overlay.active {
        display: block;
        z-index: 8;
    }
}

/* 移动端菜单按钮动画 */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 遮罩层 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 三级菜单样式 */
.has-submenu {
    position: relative;
}

.has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu-arrow {
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid #34495e;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.has-submenu:hover .submenu-arrow {
    border-top-color: #3dbee8;
    /* transform: rotate(-90deg); */
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    list-style: none;
    /*padding: 8px 0;*/
    margin: 0;
    z-index: 1002;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu li {
    margin: 0;
}

.submenu a {
    display: block;
    padding: 10px 20px;
    color: #34495e;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.submenu a:hover {
    background: #f8f9fa;
    color: #3dbee8;
    border-left-color: #3dbee8;
    padding-left: 25px;
}
@media (max-width: 768px) {
    
    /* 移动端三级菜单样式 */
    .has-submenu > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .submenu-arrow {
        width: 4px;
        height: 4px;
        border: solid #34495e;
        border-width: 0 2px 2px 0;
        display: inline-block;
        padding: 3px;
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        transition: all 0.3s ease;
        margin-left: 10px;
    }
    
    .has-submenu.active .submenu-arrow {
        transform: rotate(-135deg);
        border-color: #3dbee8;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        /* background: #f8f9fa; */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 0;
        margin-top: 0;
        padding-left: 20px;
    }
    
    .has-submenu.active .submenu {
        max-height: 200px;
    }
    
    .submenu a {
        padding: 10px 20px;
        font-size: 13px;
        border-left: none;
        border-bottom: 1px solid #e9ecef;
        background: transparent;
    }
    
    .submenu a:hover {
        padding-left: 25px;
        border-left: none;
        background: #e9ecef;
    }
    
}
/* 动画效果 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}