/* CSS修复文件 - 解决样式问题 */

/* 确保语言切换器在所有情况下都可见 */
.language-switcher {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 修复可能的z-index问题 */
.language-switcher {
    z-index: 1000;
    position: relative;
}

/* 确保按钮样式正常 */
.lang-btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 修复移动端导航栏布局 */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        position: relative;
    }
    
    .nav-links {
        order: 2;
        width: 100%;
        margin-top: 1rem;
    }
    
    .language-switcher {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
        background: rgba(255, 255, 255, 0.95);
        padding: 0.5rem 0;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-toggle {
        order: 1;
    }
}

/* 修复可能的字体问题 */
.lang-btn {
    font-family: inherit !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
}

/* 确保hover效果正常 */
.lang-btn:hover {
    transform: translateY(-2px) !important;
    transition: all 0.3s ease !important;
}

/* 修复可能的颜色问题 */
.lang-btn {
    color: #007bff !important;
    border-color: #007bff !important;
}

.lang-btn:hover,
.lang-btn.active {
    background-color: #007bff !important;
    color: white !important;
}

/* 修复移动端按钮大小 */
@media (max-width: 480px) {
    .lang-btn {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.75rem !important;
        margin: 0 0.3rem !important;
    }
}
