/* 语言切换器样式 */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.language-switcher button {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background-color: white;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switcher button:hover {
    border-color: #4CAF50;
    color: #4CAF50;
    background-color: #f0f9f0;
}

.language-switcher button.active {
    border-color: #4CAF50;
    background-color: #4CAF50;
    color: white;
}

.language-switcher button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 3px;
    }
    
    .language-switcher button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 加载状态 */
.i18n-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 平滑过渡 */
[data-i18n] {
    transition: opacity 0.2s ease;
}

.i18n-transitioning [data-i18n] {
    opacity: 0;
}
