/* 首页样式 */
/* 英雄区域 */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: var(--white-color);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  margin: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  transform: rotate(30deg);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-hero {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-decoration: none;
  background-color: var(--white-color);
  color: var(--primary-color);
  font-weight: 500;
}

.btn-hero:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 特色产品区域 */
.featured-products {
  padding: 4rem 0;
  background-color: var(--bg-color);
  border-radius: var(--border-radius-lg);
  margin: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 0.5rem auto;
  border-radius: 2px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
  margin-top: 2rem;
  align-items: start;
}

/* 特色方案区域 */
.featured-solutions {
  padding: 4rem 0;
  background-color: var(--bg-secondary-color);
  border-radius: var(--border-radius-lg);
  margin: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
  margin-top: 2rem;
  align-items: start;
}

/* 特色方案卡片样式优化 */
.solution-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.solution-image {
  height: 200px;
  object-fit: cover;
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
}

.solution-summary {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* 关于我们区域 */
.about-section {
  padding: 4rem 0;
  background-color: var(--bg-color);
  border-radius: var(--border-radius-lg);
  margin: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary-color);
  margin-bottom: 2rem;
}

/* 动画主题特殊样式 */
[data-theme="animation"] .hero-section {
  background: linear-gradient(135deg, var(--primary-color), rgba(0, 86, 179, 0.8));
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="animation"] .hero-section::before {
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
}

[data-theme="animation"] .featured-products {
  background-color: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="animation"] .featured-solutions {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="animation"] .about-section {
  background-color: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 深色主题特殊样式 */
[data-theme="dark"] .featured-products {
  background-color: var(--bg-color);
}

[data-theme="dark"] .featured-solutions {
  background-color: var(--bg-secondary-color);
}

[data-theme="dark"] .about-section {
  background-color: var(--bg-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .solutions-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .solution-summary {
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .featured-products {
    padding: 2rem 0;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .featured-solutions {
    padding: 2rem 0;
  }
  
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .product-info {
    padding: 1rem;
  }
  
  .solution-content {
    padding: 1rem;
  }
  
  .solution-summary {
    -webkit-line-clamp: 3;
  }
  
  /* 服务优势区域在小屏幕上的优化 */
  .about-section .row {
    flex-direction: column;
  }
  
  .about-section .col-md-3 {
    margin-bottom: 1rem;
  }
}