#contact {
  padding: 4rem 2rem;
  background: #0b1220;
  color: #fff;
  box-sizing: border-box;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.2s;
}

#contact .container {
  max-width: 800px;
  margin: 0 auto;
}

/* 標題頭部動畫 */
#contact .header {
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 1s ease forwards;
  animation-delay: 0.5s;
}

#contact .header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

#contact .header .line {
  width: 60px;
  height: 4px;
  background: #1e88e5;
  margin: 0 auto;
  border-radius: 2px;
}

/* 卡片動畫 */
#contact .glass.card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  line-height: 1.6;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1s ease forwards;
  animation-delay: 0.9s;
}

/* 公司標題 */
#contact .glass.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* 地址與聯絡方式 */
#contact a {
  color: #1e88e5;
  text-decoration: underline;
  word-break: break-word;
}

#contact a:hover {
  text-decoration: none;
}

/* 動畫定義 */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
