/* 页面 */
/* #region 基本样式 */
body {
  background: #eee;
}

.module {
  padding: 36px;
  background: #fff;
  border-radius: 12px;
}

.module:not(:first-child) {
  margin-top: 30px;
}

.answers > .left {
  width: 828px;
}

.answers > .right {
  width: 342px;
}

/* #endregion */

/* Left */
/* #region 基本样式 */
.left .module .title h2 {
  color: #333;
  font-size: 20px;
  font-weight: 500;
}

.left .module .content {
  margin-top: 16px;
}
.module .content a {
  color: #ff7a7d;
}
/* #endregion */

/* #region 标题 */
.article-title {
  position: relative;
}

.article-title h1 {
  color: #333;
  font-size: 24px;
  font-weight: 500;
}

.article-title .tags {
  margin-top: 16px;
}

.article-title .tags span {
  display: inline-block;
  box-sizing: border-box;
  padding: 3px 7px;
  color: #999;
  font-size: 13px;
  font-weight: 300;
  background: #eee;
  border-radius: 12px;
}

.article-title .tags span:hover {
  background-color: #ff7a7d;
  color: #fff;
}

.article-title .tags a:not(:last-child) {
  margin-right: 12px;
}

.article-title .time {
  margin-top: 16px;
  color: #999;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
}

.article-title .time span:not(:last-child) {
  margin-right: 40px;
}

.article-title .time span > i {
  display: inline-block;
  vertical-align: middle;
  width: 4px;
  height: 4px;
  margin: 0 8px;
  background: #999;
  border-radius: 50%;
}

.article-title p {
  margin-top: 30px;
  color: #666;
  font-size: 16px;
  font-weight: 300;
}

.article-title > a {
  position: absolute;
  top: 80px;
  right: 36px;
  display: inline-block;
  width: 88px;
  height: 32px;
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  text-align: center;
  line-height: 32px;
  background: #ff7a7d;
  border-radius: 16px;
}

.article-title > a img {
  vertical-align: middle;
}

.article-title > a span {
  vertical-align: middle;
}
/* #endregion */

/* #region 医生 */
.doctor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.doctor .info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.doctor .img {
  overflow: hidden;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.doctor .name a {
  color: #333;
  font-size: 16px;
  font-weight: 300;
  transition: 0.3s;
}

.doctor .name a:hover {
  color: #ff7a7d;
  transition: 0.3s;
}

.doctor .name span {
  display: block;
  margin-top: 8px;
  color: #999;
  font-size: 14px;
  font-weight: 300;
}

.doctor > a {
  display: inline-block;
  width: 140px;
  height: 36px;
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  text-align: center;
  line-height: 36px;
  background: #ff7a7d;
  border-radius: 20px;
}

.doctor > a img {
  vertical-align: -4px;
}

.doctor > a span {
  margin-left: 8px;
  font-size: 18px;
}

.article .interact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  color: #999;
  font-size: 16px;
  font-weight: 300;
}

.article .praise span {
  margin-left: 8px;
}
/* #endregion */

/* #region 文章内容 */
.article .content {
  padding: 10px 0;
  color: #666;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1px;
}
.article .content img {
  max-width: 80%;
}

.article .content h3 {
  margin: 20px 0;
  padding-left: 10px;
  color: #ff7a7d;
  font-size: 18px;
  border-left: 3px solid #ff7a7d;
}

.article .content div {
  text-align: center;
}

.article .content div > img {
  max-width: 100%;
}

.article .content p {
  margin: 10px 0;
  text-indent: 2em;
  line-height: 180%;
}

.article .content p > strong {
  font-weight: bold;
}

.article .content blockquote {
  margin: 10px 0;
  padding: 5px 10px;
  line-height: 1.4;
  background: #f1f1f1;
  border-left: 8px solid #ff7a7d;
}
/* #endregion */

/* #region 上下篇 */
.context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}

.context > a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  width: calc(50% - 6px);
  padding: 16px 26px;
  background: #fff;
  border-radius: 12px;
  transition: 0.3s;
}

.context > a:hover {
  box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.context a > span {
  color: #ffbdbe;
  width: auto;
  font-size: 16px;
}

.context .img {
  overflow: hidden;
  width: 158px;
  height: 98px;
  border-radius: 12px;
}

.context .text {
  width: calc(100% - 238px);
}

.context .text h3 {
  color: #666;
  font-size: 16px;
  font-weight: 300;
  transition: 0.3s;
}

.context > a:hover h3 {
  color: #ff7a7d;
  transition: 0.3s;
}

.context .text p {
  margin-top: 16px;
  color: #999;
  font-size: 12px;
  font-weight: 300;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* #endregion */

/* #region 最新问答 */
.latest-answer .link {
  display: flex;
  justify-content: space-between;
}

.latest-answer .link a {
  display: inline-block;
  width: calc(25% - 16px);
}

.latest-answer .img {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
}

.latest-answer .link .img img {
  transition: 0.3s;
}

.latest-answer .link a:hover img {
  transform: scale(1.2);
  transition: 0.3s;
}

.latest-answer .transition {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 25px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  transition: 0.3s;
}

.latest-answer .link a:hover .transition {
  bottom: -25px;
  transition: 0.3s;
}

.latest-answer .transition span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 10px;
  transform: scale(0.9);
  color: #fff;
}

.latest-answer .transition span > i {
  display: inline-block;
  vertical-align: middle;
  width: 2px;
  height: 2px;
  margin: 0 4px;
  background: #fff;
  border-radius: 50%;
}

.latest-answer .link h3 {
  margin-top: 16px;
  color: #666;
  font-size: 16px;
  font-weight: 300;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: 0.3s;
}

.latest-answer .link a:hover h3 {
  color: #ff7a7d;
  transition: 0.3s;
}
/* #endregion */

