/* 頁腳樣式 - 萊塔資訊 */
:root {
  --footer-bg: #2c3e50;
  --footer-color: #ecf0f1;
  --footer-border: #34495e;
  --footer-link-color: #bdc3c7;
  --footer-link-hover: #ffffff;
  --footer-title-color: #ffffff;
  --footer-bottom-bg: #1a252f;
}

/* 頁腳容器 */
#main-footer {
  background: var(--footer-bg);
  color: var(--footer-color);
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 20px 0;
}

/* 頁腳內容區塊 */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* 頁腳區塊 */
.footer-section {
  padding: 0 1rem;
}

.footer-section h3 {
  color: var(--footer-title-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--footer-border);
}

/* 連結區塊 */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--footer-link-color);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: var(--footer-link-hover);
  transform: translateX(3px);
}

/* 聯絡資訊區塊 */
.footer-contact p {
  margin-bottom: 0.75rem;
  color: var(--footer-link-color);
  line-height: 1.6;
}

.footer-contact strong {
  color: var(--footer-title-color);
  font-weight: 600;
}

/* 社群媒體區塊 */
.footer-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--footer-border);
  color: var(--footer-color);
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--footer-link-hover);
  color: var(--footer-bg);
  transform: translateY(-2px);
}

/* 頁腳底部 */
.footer-bottom {
  padding: 1.5rem 20px;
  text-align: center;
  border-top: 1px solid var(--footer-border);
}

.footer-bottom p {
  margin: 0;
  color: var(--footer-link-color);
  font-size: 0.9rem;
}

/* 響應式設計 */
@media screen and (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-section {
    padding: 0;
  }

  .footer-section h3 {
    font-size: 1.1rem;
  }

  .footer-social {
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .footer-container {
    padding: 2rem 15px 0;
  }

  .footer-bottom {
    padding: 1rem 15px;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }
}

/* 載入狀態 */
.footer-loading {
  text-align: center;
  padding: 2rem;
  color: var(--footer-link-color);
}

/* 錯誤狀態 */
.footer-error {
  text-align: center;
  padding: 2rem;
  color: #e74c3c;
}

/* 動畫效果 */
.footer-section {
  animation: fadeInUp 0.6s ease forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}