body {
  font-family: "PingFang-Regular", "microsoft yahei", "微软雅黑", "宋体",
    "Helvetica Neue", "Raleway", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7857;
  letter-spacing: 0.075em;
  height: 100%;
  color: #fff;
  background-color: #191919;
  position: relative;
}

.top-line {
  height: 2px;
  background-color: #8acb1f;
}

.bottom-line {
  position: relative;
  height: 2px;
  background-color: #1869ff;
  bottom: 65px;
}

.top {
  grid-area: 1 / 1 / 2 / 4;
}

.footer {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-rows: 1fr;
  grid-template-columns: 1fr 1024px 1fr;
  gap: 0px 0px;
  align-items: center;
  grid-area: 3 / 1 / 4 / 4;
  background-color: #191919;
  color: #fff;
}

.footer div:first-child {
  grid-column-start: 2;
  grid-column-end: 3;
  letter-spacing: 4px;
  font-size: 12px;
}

.sidebar-left {
  grid-area: 2 / 1 / 3 / 2;
  justify-self: end;
  align-self: end;
}

.sidebar-right {
  grid-area: 2 / 3 / 3 / 4;
}

.nav {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 10px;
  grid-template-rows: 24px;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas: ". . . . . . .";
  align-self: center;
  justify-self: end;
  grid-area: nav;
  justify-items: end;
  align-content: center;
  font-family: "PingFang-bold";
  font-weight: 400;
  color: #fff;
}

.nav-link {
  width: 120px;
  padding: 0.4rem 1.2rem;
  opacity: 0.8;
  -moz-transform: scale(1);
  -webkit-transform: scale(1);
  -o-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

.logo {
  align-self: center;
  grid-area: logo;
}

ul.nav > li > a.active,
ul.nav > li > a:hover {
  -webkit-transition: all 0.5s ease-in-out 0.15s;
  -moz-transition: all 0.5s ease-in-out 0.15s;
  -ms-transition: all 0.5s ease-in-out 0.15s;
  -o-transition: all 0.5s ease-in-out 0.15s;
  transition: all 0.5s ease-in-out 0.15s;
  /* 缓动 */
  opacity: 1;
  -moz-transform: scale(1);
  -webkit-transform: scale(1);
  -o-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);

  background: url(../images/hover.png) no-repeat left;
}

.pagin {
  grid-area: pagin;
  justify-self: center;
  align-self: center;
}

/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
  background-color: #f5f5f5;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #f5f5f5;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
  background-color: #c8c8c8;
}

@media screen and (min-width: 1920px) {
  .container {
    height: 100vmin;
  }
}

/************************ markdown ************************/
.center{
  text-align: center;
}/* 文字居中 */

.right{
  text-align: right;
}/* 文字居右 */

.indent{
  text-indent: 2em;
}/* 缩进 */

.b{
  font-weight: 600;
}/* 加粗 */

.imp{
  font-weight: 600;
  color:#d63384;
}

.main-content h1{
  margin-top: 0.2em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.main-content h4{
  border-left: 4px solid #9bcd2e;
  padding-left: 8px;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #474747;
}

.main-content h6{
  padding-top:1rem;
}

.sub{
  font-size: 12px;
  color: #d1d1d1;
}

.main-content h4 h6{
  font-weight: 600;
  color: #474747;
}

.main-content ol,ul,p{
  font-size:16px;
  letter-spacing:.02em;
}

.str{
  margin-bottom: 10px;
  padding: 8px;
  line-height: 1.6;
  border-radius: 0 2px 2px 0;
  background-color: #FAFAFA;
}

.quote{
  margin: 10px 0;
  padding: 15px;
  line-height: 24px;
  letter-spacing: 0.02em;
  border: 1px solid #eee;
  border-left-width: 6px;
  background-color: #FAFAFA;
  color: #333;
}/* 灰色框的引用 */

p img{
  max-width: 100%; /* 确保图片宽度不会超过其容器的宽度 */  
  height: auto; /* 保持图片的原始高度 */  
  object-fit: cover; /* 保持图片的长宽比，同时填充元素的整个内容框 */  
}

.msg{
  margin:0.5rem auto;  
}

.msg tr td {
  border: 1px solid #333;
  padding: 10px;
}

/************************ img enlarge ************************/
 /* 用于模态框的基本样式 */
 .modal {
  display: none; /* 默认隐藏 */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 10px;
  border: 1px solid #888;
  width: 95%; /* 调整图片显示区域大小 */
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* 图片放大的样式 */
.enlarged-image {
  max-width: 100%;
  height: auto;
}

/* For presentation only, no need to copy the code below */

/* .container * {
  border: 1px solid red;
  position: relative;
}

.container *:after {
  content: attr(class);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  align-items: center;
  justify-content: center;
} */
