:root {
  --side-bar-bg-color: #fafafa;
  --control-text-color: #777;
  --shadow-color-1: rgba(0, 0, 0, 0.08);
  --shadow-color-2: rgba(0, 0, 0, 0.05);
  --redefine-box-shadow: var(--shadow-color-2) 0px 6px 24px 0px,
    var(--shadow-color-1) 0px 0px 0px 1px;
  --redefine-box-shadow-hover: var(--shadow-color-2) 0px 6px 24px 0px,
    var(--shadow-color-1) 0px 0px 0px 1px,
    var(--shadow-color-1) 0px 0px 0px 1px inset;
  --redefine-box-shadow-flat: var(--shadow-color-2) 0px 1px 4px 0px,
    var(--shadow-color-1) 0px 0px 0px 1px;
  --redefine-box-shadow-flat-hover: var(--shadow-color-2) 0px 1px 4px 0px,
    var(--shadow-color-1) 0px 0px 0px 1px,
    var(--shadow-color-1) 0px 0px 0px 1px inset;
  --background-color: #fff;
  --background-color-transparent: rgba(255, 255, 255, 0.6);
  --second-background-color: #fafafa;
  --third-background-color: #f7f7f7;
  --primary-color: #005080;
  --first-text-color: #323739;
  --second-text-color: #343a3c;
  --third-text-color: #5c6669;
  --fourth-text-color: #eaeced;
  --default-text-color: #373d3f;
  --invert-text-color: #bebec6;
  --border-color: #b3b3b3;
  --selection-color: #0068a6;
  --shadow-hover-color: rgba(0, 0, 0, 0.28);
  --first-screen-text-color: #fff;
  --first-screen-icons-container-border-color: rgba(255, 255, 255, 0.35);
  --first-screen-icons-container-background-color: rgba(255, 255, 255, 0.3);
  --redefine-border-radius-none: 0px;
  --redefine-border-radius-xsmall: 4px;
  --redefine-border-radius-xsmall-top: 4px 4px 0px 0px;
  --redefine-border-radius-xsmall-bottom: 0px 0px 4px 4px;
  --redefine-border-radius-small: 9px;
  --redefine-border-radius-small-top: 9px 9px 0px 0px;
  --redefine-border-radius-small-bottom: 0px 0px 9px 9px;
  --redefine-border-radius-medium: 14px;
  --redefine-border-radius-medium-top: 14px 14px 0px 0px;
  --redefine-border-radius-medium-bottom: 0px 0px 14px 14px;
  --redefine-border-radius-large: 18px;
  --redefine-border-radius-large-top: 18px 18px 0px 0px;
  --redefine-border-radius-large-bottom: 0px 0px 18px 18px;
  --redefine-border-radius-xlarge: 24px;
  --redefine-border-radius-xlarge-top: 24px 24px 0px 0px;
  --redefine-border-radius-xlarge-bottom: 0px 0px 24px 24px;
  --redefine-border-radius-xxlarge: 48px;
  --redefine-border-radius-xxlarge-top: 48px 48px 0px 0px;
  --redefine-border-radius-xxlarge-bottom: 0px 0px 48px 48px;
  --redefine-border-radius-full: 50%;
  --redefine-border-radius-full-top: 50% 50% 0px 0px;
  --redefine-border-radius-full-bottom: 0px 0px 50% 50%;
}

@include-when-export url(https://fonts.loli.net/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext);
@include-when-export url(https://fonts.googleapis.com/css2?family=Source+Code+Pro);

/* open-sans-regular - latin-ext_latin */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: normal;
  src: local("Open Sans Regular"), local("OpenSans-Regular"),
    url("./redefine/open-sans-v17-latin-ext_latin-regular.woff2")
      format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* open-sans-italic - latin-ext_latin */
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: normal;
  src: local("Open Sans Italic"), local("OpenSans-Italic"),
    url("./redefine/open-sans-v17-latin-ext_latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* open-sans-700 - latin-ext_latin */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: bold;
  src: local("Open Sans Bold"), local("OpenSans-Bold"),
    url("./redefine/open-sans-v17-latin-ext_latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* open-sans-700italic - latin-ext_latin */
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: bold;
  src: local("Open Sans Bold Italic"), local("OpenSans-BoldItalic"),
    url("./redefine/open-sans-v17-latin-ext_latin-700italic.woff2")
      format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* noto-sans-sc-regular - latin */
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  src: url("./redefine/noto-sans-sc-v26-latin-regular.woff2") format("woff2"),
    /* Chrome 36+, Opera 23+, Firefox 39+ */
      url("./redefine/noto-sans-sc-v26-latin-regular.woff") format("woff"); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* noto-sans-sc-700 - latin */
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 700;
  src: url("./redefine/noto-sans-sc-v26-latin-700.woff2") format("woff2"),
    /* Chrome 36+, Opera 23+, Firefox 39+ */
      url("./redefine/noto-sans-sc-v26-latin-700.woff") format("woff"); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

html,
body {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  background: var(--background-color);
  fill: currentColor;
}


html {
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Open Sans", "Noto Sans SC", "Clear Sans", "Helvetica Neue",
    Helvetica, Arial, "Segoe UI Emoji", sans-serif;
  color: var(--default-text-color);
  line-height: 1.6;
}

#write {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px;
  padding-bottom: 100px;
}

@media only screen and (min-width: 1400px) {
  #write {
    max-width: 1024px;
  }
}

@media only screen and (min-width: 1800px) {
  #write {
    max-width: 1200px;
  }
}

#write > ul:first-child,
#write > ol:first-child {
  margin-top: 30px;
}

