/* ============================================================
   KEWO DSE · news.css（文章列表页专属）
   移动优先；工具栏 / 说明条 / 空状态 / 加载更多
   ============================================================ */

/* 家长指南说明条 */
.notice-parent { margin-top: 20px; }

/* 列表区上方收窄 */
.section-news-list { padding-top: 28px; }

/* ---------- 筛选工具栏 ---------- */
.news-toolbar {
  /* position: sticky; */
  top: var(--header-h);
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-toolbar .tabs { gap: 6px; }
.news-toolbar .tab-btn { padding: 6px 14px; font-size: 13.5px; }

/* 标签筛选行 */
.tag-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: var(--c-bg-soft);
  font-size: 12.5px;
  color: var(--c-text-2);
  cursor: pointer;
  transition: all .15s ease;
}
.tag-chip:hover { border-color: var(--c-blue); color: var(--c-blue); }
.tag-chip.active {
  background: rgba(47, 111, 228, .1);
  border-color: var(--c-blue);
  color: var(--c-blue);
  font-weight: 600;
}

/* 搜索 + 计数 */
.toolbar-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.search-input {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 360px;
  padding: 9px 14px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  color: var(--c-text);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-input:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 228, .12);
}
.result-count {
  font-size: 13px;
  color: var(--c-text-2);
  white-space: nowrap;
  margin-left: auto;
}

/* ---------- 卡片补充 ---------- */
.article-card-wrap[hidden] { display: none; }
.card-meta .parent-flag {
  color: var(--cat-parent);
  font-weight: 600;
  background: rgba(110, 90, 168, .1);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11.5px;
  white-space: nowrap;
}

/* ---------- 加载更多 / 空状态 ---------- */
/* 分页器（无 JS 时隐藏：no-js 下全部文章直接可读） */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.no-js .pagination { display: none; }
.pagination[hidden] { display: none; }
.page-btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
  transition: border-color .15s ease, color .15s ease;
}
.page-btn:hover { border-color: var(--c-blue); color: var(--c-blue); text-decoration: none; }
.page-btn.disabled { opacity: .4; pointer-events: none; }
.page-nums { display: inline-flex; gap: 8px; }
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
.page-num:hover { border-color: var(--c-blue); color: var(--c-blue); text-decoration: none; }
.page-num.current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; cursor: default; }
#empty-state { margin-top: 8px; }
#empty-state .btn { margin-top: 16px; }

/* ---------- 375px 无溢出 ---------- */
@media (max-width: 480px) {
  .news-toolbar { position: static; padding: 12px; }
  .search-input { flex-basis: 100%; max-width: none; }
  .result-count { margin-left: 0; }
  .card-meta { flex-wrap: wrap; }
}

.tag-filter { max-height: 92px; overflow: hidden; }
