/* 副本自 HaxiTAG-Nav styles/cms-footer.module.css */
.cms-footer {
  background-color: rgba(255, 255, 255, 0.6);
  color: #333;
  padding: 5% 0;
  width: 100%;
  margin-top: auto;
  margin-bottom: 0;
}

.cms-footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.cms-footer__columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin: 0 auto 20px auto;
  padding: 0;
  list-style: none;
  justify-content: center;
}

.cms-footer__column {
  min-width: 140px;
}

.cms-footer__column-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: inherit;
  font-size: 1rem;
}

.cms-footer__column-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cms-footer__column-links li {
  margin-bottom: 0.5rem;
}

.cms-footer__column-links a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9375rem;
}

.cms-footer__column-links a:hover {
  color: var(--hx-brand-primary);
}

.linkList {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style-type: none;
  padding: 0;
  margin: 0 0 20px 0;
  gap: 20px;
}

.linkList a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.linkList a:hover {
  color: var(--hx-brand-primary);
}

.cms-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.cms-footer__copyright-row {
  margin-bottom: 0.5rem;
}

.cms-footer__copyright {
  color: #666;
  text-decoration: none;
  font-size: 0.875rem;
}

.cms-footer__legal {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cms-footer__legal a {
  color: #666;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.cms-footer__legal a:hover {
  color: #333;
}

@media (max-width: 768px) {
  .cms-footer__columns {
    gap: 1.5rem 2rem;
  }

  .cms-footer__column {
    min-width: 120px;
  }

  .cms-footer__bottom {
    flex-direction: column;
    text-align: center;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  .cms-footer__legal {
    margin-top: 10px;
    justify-content: center;
    gap: 0.5rem;
    row-gap: 0.5rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .linkList {
    gap: 12px;
  }

  .linkList a,
  .cms-footer__legal a,
  .cms-footer__copyright {
    padding: 6px 8px;
    line-height: 1.4;
  }
}
