/* #region 基本样式 */
.module:not(:first-child) {
  margin-top: 30px;
}

.module .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.module .title h2 {
  display: inline-block;
  color: #333;
  font-size: 24px;
  font-weight: bold;
}

.module .title a {
  color: #666;
  font-size: 16px;
  font-weight: 300;
  transition: 0.3s;
}

.module .title a:hover {
  color: #ff7a7d;
  transition: 0.3s;
}

.module .nav {
  flex: 1;
}

.module .nav a:not(:last-child) {
  margin-right: 30px;
}

.module .nav .active {
  position: relative;
  color: #ff7a7d;
}

.module .nav .active::after {
  position: absolute;
  display: block;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 4px;
  content: "";
  background: #ff7a7d;
  border-radius: 2px;
}

.module .content {
  margin-top: 20px;
}

.module .content .hide {
  display: none;
}

.module .content .active {
  display: block;
}
/* #endregion */

/* #region 轮播 */
.banners {
  display: flex;
  justify-content: space-between;
}

.banner {
  width: 828px;
  height: 411px;
  margin: 0;
}

.banner .img {
  width: 100%;
  height: 100%;
}

.banners .link a {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 342px;

  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid #fd5c7f;
  border-radius: 12px;
  transition: 0.3s;
}

.banners .link a:not(:first-child) {
  margin-top: 22px;
}

.banners .link h2 {
  width: 60px;
  height: 30px;
  color: #fff;
  line-height: 30px;
  text-align: center;
  background: #ff7a7d;
  border-radius: 4px;
}

.banners .link span {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 16px;
}
/* #endregion */

/* #region 服务流程 */
.service-flow {
  display: flex;
  justify-content: space-between;
  height: 310px;
}

.service-flow > .img {
  overflow: hidden;
  width: 413px;
  height: 100%;
  border-radius: 12px;
}

