::-webkit-scrollbar{width:3px;height:3px}
::-webkit-scrollbar-thumb{background:#909090;}
::-webkit-scrollbar-track{background:rgba(203,213,224);}
::-webkit-scrollbar-thumb:hover{background:#000000;}
.dark ::-webkit-scrollbar-thumb{background:rgba(203,213,224);}
.dark ::-webkit-scrollbar-track{background:#909090;}

html{
    min-height: 100vh;
    height:100%;
    scrollbar-color: #2d3748 rgba(203,213,224,0.4);
    scrollbar-width: thin;
    min-height: -webkit-fill-available;
}
@font-face {
  font-family: Emoji;
  src: local("Apple Color Emojiji"), local("Segoe UI Emoji"), local("Segoe UI Symbol"), local("Noto Color Emoji");
  unicode-range: U+1F000-1F644, U+203C-3299;
}
body{min-height:100%;height:100%;margin:0;padding:0;
  min-height: -webkit-fill-available;
  font-family: system-ui, —apple-system, Segoe UI, Rototo, Emoji, Helvetica, Arial, sans-serif;
}

[x-cloak] { display: none !important; }

.markdown-section {
    --theme-color:#2196F3;
    margin: 0 auto;
}

.markdown-section>* {
    box-sizing: border-box;
    font-size: inherit
}

.markdown-section>:first-child {
    margin-top: 0!important
}

.markdown-section hr {
    border: none;
    border-bottom: 1px solid #eee;
    margin: 2em 0
}

.markdown-section iframe {
    border: 1px solid #eee;
    width: 1px;
    min-width: 100%
}

.markdown-section table {
    border-collapse: collapse;
    border-spacing: 0;
    display: block;
    margin-bottom: 1rem;
    overflow: auto;
    width: 100%
}

.markdown-section th {
    font-weight: 700
}

.markdown-section td,.markdown-section th {
    border: 1px solid #ddd;
    padding: 6px 13px
}

.markdown-section tr {
    border-top: 1px solid #ccc
}

.markdown-section p.tip,.markdown-section tr:nth-child(2n) {
    background-color: #f8f8f8
}

.markdown-section p.tip {
    border-bottom-right-radius: 2px;
    border-left: 4px solid #f66;
    border-top-right-radius: 2px;
    margin: 2em 0;
    padding: 12px 24px 12px 30px;
    position: relative
}

.markdown-section p.tip:before {
    background-color: #f66;
    border-radius: 100%;
    color: #fff;
    content: "!";
    font-family: Dosis,Source Sans Pro,Helvetica Neue,Arial,sans-serif;
    font-size: 14px;
    font-weight: 700;
    left: -12px;
    line-height: 20px;
    position: absolute;
    height: 20px;
    width: 20px;
    text-align: center;
    top: 14px
}

.markdown-section p.tip code {
    background-color: #efefef
}

.markdown-section p.tip em {
    color: #34495e
}

.markdown-section p.warn {
    background: rgba(66,185,131,.1);
    border-radius: 2px;
    padding: 1rem
}

.markdown-section ul.task-list>li {
    list-style-type: none
}


.markdown-section h1,.markdown-section h2,.markdown-section h3,.markdown-section h4,.markdown-section strong {
    color: #2c3e50;
    font-weight: 600
}
.dark .markdown-section h1, .dark .markdown-section h2, .dark .markdown-section h3, .dark .markdown-section h4, .dark .markdown-section strong {
    color: #ffffff;
}
.markdown-section a {
    color: #42b983;
    color: var(--theme-color,#42b983);
    font-weight: 600
}

.markdown-section h1 {
    font-size: 2rem;
    margin: 0 0 1rem
}

.markdown-section h2 {
    font-size: 1.75rem;
    margin: 45px 0 .8rem
}

.markdown-section h3 {
    font-size: 1.5rem;
    margin: 40px 0 .6rem
}

.markdown-section h4 {
    font-size: 1.25rem
}

.markdown-section h5 {
    font-size: 1rem
}

.markdown-section h6 {
    color: #777;
    font-size: 1rem
}

.markdown-section figure,.markdown-section p {
    margin: 1.2em 0
}

.markdown-section ol,.markdown-section p,.markdown-section ul {
    line-height: 1.6rem;
    word-spacing: .05rem
}

.markdown-section ol{
    padding-left: 1.5rem;
    list-style: auto;
}
.markdown-section ul {
    padding-left: 1.5rem;
    list-style: disc;
}


.markdown-section blockquote {
    border-left: 4px solid #42b983;
    border-left: 4px solid var(--theme-color,#42b983);
    color: #858585;
    margin: 2em 0;
    padding-left: 20px
}

.markdown-section blockquote p {
    font-weight: 600;
    margin-left: 0
}

.markdown-section iframe {
    margin: 1em 0
}

.markdown-section em {
    color: #7f8c8d
}

.markdown-section code,.markdown-section output:after,.markdown-section pre {
    font-family: Roboto Mono,Monaco,courier,monospace
}

.markdown-section code,.markdown-section pre {
    background-color: #f3f4f6;
}
.dark .markdown-section code, .dark .markdown-section pre {
    background-color: #101927;
}

.markdown-section output,.markdown-section pre {
    margin: 1.2em 0;
    position: relative
}

.markdown-section output,.markdown-section pre>code {
    border-radius: 2px;
    display: block
}

.markdown-section output:after,.markdown-section pre>code {
    -moz-osx-font-smoothing: initial;
    -webkit-font-smoothing: initial
}

.markdown-section code {
    border-radius: 2px;
    color: #2196F3;
    margin: 0 2px;
    padding: 3px 5px;
    white-space: pre-wrap
}

.markdown-section>:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) code {
    font-size: .8rem
}

.markdown-section pre {
    /*padding: 0 1.4rem;*/
    line-height: 1.5rem;
    overflow: auto;
    word-wrap: normal
}

.markdown-section pre>code {
    color: #525252;
    font-size: .8rem;
    padding: 2.2em 5px;
    line-height: inherit;
    margin: 0 2px;
    max-width: inherit;
    overflow: inherit;
    white-space: inherit
}
.dark .markdown-section pre>code {
    color: #dedede;
}
.markdown-section output {
    padding: 1.7rem 1.4rem;
    border: 1px dotted #ccc
}

.markdown-section output>:first-child {
    margin-top: 0
}

.markdown-section output>:last-child {
    margin-bottom: 0
}

.markdown-section code:after,.markdown-section code:before,.markdown-section output:after,.markdown-section output:before {
    letter-spacing: .05rem
}

.markdown-section output:after,.markdown-section pre:after {
    color: #ccc;
    font-size: .6rem;
    font-weight: 600;
    height: 15px;
    line-height: 15px;
    padding: 5px 10px 0;
    position: absolute;
    right: 0;
    text-align: right;
    top: 0;
    content: attr(data-lang)
}


/*--------------------------------------------------------------
## Media
--------------------------------------------------------------*/
iframe,
embed {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.media {
  position: relative;
  display: block;
  padding: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  overflow: hidden;
}

.media:after {
  content: '';
  display: block;
  padding-top: 100%;
}

.media iframe,
.media-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border: 0;
  margin: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-color: rgba(120, 120, 120, 0.1);
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.media-content:after {
    background-image: -webkit-gradient(linear,left top,right top,from(transparent),to(rgba(255,255,255,.2)));
    background-image: linear-gradient(to right,transparent,rgba(255,255,255,.2));
    content: "";
    position: absolute;
    display: block;
    width: 50%;
    height: 100%;
    top: 0;
    left: -75%;
    z-index: 2;
    -webkit-transform: skewX(-25deg);
    transform: skewX(-25deg);
    pointer-events: none;
}
.media-16x9:after {
    padding-top: 56.25%;
}

/*编辑器样式调整*/
textarea#editor ~ .tox .tox-promotion {
    display: none;
}

.editor-toolbar.fullscreen, .CodeMirror-fullscreen {
    z-index: 9999 !important;
}
.CodeMirror .CodeMirror-code .cm-link {
    color: initial;
    text-decoration: none;
}
.editor-preview, .editor-preview-side {
    background: #ffffff;
}
.editor-toolbar.fullscreen::before,.editor-toolbar.fullscreen::after{
    display: none;
}
.CodeMirror, .CodeMirror-scroll {
	min-height: 500px;
}
.CodeMirror-wrap pre {
    -webkit-box-shadow: none;
    box-shadow: none;
}
.editor-toolbar.disabled-for-preview a:not(.no-disable) {
    background: transparent;
}
.editor-toolbar {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 4px;
}
.dark .editor-toolbar a {
    color: #fff !important;
}
.dark .editor-toolbar a.active, .dark .editor-toolbar a:hover {
    background: #000000;
    border-color: #000000;
}
.dark .editor-toolbar.fullscreen {
    background: #1f2a38;
}
.dark .editor-preview, .dark .editor-preview-side {
    background: #101927;
    color: #fff;
}
.dark .CodeMirror {
    background: #d4d4d4;
}
.CodeMirror-focused .CodeMirror-selected, .CodeMirror-line::selection, .CodeMirror-line>span::selection, .CodeMirror-line>span>span::selection {
    background: rgba(164,215,255,0.35);
}

/*loading，文字变加载*/
.loading{
    position: relative;
}
.loading svg,.loading span{
  opacity: 0 !important;
}
.folderloading svg.folder{ 
    opacity: 100% !important;
}
.loading::before {
    content: '';
    width: 20px; height: 20px;
    box-sizing: border-box;
    border: 3px solid;
    border-top-color: transparent;
    border-radius: 50%;
    position: absolute;
    inset: 0;
    margin: auto;
    animation: spin 1s linear infinite;
}
.loading::first-line {
    color: transparent;
}
.loading {
    -webkit-text-fill-color: transparent;
}


.post-private:before,.post-hidden:before {
    content: " ";
    width: 0.625rem;
    height: 0.625rem;
    background: rgb(239 68 68);
    display: block;
    border-radius: 50%;
    margin-top: 0.2rem;
    margin-right: 0.1rem;
}
.post-hidden:before {
    background: rgb(234 179 8) !important;

}
