/* Global Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

/* 渐入动画 */
.fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 图片加载动画 */
img {
  transition: opacity 0.3s ease;
}

img.loading {
  opacity: 0.5;
}

img.loaded {
  opacity: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background-color: #2563eb;
  color: white;
  padding: 20px;
  text-align: center;
}

section {
  padding: 40px 0;
}

h1, h2 {
  text-align: center;
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.service {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.service img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Form Styles */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input[type="email"], textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

button[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #1d4ed8;
}

button[type="submit"]:disabled {
  background-color: #93c5fd;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
  .service {
    width: 100%;
    max-width: 400px;
  }
  
  header {
    padding: 15px;
  }
  
  header div {
    flex-direction: column;
    gap: 10px;
  }
  
  header img {
    width: 60px;
    height: 60px;
  }
  
  section {
    padding: 20px 0;
  }
  
  .container {
    padding: 10px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .service h3 {
    font-size: 1.2rem;
  }
  
  #pricing div {
    padding: 20px;
  }
  
  #pricing div div {
    font-size: 36px;
  }
  
  #contact div {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  #pricing div div {
    font-size: 28px;
  }
  
  input[type="email"], textarea {
    padding: 8px;
  }
  
  button[type="submit"] {
    padding: 10px;
    font-size: 14px;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
