.site-footer {
  width: 100%;
  margin-top: 30px;
  border-top: 1px solid #dbe3ee;
  background: #f8fafc;
  color: #64748b;
}
.site-footer-inner {
  width: 100%;
  max-width: var(--footer-max-width, 1500px);
  margin: 0 auto;
  padding: 30px 20px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr);
  gap: 22px 28px;
}
.site-footer-col { min-width: 0; }
.site-footer-main { display: flex; flex-direction: column; gap: 8px; }
.site-footer-brand {
  display: inline-flex; align-items: baseline; gap: 3px;
  color: #334155; font-size: 18px; font-weight: 800;
  letter-spacing: -.045em; text-decoration: none;
  flex: 0 0 auto;
}
.site-footer-brand strong { color: #2563eb; font-weight: 900; }
.site-footer-tagline { margin: 0; color: #475569; font-size: 13px; font-weight: 700; }
.site-footer-desc { margin: 0; color: #64748b; font-size: 12px; line-height: 1.6; }
.site-footer-actions { margin-top: 4px; }

.site-footer-col h4 {
  margin: 0 0 10px;
  color: #1e293b; font-size: 12px; font-weight: 850;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.site-footer-col a,
.site-footer-col .footer-link-btn {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  border: none; background: transparent;
  color: #475569; font-size: 13px; font-weight: 600;
  text-align: left; text-decoration: none; cursor: pointer;
  line-height: 1.5;
  font-family: inherit;
}
.site-footer-col a:hover,
.site-footer-col .footer-link-btn:hover {
  color: #1d4ed8; text-decoration: underline;
}

.site-footer-guide ul {
  margin: 0; padding: 0; list-style: none;
}
.site-footer-guide li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 5px;
  color: #64748b; font-size: 12px; line-height: 1.5;
}
.site-footer-guide li::before {
  content: "•";
  position: absolute; left: 0; top: 0;
  color: #93c5fd; font-weight: bold;
}
.site-footer-guide kbd {
  display: inline-block; min-width: 16px; padding: 0 4px;
  border: 1px solid #cbd5e1; border-radius: 3px;
  background: #fff; color: #1e293b;
  font-family: ui-monospace, monospace; font-size: 10px; font-weight: 800;
  text-align: center;
}

.theme-toggle-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid #cbd5e1; border-radius: 999px;
  background: #ffffff; color: #334155;
  font: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease;
}
.theme-toggle-btn:hover { background: #f1f5f9; border-color: #93c5fd; }
.theme-toggle-icon { font-size: 14px; line-height: 1; }

.site-footer-bottom {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px 14px;
  padding-top: 14px; margin-top: 4px;
  border-top: 1px solid #e2e8f0;
  color: #94a3b8; font-size: 11px;
}
.site-footer-contact { color: #64748b; font-weight: 600; }

@media (max-width: 900px) {
  .site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
  }
  .site-footer-main { grid-column: 1 / -1; }
  .site-footer-guide { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 22px 14px;
  }
  .site-footer-bottom { flex-direction: column; align-items: flex-start; }
}
