/* 基础样式：移除链接下划线（去重后仅保留一次） */
a {
  text-decoration: none;
}

/* ==========================
   Typora 导出样式（深色主题）
   ========================== */
html {
  overflow-x: initial !important;
}

:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --select-text-bg-color: #B5D6FC;
  --select-text-font-color: auto;
  --monospace: "Lucida Console", Consolas, "Courier", monospace;
  --title-bar-height: 20px;
  /* 深色主题变量覆盖 */
  --side-bar-bg-color: #212121;
  --control-text-color: #aaa;
  --active-file-bg-color: #383838;
  --control-text-hover-color: #ddd;
  --item-hover-bg-color: #404040;
  --text-color: #c0c0c0;
  --blur-text-color: #80808080;
  --bg-color: #191919;
  --select-text-bg-color: #663f3f !important;
  --monospace: "IBM Plex Mono", "Fira Code", "微软雅黑", monospace !important;
  --window-border: 1px solid #404040;
  --rawblock-edit-panel-bd: #212121;
  --mermaid-theme: dark;
  --mermaid-font-family: "IBM Plex Mono", "Fira Code", "微软雅黑", monospace !important;
  --mermaid-sequence-numbers: off;
  --mermaid-flowchart-curve: basis;
  --mermaid--gantt-left-padding: 100;
  --heading-char-color: #aaa;
  --meta-content-color: #6794bc;
  --primary-color: #d86666;
}

.mac-os-11 {
  --title-bar-height: 28px;
}

html {
  font-size: 14px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* 深色主题覆盖的字体大小 */
  font-size: 16px;
}

body {
  margin: 0px;
  padding: 0px;
  height: auto;
  inset: 0px;
  font-size: 1rem;
  line-height: 1.42857;
  overflow-x: hidden;
  background: inherit;
  tab-size: 4;
  /* 深色主题覆盖 */
  font-family: "IBM Plex Sans", "Microsoft YaHei", "微软雅黑", "Open Sans", "Clear Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #d0d0d0;
  background-color: var(--bg-color);
  line-height: 1.75;
  scroll-behavior: smooth;
}

iframe {
  margin: auto;
}

a.url {
  word-break: break-all;
}

a:active,
a:hover {
  outline: 0px;
}

.in-text-selection,
::selection {
  text-shadow: none;
  background: var(--select-text-bg-color);
  color: var(--select-text-font-color);
}

#write {
  margin: 0px auto;
  height: auto;
  width: inherit;
  word-break: normal;
  overflow-wrap: break-word;
  position: relative;
  white-space: normal;
  overflow-x: visible;
  padding-top: 36px;
  /* 深色主题覆盖 */
  max-width: 860px;
  margin: 0 auto;
  padding: 30px;
  padding-bottom: 100px;
}

#write.first-line-indent p {
  text-indent: 2em;
}

#write.first-line-indent li p,
#write.first-line-indent p * {
  text-indent: 0px;
}

#write.first-line-indent li {
  margin-left: 2em;
}

.for-image #write {
  padding-left: 8px;
  padding-right: 8px;
}

body.typora-export {
  padding-left: 30px;
  padding-right: 30px;
}

.typora-export .footnote-line,
.typora-export li,
.typora-export p {
  white-space: pre-wrap;
}

.typora-export .task-list-item input {
  pointer-events: none;
}

@media screen and (max-width: 500px) {
  body.typora-export {
    padding-left: 0px;
    padding-right: 0px;
  }

  #write {
    padding-left: 20px;
    padding-right: 20px;
  }

  .CodeMirror-sizer {
    margin-left: 0px !important;
  }

  .CodeMirror-gutters {
    display: none !important;
  }
}

#write li>figure:last-child {
  margin-bottom: 0.5rem;
}

#write ol,
#write ul {
  position: relative;
}

img {
  max-width: 100%;
  vertical-align: middle;
  image-orientation: from-image;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

input[type="checkbox"],
input[type="radio"] {
  line-height: normal;
  padding: 0px;
}

*,
::after,
::before {
  box-sizing: border-box;
}

#write h1,
#write h2,
#write h3,
#write h4,
#write h5,
#write h6,
#write p,
#write pre {
  width: inherit;
}