a {
  color: #373d3f;
  outline: none;
  text-decoration: underline;
  padding-bottom: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-weight: bold;
  line-height: 1.5;
  cursor: text;
  font-family: "Open Sans", "Noto Sans SC", sans-serif;
  color: var(--first-text-color);
}
h1:hover a.anchor,
h2:hover a.anchor,
h3:hover a.anchor,
h4:hover a.anchor,
h5:hover a.anchor,
h6:hover a.anchor {
  text-decoration: none;
}
h1 tt,
h1 code {
  font-size: inherit;
}
h2 tt,
h2 code {
  font-size: inherit;
}
h3 tt,
h3 code {
  font-size: inherit;
}
h4 tt,
h4 code {
  font-size: inherit;
}
h5 tt,
h5 code {
  font-size: inherit;
}
h6 tt,
h6 code {
  font-size: inherit;
}
h1 {
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1.2;
  border-bottom: 2px solid #eee;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.225;
  border-bottom: 2px solid #eee;
  margin-top: 4rem;
}

/*@media print {
.typora-export h1,
.typora-export h2 {
	border-bottom: none;
	padding-bottom: initial;
}

.typora-export h1::after,
.typora-export h2::after {
	content: "";
	display: block;
	height: 100px;
	margin-top: -96px;
	border-top: 1px solid #eee;
}
}*/

h3 {
  font-size: 1.8rem;
  font-weight: 550;
  margin-top: 2.8rem;
}
h4 {
  font-size: 1.5rem;
  font-weight: 550;
  margin-top: 2.5rem;
}
h5 {
  font-size: 1.28rem;
  font-weight: 550;
  margin-top: 2.2rem;
}
h6 {
  font-size: 1em;
  font-weight: 550;
  line-height: 1.2;
  margin-top: 2rem;
}

img {
  border-radius: 14px;
  border-left: none !important;
  border-right: none !important;
}

blockquote,
ul,
ol,
dl,
table {
  margin: 1em 0;
}

p {
  line-height: 1.5;
  color: #373d3f;
  margin-bottom: 1rem;
  margin-top: 0;
}

li > ol,
li > ul {
  margin: 0 0;
}
hr {
  height: 2px;
  padding: 0;
  margin: 2rem 0;
  background-color: var(--shadow-color-1);
  border: 0 none;
  overflow: hidden;
  box-sizing: content-box;
}

li p.first {
  display: inline-block;
}
ul,
ol {
  padding-left: 30px;
}
ul:first-child,
ol:first-child {
  margin-top: 0;
}
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}
blockquote {
  border-left: 4px solid #dfe2e5;
  padding: 0 15px;
  color: #777777;
}
blockquote blockquote {
  padding-right: 0;
}

table {
  border-spacing: 0;
  padding: 0;
  word-break: initial;
  border-collapse: collapse;
  overflow: auto;
  margin-bottom: 1.2rem;
}

table tr {
  margin: 0;
  padding: 0;
}

table tr:nth-child(2n) {
  background-color: var(--second-background-color);
}

thead th {
  border-bottom: 1px solid var(--shadow-color-1);
  background-color: var(--third-background-color) !important;
}

thead tr {
  border-top: 1px solid var(--shadow-color-1);
}

table th {
  font-weight: bold;
  border-bottom: 0;
  margin: 0;
  padding: 8px 16px;
  border-left: 1px solid var(--shadow-color-1);
}

table th:last-child {
  border-right: 1px solid var(--shadow-color-1);
}

table td {
  margin: 0;
  padding: 8px 16px;
  border-left: 1px solid var(--shadow-color-1);
}

table td:last-child {
  border-right: 1px solid var(--shadow-color-1);
}

table th:first-child,
table td:first-child {
  margin-top: 0;
}

