/* 通用导航栏样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 强制重置导航栏相关元素的样式，确保跨页面一致性 */
.navbar,
.navbar *,
.nav-container,
.nav-container *,
.nav-logo,
.nav-logo *,
.nav-right,
.nav-right *,
.language-btn,
.language-btn * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: normal;
    font-variant-ligatures: normal;
    font-variant-caps: normal;
    font-variant-numeric: normal;
    font-variant-east-asian: normal;
}

/* 导航栏 */
.navbar {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* 固定高度确保一致性 */
    height: 74px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* 固定高度确保内容垂直居中 */
    height: 74px;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    /* 确保logo高度一致 */
    line-height: 1.2;
    height: 44px;
    /* 固定基线对齐 */
    position: relative;
    top: 0;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    /* 防止图片变形 */
    object-fit: cover;
    flex-shrink: 0;
    /* 确保图片垂直居中 */
    display: block;
    margin: 0;
}

.nav-logo span {
    /* 确保文字基线对齐 */
    margin: 0;
    padding: 0;
    vertical-align: baseline;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    letter-spacing: normal;
    word-spacing: normal;
    white-space: nowrap;
    /* 强制基线对齐 */
    display: inline-block;
    height: 32px;
    line-height: 32px;
    vertical-align: middle;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    /* 确保右侧元素不换行 */
    flex-shrink: 0;
    height: 44px;
    position: relative;
}

.language-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    /* 固定高度和宽度 */
    height: 36px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    box-sizing: border-box;
    /* 确保按钮基线对齐 */
    margin: 0;
    vertical-align: baseline;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    letter-spacing: normal;
    word-spacing: normal;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        height: 64px;
        padding: 0;
    }
    
    .nav-container {
        padding: 0 20px;
        height: 64px;
    }
    
    .nav-logo {
        font-size: 1.1rem;
        height: 40px;
        line-height: 1.2;
    }
    
    .nav-logo img {
        width: 28px;
        height: 28px;
    }
    
    .nav-right {
        height: 40px;
    }
    
    .language-btn {
        padding: 6px 12px;
        font-size: 13px;
        height: 32px;
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 60px;
        padding: 0;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-logo {
        font-size: 1rem;
        height: 36px;
        line-height: 1.2;
    }
    
    .nav-logo img {
        width: 24px;
        height: 24px;
    }
    
    .nav-right {
        height: 36px;
    }
    
    .language-btn {
        padding: 6px 10px;
        font-size: 12px;
        height: 30px;
        min-width: 50px;
    }
}

/* 通用滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 滚动效果 */
html {
    scroll-behavior: smooth;
} 