#write h1,
#write h2,
#write h3,
#write h4,
#write h5,
#write h6,
#write p {
  position: relative;
}

p {
  line-height: inherit;
  orphans: 4;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  break-after: avoid-page;
  break-inside: avoid;
  orphans: 4;
  /* 深色主题覆盖 */
  position: relative;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: bold;
  line-height: 1.4;
  cursor: text;
}

h1 {
  font-size: 2rem;
  /* 深色主题覆盖 */
  padding-bottom: 0.3em;
  font-size: 3em;
  line-height: 1.2;
  border-bottom: 1px solid #202020;
}

h2 {
  font-size: 1.8rem;
  /* 深色主题覆盖 */
  padding-bottom: 0.3em;
  font-size: 1.75em;
  line-height: 1.225;
  border-bottom: 1px solid #202020;
}

h3 {
  font-size: 1.6rem;
  /* 深色主题覆盖 */
  font-size: 1.5em;
  line-height: 1.43;
}

h4 {
  font-size: 1.4rem;
  /* 深色主题覆盖 */
  font-size: 1.25em;
}

h5 {
  font-size: 1.2rem;
  /* 深色主题覆盖 */
  font-size: 1em;
}

h6 {
  font-size: 1rem;
  /* 深色主题覆盖 */
  font-size: 1em;
  color: #777;
}

.md-math-block,
.md-rawblock,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.hidden {
  display: none;
}

.md-blockmeta {
  color: rgb(204, 204, 204);
  font-weight: 700;
  font-style: italic;
}

a {
  cursor: pointer;
  /* 深色主题覆盖 */
  color: #d86666;
  text-decoration: none !important;
  border-bottom: 0px solid #d8666680;
}

sup.md-footnote {
  padding: 2px 4px;
  background-color: rgba(238, 238, 238, 0.7);
  color: rgb(85, 85, 85);
  border-radius: 4px;
  cursor: pointer;
}

sup.md-footnote a,
sup.md-footnote a:hover {
  color: inherit;
  text-transform: inherit;
  text-decoration: inherit;
}

#write input[type="checkbox"] {
  cursor: pointer;
  width: inherit;
  height: inherit;
}

figure {
  overflow-x: auto;
  margin: 1.2em 0px;
  max-width: calc(100% + 16px);
  padding: 0px;
}

figure>table {
  margin: 0px;
}

tr {
  break-inside: avoid;
  break-after: auto;
  /* 深色主题覆盖 */
  border-top: 1px solid #212121;
  margin: 0;
  padding: 0;
}

thead {
  display: table-header-group;
  /* 深色主题覆盖 */
  background-color: #212121;
}

table {
  border-collapse: collapse;
  border-spacing: 0px;
  width: 100%;
  overflow: auto;
  break-inside: auto;
  text-align: left;
  /* 深色主题覆盖 */
  padding: 0;
  word-break: initial;
  background-color: var(--bg-color);
  border: 1px solid #9292928f !important;
}

table.md-table td {
  min-width: 32px;
}

.CodeMirror-gutters {
  border-right: 0px;
  background-color: inherit;
  /* 深色主题覆盖 */
  margin-right: 4px;
  border-right: 1px solid #484848;
}

.CodeMirror-linenumber {
  user-select: none;
  /* 深色主题覆盖 */
  color: #808080;
}

.CodeMirror {
  text-align: left;
}

.CodeMirror-placeholder {
  opacity: 0.3;
}

.CodeMirror pre {
  padding: 0px 4px;
}

.CodeMirror-lines {
  padding: 0px;
  /* 深色主题覆盖 */
  padding-left: 4px;
}

div.hr:focus {
  cursor: none;
}

#write pre {
  white-space: pre-wrap;
}

#write.fences-no-line-wrapping pre {
  white-space: pre;
}

#write pre.ty-contain-cm {
  white-space: normal;
}

.md-fences {
  font-size: 0.9rem;
  display: block;
  break-inside: avoid;
  text-align: left;
  overflow: visible;
  white-space: pre;
  background: inherit;
  position: relative !important;
  /* 深色主题覆盖 */
  margin-bottom: 15px;
  margin-top: 15px;
  padding: 0.2em 1em;
  padding-top: 8px;
  padding-bottom: 6px;
  border: 1px solid #424242;
  background-color: #42424280;
  border-radius: 3px;
  padding: 2px 4px 1px 4px;
  font-size: 0.85em;
  background-color: #212121;
}

