/*
 * 导航栏专用样式
 * 重新设计 - 简洁清晰
 */

/* 头部固定 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* 修复container对导航栏的影响 */
.header .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* 导航栏容器 */
.nav-bar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    flex-direction: row !important;
}

/* Logo样式 */
.logo {
    font-size: 18px;
    font-weight: bold;
    color: #1a4a7e;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #ff6600;
}

/* 导航菜单 */
.nav-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

/* 导航项 */
.nav-item {
    position: relative;
    margin: 0;
    padding: 0;
}

/* 一级菜单链接 */
.nav-item > a {
    display: block;
    padding: 0 20px;
    line-height: 80px;
    color: #333333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-item > a:hover {
    color: #ff6600;
    background-color: #f8f8f8;
}

/* 图标 */
.nav-item > a i {
    margin-left: 4px;
    font-size: 12px;
}

/* 下拉菜单 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    min-width: 200px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #ff6600;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 999;
}

/* 鼠标悬停显示下拉菜单 */
.nav-item:hover > .dropdown-menu {
    display: block;
}

/* 下拉菜单项 */
.dropdown-item {
    margin: 0;
    padding: 0;
}

.dropdown-item a {
    display: block;
    padding: 10px 20px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.dropdown-item a:hover {
    background-color: #f8f8f8;
    color: #ff6600;
    padding-left: 25px;
}

/* 移动端菜单按钮（默认隐藏） */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: #333333;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

/* 响应式设计 - 平板及以下 */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 0;
    }
    
    .nav-item > a {
        padding: 0 12px;
        font-size: 14px;
    }
    
    .dropdown-menu {
        min-width: 180px;
    }
}

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-item > a {
        padding: 15px 20px;
        line-height: 1.6;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid #ff6600;
        background-color: #f8f8f8;
        display: none;
    }
    
    .nav-item.active > .dropdown-menu {
        display: block;
    }
}
