.project-icp-footer {
  position: fixed;
  inset: auto 0 max(10px, env(safe-area-inset-bottom));
  z-index: 200;
  display: none;
  justify-content: center;
  pointer-events: none;
  font: 12px/1.5 system-ui, sans-serif;
}

body:has(.planning-auth) > .project-icp-footer[data-site^="jihua."],
body:has(#login-panel:not([hidden])) > .project-icp-footer[data-site^="baobiao."],
.project-icp-auth-required > .project-icp-footer[data-site^="fawu."],
body:has(.login-page) > .project-icp-footer[data-site^="xingzheng."],
body:has(#loginOverlay[style*="display: flex"]) > .project-icp-footer[data-site^="yanshou."],
body:has(#login-view:not([hidden])) > .project-icp-footer[data-site^="pandian."],
body:has(.login-layout) > .project-icp-footer[data-site^="qianneng."] {
  display: flex;
}

.project-icp-footer[data-site^="qianneng."] {
  position: static;
  margin: 0 auto max(10px, env(safe-area-inset-bottom));
}

@media (max-width: 420px), (max-height: 760px) {
  .project-icp-footer[data-site^="baobiao."],
  .project-icp-footer[data-site^="xingzheng."] {
    position: static;
    margin: 0 auto max(10px, env(safe-area-inset-bottom));
  }
}

.project-icp-footer a {
  padding: 6px 10px;
  border-radius: 6px;
  background: #172331;
  color: #fff;
  text-decoration: underline;
  pointer-events: auto;
}

.project-icp-footer a:focus-visible {
  outline: 2px solid #4e9bff;
  outline-offset: 2px;
}

.project-icp-auth-required {
  max-width: 36rem;
  margin: 12vh auto 4rem;
  padding: 0 1rem;
  font: 16px/1.6 system-ui, sans-serif;
}
