/* 现代化文章导航样式 */
.article-nav-container {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 15px;
  position: sticky;
  top: 80px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.article-nav-header {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

.article-nav-container::-webkit-scrollbar {
  width: 6px;
}

.article-nav-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.article-nav-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.article-nav-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.article-nav-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-nav-container li {
  margin: 0;
  padding: 0;
}

.article-nav-container a {
  display: block;
  padding: 8px 15px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  border-left: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 4px;
  margin-bottom: 2px;
}

.article-nav-container a:hover {
  background-color: #f0f5ff;
  color: #007bff;
  transform: translateX(2px);
}

.article-nav-container a.active {
  background-color: #e9f0ff;
  color: #007bff;
  border-left: 2px solid #007bff;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.article-nav-container .nav-h1 a {
  font-weight: 700;
  font-size: 15px;
  padding-left: 15px;
  color: #333;
  border-left: 3px solid #007bff;
}

.article-nav-container .nav-h2 a {
  padding-left: 25px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

.article-nav-container .nav-h3 a {
  padding-left: 35px;
  font-size: 13px;
  color: #555;
}

.article-nav-container .nav-h4 a {
  padding-left: 45px;
  font-size: 12px;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 991.98px) {
  .article-nav-container {
    max-height: 200px;
  }
}