* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background: #f8f9fa;
  padding: 20px 0;
}

/* 主容器 */
.main-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* 內容卡片 */
.content-card {
  position: relative;
  max-width: 800px;
  width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3; /* 保持圖片比例 */
  margin-bottom: 30px;
}

/* 桌面版背景圖 */
.content-card {
  background-image: url('error_page_bg.png');
}

/* 內容區域 - 放在圖片的空白處 */
.content-overlay {
  position: absolute;
  left: 15%;
  top: 45%;
  transform: translateY(-50%);
  max-width: 400px;
  width: 50%;
  padding: 40px;
  text-align: left;
  z-index: 2;
}

/* LOGO 樣式 */
.logo {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2D3748;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #68D591, #4FD1C7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* 文案樣式 */
.description {
  font-size: 2rem;
  font-weight: bold;
  color: #5c3a93;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* 聯絡資訊樣式 */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: #ea5504;
  font-weight: 600;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-label {
  font-weight: 600;
  margin-right: 8px;
}


/* 手機版圖標樣式 */
.contact-icon {
  display: none;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  fill: #ea5504;
}

/* 底部提示文案樣式 */
.bottom-notice {
  max-width: 800px;
  width: 100%;
  padding: 0px 40px;
  text-align: center;
  color: #6B7280;
  font-size: 0.9rem;
  line-height: 1.6;
}

.bottom-notice p {
  margin-bottom: 8px;
}

.bottom-notice p:last-child {
  margin-bottom: 10px;
}
/* 手機版樣式 */
@media (max-width: 768px) {
  .content-card {
      background-image: url('error_page_bg_mo.png');
      aspect-ratio: 2/3; /* 手機版圖片比例 */
      max-width: 400px;
      margin-bottom: 20px;
  }

  .content-overlay {
      position: absolute;
      left: 50%;
      top: 30%;
      transform: translateX(-50%);
      max-width: 280px;
      width: 70%;
      padding: 25px;
      text-align: center;
  }

  .logo {
      font-size: 1.8rem;
      margin-bottom: 15px;
  }

  .description {
      font-size: 1rem;
      margin-bottom: 20px;
  }

  /* 手機版顯示圖標，隱藏文字標籤 */
  .contact-icon {
      display: inline-block;
  }

  .contact-label {
      display: none;
  }

  .contact-info {
      flex-direction: column;
      align-items: center;
      gap: 15px;
  }

  .contact-item {
      justify-content: center;
      font-size: 0.9rem;
  }

  .bottom-notice {
      max-width: 350px;
      padding: 0px 20px;
      font-size: 0.8rem;
  }
}

/* 平板版樣式 */
@media (min-width: 769px) and (max-width: 1024px) {
  .content-card {
      max-width: 600px;
  }

  .content-overlay {
      max-width: 320px;
      padding: 10px;
  }

  .logo {
      font-size: 2.2rem;
  }

  .description {
      font-size: 1.5rem;
  }
}

/* 小手機版樣式 */
@media (max-width: 480px) {
  .main-container {
      padding: 10px;
  }

  .content-card {
      max-width: 320px;
      margin-bottom: 15px;
  }

  .content-overlay {
      max-width: 240px;
      width: 65%;
      padding: 20px;
      top: 30%;
  }

  .logo {
      font-size: 1.5rem;
      margin-bottom: 12px;
  }

  .description {
      font-size: 0.85rem;
      margin-bottom: 15px;
  }

  .contact-item {
      font-size: 0.85rem;
  }

  .contact-icon {
      width: 20px;
      height: 20px;
      margin-right: 8px;
  }

  .bottom-notice {
      max-width: 280px;
      padding: 0px 15px;
      font-size: 0.75rem;
  }
}

/* 大螢幕樣式 */
@media (min-width: 1200px) {
  .content-card {
      max-width: 1000px;
  }

  .content-overlay {
      max-width: 450px;
      padding: 50px;
  }

  .logo {
      font-size: 3rem;
      margin-bottom: 25px;
  }

  .description {
      font-size: 2rem;
  }
}
