@-webkit-keyframes code-expand-key {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.6;
  }
}
@keyframes code-expand-key {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.6;
  }
}
@-webkit-keyframes elastic {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@keyframes elastic {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@font-face {
  font-family: 'code-font';
  src: url('../font/iconfont.ttf?t=1637254278028') format('truetype');
}
.code-iconfont {
  font-family: "code-font" !important;
  font-size: 24px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.code-wrapper {
  position: relative;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  overflow: hidden;
  border-radius: 5px;
  margin: 25px 0;
  height: auto;
}
.code-wrapper .hide {
  display: none !important;
}
.code-wrapper::before {
  color: #4c4948;
  content: '';
  height: 30px;
  line-height: 30px;
  background: transparent;
  font-size: 16px;
  display: block;
  width: 100%;
  font-weight: 700;
  padding: 0 80px 0 10px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  z-index: 6;
}
.code-wrapper > pre {
  font-size: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  overflow: auto;
  height: 100%;
  padding: 0;
  margin-bottom: 0 !important;
  white-space: pre;
  -moz-tab-size: 4;
    -o-tab-size: 4;
       tab-size: 4;
  max-width: none;
  -webkit-transition: max-height 0.2s;
  transition: max-height 0.2s;
}
.code-wrapper > pre > code {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-size: 15px;
  display: block;
  width: 100%;
  padding: 0 0 10px 10px !important;
  overflow: auto;
  border-radius: 0;
  border: none;
}
.code-wrapper > pre > code ul {
  list-style: none;
  margin: 0 !important;
  padding: 0;
  display: inline-block;
  min-width: 100%;
  border: none;
}
.code-wrapper > pre > code ul li {
  list-style: none;
  margin: 0 !important;
  line-height: 1.8;
  background: transparent;
  display:revert;
}
.code-wrapper[close="true"] .code-btn-expand {
  display: none;
}
.code-wrapper[close="true"] > pre {
  overflow: hidden;
}
.code-wrapper[close="true"] > pre > code {
  padding-top: 30px !important;
}
.code-wrapper[close="true"] > pre > code .code-button-box .code-btn-close {
  -webkit-transform: rotate(-180deg);
          transform: rotate(-180deg);
}
.code-wrapper .code-button-box {
  position: absolute;
  right: 5px;
  top: 0;
  width: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  z-index: 6;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.code-wrapper .code-button-box .code-button-notice {
  line-height: 30px;
  color: #4c4948;
  font-size: 14px;
  padding-right: 5px;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
  opacity: 0;
}
.code-wrapper .code-button-box .code-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: #4c4948;
  height: 30px;
  width: 30px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  cursor: pointer;
  border: none;
  background-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-appearance: none;
  line-height: 30px;
  outline: none;
  -webkit-transition: opacity 0.2s ease-in-out, color 0.2s ease-out, transform 0.3s;
  -webkit-transition: opacity 0.2s ease-in-out, color 0.2s ease-out, -webkit-transform 0.3s;
  transition: opacity 0.2s ease-in-out, color 0.2s ease-out, -webkit-transform 0.3s;
  transition: opacity 0.2s ease-in-out, color 0.2s ease-out, transform 0.3s;
  transition: opacity 0.2s ease-in-out, color 0.2s ease-out, transform 0.3s, -webkit-transform 0.3s;
  opacity: 1;
}
.code-wrapper .code-btn-expand {
  position: absolute;
  bottom: 0;
  z-index: 4;
  width: 100%;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(246, 248, 250, 0.2)), to(rgba(246, 248, 250, 0.9)));
  background: linear-gradient(180deg, rgba(246, 248, 250, 0.2), rgba(246, 248, 250, 0.9));
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.3;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.code-wrapper .code-btn-expand i {
  color: #242424;
  -webkit-animation: code-expand-key 1.2s infinite;
          animation: code-expand-key 1.2s infinite;
}
.code-wrapper .code-btn-expand.expand-done {
  display: none !important;
}
.code-wrapper:not(.code-block-fullscreen) .code-btn-expand:not(.expand-done) ~ pre {
  overflow: hidden;
}
.code-wrapper.code-word-wrap > pre {
  white-space: pre-wrap;
  word-break: break-all;
  word-wrap: break-word;
}
.code-wrapper.show-type::before {
  content: attr(data-language);
}
.code-wrapper.show-shadow {
  -webkit-box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.15);
          box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.15);
}
.code-wrapper.code-block-fullscreen {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100% !important;
  min-width: 100%;
  z-index: 9999996;
  border-radius: 0;
  margin: 0;
  -webkit-animation: elastic 0.5s;
          animation: elastic 0.5s;
} 
.code-wrapper.code-block-fullscreen pre {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.code-wrapper.code-block-fullscreen pre code {
  height: 100%;
}
.code-wrapper.show-line-number ul {
  list-style: decimal;
  margin: 0 0 0 40px !important;
  min-width: calc(100% - 40px);
}
.code-wrapper.show-line-number ul li {
  list-style: decimal-leading-zero;
}
.code-wrapper.show-line ul li {
  border-left: 1px solid #ddd !important;
  padding-left: 10px;
}
.code-wrapper > pre::-webkit-scrollbar,
.code-wrapper > pre > code::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.code-wrapper > pre::-webkit-scrollbar-thumb,
.code-wrapper > pre > code::-webkit-scrollbar-thumb {
  /* 滚动条里面小方块 */
  background: #5f5f5f;
}
.code-wrapper > pre::-webkit-scrollbar-track,
.code-wrapper > pre > code::-webkit-scrollbar-track {
  /* 滚动条里面轨道 */
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
          box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: #ededed;
}
/*.code-wrapper::selection {*/
/* 选中样式 */
/*    color: #fff;*/
/*    background-color: #eb5055;*/
/*}*/
@media (hover: hover) and (pointer: fine) {
  .code-wrapper .code-btn:hover,
  .code-wrapper.mac-light .code-btn:hover {
    color: rgba(0, 0, 0, 0.5);
  }
  .code-wrapper.base-dark .code-btn:hover,
  .code-wrapper.mac-dark .code-btn:hover {
    color: rgba(255, 255, 255, 0.5);
  }
  .code-wrapper ul li:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }
  .code-wrapper.base-dark ul li:hover,
  .code-wrapper.mac-dark ul li:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}
