/* 站点扩展页脚（避开 Joe 对 .joe_footer .joe_container 的 flex 覆盖） */
.joe_footer.joe_footer--site {
  display: block !important;
  width: 100%;
  border-top: none;
  overflow: visible;
}

.joe_footer__extra {
  display: block !important;
  visibility: visible !important;
  width: 100%;
  background: var(--background);
  border-top: 1px solid var(--classB);
  color: var(--minor);
  font-size: 13px;
  line-height: 1.7;
}

.joe_footer__inner {
  display: block !important;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 15px 8px;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible;
}

.joe_footer__intro {
  display: block;
  margin-bottom: 16px;
}

.joe_footer__intro-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--main);
}

.joe_footer__intro p {
  margin: 0;
  color: var(--routine);
}

.joe_footer__cols {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 32px;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--classB);
}

.joe_footer__col {
  display: block;
  min-width: 0;
}

.joe_footer__col-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--main);
}

.joe_footer__col a {
  display: block;
  margin: 5px 0;
  color: var(--minor);
  transition: color 0.25s;
}

.joe_footer__col a:hover {
  color: var(--theme);
}

.joe_footer__legal {
  display: block;
  padding: 14px 0 16px;
  font-size: 12px;
  color: var(--seat, #999);
  line-height: 1.85;
}

.joe_footer__beian {
  margin: 4px 0;
}

.joe_footer__beian a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.joe_footer__beian a:hover {
  color: var(--theme);
}

.joe_footer__beian-sep {
  margin: 0 4px;
}

.joe_footer__bar {
  border-top: 1px solid var(--classB);
}

@media (max-width: 768px) {
  html .joe_footer.joe_footer--site,
  html .joe_footer.joe_footer--site .joe_footer__extra,
  html .joe_footer.joe_footer--site .joe_footer__inner {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex-direction: unset !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow: visible !important;
  }

  html .joe_footer.joe_footer--site .joe_footer__inner {
    padding: 18px 12px 12px;
  }

  html .joe_footer.joe_footer--site .joe_footer__cols {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px 18px;
  }

  html .joe_footer.joe_footer--site .joe_footer__legal,
  html .joe_footer.joe_footer--site .joe_footer__beian {
    display: block !important;
    visibility: visible !important;
  }

  /* 避免被底部悬浮按钮挡住 */
  html .joe_footer.joe_footer--site {
    padding-bottom: 24px;
  }
}
