/* 民珍家政服务网站 - 样式表 */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

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

/* 导航栏 */
.navbar {
  background: #2c5aa0;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.8;
}

.btn-primary {
  background: #ff6b35;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
}

.btn-primary:hover {
  background: #ff8c5a;
  opacity: 1;
}

.phone-link {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  border: 2px solid rgba(255, 107, 53, 0.8);
  transition: background 0.3s, border-color 0.3s;
}

.phone-link:hover {
  background: rgba(255, 107, 53, 0.2);
  border-color: #ff6b35;
  opacity: 1;
}

/* 首页横幅 */
.hero {
  background: linear-gradient(135deg, #2c5aa0 0%, #4a90e2 100%);
  color: white;
  text-align: center;
  padding: 6rem 0;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-large {
  display: inline-block;
  background: #ff6b35;
  color: white;
  padding: 1rem 3rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s, background 0.3s;
}

.btn-large:hover {
  background: #ff8c5a;
  transform: translateY(-2px);
}

.phone-highlight {
  font-size: 1.3rem;
  color: #ffeb3b;
  font-weight: bold;
  margin: 1.5rem 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 服务项目 */
.services {
  padding: 4rem 0;
  background: white;
}

.services h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #2c5aa0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e9ecef;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: #2c5aa0;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #666;
  margin-bottom: 1rem;
}

.price {
  display: inline-block;
  background: #ff6b35;
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

/* 服务优势 */
.features {
  padding: 4rem 0;
  background: #2c5aa0;
  color: white;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-item h4 {
  margin-bottom: 0.5rem;
}

.feature-item p {
  opacity: 0.9;
}

/* 关于我们 */
.about {
  padding: 4rem 0;
  background: white;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  color: #2c5aa0;
  margin-bottom: 1.5rem;
}

.about p {
  max-width: 800px;
  margin: 0 auto 1rem;
  color: #666;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: #ff6b35;
}

.stat-item p {
  color: #666;
}

/* 联系我们 */
.contact {
  padding: 4rem 0;
  background: #f8f9fa;
}

.contact h2 {
  text-align: center;
  font-size: 2rem;
  color: #2c5aa0;
  margin-bottom: 3rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item .icon {
  font-size: 2rem;
}

.contact-item h4 {
  color: #2c5aa0;
  margin-bottom: 0.25rem;
}

/* 页脚 */
.footer {
  background: #1a1a2e;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

.footer .icp {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #999;
}

.footer .icp a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s;
}

.footer .icp a:hover {
  color: white;
}

/* 预约表单页面 */
.booking-section {
  padding: 3rem 0;
  min-height: calc(100vh - 200px);
}

.booking-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.booking-form-wrapper h1 {
  text-align: center;
  color: #2c5aa0;
  margin-bottom: 0.5rem;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.required {
  color: #ff6b35;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2c5aa0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-submit,
.btn-reset {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit {
  background: #2c5aa0;
  color: white;
}

.btn-submit:hover {
  background: #1e4080;
}

.btn-reset {
  background: #e9ecef;
  color: #333;
}

.btn-reset:hover {
  background: #dee2e6;
}

/* 成功/错误消息 */
.success-message,
.error-message {
  text-align: center;
  padding: 2rem;
}

.success-icon,
.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.success-message h2 {
  color: #28a745;
  margin-bottom: 1rem;
}

.error-message h2 {
  color: #dc3545;
  margin-bottom: 1rem;
}

.btn-home,
.btn-retry {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  background: #2c5aa0;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-home:hover,
.btn-retry:hover {
  background: #1e4080;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .stats {
    gap: 2rem;
  }

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