/* stylelint-disable docusaurus/copyright-header */
/**
 * Any CSS included here will be global. The classic template
 * bundles Infima by default. Infima is a CSS framework designed to
 * work well for content-centric websites.
 */

/* You can override the default Infima variables here. */

:root {
  --ifm-color-primary: #1f2942;
  --ifm-color-primary-dark: #1a2338;
  --ifm-color-primary-darker: #182133;
  --ifm-color-primary-darkest: #121927;
  --ifm-color-primary-light: #2e3a58;
  --ifm-color-primary-lighter: #3b4969;
  --ifm-color-primary-lightest: #5f6c89;
  --ifm-background-color: #fffdf7;
  --ifm-background-surface-color: #fffdf7;
  --ifm-navbar-background-color: #fffdf7;
  --docs-sidebar-background: #f1f0e8;
  --docs-divider-color: #d5d4ce;
  --ifm-menu-color: #000000;
  --ifm-menu-color-active: #000000;
  --ifm-menu-color-background-active: #f3f5f8;
  --ifm-menu-color-background-hover: #f6f8fb;
  --ifm-font-color-base: #000000;
  --ifm-font-color-secondary: #000000;
  --ifm-heading-color: #000000;
  --ifm-toc-border-color: #d5d4ce;
  --ifm-color-emphasis-200: #d5d4ce;
  --ifm-color-emphasis-300: #d5d4ce;
  --ifm-code-background: #f3f5f8;
  --ifm-link-color: #ffffff;
  --ifm-link-hover-color: #ffffff;
  --ifm-navbar-shadow: 0 1px 0 rgba(233, 236, 240, 1);

  --collapse-button-bg-color-dark: #2e333a;

  --ifm-code-font-size: 95%;

  --ifm-h1-font-size: 1.75rem;
  --ifm-h2-font-size: 1.5rem;
  --ifm-h3-font-size: 1.25rem;
  --ifm-h4-font-size: 1rem;
  --ifm-h5-font-size: 0.875rem;
  --ifm-h6-font-size: 0.85rem;

  /* --ifm-table-border-color: var(--ifm-color-emphasis-100); */
  /* --ifm-toc-border-color: none; */
  --ifm-toc-border-width: 1px;

  /* --ifm-menu-color: var(--ifm-color-emphasis-900); */
  --ifm-menu-color-background-active: transparent;
  --ifm-menu-color-background-hover: transparent;

  --ifm-global-shadow-lw: 0 1px 10px 0 rgba(0, 0, 0, 0.1);
  --ifm-global-shadow-md: 0 5px 40px rgba(0, 0, 0, 0.1);
  --ifm-global-shadow-tl: 0 12px 28px 0 rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.1);

  --ifm-global-spacing: 1.5rem;
  /* --ifm-navbar-background-color: rgba(255, 0.2); */
}

html {
  scroll-behavior: smooth;
}

html[data-theme='dark'] {
  --ifm-color-primary: #1f2942;
  --ifm-color-primary-dark: #1a2338;
  --ifm-color-primary-darker: #182133;
  --ifm-color-primary-darkest: #121927;
  --ifm-color-primary-light: #2e3a58;
  --ifm-color-primary-lighter: #3b4969;
  --ifm-color-primary-lightest: #5f6c89;
  --ifm-background-color: #262624;
  --ifm-background-surface-color: #262624;
  --ifm-navbar-background-color: #262624;
  --docs-sidebar-background: #1f1e1d;
  --docs-divider-color: #3c3b38;
  --ifm-font-color-base: #fffdf7;
  --ifm-font-color-secondary: rgba(255, 253, 247, 0.72);
  --ifm-heading-color: #fffdf7;
  --ifm-menu-color: rgba(255, 253, 247, 0.86);
  --ifm-menu-color-active: #fffdf7;
  --ifm-toc-border-color: #3c3b38;
  --ifm-color-emphasis-200: #3c3b38;
  --ifm-color-emphasis-300: #3c3b38;
  --ifm-code-background: rgba(255, 253, 247, 0.08);
  --ifm-link-color: #ffffff;
  --ifm-link-hover-color: #ffffff;
  --ifm-global-shadow-md: 0 6px 24px rgba(30, 42, 74, 0.08);
  background-repeat: no-repeat;
  background-color: #262624;
}

