* {
  margin: 0;
  padding: 0;
}

body {
  background: rgba(147, 229, 243, 0.29);
  margin: 0 auto;
  font-size: 14px;
  color: #333;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
a {
  cursor: pointer;
  color: #333;
  text-decoration: none;
  outline: none;
}
ul {
  list-style-type: none;
}
div.clear {
  font: 0px Arial;
  line-height: 0;
  height: 0;
  overflow: hidden;
  clear: both;
}
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/*wrapin 主体容器宽度*/
.wrapin {
  width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.imgtop{
  width:1000px;
  height: auto;
  align-items: center;
  position: relative;
}
header {
  height: 50px;
  background: #ebffe9;
  border-bottom: 1px solid #ccc;
}
.nav li {
  line-height: 50px;
  float: left;
  width: 16.66%;
  text-align: center;
  font-size: 16px;
}
.nav li a {
  color: #333;
}
footer {
  background: #282828;
  text-align: center;
  color: #fff;
  margin-top: 30px;
  line-height: 50px;

}

.card {
  /* 相对定位 */
  float: left;
  position: relative;
  width: 300px;
  height: 450px;
  margin-top: 25px;
  margin-left: 15px;
  margin-bottom: 15px;
  background-color: #758a99;
  border-radius: 20px;
  /* 溢出隐藏 */
  overflow: hidden;
  display: flex;
  /* 元素纵向排列 */
  flex-direction: column;
  align-items: center;
  color: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}
/* 默认大图 */
.card .photo img {
  width: 100%;
  height: 100%;
  /* 保持原有的尺寸比列，裁切长边 */
  object-fit: cover;
}
.card .photo {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  border: 0;
  overflow: hidden;
}
.card:hover .photo {
  top: 30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  /* 动画过渡 */
  transition: 0.5s;
}
.card .photo::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
}
.card h1 {
  position: absolute;
  top: 370px;
  transition: 0.5s;
}
.card:hover h1 {
  top: 170px;
}
.card h2 {
  margin-top: 220px;
  width: 80%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 20px;
  text-align: center;
}
.card p {
  width: 90%;
  text-indent: 32px;
  font-size: 16px;
  margin-top: 15px;
  line-height: 30px;
}
.card a {
  font-style: normal;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  border: 1px solid;
  border-radius: 15px;
}
.card a:hover {
  color: #fff;
  background-color: skyblue;
}
