/* 与 kylin-ipfast-platform-ui HomeV3/homeFooter.vue 对齐 */

.footer-tech {
  position: relative;
  background-color: #0a0f1a;
  color: #ffffff;
  overflow: hidden;
  z-index: 1;
  padding-bottom: 2.5rem;
}

.footer-bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.footer-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 100, 207, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 100, 207, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: footer-grid-move 20s linear infinite;
}

.footer-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at top left, rgba(0, 100, 207, 0.1) 0%, transparent 50%),
    radial-gradient(circle at bottom right, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
}

@keyframes footer-grid-move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, 20px);
  }
}

.advertisement {
  padding: 4rem 0;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(0, 100, 207, 0.2);
  overflow: hidden;
}

.advertisement::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 100, 207, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: footer-pulse 3s ease-in-out infinite;
}

@keyframes footer-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.5;
  }
}

.ad-title {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.ad-title-text {
  font-size: 2.25rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.125rem;
  background: linear-gradient(135deg, #ffffff 0%, #e6f0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.ad-title-text::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0064cf, transparent);
  animation: footer-line-grow 2s ease-in-out infinite;
}

@keyframes footer-line-grow {
  0%,
  100% {
    width: 80px;
    opacity: 0.5;
  }
  50% {
    width: 120px;
    opacity: 1;
  }
}

.ad-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #0064cf 0%, #007bff 100%);
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 100, 207, 0.3);
  overflow: hidden;
  border: none;
}

.ad-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.ad-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 100, 207, 0.4);
  background: linear-gradient(135deg, #0056b3 0%, #0064cf 100%);
  color: #ffffff !important;
}

.ad-btn:hover::before {
  opacity: 1;
  animation: footer-shimmer 1.5s ease;
}

.ad-btn-icon {
  margin-left: 0.5rem;
  transition: all 0.3s ease;
}

.ad-btn:hover .ad-btn-icon {
  transform: translateX(3px);
}

@keyframes footer-shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.footer-about {
  position: relative;
}

.footer-logo-container {
  position: relative;
  display: inline-block;
}

.footer-logo {
  height: 2.75rem;
  position: relative;
  z-index: 2;
}

.footer-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 100, 207, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: footer-logo-glow 3s ease-in-out infinite;
}

@keyframes footer-logo-glow {
  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.footer-tech .footer-about-text {
  line-height: 1.8;
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: #a0a8b7;
  position: relative;
  z-index: 2;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-item {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(0, 100, 207, 0.1);
  border: 1px solid rgba(0, 100, 207, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0064cf;
  transition: all 0.3s ease;
  cursor: default;
}

.footer-social-item:hover {
  background: rgba(0, 100, 207, 0.2);
  border-color: #0064cf;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 100, 207, 0.3);
  color: #ffffff;
}

.footer-link-col {
  position: relative;
}

.footer-link-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-tech .footer-plan-heading-link {
  color: #ffffff;
  text-decoration: none;
}

.footer-tech .footer-plan-heading-link:hover {
  color: #e6f0ff;
}

.footer-link-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #0064cf, transparent);
}

.footer-item {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 400;
  color: #a0a8b7;
  font-size: 0.9375rem;
  line-height: 1.8;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
}

.footer-item::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 0;
  color: #0064cf;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-10px);
}

.footer-item:hover {
  color: #ffffff;
  padding-left: 20px;
}

.footer-item:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-tech .row.mt-12 {
  margin-top: 3rem;
}

.payment-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}

.payment-label {
  font-size: 0.9375rem;
  color: #a0a8b7;
  font-weight: 500;
}

.payment-icon-container {
  position: relative;
}

.payment-icon {
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
  z-index: 2;
  object-fit: contain;
}

/* 与 UI 中 alipay.png 占位一致；若放入 /static/images/pay/alipay.png 可改回 <img> */
.payment-icon-alipay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #1677ff;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  font-family: system-ui, "Segoe UI", sans-serif;
}

.payment-icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 100, 207, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: footer-icon-glow 2s ease-in-out infinite;
}

@keyframes footer-icon-glow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.footer-policy-divider {
  margin: 0 10px;
  color: #6c757d;
}

.bottom-icp {
  font-size: 0.875rem;
  color: #6c757d;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(0, 100, 207, 0.1);
  margin-top: 2rem;
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 100%;
}

.bottom-icp-click {
  cursor: pointer;
  color: #0064cf;
  transition: color 0.3s ease;
  text-decoration: none;
  margin-left: 0.25rem;
}

.bottom-icp-click:hover {
  color: #007bff;
  text-decoration: underline !important;
}

.footer-policy-inline a {
  color: #0064cf;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-policy-inline a:hover {
  color: #007bff;
  text-decoration: underline;
}

@media (max-width: 991px) {
  .advertisement {
    padding: 3rem 0;
  }

  .ad-title-text {
    font-size: 1.75rem;
  }

  .payment-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .footer-link-col {
    margin-bottom: 2rem;
  }

  .ad-title-text {
    font-size: 1.5rem;
  }

  .bottom-icp {
    flex-direction: column;
    gap: 8px;
  }
}
