body,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.img-fist {
  position: fixed;
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: rgb(33, 43, 82);
}

.img-fist img {
  width: auto;
  height: 80px;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

img {
  border: none;
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

a {
  display: block;
  width: 100%;
}

.last-section {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: auto;
  flex-direction: row; /* 預設在電腦上是水平排列 */
}

.first-i {
  padding-top: 100px;
}

@media screen and (max-width: 768px) {
  /* 手機螢幕 */
  .last-section {
    flex-direction: column; /* 在小螢幕上改成垂直排列 */
  }

  .first-i {
    padding-top: 50px;
  }
}



.image-container,
.text-container {
  flex: 1;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-container {
  padding: 24px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  line-height: 40px;
}

.line_id {
  flex: 1;
}

.contact-social {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 64px 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  max-width: 1200px;
  margin: auto;
}

.contact-info {
  text-align: left;
  font-size: 14px;
}

.contact-info a {
  color: #64615c;
  text-decoration: none;
}

.contact-info h5 {
  color: #64615c;
}

.social-links {
  flex: 1 1 100%;
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  max-width: 48%;
}

.social-logo {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.social-logo:hover {
  transform: scale(1.1);
}

.text-container-div {
  display: inline-block;
  text-align: center;
  margin-bottom: 20px;
  line-height: 2;
  max-width: 100%;
  font-size: 1rem;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f3f4f5;
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.back-to-top:hover {
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px 12px;
  font-size: 14px;
  color: #a8a8a8;
  max-width: 1200px;
  margin: auto;
  flex-direction: row; /* 預設為水平排列 */
}

@media screen and (max-width: 768px) {
  /* 手機螢幕 */
  .footer {
    flex-direction: column; /* 改為垂直排列 */
    align-items: center; /* 垂直排列時靠左對齊 */
    gap: 12px; /* 添加子元素間距，提升可讀性 */
  }
  .contact-info h5 {
 
  }
  .contact-social {
    padding: 24px 12px;
  }
  .contact-social h4 {
    font-weight: normal;
    margin-bottom: 32px;
    margin-top: 8px;
  }
  .img-fist {
    height: 50px;
  }
}

.footer-right {
  text-align: right;
}

.footer-right span {
  color: #64615c;
}
