/*默认样式，最佳实践*/

/*全局属性*/
.markdown-body {
  font-size: 16px;
  color: black;
  padding: 0 10px;
  line-height: 1.6;
  word-spacing: 0px;
  letter-spacing: 0px;
  word-break: break-word;
  word-wrap: break-word;
  text-align: left;
  font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  /* margin-top: -10px; 解决开头空隙过大问题*/
}

/*段落*/
.markdown-body p {
  font-size: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  margin: 0;
  line-height: 26px;
  color: black;
}

/*标题*/
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  margin-top: 30px;
  margin-bottom: 15px;
  padding: 0px;
  font-weight: bold;
  color: black;
}
.markdown-body h1 {
  font-size: 24px;
}
.markdown-body h2 {
  font-size: 22px;
}
.markdown-body h3 {
  font-size: 20px;
}
.markdown-body h4 {
  font-size: 18px;
}
.markdown-body h5 {
  font-size: 16px;
}
.markdown-body h6 {
  font-size: 16px;
}

.markdown-body h1 .prefix,
.markdown-body h2 .prefix,
.markdown-body h3 .prefix,
.markdown-body h4 .prefix,
.markdown-body h5 .prefix,
.markdown-body h6 .prefix {
  display: none;
}

.markdown-body h1 .suffix
.markdown-body h2 .suffix,
.markdown-body h3 .suffix,
.markdown-body h4 .suffix,
.markdown-body h5 .suffix,
.markdown-body h6 .suffix {
  display: none;
}

/*列表*/
.markdown-body ul,
.markdown-body ol {
  margin-top: 8px;
  margin-bottom: 8px;
  padding-left: 25px;
  color: black;
}
.markdown-body ul {
  list-style-type: disc;
}
.markdown-body ul ul {
  list-style-type: square;
}

.markdown-body ol {
  list-style-type: decimal;
}

.markdown-body li section {
  margin-top: 5px;
  margin-bottom: 5px;
  line-height: 26px;
  text-align: left;
  color: rgb(1,1,1); /* 只要是纯黑色微信编辑器就会把color这个属性吞掉。。。*/
  font-weight: 500;
}

/*引用*/
.markdown-body blockquote {
  display: block;
  font-size: 0.9em;
  overflow: auto;
  overflow-scrolling: touch;
  border-left: 3px solid rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.05);
  color: #6a737d;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 20px;
  padding-right: 10px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.markdown-body blockquote p {
  margin: 0px;
  color: black;
  line-height: 26px;
}

.markdown-body .table-of-contents a {
  border: none;
  color: black;
  font-weight: normal;
}

/*链接*/
.markdown-body a {
  text-decoration: none;
  color: #1e6bb8;
  word-wrap: break-word;
  font-weight: bold;
  border-bottom: 1px solid #1e6bb8;
}

/*加粗*/
.markdown-body strong {
  font-weight: bold;
  color: black;
}

/*斜体*/
.markdown-body em {
  font-style: italic;
  color: black;
}

/*加粗斜体*/
.markdown-body em strong {
  font-weight: bold;
  color: black;
}

/*删除线*/
.markdown-body del {
  font-style: italic;
  color: black;
}

/*分隔线*/
.markdown-body hr {
  height: 1px;
  margin: 0;
  margin-top: 10px;
  margin-bottom: 10px;
  border: none;
  border-top: 1px solid black;
}

/*代码块*/
.markdown-body pre {
  margin-top: 10px;
  margin-bottom: 10px;
}
.markdown-body pre code {
  display: block;
  font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;
  border-radius: 0px;
  font-size: 12px;
  -webkit-overflow-scrolling: touch;
}
.markdown-body pre code span {
  line-height: 26px;
}

/*行内代码*/
.markdown-body p code,
.markdown-body li code {
  font-size: 14px;
  word-wrap: break-word;
  padding: 2px 4px;
  border-radius: 4px;
  margin: 0 2px;
  color: #1e6bb8;
  background-color: rgba(27,31,35,.05);
  font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;
  word-break: break-all;
}

/*图片*/
.markdown-body img {
  border-radius: 6px;
  display: block;
  margin: 20px auto;
  object-fit: contain;
  box-shadow: 2px 4px 7px #999;
}

/*图片*/
.markdown-body figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
}

/*图片描述文字*/
.markdown-body figcaption {
  display: block;
}


/*表格容器 */
.markdown-body .table-container{
  overflow-x: auto;
}

/*表格*/
.markdown-body table {
  display: table;
  text-align: left;
}
.markdown-body tbody {
  border: 0;
}

