/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

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

/* 头部样式 */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo img {
  height: 50px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #3498db;
  color: white;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* 主要内容区域 */
main {
  min-height: calc(100vh - 120px);
}

/* 首页英雄区域 */
.hero {
  background: linear-gradient(135deg, #3498db, #2c3e50);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: #3498db;
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: #3498db;
}

.btn-outline {
  background-color: transparent;
  color: #3498db;
  border: 2px solid #3498db;
}

.btn-outline:hover {
  background-color: #3498db;
  color: white;
}

/* 特色功能区域 */
.features {
  padding: 80px 0;
  background-color: white;
}

.features .container h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
  color: #2c3e50;
}

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

.feature-item {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eaeaea;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-item h3 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 1.4rem;
}

/* 关于我们预览 */
.about-preview {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.about-preview .container {
  text-align: center;
}

.about-preview .container h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  color: #2c3e50;
}

.about-preview .container p {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* 页面头部 */
.page-header {
  background: linear-gradient(135deg, #3498db, #2c3e50);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

/* 公司介绍页面 */
.company-info {
  padding: 60px 0;
  background-color: white;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.8;
  font-size: 1.1rem;
}

.intro-text p {
  margin-bottom: 20px;
}

.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.card {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #eaeaea;
}

.card h3 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.services-overview {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.services-overview h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
}

.services-overview ul {
  list-style-type: none;
  padding-left: 0;
}

.services-overview ul li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  font-size: 1.1rem;
}

.services-overview ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3498db;
  font-weight: bold;
}

/* 服务页面 */
.services {
  padding: 60px 0;
  background-color: white;
}

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

.service-card {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 1.4rem;
}

.service-card ul {
  margin-top: 20px;
  list-style-type: none;
  padding-left: 0;
}

.service-card ul li {
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.service-card ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3498db;
  font-size: 1.2rem;
}

.process {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.process .container h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
  color: #2c3e50;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.step {
  text-align: center;
  padding: 20px;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: #3498db;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-weight: bold;
  font-size: 1.2rem;
}

.step h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}

/* 联系我们页面 */
.contact-info {
  padding: 60px 0;
  background-color: white;
}

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

.contact-details h2,
.map-container h2 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.contact-item {
  margin-bottom: 20px;
}

.contact-item h3 {
  color: #3498db;
  margin-bottom: 5px;
}

.map-container .map-placeholder {
  background-color: #eaeaea;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.map-container .map-image {
  background-color: #ccc;
  width: 100%;
  height: 200px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.contact-form-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.contact-form-section .container h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #2c3e50;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* 页脚 */
footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 30px 0;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: flex;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .features .container h2,
  .about-preview .container h2,
  .page-header h1,
  .services .container h2,
  .process .container h2 {
    font-size: 1.8rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 60px 0;
  }

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

  .features,
  .about-preview,
  .company-info,
  .services,
  .contact-info,
  .contact-form-section {
    padding: 40px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}