.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  margin: 20px 0 24px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 14px;
  background: rgba(248, 253, 252, .58);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  box-shadow: 0 8px 32px rgba(25, 60, 70, .08), inset 0 1px 0 rgba(255, 255, 255, .3);
}
html[data-theme="dark"] .site-footer {
  background: rgba(18, 30, 44, .52);
  border-color: rgba(178, 210, 232, .18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(220, 237, 255, .05);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-footer { background: rgba(248, 253, 252, .9); }
  html[data-theme="dark"] .site-footer { background: rgba(18, 30, 44, .9); }
}
.footer-info { min-width: 0; font-size: 11px; }
.footer-submit h2 { margin: 0 0 10px; color: var(--ink); font-size: 18px; font-weight: 600; }
.footer-submit p { max-width: 420px; margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.submit-tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #bedbe6;
  border-radius: 12px;
  background: #edf7fb;
  color: #187797;
  font-size: 14px;
  font-weight: 600;
  transition: background .18s, border-color .18s;
}
.submit-tool-link:hover { background: #deeff7; border-color: #8bbfce; }
.submit-tool-link svg { width: 20px; height: 20px; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-bookmark { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 10px 0 4px; color: var(--green); font-size: 12px; }
.footer-bookmark span { margin-left: 5px; }
.footer-bookmark kbd { padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); font: inherit; }
html[data-theme="dark"] .submit-tool-link { color: #66d7ff; background: #192b35; border-color: #2d5362; }
html[data-theme="dark"] .submit-tool-link:hover { background: #223b48; border-color: #4b8195; }
.footer-qr { max-width: 100%; }
#open-qr { display: block; padding: 0; max-width: 100%; border-radius: 8px; cursor: zoom-in; }
#qr-dialog { width: min(800px, calc(100% - 30px)); padding: 20px; }
#qr-dialog-title { margin: 0; font-size: 16px; }
#qr-dialog-image { display: block; width: 100%; height: auto; max-height: 65vh; object-fit: contain; background: white; margin-top: 16px; border-radius: 8px; }
#qr-image-status { color: var(--muted); font-size: 13px; }
html:has(#qr-dialog[open]) { overflow: hidden; }
.site-icon { position: relative; }
.resource-favicon { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.footer-legal {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  color: var(--ink);
}
.footer-legal a { color: inherit; text-decoration: none; }
html[data-theme="dark"] .footer-legal { color: #fff; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: red; }
@media (max-width: 980px) {
  .site-footer { grid-template-columns: 1fr; justify-items: center; gap: 24px; padding: 24px 18px; }
  .footer-info { text-align: center; align-items: center; }
  .footer-bookmark { justify-content: center; }
}