.markdown-body table tr {
  border: 0;
  border-top: 1px solid #ccc;
  background-color: white;
}

.markdown-body table tr:nth-child(2n) {
  background-color: #F8F8F8;
}

.markdown-body table tr th,
.markdown-body table tr td {
  font-size: 16px;
  border: 1px solid #ccc;
  padding: 5px 10px;
  text-align: left;
}

.markdown-body table tr th {
  font-weight: bold;
  background-color: #f0f0f0;
}

/* 表格最小列宽4个汉字 */
.markdown-body table tr th:nth-of-type(n),
.markdown-body table tr td:nth-of-type(n){
  min-width:85px;
}

/* 微信代码块 */
.markdown-body .code-snippet__fix {
  word-wrap: break-word !important;
  font-size: 14px;
  margin: 10px 0;
  display: block;
  color: #333;
  position: relative;
  background-color: rgba(0,0,0,0.03);
  border: 1px solid #f0f0f0;
  border-radius: 2px;
  display: flex;
  line-height: 20px;
}
.markdown-body .code-snippet__fix pre {
  margin-bottom: 10px;
  margin-top: 0px;
}
.markdown-body .code-snippet__fix .code-snippet__line-index {
  counter-reset: line;
  flex-shrink: 0;
  height: 100%;
  padding: 1em;
  list-style-type: none;
  padding: 16px;
  margin: 0;
}
.markdown-body .code-snippet__fix .code-snippet__line-index li {
  list-style-type: none;
  text-align: right;
  line-height: 26px;
  color: black;
  margin: 0;
}
.markdown-body .code-snippet__fix .code-snippet__line-index li::before {
  min-width: 1.5em;
  text-align: right;
  left: -2.5em;
  counter-increment: line;
  content: counter(line);
  display: inline;
  color: rgba(0,0,0,0.3);
}
.markdown-body .code-snippet__fix pre {
  overflow-x: auto;
  padding: 16px;
  padding-left: 0;
  white-space: normal;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.markdown-body .code-snippet__fix code {
  text-align: left;
  font-size: 14px;
  display: block;
  white-space: pre;
  display: flex;
  position: relative;
  font-family: Consolas,"Liberation Mono",Menlo,Courier,monospace;
  padding: 0px;
}

.markdown-body .footnote-word {
  color: #1e6bb8;
  font-weight: bold;
}

.markdown-body .footnote-ref {
  color: #1e6bb8;
  font-weight: bold;
}

.markdown-body .footnote-item {
  display: flex;
}

.markdown-body .footnote-num {
  display: inline;
  width: 10%; /*神奇，50px就不可以*/
  background: none;
  font-size: 80%;
  opacity: 0.6;
  line-height: 26px;
  font-family: ptima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.markdown-body .footnote-item p {
  display: inline;
  font-size: 14px;
  width: 90%;
  padding: 0px;
  margin: 0;
  line-height: 26px;
  color: black;
  word-break:break-all;
  width: calc(100%-50)
}

.markdown-body sub, sup {
  line-height: 0;
}

.markdown-body .footnotes-sep:before {
  content: "参考资料";
  display: block;
}

/* 解决公式问题 */
.markdown-body .block-equation {
  display:block;
  text-align: center;
  overflow: auto;
  display: block;
  -webkit-overflow-scrolling: touch;
}

.markdown-body .block-equation svg {
  max-width: 300% !important;
  -webkit-overflow-scrolling: touch;
}

.markdown-body .inline-equation {
}

.markdown-body .inline-equation svg {
}

.markdown-body .imageflow-layer1 {
  margin-top: 1em;
  margin-bottom: 0.5em;
  white-space: normal;
  border: 0px none;
  padding: 0px;
  overflow: hidden;
}

.markdown-body .imageflow-layer2 {
  white-space: nowrap;
  width: 100%;
  overflow-x: scroll;
}

.markdown-body .imageflow-layer3 {
  display: inline-block;
  word-wrap: break-word;
  white-space: normal;
  vertical-align: middle;
  width: 100%;
}

.markdown-body .imageflow-img {
  display: inline-block;
}

.markdown-body .imageflow-caption {
  text-align: center;
  margin-top: 0px;
  padding-top: 0px;
  color: #888;
}

.markdown-body .nice-suffix-juejin-container {
  margin-top: 20px !important;
}

.markdown-body figure a {
  border: none;
}

.markdown-body figure a img {
  margin: 0px;
}

.markdown-body figure {
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 图片链接嵌套 */
.markdown-body figure a {
  display: flex;
  justify-content: center;
  align-items: center;
}




/* 全栈蓝 主题扩展 */
/*自定义样式，实时生效*/

/*自定义样式，实时生效*/

/* 全局属性
* 页边距 padding:30px;
* 全文字体 font-family:optima-Regular;
* 英文换行 word-break:break-all;
color:#2b2b2b;
*/
.markdown-body {
  line-height: 1.25;
  color: #2b2b2b;
  font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light;
  letter-spacing: 2px;
  background-image: linear-gradient(90deg, rgba(50, 0, 0, 0.04) 3%, rgba(0, 0, 0, 0) 3%), linear-gradient(360deg, rgba(50, 0, 0, 0.04) 3%, rgba(0, 0, 0, 0) 3%);
  background-size: 20px 20px;
  background-position: center center;
}

/* 段落，下方未标注标签参数均同此处
* 上边距 margin-top:5px;
* 下边距 margin-bottom:5px;
* 行高 line-height:26px;
* 词间距 word-spacing:3px;
* 字间距 letter-spacing:3px;
* 对齐 text-align:left;
* 颜色 color:#3e3e3e;
* 字体大小 font-size:16px;
* 首行缩进 text-indent:2em;
*/
.markdown-body p {
  color: #2b2b2b;
  margin: 10px 0px;
  letter-spacing: 2px;
  font-size: 14px;
  word-spacing: 2px;
}

/* 一级标题 */
.markdown-body h1 {
  font-size: 25px;
}

/* 一级标题内容 */
.markdown-body h1 span {
  display: inline-block;
  font-weight: bold;
  color: #40B8FA;
}

/* 一级标题修饰 请参考有实例的主题 */
.markdown-body h1:after {}

/* 二级标题 */
.markdown-body h2 {
  display:block;
  border-bottom: 4px solid #40B8FA;
}

/* 二级标题内容 */
.markdown-body h2 .content {
  display: flex;
  color: #40B8FA;
  font-size: 20px;
  margin-left: 25px;
}

/* 二级标题前缀 */
.markdown-body h2 .prefix {
  display: flex;
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
  background-image:url(https://my-wechat.mdnice.com/fullstack-1.png);
  margin-bottom: -22px;
}

/* 二级标题后缀 */
.markdown-body h2 > .suffix {
  display: flex !important;
  box-sizing: border-box;
  width: 200px;
  height: 10px;
  border-top-left-radius: 20px;
  background: RGBA(64, 184, 250, .5);
  color: rgb(255, 255, 255);
  font-size: 16px;
  letter-spacing: 0.544px;
  justify-content: flex-end;
  overflow-wrap: break-word;
  float: right;
  margin-top: -10px;
}

/* 三级标题 */
.markdown-body h3 {
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  position:relative;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* 三级标题内容 */
.markdown-body h3 .content {
  border-bottom: 2px solid RGBA(79, 177, 249, .65);
  color: #2b2b2b;
  padding-bottom:2px
}

.markdown-body h3 .content:before{
  content:'';
  width:30px;
  height:30px;
  display:block;
  background-image:url(https://my-wechat.mdnice.com/fullstack-2.png);
  background-position:center;
  background-size:30px;
  margin:auto;
  opacity:1;
  background-repeat:no-repeat;
  margin-bottom:-8px;
}

/* 三级标题修饰 请参考有实例的主题 */
.markdown-body h3:after {}

.markdown-body h4 .content {
  height:16px;
  line-height:16px;
  font-size: 16px;
}

.markdown-body h4 .content:before{
  content:'';
  background-image:url(https://my-wechat.mdnice.com/fullstack-3.png);
  display:inline-block;
  width:16px;
  height:16px;
  background-size:100% ;
  background-position:left bottom;
  background-repeat:no-repeat;
  width: 16px;
  height: 15px;
  line-height:15px;
  margin-right:6px;
  margin-bottom:-2px;
}

/* 无序列表整体样式
* list-style-type: square|circle|disc;
*/
.markdown-body ul {
  font-size: 15px; /*神奇逻辑，必须比li section的字体大才会在二级中生效*/
  color: #595959;
  list-style-type: circle;
}


/* 有序列表整体样式
* list-style-type: upper-roman|lower-greek|lower-alpha;
*/
.markdown-body ol {
  font-size: 15px;
  color: #595959;
}

/* 列表内容，不要设置li
*/
.markdown-body li section {
  font-size: 14px;
  font-weight: normal;
  color: #595959;
}

/* 引用
* 左边缘颜色 border-left-color:black;
* 背景色 background:gray;
*/
.markdown-body blockquote::before {
  content: "❝";
  color: RGBA(64, 184, 250, .5);
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
}

.markdown-body blockquote {
  text-size-adjust: 100%;
  line-height: 1.55em;
  font-weight: 400;
  border-radius: 6px;
  color: #595959;
  font-style: normal;
  text-align: left;
  box-sizing: inherit;
  border: 1px solid RGBA(64, 184, 250, .4);
  border-left: none;
  background: RGBA(64, 184, 250, .1);
}

.markdown-body blockquote p {
  color: #595959;
}

.markdown-body blockquote::after {
  content: "❞";
  float: right;
  color: RGBA(64, 184, 250, .5);
}

/* 链接
* border-bottom: 1px solid #009688;
*/
.markdown-body a span {
  color: #40B8FA;
  font-weight: normal;
  border-bottom: 1px solid #3BAAFA;
}

.markdown-body strong::before {
  content: '「';
}

/* 加粗 */
.markdown-body strong {
  color: #3594F7;
  font-weight: bold;
}

.markdown-body strong::after {
  content: '」';
}

/* 斜体 */
.markdown-body em {
  font-style: normal;
  color: #3594F7;
  font-weight:bold;
}

/* 加粗斜体 */
.markdown-body em strong {
  color: #3594F7;
}

/* 删除线 */
.markdown-body del {
  color: #3594F7;
}

/* 分隔线
* 粗细、样式和颜色
* border-top:1px solid #3e3e3e;
*/
.markdown-body hr {
  height: 1px;
  padding: 0;
  border: none;
  border-top: 2px solid #3BAAFA;
}

/* 图片
* 宽度 width:80%;
* 居中 margin:0 auto;
* 居左 margin:0 0;
*/
.markdown-body img {
  border-radius: 6px;
  display: block;
  margin: 20px auto;
  object-fit: fill;
  box-shadow:2px 4px 7px #999;
  max-width: 100%;
}

/* 图片描述文字 */
.markdown-body figcaption {
  margin-top: 5px;
  text-align: center;
  color: #888;
  font-size: 14px;
}
  color: #2b2b2b;
  margin-top: 5px;
  text-align: center;
}

/* 行内代码 */
.markdown-body p code,
.markdown-body li code {
  color: #3594F7;
  background: RGBA(59, 170, 250, .1);
  padding:0 2px;
  border-radius:2px;
  height:21px;
  line-height:22px;
}

/* 非微信代码块
* 代码块不换行 display:-webkit-box !important;
* 代码块换行 display:block;
*/
.markdown-body .code-snippet__fix {
  background: #f7f7f7;
  border-radius: 2px;
}

.markdown-body pre code {
  letter-spacing: 0px;
}

/*
* 表格内的单元格
* 字体大小 font-size: 16px;
* 边框 border: 1px solid #ccc;
* 内边距 padding: 5px 10px;
*/
.markdown-body table tr th,
.markdown-body table tr td {
  font-size: 14px;
  color: #595959;
}

.markdown-body .footnotes {
  background: #F6EEFF;
  padding: 20px 20px 20px 20px;
  font-size: 14px;
  border: 0.8px solid #DEC6FB;
  border-radius: 6px;
  border: 1px solid #DEC6FB;
}

/* 脚注文字 */
.markdown-body .footnote-word {
  font-weight: normal;
  color: #595959;
}

/* 脚注上标 */
.markdown-body .footnote-ref {
  font-weight: normal;
  color: #595959;
}

/*脚注链接样式*/
.markdown-body .footnote-item em {
  font-size: 14px;
  color: #595959;
  display: block;
}

.markdown-body .footnotes{
  background: RGBA(53, 148, 247, .4);
  padding: 20px 20px 20px 20px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid RGBA(53, 148, 247, 1);
}

/* "参考资料"四个字
* 内容 content: "参考资料";
*/
.markdown-body .footnotes-sep:before {
  content: 'Reference';
  color: #595959;
  letter-spacing: 1px;
  border-bottom: 2px solid RGBA(64, 184, 250, 1);
  display: inline;
  background: linear-gradient(white 60%, RGBA(64, 184, 250, .4) 40%);
  font-size: 20px;
}

/* 参考资料编号 */
.markdown-body .footnote-num {}

/* 参考资料文字 */
.markdown-body .footnote-item p {
  color: #595959;
  font-weight: bold;
}

/* 参考资料解释 */
.markdown-body .footnote-item p em {
  font-weight: normal;
}

/* 行间公式
* 最大宽度 max-width: 300% !important;
*/
.markdown-body .block-equation svg {}

/* 行内公式
*/
.markdown-body .inline-equation svg {}

/* 滑动图片
 */
.markdown-body .imageflow-img {
  display: inline-block;
  width:100%;
  margin-bottom: 0;
}
