/* Preserve legacy footer styles on pigsty.io homepage */
.landing-footer {
  background: var(--pigsty-darker);
  padding: 80px 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pigsty-white);
  text-decoration: none;
}

.footer-logo img {
  height: 32px;
}

.footer-tagline {
  color: var(--pigsty-gray-500);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* PIGSTY 首字母配色 - 低饱和度版本 */
.footer-tagline .hl-p { color: #5a8cb8; } /* sky-700 柔和 */
.footer-tagline .hl-i { color: #7aa3c9; } /* blue-400 柔和 */
.footer-tagline .hl-g { color: #cc8a4d; } /* orange-500 柔和 */
.footer-tagline .hl-s { color: #8a8a8a; } /* gray-500 */
.footer-tagline .hl-t { color: #b85c5c; } /* red-700 柔和 */
.footer-tagline .hl-y { color: #5a9a6a; } /* green-600 柔和 */

.footer-slogan {
  color: var(--pigsty-gray-500);
  font-size: 0.9rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

/* 好数据库 - 柔和蓝色 */
.footer-slogan .hl-good {
  color: #7da8d4;
}

/* 用好 - 柔和橙色 */
.footer-slogan .hl-use {
  color: #d4a574;
}

.footer-column-title {
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--pigsty-white);
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--pigsty-gray-400);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--pigsty-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--pigsty-gray-500);
  font-size: 0.85rem;
}

.footer-copyright a,
.footer-copyright a:link,
.footer-copyright a:visited,
.footer-copyright a:active {
  color: var(--pigsty-gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-copyright a:hover {
  color: var(--pigsty-white);
  text-decoration: none;
}

.footer-icp a,
.footer-icp a:link,
.footer-icp a:visited,
.footer-icp a:active {
  color: var(--pigsty-gray-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-icp a:hover {
  color: var(--pigsty-white);
  text-decoration: none;
}

.footer-lang-switch a,
.footer-lang-switch a:link,
.footer-lang-switch a:visited,
.footer-lang-switch a:active {
  color: var(--pigsty-gray-400);
  text-decoration: none;
  margin-left: 16px;
  transition: color var(--transition-fast);
}

.footer-lang-switch a:hover {
  color: var(--pigsty-white);
  text-decoration: none;
}

@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 2;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Keep footer unchanged even when landing-theme-light is enabled */
body.landing-page.landing-theme-light .landing-footer {
  background: var(--pigsty-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.landing-page.landing-theme-light .footer-logo,
body.landing-page.landing-theme-light .footer-column-title {
  color: var(--pigsty-white);
}

body.landing-page.landing-theme-light .footer-tagline,
body.landing-page.landing-theme-light .footer-slogan,
body.landing-page.landing-theme-light .footer-links a,
body.landing-page.landing-theme-light .footer-bottom,
body.landing-page.landing-theme-light .footer-icp a,
body.landing-page.landing-theme-light .footer-copyright a,
body.landing-page.landing-theme-light .footer-lang-switch a {
  color: var(--pigsty-gray-400);
}

body.landing-page.landing-theme-light .footer-links a:hover,
body.landing-page.landing-theme-light .footer-icp a:hover,
body.landing-page.landing-theme-light .footer-copyright a:hover,
body.landing-page.landing-theme-light .footer-lang-switch a:hover {
  color: var(--pigsty-white);
}

body.landing-page.landing-theme-light .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