html[data-theme='light'] {
  --ifm-color-primary: #1f2942;
  --ifm-background-color: #fffdf7;
  --ifm-background-surface-color: #fffdf7;
  --ifm-navbar-background-color: #fffdf7;
  --docs-sidebar-background: #f1f0e8;
  --docs-divider-color: #d5d4ce;
  --ifm-font-color-base: #000000;
  --ifm-font-color-secondary: #000000;
  --ifm-heading-color: #000000;

  /* Improve inline code background in light mode */
  --ifm-code-background: #f3f5f8;
  --ifm-code-color: #1c1e21;

  background-position: 0px -30vh;
  background-repeat: no-repeat;
  /* background-image: radial-gradient(50% 50% at 50% 50%, rgba(82, 186, 255, 0.5) 0%, rgba(82, 186, 255, 0) 100%); */
  background-color: #fffdf7;
  /* any other colors you wish to overwrite */
}

/* Force better inline code styling in light mode */
html[data-theme='light'] code:not([class*='language-']) {
  background-color: #e5e7eb !important;
  color: #1c1e21 !important;
  border: 1px solid #d1d5db;
  padding: 0.1rem 0.3rem;
  border-radius: 0.2rem;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-variant: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  font-feature-settings: 'ss01' on, 'ss02' on, 'cv01' on, 'cv03' on;
  font-weight: 400;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--ifm-background-color);
}

html[data-theme='dark'] #__docusaurus {
  background-color: #262624;
}

html[data-theme='dark'] body {
  background: #262624;
  color: #fffdf7;
}

html[data-theme='light'] .tabs__item {
  color: var(--ifm-color-emphasis-600);
  border-bottom: 3px solid transparent;
}

html[data-theme='light'] .tabs__item--active {
  color: var(--ifm-color-emphasis-900);
  border-bottom-color: #2458ff;
}

html[data-theme='dark'] .tabs__item {
  color: var(--ifm-color-emphasis-600);
  border-bottom: 3px solid transparent;
}

html[data-theme='dark'] .tabs__item--active {
  color: #ffffff;
  border-bottom-color: #2458ff;
}

.blog {
  max-width: 650px;
}

p {
  line-height: 1.5rem;
  font-weight: 400;
}

hr {
  border-bottom-width: 0px;
  border-top-width: 1px;
  border-color: var(--ifm-color-emphasis-200);
}

.theme-doc-markdown h1,
.theme-doc-markdown h2,
.theme-doc-markdown h3,
.theme-doc-markdown h4,
.theme-doc-markdown h5,
article h1,
article h2,
article h3,
article h4,
article h5 {
  font-family: 'Kefaiii', 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.18;
  font-feature-settings: normal;
}

.theme-doc-markdown:lang(en) h1,
.theme-doc-markdown:lang(en) h2,
.theme-doc-markdown:lang(en) h3,
.theme-doc-markdown:lang(en) h4,
.theme-doc-markdown:lang(en) h5,
html[lang='en'] article h1,
html[lang='en'] article h2,
html[lang='en'] article h3,
html[lang='en'] article h4,
html[lang='en'] article h5 {
  font-family: 'Kefaiii', Georgia, 'Times New Roman', serif;
  letter-spacing: 0.01em;
}

.theme-doc-markdown h1,
article h1 {
  font-weight: 700;
}

h1 {
  font-size: 32px !important;
}

h2 {
  font-size: 24px !important;
}

h3 {
  font-size: 20px !important;
}

h4 {
  font-size: 20px !important;
}