.service-flow .box {
  box-sizing: border-box;
  width: 239px;
  height: 100%;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.service-flow .box:hover {
  box-shadow: 0px 3px 12px 0px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.service-flow .box h2 {
  display: inline-block;
  position: relative;
  color: #ff7a7d;
  font-size: 20px;
  font-weight: bold;
}

.service-flow .box h2::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 50%;
  height: 4px;
  content: "";
  background: #ff7a7d;
  border-radius: 2px;
}

.service-flow .link {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 30px;
  margin-top: 30px;
}

.service-flow .link a {
  display: inline-block;
  width: 50%;
  text-align: center;
}

.service-flow .link .img {
  width: 48px;
  height: 48px;
  margin: 0 auto;
}

.service-flow .link a:hover img {
  animation: slide 0.3s;
}

@-webkit-keyframes slide {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  20% {
    -webkit-transform: translateX(-5px);
    transform: translateX(-5px);
  }

  40% {
    -webkit-transform: translateX(5px);
    transform: translateX(5px);
  }

  60% {
    -webkit-transform: translateX(-5px);
    transform: translateX(-5px);
  }

  80% {
    -webkit-transform: translateX(5px);
    transform: translateX(5px);
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes slide {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  20% {
    -webkit-transform: translateX(-5px);
    transform: translateX(-5px);
  }

  40% {
    -webkit-transform: translateX(5px);
    transform: translateX(5px);
  }

  60% {
    -webkit-transform: translateX(-5px);
    transform: translateX(-5px);
  }

  80% {
    -webkit-transform: translateX(5px);
    transform: translateX(5px);
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

.service-flow .link h3 {
  margin-top: 20px;
  color: #666;
  font-size: 16px;
  font-weight: 400;
  transition: 0.3s;
}

.service-flow .link a:hover h3 {
  transform: scale(1.1);
  transition: 0.3s;
}
/* #endregion */

/* #region 热门资讯 */
.hot-news .title {
  justify-content: left;
  gap: 30px;
}

.hot-news .left {
  width: calc(100% - 348px);
}

.hot-news .content {
  display: flex;
  justify-content: space-between;
}

.hot-news .imgs {
  width: 373px;
  height: 481px;
}

.hot-news .imgs > a {
  overflow: hidden;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.hot-news .imgs > a img {
  width: 100%;
  height: 100%;
}

.hot-news .swiper {
  width: calc(100% - 403px);
  margin: 0;
}

.hot-news .list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.hot-news .time {
  box-sizing: border-box;
  width: 58px;
  height: 64px;
  padding: 9px 0;
  color: #fff;
  text-align: center;
  background: #ff7a7d;
  border-radius: 4px;
}

.hot-news .time span {
  display: block;
  font-size: 14px;
  text-align: center;
}

.hot-news .time span:first-child {
  font-size: 24px;
}

.hot-news .text {
  width: calc(100% - 71px);
}

.hot-news .text h3 {
  font-size: 18px;
  font-weight: 500;
}

.hot-news .text a {
  display: block;
  color: #666;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: 0.3s;
}

.hot-news .text a:hover {
  color: #ff7a7d;
  transition: 0.3s;
}

.hot-news .sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  color: #999;
  font-size: 14px;
}

.hot-news .tags span {
  box-sizing: border-box;
  display: inline-block;
  padding: 3px 7px;
  font-size: 12px;
  background: #eee;
  border-radius: 12px;
}
.hot-news .tags a {
  color: #999;
}

.hot-news .tags a:not(:last-child) {
  margin-right: 8px;
}

.hot-news .right {
  width: 318px;
}

.hot-news .right > .img {
  overflow: hidden;
  width: 100%;
  height: 310px;
  border-radius: 12px;
}

.hot-news .right > .link {
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
  row-gap: 20px;
  margin-top: 30px;
}

.hot-news .right > .link a {
  box-sizing: border-box;
  display: inline-block;
  width: calc(50% - 9px);
  padding: 12px 0;
  text-align: center;
  border: 1px solid #ff7a7d;
  border-radius: 4px;
}

.hot-news .right > .link img {
  vertical-align: middle;
  margin-right: 8px;
  width: 22px;
  height: 24px;
}

.hot-news .right > .link h3 {
  display: inline-block;
  vertical-align: middle;
  color: #ff7a7d;
  font-size: 18px;
  font-weight: 300;
  line-height: 22px;
}
/* #endregion */

/* #region 试管百科 */
.encyclopedia .left {
  display: grid;
  grid-template-columns: repeat(3, 291px);
  grid-template-rows: repeat(4, 136px);
  grid-template-areas:
    "box1 box2 box3 "
    "box4 box4 box5 "
    "box6 box7 box7 "
    "box6 box8 box8 ";
  gap: 12px;
}

.encyclopedia .left .box:nth-child(1) {
  background: url(../../icon/qy/07.png) no-repeat center center;
}
.encyclopedia .left .box:nth-child(2) {
  background: url(../../icon/qy/08.png) no-repeat center center;
}
.encyclopedia .left .box:nth-child(3) {
  background: url(../../icon/qy/09.png) no-repeat center center;
}
.encyclopedia .left .box:nth-child(4) {
  grid-area: box4;
  background: url(../../icon/qy/11.png) no-repeat center center;
}
.encyclopedia .left .box:nth-child(5) {
  background: url(../../icon/qy/12.png) no-repeat center center;
}

.encyclopedia .left .box:nth-child(6) {
  grid-area: box6;
  background: url(../../icon/qy/14.png) no-repeat center center;
}

.encyclopedia .left .box:nth-child(7) {
  grid-area: box7;
  background: url(../../icon/qy/15.png) no-repeat center center;
}

.encyclopedia .left .box:nth-child(8) {
  grid-area: box8;
  background: url(../../icon/qy/16.png) no-repeat center center;
}

.encyclopedia .box {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  font-weight: 300;
  border-radius: 12px;
}

.encyclopedia .box h3 {
  font-size: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.encyclopedia .box a {
  color: #000;
}

.encyclopedia .box span {
  color: #333;
  font-size: 14px;
}

.encyclopedia .box span > i {
  display: inline-block;
  vertical-align: middle;
  width: 4px;
  height: 4px;
  margin: 0 8px;
  background: #333;
  border-radius: 50%;
}

.encyclopedia .tags {
  margin-bottom: 16px;
}

.encyclopedia .tags  span {
  display: inline-block;
  padding: 3px 7px;
  color: #333;
  font-size: 12px;
  background: #fff;
  border-radius: 12px;
  opacity: 0.8;
  margin-right: 12px;
  margin-bottom: 12px;
}

.encyclopedia .tags > span:first-child {

}

.encyclopedia .right {
  width: 291px;
  text-align: center;
}

.encyclopedia .right .box {
  padding: 0;
}

.encyclopedia .right span {
  display: block;
  color: #000;
  font-weight: 500;
}

.encyclopedia .right .top {
  height: 231px;
  background: url(../../icon/qy/10.png) no-repeat center center;
}

.encyclopedia .right .top a {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 16px;
}

.encyclopedia .right .top span {
  margin: auto;
  font-size: 30px;
}

.encyclopedia .right .bottom {
  margin-top: 16px;
  height: 337px;
  background: url(../../icon/qy/13.png) no-repeat center center;
}

.encyclopedia .right .bottom a {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 100%;
  padding: 80px 0;
  font-size: 40px;
}

.encyclopedia .right .bottom span:last-child {
  font-size: 36px;
}

.encyclopedia .right .bottom span:first-child {
  font-size: 40px;
}
/* #endregion */

/* #region 热门问答 */
.answers .content > .img {
  overflow: hidden;
  width: 299px;
  height: 495px;
  border-radius: 12px;
}

.answers .link-img {
  display: flex;
  justify-content: space-between;
}

.answers .link-img > .img {
  overflow: hidden;
  width: calc(33% - 3px);
  height: 170px;
  border-radius: 12px;
}

.answers .link {
  width: calc(100% - 329px);
}

.answers .newest {
  margin-top: 30px;
}

.answers .newest h3 {
  color: #333;
  font-size: 24px;
  font-weight: 500;
}

.answers .list {
  margin-top: 20px;
}

.answers .list li {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 300;
}

.answers .list li:not(:first-child) {
  margin-top: 8px;
}

.answers .list a {
  display: block;
  width: 70%;
  color: #666;
  line-height: 24px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: 0.3s;
}

.answers .list span {
  color: #999;
  transition: 0.3s;
}

.answers .list li:hover a,
.answers .list li:hover span {
  color: #ff7a7d;
  transition: 0.3s;
}
/* #endregion */
.module .title .more {
  position: relative;
  padding-right: 15px;
}
.module .title .more:after {
  content: "";
  border-left: 1px solid #333333;
  border-top: 1px solid #333333;
  width: 6px;
  height: 6px;
  transform: rotate(135deg);
  position: absolute;
  right: 0;
  top: 6px;
  display: block;
}
/* #region 精选话题 */
.topic .cards {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 16px;
  width: calc(100% - 322px);
}


.topic .box {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 282px;
  height: 110px;
  padding: 16px;
  font-size: 16px;
  border-radius: 12px;
  transition: 0.3s;
}

.topic .box:hover {
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.topic .box:nth-child(1) {
  background: url(../../icon/qy/201.png) no-repeat center center;
}
.topic .box:nth-child(2) {
  background: url(../../icon/qy/211.png) no-repeat center center;
}
.topic .box:nth-child(3) {
  background: url(../../icon/qy/221.png) no-repeat center center;
}
.topic .box:nth-child(4) {
  background: url(../../icon/qy/251.png) no-repeat center center;
}
.topic .box:nth-child(5) {
  background: url(../../icon/qy/241.png) no-repeat center center;
}
.topic .box:nth-child(6) {
  background: url(../../icon/qy/231.png) no-repeat center center;
}

.topic .box h3 > a {
  color: #666666;
  font-weight: 500;
  font-size: 20px;
}

.topic .box span {
  color: #ffffff;
  font-size: 14px;
  font-weight: 300;
}

.topic .tags {
  margin-bottom: 16px;
}

.topic .tags > span {
  display: inline-block;
  padding: 3px 7px;
  color: #333;
  font-size: 12px;
  background: #fff;
  border-radius: 12px;
  opacity: 0.8;
}

.topic .tags > span:first-child {
  margin-right: 12px;
}

.topic .box > a {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: block;
  width: 72px;
  height: 30px;
  color: #fff;
  font-weight: 300;
  text-align: center;
  line-height: 30px;
  background: #ff7a7d;
  border-radius: 16px;
}

.topic .content > .img {
  overflow: hidden;
  width: 292px;
  height: 235px;
  border-radius: 12px;
}
/* #endregion */

/* #region 精选模块 */
.choiceness .left {
  width: 600px;
}

.choiceness .left .nav a:not(:last-child) {
  margin-right: 20px;
}

.choiceness .left .link {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 22px;
}

.choiceness .left .link > a {
  display: inline-block;
  width: calc(50% - 8px);
}

.choiceness .left .img {
  overflow: hidden;
  width: 100%;
  height: 221px;
  margin-bottom: 16px;
  border-radius: 12px;
}

.choiceness .left h3 {
  width: 60%;
  margin: 0 auto;
  color: #666;
  font-size: 16px;
  font-weight: 300;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: 0.3s;
}

.choiceness .left .link > a:hover h3 {
  color: #ff7a7d;
  transition: 0.3s;
}

.choiceness .right {
  width: 570px;
}

.choiceness .right .title {
  justify-content: left;
  gap: 30px;
}

.choiceness .list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0;
  border-bottom: 1px solid #eee;
}

.choiceness .list li:first-child {
  padding-top: 0;
}

.choiceness .list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.choiceness .list .img {
  overflow: hidden;
  width: 110px;
  height: 110px;
  border-radius: 12px;
}

.choiceness .list .text {
  width: calc(100% - 238px);
}

.choiceness .list .text h3 {
  font-size: 20px;
  font-weight: 500;
}

.choiceness .list .text h3 > a {
  vertical-align: middle;
  color: #666;
  transition: 0.3s;
}

.choiceness .list .text h3 > a:hover {
  color: #ff7a7d;
  transition: 0.3s;
}

.choiceness .list .text h3 > span {
  box-sizing: border-box;
  display: inline-block;
  vertical-align: middle;
  margin-left: 16px;
  color: #51c9b5;
  width: 64px;
  height: 21px;
  font-size: 12px;
  font-weight: 300;
  text-align: center;
  line-height: 21px;
  border: 1px solid #51c9b5;
  border-radius: 4px;
}

.choiceness .list .text .hot {
  color: #fa7969;
  border: 1px solid #fa7969;
}

.choiceness .list .text > span {
  display: block;
  margin-top: 16px;
  color: #999;
  font-size: 16px;
  font-weight: 300;
}

.choiceness .list .link a {
  display: block;
  width: 96px;
  height: 38px;
  color: #999;
  font-size: 16px;
  font-weight: 300;
  text-align: center;
  line-height: 38px;
  background: #eee;
  border-radius: 4px;
}
.choiceness .list .link a:first-child {
  margin-bottom: 16px;
  color: #fff;
  background: #ff7a7d;
}
/* #endregion */
