/* Shared footer — effects live here (not only in theme-glass) so they always apply */

.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 0;
  padding: 72px 0 28px;
  color: #cbd5e1;
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(167, 139, 250, 0.42), transparent 55%),
    radial-gradient(ellipse 70% 70% at 100% 100%, rgba(6, 182, 212, 0.26), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(124, 58, 237, 0.24), transparent 60%),
    linear-gradient(180deg, #4c1d95 0%, #3730a3 45%, #1e1b4b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(196, 181, 253, 0.28);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 20%,
    rgba(167, 139, 250, 0.95) 48%,
    rgba(6, 182, 212, 0.75) 72%,
    transparent 100%
  );
  opacity: 0.95;
  z-index: 2;
}

.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0%, transparent 38%),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 90%);
}

.footer-fx {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 45% 55% at 18% 15%, rgba(196, 181, 253, 0.38), transparent 60%),
    radial-gradient(ellipse 40% 50% at 82% 85%, rgba(34, 211, 238, 0.24), transparent 55%);
}

.footer-fx::before,
.footer-fx::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  will-change: transform, opacity;
}

.footer-fx::before {
  width: min(58vw, 480px);
  height: min(58vw, 480px);
  top: -22%;
  left: -8%;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.7) 0%, rgba(124, 58, 237, 0.32) 48%, transparent 72%);
  animation: footerOrbA 12s ease-in-out infinite;
}

.footer-fx::after {
  width: min(52vw, 440px);
  height: min(52vw, 440px);
  right: -10%;
  bottom: -26%;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.5) 0%, rgba(99, 102, 241, 0.26) 45%, transparent 72%);
  animation: footerOrbB 16s ease-in-out infinite;
}

@keyframes footerOrbA {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.75; }
  50% { transform: translate(14%, 20%) scale(1.18); opacity: 1; }
}

@keyframes footerOrbB {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(-16%, -14%) scale(1.2); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-fx::before,
  .footer-fx::after {
    animation: none;
  }
}

.footer > .container {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(0, 0.72fr)) minmax(200px, 1.35fr);
  gap: 0;
  margin-bottom: 44px;
  justify-content: space-between;
}

.footer-brand {
  min-width: 0;
  padding-right: 36px;
}

.footer-col:not(.footer-col-contact) {
  max-width: 132px;
}

.footer-brand-desc {
  font-size: 15px;
  line-height: 1.8;
  margin-top: 18px;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.footer-col-contact .footer-contact-list {
  margin-top: 0;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 0;
  max-width: none;
}

.footer-contact-item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
}

.footer-contact-item:hover {
  color: #fff;
  background: none;
  border: 0;
  box-shadow: none;
  transform: none;
}

.footer-contact-item:hover .footer-contact-ico,
.footer-contact-item:hover .footer-contact-label {
  color: #ddd6fe;
}

.footer-contact-item:hover strong {
  color: #fff;
}

.footer-contact-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(196, 181, 253, 0.9);
  line-height: 0;
}

.footer-contact-label {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.2;
}

.footer-contact-item strong {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
  word-break: break-all;
}

.footer-qr-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.footer-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 104px;
}

.footer-qr-img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
}

.footer-qr-label {
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 18px;
}

.footer-col a {
  display: block;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.68);
  padding: 6px 0;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.footer-bottom-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin: 0;
  text-align: center;
  line-height: 1.4;
  color: #94a3b8;
}

.footer-copy {
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.footer-bottom-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.55);
  flex-shrink: 0;
}

.footer-beian {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-beian:hover {
  color: #e2e8f0;
}

.footer-beian-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: middle;
  opacity: 0.9;
}

@media (max-width: 960px) {
  .footer {
    padding: 56px 0 24px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    margin-bottom: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand-desc {
    max-width: 100%;
    font-size: 14px;
  }

  .footer-col-title {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .footer-col a {
    font-size: 14px;
    padding: 5px 0;
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }

  .footer-brand {
    padding-right: 0;
  }

  .footer-col:not(.footer-col-contact) {
    max-width: none;
  }

  .footer-contact-list {
    max-width: none;
  }

  .footer-bottom {
    font-size: 12px;
  }

  .footer-bottom-line {
    gap: 8px;
  }

  .footer-bottom-sep {
    display: none;
  }
}

/* Glass: extra translucency so page gradient bleeds through */
html[data-theme="glass"] .footer {
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(167, 139, 250, 0.4), transparent 55%),
    radial-gradient(ellipse 70% 70% at 100% 100%, rgba(6, 182, 212, 0.24), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(124, 58, 237, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(76, 29, 149, 0.78) 0%, rgba(55, 48, 163, 0.82) 45%, rgba(30, 27, 75, 0.88) 100%) !important;
  backdrop-filter: blur(32px) saturate(170%);
  -webkit-backdrop-filter: blur(32px) saturate(170%);
}
