Quick fix, just add this (>) in between thing and a tag as shown below
<style> a {color: #f00;} a:hover,a:focus {color: #c00;} .thing>a {color: #0f0;} </style>