html的超链接和它的背景颜色

鼠标划到一定区域内背景颜色改变而区域内的超链接颜色不变,再划到超链接颜色改变是怎么做到的?懂的人请来解答一下

是要这种效果吗?


<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .box{
        width:100%;
        height:100px;
        background-color:#fff;
        border: 1px solid #ccc;
      }
      .box:hover{
        background-color:pink;
      }
      .box a{
        height: 32px;
        background-color: #f00;
        color: #000;
      }
      .box a:hover{
        background-color: yellow;
      }
    </style>
  </head>
  <body>
    <div class="box">
      <a href="http://www.baidu.com" target="_blank" rel="noopener noreferrer">baidu</a>
    <div>
  </body>
</html>