/* 内容中心列表页：分类筛选 + 关键词搜索（脚本仅做渐进增强） */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.insight-filter {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: #fff;
}

/* 显式压过组件自身的 display 声明，保证 hidden 属性真实隐藏 */
.insight-filter[hidden],
.insight-card[hidden],
.insight-empty[hidden] {
  display: none !important;
}

.insight-filter-row input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #cddbf0;
  border-radius: 6px;
  color: #142448;
  background: #f7faff;
  font-size: 15px;
  font-family: inherit;
}

.insight-filter-row input:focus {
  border-color: #2467e8;
  background: #fff;
  outline: 2px solid rgb(36 103 232 / 18%);
}

.insight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.insight-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #cddbf0;
  border-radius: 18px;
  color: #314365;
  background: #fff;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.insight-chip:hover {
  border-color: #9dbce8;
  color: #1748bb;
}

.insight-chip[aria-pressed='true'] {
  border-color: #2467e8;
  color: #fff;
  background: #2467e8;
}

.insight-status {
  margin: 0;
  color: #6b7b98;
  font-size: 12px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: #fff;
}

.insight-card:hover {
  border-color: #b9cfee;
  box-shadow: 0 16px 34px rgb(33 72 135 / 8%);
}

.insight-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #6b7b98;
  font-size: 12px;
}

.insight-category {
  padding: 3px 9px;
  border-radius: 4px;
  color: #1748bb;
  background: #edf3ff;
  font-weight: 700;
}

.insight-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 750;
}

.insight-card h3 a:hover {
  color: #1748bb;
}

.insight-card p {
  margin: 0;
  color: #52617c;
  font-size: 14px;
  line-height: 1.85;
}

.insight-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e8eef7;
  color: #6b7b98;
  font-size: 12px;
}

.insight-card-foot a {
  color: #2467e8;
  font-weight: 700;
}

.insight-empty {
  margin: 18px 0 0;
  color: #6b7b98;
  font-size: 14px;
}

@media (max-width: 960px) {
  .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .insight-grid { grid-template-columns: minmax(0, 1fr); }
  .insight-card { padding: 20px 18px; }
}