.md-fences-adv-panel {
  width: 100%;
  margin-top: 10px;
  text-align: center;
  padding-top: 0px;
  padding-bottom: 8px;
  overflow-x: auto;
}

#write .md-fences.mock-cm {
  white-space: pre-wrap;
}

.md-fences.md-fences-with-lineno {
  padding-left: 0px;
}

#write.fences-no-line-wrapping .md-fences.mock-cm {
  white-space: pre;
  overflow-x: auto;
}

.md-fences.mock-cm.md-fences-with-lineno {
  padding-left: 8px;
}

.CodeMirror-line,
twitterwidget {
  break-inside: avoid;
}

.footnotes {
  opacity: 0.8;
  font-size: 0.9rem;
  margin-top: 1em;
  margin-bottom: 1em;
}

.footnotes+.footnotes {
  margin-top: 0px;
}

.md-reset {
  margin: 0px;
  padding: 0px;
  border: 0px;
  outline: 0px;
  vertical-align: top;
  background: 0px 0px;
  text-decoration: none;
  text-shadow: none;
  float: none;
  position: static;
  width: auto;
  height: auto;
  white-space: nowrap;
  cursor: inherit;
  -webkit-tap-highlight-color: transparent;
  line-height: normal;
  font-weight: 400;
  text-align: left;
  box-sizing: content-box;
  direction: ltr;
}

li div {
  padding-top: 0px;
}

blockquote {
  margin: 1rem 0px;
  /* 深色主题覆盖 */
  border-left: 4px solid #aaaaaa80;
  margin-left: 2px;
  padding: 0 15px;
  color: #aaa;
}

li .mathjax-block,
li p {
  margin: 0.5rem 0px;
}

li blockquote {
  margin: 1rem 0px;
}

li {
  margin: 0px;
  position: relative;
}

blockquote> :last-child {
  margin-bottom: 0px;
}

blockquote> :first-child,
li> :first-child {
  margin-top: 0px;
}

.footnotes-area {
  color: rgb(136, 136, 136);
  margin-top: 0.714rem;
  padding-bottom: 0.143rem;
  white-space: normal;
}

#write .footnote-line {
  white-space: pre-wrap;
}

@media print {
  body,
  html {
    border: 1px solid transparent;
    height: 99%;
    break-after: avoid;
    break-before: avoid;
    font-variant-ligatures: no-common-ligatures;
  }

  #write {
    margin-top: 0px;
    padding-top: 0px;
    border-color: transparent !important;
  }

  .typora-export * {
    -webkit-print-color-adjust: exact;
  }

  .typora-export #write {
    break-after: avoid;
  }

  .typora-export #write::after {
    height: 0px;
  }

  .is-mac table {
    break-inside: avoid;
  }

  .typora-export-show-outline .typora-export-sidebar {
    display: none;
  }

  /* 深色主题打印样式覆盖 */
  html {
    font-size: 13px;
  }

  table,
  pre {
    page-break-inside: avoid;
  }

  pre {
    word-wrap: break-word;
  }

  .typora-export h1,
  .typora-export h2,
  .typora-export h3,
  .typora-export h4,
  .typora-export h5,
  .typora-export h6 {
    break-inside: avoid;
  }
}

.footnote-line {
  margin-top: 0.714em;
  font-size: 0.7em;
}

a img,
img a {
  cursor: pointer;
}

pre.md-meta-block {
  font-size: 0.8rem;
  min-height: 0.8rem;
  white-space: pre-wrap;
  background: rgb(204, 204, 204);
  display: block;
  overflow-x: hidden;
  /* 深色主题覆盖 */
  padding: 1rem;
  font-size: 85%;
  line-height: 1.45;
  background-color: #212121;
  border: 0;
  border-radius: 3px;
  color: #aaa;
  margin-top: 0 !important;
}

p>.md-image:only-child:not(.md-img-error) img,
p>img:only-child {
  display: block;
  margin: auto;
}

