/* 页脚：白底四列菜单，各公开页共用 */

.site-footer {
  margin-top: auto;
  background: var(--console-nav, var(--bg));
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px 36px;
  padding: 28px 0 16px;
  text-align: left;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 0 1 520px;
  width: 520px;
  min-width: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--ink);
}

.footer-brand .brand-mark.is-header,
.footer-brand .brand-mark.is-header .brand-mark__img,
.footer-brand .brand-mark.is-header svg {
  width: auto;
  max-width: 168px;
  height: 36px;
  object-fit: contain;
  object-position: center center;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.footer-intro {
  margin: 0;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.footer-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.footer-badges li {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
}

.footer-badges li span:first-child {
  font-weight: 700;
}

.footer-menus {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px 56px;
  min-width: 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
  min-width: 0;
}

.footer-col h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.footer-col h2 a {
  display: inline;
  width: auto;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.footer-col a,
.footer-col button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.footer-col a:hover,
.footer-col button:hover,
.footer-col a.on {
  color: var(--brand, var(--ink));
}

.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px 24px;
  min-height: 52px;
  padding: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.footer-bottom p,
.footer-bottom a {
  display: flex;
  align-items: center;
  margin: 0;
  min-height: 52px;
  line-height: 1;
}

.footer-bottom p {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
  text-align: center;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.footer-bottom a:hover {
  color: var(--ink);
}

@media (max-width: 1080px) {
  .footer-grid {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 22px 28px;
  }

  .footer-brand-block {
    flex: 1 1 100%;
    width: auto;
  }

  .footer-badges {
    flex-wrap: wrap;
  }

  .footer-menus {
    flex: 1 1 100%;
    align-items: flex-start;
  }

  .footer-col {
    flex: 1 1 calc(50% - 28px);
  }
}

@media (max-width: 640px) {
  .footer-grid {
    padding-top: 32px;
  }

  .footer-col {
    flex-basis: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 12px 0;
  }

  .footer-bottom p {
    position: static;
    transform: none;
  }

  .footer-bottom p,
  .footer-bottom a {
    min-height: 0;
  }
}
