/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
}

/* 导航栏样式 */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #3498db;
}

/* 英雄区域样式 */
.hero {
  background: linear-gradient(135deg, #3498db, #2c3e50);
  color: white;
  padding: 8rem 5%;
  text-align: center;
  margin-top: 60px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

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

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

.cta-button {
  display: inline-block;
  background-color: #fff;
  color: #3498db;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s;
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-3px);
}

/* 功能区域样式 */
.features {
  padding: 5rem 5%;
  background-color: #f9f9f9;
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

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

.feature-card i {
  font-size: 2.5rem;
  color: #3498db;
  margin-bottom: 1rem;
}

/* 使用场景样式 */
.use-cases {
  padding: 5rem 5%;
}

.use-cases h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.use-case-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.use-case-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.use-case-card h3 {
  padding: 1rem;
  color: #2c3e50;
}

.use-case-card p {
  padding: 0 1rem 1rem;
  color: #666;
}

/* 价格方案样式 */
.pricing {
  padding: 5rem 5%;
  background-color: #f9f9f9;
}

.pricing h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.pricing-card.featured {
  transform: scale(1.05);
  border: 2px solid #3498db;
}

.pricing-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.price {
  font-size: 2rem;
  color: #3498db;
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-card li {
  margin-bottom: 0.5rem;
  color: #666;
}

.pricing-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pricing-button:hover {
  background-color: #2980b9;
}

/* 联系表单样式 */
.contact {
  padding: 5rem 5%;
  background-color: #f9f9f9;
}

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

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.submit-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #2980b9;
}

/* 页脚样式 */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 3rem 5% 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #3498db;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  transition: background-color 0.3s;
}

.github-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  font-size: 1.5rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-links {
      display: none;
  }
  
  .hero h1 {
      font-size: 2rem;
  }
  
  .hero p {
      font-size: 1rem;
  }
  
  .feature-grid,
  .use-case-grid,
  .pricing-grid {
      grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
      transform: none;
  }
}