#write.first-line-indent p>.md-image:only-child:not(.md-img-error) img {
  left: -2em;
  position: relative;
}

p>.md-image:only-child {
  display: inline-block;
  width: 100%;
}

#write .MathJax_Display {
  margin: 0.8em 0px 0px;
}

.md-math-block {
  width: 100%;
}

.md-math-block:not(:empty)::after {
  display: none;
}

.MathJax_ref {
  fill: currentcolor;
}

[contenteditable="true"]:active,
[contenteditable="true"]:focus,
[contenteditable="false"]:active,
[contenteditable="false"]:focus {
  outline: 0px;
  box-shadow: none;
}

.md-task-list-item {
  position: relative;
  list-style-type: none;
}

.task-list-item.md-task-list-item {
  padding-left: 0px;
}

.md-task-list-item>input {
  position: absolute;
  top: 0px;
  left: 0px;
  margin-left: -1.2em;
  margin-top: calc(1em - 10px);
  border: none;
  /* 深色主题覆盖 */
  margin-left: -1.3em;
}

.math {
  font-size: 1rem;
}

.md-toc {
  min-height: 3.58rem;
  position: relative;
  font-size: 0.9rem;
  border-radius: 10px;
  /* 深色主题覆盖 */
  margin-top: 20px;
  padding-bottom: 20px;
}

.md-toc-content {
  position: relative;
  margin-left: 0px;
}

.md-toc-content::after,
.md-toc::after {
  display: none;
}

.md-toc-item {
  display: block;
  color: rgb(65, 131, 196);
}

.md-toc-item a {
  text-decoration: none;
}

.md-toc-inner:hover {
  text-decoration: underline;
}

.md-toc-inner {
  display: inline-block;
  cursor: pointer;
}

.md-toc-h1 .md-toc-inner {
  margin-left: 0px;
  font-weight: 700;
}

.md-toc-h2 .md-toc-inner {
  margin-left: 2em;
}

.md-toc-h3 .md-toc-inner {
  margin-left: 4em;
}

.md-toc-h4 .md-toc-inner {
  margin-left: 6em;
}

.md-toc-h5 .md-toc-inner {
  margin-left: 8em;
}

.md-toc-h6 .md-toc-inner {
  margin-left: 10em;
}

@media screen and (max-width: 48em) {
  .md-toc-h3 .md-toc-inner {
    margin-left: 3.5em;
  }

  .md-toc-h4 .md-toc-inner {
    margin-left: 5em;
  }

  .md-toc-h5 .md-toc-inner {
    margin-left: 6.5em;
  }

  .md-toc-h6 .md-toc-inner {
    margin-left: 8em;
  }
}

