* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*,
*::before,
*::after {
  transition: all 0.3s ease-in-out;
}
p {
  margin: 0 0 26px;
  line-height: 1.6;
  font-weight: 400;
}
p:last-child {
  margin-bottom: 0px;
}
a {
  color: #3da2ea;
  text-decoration: none;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
img {
  display: inline-block;
  border: none;
  vertical-align: middle;
}
body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  color: #778191;
  background: url(../images/bg.jpg) no-repeat center;
  background-size: cover;
  position: relative;
  /* 把背景图像扩展至足够大，以使背景图像完全覆盖背景区域。背景图像的某些部分也许无法显示在背景定位区域中。 */
}

.contact-page {
  width: 95%;
  max-width: 1400px;
  padding: 45px;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-page h2 {
  width: 100%;
  margin-bottom: 80px;
  text-transform: uppercase;
  font-size: 40px;
  color: #202124;
}

.contact-info,
.contact-form {
  flex: 1;
}

.item {
  color: #16191e;
  margin-bottom: 40px;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.item .icon {
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: skyblue;
  color: #fff;
  border-radius: 50%;
  margin-right: 8px;
}
.item a {
  color: #16191e;
}
.contact-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.textb {
  width: calc(50% - 10px);
  /* 每一个textb盒子的宽度始终保持父盒子宽度一半减去10px */
  height: 40px;
  background-color: black;
  border: none;
  color: #fff;
  padding: 20px;
  margin-bottom: 20px;
}

textarea {
  width: 100%;
  min-height: 200px;
  max-height: 400px;
  resize: vertical;
  /* //用户可调整元素的高度。 */
  background-color: black;
  border: none;
  color: #fff;
  padding: 20px;
  margin-bottom: 20px;
}

.btn {
  margin-left: auto;
  width: 120px;
  height: 40px;
  text-transform: uppercase;
  background-color: skyblue;
  border: none;
  border: 2px solid skyblue;
  transition: 0.3s linear;
  cursor: pointer;
}

.btn:hover {
  background-color: transparent;
  color: skyblue;
}

.tiny-footer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #16191e;
  font-size: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  transform: translateZ(0);
}
.tiny-footer .container {
  display: flex;
  justify-content: space-between;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: 1180px;
  color: hsla(0, 0%, 100%, 0.6);
}
/* 友情链接 */
.partner-warp {
  width: 95%;
  max-width: 1400px;
  margin-top: 10px;
  padding: 20px;
  background-color: #fff;
  margin-bottom: 100px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.title-warp {
  position: relative;
  z-index: 2;
  width: 100%;
  font-size: 18px;
  margin-bottom: 36px;
  text-align: center;
  color: #7a8799;
}
.title-warp > h2 {
  font-size: 36px;
  color: #202124;
  margin-bottom: 20px;
  font-weight: 700;
}
.links {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.link-item {
  margin: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* width: calc(33.333% - 40px); */
  width: 154px;
  height: 64px;
  background: #fff;
  box-shadow: 0 0 24px rgba(61, 89, 132, 0.12);
  border-radius: 4px;
}

.link-item img {
  max-width: calc(100% - 20px);
  max-height: 100%;
  width: auto;
}
.link-item img.normal{
    height: 100%;
}
.link-item img.sm{
    height: calc(100% - 40px);
}
.link-item:hover {
  transform: scale(1.08);
}
/* v2 不显示表单提交 */
body.v2 {
  flex-direction: column;
}
body.v2 .contact-form {
  display: none;
}

body.v2 .contact-info {
  display: flex;
  flex-wrap: wrap;
}
body.v2 .contact-info .item {
  width: 25%;
}
@media screen and (max-width: 768px) {
  .contact-page {
    max-width: 800px;
    padding: 25px;
  }
  .contact-page h2 {
    font-size: 26px;
    margin-bottom: 40px;
  }
  .contact-info,
  .contact-form {
    flex: 100%;
  }
  .textb {
    width: 100%;
  }
  .tiny-footer .container {
    flex-wrap: wrap;
    justify-content: center;
  }
  .link-item {
    width: calc(50% - 16px);
  }
  .title-warp > h2 {
    font-size: 24px;
  }
  .title-warp > span {
    font-size: 16px;
  }
  body.v2 .contact-info .item {
    width: 50%;
  }
}

@media (max-width: 480px) {
  .link-item {
    /* width: calc(100% - 16px); */
  }

  body.v2 .contact-info .item {
    width: 100%;
  }
}
