/* ==========================================
   技术分享页面样式 - article.css
   ========================================== */

/* ==========================================
   Banner区域样式
   ========================================== */
.article-banner {
  margin-top: 76px;
  padding: 5rem 0 4rem;
  background-color: #fafafa;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.article-banner-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  letter-spacing: -0.03em;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.article-banner-title .highlight {
  color: #6366f1;
  position: relative;
}

.article-banner-subtitle {
  font-size: 1.2rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ==========================================
   分类标签样式
   ========================================== */
.article-tags {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 3rem 2rem;
  background-color: #fff;
}

.article-tag {
  padding: 0.75rem 2rem;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
  text-align: center;
  min-width: 100px;
}

.article-tag:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

.article-tag.active {
  background: #6366f1;
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ==========================================
   文章列表区域样式
   ========================================== */
.articles-section {
  padding: 2rem 0 6rem;
  background-color: #fff;
}

.articles-category {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.category-icon {
  width: 40px;
  height: 40px;
  background: #f3f4f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  font-size: 1.2rem;
}

.article-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.article-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.article-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.article-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.article-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.article-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: #f3f4f6;
  color: #6366f1;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
}

.article-excerpt {
  font-size: 1rem;
  line-height: 1.8;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #9ca3af;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta-item i {
  font-size: 0.85rem;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6366f1;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-link:hover {
  color: #4f46e5;
  gap: 0.75rem;
}

.article-link i {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-link:hover i {
  transform: translateX(4px);
}

/* ==========================================
   响应式设计
   ========================================== */
@media (max-width: 768px) {
  .article-banner {
    padding: 4rem 0 3rem;
  }
  
  .articles-section {
    padding: 2rem 0 4rem;
  }
  
  .article-card {
    padding: 1.5rem;
  }
  
  .article-title {
    font-size: 1.2rem;
  }
  
  .article-card-header {
    flex-direction: column;
  }
  
  .article-meta {
    flex-wrap: wrap;
    gap: 1rem;
  }
}