a.md-toc-inner {
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.footnote-line a:not(.reversefootnote) {
  color: inherit;
}

.md-attr {
  display: none;
}

.md-fn-count::after {
  content: ".";
}

code,
pre,
samp,
tt {
  font-family: var(--monospace);
  /* 深色主题覆盖 */
  border: 1px solid #424242;
  background-color: #42424280;
  border-radius: 3px;
  padding: 2px 4px 1px 4px;
  font-size: 0.85em;
}

kbd {
  margin: 0px 0.1em;
  padding: 0.1em 0.6em;
  font-size: 0.8em;
  color: rgb(36, 39, 41);
  background: rgb(255, 255, 255);
  border: 1px solid rgb(173, 179, 185);
  border-radius: 3px;
  box-shadow: rgba(12, 13, 14, 0.2) 0px 1px 0px, rgb(255, 255, 255) 0px 0px 0px 2px inset;
  white-space: nowrap;
  vertical-align: middle;
}

.md-comment {
  color: rgb(162, 127, 3);
  opacity: 0.6;
  font-family: var(--monospace);
  /* 深色主题覆盖 */
  color: var(--text-color);
  opacity: 0.5;
}

code {
  text-align: left;
  vertical-align: initial;
}

a.md-print-anchor {
  white-space: pre !important;
  border-width: initial !important;
  border-style: none !important;
  border-color: initial !important;
  display: inline-block !important;
  position: absolute !important;
  width: 1px !important;
  right: 0px !important;
  outline: 0px !important;
  background: 0px 0px !important;
  text-decoration: initial !important;
  text-shadow: initial !important;
}

.os-windows.monocolor-emoji .md-emoji {
  font-family: "Segoe UI Symbol", sans-serif;
}

.md-diagram-panel>svg {
  max-width: 100%;
}

[lang="flow"] svg,
[lang="mermaid"] svg {
  max-width: 100%;
  height: auto;
}

[lang="mermaid"] .node text {
  font-size: 1rem;
}

table tr th {
  border-bottom: 0px;
  /* 深色主题覆盖 */
  font-weight: bold;
  border: 1px solid #383838;
  border-bottom: 0;
  text-align: left;
  margin: 0;
  padding: 6px 13px;
}

video {
  max-width: 100%;
  display: block;
  margin: 0px auto;
}

iframe {
  max-width: 100%;
  width: 100%;
  border: none;
}

.highlight td,
.highlight tr {
  border: 0px;
}

mark {
  background: rgb(255, 255, 0);
  color: rgb(0, 0, 0);
}

.md-html-inline .md-plain,
.md-html-inline strong,
mark .md-inline-math,
mark strong {
  color: inherit;
}

.md-expand mark .md-meta {
  opacity: 0.3 !important;
}

mark .md-meta {
  color: rgb(0, 0, 0);
}

.md-diagram-panel .messageText {
  stroke: none !important;
}

.md-diagram-panel .start-state {
  fill: var(--node-fill);
}

.md-diagram-panel .edgeLabel rect {
  opacity: 1 !important;
}

.md-fences.md-fences-math {
  font-size: 1em;
}

.md-fences-advanced:not(.md-focus) {
  padding: 0px;
  white-space: nowrap;
  border: 0px;
  background: inherit;
}

.typora-export-show-outline .typora-export-content {
  max-width: 1440px;
  margin: auto;
  display: flex;
  flex-direction: row;
}

.typora-export-sidebar {
  width: 300px;
  font-size: 0.8rem;
  margin-top: 80px;
  margin-right: 18px;
}

.typora-export-show-outline #write {
  --webkit-flex: 2;
  flex: 2 1 0%;
}

.typora-export-sidebar .outline-content {
  position: fixed;
  top: 0px;
  max-height: 100%;
  overflow: hidden auto;
  padding-bottom: 30px;
  padding-top: 60px;
  width: 300px;
}

@media screen and (max-width: 1024px) {
  .typora-export-sidebar,
  .typora-export-sidebar .outline-content {
    width: 240px;
  }
}

@media screen and (max-width: 800px) {
  .typora-export-sidebar {
    display: none;
  }
}

.outline-content li,
.outline-content ul {
  margin-left: 0px;
  margin-right: 0px;
  padding-left: 0px;
  padding-right: 0px;
  list-style: none;
}

.outline-content ul {
  margin-top: 0px;
  margin-bottom: 0px;
}

.outline-content strong {
  font-weight: 400;
}

.outline-expander {
  width: 1rem;
  height: 1.42857rem;
  position: relative;
  display: table-cell;
  vertical-align: middle;
  cursor: pointer;
  padding-left: 4px;
}

.outline-expander::before {
  content: "";
  position: relative;
  font-family: Ionicons;
  display: inline-block;
  font-size: 8px;
  vertical-align: middle;
}

.outline-item {
  padding-top: 3px;
  padding-bottom: 3px;
  cursor: pointer;
  /* 深色主题覆盖 */
  padding-top: 1px;
  padding-bottom: 1px;
}

.outline-expander:hover::before {
  content: "";
}

.outline-h1>.outline-item {
  padding-left: 0px;
}

.outline-h2>.outline-item {
  padding-left: 1em;
}

.outline-h3>.outline-item {
  padding-left: 2em;
}

.outline-h4>.outline-item {
  padding-left: 3em;
}

.outline-h5>.outline-item {
  padding-left: 4em;
}

.outline-h6>.outline-item {
  padding-left: 5em;
}

.outline-label {
  cursor: pointer;
  display: table-cell;
  vertical-align: middle;
  text-decoration: none;
  color: inherit;
}

.outline-label:hover {
  text-decoration: underline;
}

