﻿@import 'root.css';
.page-rich-text {
  text-align: justify;
}
.page-rich-text h3 {
  position: relative;
  margin: 4% 0 2%;
  color: var(--main-color);
  padding-left: 2%;
}
/*.page-rich-text h3::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  position: absolute;
  right: 0;
  bottom: -18px;
  background: linear-gradient(to right, rgba(146,61,154), transparent);
}*/
.page-rich-text h3::before {
  content: "";
  position: absolute;
  top: 33%;
  left: 0;
  width: 0px;
  height: 0px;
  border-top: 5px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--main-color);
}
.page-rich-text ul li, .page-rich-text ol li {
  list-style-position: inside;
}
.page-rich-text ul, .page-rich-text ol, .page-rich-text li p, .page-rich-text p {
  line-height: 2em;
  font-size: 18px;
}
.page-rich-text li p, .page-rich-text p {
  text-indent: 2em;
}
.page-rich-text ul, .page-rich-text ol {
  margin: 2% 0;
}
.rich-text-img {
  width: 100%;
  /*text-align: center;*/
  margin: 2% 0;
  display: flex;
  justify-content: center;
}
.page-rich-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px auto 16px;
  text-align: center;
}
.page-rich-text table td, .page-rich-text table th {
  border: 1px solid #333;
}
.page-rich-text table thead tr {
  background-color: var(--main-color-trn8);
  color: #fff;
}
.page-rich-text table tr th, .page-rich-text table tr td{
  padding: 10px 1px;
}
.page-rich-text table tbody tr:nth-child(odd) {
  background: #fff;
}
.page-rich-text table tbody tr:nth-child(even) {
  background: var(--main-color-trn1);
}

.page-rich-text .research-dep-center-list {
  display: grid;
  grid-template-columns: repeat(3, 33%);
}
.page-rich-text .research-dep-center-list > a {
  position: relative;
  padding: 2rem 2.5rem 2rem;
  font-size: 16px;
}
.page-rich-text .research-dep-center-list > a::before {
  content: counter(sub-item, disc);
  color: var(--main-color);
  position: absolute;
  left: 1.5rem;
  top: 1.8rem;
  z-index: 11;
}
.page-rich-text .research-dep-center-list > a::after {
  content: counter(sub-item, disc);
  color: #e5dce9;
  position: absolute;
  left: 1.7rem;
}

/**
 * 模板中关于人员列表的样式Card，可参考信息所详情页
 */
.page-rich-text .member-card-container {
  width: 100%;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  margin: 2% 0;
}
.page-rich-text .member-card-container .member-card {
  position: relative;
  border: 1.5px solid #6708F4;
  padding: 20px;
}
.page-rich-text .member-card-container .member-card::after {
  --width: 60px;
  position: absolute;
  content: "";
  height: 5px;
  width: var(--width);
  background-color: #6708F4;
  left: calc(50% - calc(var(--width) / 2));
  top: 0;
}
.page-rich-text .member-card-container .member-card .member-img {
  width: 120px;
  height: 120px;
  overflow: hidden;
  margin: 0 auto;
  clip-path: circle(50%);
}
.page-rich-text .member-card-container .member-card .member-img img {
  height: auto;
  width: 100%;
}
.page-rich-text .member-card-container .member-card .member-name {
  text-align: center;
  font-weight: bold;
  padding: 10px 0;
  font-size: 18px;
}
.page-rich-text .member-card-container .member-card .member-introduce {
  line-height: 24px;
  text-align: justify;
}
/**
 * 模板中关于人员列表的样式List，可参考信息所详情页
 */
.page-rich-text .members-container {
  width: 100%;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(5, 1fr);
  margin: 2% 0;
}
.page-rich-text .members-container .member-item .member-img {
  /*aspect-ratio: 77 / 100;
  border-radius: .25rem;
  overflow: hidden;
  display: flex;
  justify-content: center;*/
  
  /*解决360极速浏览器不支持aspect-ratio的问题*/
  position: relative;
  width: 100%;
  padding-bottom: calc(100% / (77 / 100));
}
.page-rich-text .members-container .member-item .member-img img {
  /*width: 100%;
  height: 100%;
  object-fit: cover;*/
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.page-rich-text .members-container .member-item .member-name {
  text-align: center;
  font-weight: bold;
  padding: 10px 0;
  font-size: 18px;
}

@media(min-width: 768px) and (max-width: 1200px) {
  .page-rich-text .member-card-container {
    gap: 15px !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .page-rich-text .members-container {
    gap: 15px !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media(max-width: 767px) {
  .page-rich-text .member-card-container {
    gap: 10px !important;
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .page-rich-text .members-container {
    gap: 10px !important;
    grid-template-columns: repeat(1, 1fr) !important;
  }
}