/* public/css/footer.css - 修正版本，完全匹配 React FooterStyles + 優化響應式 */

/* Footer 容器 - 對應 FooterContainer */
.footer-container {
  background-color: #b8272e;
  color: #ffffff;
  padding: 3rem 10rem 2rem 10rem;
  display: flex;
  flex-direction: column;
}

/* Footer 主要內容區域 - 對應 React 的 Container */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

/* 公司資訊區域 - 40% 寬度 */
.company-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 40%;
}

/* Footer Logo - 對應 ImageContainer */
.footer-logo {
  position: relative;
  width: 15rem;
  height: 5rem;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 公司詳細資訊 */
.company-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}

/* Footer 段落 - 對應 FooterParagraph */
.footer-paragraph {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer 連結 - 對應 FooterLink */
.footer-link {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: inherit;
  text-decoration: none;
  display: block;
}

.footer-link:hover {
  text-decoration: underline;
}

/* 導航區域 - 40% 寬度，space-around 分佈 */
.navigation-section {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  width: 40%;
}

/* Footer 欄位 - 對應每個導航列 */
.footer-column {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
}

/* 欄位標題 - 對應 ColumnTitle */
.column-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin-right: 1rem;
  display: inline-block;
}

/* 垂直字母 - 對應 VerticalLetter */
.vertical-letter {
  display: block;
  line-height: 1.2;
  text-align: center;
}

/* 第一個字母是黑色 - 對應 &:first-child */
.vertical-letter.black {
  color: black;
}

/* 導航列表 - 對應 NavList */
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 導航項目 - 對應 NavItem */
.nav-items {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* 導航連結 - 對應 NavLink */
.nav-links {
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: 0%;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-links:hover {
  opacity: 0.8;
}

/* 下載區域 - 20% 寬度 */
.download-section {
  width: 20%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 200px;
}

/* 下載按鈕 - 對應 DownloadButton，重置 a 標籤預設樣式 */
.download-button {
  background-color: #ffffff;
  color: #b8272e;
  padding: 1rem 1.5rem;
  border-radius: 31px;
  text-decoration: none;
  box-shadow: 0px 0px 10px 0px #00000040;
  display: inline-block;
  transition: all 0.3s ease;

  /* 重置 a 標籤的預設樣式 */
  border: none;
  outline: none;
  cursor: pointer;
}

.download-button:hover {
  background-color: #f0f0f0f2;
  text-decoration: none; /* 確保 hover 時不會有底線 */
  transform: translateY(-2px);
  box-shadow: 0px 2px 15px 0px #00000060;
}

.download-button:focus {
  outline: 2px solid #b8272e;
  outline-offset: 2px;
}

.download-button:active {
  background-color: #e0e0e0;
  transform: translateY(0);
}

/* 版權聲明 */
.footer-copyright {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* 響應式設計 */
@media (max-width: 1200px) {
  .footer-container {
    padding: 2rem 5rem 1.5rem 5rem;
  }

  .footer-logo {
    width: 12rem;
    height: 4rem;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 2rem 2rem 1.5rem 2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 3rem;
    align-items: center;
  }

  .company-info {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .company-details {
    align-items: center;
    margin-top: 1rem;
  }

  .footer-paragraph,
  .footer-link {
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .navigation-section {
    width: 100%;
    justify-content: space-around;
    gap: 2rem;
  }

  .download-section {
    width: 100%;
    justify-content: center;
    min-height: auto;
  }

  .footer-logo {
    width: 10rem;
    height: 3rem;
  }

  .download-button {
    width: fit-content;
    min-width: 200px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 1.5rem 1rem;
  }

  .footer-content {
    gap: 2.5rem;
  }

  .company-info {
    width: 100%;
  }

  .company-details {
    width: 100%;
  }

  .footer-paragraph,
  .footer-link {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
  }

  .navigation-section {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .footer-column {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .column-title {
    margin-right: 0;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: row;
    gap: 0.2rem;
    justify-content: center;
  }

  .vertical-letter {
    display: inline;
    line-height: normal;
  }

  .nav-list {
    text-align: center;
    width: 100%;
  }

  .nav-items {
    margin-bottom: 0.4rem;
  }

  .nav-links {
    font-size: 1rem;
    line-height: 1.4;
  }

  .download-button {
    width: 100%;
    max-width: 250px;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
  }

  .footer-logo {
    width: 8rem;
    height: 2.5rem;
  }

  .footer-copyright {
    font-size: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }
}

/* 極小螢幕優化 */
@media (max-width: 320px) {
  .footer-container {
    padding: 1rem 0.5rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .footer-paragraph,
  .footer-link {
    font-size: 0.8rem;
  }

  .nav-links {
    font-size: 0.9rem;
  }

  .download-button {
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
  }

  .footer-logo {
    width: 7rem;
    height: 2rem;
  }
}

/* 平板橫向模式優化 */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .footer-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .company-info {
    width: 35%;
    text-align: left;
    align-items: flex-start;
  }

  .navigation-section {
    width: 45%;
    justify-content: space-between;
  }

  .download-section {
    width: 20%;
    justify-content: flex-end;
  }
}

/* 改善觸控體驗 */
/* @media (hover: none) and (pointer: coarse) {
  .footer-link,
  .nav-links {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.4rem;
  }

  .download-button {
    min-height: 44px;
    padding: 1rem 1.5rem;
  }

  .footer-link:hover,
  .nav-links:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
  }
} */