* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FFFFFF;
  background-color: #434750;
}



a {
  color: #FFFFFF; /* 默认链接颜色 */
  text-decoration: none; /* 移除下划线 */
}
 
/* 设置访问过的超链接颜色 */
a:visited {
  color: #FFFFFF; /* 访问过的链接为紫色 */
}
 
/* 设置鼠标悬停在超链接时的颜色 */
a:hover {
  color: #FFFFFF; /* 鼠标悬停时为红色 */
}
 
/* 设置超链接被点击时的颜色 */
a:active {
  color: #FFFFFF; /* 点击时为绿色 */
}


.list {
  list-style-type: none;
}
.list-item {
  padding: 1rem 2rem;
  background-color: #394867;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  position: relative;
  transition: all 0.4s;
  cursor: pointer;
}
.list-item::before {
  position: absolute;
  content: "";
  width: 30px;
  height: 50px;
  background-color: #212A3E;
  transform: skewY(45deg);
  left: -30px;
  top: -15px;
  z-index: -2;
}
.list-item::after {
  position: absolute;
  content: "";
  background-color: #212A3E;
  width: 100%;
  height: 30px;
  right: 0px;
  top: -30px;
  transform-origin: bottom;
  transform: skewX(45deg);
  z-index: -1;
}
.list-item:hover {
  color: #fff;
  transform: translateX(-30px);
  background-color: #6A5ACD;
}
.list-item:hover::after, .list-item:hover::before {
  background-color: #483D8B;
}
.list-item--1 {
  z-index: 6;
}
.list-item--2 {
  z-index: 5;
}
.list-item--3 {
  z-index: 4;
}
.list-item--4 {
  z-index: 3;
}
.list-item--5 {
  z-index: 2;
}
.list-item--6 {
  z-index: 1;
}