
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{ margin: 0; padding: 0; }
fieldset,img{ border: 0; }
:focus{ outline: 0; }
address,caption,cite,code,dfn,em,strong,th,var,optgroup{ font-style: normal; font-weight: normal; }
h1,h2,h3,h4,h5,h6{ font-size: 100%; font-weight: normal; font-family: "Microsoft YaHei"; }
abbr,acronym{ border: 0; font-variant: normal; }
code,kbd,samp,tt{ font-size: 100%; }
input,button,textarea,select{ *font-size: 100%; border:none;}
ol,ul{ list-style: none; }
table{ border-collapse: collapse; border-spacing: 0; }
caption,th{ text-align: left; }
sup,sub{ font-size: 100%; vertical-align: baseline; }
:link, :visited, ins{ text-decoration: none; }
blockquote,q{ quotes: none; }
blockquote:before, blockquote:after, q:before, q:after{ content: ''; content: none; }
a:link, a:visited{ color: #5e5e5e;}
a:hover { color:#c9394a;}
a:active { color: #666;}
.clearfix:after{content:'\0020';display:block;height:0;clear:both;visibility:hidden;}
.clearfix{*zoom:1;}
.l{float:left;}
.r{float:right;}
.clear{ height:0; overflow:hidden; clear:both}
.hide{display:none;}
.btn.hide{display:none;}
a.hidefocus { outline: none; } 
button.hidefocus::-moz-focus-inner { border:none; } 
a:focus {outline:none;-moz-outline:none;} 
input,textarea {outline:none;} 
h2 { font-size: 20px; }
h3 { font-size: 16px; line-height: 32px; }
h5 { font-size: 14px; line-height: 28px; }
body{ background: #fff; color: #333; font-size: 14px;}

.code-desc img { max-width: 100%;}
.code-desc,.code-tips { word-break:break-all;word-wrap:break-word; }
/*.code-desc pre{ white-space: inherit;}*/
.code-tips img { max-width: 100%;}
.code-foot{ 
  text-align: center;     
  background: rgba(51,119,255,0.70);
  line-height: 30px;
  color: #fff; 
  font-size: 12px;
}
h2.code-head {
    border-bottom: 0;
    font-size: 16px;
    line-height: 1.5em;
    font-family: "微软雅黑";
    font-weight: bold;
    color: #2B333B;
    padding: 0 20px;
    margin-top: 16px;
}
.code-description {
    color: #1f2426;
    word-break: break-all;
    word-wrap:break-word;
}
.code-desc {
    word-break: break-all;
    word-wrap:break-word;
    overflow: hidden ;
    padding: 0px 20px 16px;
}
.code-desc img {
    max-width: 100%;
}
.code-desc p {
    line-height: 28px;
    font-size: 14px;
    color: #2B333B;
    padding: 8px 0
}
.code-desc strong,.code-tips strong {
    font-weight: bold;
}
.code-desc p sub {
    position: absolute;
    left: -20px;
    bottom: 20px;
    display: block;
    width: 150px;
    border: 1px solid #d3d3d3;
    background-color: #fff;
    text-indent: 0;
    color: #8b8b8b;
    display: none;
    padding: 8px;
    line-height: 18px;
}
.code-desc p em {
    border: 1px solid #d3d3d3;
    padding: 3px 3px;
}
.code-pic {
    text-align: center;
}
.code-description img {
    clear: both;
    max-width: 400px;
}
.code-tips {
    border-top: 6px solid #F8FAFC;
    padding: 16px 20px;
    background: #fff;
}
.code-tips-title {
  color: #2B333B;
}
.code-tips p {
  line-height: 28px;
  font-size: 14px;
  color: #2B333B;
  padding: 8px 0;
}
.editor-tab {
  position: relative;
  margin: 0;
  padding: 0;
  height: 30px;
  font-size: 12px;
  font-family: Georgia, "Times New Roman", Times, serif;
  overflow: hidden;
  z-index: 1;
}
.editor-tab-inner{
  white-space: nowrap;
  height: 40px;
  line-height: 30px;
  overflow: auto;
}
.editor-tab-item {
  display:inline-block;  
  padding: 0 10px;
  color: #999;
  text-decoration:none;
}
.editor-tab-item:link,
.editor-tab-item:visited{
  color: #666;
}
.editor-tab-active {
  position: relative;
  color: #333 !important;
  border: 1px solid #ccc;
  border-bottom: none;
  margin-bottom: -1px;
  background-color: #f8f8f8;
  border-radius: 2px 2px 0 0;
  z-index: 1;
}
.middle .code-desc p,.middle .code-tips p{
  font-size: 16px !important;
}
.large .code-desc p,.large .code-tips p{
  font-size: 18px !important;
}
.hide{
  display: none;
}
.modal-preview {
  position: absolute;
  z-index: 11;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.3);
  display: none;
}
.modal-preview .modal {
  position: fixed;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  z-index: 3;
  background: #1d1f21;
  box-shadow: 0 4px 8px 0 #1c1f21;
  overflow: hidden;
  padding-top: 20px;
  padding-bottom: 20px;
}
.modal-preview .modal-header {
  width: 100%;
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  height: 50px;
  padding-left: 20px;
  padding-right: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: #26292c;
}
.modal-preview .modal-header span {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.modal-preview .modal-header span.close-btn {
  background-color: #fff;
  padding: 5px;
  font-size: 12px;
  box-sizing: border-box;
  color: #000;
  font-weight: 400;
  border-radius: 5px;
  line-height: 15px;
  cursor: pointer;
}
.code-preview pre{
  color:#fff !important;
}
.code-box{
  border: 1px solid #f7f2f2;
  background: #faf8f5;
  border-radius: 5px;
  position: relative;
}
.code-top{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 35px;
  line-height: 35px;
  background: #FFF;
  box-shadow: 0 4px 8px 0 rgb(7 17 27 / 6%);
  box-sizing: border-box;
  padding-top: 0rem;
  padding-bottom: 0rem;
  padding-left: 15px;
  padding-right: 10px;
  font-size: 13px;
  color: #545C63;
}
.code-top .left{
  float: left;
}
.code-top .right{
  color: #37F;
  float: right;
}
.code-top .right span{
  cursor: pointer;
}
.copysuccess{
  position: absolute;
  background: rgba(242, 13, 13,.4);
  font-size: 14px;
  width: 100px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 10px;
  right: 10px;
  bottom: -30px;
  color: #FFFFFF;
  z-index: 2;
}
.copysuccess::after{
  position: absolute;
  top: -10px;
  right: 8px;
  content: '';
  border-top: 0px transparent dashed;
  border-left: 6px transparent dashed;
  border-right: 6px transparent dashed;
  border-bottom: 10px rgba(242, 13, 13,.4) solid;
}
.hide{
  display: none;
}
.code-copy{
  margin-left: 5px;
  padding-left: 5px;
  display: inline-block;
}
pre.code{
  word-wrap: break-word;       
  word-break:break-all;
  padding: 20px;
  padding-top: 50px;
  font-family:'Consolas', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
  line-height:1.2;
  font-size: 13px;
  overflow:auto;
}
.editor-item{
  border: 1px solid #ccc;
  border-radius: 2px;
  background-color: #f8f8f8;
  padding: 0.5em;
  margin-top: -1px;
  overflow-x:scroll;
}
.editor-box{
  border-top: 6px solid #F8FAFC;
  padding: 16px 20px;
}
/*code highlight*/
pre.hlcode{
  margin:0;
  word-wrap: break-word;
  word-break: break-all;
  font-family: 'Consolas', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.015em;
  line-height: 120%;
/*  white-space: normal;*/
}
.hlcode ol,
.hlcode li{
  list-style: decimal;
}
.hlcode ol{
  padding-left: 40px;
}
.hlcode .co0{color:#990;}
.hlcode .co1{color:#990;}
.hlcode .co2{color:#990;}
.hlcode .co3{color:#990}
.hlcode .coMULTI{color:#990;}
.hlcode .es0{color:#009;}
.hlcode .kw1{color:#606}
.hlcode .kw2{color:#008;}
.hlcode .kw3{color: #800;}
.hlcode .kw4{color: #800;}
.hlcode .kw5{}
.hlcode .me1{color:#060}
.hlcode .me2{color:#060}
.hlcode .nu0{color:#c6c}
.hlcode .re0{color:#00f}
.hlcode .re1{color:#00f}
.hlcode .re2{color:#00f}
.hlcode .re3{color:#f33;}
.hlcode .re4{color:#099}
.hlcode .st0{color:#080}
.hlcode .sy0{color:#660}

.page-wrap{
  padding: 16px 45px;
  overflow: hidden;
  text-align: center;
}
.page-wrap a{
  border: 1px solid #2B333B;
  border-radius: 6px;
  width: 80px;
  line-height: 36px;
  display: inline-block;
  text-align: center;
  color: #2B333B;
}
.page-wrap a:hover{
  color: #2B333B;
}
.page-wrap a.disabled{
  color: #999;
  border-color: #999;
}
.go-prev{
  float: left;
}
.go-next{
  float: right;
}