/* shared.css */

/* 👨‍💻 前導動畫樣式 */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #1a237e;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  color: white;
  font-family: monospace;
  font-size: 1.2rem;
}

.typing {
  border-right: 2px solid white;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 2.8s steps(30, end) forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { border-color: transparent }
}

/* 內容動畫 */
section.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 基本樣式調整 */
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
  text-align: center;
}

h1, h2 {
  margin-top: 1em;
  font-weight: 700;
  color: #1a237e;
}

header p {
  font-size: 1rem;
  color: #555;
}

.swiper-slide img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

form {
  background: #ffffff;
  padding: 2em;
  max-width: 700px;
  margin: 2em auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  border-radius: 10px;
  text-align: left;
}

form label {
  display: inline-block;
  width: 90px;
  text-align: left;
  font-weight: bold;
  margin-top: 10px;
  color: #1a237e;
}

form input,
form textarea {
  width: calc(100% - 100px);
  padding: 0.5em;
  margin-top: 5px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1rem;
  background: #fefefe;
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

.fancy-submit {
  background: #3949ab;
  color: white;
  border: none;
  padding: 0.75em 2em;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 1em;
  transition: background 0.3s;
}

.fancy-submit:hover {
  background: #1a237e;
}

#services ul {
  list-style: none;
  padding: 0;
  margin: 1em auto;
  max-width: 800px;
  text-align: left;
  background: white;
  padding: 1em 2em;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

#services ul li {
  padding-left: 1.5em;
  position: relative;
  margin-bottom: 0.75em;
  font-size: 1.1em;
  line-height: 1.6;
  color: #333;
}

#services ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #4CAF50;
  font-weight: bold;
}

footer {
  padding: 2em;
  font-size: 0.9em;
  background: #1a237e;
  color: white;
  margin-top: 2em;
}
