/* 文章索引组件样式 */

.article-index {
  flex: 1;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 450px;
  overflow-y: auto;
  position: relative;
}

.article-index::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.02), rgba(26, 115, 232, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
  pointer-events: none;
}

.article-index:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.1),
    0 3px 6px rgba(0, 0, 0, 0.05),
    inset 0 2px 2px rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
}

.article-index:hover::before {
  opacity: 1;
}

.article-index h3 {
  margin: 0 0 16px 0;
  font-size: 1.3rem;
  color: #000000;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
  letter-spacing: 0.5px;
}

.article-index h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #1a73e8, #1557b0);
  border-radius: 2px;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-item {
  padding: 8px 12px;
  border-radius: 6px;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f5f5f5;
  margin-bottom: 0;
}

.article-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.article-item:hover {
  background: #f8f9fa;
  transform: translateX(3px);
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(26, 115, 232, 0.1);
}

.article-item:hover h4 {
  color: #3498db;
  font-weight: 600;
}

.article-item:hover small {
  color: #5a6c7d;
}

.article-item h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

.article-item small {
  color: #888;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-left: 10px;
}

/* 滚动条样式 */
.article-index::-webkit-scrollbar {
  width: 6px;
}

.article-index::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.article-index::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 3px;
  transition: background 0.3s ease;
}

.article-index::-webkit-scrollbar-thumb:hover {
  background: #c0c0c0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .article-index {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .article-index {
    padding: 16px;
    max-height: 350px;
  }
  
  .article-index h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  
  .article-item {
    padding: 6px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  
  .article-item:hover {
    transform: translateX(2px);
    box-shadow: 0 1px 4px rgba(52, 152, 219, 0.15);
  }
  
  .article-item:hover h4 {
    color: #3498db;
    font-weight: 600;
  }
  
  .article-item h4 {
    font-size: 0.9rem;
  }
  
  .article-item small {
    font-size: 0.75rem;
    margin-left: 0;
  }
} 