/* ============================================================
   Footer Styles — Foxconntech Design System v3.0
   ============================================================ */

/* ── Footer Shell ─────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(135deg, #060f1d 0%, #0c1f3a 60%, #071628 100%);
  color: var(--color-white);
  width: 100%;
  letter-spacing: var(--letter-spacing-base);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 5rem;
  box-sizing: border-box;
}

/* ── Primary Section (Logo + Contact) ─────────────────────── */
.footer-primary {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-logo {
  width: 140px;
  height: auto;
  margin: 0;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 2rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.footer-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.7;
}

/* ── Divider (Mobile Only) ────────────────────────────────── */
.footer-divider {
  display: none;
}

/* ── Secondary Section (Copyright + Links) ────────────────── */
.footer-secondary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.footer-copyright {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  white-space: nowrap;
}

.footer-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0;
  line-height: 1.5;
  position: relative;
}

.footer-links li + li::before {
  content: '';
  position: absolute;
  left: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 0.75em;
  background: rgba(255, 255, 255, 0.25);
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links li a:hover {
  color: #ffffff;
}

/* ── English Language Tweaks (Desktop) ────────────────────── */
html[lang="en"] .site-footer {
  letter-spacing: 0.06rem;
}

html[lang="en"] .footer-contact-item,
html[lang="en"] .footer-copyright,
html[lang="en"] .footer-links li a {
  font-size: 0.75rem;
  line-height: 1.5;
}

html[lang="en"] .footer-secondary {
  align-items: flex-start;
  gap: 6px;
}

html[lang="en"] .footer-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: auto;
  margin: 0;
  padding: 0;
}

html[lang="en"] .footer-links li::before {
  display: none;
}

html[lang="en"] .footer-links li {
  text-align: left;
  margin: 0;
  padding: 0;
}

html[lang="en"] .footer-links li a {
  display: block;
}


/* ── Responsive Breakpoints ──────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.5rem;
    max-width: 100%;
  }

  .footer-primary {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .footer-logo {
    width: auto;
    height: 40px;
  }

  .footer-contact {
    border-left: none;
    padding-left: 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 0.5rem;
    gap: 0.5rem;
  }

  .footer-contact-item {
    font-size: 0.9rem;
    gap: 0;
  }

  .footer-icon {
    display: none;
  }

  .footer-divider {
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin: 1rem 0;
  }

  .footer-secondary {
    align-items: stretch;
    width: 100%;
    gap: 0.5rem;
  }

  .footer-copyright {
    font-size: 0.9rem;
    white-space: normal;
    color: rgba(255, 255, 255, 0.6);
  }

  .footer-links {
    justify-content: space-between;
    width: 100%;
    padding: 0;
  }

  .footer-links li + li::before {
    display: none;
  }

  .footer-links li a {
    font-size: 0.9rem;
  }

  html[lang="en"] .footer-contact {
    flex-direction: column;
    align-items: flex-start;
  }

  html[lang="en"] .footer-contact-item {
    font-size: 0.9rem;
  }

  html[lang="en"] .footer-copyright {
    font-size: 0.9rem;
  }

  html[lang="en"] .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  html[lang="en"] .footer-links li a {
    font-size: 0.9rem;
  }
}

/* 小螢幕手機（600px 以下） */
@media (max-width: 600px) {
  .footer-inner {
    padding: 1.5rem 1rem;
  }

  .footer-contact-item,
  .footer-copyright,
  .footer-links li a {
    font-size: 12px;
  }

  html[lang="en"] .footer-contact-item,
  html[lang="en"] .footer-copyright,
  html[lang="en"] .footer-links li a {
    font-size: 12px;
  }
}