/**
 * UE + 腾讯云风格页脚（白底）
 * 必须压过 style.css / saas-shell.css 的深色 .footer 规则
 */
.footer.ue-footer,
body .footer.ue-footer {
  background: #fff !important;
  color: #334155 !important;
  border-top: 1px solid #eef2f7;
  padding: 0 !important;
  margin-top: 0;
}

body .footer.ue-footer a {
  color: #64748b;
}

body .footer.ue-footer a:hover {
  color: #0052d9;
}

body .footer.ue-footer h4,
body .footer.ue-footer .ue-footer-col h4 {
  color: #0b1220 !important;
}

body .footer.ue-footer ul li a,
body .footer.ue-footer .ue-footer-col a {
  color: #64748b !important;
  font-size: 13px;
}

body .footer.ue-footer ul li a:hover,
body .footer.ue-footer .ue-footer-col a:hover {
  color: #0052d9 !important;
}

body .footer.ue-footer .footer-compliance,
body .footer.ue-footer .footer-compliance p {
  color: #64748b !important;
  opacity: 1 !important;
}

.ue-footer-services {
  border-bottom: 1px solid #eef2f7;
  background: #fafbfc;
}

.ue-footer-services-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ue-footer-service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #475569;
}

.ue-footer-service-item i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eaf2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ue-footer-service-item i svg {
  width: 14px;
  height: 14px;
  stroke: #0052d9;
  fill: none;
}

.ue-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.ue-footer-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
}

.ue-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.ue-footer-brand img {
  height: 36px;
  width: auto;
}

.ue-footer-brand strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0b1220;
}

.ue-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ue-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e6edf6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ue-footer-social a:hover {
  border-color: #0052d9;
  color: #0052d9;
  background: #f8fafc;
}

.ue-footer-social svg {
  width: 16px;
  height: 16px;
}

.ue-footer-divider {
  border: 0;
  border-top: 1px solid #eef2f7;
  margin: 0 0 32px;
}

.ue-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 32px 40px;
  align-items: start;
}

.ue-footer-columns {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 20px;
  min-width: 0;
}

.ue-footer-col h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: #0b1220;
}

.ue-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ue-footer-col li + li {
  margin-top: 10px;
}

.ue-footer-col a {
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}

.ue-footer-col a:hover {
  color: #0052d9;
}

.ue-footer-contact {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e6edf6;
  background: #fafbfc;
}

.ue-footer-contact h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #0b1220;
}

.ue-footer-contact-lead {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

.ue-footer-qr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.ue-footer-qr {
  width: 108px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef2f7;
  text-align: center;
}

.ue-footer-qr img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
  border-radius: 6px;
}

.ue-footer-qr span {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}

.ue-footer-phone {
  margin: 0 0 14px;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

.ue-footer-contact .ue-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: #0052d9;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.ue-footer-contact .ue-footer-cta:hover {
  background: #0046c0;
}

.ue-footer-compliance {
  margin-top: 0;
  padding-top: 24px;
  border-top: 1px solid #eef2f7;
  display: block !important;
  grid-template-columns: 1fr !important;
}

.ue-footer-compliance .footer-qr-wrap {
  display: none !important;
}

.ue-footer-compliance .footer-safe-badges {
  margin-bottom: 12px;
}

.ue-footer-compliance .footer-badge,
body .footer.ue-footer .footer-badge {
  background: #f8fafc !important;
  border-color: #e6edf6 !important;
  color: #475569 !important;
}

.ue-footer-compliance .footer-badge[href*="beian"],
body .footer.ue-footer .footer-badge[href*="beian"] {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

.ue-footer-compliance .footer-badge[data-ac-license-open],
body .footer.ue-footer .footer-badge[data-ac-license-open] {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1d4ed8 !important;
}

.ue-footer-inner-tail {
  padding-top: 0;
  padding-bottom: 32px;
}

.ue-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eef2f7;
}

body .footer.ue-footer .ue-footer-legal-links a {
  color: #64748b !important;
  font-size: 13px;
  text-decoration: none;
}

body .footer.ue-footer .ue-footer-legal-links a:hover {
  color: #0052d9 !important;
}

.ue-footer-copy {
  margin: 0;
  font-size: 12px;
  color: #94a3b8 !important;
  line-height: 1.7;
  max-width: 640px;
}

.ue-footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.ue-footer-legal-links a {
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
}

.ue-footer-legal-links a:hover {
  color: #0052d9;
}

.ue-footer-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #334155 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.ue-footer-top-btn:hover {
  border-color: #0052d9;
  color: #0052d9 !important;
}

.ue-footer-top-btn svg {
  width: 18px;
  height: 18px;
}

.ue-footer-compliance-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
}

.ue-footer-compliance-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #94a3b8 !important;
  opacity: 1 !important;
}

.footer-safe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  line-height: 0;
}

.ue-footer-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: 115px;
  min-height: 40px;
  padding: 5px;
  margin: 0;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 2px;
  vertical-align: middle;
  text-decoration: none;
  color: #888;
  font-size: 12px;
  line-height: 1.25;
  box-sizing: content-box;
  cursor: pointer;
  text-align: left;
}

.ue-footer-badge-chip img {
  float: left;
  height: 40px;
  width: auto;
  margin-right: 5px;
  display: block;
  flex-shrink: 0;
}

.ue-footer-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e6edf6;
  background: #f8fafc;
  font-size: 12px;
  color: #475569;
  text-decoration: none;
  cursor: default;
}

a.footer-badge,
button.footer-badge {
  cursor: pointer;
}

.footer-badge--icp {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

.footer-badge--police {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
}

.footer-badge--license {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1d4ed8 !important;
}

.footer-badge--warn {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #c2410c !important;
}

.footer:not(.ue-footer) .footer-badge {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.45);
  color: inherit;
}

.footer:not(.ue-footer) .footer-badge--icp {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.12);
}

.footer:not(.ue-footer) .footer-badge--police {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(34, 197, 94, 0.12);
}

.footer:not(.ue-footer) .footer-badge--license {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 165, 233, 0.15);
}

.footer:not(.ue-footer) .footer-badge--warn {
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(244, 63, 94, 0.12);
}

body.ue-spotlight-page .footer.ue-footer {
  background: #fff !important;
  margin-top: 0 !important;
}

@media (max-width: 1100px) {
  .ue-footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ue-footer-main {
    grid-template-columns: 1fr;
  }
  .ue-footer-services-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ue-footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ue-footer-services-inner {
    grid-template-columns: 1fr;
  }
  .ue-footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}