.outline-item:hover {
  border-color: rgb(245, 245, 245);
  background-color: var(--item-hover-bg-color);
  /* 深色主题覆盖 */
  margin-left: -28px;
  margin-right: -28px;
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  /* 导出样式覆盖 */
  margin-right: -8px;
  border-right: 8px solid transparent;
}

.outline-item-single .outline-expander::before,
.outline-item-single .outline-expander:hover::before {
  display: none;
}

.outline-item-open>.outline-item>.outline-expander::before {
  content: "";
}

.outline-children {
  display: none;
}

.info-panel-tab-wrapper {
  display: none;
}

.outline-item-open>.outline-children {
  display: block;
}

.typora-export .outline-expander::before {
  content: "+";
  font-family: inherit;
  top: -1px;
}

.typora-export .outline-expander:hover::before,
.typora-export .outline-item-open>.outline-item>.outline-expander::before {
  content: "−";
}

.typora-export-collapse-outline .outline-children {
  display: none;
}

.typora-export-collapse-outline .outline-item-open>.outline-children,
.typora-export-no-collapse-outline .outline-children {
  display: block;
}

.typora-export-no-collapse-outline .outline-expander::before {
  content: "" !important;
}

.typora-export-show-outline .outline-item-active>.outline-item .outline-label {
  font-weight: 700;
}

.md-inline-math-container mjx-container {
  zoom: 0.95;
}

::-webkit-scrollbar-thumb {
  background: #42424280 !important;
}

.menu-item-container a.menu-style-btn {
  background: #424242;
}

#typora-quick-open {
  border: none !important;
  background-color: #212121 !important;
  /* 覆盖样式 */
  border: 1px solid #dddddd;
  background-color: #f8f8f8;
}

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

#recent-file-panel tbody tr:nth-child(2n-1) {
  background-color: #242424;
}

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,
h2 tt,
h2 code,
h3 tt,
h3 code,
h4 tt,
h4 code,
h5 tt,
h5 code,
h6 tt,
h6 code {
  font-size: inherit;
}

li>ol,
li>ul {
  margin: 0 0;
}

hr {
  height: 2px;
  padding: 0;
  margin: 32px 0;
  background-color: #212121;
  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 blockquote {
  padding-right: 0;
}

table tr td {
  border: 1px solid #383838;
  text-align: left;
  margin: 0;
  padding: 6px 13px;
}

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

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

strong,
b {
  color: #f0f0f0;
}

.code-tooltip {
  box-shadow: 0 1px 1px 0 rgba(26, 26, 26, 0.3);
  border-top: 1px solid #202020;
}

.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-radius: 3px;
  padding: 2px 0px 0px 4px;
  font-size: 0.9em;
  color: inherit;
}

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

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

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

footer.ty-footer {
  height: 25px !important;
  border-top: 1px solid #292a2d;
  background: #292a2d !important;
}

.footer-item {
  line-height: 25px !important;
}

#outline-btn {
  margin-top: -2px !important;
}

.typora-sourceview-on #toggle-sourceview-btn {
  background: #484848 !important;
}

.sidebar-content-content {
  font-family: "IBM Plex Sans", "Microsoft YaHei", "微软雅黑", "Open Sans", "Clear Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.outline-content {
  padding: 3px 10px !important;
  text-align: left !important;
}

.outline-item.outline-item-active {
  margin-left: -28px;
  margin-right: -28px;
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  background-color: #424242;
  background-color: #424242;
  border-color: #424242;
  background-color: #424242;
}

.sidebar-footer {
  height: 25px;
  border-top: 1px solid #292a2d;
  background: #292a2d;
}

.sidebar-footer-item {
  line-height: 25px;
  padding-top: 0px !important;
}

.file-node-icon {
  margin-right: 6px;
}

.file-node-open-state {
  margin-right: 6px;
}

.dropdown-menu {
  background-color: #2a2a2a !important;
  /* 覆盖样式 */
  --item-hover-bg-color: #e6f0fe;
  border-color: #e5e5e5;
}

.dropdown-menu .divider {
  border-color: #424242 !important;
}

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

.on-focus-mode .md-end-block:not(.md-focus):not(.md-focus-container) img {
  opacity: 20%;
}

