/* 统计信息组件样式 */

.stats-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 700px; /* 移除最小宽度限制，让地图预览框优先保持宽度 */
  max-width: 800px;
}

.stats-card, .info-card, .quick-actions {
  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;
  flex: 1;
}

/* 为快捷操作框添加额外的padding来容纳按钮hover动效 */
.quick-actions {
  padding: 26px 20px 20px 20px; /* 顶部增加6px来容纳按钮的translateY(-3px)和容器本身的动效 */
}

.stats-card:hover, .info-card:hover {
  transform: translateY(-3px);
  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);
  background: rgba(255, 255, 255, 0.85);
}

/* 快捷操作框的hover动效调整，避免与按钮动效冲突 */
.quick-actions: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);
  background: rgba(255, 255, 255, 0.85);
}

.stats-card h3, .info-card h3, .quick-actions h3 {
  margin: 0 0 20px 0;
  font-size: 1.3rem;
  color: #333;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

/* 快捷操作框H3标题特殊处理，减少底部margin避免遮挡按钮动效 */
.quick-actions h3 {
  margin: 0 0 15px 0; /* 减少底部margin，为按钮hover动效留出空间 */
}

.stats-card h3::after, .info-card h3::after, .quick-actions h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #1a73e8, #1557b0);
  border-radius: 2px;
}

/* 统计数据网格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

/* 车站数据卡片标题 - 紧凑设计 */
#stats-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 8px;
  padding-top: 3px;
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 transparent;
}

/* 自定义滚动条样式 */
#stats-grid::-webkit-scrollbar {
  height: 4px;
}

#stats-grid::-webkit-scrollbar-track {
  background: transparent;
}

#stats-grid::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

#stats-grid::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 车站数据卡片标题 */
.stats-card h3 {
  margin: 0 0 15px 0;
  font-size: 1.2rem;
  color: #333;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}

.stats-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #1a73e8, #1557b0);
  border-radius: 1px;
}

/* 车站数据统计项 - 紧凑设计 */
#stats-grid .stat-item {
  padding: 10px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-left: 3px solid #1a73e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  gap: 8px;
  flex-shrink: 0;
  min-width: 140px;
  display: flex;
  align-items: center;
}

#stats-grid .stat-item:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(26, 115, 232, 0.12);
}

#stats-grid .stat-icon {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

#stats-grid .stat-label {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 2px;
  font-weight: 500;
}

#stats-grid .stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #1a73e8;
  margin-bottom: 1px;
}

#stats-grid .stat-description {
  font-size: 0.65rem;
  color: #999;
  font-style: italic;
  line-height: 1.1;
}

/* 详细统计数据网格 - 优化布局 */
#detailed-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

/* 详细统计分组标题 */
.stats-group-title {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  margin: 15px 0 8px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #e9ecef;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-item {
  padding: 15px;
  border-radius: 10px;
  background: #f8f9fa;
  border-left: 4px solid #1a73e8;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none; /* 防止文本被选中 */
  -webkit-user-select: none; /* Safari支持 */
  -moz-user-select: none; /* Firefox支持 */
  -ms-user-select: none; /* IE支持 */
}

/* 详细统计项 - 减少视觉复杂度 */
#detailed-stats-grid .stat-item {
  padding: 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-left: 3px solid #1a73e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  gap: 10px; /* 增加图标和文字之间的间距 */
}

#detailed-stats-grid .stat-item:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

#detailed-stats-grid .stat-item:hover .stat-icon img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transform: scale(1.05);
}

/* 没有图标的统计项样式 */
#detailed-stats-grid .stat-item.no-icon {
  padding-left: 15px;
}

#detailed-stats-grid .stat-item.no-icon .stat-content {
  margin-left: 0;
}

#detailed-stats-grid .stat-item.no-icon .stat-icon {
  display: none;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(26, 115, 232, 0.1), transparent);
  transition: left 0.5s ease;
}

.stat-item:hover::before {
  left: 100%;
}

.stat-item:hover {
  background: #e3f2fd;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(26, 115, 232, 0.2);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 修复SVG图片裁切问题 */
.stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0px;
}

/* 详细统计中的图标 - 优化SVG显示 */
#detailed-stats-grid .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  box-shadow: none; /* 移除阴影 */
  border: none; /* 移除边框 */
  background: transparent; /* 透明背景 */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#detailed-stats-grid .stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)); /* 添加轻微阴影效果 */
  transition: all 0.3s ease;
}

/* SVG图标悬停效果 */
#detailed-stats-grid .stat-icon:hover img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transform: scale(1.05);
}

.stat-content {
  flex: 1;
  min-width: 0; /* 防止文本溢出 */
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 详细统计中的标签 - 优化文本显示 */
#detailed-stats-grid .stat-label {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 3px;
}

