/* 首页特定样式 */

/* 横幅区域 */
.banner {
  background-color: #f0f7ff;
  padding: 60px 0;
  overflow: hidden;
}

.banner .container {
  display: flex;
  align-items: center;
}

.banner-content {
  flex: 1;
  padding-right: 40px;
}

.banner-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
  line-height: 1.2;
}

.banner-desc {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.banner-actions {
  display: flex;
}

.banner-actions .btn {
  margin-right: 15px;
}

.banner-image {
  flex: 1;
  max-width: 500px;
}

.illustration {
  width: 100%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* 统计区域 */
.stats-section {
  margin-top: -40px;
  margin-bottom: 60px;
}

.stats-grid {
  display: flex;
  justify-content: space-between;
}

.stats-item {
  flex: 1;
  background-color: #fff;
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin: 0 10px;
}

.stats-number {
  font-size: 36px;
  font-weight: 700;
  color: #1890ff;
  margin-bottom: 10px;
}

.stats-label {
  color: #666;
  font-size: 16px;
}

/* 功能特点区域 */
.features-section {
  padding: 80px 0;
  background-color: #fff;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.feature-card {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  text-align: center;
  margin: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background-color: #e6f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px;
}

.data-icon {
  background-image: url('../images/data-icon.svg');
}

.analysis-icon {
  background-image: url('../images/analysis-icon.svg');
}

.ai-icon {
  background-image: url('../images/ai-icon.svg');
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.feature-desc {
  color: #666;
  line-height: 1.6;
}

/* 最新动态区域 */
.news-section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.more-link {
  color: #1890ff;
  font-size: 16px;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  margin-bottom: 20px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-content {
  flex: 1;
  padding-right: 20px;
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.news-summary {
  color: #666;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  color: #999;
  font-size: 14px;
}

.news-time {
  margin-right: 20px;
}

.news-image {
  width: 120px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 热门分析区域 */
.insights-section {
  padding: 60px 0 80px;
  background-color: #f9f9f9;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.insight-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.insight-category {
  display: inline-block;
  padding: 4px 10px;
  background-color: #e6f7ff;
  color: #1890ff;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 15px;
}

.insight-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-summary {
  color: #666;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-meta {
  color: #999;
  font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .banner .container {
    flex-direction: column;
  }
  
  .banner-content {
    padding-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }
  
  .banner-actions {
    justify-content: center;
  }
  
  .stats-grid {
    flex-direction: column;
  }
  
  .stats-item {
    margin-bottom: 20px;
  }
  
  .features-grid {
    flex-direction: column;
  }
  
  .feature-card {
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .banner-title {
    font-size: 32px;
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
  }
}

/* 图标替代（如果没有实际的SVG图标） */
.data-icon,
.analysis-icon, 
.ai-icon {
  background-image: none;
  background-color: #e6f7ff;
  position: relative;
}

.data-icon:after {
  content: '📊';
  font-size: 28px;
}

.analysis-icon:after {
  content: '📈';
  font-size: 28px;
}

.ai-icon:after {
  content: '🤖';
  font-size: 28px;
}