/*@Lavi & @嘴 的Flamingo主题色（原Pink Topaz）*/
@import url("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/sunburst.min.css");
body {
  --hr-content: "Ceasium" !important;
}
body.color-scheme-options-flamingo.theme-light,
body.theme-light {

  --background-4-sliding-panel: #efe9d9;
  --background-mobile-drawer-1: #efe9d9;
  --background-mobile-drawer-2: #efe9d9;
  --graph-control-bg: #efe9d9;

  --background-modifier-border: rgba(0, 0, 0, 0.1);
  --background-modifier-form-field: #ffdece;
  --background-modifier-form-field-highlighted: #f5a7a2;
  --background-modifier-box-shadow: rgba(0, 0, 0, 0.1);
  --background-modifier-success: #ffdece;
  --background-modifier-error: #f5a7a2;
  --background-modifier-error-rgb: 230, 135, 135;
  --background-modifier-error-hover: #fefcf9;

  --text-normal: #37291a;
  --text-muted: #37291a;
  --text-faint: #37291a;
  --accent-strong: var(--text-link-hover);
  --text-error: #f5a7a2;
  --text-error-hover: #fefcf9;

  --text-highlight-bg-h: 4;
  --text-highlight-bg-s: 81%;
  --text-highlight-bg-l: 80%;
  --text-highlight-bg-a: 0.847;
  --text-highlight-bg: hsla(var(--text-highlight-bg-h), var(--text-highlight-bg-s), var(--text-highlight-bg-l), var(--text-highlight-bg-a));
  --text-selection: #f39ba044;

  --interactive-accent-rgb: 245, 167, 162;
  --accent-h: 4;
  --accent-s: 81%;
  --accent-l: 80%;
  --panel-border-color: #fd355a;
  --search-text: #37291a;
  --folder-title: #37291a;

  --gray-1: #c4c4c4;
  --gray-2: #7c8595;
  --red: #fd355a;
  --red-1: #980000;
  --green: #40916c;
  --darkgreen: #004f2d;
  --blue: #69a2ee;
  --darkblue: #5981f0;
  --purple: #8673b4;
  --aqua: #4dd8ef;
  --yellow: #ffc727;
  --light-yellow: #e5e79c;
  --orange: #f19c79;
  --light-purple: #d3d6fe;
  --blue-green: #16bcc0;

  --search-result-file-title-color: #980000;

  --list-ul-block-color: #f5a7a2;
  --list-ul-disc-color: #fd355a;
  --list-ul-hover: #980000;
  --list-ol-block-color: #f5a7a2;
  --list-ol-number-color: #f5a7a2;
  --list-ol-hover: #980000;
  --stag1: #fd355a;
  --stag2: #fd355a;
  --stag3: #fd355a;
  --tag1: #56cfc7c7;
  --tag2: #eca1bcda;
  --tag3: #e6d00d;
  --tag4: #40916c;
  --tag5: #68c7a4;

  --h1-color: var(--print-h1-color, #f39ba0);
  --h2-color: var(--print-h2-color, #f39ba0);
  --h3-color: var(--print-h3-color, #f39ba0);
  --h4-color: var(--print-h4-color, #f39ba0);
  --h5-color: var(--print-h5-color, #f39ba0);
  --h6-color: var(--print-h6-color, #f39ba0);

  --graph-text-color: #37291a;
  --graph-tag: #ffdece;
  --graph-attach: #f5a7a2;
  --graph-circle: #FD355C;
  --graph-line: #fea2c2;
  --graph-unresolved: #E87659;
  --graph-arrow: #980000;
  --mermaid-active-task-color: #f5a7a2;
  --mermaid-seq-dia-color: #ffdece;
  --table-background-color: #ffdece;
  --table-background-color-odd: #ffdece;
  --table-border-color: #fd355a;
  --table-thead-background-color: #f5a7a2;
  --table-hover-color: #f5a7a2;
  --table-hover-thead-color: #f5a7a2;
  --table-hover-raw-color: #ffdece;
  --calendar-week-color: #f5a7a2;
  --calendar-week-hover: #ffdece;
  --calendar-week-background-color: #ffdece;
  --day-planner-pie: #f5a7a2;
  --day-planner-timeline: #ffdece;
  --day-planner-line: #fd355a;
  --day-planner-dot: #ffdece;
  --day-planner-item-hover: #f5a7a2;
  --event-item-color1: #f39ba063;
  --event-item-color2: #f39ba091;
  --event-item-color3: #f39ba0c4;
  --event-item-color4: #f39ba0;
  --event-item-color5: #D08489;
  --event-item-color6: #B27175;
  --event-item-color7: #D08489;
  --event-item-color8: #f39ba0;
  --event-item-color9: #f39ba0c4;
  --event-item-color10: #f39ba091;

  --note-important: #fd355a;
  --note-cloze: #fd355a;
  --stickies-color-1: #e46969;
  --stickies-color-2: #f5a7a2;
  --tape-color: #acacac65;
  --header-color: #f5a7a2;

  --color-view-header-gradient-1: #efe9d933;
  --color-view-header-gradient-2: #efe9d933;

  --table-color-calendar-2: rgb(214, 118, 146);
  --table-color-rgb: 214, 118, 146;
  --scrollbar-thumb-bg: #f39ba050;
  --scrollbar-active-thumb-bg: #f39ba0;

  --block-quote-bg: #8c8cff33;
}


body.color-scheme-options-flamingo.theme-dark,
body.theme-dark {

  --background-modifier-border: #191919;
  --background-modifier-form-field: #f39ba0;
  --background-modifier-form-field-highlighted: #e5c7a9;
  --background-modifier-box-shadow: #292929;
  --background-modifier-success: #f93759;
  --background-modifier-error: #f93759;
  --background-modifier-error-rgb: #f93759;
  --background-modifier-error-hover: #F93758;

  --text-normal: #efe9d9;
  --text-muted: #efe9d9;
  --text-faint: #efe9d9;
  --accent-strong: var(--text-link-hover);
  --text-em-color: #f93759;
  --text-error: #f93759;
  --text-error-hover: #f93759;

  --text-highlight-bg-h: 357;
  --text-highlight-bg-s: 79%;
  --text-highlight-bg-l: 78%;
  --text-highlight-bg-a: 0.847;
  --text-highlight-bg: hsla(var(--text-highlight-bg-h), var(--text-highlight-bg-s), var(--text-highlight-bg-l), var(--text-highlight-bg-a));
  --text-selection: #e5c7a94a;

  --accent-h: 357;
  --accent-s: 79%;
  --accent-l: 78%;
  --interactive-accent-rgb: 243, 155, 160;

  --panel-border-color: #f93759;
  --search-text: #fff;
  --folder-title: #fff;

  --gray-1: #c9b0b0;
  --gray-2: #b4b1c6;
  --red: #ff9090;
  --red-1: #f93759;
  --orange: #f28d61;
  --green: #00ffc7;
  --darkgreen: #1bbc9b;
  --aqua: #30daff;
  --purple: #b073ff;
  --blue: #00a3b9;
  --darkblue: #0040ff;
  --yellow: #fcdc00;
  --light-yellow: #ffd26c;

  --search-result-file-title-color: #f39ba0;
  --background-blockquote-dark: #292929;
  --list-ul-block-color: #f39ba0;
  --list-ul-disc-color: #f93759;
  --list-ul-hover: #ffebec;
  --list-ol-block-color: #f39ba0;
  --list-ol-number-color: #ffccbc;
  --list-ol-hover: #ffebec;
  --stag1: #f39ba0;
  --stag2: #ffccbc;
  --stag3: #ffebec;
  --tag1: #028588;
  --tag2: #40916c;
  --tag3: #69a2ee;
  --tag4: #c47a5e;
  --tag5: #004f2d;

  --h1-color: var(--print-h1-color, #ffccbc);
  --h2-color: var(--print-h2-color, #ffccbc);
  --h3-color: var(--print-h3-color, #ffccbc);
  --h4-color: var(--print-h4-color, #ffccbc);
  --h5-color: var(--print-h5-color, #ffccbc);
  --h6-color: var(--print-h6-color, #ffccbc);

  --graph-text-color: #efe9d9;
  --graph-tag: #f39ba0;
  --graph-attach: #ffebec;
  --graph-circle: #f39ba0;
  --graph-line: #ffc3bc;
  --graph-unresolved: #ffccbc;
  --graph-arrow: #ffc3bc;
  --mermaid-active-task-color: #F39BA4;
  --mermaid-seq-dia-color: #ffebec;
  --table-background-color: #212121;
  --table-background-color-odd: transparent;
  --table-border-color: #ffebec;
  --table-thead-background-color: #f39ba0ad;
  --table-hover-raw-color: #292929;
  --table-hover-color: #ffccbc0a;
  --table-hover-thead-color: #f39ba0;
  --calendar-week-color: #ffccbc;
  --calendar-week-hover: #f39ba0;
  --calendar-week-background-color: transparent;
  --day-planner-pie: #ffccbc;
  --day-planner-timeline: #ff9b7c;
  --day-planner-line: #f39ba0;
  --day-planner-dot: #ffebec;
  --day-planner-item-hover: #f39ba0;
  --event-item-color9: #ffc3bc;
  --event-item-color8: #ffbcbc;
  --event-item-color10: #ffccbc;
  --event-item-color7: #ffbcc4;
  --event-item-color6: #ffbcbc;
  --event-item-color5: #ffc3bc;
  --event-item-color4: #ffccbc;
  --event-item-color3: #ffd4bc;
  --event-item-color2: #ffdcbc;
  --event-item-color1: #ffe4bc;

  --note-important: #f93759;
  --note-cloze: #f93759;
  --stickies-color-1: #f39ba0;
  --stickies-color-2: #ffebec;
  --tape-color: #ffccbc47;
  --header-color: #f39ba0;

  --color-view-header-gradient-1: #21212122;
  --color-view-header-gradient-2: #21212122;

  --table-color-calendar-2: rgb(215, 86, 125);
  --table-color-rgb: 215, 86, 125;
  --scrollbar-thumb-bg: #e2bdbd50;
  --scrollbar-active-thumb-bg: #e2bdbd;

  --block-quote-bg: #9191ca33;
}

body.color-scheme-options-flamingo.theme-light #calendar-container {
  --color-background-heading: transparent;
  --color-background-weeknum: transparent;
  --color-background-day: transparent;
  --color-background-weekend: transparent;

  --color-tr: #ffdece8c !important;
  --color-tr-odd: #ffdece !important;

  --color-dot: var(--text-accent);
  --color-arrow: currentColor;
  --color-button: var(--text-muted);
  --color-text-weeknum: var(--calendar-week-color);

  --color-text-title: var(--text-normal);
  --color-text-heading: var(--text-normal);
  --color-text-day: var(--text-normal);
  --color-text-today: var(--text-accent);

  padding: 0px 5px 0px 8px;
  margin: -21px -8px 0px -8px;
  line-height: 0.6;
}





/*表格调整*/
/*星期*/
body.color-scheme-options-flamingo.theme-light #calendar-container th {
  padding: 6px 0;
  border-radius: 0px !important;
  background-color: var(--table-thead-background-color) !important;
}

body.color-scheme-options-flamingo.theme-light #calendar-container .week-num,
body.color-scheme-options-flamingo.theme-light #calendar-container .day {
  border-radius: 0px !important;
}

/*天*/
body.color-scheme-options-flamingo.theme-light #calendar-container td {
  width: 12.5%;
  border-right: 0px solid var(--background-secondary-alt);
  padding: 0px 0px 0px 0px !important;
  line-height: 22px;
  border-radius: 0px !important;
}

body.color-scheme-options-flamingo.theme-light #calendar-container tr {
  border: 2px solid var(--background-secondary-alt);
}

/*“Today”*/
body.color-scheme-options-flamingo.theme-light #calendar-container .reset-button {
  font-size: 14px !important;
  margin: 0;
  padding: 0;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}

/*悬停Today*/
body.color-scheme-options-flamingo.theme-light #calendar-container .reset-button:hover {
  color: var(--header-color);
  background-color: var(--table-hover-raw-color);
}

/*悬停arrow*/
body.color-scheme-options-flamingo.theme-light #calendar-container .arrow:hover {
  color: var(--theme-color);
}

body.color-scheme-options-flamingo.theme-light #calendar-container .day:active,
body.color-scheme-options-flamingo.theme-light #calendar-container .active,
body.color-scheme-options-flamingo.theme-light #calendar-container .active.today {
  background-color: #f5a7a2 !important;
}

/*点调整 dot*/
body.color-scheme-options-flamingo.theme-light #calendar-container .dot-container {
  margin-top: -2px;
  margin-bottom: -1px;
}

/*月份调整 month*/
body.color-scheme-options-flamingo.theme-light #calendar-container .month {
  font-size: 20px;
  line-height: 1;
}

/*年份调整 year*/
body.color-scheme-options-flamingo.theme-light #calendar-container .year {
  font-size: 20px;
  line-height: 1;
}