h4 {
  font-size: 16px !important;
}

.menu__link--sublist:after {
  background: var(--ifm-menu-link-sublist-icon) 50% / 1.5rem 1.5rem;
  /* color: var(  --ifm-color-primary); */
}

.navbar {
  align-items: center;
  padding-left: 28px !important;
  padding-right: 28px !important;
  background: var(--ifm-navbar-background-color);
  min-height: 88px;
}

html[data-theme='dark'] .navbar {
  /* background-color: none; */
  border-bottom: var(--docs-divider-color) 1px solid;
}

.baicode-hero {
  margin: 0 0 1rem;
}

.baicode-hero__mascot {
  width: 64px;
  margin: 0;
  height: auto;
  display: block;
}

html[data-theme='dark'] .baicode-hero__mascot {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.18));
}

html[data-theme='light'] .navbar {
  /* background-color: none; */
  border-bottom: var(--docs-divider-color) 1px solid;
}

.container {
  padding: 0px;
  /* margin: 4rem auto 0px; */
  max-width: 90% !important;
}

.container.padding-top--md {
  padding-top: 2rem !important;
}

.react-toggle-track {
  background-color: var(--ifm-color-emphasis-100) !important;
}

.react-toggle-thumb {
  background-color: var(--ifm-color-emphasis-200) !important;
}

.react-toggle-thumb:hover {
  box-shadow: none !important;
}

.navbar__title {
  display: none;
}

.navbar__link {
  font-weight: 500;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-skip-ink: none;
}

.navbar__item.dropdown .navbar__link > svg:first-child,
.navbar__item.persistent .navbar__link > svg,
.navbar__link .iconExternalLink_nPIU,
.navbar__link [class*='iconExternalLink'],
.navbar__link [class*='iconLanguage'] {
  display: none !important;
}

.navbar__logo {
  height: 54px !important;
  width: 168px;
  margin-right: 0;
}

.navbar__logo img {
  height: 54px !important;
  width: 168px;
  object-fit: contain;
}

.navbar__brand {
  gap: 0;
  min-width: 168px;
  align-items: center;
}

.markdown a,
.theme-doc-markdown a,
.pagination-nav__label {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-skip-ink: none;
}

.markdown a:hover,
.theme-doc-markdown a:hover,
.navbar__link:hover {
  text-decoration-thickness: 1px;
}

html[data-theme='light'] .navbar__link {
  color: #000000;
  text-decoration-color: #000000;
}

