/* 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;
}
.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 {
  position: relative;
}

.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;
}
.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;
}

/* ===== 搜索无结果引导（集成在搜索下拉框内）===== */
.search-no-result-guide {
  padding: 10px 14px;
}

.search-no-result-guide .sr-guide-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e3e5e8;
  margin-bottom: 8px;
}

.search-no-result-guide .sr-guide-footer {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 8px;
}

.search-no-result-guide .sr-guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.search-no-result-guide .sr-guide-chip {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid #4b5563;
  border-radius: 16px;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.8rem;
  transition: border-color 0.2s, color 0.2s;
  background: rgba(255, 255, 255, 0.06);
}

.search-no-result-guide .sr-guide-chip:hover {
  border-color: #6b8cff;
  color: #6b8cff;
  text-decoration: none;
}

.search-no-result-guide .sr-guide-link {
  color: #6b8cff;
  text-decoration: none;
  font-weight: 500;
}

.search-no-result-guide .sr-guide-link:hover {
  text-decoration: underline;
}

/* ===== 首页快速入口 ===== */
.home-hero {
  margin: 1.5rem 0;
  text-align: center;
}

.home-hero-text {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
}

.home-hero-text kbd {
  display: inline-block;
  padding: 0.15em 0.45em;
  font-size: 0.85em;
  font-family: inherit;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #f3f4f6;
  color: #374151;
  line-height: 1.4;
}

html[data-theme='dark'] .home-hero-text {
  color: #9ca3af;
}

html[data-theme='dark'] .home-hero-text kbd {
  border-color: #4b5563;
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
}

.home-popular {
  margin: 1.5rem 0 1rem;
}

.home-popular-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.home-popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.home-popular-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none !important;
  color: #1f2937 !important;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.home-popular-card:hover {
  border-color: #466aff;
  box-shadow: 0 2px 8px rgba(70, 106, 255, 0.12);
  color: #466aff !important;
  text-decoration: none !important;
}

.home-popular-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

html[data-theme='dark'] .home-popular-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e5e7eb !important;
}

html[data-theme='dark'] .home-popular-card:hover {
  border-color: #466aff;
  color: #6b8cff !important;
}

@media (max-width: 768px) {
  .home-popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .home-popular-grid {
    grid-template-columns: 1fr;
  }
}