/* 全局样式 */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  padding-bottom: 70px; /* 为固定footer留出空间 */
}

/* 导航栏样式 */
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

/* 页面内容容器 */
.container {
  max-width: 1200px;
}

/* 卡片样式增强 */
.card {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-header {
  font-weight: bold;
}

/* 比赛记录样式 */
#matches-container .card {
  margin-bottom: 1.5rem;
}

/* 排行榜样式 */
#rankings-container table {
  width: 100%;
}

#rankings-container th {
  position: sticky;
  top: 0;
  background-color: #212529;
  color: white;
  z-index: 10;
}

/* 选手详情页样式 */
#player-stats .border {
  border-radius: 8px;
  transition: transform 0.2s;
}

#player-stats .border:hover {
  transform: scale(1.05);
}

/* 年份选择器 */
#year-selector {
  cursor: pointer;
  font-weight: 500;
}

#current-year-display, #home-year-display {
  font-size: 0.9rem;
}

/* 页脚固定在底部 */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 100;
}

/* 响应式调整 */
@media (max-width: 768px) {
  #player-stats .border {
    margin-bottom: 15px;
  }
  
  .card-body {
    padding: 0.75rem;
  }
}

/* 选手详情页增强样式 */
#player-info .badge {
  font-size: 1rem;
}

.year-stats-container {
  margin-bottom: 2rem;
}

/* 年度选项卡样式 */
#yearTabs .nav-link {
  padding: 0.5rem 1rem;
  color: #495057;
  border-radius: 0;
  border: 1px solid transparent;
}

#yearTabs .nav-link.active {
  background-color: #f8f9fa;
  border-color: #dee2e6 #dee2e6 #fff;
  color: #198754;
  font-weight: bold;
}

/* 比赛历史筛选按钮样式 */
#filter-all.active, #filter-win.active, #filter-lose.active {
  background-color: #0d6efd;
  color: white;
}

/* 响应式图表容器 */
[id$="-chart"] {
  width: 100%;
  min-height: 250px;
}

/* 连胜连败卡片样式 */
#streak-analysis .card {
  transition: transform 0.3s;
}

#streak-analysis .card:hover {
  transform: translateY(-5px);
}

#recent-trend-chart {
  margin-top: 1rem;
}

/* 分页样式优化 */
.pagination .page-link {
  color: #0d6efd;
}

.pagination .page-item.active .page-link {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* 移动设备适配 */
@media (max-width: 768px) {
  #yearTabs .nav-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }
  
  .card-body {
    padding: 0.75rem;
  }
  
  [id$="-chart"] {
    height: 200px !important;
  }
}