/* 统一导航栏样式 - 适用于所有页面 */

/* 导航栏基础样式 - 与partners.html保持一致 */
.nav-bar {
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 55;
}

.nav-bar.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

/* 导航链接样式 - 与partners.html保持一致 */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    color: white;
    font-size: inherit;
}

.nav-link.active {
    color: #3b82f6 !important;
}

/* Logo样式 - 与partners.html保持一致 */
.nav-bar .container a img {
    width: 180px;
    height: 60px;
    margin-left: -100px;
}

/* 语言切换样式 */
.language-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switch a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.language-switch a:hover {
    color: #64ffda;
}

.language-switch a.active {
    color: #3b82f6;
    font-weight: 600;
}

.language-switch span {
    color: rgba(255, 255, 255, 0.5);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    background: rgba(15, 23, 42, 0.95);
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 40;
    flex-direction: column;
    padding: 1rem;
}

.mobile-menu.open {
    display: flex;
}

/* 汉堡菜单按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 响应式设计 - 只在移动端显示汉堡菜单按钮 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        padding: 1rem;
        width: 60px;
        height: 60px;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 60;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-bar .container a img {
        width: 60px;
        height: 40px;
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .hide-on-sm {
        display: none;
    }
}

/* 导航栏容器 - 保持原有结构 */
.nav-bar {
    height: 80px;
    min-height: 80px;
}

.nav-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* 滚动行为 */
html {
    scroll-padding-top: 80px;
}