/* 导航栏容器 */

.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}


/* 固定导航 */

.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}


/* 导航栏内容容器 */

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 105px;
}


/* Logo */

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: block;
    max-height: 50px;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}


/* 主导航 */

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

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    position: relative;
    margin: 0 15px;
}

.main-menu a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

.main-menu a:hover {
    color: var(--primary-color, #007bff);
}


/* 下载按钮 */

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: var(--primary-color, #007bff);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    margin-left: 20px;
}

.download-button:hover {
    background: var(--primary-color-dark, #0056b3);
    color: #fff;
    transform: translateY(-1px);
}


/* 响应式导航 */

@media screen and (max-width: 768px) {
    .header-container {
        height: 60px;
    }
    .main-navigation {
        display: none;
    }
    .download-button {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
}


/* 移动端菜单按钮 */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s;
}


/* 移动端菜单展开状态 */

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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