/**
 * 语言切换按钮样式
 */

.language-switcher {
    position: fixed;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 45px;
}

.lang-btn:hover {
    background: rgba(64, 158, 255, 0.1);
    color: #409eff;
}

.lang-btn.active {
    background: #409eff;
    color: white;
    box-shadow: 0 2px 4px rgba(64, 158, 255, 0.3);
}

.lang-btn:active {
    transform: scale(0.95);
}

/* 深色模式适配（如果需要） */
@media (prefers-color-scheme: dark) {
    .language-switcher {
        background: rgba(30, 30, 30, 0.95);
    }
    
    .lang-btn {
        color: #aaa;
    }
    
    .lang-btn:hover {
        background: rgba(64, 158, 255, 0.2);
        color: #409eff;
    }
}

/* 响应式：小屏幕时缩小 */
@media (max-width: 768px) {
    .language-switcher {
        top: 15px;
        right: 15px;
        padding: 4px;
    }
    
    .lang-btn {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 40px;
    }
}

