/* #region 基本样式 */
/* 模块 */
.module:not(:first-child) {
  margin-top: 1.125rem;
  padding: 0 1.125rem;
}

.module .title h2 {
  color: #333;
  font-size: 1rem;
  font-weight: bold;
}

.module .title a {
  color: #999;
  font-size: 0.875rem;
  font-weight: 400;
  transition: 0.3s;
}

.module .title a:hover {
  color: #ff7a7d;
  transition: 0.3s;
}

.module .nav {
  flex: 1;
  font-size: 0;
}

.module .nav a:not(:last-child) {
  margin-right: 8px;
}

.module .nav .active {
  position: relative;
  color: #333;
  font-weight: 500;
}

.module .nav .active::after {
  position: absolute;
  display: block;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  content: "";
  background: #ff7a7d;
  border-radius: 1px;
}

.module .content {
  margin-top: 1rem;
}
/* #endregion */

/* #region 业务列表 */
.business .card {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.business .card li {
  flex: 1;
}

.business .card a {
  display: inline-block;
  width: 100%;
  padding: 0.75rem 0;
  color: #333;
  font-size: 0.875rem;
  font-weight: 400;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.1);
}

.business .card a > img {
  display: block;
  margin: 0 auto 0.75rem;
}

.business .card a > span {
  transition: 0.3s;
}

.business .card a:hover > span {
  color: #ff7a7d;
  transition: 0.3s;
}
/* #endregion */

/* #region 热门资讯 */
.hot-news .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hot-news .list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.hot-news .list li:first-child {
  padding-top: 0;
}

.hot-news .list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hot-news .time {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 2.825rem;
  height: 3.25rem;
  padding: 5px 0;
  color: #ffd9da;
  text-align: center;
  background: #ff7a7d;
  border-radius: 4px;
  opacity: 0.8;
}

.hot-news .time span:first-child {
  display: block;
  font-size: 1.25rem;
  line-height: 29px;
}

.hot-news .time span:last-child {
  display: block;
  font-size: 0.625rem;
}

.hot-news .text {
  font-size: 0.875rem;
  font-weight: 400;
}

.hot-news .text a {
  display: inline-block;
  width: 100%;
  color: #333;
  transition: 0.3s;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hot-news .text a:hover {
  color: #ff7a7d;
  transition: 0.3s;
}

.hot-news .sub {
  margin-top: 2px;
  color: #999;
  font-size: 0.75rem;
}

.hot-news .sub span > i {
  display: inline-block;
  vertical-align: middle;
  width: 2px;
  height: 2px;
  margin: 0 4px;
  background: #999;
  border-radius: 50%;
}

.hot-news .img {
  flex-shrink: 0;
  width: 4.175rem;
  height: 3.25rem;
}

.hot-news .link {
  display: flex;
  gap: 0.375rem;
  margin-top: 1.125rem;
  font-size: 0.75rem;
  font-weight: 400;
}

.hot-news .link li {
  flex: 1;
}

.hot-news .link a {
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.375rem 0;
  color: #ff7a7d;
  text-align: center;
  border: 1px solid #ff7a7d;
  border-radius: 4px;
}

.hot-news .link a > img {
  vertical-align: middle;
}

.hot-news .link a > span {
  vertical-align: middle;
  line-height: 18px;
}
/* #endregion */

/* #region 试管百科 */
.encyclopedia .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.encyclopedia .content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
}

.encyclopedia .card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  border-radius: 4px;
  box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.1);
}

.encyclopedia .card:nth-child(3) {
  grid-column: 1 / 3;
}

.encyclopedia .card:nth-child(4) {
  grid-row: 3 / 5;
}

.encyclopedia .card h3 > a {
  display: block;
  color: #333;
  transition: 0.3s;
}

.encyclopedia .card h3 > a:hover {
  color: #ff7a7d;
  transition: 0.3s;
}

.encyclopedia .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.3125rem;
}

.encyclopedia .tags span {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  color: #999;
  font-size: 0.625rem;
  background: #eee;
  border-radius: 10px;
}

.encyclopedia .card > span {
  display: inline-block;
  margin-top: 0.3125rem;
  color: #666;
  font-size: 0.625rem;
}

.encyclopedia .card span > i {
  display: inline-block;
  vertical-align: middle;
  width: 2px;
  height: 2px;
  margin: 0 2px;
  background: #666;
  border-radius: 50%;
}
/* #endregion */

