/* ============================================
   SuperCue 知识中心索引页专用样式
   ============================================ */
@import url('common.css');

/* --- 知识中心 Header --- */
.kb-header {
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  color: #fff;
  padding: 60px 20px 40px;
  text-align: center;
}
.kb-header h1 { font-size: 36px; font-weight: 900; margin-bottom: 12px; }
.kb-header p { font-size: 16px; opacity: 0.9; max-width: 700px; margin: 0 auto; }
.kb-header .stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 24px;
  font-size: 14px;
  opacity: 0.85;
}
.kb-header .stats strong { font-size: 20px; display: block; }

/* --- 顶部导航栏 --- */
.kb-nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.kb-nav a {
  color: #1a56db;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 0;
}
.kb-nav a:hover { color: #3b82f6; }
.kb-nav .nav-sep { color: #ddd; }

/* --- 面包屑 --- */
.kb-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 13px;
  color: #6B7280;
}
.kb-breadcrumb a { color: #1a56db; text-decoration: none; }
.kb-breadcrumb a:hover { text-decoration: underline; }
.kb-breadcrumb span { margin: 0 6px; color: #ccc; }

/* --- 分类导航 --- */
.cluster-nav {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cluster-nav a {
  padding: 8px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 14px;
  color: #6B7280;
  text-decoration: none;
  transition: all 0.2s;
}
.cluster-nav a:hover {
  border-color: #1a56db;
  color: #1a56db;
  background: rgba(26,86,219,0.04);
}

/* --- 主内容区 --- */
.kb-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.cluster-section {
  margin-top: 48px;
  background: #fff;
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cluster-section:nth-child(odd) {
  background: linear-gradient(135deg, #f8f9fb, #fff);
}
.cluster-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}
.cluster-icon { font-size: 36px; }
.cluster-title { font-size: 22px; font-weight: 700; color: #1F2937; }
.cluster-count { font-size: 14px; color: #6B7280; margin-left: auto; }

/* --- 文章网格 --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.article-card {
  background: #f8f9fb;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.article-card:hover {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.article-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
}
.article-card h3 a { color: #1F2937; text-decoration: none; }
.article-card h3 a:hover { color: #1a56db; }
.article-card p {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 12px;
}
.article-card .meta {
  font-size: 12px;
  color: #9CA3AF;
  display: flex;
  gap: 12px;
}

/* --- 页脚 --- */
.kb-footer {
  text-align: center;
  padding: 40px 20px;
  color: #6B7280;
  font-size: 14px;
  margin-top: 60px;
  border-top: 1px solid #eee;
}
.kb-footer a { color: #1a56db; text-decoration: none; }
.kb-footer a:hover { text-decoration: underline; }

/* --- 移动端适配 --- */
@media (max-width: 768px) {
  .kb-header { padding: 40px 16px 28px; }
  .kb-header h1 { font-size: 24px; }
  .kb-header .stats { gap: 20px; font-size: 13px; }
  .kb-header .stats strong { font-size: 16px; }
  .cluster-section { padding: 24px 20px; border-radius: 12px; }
  .cluster-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cluster-title { font-size: 18px; }
  .article-grid { grid-template-columns: 1fr; gap: 12px; }
  .article-card { padding: 18px; }
  .kb-nav { gap: 8px; padding: 0 12px; }
  .kb-breadcrumb { padding: 12px 16px; font-size: 12px; }
}
@media (max-width: 480px) {
  .kb-header h1 { font-size: 20px; }
  .cluster-nav { padding: 0 12px; }
  .cluster-nav a { font-size: 13px; padding: 6px 14px; }
}
