/* 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: #466aff;
  --ifm-color-primary-dark: rgb(33, 175, 144);
  --ifm-color-primary-darker: rgb(31, 165, 136);
  --ifm-color-primary-darkest: rgb(26, 136, 112);
  --ifm-color-primary-light: rgb(70, 203, 174);
  --ifm-color-primary-lighter: rgb(102, 212, 189);
  --ifm-color-primary-lightest: rgb(146, 224, 208);
  --ifm-code-font-size: 95%;
  --search-local-modal-background:#1b2440;
  --search-local-highlight-color: #466aff;
  --search-local-hit-background: #f0f4ff;
  --search-local-hit-shadow: 0 1px 3px 0 #d4e0ee;
  --search-local-hit-active-color: #fff;
}
.navbar{
  background-color: rgba(27, 36, 64, 1);
}
.navbar__link--active,a:hover,.menu__link--active{
  color: rgba(70, 106, 255, 1)!important;
}
.navbar__link{
  color: #fff;
}
.table-of-contents__link--active{
  color: #466aff;
}
html[data-theme=light] .menu{
  background-image:linear-gradient(180deg,#f3f5f8 0%,#ffffff 100%);
  box-shadow:8px 6px 18px rgba(171, 202, 255, 0.24) inset;
  margin-bottom: 0px!important;
}
.docusaurus-highlight-code-line {
  background-color: rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 calc(-1 * var(--ifm-pre-padding));
  padding: 0 var(--ifm-pre-padding);
}

html[data-theme='dark'] .docusaurus-highlight-code-line {
  background-color: rgba(0, 0, 0, 0.3);
}
.navbar__search span[role='listbox']{
  background-color: #33416b;
}
.footer{
  height:450px;
  position: relative;
  background: #1e1e1e;
  padding:0px;
}
.container{
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.footer__bottom .margin-bottom--sm{
  position: absolute;
  margin-top: -150px;
  top:50%
}
.footer__links .footer__title{
  height: 25px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 25px;
  margin-bottom: 20px;
}
.footer__links .footer__col:last-child .footer__items:last-child{
  display: flex;
  flex-wrap: wrap;
}
.footer__links .footer__col:last-child .footer__items:last-child .footer__item{
  width: 50%;
}
.footer__links .footer__col:last-child .footer__items:last-child .footer__item:nth-child(2){
  background-image: url(../../static/img/gitlink-qq.png);
  background-size: 100% 100%;
  height: 90px;
  width: 90px;
  background-color: #fff;
  border-radius: 4px;
  position: relative;
}
.footer__links .footer__col:last-child .footer__items:last-child .footer__item:nth-child(3){
  background-image: url(../../static/img/gongzhong.png);
  background-size: 100% 100%;
  height: 90px;
  width: 90px;
  background-color: #fff;
  border-radius: 4px;
  position: relative;
  margin-left: 34px;
}
.footer__links .footer__col:last-child .footer__items:last-child .footer__item:nth-child(2) a,
.footer__links .footer__col:last-child .footer__items:last-child .footer__item:nth-child(3) a{
  position: absolute;
  top: 95px;
  left: 50%;
  margin-left: -17px;
}
.footer__links .footer__col:last-child .footer__items:last-child .footer__item:first-child{
  width: 100%;
}
.container .footer__links{
  margin-left: 420px;
  margin-top: 4rem;
}
.container .footer__logo{
  margin-top: 5rem!important;
}
.container .footer__links .footer__col .footer__item{
  color: #bdc2d1;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  height: 20px;
  margin-bottom: 15px;
}
.footer__bottom .margin-bottom--sm img{
  width: 300px;
  max-width: unset;
}
.container .footer__copyright{
  position: absolute;
  width: 100%;
  left: 0px;
  font-size: 12px;
  font-weight: 400;
  color: #bdc2d1;
  line-height: 28px;
  padding: 15px 0;
  text-align: center;
  background-color: #1b212c;
}
.container .footer__copyright p{
  margin-bottom: 0px!important;
}
.aa-Form{
  width: unset;
  flex:1;
}
.widget{
  display: none!important;
  opacity: 0;
}

/* 优化搜索框样式 */
.navbar__search-input {
  border-radius: 4px;
  transition: width 0.2s ease-in-out;
  border: 1px solid transparent;
}

.navbar__search-input:focus {
  width: 260px;
  border-color: var(--ifm-color-primary);
}

/* 搜索结果样式 */
.search-result-match {
  color: var(--search-local-highlight-color);
  font-weight: bold;
}

.search-result-item {
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  background-color: var(--search-local-hit-background);
  box-shadow: var(--search-local-hit-shadow);
  transition: all 0.2s ease;
}

.search-result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 问题反馈导航按钮样式 */
.navbar__items a[href="/feedback"] {
  background-color: rgba(70, 106, 255, 0.1);
  color: var(--ifm-color-primary) !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.navbar__items a[href="/feedback"]:hover {
  background-color: rgba(70, 106, 255, 0.2);
}

/* 暗黑模式适配 */
html[data-theme='dark'] {
  --search-local-hit-background: #2a2a3c;
  --search-local-hit-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
}

html[data-theme='dark'] .navbar__items a[href="/feedback"] {
  background-color: rgba(70, 106, 255, 0.2);
}

html[data-theme='dark'] .navbar__items a[href="/feedback"]:hover {
  background-color: rgba(70, 106, 255, 0.3);
}