/* 铁路公司名字循环展示样式 */
.stat-label-scroll {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 1.2em;
  line-height: 1.2em;
  cursor: pointer;
}

.stat-label-scroll .scroll-text {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  animation: scrollText 10s ease-in-out infinite;
  z-index: 2;
  will-change: transform;
}

@keyframes scrollText {
  0%, 20% {
    transform: translateX(0);
  }
  80%, 100% {
    transform: translateX(calc(-100% + 100px));
  }
}

/* 悬停时暂停动画并显示完整文本 */
.stat-label-scroll:hover .scroll-text {
  animation-play-state: paused;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.2;
  font-family: 'SimHei', 'Microsoft YaHei', '黑体', sans-serif;
  transition: all 0.3s ease;
}

/* 数字增长动画样式 */
.stat-value {
  position: relative;
}

.stat-value::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-value.animating::after {
  opacity: 1;
}

/* 详细统计中的数值 - 优化显示 */
#detailed-stats-grid .stat-value {
  font-size: 1.2rem;
  color: #2c3e50;
  font-weight: 700;
  font-family: 'SimHei', 'Microsoft YaHei', '黑体', sans-serif;
}

.stat-description {
  font-size: 0.75rem;
  color: #999;
  font-style: italic;
  line-height: 1.2;
}

/* 信息卡片内容 */
.info-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.info-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 0;
  border: 1px solid #f0f0f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.03), rgba(26, 115, 232, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-section:hover::before {
  opacity: 1;
}

.info-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: #1a73e8;
}

.info-section h4 {
  margin: 0 0 18px 0;
  font-size: 1.2rem;
  color: #1a73e8;
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.info-section h4::before {
  content: '';
  width: 3px;
  height: 20px;
  background: linear-gradient(135deg, #1a73e8, #1557b0);
  border-radius: 2px;
  flex-shrink: 0;
}

/* 为不同信息部分添加图标 */
.info-section.about h4::after {
  content: '📖';
  font-size: 1.1rem;
  margin-left: auto;
  opacity: 0.8;
}

.info-section.contact h4::after {
  content: '📧';
  font-size: 1.1rem;
  margin-left: auto;
  opacity: 0.8;
}

.info-section.features h4::after {
  content: '🎯';
  font-size: 1.1rem;
  margin-left: auto;
  opacity: 0.8;
}

.info-section p {
  margin: 10px 0;
  font-size: 0.95rem;
  color: #4a4a4a;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  padding-left: 13px;
  transition: color 0.3s ease;
}

.info-section:hover p {
  color: #333;
}

.info-section p strong {
  color: #2c2c2c;
  font-weight: 600;
  display: inline-block;
  min-width: 85px;
  margin-right: 8px;
}

/* 快捷操作按钮 */
.action-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible; /* 改为visible，允许按钮向上移动 */
  padding-bottom: 8px; /* 增加底部padding为按钮hover动效留出空间 */
  padding-top: 3px; /* 增加顶部padding为按钮hover动效留出空间 */
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 transparent;
}

/* 自定义滚动条样式 */
.action-buttons::-webkit-scrollbar {
  height: 4px;
}

.action-buttons::-webkit-scrollbar-track {
  background: transparent;
}

.action-buttons::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.action-buttons::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: #f8f9fa;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #e9ecef;
  min-height: 60px;
  justify-content: center;
  border-color: #2751a0;
  border-width: 2.5px;
  flex-shrink: 0; /* 防止按钮被压缩 */
  min-width: 80px; /* 设置最小宽度 */
  user-select: none; /* 防止文本被选中 */
  -webkit-user-select: none; /* Safari支持 */
  -moz-user-select: none; /* Firefox支持 */
  -ms-user-select: none; /* IE支持 */
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(26, 115, 232, 0.1), transparent);
  transition: left 0.5s ease;
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn:hover {
  background: #e3f2fd;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.2);
  border-color: #1a73e8;
}