.on-focus-mode .task-list-item:not(.md-focus-container)>input {
  opacity: 20%;
}

.on-focus-mode .md-fences.md-focus .CodeMirror-code>*:not(.CodeMirror-activeline) *,
.on-focus-mode .CodeMirror.cm-s-inner:not(.CodeMirror-focused) * {
  color: #80808080 !important;
}

.on-focus-mode li[cid]:not(.md-focus-container) {
  color: #80808080 !important;
}

/* .on-focus-mode #typora-source .CodeMirror-code>*:not(.CodeMirror-activeline) * { color: #80808080!important; }*/
.on-focus-mode .md-focus,
.on-focus-mode .md-focus-container {
  color: #d0d0d0;
}

.on-focus-mode .md-end-block:not(.md-focus):not(.md-focus-container) code,
.on-focus-mode .md-end-block:not(.md-focus):not(.md-focus-container) tt {
  border: 1px solid #212121;
  background-color: #212121;
}

/* focus mode end */
header,
.context-menu,
.megamenu-content,
footer {
  font-family: "IBM Plex Sans", "Microsoft YaHei", "微软雅黑", "Open Sans", "Clear Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.megamenu-content {
  background: #242424 !important;
  /* 覆盖样式 */
  background: var(--bg-color) !important;
}

.megamenu-opened header {
  background-color: #242424;
  background-image: none;
  /* 覆盖样式 */
  background-color: var(--bg-color) !important;
}

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

span.file-list-item-file-name-part {
  color: #f0f0f0;
}

.file-list-item-summary {
  height: 3rem;
  overflow: hidden;
  font-size: 13px;
  line-height: 16px;
  opacity: .7 !important;
}

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

.md-lang {
  color: #b4654d;
}

.html-for-mac .context-menu {
  --item-hover-bg-color: #e6f0fe;
}

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

/* code mirror */
.CodeMirror-gutter-filler,
.CodeMirror-scrollbar-filler {
  background-color: #212121;
}

.cm-s-inner .cm-keyword {
  color: rgb(189, 97, 201);
}

.cm-s-inner .cm-atom,
.cm-s-inner.cm-atom {
  color: rgb(131, 115, 236);
}

.cm-s-inner .cm-number {
  color: rgb(73, 190, 143);
}

.cm-s-inner .cm-def {
  color: rgb(123, 123, 255);
}

.cm-s-inner .cm-variable {
  color: rgb(199, 199, 199);
}

.cm-s-inner .cm-variable-2 {
  color: rgb(131, 166, 201);
}

.cm-s-inner .cm-variable-3 {
  color: rgb(153, 197, 181);
}

.cm-s-inner .cm-string {
  color: rgb(194, 104, 104);
}

.cm-s-inner .cm-property {
  color: rgb(199, 199, 199);
}

.cm-s-inner .cm-operator {
  color: #b67e7e;
}

.cm-s-inner .cm-comment,
.cm-s-inner.cm-comment {
  color: rgb(216, 158, 99);
}

.cm-s-inner .cm-string-2 {
  color: rgb(223, 152, 116);
}

.cm-s-inner .cm-meta {
  color: rgb(158, 158, 158);
}

.cm-s-inner .cm-qualifier {
  color: rgb(145, 145, 145);
}

.cm-s-inner .cm-builtin {
  color: rgb(169, 145, 226);
}

.cm-s-inner .cm-bracket {
  color: rgb(214, 214, 166);
}

.cm-s-inner .cm-tag {
  color: rgb(162, 207, 154);
}

.cm-s-inner .cm-attribute {
  color: rgb(169, 169, 216);
}

.cm-s-inner .cm-header,
.cm-s-inner.cm-header {
  color: rgb(161, 161, 255);
}

.cm-s-inner .cm-quote,
.cm-s-inner.cm-quote {
  color: rgb(90, 158, 90);
}

.cm-s-inner .cm-hr,
.cm-s-inner.cm-hr {
  color: rgb(184, 184, 184);
}

.cm-s-inner .cm-link,
.cm-s-inner.cm-link {
  color: rgb(134, 134, 197);
}

.cm-negative {
  color: rgb(218, 126, 126);
}

.cm-positive {
  color: rgb(118, 189, 118);
}