html[data-theme='dark'] .navbar__link {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

html[data-theme='light'] .markdown a,
html[data-theme='light'] .theme-doc-markdown a,
html[data-theme='light'] .pagination-nav__label,
html[data-theme='light'] .breadcrumbs__link,
html[data-theme='light'] .breadcrumbs__link:any-link,
html[data-theme='light'] .table-of-contents__link {
  color: #000000;
  text-decoration-color: #000000;
}

html[data-theme='dark'] .markdown a,
html[data-theme='dark'] .theme-doc-markdown a,
html[data-theme='dark'] .pagination-nav__label,
html[data-theme='dark'] .breadcrumbs__link,
html[data-theme='dark'] .breadcrumbs__link:any-link,
html[data-theme='dark'] .table-of-contents__link {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

html[data-theme='dark'] .breadcrumbs__link,
html[data-theme='dark'] .breadcrumbs__link:any-link {
  color: rgba(255, 253, 247, 0.72);
  text-decoration-color: rgba(255, 253, 247, 0.72);
}

html[data-theme='dark'] .breadcrumbs__item--active .breadcrumbs__link {
  color: #fffdf7;
  text-decoration-color: #fffdf7;
}

.menu__link {
  font-size: 16px;
  font-weight: 400;
}

.docusaurus-highlight-code-line {
  background-color: rgb(72, 77, 91);
  display: block;
  margin: 0 calc(-1 * var(--ifm-pre-padding));
  padding: 0 var(--ifm-pre-padding);
  color: var(--ifm-color-secondary-darker);
}

.badge {
  margin-bottom: 16px;
}

.badge--secondary {
  --ifm-badge-background-color: var(--ifm-color-emphasis-0);
  --ifm-badge-border-color: var(--ifm-badge-background-color);
  color: var(--ifm-color-base);
}

.illustration {
  border-radius: var(--ifm-pre-border-radius);
}

iframe {
  display: block;
  padding: 0;
  margin: 1rem auto;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.widget-api th:nth-child(1) {
  width: 28%;
}

.widget-api th:nth-child(2) {
  width: 18%;
}

.widget-api th:nth-child(3) {
  width: 18%;
}

.widget-api th:nth-child(4) {
  width: auto;
}

.widget-examples {
  background: none;
}

.widget-examples {
  width: 100%;
}

.widget-examples tr,
.widget-examples tr:nth-child(2n),
.widget-examples td {
  border: 0;
  background: none;
}

.widget-examples td:first-child {
  padding-left: 0;
  font-size: 0;
}

.widget-examples td:last-child {
  width: 100%;
  padding-right: 0;
}

.widget-examples .theme-code-block {
  margin: 0;
}

.widget-examples pre {
  min-height: 360px;
  padding-top: var(--ifm-pre-padding);
}

.widget-theme-example {
  max-width: 360px;
  max-height: 360px;
}

.admonition-note:last-child {
  margin-top: 3rem;
}

html[data-theme='light'] .admonition-note {
  background: #e8e8e8;
}

html[data-theme='dark'] .admonition-note {
  background: none;
  color: var(--ifm-color-white);
  border: 1px solid var(--ifm-color-emphasis-300);
}

html[data-theme='dark'] .admonition-icon svg {
  fill: var(--ifm-color-white);
}

html[data-theme='light'] .DocSearch {
  /* --docsearch-primary-color: var(--ifm-color-primary); */
  /* --docsearch-text-color: var(--ifm-font-color-base); */
  --docsearch-muted-color: var(--ifm-color-emphasis-900);
  --docsearch-container-background: rgba(94, 100, 112, 0.7);
  /* Modal */
  --docsearch-modal-background: var(--ifm-color-secondary-lighter);
  /* Search box */
  --docsearch-searchbox-background: var(--ifm-color-secondary);
  --docsearch-searchbox-focus-background: var(--ifm-color-white);
  /* Hit */
  --docsearch-hit-color: var(--ifm-font-color-base);
  --docsearch-hit-active-color: var(--ifm-color-emphasis-700);
  --docsearch-hit-background: var(--ifm-color-white);
  --docsearch-searchbox-background: rgba(0, 0, 0, 0.05);
  /*--docsearch-highlight-color: var(--ifm-color-emphasis-100);*/

  /* Footer */
  --docsearch-footer-background: var(--ifm-color-white);
  --docsearch-searchbox-shadow: none;
}

html[data-theme='dark'] .DocSearch {
  /* --docsearch-text-color: var(--ifm-font-color-100); */
  --docsearch-muted-color: var(--ifm-color-secondary-darkest);
  --docsearch-container-background: rgba(47, 55, 69, 0.7);
  /* Modal */
  --docsearch-modal-background: var(--ifm-background-color);
  /* Search box */
  --docsearch-searchbox-background: var(--ifm-background-color);
  --docsearch-searchbox-focus-background: var(--ifm-color-black);
  /* Hit */
  --docsearch-hit-color: var(--ifm-font-color-base);
  --docsearch-hit-active-color: var(--ifm-color-emphasis-700);
  --docsearch-hit-background: var(--ifm-color-emphasis-100);
  --docsearch-searchbox-background: rgba(0, 0, 0, 0.2);
  /* Footer */
  --docsearch-footer-background: var(--ifm-background-surface-color);
  --docsearch-key-gradient: linear-gradient(
    -26.5deg,
    var(--ifm-color-emphasis-200) 0%,
    var(--ifm-color-emphasis-100) 100%
  );

  --docsearch-searchbox-shadow: inset 0 0 0 2px var(--ifm-color-emphasis-200);
}

html[data-theme='light'] .DocSearch-Hit {
  background-color: transparent;
}

html[data-theme='light'] .DocSearch-Hit :focus {
  background-color: var(--ifm-color-emphasis-100);
}

html[data-theme='light'] .DocSearch-Hit :hover {
  background-color: var(--ifm-color-emphasis-100);
}

html[data-theme='light'] .DocSearch-Hit {
  background-color: transparent;
}

html[data-theme='dark'] .DocSearch-Hit {
  background-color: transparent;
}

html[data-theme='dark'] .DocSearch-Hit :focus {
  background-color: var(--ifm-color-emphasis-100);
}

html[data-theme='dark'] .DocSearch-Hit :hover {
  background-color: var(--ifm-color-emphasis-100);
}

html[data-theme='dark'] .DocSearch-Hit a :hover {
  background-color: transparent;
}

html[data-theme='dark'] .DocSearch-Hit a {
  background-color: var(--ifm-color-emphasis-0);
}

.react-toggle-thumb :hover {
  border: none;
  outline: none;
  box-shadow: none;
}

.react-toggle-thumb :focus {
  border: none;
  outline: none;
  box-shadow: none;
}

.react-toggle-thumb :active {
  border: none;
  outline: none;
  box-shadow: none;
}

.menu {
  background: var(--docs-sidebar-background);
  padding: 1.5rem 1rem !important;
}

.theme-doc-sidebar-container {
  background: var(--docs-sidebar-background);
  border-right: 1px solid var(--docs-divider-color);
}

.theme-doc-markdown,
.theme-doc-toc-desktop,
.main-wrapper,
.theme-doc-root {
  background: var(--ifm-background-color);
}

.docMainContainer_gTbr,
.docItemContainer_Djhp,
.docItemCol_VOVn,
.row,
.col {
  background: transparent;
}

.theme-doc-toc-desktop {
  border-left: 1px solid var(--docs-divider-color);
}

.menu__link {
  border-radius: 12px;
  color: var(--ifm-menu-color);
}

.menu__link:hover,
.menu__link--active {
  background: var(--ifm-menu-color-background-hover);
  color: var(--ifm-menu-color-active);
  text-decoration: none;
}

html[data-theme='dark'] .menu__link {
  color: rgba(255, 253, 247, 0.78);
}

html[data-theme='dark'] .menu__link:hover,
html[data-theme='dark'] .menu__link--active {
  background: rgba(255, 253, 247, 0.06);
  color: #fffdf7;
}

html[data-theme='dark'] .menu__list-item-collapsible:hover > .menu__link,
html[data-theme='dark'] .menu__list-item-collapsible .menu__link:hover,
html[data-theme='dark'] .theme-doc-sidebar-item-link .menu__link:hover,
html[data-theme='dark'] .theme-doc-sidebar-item-category .menu__link:hover {
  background: rgba(255, 253, 247, 0.06);
  color: #fffdf7;
}

html[data-theme='dark'] .menu__caret:before,
html[data-theme='dark'] .menu__link--sublist:after {
  opacity: 0.86;
}

.theme-doc-breadcrumbs {
  margin-bottom: 1.5rem;
}

.dropdown__menu {
  box-shadow: 0 5px 40px rgba(0, 0, 0, 0.1);
}

html[data-theme='light'] .dropdown__menu {
  background: #fffdf7;
  border: 1px solid var(--docs-divider-color);
}

html[data-theme='dark'] .dropdown__menu {
  background: #262624;
  border: 1px solid var(--docs-divider-color);
}

html[data-theme='dark'] .dropdown__link {
  color: rgba(255, 253, 247, 0.82);
}

html[data-theme='dark'] .dropdown__link:hover,
html[data-theme='dark'] .dropdown__link--active {
  background: transparent;
  color: #fffdf7;
}

.menu__link:hover {
  text-decoration: underline;
}

.menu__link--active {
  font-weight: 500;
}

.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link,
.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link--active {
  color: var(--ifm-menu-color);
}

html[data-theme='dark'] .theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link,
html[data-theme='dark'] .theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link--active {
  color: rgba(255, 253, 247, 0.78);
}

/* 目录默认整体略淡，仅悬停的那一项高亮 */
.table-of-contents__link {
  opacity: 0.5;
  font-size: 14px;
}

.table-of-contents__link:hover,
.table-of-contents__link--active {
  opacity: 1;
}

html[data-theme='dark'] .table-of-contents__link {
  color: rgba(255, 253, 247, 0.6);
  text-decoration-color: rgba(255, 253, 247, 0.6);
}

html[data-theme='dark'] .table-of-contents__link:hover,
html[data-theme='dark'] .table-of-contents__link--active {
  color: #fffdf7;
  text-decoration-color: #fffdf7;
}

html[data-theme='dark'] .theme-doc-sidebar-container,
html[data-theme='dark'] .menu {
  box-shadow: none;
}

html[data-theme='dark'] .theme-doc-markdown,
html[data-theme='dark'] .theme-doc-toc-desktop,
html[data-theme='dark'] .main-wrapper,
html[data-theme='dark'] .theme-doc-root,
html[data-theme='dark'] .container,
html[data-theme='dark'] .container-fluid {
  background: #262624;
}

html[data-theme='dark'] .theme-doc-toc-desktop {
  background: #262624;
}

html[data-theme='dark'] .theme-doc-sidebar-container,
html[data-theme='dark'] .menu {
  background: #1f1e1d;
}

.table-of-contents__link:hover {
  text-decoration: underline;
}

.navbar__inner {
  flex-wrap: unset;
}

.navbar__item {
  display: none;
}

.navbar__item.dropdown {
  display: inline-block;
}

.navbar__item.persistent {
  display: inline-block;
}

.navbar__item.V3_active.V3 {
  display: inline-block;
}

.menu__link.V3_active,
.V2_active,
.V1_active {
  display: none;
}

.menu__list-item--collapsed .menu__link {
  display: flex;
}

.menu__link.persistent {
  display: flex;
}

.menu__link.V3_active.V3 {
  display: flex;
}

.menu__link.V2_active.V2 {
  display: flex;
}

.menu__link.V1_active.V1 {
  display: flex;
}

@media (max-width: 960px) {
  .menu {
    /* background-color: var(--ifm-color-emphasis-0); */
    padding: initial !important;
  }

  .container {
    max-width: 100% !important;
    padding: 1rem;
  }

  .container.padding-top--md {
    padding-top: initial;
  }

  .navbar__item {
    display: none !important;
  }

  .footer {
    display: none;
  }
}

.github-codeblock-reference-link {
  margin-top: -16px;
  padding-bottom: 13px;
  font-size: 0.7em;
  text-align: right;
}

.footnote-backref {
  text-decoration: none;
}

.footnote-backref:hover {
  text-decoration: none;
}

.footnote-backref {
  font-family: 'Poppins';
}

.footer {
  display: none;
}

/**
* Hide On this page
*/
.tocCollapsibleButton_TO0P {
  display: none !important;
}

button[class*='tocCollapsibleButton'] {
  display: none !important;
}

/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

@font-face {
  font-family: 'Kefaiii';
  src: url('/fonts/kefaiii.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

.figcaption-center {
  text-align: center;
  font-size: var(--ifm-font-size-sm);
  color: var(--ifm-font-color-secondary);
}

/* Custom highlight link colors */
html[data-theme='light'] .highlight-link {
  color: #0090f0 !important;
}

html[data-theme='dark'] .highlight-link {
  color: #29aaff !important;
}
