/* 表格美化样式 */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 16px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.article-content table thead tr {
  background-color: #5D5491;
  color: #ffffff;
  text-align: left;
  font-weight: bold;
}

.article-content table th,
.article-content table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #dddddd;
}

.article-content table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.article-content table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.article-content table tbody tr:last-of-type {
  border-bottom: 2px solid #5D5491;
}

.article-content table tbody tr:hover {
  background-color: #f1f1f1;
  transition: all 0.3s ease;
}

/* 响应式表格 */
@media (max-width: 767px) {
  .article-content table {
    font-size: 14px;
  }
  
  .article-content table th,
  .article-content table td {
    padding: 8px 10px;
  }
}

/* 表格标题样式 */
.article-content table caption {
  caption-side: top;
  font-weight: bold;
  font-size: 18px;
  color: #5D5491;
  padding: 10px 0;
  text-align: center;
}

/* 数字列居中对齐 */
.article-content table td.numeric {
  text-align: center;
}

/* 大学排名表格特定样式 */
.ranking-table th:first-child,
.ranking-table td:first-child {
  text-align: center;
  width: 60px;
}

.ranking-table th:nth-child(2),
.ranking-table td:nth-child(2) {
  min-width: 250px;
}

.ranking-table .university-logo {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 50%;
  object-fit: cover;
}

.ranking-table .country-flag {
  width: 20px;
  height: 15px;
  margin-right: 5px;
  vertical-align: middle;
}

/* 排名变化指示器 */
.ranking-table .rank-change {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  font-size: 12px;
  margin-left: 5px;
}

.ranking-table .rank-up {
  background-color: #4CAF50;
  color: white;
}

.ranking-table .rank-down {
  background-color: #f44336;
  color: white;
}

.ranking-table .rank-same {
  background-color: #9e9e9e;
  color: white;
} 