body{margin: 0 !important;}

/* 顶部信息栏样式 */
.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    color: #6c757d;
    font-size: 14px;
}

.social-icons {
    display: flex;
    list-style: none;
}

.social-icons li {
    margin-left: 15px;
}

.social-icons a {
    color: #6c757d;
    font-size: 16px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #007bff;
}

/* 主导航栏样式 */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
   
}

.logo img {
    height: 80px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
    margin: 0 15px;
}

.nav-item > a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

.nav-item > a:hover {
    color: #007bff;
}

/* Mega Menu 样式 */
.mega-menu {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    z-index: 1000;
    /* 使用visibility和opacity代替display控制显示隐藏 */
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}

.mega-menu-content {
    display: flex;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    justify-content: center;
}

.mega-menu-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 15px;
}

.mega-menu-column {
    flex: 1;
    padding: 0 15px;
}

.mega-menu-column h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
}

.mega-menu-column ul li {
    margin-bottom: 10px;
}

.mega-menu-column ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.mega-menu-column ul li a:hover {
    color: #007bff;
}

.nav-item.has-dropdown:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.mega-menu:hover {
    visibility: visible;
    opacity: 1;
}

/* 添加延迟隐藏，防止鼠标移动过程中菜单消失 */
.nav-item.has-dropdown .mega-menu {
    visibility: hidden;
    opacity: 0;
    transition-delay: 0.3s;
}

.nav-item.has-dropdown {
    position: static;
}

.nav-item.has-dropdown .mega-menu {
    top: var(--mega-menu-top);
}

/* 头部工具栏 */
.header-tools {
    display: flex;
    align-items: center;
}

.search-icon, .language-icon {
    margin: 0 10px;
}

.search-icon a, .language-icon a {
    color: #333;
    font-size: 18px;
    transition: color 0.3s;
}

.search-icon a:hover, .language-icon a:hover {
    color: var(--primary-color);
}

.contact-btn .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.contact-btn .btn:hover {
    background-color: var(--primary-color);
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 移动端导航头部 */
.mobile-nav-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* 搜索面板 */
.search-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    z-index: 2000;
}

.search-panel.active {
    display: block;
}

.search-panel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
}

.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-form button {
    padding: 15px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* 语言面板 */
.language-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 2000;
    overflow-y: auto;
}

.language-panel.active {
    right: 0;
}

.language-panel-content {
    padding: 20px;
}

.language-panel-content h3 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.language-list {
    list-style: none;
    padding: 0;
}

.language-list li {
    margin-bottom: 10px;
}

.language-list a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.language-list a:hover, .language-list a.active {
    background-color: #007bff;
    color: #fff;
}

.language-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* 主体内容 */
.main-content {
    padding: 40px 0;
}

.main-content .container {
    margin-bottom: 20px;
}

.main-content h1 {
    color: #333;
    margin-bottom: 20px;
}

.main-content p {
    color: #666;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-list {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav.active .nav-list {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        flex-direction: column;
        padding: 0;
        overflow-y: auto;
    }
    
    .main-nav.active .mobile-nav-header {
        display: flex;
    }
    
    .main-nav.active .nav-list {
        display: flex;
    }
    
    .nav-item {
        margin: 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    .nav-item > a {
        padding: 15px;
    }
    
    .mega-menu {
        position: static;
        transform: none;
        box-shadow: none;
        width: 100%;
        top: auto !important;
        /* 使用visibility和opacity代替display控制显示隐藏 */
        visibility: hidden;
        opacity: 0;
    }
    
    .nav-item.has-dropdown {
        position: relative;
    }
    
    .mega-menu-content {
        flex-direction: column;
        padding: 0;
        width: 100%;
    }
    
    .mega-menu-inner {
        flex-direction: column;
        width: 100%;
    }
    
    .mega-menu-column {
        padding: 15px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .nav-item.has-dropdown.active .mega-menu {
        visibility: visible;
        opacity: 1;
    }
}