table th:last-child,
table td:last-child {
  margin-bottom: 0;
}

tbody tr:last-child {
  border-bottom: 1px solid var(--shadow-color-1);
}

.CodeMirror-lines {
  padding: 10px 5px 0px 15px;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  border-top: 1px solid var(--shadow-color-1);
}

.CodeMirror-gutters {
  border-right: 0 !important;
  border-top: 1px solid var(--shadow-color-1);
}

.code-tooltip {
  box-shadow: var(--redefine-box-shadow-flat);
  border-top: 1px solid #eef2f2;
  border-radius: var(--redefine-border-radius-small);
}

.md-fences,
code,
tt {
  border: 1px solid #e7eaed;
  background-color: var(--third-background-color);
  border-radius: 3px;
  padding: 0;
  padding: 5px 10px 10px 0px;
  font-size: 0.9em;
}

code {
  background-color: #f3f4f4;
  padding: 2px 6px 2px 6px;
}

.md-task-list-item > input {
  margin-left: -1.3em;
}

@media print {
  html {
    font-size: 13px;
  }
  pre {
    page-break-inside: avoid;
    word-wrap: break-word;
  }
}

.md-fences {
  background: var(--third-background-color);
  border-radius: var(--redefine-border-radius-large);
  border: 1px solid var(--shadow-color-1);
  padding-top: 40px;
  margin-top: 10px;
  margin-bottom: 1.2rem;
  position: relative;
  margin-bottom: 1.2rem 0;
  padding-bottom: 15px;
  padding-right: 0px;
  padding-left: 0px;
}

.md-fences::after {
  content: " ";
  position: absolute;
  border-radius: var(--redefine-border-radius-full);
  background: #fc625d;
  width: 12px;
  height: 12px;
  top: 0;
  left: 20px;
  margin-top: 13px;
  -webkit-box-shadow: 20px 0px #fdbc40, 40px 0px #35cd4b;
  box-shadow: 20px 0px #fdbc40, 40px 0px #35cd4b;
  z-index: 3;
}

#write pre.md-meta-block {
  padding: 1rem;
  font-size: 85%;
  line-height: 1.45;
  background-color: #f7f7f7;
  border: 0;
  border-radius: var(--redefine-border-radius-small);
  color: #777777;
  margin-top: 0 !important;
}

.mathjax-block > .code-tooltip {
  bottom: 0.375rem;
}

.md-mathjax-midline {
  background: #fafafa;
}

#write > h3.md-focus:before {
  left: -1.5625rem;
  top: 0.375rem;
}
#write > h4.md-focus:before {
  left: -1.5625rem;
  top: 0.285714286rem;
}
#write > h5.md-focus:before {
  left: -1.5625rem;
  top: 0.285714286rem;
}
#write > h6.md-focus:before {
  left: -1.5625rem;
  top: 0.285714286rem;
}
.md-image > .md-meta {
  /*border: 1px solid #ddd;*/
  border-radius: 3px;
  padding: 2px 0px 0px 4px;
  font-size: 0.9em;
  color: inherit;
}

.md-tag {
  color: #a7a7a7;
  opacity: 1;
}

.md-toc {
  margin-top: 20px;
  padding-bottom: 20px;
}

.sidebar-tabs {
  border-bottom: none;
}

#typora-quick-open {
  border: 1px solid #ddd;
  background-color: #f8f8f8;
}

#typora-quick-open-item {
  background-color: #fafafa;
  border-color: #fefefe #e5e5e5 #e5e5e5 #eee;
  border-style: solid;
  border-width: 1px;
}

/** focus mode */
.on-focus-mode blockquote {
  border-left-color: rgba(85, 85, 85, 0.12);
}

header,
.context-menu,
.megamenu-content,
footer {
  font-family: "Segoe UI", "Arial", sans-serif;
}

.file-node-content:hover .file-node-icon,
.file-node-content:hover .file-node-open-state {
  visibility: visible;
}

.mac-seamless-mode #typora-sidebar {
  background-color: #fafafa;
  background-color: var(--side-bar-bg-color);
}

.md-lang {
  color: #b4654d;
}

/*.html-for-mac {
--item-hover-bg-color: #E6F0FE;
}*/

#md-notification .btn {
  border: 0;
}

.dropdown-menu .divider {
  border-color: #e5e5e5;
  opacity: 0.4;
}

.ty-preferences .window-content {
  background-color: #fafafa;
}

.ty-preferences .nav-group-item.active {
  color: white;
  background: #999;
}

.menu-item-container a.menu-style-btn {
  background-color: #f5f8fa;
  background-image: linear-gradient(
    180deg,
    hsla(0, 0%, 100%, 0.8),
    hsla(0, 0%, 100%, 0)
  );
}
