/* 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 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;
}
/* 帮助文档卡片背景 */
.cardContainer {
  background-color: #e6f0ff !important;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.cardContainer:hover {
  background-color: #cce0ff !important;
  box-shadow: 0 4px 12px rgba(70, 106, 255, 0.15);
}
/* 阅读进度条 */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(70, 106, 255, 0.1);
  z-index: 9999;
}

.reading-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #466aff, #6b8cff);
  transition: width 0.15s ease-out;
}

/* 侧边栏完成标记 */
.sidebar-completed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background-color: #22c55e;
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  flex-shrink: 0;
}

/* 进度面板 */
.progress-panel {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 16px;
  border-radius: 12px;
  color: white;
  margin-bottom: 16px;
}

.progress-panel__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.progress-panel__bar {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-panel__fill {
  height: 100%;
  background-color: #22c55e;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-panel__text {
  font-size: 12px;
  opacity: 0.9;
}
/* ===== 文档投票组件样式 ===== */
.vote-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
  padding: 1.5rem 0 0.5rem 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--ifm-toc-border-color);
}

.vote-label {
  font-weight: 500;
  color: var(--ifm-color-emphasis-600);
  font-size: 0.95rem;
  white-space: nowrap;
}

.vote-buttons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border: none;
  border-radius: 20px;
  background: var(--ifm-color-emphasis-100);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  user-select: none;
  outline: none;
}

.vote-btn:hover {
  background: var(--ifm-color-emphasis-200);
  transform: scale(1.05);
}

.vote-btn:active {
  transform: scale(0.97);
}

.vote-emoji {
  font-size: 1.25rem;
  line-height: 1;
}

.vote-count {
  color: var(--ifm-color-emphasis-700);
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 1ch;
  text-align: center;
}

/* 👍 高亮状态 */
.vote-btn-active-up {
  background: #e6f0ff;
  box-shadow: 0 0 0 2px rgba(70, 106, 255, 0.25);
}

.vote-btn-active-up:hover {
  background: #d6e4ff;
}

.vote-btn-active-up .vote-count {
  color: #466aff;
}

/* 👎 高亮状态 */
.vote-btn-active-down {
  background: #fff0e6;
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.25);
}

.vote-btn-active-down:hover {
  background: #ffe4d0;
}

.vote-btn-active-down .vote-count {
  color: #ff6600;
}

/* 暗色模式适配 */
html[data-theme='dark'] .vote-btn {
  background: var(--ifm-color-emphasis-200);
}

html[data-theme='dark'] .vote-btn:hover {
  background: var(--ifm-color-emphasis-300);
}

html[data-theme='dark'] .vote-count {
  color: var(--ifm-color-emphasis-600);
}

html[data-theme='dark'] .vote-btn-active-up {
  background: rgba(70, 106, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(70, 106, 255, 0.35);
}

html[data-theme='dark'] .vote-btn-active-up:hover {
  background: rgba(70, 106, 255, 0.3);
}

html[data-theme='dark'] .vote-btn-active-up .vote-count {
  color: #8aa3ff;
}

html[data-theme='dark'] .vote-btn-active-down {
  background: rgba(255, 102, 0, 0.15);
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.3);
}

html[data-theme='dark'] .vote-btn-active-down:hover {
  background: rgba(255, 102, 0, 0.25);
}

html[data-theme='dark'] .vote-btn-active-down .vote-count {
  color: #ff9944;
}

/* 学习进度提示框样式 */
.progress-notice {
  margin: 24px 0;
}

.progress-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 20px;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 170, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.progress-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 170, 0.4);
}

.progress-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.progress-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-content p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.95;
}

.progress-bar {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
  border-radius: 4px;
  width: 0%;
  transition: width 0.5s ease-in-out;
}

.progress-stats {
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.progress-stat {
  text-align: center;
}

.progress-stat span {
  font-size: 0.9rem;
  opacity: 0.95;
  display: block;
}

.progress-stat strong {
  font-size: 1.3rem;
  font-weight: 700;
}

/* 深色模式适配 */
html[data-theme='dark'] .progress-card {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .progress-fill {
  background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .progress-card {
    padding: 15px;
  }

  .progress-header h3 {
    font-size: 1rem;
  }

  .progress-stats {
    padding: 8px 0;
  }

  .progress-stat span {
    font-size: 0.8rem;
  }

  .progress-stat strong {
    font-size: 1.1rem;
  }
}