/*星期数 week*/
body.color-scheme-options-flamingo.theme-light #calendar-container .week-num {
  background-color: var(--calendar-week-background-color);
  font-weight: 600;
}

/*星期数悬停 week hover*/
body.color-scheme-options-flamingo.theme-light #calendar-container .week-num:hover {
  background-color: var(--calendar-week-hover) !important;
}

/*比上面那个还菜鸟的人做的一些修改*/
body.color-scheme-options-flamingo.theme-light .nav-folder.mod-root>.nav-folder-title {
  background-color: var(--background-secondary-alt-bg-4-bt)
}

body.color-scheme-options-flamingo.theme-light .admonition {
  background-color: #ffebec15 !important;
}

body.color-scheme-options-flamingo.theme-light {
  --font-family-vault: Arlrdbd, 'Source Han Sans', 'Noto Sans CJK', 'Source Sans Pro' !important;
  /*左侧库名字体*/
  --font-family-folder-file-title: Arlrdbd, 'Source Han Sans', 'Noto Sans CJK', 'Source Sans Pro' !important;
  /*左侧边栏文件、文件夹字体*/
}

body.color-scheme-options-flamingo.theme-light .tag[href^="#DailyNote"] {
  background-color: var(--tag1);
  font-weight: 600;
  font-family: var(--font-family-special-tag) !important;
}