.code-wrapper.base-dark::before {
  color: #ffffff;
}
.code-wrapper.base-dark .code-button-box .code-btn {
  color: #ffffff;
}
.code-wrapper.base-dark .code-button-box .code-button-notice {
  color: #ffffff;
}
.code-wrapper.base-dark .code-btn-expand {
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(29, 30, 36, 0.2)), to(rgba(33, 37, 43, 0.9)));
  background: linear-gradient(180deg, rgba(29, 30, 36, 0.2), rgba(33, 37, 43, 0.9));
}
.code-wrapper.base-dark .code-btn-expand i {
  color: #ffffff;
}
.code-wrapper.mac-light.hljs,
.code-wrapper.mac-light::before {
  color: #5c5e6e !important;
  background-color: #e6ebf1 !important;
}
.code-wrapper.mac-light::before {
  text-align: center;
  padding: 0 80px;
}
.code-wrapper.mac-light .code-button-box .code-btn,
.code-wrapper.mac-light .code-button-box .code-button-notice {
  color: #4c4948;
}
.code-wrapper.mac-light > pre code {
  padding: 10px 10px 10px 10px !important;
}
.code-wrapper.mac-light > pre code ul li {
  font-family: Consolas, Lucida Console, Monaco, Andale Mono, Ubuntu Mono, monospace !important;
  font-size: 15px;
}
.code-wrapper.mac-light > pre code ul li::marker {
  color: #999;
}
.code-wrapper.mac-dark.hljs,
.code-wrapper.mac-dark::before {
  color: #ffffff !important;
  background-color: #21252b !important;
}
.code-wrapper.mac-dark::before {
  text-align: center;
  padding: 0 80px;
}
.code-wrapper.mac-dark .code-btn-expand {
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(29, 30, 36, 0.2)), to(rgba(33, 37, 43, 0.9)));
  background: linear-gradient(180deg, rgba(29, 30, 36, 0.2), rgba(33, 37, 43, 0.9));
}
.code-wrapper.mac-dark .code-btn-expand i {
  color: #ffffff;
}
.code-wrapper.mac-dark .code-button-box .code-btn,
.code-wrapper.mac-dark .code-button-box .code-button-notice {
  color: #ffffff;
}
.code-wrapper.mac-dark > pre code {
  padding: 10px 10px 10px 10px !important;
}
.code-wrapper.mac-dark > pre code ul li {
  font-family: Consolas, Lucida Console, Monaco, Andale Mono, Ubuntu Mono, monospace !important;
  font-size: 15px;
}
.code-wrapper.mac-dark > pre code ul li::marker {
  color: #ffffff;
}
.code-wrapper.mac-change-light.hljs,
.code-wrapper.mac-change-light::before {
  color: #5c5e6e !important;
}
.code-wrapper.mac-change-light::before {
  text-align: center;
  padding: 0 80px;
}
.code-wrapper.mac-change-light .code-button-box .code-btn,
.code-wrapper.mac-change-light .code-button-box .code-button-notice {
  color: #4c4948;
}
.code-wrapper.mac-change-light > pre code {
  padding: 10px 10px 10px 10px !important;
}
.code-wrapper.mac-change-light > pre code ul li {
  font-family: Consolas, Lucida Console, Monaco, Andale Mono, Ubuntu Mono, monospace !important;
  font-size: 15px;
}
.code-wrapper.mac-change-light > pre code ul li::marker {
  color: #999;
}
.code-wrapper.mac-change-dark.hljs,
.code-wrapper.mac-change-dark::before {
  color: #e2e2e2 !important;
}
.code-wrapper.mac-change-dark::before {
  text-align: center;
  padding: 0 80px;
}
.code-wrapper.mac-change-dark .code-btn-expand {
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(29, 30, 36, 0.2)), to(rgba(33, 37, 43, 0.9)));
  background: linear-gradient(180deg, rgba(29, 30, 36, 0.2), rgba(33, 37, 43, 0.9));
}
.code-wrapper.mac-change-dark .code-btn-expand i {
  color: #ffffff;
}
.code-wrapper.mac-change-dark .code-button-box .code-btn,
.code-wrapper.mac-change-dark .code-button-box .code-button-notice {
  color: #e2e2e2;
}
.code-wrapper.mac-change-dark > pre code {
  padding: 10px 10px 10px 10px !important;
}
.code-wrapper.mac-change-dark > pre code ul li {
  font-family: Consolas, Lucida Console, Monaco, Andale Mono, Ubuntu Mono, monospace !important;
  font-size: 15px;
}
.code-wrapper.mac-change-dark > pre code ul li::marker {
  color: #ffffff;
}
/* 三个圈圈 */
.code-wrapper.mac-change-light > pre > code:before,
.code-wrapper.mac-change-dark > pre > code:before,
.code-wrapper.mac-light > pre > code:before,
.code-wrapper.mac-dark > pre > code:before {
  content: ' ';
  position: absolute;
  border-radius: 50%;
  background: #fc625d;
  width: 12px;
  height: 12px;
  top: 0;
  left: 20px;
  margin-top: 9px;
  -webkit-box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
          box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
  z-index: 6;
}
.code-wrapper.layui-light {
  border: 1px solid #eee;
  border-left-width: 6px;
  border-radius: unset;
  font-family: Courier New;
}
.code-wrapper.layui-light::before {
  color: #999 !important;
  background-color: #FAFAFA !important;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  font-weight: normal;
  line-height: 40px;
  height: 40px;
}
.code-wrapper.layui-light pre {
  background-color: #FAFAFA;
}
.code-wrapper.layui-light pre code {
  padding: 0 0 0 5px !important;
}
.code-wrapper.layui-light.show-line ul li {
  border-left: 1px solid #e2e2e2 !important;
}
.code-wrapper.layui-light ul li {
  padding: 0 10px;
  line-height: 20px;
  font-family: Courier New;
  font-size: 12px;
}
.code-wrapper.layui-light ul li:first-child {
  padding-top: 10px;
}
.code-wrapper.layui-light ul li:last-child {
  padding-bottom: 10px;
}
.code-wrapper.layui-light .code-button-box {
  height: 40px;
}
.code-wrapper.layui-light .code-button-box .code-btn {
  color: #999;
}
.code-wrapper.layui-dark {
  border: 1px solid #393D49;
  border-left-width: 6px;
  border-radius: unset;
  font-family: Courier New;
}
.code-wrapper.layui-dark::before {
  color: #ffffff !important;
  background-color: #2F4056 !important;
  border-bottom: 1px solid #393D49;
  font-size: 12px;
  font-weight: normal;
  line-height: 40px;
  height: 40px;
}
.code-wrapper.layui-dark pre {
  background-color: #FAFAFA;
}
.code-wrapper.layui-dark pre code {
  padding: 0 0 0 5px !important;
}
.code-wrapper.layui-dark pre code .code-button-box .code-btn {
  color: #fff;
}
.code-wrapper.layui-dark.show-line ul li {
  border-left: 1px solid #393D49 !important;
}
.code-wrapper.layui-dark ul li {
  padding: 0 10px;
  line-height: 20px;
  font-family: Courier New;
  font-size: 12px;
}
.code-wrapper.layui-dark ul li:first-child {
  padding-top: 10px;
}
.code-wrapper.layui-dark ul li:last-child {
  padding-bottom: 10px;
}
.code-wrapper.layui-dark .code-btn-expand {
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(29, 30, 36, 0.2)), to(rgba(33, 37, 43, 0.9)));
  background: linear-gradient(180deg, rgba(29, 30, 36, 0.2), rgba(33, 37, 43, 0.9));
}
.code-wrapper.layui-dark .code-btn-expand i {
  color: #ffffff;
}
.code-wrapper.layui-dark .code-button-box {
  height: 40px;
}
.code-wrapper.layui-dark .code-button-box .code-button-notice {
  color: #fff;
}
.code-wrapper.layui-dark .code-button-box .code-btn {
  color: #999;
}