/* #region 基本样式 */
body {
  background: #eee;
}

.module {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 4px;
}
/* #endregion */

/* #region 热门问答 */
.encyclopedia .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.encyclopedia .content > .hide {
  display: none;
}

.encyclopedia .content > .active {
  display: block;
}

.encyclopedia .nav {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  height: 1.325rem;
}

.encyclopedia .nav a {
  color: #333;
  font-size: 0.875rem;
  font-weight: 400;
  transition: 0.3s;
}

.encyclopedia .nav a:hover {
  color: #ff7a7d;
  transition: 0.3s;
}

.encyclopedia .nav .active {
  position: relative;
  color: #ff7a7d;
  font-size: 1rem;
  font-weight: bold;
}

.encyclopedia .nav .active::after {
  position: absolute;
  display: block;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  content: "";
  background: #ff7a7d;
  border-radius: 1px;
}

.encyclopedia .list {
  margin-top: 1rem;
}

.encyclopedia .list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.encyclopedia .list li:first-child {
  padding-top: 0;
}

.encyclopedia .list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.encyclopedia .list .img {
  overflow: hidden;
  flex-shrink: 0;
  width: 6.125rem;
  height: 4.5rem;
  border-radius: 4px;
}

.encyclopedia .list .text {
  width: 72.5%;
  font-size: 0;
}

.encyclopedia .list .text h3 {
  box-sizing: border-box;
  position: relative;
  font-size: 0.875rem;
  font-weight: 400;
}

.encyclopedia .list .text h3 > a {
  width: 100%;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: 0.3s;
}

.encyclopedia .list .text h3 > a:hover {
  color: #ff7a7d;
  transition: 0.3s;
}

.encyclopedia .tags {
  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 .tags a:not(:first-child) {
  margin-left: 0.5rem;
}

.encyclopedia .sub {
  display: flex;
  justify-content: space-between;
  margin-top: 0.3125rem;
  color: #999;
  font-size: 0.625rem;
  font-weight: 400;
}

.encyclopedia .sub span > i {
  display: inline-block;
  vertical-align: middle;
  width: 2px;
  height: 2px;
  margin: 0 4px;
  background: #999;
  border-radius: 50%;
}
/* #endregion */