/* 剑客云 — 页脚（IBM 风格：左 Logo + 右链接栏） */
.site-footer {
  background: #161616;
  color: #f4f4f4;
  font-family: "Noto Sans SC", "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.site-footer__main {
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 5vw, 3.5rem);
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.site-footer__brand {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
  margin: 0;
}

.site-footer__brand img {
  display: block;
  height: clamp(144px, 20vw, 224px);
  width: auto;
  max-width: min(640px, 84vw);
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease;
}

.site-footer__brand:hover img,
.site-footer__brand:focus-visible img {
  opacity: 0.88;
}

.site-footer__cols {
  flex: 1 1 360px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.site-footer__heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.site-footer__links a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #c6c6c6;
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.15s, text-decoration 0.15s;
}

.site-footer__links a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__legal {
  background: #0f0f0f;
  border-top: 1px solid #393939;
  padding: 1.75rem clamp(1.25rem, 4vw, 2.5rem) 2.25rem;
  min-height: 72px;
}

.site-footer__legal-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  line-height: 1.75;
  font-size: 0.875rem;
}

.site-footer__legal-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.site-footer__legal-group a {
  font-size: 0.8125rem;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s, text-decoration 0.15s;
}

.site-footer__legal-group a:hover {
  color: #fff;
  opacity: 0.82;
  text-decoration: underline;
}

.site-footer__copy {
  font-size: 0.8125rem;
  color: #fff;
  line-height: 1.55;
}

.site-footer__legal-group--beian {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
  margin-left: auto;
  color: #fff !important;
}

.site-footer__legal-group--beian > span {
  display: block;
  line-height: 1.5;
  font-size: 0.8125rem;
  color: #fff !important;
}

.site-footer__legal-group--beian p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
  line-height: 1.5;
  color: #fff !important;
}

.site-footer__legal-group--beian p:empty {
  display: none;
}

.site-footer__legal-group--beian a,
.site-footer__legal-group--beian strong {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 400;
  color: #fff !important;
}

.site-footer__legal-group--beian a,
.site-footer__legal-group--beian span,
.site-footer__legal-group--beian span span,
.site-footer__legal-group--beian p span,
.site-footer__legal-group--beian p a {
  color: #fff !important;
}

.site-footer__legal-group--beian a {
  text-decoration: none;
  transition: opacity 0.15s;
}

.site-footer__legal-group--beian a:hover {
  opacity: 0.82;
  text-decoration: underline;
  color: #fff !important;
}

.site-footer__legal-group--beian img {
  display: inline-block !important;
  width: 16px;
  height: 16px;
  margin: 0;
  vertical-align: middle;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .site-footer__inner {
    flex-direction: column;
    gap: 2.5rem;
  }

  .site-footer__cols {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .site-footer__legal-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__legal-group--beian {
    margin-left: 0;
    width: 100%;
  }
}

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

  .site-footer__brand img {
    height: clamp(112px, 32vw, 160px);
    max-width: min(560px, 90vw);
  }
}

#footer.footer-primary {
  display: none;
}