.cm-header,
.cm-strong {
  font-weight: 700;
}

.cm-del {
  text-decoration: line-through;
}

.cm-em {
  font-style: italic;
}

.cm-link {
  text-decoration: underline;
}

.cm-error {
  color: rgb(255, 75, 75);
}

.cm-invalidchar {
  color: rgb(255, 75, 75);
}

.cm-constant {
  color: #50a5e2;
}

.cm-defined {
  color: #eccb66;
}

div.CodeMirror span.CodeMirror-matchingbracket {
  color: rgb(139, 230, 139);
}

div.CodeMirror span.CodeMirror-nonmatchingbracket {
  color: rgb(241, 99, 99);
}

.cm-searching {
  background: #ffa;
  background: rgba(255, 255, 0, 0.4);
}

.cm-tw-syntaxerror {
  color: rgb(199, 199, 199);
  background-color: #900;
}

.CodeMirror div.CodeMirror-cursor {
  border-left: 3px solid #e4629a;
}

#typora-source .CodeMirror-gutter-wrapper {
  font-family: var(--monospace) !important;
}

.cm-s-typora-default .CodeMirror-activeline-background {
  left: -99999px;
  right: -99999px;
  background: #80808020;
}

.cm-s-typora-default .cm-code,
.cm-s-typora-default .cm-comment {
  color: #8997d4;
  font-family: monospace;
  font-family: var(--monospace);
}

.cm-s-typora-default .cm-string {
  color: #84a97e;
}

.cm-s-typora-default .cm-tag {
  color: #c36260;
}

/* unibody */
.megamenu-menu {
  background-color: var(--side-bar-bg-color) !important;
}

#megamenu-back-btn {
  border-color: transparent;
  color: #a94442;
}

.long-btn {
  border: 1px solid #9292928f;
}

#recent-file-panel-action-btn {
  background-color: var(--bg-color) !important;
  border: 1px solid #9292928f !important;
}

#top-titlebar .toolbar-icon.btn.hover,
#top-titlebar .toolbar-icon.btn:hover {
  background-color: #212121;
}

#top-titlebar {
  font-family: var(--monospace);
}

/* ==========================
   倒计时盒子样式
   ========================== */
.countdown-box {
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 18px;
  /* color: #ffffff; */
  /* background-color: #191919; */
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  /* border: 1px solid #191919; */
  display: block; /* 让背景框适应文字宽度 */
  position: relative;
  margin: 0px auto;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 860px;
}

#countdown-display {
  text-align: center;
}

.highlight-number {
  color: #e74c3c; /* 红色高亮数字 */
  font-weight: bold;
  font-size: 40px;
  margin: 0 5px;
}
.highlight-number-decimalPart {
  color: #e74c3c; /* 红色高亮数字 */
  font-weight: bold;
  font-size: 20px;
  margin: 0 5px;
}

.highlight-name {
  color: #eb230d; /* 红色高亮数字 */
  font-weight: bold;
  font-size: 32px;
  margin: 0 5px;
}

.reset-link,
.reset-link:link,
.reset-link:visited,
.reset-link:hover,
.reset-link:active {
  color: inherit; /* 继承父元素颜色 */
  text-decoration: none; /* 移除下划线 */
}

/* 时间显示容器样式：简洁+绿色+居中（可根据需求调整位置） */
.current-time {
    /* 核心：绿色字体（柔和不刺眼的青柠绿，避免高饱和绿） */
    color: #2ecc71; 
    /* 字体优化：无衬线字体，清晰易读 */
    font-family: "Microsoft YaHei", "Inter", sans-serif;
    /* 字体大小：适中，可根据需求调整（比如20px/24px） */
    font-size: 36px;
    /* 字间距：轻微拉开，提升可读性 */
    letter-spacing: 0.5px;
    /* 可选：轻微阴影，增强视觉层次（不喜欢可删掉） */
    text-shadow: 0 0 2px rgba(46, 204, 113, 0.2);
    /* 可选：居中显示（如需靠左/靠右，改margin为left/right即可） */
    margin: 20px auto;
    text-align: center;
    /* 去除默认样式 */
    padding: 0;
    border: none;
    background: transparent;
}