/* ============ 子栏目分类卡片（qa_list.html） ============ */
.qa-cat-section { margin-bottom: 60px; }
.qa-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.qa-cat-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s;
  text-decoration: none;
}
.qa-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(26,115,232,0.15);
}
.qa-cat-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef2f7;
}
.qa-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.qa-cat-card:hover .qa-cat-img img { transform: scale(1.08); }
.qa-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,58,92,0) 50%, rgba(26,58,92,0.5) 100%);
}
.qa-cat-body { padding: 22px 22px 24px; }
.qa-cat-body h3 {
  font-size: 18px;
  color: #1a3a5c;
  margin-bottom: 8px;
  font-weight: 600;
}
.qa-cat-body p {
  font-size: 13px;
  color: #7a8fa6;
  line-height: 1.6;
  margin-bottom: 12px;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qa-cat-more {
  font-size: 13px;
  color: #1a73e8;
  font-weight: 500;
}

/* ============ 子栏目文章列表（qa_sub_list.html） ============ */
.qa-sub-main { padding: 40px 0 60px; background: #f7f9fc; }

.qa-sub-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-radius: 14px;
  padding: 8px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.qa-sub-item {
  display: block;
  padding: 20px 28px;
  border-bottom: 1px dashed #eef2f7;
  transition: all 0.2s;
  text-decoration: none;
}
.qa-sub-item:last-child { border-bottom: none; }
.qa-sub-item:hover {
  background: #f7f9fc;
  padding-left: 34px;
}
.qa-sub-item:hover .qa-sub-title { color: #1a73e8; }

.qa-sub-title {
  font-size: 16px;
  color: #1a3a5c;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.qa-sub-desc {
  font-size: 14px;
  color: #7a8fa6;
  line-height: 1.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #a0b0c2;
  font-size: 15px;
  background: #fff;
  border-radius: 14px;
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .qa-cat-grid { grid-template-columns: 1fr; }
  .qa-sub-item { padding: 16px 18px; }
  .qa-sub-item:hover { padding-left: 22px; }
  .qa-sub-title { font-size: 15px; }
  .qa-sub-desc { font-size: 13px; }
}