/* 全站基礎設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.line-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #00c300;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 999;
  transition: 0.3s;
}

.line-float-btn:hover {
  background-color: #009a00;
  transform: scale(1.05);
}

#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
  background-color: #d4af37;
  color: #111;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: 0.3s;
}

#backToTopBtn:hover {
  transform: translateY(-2px);
}


body {
  font-family: 'Noto Sans TC', sans-serif;
  background-color: #111;
  color: #f5f5f5;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header 標題區 */
.site-header {
  text-align: center;
  padding: 40px 20px;
  background-color: #000;
  color: #fff;
}

.corner-icon {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
}

.header-text h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.header-text p {
  font-size: 16px;
  color: #ccc;
}

/* 第一區：QR / 介紹 */
.intro-section {
  background-color: #181818;
  padding: 50px 20px;
  text-align: center;
}

.intro-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: auto;
  flex-wrap: wrap;
}

.qr-image {
  width: 100px;
  max-width: 90%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.intro-text h2 {
  font-size: 26px;
  color: #d4af37;
  margin-bottom: 15px;
}

.intro-text p {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 10px;
}

.btn-line {
  display: inline-block;
  background-color: #00c300;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: 0.3s ease;
}

.btn-line:hover {
  background-color: #009900;
  transform: translateY(-2px);
}

/* 第三區：服務項目 */
.services-section {
  background-color: #111;
  padding: 50px 20px;
  text-align: center;
}

.services-section h2 {
  color: #d4af37;
  font-size: 24px;
  margin-bottom: 30px;
}

.services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}


.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 300px;
  margin: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.modal-content button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #06C755;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
}

 .modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
  }
  .modal-box {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 300px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
  .modal-box button {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    background-color: #06C755;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    font-size: 16px;
  }

/* Footer */
.site-footer {
  background-color: #000;
  color: #ccc;
  font-size: 14px;
  text-align: center;
  padding: 40px 20px 20px 20px;
}

.footer-service-info ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px auto;
  max-width: 700px;
}

.footer-service-info ul li {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #d4af37;
  font-size: 14.5px;
  line-height: 1.8;
  letter-spacing: 0.3px;
}

.footer-tagline {
  font-size: 12.5px;
  color: #777;
  margin-top: 10px;
  font-style: italic;
}

.footer-bottom {
  font-size: 12px;
  color: #666;
  padding-top: 20px;
  border-top: 1px solid #333;
  max-width: 800px;
  margin: auto;
}

/* 響應式設計：手機優化 */
@media (max-width: 600px) {
  .intro-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .intro-text,
  .qr-image {
    width: 100%;
    max-width: 320px;
    margin: 12px 0;
  }

  .services-list li {
    width: 90%;
    font-size: 15px;
  }

  .footer-service-info ul li {
    font-size: 13.5px;
    padding: 0 10px;
  }

  .footer-tagline {
    font-size: 12px;
    padding: 0 15px;
  }

  .footer-bottom {
    font-size: 11.5px;
    padding: 10px 15px;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
