
.contect-main {
  max-width: 1180px;
  min-height: calc(100vh - 480px);
  padding: 20px 10px 40px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 26px;
}

.contect-text,
.contect-code {
  padding: 10px;
}

.contect-text h2 {
  /* font-size: 24px; */
  color: var(--header-color);
}

.contect-text .subtitle {
  padding: 16px 0;
  margin: 10px 0;
  font-size: 20px;
  color: var(--header-color);
  border-top: 1px solid #d3d3d3;
  border-bottom: 2px solid #d5d5d5;
}

.contect-text .text p,
.contect-code .text p {
  /* font-size: 18px; */
  line-height: 28px;
  color: #333;
}

.contect-code .text p span {
  color: var(--header-color);
}

.contect-code span {
  display: inline-block;
  margin-bottom: 6px;
}

.right {
  margin: 10px auto;
  /* padding-bottom: 20px; */
  line-height: 28px;
  text-align: right;
  font-size: 14px;
}

.right a {
  display: inline-block;
  padding-top: 10px;
  padding-right: 30px;
  color: var(--primary-color);
}

.mail {
  position: relative;
  margin-top: 20px;
  padding: 20px 8px;
  /* border-radius: 6px; */
  font-size: 14px;
  border: 1px dashed var(--primary-color);
  /* text-decoration: overline; */
}


.mail::before,
.mail::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  transition: .3s ease-in-out;
}

.mail::before {
  top: -5px;
  left: -5px;
  border-top: 1px solid var(--primary-color);
  border-left: 1px solid var(--primary-color);
}

.mail::after {
  right: -5px;
  bottom: -5px;
  border-bottom: 1px solid var(--primary-color);
  border-right: 1px solid var(--primary-color);
}

.mail:hover::before,
.mail:hover::after {
  width: calc(100% + 9px);
  height: calc(100% + 9px);
}

.mail p {
  line-height: 28px;
  /* border-bottom: 1px solid #ccc; */
}

.small-text {
  font-size: 14px;
}

.text-body {
  padding: 16px 0;
}

/* header变成fixed后页面向上平移*/
.sticky-trans {
  margin-top: 80px;
}
.open-trans {
  transform: translateY(80px);
}

@media (max-width: 756px) {
  .contect-main {
    width: 90%;
    padding: 10px 10px 40px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .contect-main {
    width: 96%;
    padding: 20px 10px;
  }
}