.action-btn span:first-child {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.action-btn span:last-child {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}



@media (max-width: 1160px) {
  .stats-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0px; 
    max-width: 800px;
  }
}
/* 响应式设计 */
@media (max-width: 768px) {
  .stats-section {
    min-width: 0; /* 在移动端移除最小宽度限制 */
    max-width: none;
  }
  
  .stats-card, .info-card, .quick-actions {
    padding: 18px; /* 移动端进一步压缩 */
  }
  
  /* 移动端快捷操作框padding调整 */
  .quick-actions {
    padding: 24px 18px 18px 18px; /* 顶部增加6px来容纳按钮的translateY(-3px) */
  }
  
  /* 车站数据移动端优化 */
  #stats-grid {
    gap: 8px;
    padding-bottom: 6px;
    padding-top: 2px;
  }
  
  #stats-grid .stat-item {
    padding: 8px;
    border-radius: 5px;
    min-width: 120px;
  }
  
  #stats-grid .stat-icon {
    width: 18px;
    height: 18px;
  }
  
  #stats-grid .stat-label {
    font-size: 0.7rem;
  }
  
  #stats-grid .stat-value {
    font-size: 0.9rem;
  }
  
  #stats-grid .stat-description {
    font-size: 0.6rem;
  }
  
  /* 移动端快捷操作按钮优化 */
  .action-buttons {
    gap: 8px;
    padding-bottom: 6px; /* 移动端调整底部padding */
    padding-top: 2px; /* 移动端调整顶部padding */
  }
  
  /* 移动端快捷操作框H3标题调整 */
  .quick-actions h3 {
    margin: 0 0 12px 0; /* 移动端进一步减少底部margin */
  }
  
  .action-btn {
    min-width: 70px;
    padding: 10px 6px;
    min-height: 55px;
  }
  
  .action-btn span:first-child {
    font-size: 1.2rem;
  }
  
  .action-btn span:last-child {
    font-size: 0.7rem;
  }
  
  /* 移动端循环展示优化 */
  .stat-label-scroll {
    font-size: 0.7rem;
  }
  
  .stat-label-scroll .scroll-text {
    animation-duration: 6s;
  }
  
  /* 移动端SVG图标优化 */
  #detailed-stats-grid .stat-icon {
    width: 26px;
    height: 26px;
  }
  
  .info-section {
    padding: 18px;
    border-radius: 12px;
  }
  
  .info-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
  
  .info-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    padding-left: 12px;
  }
  
  .info-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  #detailed-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }
  
  .stat-item {
    padding: 12px;
  }
  
  .stat-icon {
    width: 28px;
    height: 28px;
  }
  
  .stat-value {
    font-size: 1.1rem;
  }
  
  .info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .stats-card, .info-card, .quick-actions {
    padding: 15px; /* 小屏幕进一步压缩 */
  }
  
  /* 小屏幕快捷操作框padding调整 */
  .quick-actions {
    padding: 21px 15px 15px 15px; /* 顶部增加6px来容纳按钮的translateY(-3px) */
  }
  
  #stats-grid {
    gap: 6px;
    padding-bottom: 5px;
    padding-top: 2px;
  }
  
  #stats-grid .stat-item {
    padding: 6px;
    border-radius: 4px;
    gap: 6px;
    min-width: 100px;
  }
  
  #stats-grid .stat-icon {
    width: 16px;
    height: 16px;
  }
  
  #stats-grid .stat-label {
    font-size: 0.65rem;
    margin-bottom: 1px;
  }
  
  #stats-grid .stat-value {
    font-size: 0.8rem;
    margin-bottom: 0;
  }
  
  #stats-grid .stat-description {
    font-size: 0.55rem;
    line-height: 1.0;
  }
  
  .stats-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    padding-bottom: 6px;
  }
  
  /* 小屏幕快捷操作按钮优化 */
  .action-buttons {
    gap: 6px;
    padding-bottom: 5px; /* 小屏幕调整底部padding */
    padding-top: 2px; /* 小屏幕调整顶部padding */
  }
  
  /* 小屏幕快捷操作框H3标题调整 */
  .quick-actions h3 {
    margin: 0 0 10px 0; /* 小屏幕进一步减少底部margin */
  }
  
  .action-btn {
    min-width: 60px;
    padding: 8px 4px;
    min-height: 50px;
  }
  
  .action-btn span:first-child {
    font-size: 1.1rem;
  }
  
  .action-btn span:last-child {
    font-size: 0.65rem;
  }
  
  /* 小屏幕循环展示优化 */
  .stat-label-scroll {
    font-size: 0.65rem;
  }
  
  .stat-label-scroll .scroll-text {
    animation-duration: 5s;
  }
  
  /* 小屏幕SVG图标优化 */
  #detailed-stats-grid .stat-icon {
    width: 24px;
    height: 24px;
  }
  
  .info-section {
    padding: 15px; /* 小屏幕进一步压缩 */
    border-radius: 10px;
  }
  
  .info-section h4 {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .info-section p {
    font-size: 0.85rem;
    line-height: 1.5;
    padding-left: 10px;
  }
  
  .info-section p strong {
    min-width: 70px;
    margin-right: 6px;
  }
  
  .info-content {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }
  
  .stats-card h3, .info-card h3, .quick-actions h3 {
    font-size: 1.1rem;
  }
  
  #detailed-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }
} 

/* 信息卡片标题样式 */
.info-card h3 {
  margin: 0 0 24px 0;
  font-size: 1.4rem;
  color: #000000;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
  letter-spacing: 0.5px;
}

.info-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #1a73e8, #1557b0);
  border-radius: 2px;
} 