/* #region 热门问答 */
.answers .link-img {
  display: flex;
  gap: 0.5rem;
}

.answers .img {
  overflow: hidden;
  flex: 1;
  border-radius: 4px;
}

.answers .list {
  margin-top: 1rem;
}

.answers .list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 400;
}

.answers .list li:not(:first-child) {
  margin-top: 0.5rem;
}

.answers .list li > a {
  display: inline-block;
  width: 58%;
  color: #666;
  line-height: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: 0.3s;
}

.answers .list li > a:hover {
  color: #ff7a7d;
  transition: 0.3s;
}

.answers .list li > span {
  color: #999;
}
/* #endregion */

/* #region 热门话题 */
.topic .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topic .content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.topic .box {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.875rem;
  width: 49.2%;
  padding: 0.5rem;
  font-size: 0.875rem;
  border-radius: 4px;
  opacity: 0.8;
}

.topic .box:nth-child(1) {
  background: rgba(255, 193, 130, 1);
}
.topic .box:nth-child(2) {
  background: rgba(176, 205, 255, 1);
}
.topic .box:nth-child(3) {
  background: rgba(255, 156, 145, 1);
}
.topic .box:nth-child(4) {
  background: rgba(255, 163, 183, 1);
}
.topic .box:nth-child(5) {
  background: rgba(219, 199, 255, 1);
}
.topic .box:nth-child(6) {
  background: rgba(255, 206, 99, 1);
}

.topic .box h3 > a {
  color: #fff;
}

.topic .tags {
  margin-bottom: 0.25rem;
}

.topic .tags span {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  color: #999;
  font-size: 0.625rem;
  background: #eee;
  border-radius: 10px;
}

.topic .sub > span {
  color: #ff7a7d;
  font-size: 0.625rem;
}

.topic .box > a {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: inline-block;
  padding: 0.25rem 0.3125rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 400;
  background: #ff7a7d;
  border-radius: 12px;
  transform: scale(0.9);
}
/* #endregion */

/* #region 精选医院 */
.hospital .title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hospital .link {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.25rem;
  row-gap: 0.5rem;
}

.hospital .link li {
  width: 49.2%;
}

.hospital .link a {
  display: block;
  width: 100%;
  font-size: 0;
}

.hospital .img {
  overflow: hidden;
  width: 100%;
  height: 6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.hospital .link h3 {
  margin: 0 auto;
  width: 90%;
  color: #666;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: 0.3s;
}

.hospital .link a:hover h3 {
  color: #ff7a7d;
  transition: 0.3s;
}
/* #endregion */

/* #region 精选机构 */
.institution .title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.institution .list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0;
  border-bottom: 1px solid #eee;
}

.institution .list li:first-child {
  padding-top: 0;
}

.institution .list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.institution .img {
  overflow: hidden;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 4px;
}

.institution .text {
  width: 54.4%;
}

.institution .text h3 > a {
  vertical-align: middle;
  color: #666;
  font-weight: 400;
  font-size: 1rem;
  line-height: 24px;
  transition: 0.3s;
}

.institution .text h3 > a:hover {
  color: #ff7a7d;
  transition: 0.3s;
}

.institution .text h3 > span {
  box-sizing: border-box;
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 2px 2px;
  color: #51c9b5;
  font-size: 0.625rem;
  font-weight: 300;
  text-align: center;
  line-height: 12px;
  border: 1px solid #51c9b5;
  border-radius: 4px;
}

.institution .text h3 > .hot {
  color: #fa7969;
  border: 1px solid #fa7969;
}

.institution .text > span {
  display: block;
  margin-top: 8px;
  width: 100%;
  color: #999;
  font-size: 0.875rem;
  font-weight: 400;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.institution .link {
  flex-shrink: 0;
  width: 3.8rem;
}

.institution .link a {
  overflow: hidden;
  display: block;
  width: 100%;
  height: 1.425rem;
  color: #999;
  font-size: 0.875rem;
  font-weight: 400;
  text-align: center;
  line-height: 1.425rem;
  background: #eee;
  border-radius: 4px;
}
.institution .link a:first-child {
  margin-bottom: 0.5rem;
  color: #fff;
  background: #ff7a7d;
}
/* #endregion */