/* #region 基本样式 */
html {
  font-size: 16px;
}

@media screen and (min-width: 375px) {
  html {
    /* iPhone6的375px尺寸作为16px基准，414px正好18px大小, 600 20px */
    font-size: calc(100% + 2 * (100vw - 375px) / 39);
    font-size: calc(16px + 2 * (100vw - 375px) / 39);
  }
}

@media screen and (min-width: 414px) {
  html {
    /* 414px-1000px每100像素宽字体增加1px(18px-22px) */
    font-size: calc(112.5% + 4 * (100vw - 414px) / 586);
    font-size: calc(18px + 4 * (100vw - 414px) / 586);
  }
}

@media screen and (min-width: 600px) {
  html {
    /* 600px-1000px每100像素宽字体增加1px(20px-24px) */
    font-size: calc(125% + 4 * (100vw - 600px) / 400);
    font-size: calc(20px + 4 * (100vw - 600px) / 400);
  }
}

@media screen and (min-width: 1000px) {
  html {
    /* 1000px往后是每100像素0.5px增加 */
    font-size: calc(137.5% + 6 * (100vw - 1000px) / 1000);
    font-size: calc(22px + 6 * (100vw - 1000px) / 1000);
  }
}

body {
  font-size: 0;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.clearfix {
  zoom: 1;
}

.clearfix::before,
.clearfix::after {
  display: block;
  clear: both;
  content: "";
  visibility: hidden;
  height: 0;
}

.img a {
  display: block;
  width: 100%;
  height: 100%;
}

.img img {
  width: 100%;
  height: 100%;
}

/* #endregion */

/* #region 头部 */
.header {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
  background: #fff;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .logo a {
  display: block;
  font-size: 20px;
  color: #ff7a7d;
  padding-left: 10px;
}

.sidebar-btn {
  display: block;
  padding: 1rem;
}

.header-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.header-link {
  width: 54%;
  font-size: 0.75rem;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.header-link a {
  display: inline-block;
  margin-right: 6px;
  color: #ffbdbe;
  line-height: 18px;
  white-space: nowrap;
  transition: 0.3s;
}

.header-link a:hover {
  color: #ff7a7d;
  transition: 0.3s;
}

.header-link a:last-child {
  margin-right: 0;
}

.header-search {
  position: relative;
  overflow: hidden;
  width: 9rem;
  height: 1.7rem;
  border: 1px solid #ffbdbe;
  border-radius: 16px;
}

.header-search::after {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: block;
  width: 20px;
  height: 20px;
  content: "";
  background: url(../images/02.png) no-repeat center center;
}

.header-search input {
  width: 100%;
  height: 100%;
  padding: 0 36px 0 8px;
  border: 0;
}

/* #endregion */

/* #region 内容 */
.main {
  overflow: hidden;
  font-size: 1rem;
  margin-top: 40px;
}

/* 轮播 */
.banner {
  height: 10.125rem;
}

.banner a {
  display: block;
  width: 100%;
  height: 100%;
}

.banner img {
  width: 100%;
  height: 100%;
}

/* #region 业务列表 */
.business .link {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.business .link li {
  width: 31.25%;
  height: 3.125rem;
}

.business .link a {
  display: inline-block;
  overflow: hidden;
  width: 100%;
  height: 100%;
  color: #333;
  font-size: 0.875rem;
  font-weight: 400;
  text-align: center;
  line-height: 3.125rem;
  border-radius: 4px;
}

.business .link li:nth-child(1) {
  background: url(../images/016.png) no-repeat center center;
  background-size: 100%;
}

.business .link li:nth-child(2) {
  background: url(../images/017.png) no-repeat center center;
  background-size: 100%;
}

.business .link li:nth-child(3) {
  background: url(../images/018.png) no-repeat center center;
  background-size: 100%;
}

.business .link li:nth-child(4) {
  background: url(../images/019.png) no-repeat center center;
  background-size: 100%;
}

.business .link li:nth-child(5) {
  background: url(../images/020.png) no-repeat center center;
  background-size: 100%;
}

.business .link li:nth-child(6) {
  background: url(../images/021.png) no-repeat center center;
  background-size: 100%;
}

.business .link a>img {
  vertical-align: middle;
  margin-right: 10px;
}

.business .link a>span {
  vertical-align: middle;
  line-height: 18px;
}

/* #endregion */

/* #region 分页 */
.pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px 0 20px;
}

.pages button {
  box-sizing: border-box;
  width: 60px;
  height: 28px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  background: #ccc;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}

.pages button:hover {
  background: #ff7a7d;
  transition: 0.3s;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination li {
  font-size: 16px;
  font-weight: 400;
}

.pagination .active {
  display: inline-block;
  width: 28px;
  height: 28px;
  color: #fff;
  text-align: center;
  line-height: 28px;
  background: #ff7a7d;
  border-radius: 4px;
}

/* .pagination li:last-child a {
  box-sizing: border-box;
  display: inline-block;
  width: 56px;
  height: 56px;
  color: #fff;
  text-align: center;
  line-height: 56px;
  background: #ccc;
  border-radius: 4px;
  transition: 0.3s;
}

.pagination li:last-child a:hover {
  color: #fff;
  background: #ff7a7d;
  transition: 0.3s;
}

.pagination li:last-child a:active {
  border: 1px solid #ff7a7d;
  transition: 0.3s;
} */

.pagination li>a,
.pagination li>span {
  color: #999;
  transition: 0.3s;
}

.pagination li>a:hover {
  color: #ff7a7d;
}

/* #endregion */

/* #region 面包屑 */
.breadcrumb {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 1.125rem 0;
  padding: 0 1.125rem;
  color: #666;
  font-size: 14px;
  font-weight: 300;
}

.breadcrumb h3 {
  flex-shrink: 0;
}

.breadcrumb .link {
  width: 40%;
  white-space: nowrap;
  font-size: 0;
}

.breadcrumb .link a {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  max-width: 50%;
  color: #666;
  font-size: 14px;
  font-weight: 300;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: 0.3s;
}

.breadcrumb .link a:not(:last-child) {
  padding-right: 15px;
}

.breadcrumb .link a:not(:last-child)::after {
  position: absolute;
  top: 2px;
  right: 7.5px;
  content: "";
  width: 1px;
  height: 80%;
  background: #666;
  transform: rotate(15deg);
}

.breadcrumb .link a:hover {
  color: #000;
  transition: 0.3s;
}

.breadcrumb .link .active {
  color: #000;
}

/* #endregion */

/* #region 链接标签 */
.link-tags {
  font-size: 0;
}

.link-tags .title img {
  vertical-align: middle;
  margin-right: 0.5rem;
}

.link-tags .title h2 {
  display: inline-block;
  vertical-align: middle;
  color: #ff7a7d;
  font-size: 1rem;
  font-weight: bold;
}

.link-tags .content {
  margin-top: 1rem !important;
}

.link-tags .link {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.link-tags .link a {
  display: inline-block;
  padding: 0.125rem 0.3125rem;
  color: #ff7a7d;
  font-size: 0.875rem;
  font-weight: 400;
  border: 1px solid #ff7a7d;
  border-radius: 4px;
}

/* #endregion */

/* #region 信息列表 */
.info-list {
  font-size: 0;
}

.info-list .title img {
  vertical-align: middle;
  margin-right: 0.5rem;
}

.info-list .title h2 {
  display: inline-block;
  vertical-align: middle;
  color: #ff7a7d;
  font-size: 1rem;
  font-weight: bold;
}

.info-list .content {
  margin-top: 1rem !important;

}

.info-list .list li {
  font-size: 0.875rem;
  font-weight: 400;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.info-list .list li:not(:first-child) {
  margin-top: 0.5rem;
}

.info-list .list h3>a {
  display: inline-block;
  width: 100%;
  color: #666;
  line-height: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: 0.3s;
}

.info-list .list h3>a:hover {
  color: #ff7a7d;
  transition: 0.3s;
}

/* #endregion */

/* #region 内容底部 */
.main-footer {
  padding: 1.125rem !important;
}

.main-footer .img {
  width: 8.675rem;
  margin: 0 auto;
}

.main-list {
  display: flex;
  justify-content: space-around;
}

.main-list li>a {
  color: #333;
  font-size: 1rem;
  font-weight: 400;
  line-height: 24px;
  transition: 0.3s;
}

.main-list li>a:hover {
  color: #ff7a7d;
  transition: 0.3s;
}

.main-link {
  display: flex;
  justify-content: center;
  gap: 3.125rem;
  margin-top: 18px;
}

.main-link a {
  color: #333;
  font-size: 1rem;
  font-weight: 400;
  line-height: 24px;
  transition: 0.3s;
}

.main-link a:hover {
  color: #ff7a7d;
  transition: 0.3s;
}

.main-footer p {
  margin-top: 18px;
  color: #999;
  font-size: 0.875rem;
  font-weight: 400;
}

/* #endregion */

/* #endregion */

/* #region 底部 */
.footer {
  position: fixed;
  bottom: 0;
  z-index: 10;
  width: 100%;
  height: 2.625rem;
  background: #fff;
  padding: 1rem 0;
}

.footer-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.footer-link li {
  flex: 1;
  height: 100%;
}

.footer-link a {
  display: inline-block;
  width: 100%;
  height: 100%;
  text-align: center;
}

.footer-link a>img {
  display: block;
  width: 20%;
  margin: 0.15rem auto;
}

.footer-link a>span {
  color: #ff7a7d;
  font-size: 0.75rem;
}

/* #endregion */

/* #region 遮罩 */
.mask {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

/* #endregion */

/* #region 侧边栏 */
.sidebar {
  box-sizing: border-box;
  overflow: hidden;
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 100;
  width: 70%;
  height: 100vh;
  padding: 2rem 0;
  color: #333;
  font-size: 0.75rem;
  background: #fff;
  transition: 0.3s;
}

.sidebar-checked {
  right: 0;
  transition: 0.3s;
}

.sidebar .logo {
  margin: 0 auto;
  width: 9.25rem;
  height: 3.125rem;
}

.sidebar .logo img {
  width: 100%;
  height: 100%;
}

.sidebar-box:nth-child(2) {
  margin-top: 2rem;
}

.sidebar-box {
  margin-top: 1.25rem;
  padding: 0 1rem;
}

.sidebar-box .title img {
  vertical-align: middle;
  overflow: hidden;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
}

.sidebar-box .title h3 {
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
}

.sidebar-box .list {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.75rem;
  margin-top: 0.75rem;
}

.sidebar-box .list li {
  width: 50%;
}

.sidebar-box .list a {
  color: #666;
  transition: 0.3s;
}

.sidebar-box .list a:hover {
  color: #ff8686;
  transition: 0.3s;
}

.sidebar-ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 15.5rem;
  margin: 2rem auto 0;
  text-align: center;
}

.sidebar-ul li {
  box-sizing: border-box;
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  padding: 1rem;
}

.sidebar-ul li:nth-child(1) {
  background: url(../images/yellow.png) no-repeat center center;
  background-size: 100%;
}

.sidebar-ul li:nth-child(2) {
  background: url(../images/blue.png) no-repeat center center;
  background-size: 100%;
}

.sidebar-ul li:nth-child(3) {
  background: url(../images/purple.png) no-repeat center center;
  background-size: 100%;
}

.sidebar-ul li:nth-child(4) {
  background: url(../images/orange.png) no-repeat center center;
  background-size: 100%;
}

.sidebar-ul li>a {
  display: block;
}

.sidebar-ul img {
  vertical-align: middle;
  width: 1.25rem;
  height: 1.25rem;
}

.sidebar-ul h3 {
  vertical-align: middle;
  display: inline-block;
}

.sidebar-ul span {
  display: block;
  margin-top: 2.25rem;
  color: #666;
}

/* 关闭 */
.sidebar .close {
  position: absolute;
  display: block;
  z-index: 100;
  left: 0.75rem;
  top: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  background: url(../images/close.png) no-repeat center center;
  background-size: 55%;
}

/* #endregion */



.encyclopedia .tips {
  background-color: #fdf3f3;
  border: 1px solid #ffa7a9;
  border-radius: 3px;
  padding: 10px;
  text-align: left !important;
}

.encyclopedia .tips p {
  margin: 0 !important;
  text-indent: 0 !important;
}

.encyclopedia .tips .tips-title {
  color: #ffa7a9;
  font-weight: bold;
  text-align: left !important;
}

.encyclopedia .cite {
  border-left: 2px solid #ffa7a9;
  color: #ffa7a9;
  padding: 5px 5px 5px 10px;
}

.encyclopedia .cite p {
  color: #ffa7a9 !important;
  text-align: left !important;
  margin: 0 !important;
  text-indent: 0 !important;
}



/*问答样式*/
.encyclopedia .dialogue li {
  margin-top: 30px;
  list-style: none;
}

.encyclopedia .dialogue li:first-child {
  margin-top: 0;
}

.encyclopedia .dialogue li>div {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.encyclopedia .dialogue .user {
  flex-direction: row-reverse;
}

.encyclopedia .dialogue .name {
  color: #666;
  font-size: 14px;
  text-align: center;
}

.encyclopedia .dialogue .img {
  overflow: hidden;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  margin-bottom: 10px;
  border-radius: 50%;
}

.encyclopedia .dialogue .doctor .img {
  background-image: url("../images/doctor-avatar.png");
  background-size: 100% 100%;
}

.encyclopedia .dialogue .user .img {
  background-image: url("../images/patient-avatar.png");
  background-size: 100% 100%;
}

.encyclopedia .dialogue p {
  margin: 0 !important;
  text-indent: 0 !important;
  line-height: 130% !important;
  display: inline-block;
  max-width: 50%;
  padding: 10px 20px;
  color: #333;
  font-size: 16px;
  border-radius: 4px;
}

.encyclopedia .dialogue .answer {
  background: #fdf3f3;
}

.encyclopedia .dialogue .question {
  background: #f5f5f5;
}

.content p img {
  max-width: 80%;
}

.content p {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.content .content .tips {
  background-color: #fdf3f3;
  border: 1px solid #49C066;
  border-radius: 3px;
  padding: 10px;
}

.content .content .tips .tips-title {
  color: #49C066;
  margin: 0;
}

.content .content .cite {
  border-left: 2px solid #49C066;
  color: #49C066;
  padding: 5px 5px 5px 10px;
  text-align: left;
  text-indent: 2em;
}

.content .content p {
  text-align: left;
}


.content .custom-tb {
  text-align: left;
}

.content .align-tr {
  height: 30px;
  color: #999;
  font-size: 14px;
}

.content .left-th {
  vertical-align: middle;
  width: 20px;
  padding: 10px;
  text-align: center;
  background-color: #fdf3f3;
}


.content .top-th {
  vertical-align: middle;
  padding-left: 20px;
  color: #333;
  font-size: 16px;
  font-weight: bold;
  background-color: #FAFAFA;
}

.content .content-td {
  box-sizing: border-box;
  padding: 20px;
  color: #666;
  font-size: 14px;
  vertical-align: baseline;
  background-color: #FAFAFA;
}

.content .custom-tb .content-td {
  border-top: 1px solid #f0f0f0;
}

/*问答样式*/
.content .dialogue li {
  margin-top: 30px;
  list-style: none;
}

.content .dialogue li:first-child {
  margin-top: 0;
}

.content .dialogue li>div {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.content .dialogue .user {
  flex-direction: row-reverse;
}

.content .dialogue .name {
  color: #666;
  font-size: 14px;
  text-align: center;
}

.content .dialogue .img {
  overflow: hidden;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  margin-bottom: 10px;
  border-radius: 50%;
}

.content .dialogue .doctor .img {
  background-image: url("../images/doctor-avatar.png");
  background-size: 100% 100%;
}

.content .dialogue .user .img {
  background-image: url("../images/patient-avatar.png");
  background-size: 100% 100%;
}

.content .dialogue p {
  margin: 0 !important;
  text-indent: 0 !important;
  line-height: 130% !important;
  display: inline-block;
  max-width: 50%;
  padding: 10px 20px;
  color: #333;
  font-size: 16px;
  border-radius: 4px;
}

.content .dialogue .answer {
  background: #fdf3f3;
}

.content .dialogue .question {
  background: #f5f5f5;
}

.content p img {
  max-width: 80%;
}

.content .content {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}