body.color-scheme-options-flamingo.theme-light .tag[href^="#DailyNote"]::after {
  content: '❀';
  font-size: var(--font-size-emoji-after-tag);
}

body.color-scheme-options-flamingo.theme-light .search-result-file-match {
  background: transparent;
}

/*@Lavi & @嘴 的Flamingo主题色（原Pink Topaz）到此结束 */


/* Markdown container 基础样式 */
#markdown-container {
  /* max-width: 800px; */
  margin: 2em auto;
  padding: 2em;
  background: var(--background-primary, #fff);
  color: var(--text-normal, #222);
  border-radius: 8px;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Liberation Sans', sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 标题 */
#markdown-container h1,
#markdown-container h2,
#markdown-container h3,
#markdown-container h4,
#markdown-container h5,
#markdown-container h6 {
  color: var(--h1-color, #f39ba0);
  border-bottom: 1px solid #eee;
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: bold;

  /* padding-top: 1.25rem; */
  margin: 45px 0 20px 0;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid;
  border-width: 0.25em;
  border-image-slice: 1;
  border-image-source: linear-gradient(to right, var(--text-faint) 10%, var(--background-primary) 50%);
}

/* 段落 */
#markdown-container p {
  margin: 1em 0;
  line-height: 1.7;
}

/* 列表 */
#markdown-container ul,
#markdown-container ol {
  margin: 1em 0 1em 2em;
}

