/* Shared footer/cta styles for index, anli, fuwu */
.cta {
  background: #0f1d88;
  padding: 10px 0 0;
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 28px 28px 0 0;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/footerbg.jpg") center / cover no-repeat;
  opacity: 1;
  z-index: 0;
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 68px 24px 64px;
  border-radius: 22px 22px 0 0;
  border: 0;
}

.cta-inner::before,
.cta-inner::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(126, 166, 255, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner::before {
  width: 560px;
  height: 560px;
  bottom: -392px;
}

.cta-inner::after {
  width: 760px;
  height: 760px;
  bottom: -548px;
  border-color: rgba(126, 166, 255, 0.16);
}

.cta-inner h2 {
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  font-size: 40px;
}

.cta-inner p {
  font-size: 16px;
  opacity: 0.88;
  margin-bottom: 28px;
}

.cta button {
  border: 1px solid rgba(214, 228, 255, 0.42);
  border-radius: 999px;
  padding: 14px 38px;
  color: #fff;
  font-size: 16px;
  margin-top: 40px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(125, 160, 255, 0.24), rgba(79, 109, 204, 0.2));
  backdrop-filter: blur(4px);
}

.footer-float {
  position: absolute;
  width: 186px;
  opacity: 0.94;
  z-index: 1;
  --rot: 0deg;
  animation: floatBob 5.4s ease-in-out infinite;
}

.f1 { left: 0; top: 52px; animation-delay: 0s; --rot: -12deg; }
.f2 { left: 0; top: 174px; animation-delay: 0.8s; --rot: 8deg; width: 212px; }
.f3 { right: 5.4%; top: 88px; animation-delay: 0.4s; --rot: -10deg; width: 228px; }
.f4 { right: -1.8%; top: 70px; animation-delay: 1.2s; --rot: 8deg; }
.f5 { right: -1.6%; top: 204px; animation-delay: 0.95s; --rot: -6deg; width: 176px; }

@keyframes floatBob {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--rot)); }
  50% { transform: translate3d(0, -10px, 0) rotate(var(--rot)); }
}

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: -18px;
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: end;
  gap: 40px;
  background: transparent;
  position: relative;
  z-index: 3;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  background: transparent;
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 6px;
  color: rgba(221, 236, 255, 0.96);
}

.footer-col p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(200, 220, 255, 0.84);
  background: transparent;
  margin:0;
}

.footer-col p a,
.footer-col h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s ease;
}

.footer-col p a:hover {
  color: #9fd4ff;
}

.cta .footer-col h4 a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 12px;
  padding: 12px 72px 10px;
  border-top: 1px solid rgba(166, 192, 255, 0.18);
  gap: 16px;
  font-size: 12px;
  color: rgba(186, 204, 246, 0.86);
  background: rgba(4, 22, 116, 0.92);
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .cta-inner h2 { font-size: 26px; }
  .footer-float { display: none }
  .site-footer { text-align: left; }
  .cta > .container,
  .site-footer > .container,
  .footer-bottom .container {
    width: min(1200px, calc(100% - 28px)) !important;
    margin: 0 auto !important;
  }
  .cta-inner p{
    font-size: 14px;
  }
  .footer-top { grid-template-columns: 1fr; gap: 12px; }
  .footer-columns { grid-template-columns: 1fr; gap: 12px; }
  .site-footer .logo img { width: 90px; margin: 0; }
  .footer-col h4 { font-size: 14px; margin:0; }
  .footer-col p { font-size: 14px; line-height: 1.55;margin:0; }
  .footer-bottom { display: grid; gap: 6px; padding: 10px 0 8px; width: 100vw; }
  .footer-bottom .container { display: grid; gap: 6px; }
  .cta-inner{
    padding:20px 0;
  }
  .cta button{
    margin-top: 0;
  }
}
