/* === Base layout === */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #DFF0F0;
  color: #333;
  overflow-x: hidden;
}

header {
  position: relative;
  text-align: center;
  color: white;
}

header img.banner {
  width: 100%;
  height: 360px;
  object-fit: cover;
  filter: brightness(0.6);
}

header .banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 2.2em;
  font-weight: bold;
  animation: fadeInDownCenter 1.5s ease forwards;
}

/* === Navigation === */
nav {
  background-color: #0B669D;
  text-align: center;
  padding: 12px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 20px;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #facc15;
}

/* === Main content box === */
main {
  max-width: 900px;
  margin: 50px auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1.5s ease;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 20px;
  color: #666;
  background-color: #f1f5f9;
  margin-top: 40px;
  line-height: 1.6;
}

/* === Reusable contact block === */
.contact {
  line-height: 1.8;
  font-size: 1.1em;
}

.contact a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s;
}

.contact a:hover {
  color: #facc15;
}

/* === Services page === */
.service-item {
  margin-top: 30px;
}

.service-item img {
  width: 100%;
  border-radius: 10px;
  margin-top: 10px;
}

/* === Index page special === */
.fade-in {
  animation: fadeIn 2s ease;
}

/* === Animations === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDownCenter {
  from {
    opacity: 0;
    transform: translate(-50%, -70%); /* 中心点往上 20% ，从上面滑下来 */
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%); /* 正中心 */
  }
}
