/* ======================================
   GEO知识库（新闻动态列表页）- 专用样式
   仿制 020yueshi.com/GEOnew/ 页面布局
   ====================================== */

/* --- 隐藏旧 Hero Banner（被 geo-page-banner 取代）--- */
.geo-kb-hero,
.geo-kb-hero::before { display: none !important; }

/* --- 知识库Banner图区 --- */
.geo-kb-banner {
  max-width: 1200px;
  margin: -30px auto 0;
  position: relative;
  z-index: 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.geo-kb-banner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* --- 知识库主体布局（左右两栏）--- */
.geo-kb-main {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

/* --- 左侧文章列表 --- */
.geo-kb-articles { min-width: 0; }

/* 分类筛选标签栏 */
.geo-kb-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #e5e7eb;
}
.geo-kb-filter-label {
  font-size: 14px;
  color: #374151;
  font-weight: 600;
  margin-right: 4px;
  line-height: 34px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.geo-kb-filter-label i { color: #2563eb; }
.geo-kb-filter a {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: #4b5563;
  background: #f3f4f6;
  transition: all 0.3s;
  border: 1px solid transparent;
  text-decoration: none;
}
.geo-kb-filter a:hover {
  color: #2563eb;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.geo-kb-filter a.active,
.geo-kb-filter a.current {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}

/* 文章卡片 */
.geo-kb-article-card {
  display: flex;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
}
.geo-kb-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: #93c5fd;
}
.geo-kb-article-thumb {
  width: 260px;
  min-height: 180px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.geo-kb-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.geo-kb-article-card:hover .geo-kb-article-thumb img {
  transform: scale(1.05);
}
.geo-kb-article-thumb .geo-kb-cat-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(37,99,235,0.9);
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.geo-kb-article-body {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.geo-kb-article-body h3 {
  font-size: 18px;
  color: #1e3a5c;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
  transition: color 0.3s;
}
.geo-kb-article-card:hover .geo-kb-article-body h3 {
  color: #2563eb;
}
.geo-kb-article-body h3 a { color: inherit; text-decoration: none; }
.geo-kb-article-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.geo-kb-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}
.geo-kb-article-meta-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #9ca3af;
}
.geo-kb-article-meta-left i { margin-right: 4px; color: #d1d5db; }
.geo-kb-article-meta-right a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #2563eb;
  font-weight: 500;
  transition: all 0.3s;
  text-decoration: none;
}
.geo-kb-article-meta-right a:hover { gap: 8px; color: #1d4ed8; }

/* --- 分页样式 --- */
.geo-kb-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 30px 0 10px;
}
.geo-kb-pagination a,
.geo-kb-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
  text-decoration: none;
}
.geo-kb-pagination a:hover {
  color: #2563eb;
  border-color: #93c5fd;
  background: #eff6ff;
}
.geo-kb-pagination .page-num { font-weight: 500; }
.geo-kb-pagination .active {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}
.geo-kb-pagination .page-info {
  min-width: auto;
  padding: 0 12px;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 13px;
  cursor: default;
}

/* --- 右侧侧边栏 --- */
.geo-kb-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 侧边栏通用卡片 */
.geo-kb-sidebar-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #e5e7eb;
}
.geo-kb-sidebar-card h3 {
  font-size: 17px;
  color: #1e3a5c;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #2563eb;
  display: flex;
  align-items: center;
  gap: 8px;
}
.geo-kb-sidebar-card h3 i { color: #2563eb; font-size: 16px; }

/* 文章分类 */
.geo-kb-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.geo-kb-cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #4b5563;
  transition: all 0.3s;
  text-decoration: none;
}
.geo-kb-cat-list li a:hover {
  background: #f8fafc;
  color: #2563eb;
}
.geo-kb-cat-list li a .cat-name {
  display: flex;
  align-items: center;
  gap: 6px;
}
.geo-kb-cat-list li a .cat-name i { font-size: 12px; color: #2563eb; }
.geo-kb-cat-list li a .cat-count {
  font-size: 12px;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 10px;
}

/* 热门文章 */
.geo-kb-hot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: hot-rank;
}
.geo-kb-hot-list li {
  counter-increment: hot-rank;
  margin-bottom: 2px;
}
.geo-kb-hot-list li a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  transition: color 0.3s;
  text-decoration: none;
}
.geo-kb-hot-list li:last-child a { border-bottom: none; }
.geo-kb-hot-list li a:hover { color: #2563eb; }
.geo-kb-hot-list li a::before {
  content: counter(hot-rank);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.geo-kb-hot-list li:nth-child(1) a::before { background: #dc2626; color: #fff; }
.geo-kb-hot-list li:nth-child(2) a::before { background: #f59e0b; color: #fff; }
.geo-kb-hot-list li:nth-child(3) a::before { background: #2563eb; color: #fff; }

/* 侧边栏CTA */
.geo-kb-sidebar-cta {
  background: linear-gradient(135deg, #0f172a, #1e3a5c);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  color: #fff;
}
.geo-kb-sidebar-cta h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.geo-kb-sidebar-cta p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  line-height: 1.6;
}
.geo-kb-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.geo-kb-cta-btn {
  display: block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
}
.geo-kb-cta-btn.primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245,158,11,0.35);
}
.geo-kb-cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245,158,11,0.5);
  color: #fff;
}
.geo-kb-cta-btn.outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
}
.geo-kb-cta-btn.outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* --- 文章详情页样式（news.html用）--- */
.geo-kb-detail-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5c 100%);
  padding: 50px 0 40px;
  text-align: center;
}
.geo-kb-detail-hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.geo-kb-detail-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.geo-kb-detail-meta i { margin-right: 4px; }
.geo-kb-detail-meta a { color: inherit; text-decoration: none; }

/* --- 响应式适配 --- */
@media (max-width: 1024px) {
  .geo-kb-main {
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }
  .geo-kb-article-thumb { width: 220px; min-height: 160px; }
}
@media (max-width: 768px) {
  .geo-kb-stats-inner { gap: 20px; }
  .geo-kb-stat-num { font-size: 22px; }
  .geo-kb-filter { gap: 6px; padding: 14px 16px; }
  .geo-kb-filter a { padding: 5px 10px; font-size: 11px; }
  .geo-kb-main {
    grid-template-columns: 1fr;
    gap: 24px;
  .geo-kb-article-card { flex-direction: column; }
  .geo-kb-article-thumb { width: 100%; min-height: 200px; }
  .geo-kb-article-body h3 { font-size: 16px; }
  .geo-kb-article-desc { -webkit-line-clamp: 2; }
  .geo-kb-sidebar { gap: 16px; }
  .geo-kb-detail-hero h1 { font-size: 22px; }
  .geo-kb-detail-meta { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  .geo-kb-q-badge { width: 28px; height: 28px; font-size: 12px; }
  .geo-kb-answer-inner { padding-left: 16px; }
}
