/* Slim compliance footer — hub / practice pages (not in-exam) */
:root {
  --oh-hub-footer-h: 58px;
}

.oh-hub-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, var(--card) 100%);
  border-top: 1px solid var(--bd);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.dark-mode .oh-hub-footer {
  background: linear-gradient(180deg, rgba(17, 24, 32, 0.94) 0%, #111820 100%);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
}
.oh-hub-footer__accent {
  height: 2px;
  background: linear-gradient(90deg, transparent, #e31837 20%, #e31837 80%, transparent);
  opacity: 0.85;
}
.oh-hub-footer__inner {
  max-width: var(--oh-layout-max);
  width: 100%;
  margin: 0 auto;
  padding: 8px var(--oh-page-gutter) 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-sizing: border-box;
  min-height: calc(var(--oh-hub-footer-h) - 2px);
}
.oh-hub-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--tx);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: opacity var(--t, 0.15s ease);
}
.oh-hub-footer__brand:hover { opacity: 0.88; }
.oh-hub-footer__mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #fff;
  color: #e31837;
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(227, 24, 55, 0.2);
}
body.dark-mode .oh-hub-footer__mark {
  background: #fff;
  color: #e31837;
}
.oh-hub-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.68rem;
  flex: 1 1 auto;
  justify-content: center;
}
.oh-hub-footer__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.68rem;
  color: var(--tx-3);
  line-height: 1.35;
  justify-content: flex-end;
}
.oh-hub-footer__copy { white-space: nowrap; }
.oh-hub-footer__sep { opacity: 0.45; user-select: none; }
.oh-hub-footer__beian {
  color: var(--tx-3);
  text-decoration: none;
  white-space: nowrap;
}
.oh-hub-footer__beian:hover {
  color: var(--tx-2);
  text-decoration: underline;
}

/* 成绩页 #page-result 用 fixed inset 留底栏位，此处不再叠 padding */
body.oh-hub-footer-on .page.active:not(#page-result) {
  padding-bottom: var(--oh-hub-footer-h);
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .oh-hub-footer__inner {
    padding: 8px 16px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .oh-hub-footer__meta { justify-content: flex-start; }
  :root { --oh-hub-footer-h: 96px; }
}
