/* Shared plan/diagnostic footer, synced from tifo-web/index/index.html. */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 52px 0 30px;
  flex-shrink: 0;
  width: 100%;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: Manrope, "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  color: #fff;
  background: #0b0b0d;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.site-footer .footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(100px, .55fr) minmax(100px, .55fr) minmax(290px, 1fr);
  align-items: start;
  gap: 28px;
  padding-bottom: 32px;
}

.site-footer .footer-brand {
  min-width: 0;
}

.site-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.site-footer .footer-logo:hover {
  background: #fff;
  transform: translateY(-1px);
}

.site-footer .footer-logo img {
  display: block;
  width: auto;
  height: 30px;
}

.site-footer .footer-brand p {
  max-width: 330px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
  line-height: 1.75;
}

.site-footer .footer-col b {
  display: block;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.site-footer .footer-col a,
.site-footer .footer-col button,
.site-footer .footer-col span {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  line-height: 1.5;
}

.site-footer .footer-col a,
.site-footer .footer-col button {
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease-out);
}

.site-footer .footer-col a:hover,
.site-footer .footer-col button:hover,
.site-footer .footer-col a:focus-visible,
.site-footer .footer-col button:focus-visible {
  color: #fff;
}

.site-footer .footer-col a:focus-visible,
.site-footer .footer-col button:focus-visible,
.site-footer .footer-logo:focus-visible {
  outline: 2px solid rgba(255, 122, 24, 0.8);
  outline-offset: 4px;
}

.site-footer .footer-wecom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 122, 24, 0.13), transparent 46%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-footer .footer-wecom-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.site-footer .footer-col .footer-wecom-label {
  display: flex;
  align-items: center;
  gap: 7px;
  width: auto;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.site-footer .footer-col .footer-wecom-label::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ff7a18;
  box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.13);
}

.site-footer .footer-col .footer-wecom-hint {
  width: auto;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  line-height: 1.55;
}

.site-footer .footer-col .footer-wecom-code {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 12px 0 0;
  padding: 5px 8px;
  border: 1px solid rgba(255, 122, 24, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 122, 24, 0.08);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.site-footer .footer-wecom-qr {
  display: block;
  width: 98px;
  height: 98px;
  flex: 0 0 auto;
  padding: 5px;
  border-radius: 14px;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.site-footer .footer-contact-layout {
  display: block;
  width: 100%;
}

.site-footer .footer-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.34);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.site-footer .footer-bottom :is(span, a) {
  font: inherit;
}

.site-footer .footer-legal {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.site-footer .footer-icp {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer .footer-icp:hover {
  text-decoration: underline;
}

.site-footer .footer-col button {
  border: 0;
  padding: 0;
  background: none;
  font-family: inherit;
}

.site-footer .footer-contact-col {
  align-self: center;
  display: flex;
  justify-content: center;
}

.site-footer .footer-contact-layout { max-width: 320px; }

@media (max-width: 1100px) {
  .site-footer .footer-inner { padding: 0 24px; }
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .site-footer { padding: 36px 0 22px; }
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 28px; }
  .site-footer .footer-brand,
  .site-footer .footer-contact-col { grid-column: 1 / -1; }
  .site-footer .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}
