/* 頁腳樣式 - 聯合通科技股份有限公司 */

/* 主要頁腳容器 */
.site-footer {
  background-color: #222;
  color: #f5f5f5;
  padding: 60px 0 30px;
  font-size: 14px;
  line-height: 1.6;
}

/* 容器設定 - 確保與頁首一致 */
.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 頁腳頂部區域 */
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 30px;
  margin-bottom: 40px;
}

/* 公司簡介區塊 */
.footer-info {
  grid-column: span 1;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo-img {
  max-width: 180px;
  height: auto;
}

.company-intro {
  margin-top: 15px;
  color: #ccc;
  line-height: 1.6;
}

/* 頁腳標題 */
.footer-heading {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #0066cc; /* 與頁首主題色一致 */
}

/* 聯絡資訊區塊 */
.footer-contact {
  grid-column: span 1;
}

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

.contact-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
}

.contact-list li i {
  color: #0066cc;
  margin-right: 10px;
  margin-top: 4px;
  min-width: 16px; /* 確保對齊 */
}

.contact-list li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-list li a:hover {
  color: #fff;
}

/* 快速連結區塊 */
.footer-links {
  grid-column: span 1;
}

/* 多欄快速連結容器 */


.quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 2; /* 將列表分割成兩欄 */
  column-gap: 40px; /* 設定欄位間的間距 */
}

.quick-links li {
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.quick-links li:hover {
  transform: translateX(5px);
}

.quick-links li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.quick-links li a i {
  color: #0066cc;
  margin-right: 8px;
  font-size: 12px;
}

.quick-links li a:hover {
  color: #fff;
}

/* 社群連結和電子報區塊 */
.footer-social {
  grid-column: span 1;
}

/* 電子報訂閱 */
.newsletter {
  margin-bottom: 20px;
}

.newsletter p {
  margin-bottom: 10px;
  color: #ccc;
}

.newsletter-form {
  display: flex;
  margin-bottom: 25px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 10px 15px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 4px 0 0 4px;
}

.newsletter-form input[type="email"]::placeholder {
  color: #aaa;
}

.newsletter-form button {
  padding: 10px 15px;
  background-color: #0066cc;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #0055aa;
}

/* 社群媒體連結 */
.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link i {
  font-size: 18px;
}

/* 為不同社群媒體設置獨特的懸停顏色 */
.social-link:hover {
  transform: translateY(-3px);
}

.social-link.line:hover {
  background-color: #06c755;
}

.social-link.facebook:hover {
  background-color: #3b5998;
}

.social-link.linkedin:hover {
  background-color: #0077b5;
}

.social-link.youtube:hover {
  background-color: #ff0000;
}

/* 頁腳底部區域 */
.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  margin-top: 20px;
  width: 100%;
  background-color: #1a1a1a; /* 稍微深一點的背景色 */
  padding: 15px 0;
}

.copyright-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.copyright {
  font-size: 13px;
  color: #aaa;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.footer-nav ul li a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
  color: #fff;
}

/* 響應式設計 */
@media (max-width: 991px) {
  .footer-top {
    grid-template-columns: 1fr 1fr; /* 在平板上改為兩欄 */
  }
  
  .footer-info, .footer-contact {
    grid-column: span 1;
  }
  
  .footer-links {
    grid-column: span 2; /* 讓快速連結區域佔據兩欄 */
    margin-top: 20px; /* 增加上方間距 */
  }
}

@media (max-width: 767px) {
  .footer-top {
    grid-template-columns: 1fr; /* 在手機上改為單欄 */
    gap: 40px;
  }
  
  .footer-links {
    grid-column: span 1; /* 在手機上恢復為單欄 */
  }
  
  .quick-links {
    column-count: 1; /* 在手機上恢復為單欄佈局 */
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input[type="email"] {
    border-radius: 4px;
    margin-bottom: 10px;
  }
  
  .newsletter-form button {
    border-radius: 4px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .copyright-nav-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .footer-nav ul {
    justify-content: center;
  }
}