#markdown-container li {
  margin: 0.5em 0;
}

/* 代码块 */
#markdown-container pre {
  background: #171717;
  color: #e6e6e6;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'JetBrains Mono', monospace;
  font-size: 1em;
  margin: 1.5em 0;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  max-width: 200vh;
}

#markdown-container code,
code {
  background: #171717;
  color: #c7254e;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'JetBrains Mono', monospace;
  font-size: 0.95em;
}

#markdown-container pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: 1em;
}

/* 链接 */
#markdown-container a {
  color: var(--accent-strong, #fd355a);
  text-decoration: underline;
}

#markdown-container a:hover {
  color: var(--red, #980000);
}

/* 表格 */
#markdown-container table {
  border-collapse: collapse;
  margin: 1em 0;
  width: 100%;
  background: var(--table-background-color, #ffdece);
}

#markdown-container th,
#markdown-container td {
  border: 1px solid var(--table-border-color, #fd355a);
  padding: 0.5em 1em;
}

#markdown-container th {
  background: var(--table-thead-background-color, #f5a7a2);
}

/* 引用 */
#markdown-container blockquote,
blockquote {
  transition: var(--transition);
  border-left: 4px solid var(--accent-strong, #fd355a);
  background: var(--block-quote-bg, rgba(84, 84, 84, 0.322));
  margin: 1em 0;
  padding: 0.5em 1em;
  color: var(--text-faint, #666);
}

/* 图片 */
#markdown-container img {
  max-width: 100%;
  border-radius: 4px;
  margin: 1em 0;
}

/** hr styles -- PREVIEW MODE */
.cm-line hr,
.markdown-preview-view hr,
hr {
  margin-block-start: 4em;
  margin-block-end: 4em;
  border: none;
  height: 0;
  border-bottom: 1px solid;
  border-image-slice: 1;
  border-width: 4px;
  border-image-source: linear-gradient(to right, transparent, var(--accent-strong), transparent);
}

.cm-line hr::after,
.markdown-preview-view hr::after,
hr::after {
  content: var(--hr-content, 'ᓚᘏᗢ');
  display: inline-block;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: 50% 50%;
  padding: 0.5rem;
  color: var(--text-link);
  background-color: var(--background-primary)
}

/* 确保代码块的父元素支持相对定位 */
.code-block-container {
  position: relative;
}

/* 语言标签样式 */
.code-lang-label {
  position: absolute;
  top: 8px;
  right: 10px;
  background-color: transparent;
  color: #e24545bd;
  padding: 2px 5px;
  
  /* //斜体 */
  font-style: italic;
  font-family: 'Press Start 2P', sans-serif;
  font-size: 15px;

  text-decoration: underline;
  pointer-events: none;
  
}