/* 首页布局样式 */

/* 首页特殊布局 */
.index-page .main-content {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* 底部布局区域 */
.bottom-section {
  display: flex;
  gap: 24px;
  margin: 24px 0;
  padding: 0 20px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.wordcloud-section {
  flex: 1;
  min-width: 0; /* 防止flex项目溢出 */
}

.stats-bottom-section {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 0; /* 移除间距，使高度与词云一致 */
}

/* 确保stats-bottom-section内的stats-card与wordcloud-section高度一致 */
.stats-bottom-section .stats-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 20px; /* 减小padding，压缩布局 */
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  height: 100%; /* 确保占满容器高度 */
  box-sizing: border-box;
  /* 增加最小高度，确保与wordcloud-section对齐 */
  min-height: 360px; /* 320px容器高度 + 40px padding */
}

.stats-bottom-section .stats-card:hover {
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 8px rgba(0, 0, 0, 0.06),
    inset 0 2px 2px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.85);
}

/* 大屏幕最小高度设置 */
@media (min-width: 1201px) {
  .stats-bottom-section .stats-card {
    min-height: 360px; /* 320px容器高度 + 40px padding */
  }
}

/* 平板端最小高度设置 */
@media (max-width: 1200px) and (min-width: 769px) {
  .stats-bottom-section .stats-card {
    min-height: 320px; /* 280px容器高度 + 40px padding */
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 页面加载动画 */
.hero-section {
  animation: fadeInUp 0.6s ease-out;
}

.content-section {
  animation: slideInLeft 0.6s ease-out 0.1s both;
}

.wordcloud-section {
  animation: slideInRight 0.6s ease-out 0.2s both;
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .bottom-section {
    flex-direction: column;
    gap: 20px;
  }
  
  .wordcloud-section {
    flex: none;
    width: 100%; /* 确保占满宽度 */
  }
  
  .stats-bottom-section {
    flex: none;
    width: 100%; /* 确保占满宽度 */
  }
  
  /* 在小屏幕上移除高度限制 */
  .stats-bottom-section .stats-card {
    height: auto;
  }
}

@media (max-width: 768px) {
  .hero-section, .content-section, .bottom-section {
    padding: 0 15px;
  }
  
  .bottom-section {
    gap: 16px;
  }
  
  .wordcloud-section {
    width: 100%;
    margin: 0;
  }
  
  /* 移动端调整词云容器高度 */
  .wordcloud-container {
    height: 260px; /* 与wordcloud.css保持一致 */
  }
  
  /* 移动端调整stats-bottom-section最小高度 */
  .stats-bottom-section .stats-card {
    min-height: 296px; /* 260px容器高度 + 36px padding */
  }
}

@media (max-width: 480px) {
  .hero-section, .content-section, .bottom-section {
    padding: 0 12px;
  }
  
  .bottom-section {
    gap: 12px;
  }
  
  /* 小屏幕调整词云容器高度 */
  .wordcloud-container {
    height: 220px; /* 与wordcloud.css保持一致 */
  }
  
  /* 小屏幕调整stats-bottom-section最小高度 */
  .stats-bottom-section .stats-card {
    min-height: 250px; /* 220px容器高度 + 30px padding */
  }
} 