/* ===== 列表页通用样式 ===== */
.page-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

/* 左侧栏目导航 */
.side-nav {
  background: #fff;
  border: 1px solid var(--border-1);
  overflow: hidden;
}
.side-nav-head {
  background: linear-gradient(180deg, var(--gov-red) 0%, var(--gov-red-deep) 100%);
  color: #fff;
  padding: 20px var(--space-md);
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-serif);
  text-align: center;
}
.side-nav-list { padding: 8px 0; }
.side-nav-list a {
  display: block;
  padding: 14px var(--space-md) 14px 36px;
  color: var(--text-1);
  font-size: 15px;
  border-left: 3px solid transparent;
  position: relative;
  transition: all .2s;
}
.side-nav-list a::before {
  content: ""; position: absolute;
  left: 20px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; background: var(--gov-red);
  border-radius: 50%;
}
.side-nav-list a:hover,
.side-nav-list a.active {
  background: #fff5f5;
  color: var(--gov-red);
  border-left-color: var(--gov-red);
  text-decoration: none;
  font-weight: 600;
}

/* 右侧主内容 */
.list-main {
  background: #fff;
  border: 1px solid var(--border-1);
  padding: var(--space-lg) var(--space-xl);
  min-height: 600px;
}
.list-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 2px solid var(--gov-red);
  padding-bottom: 12px;
  margin-bottom: var(--space-lg);
}
.list-head h1 {
  font-size: 22px;
  color: var(--gov-red);
  font-weight: 700;
}
.list-head .count {
  font-size: 13px;
  color: var(--text-3);
}

/* 筛选条 */
.list-filter {
  display: flex; flex-wrap: wrap; gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-section);
  margin-bottom: var(--space-md);
  font-size: 14px;
  align-items: center;
}
.list-filter label { color: var(--text-3); }
.list-filter .filter-btns { display: flex; flex-wrap: wrap; gap: 4px; }
.list-filter .filter-btns button {
  padding: 4px 12px;
  border: 1px solid var(--border-1);
  font-size: 13px;
  border-radius: 2px;
  background: #fff;
  transition: all .15s;
}
.list-filter .filter-btns button:hover { border-color: var(--gov-red); color: var(--gov-red); }
.list-filter .filter-btns button.active {
  background: var(--gov-red); color: #fff; border-color: var(--gov-red);
}
.list-filter-search { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.list-filter-search input {
  padding: 6px 10px;
  border: 1px solid var(--border-1);
  width: 180px;
  font-size: 13px;
}
.list-filter-search button {
  padding: 6px 14px;
  background: var(--gov-red);
  color: #fff;
  font-size: 13px;
}

/* 列表条目 */
.article-list { list-style: none; }
.article-list li {
  display: flex; align-items: center; gap: var(--space-md);
  padding: 18px 0;
  border-bottom: 1px dashed var(--border-1);
}
.article-list li::before {
  content: ""; width: 6px; height: 6px;
  background: var(--gov-red); flex-shrink: 0;
  transform: rotate(45deg);
}
.article-list li .meta-cat {
  font-size: 12px;
  color: var(--gov-red);
  border: 1px solid var(--gov-red);
  padding: 2px 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.article-list li a.title {
  flex: 1;
  font-size: 16px;
  color: var(--text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-list li a.title:hover { color: var(--gov-red); }
.article-list li time {
  color: var(--text-3);
  font-size: 13px;
  flex-shrink: 0;
}

/* 政策文件特殊样式（表格视图） */
.policy-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.policy-table thead th {
  background: var(--bg-section);
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 2px solid var(--gov-red);
}
.policy-table tbody td {
  padding: 16px 10px;
  border-bottom: 1px dashed var(--border-1);
  vertical-align: top;
}
.policy-table tbody tr:hover { background: #fffaf7; }
.policy-table tbody td a { color: var(--text-1); }
.policy-table tbody td a:hover { color: var(--gov-red); }
.policy-table .col-num { color: var(--gov-blue); white-space: nowrap; }
.policy-table .col-date { color: var(--text-3); white-space: nowrap; }

/* 专题汇总：网格 */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.topic-grid-card {
  display: block;
  height: 220px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}
.topic-grid-card .bg {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: var(--space-lg);
  transition: transform .3s;
}
.topic-grid-card:hover .bg { transform: scale(1.04); }
.topic-grid-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.5) 100%);
  z-index: 1;
}
.topic-grid-card .bg > * { position: relative; z-index: 2; }
.topic-grid-card .label {
  font-size: 12px; opacity: .85;
  border: 1px solid rgba(255,255,255,.5);
  padding: 2px 10px;
  align-self: flex-start;
  border-radius: 2px;
}
.topic-grid-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; font-family: var(--font-serif); }
.topic-grid-card p { font-size: 13px; opacity: .9; }
.topic-grid-card:hover { color: #fff; text-decoration: none; }

/* 分页 */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px;
  margin-top: var(--space-xl);
  font-size: 14px;
}
.pagination button, .pagination span {
  min-width: 36px; height: 36px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--border-1);
  color: var(--text-1);
}
.pagination button:hover { border-color: var(--gov-red); color: var(--gov-red); }
.pagination button.active {
  background: var(--gov-red); color: #fff; border-color: var(--gov-red);
}
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination .info { border: 0; background: transparent; color: var(--text-3); }

/* 空态 */
.empty {
  padding: 80px 0;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 1199px) {
  .page-wrap { grid-template-columns: 200px 1fr; gap: var(--space-lg); }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-wrap { grid-template-columns: 1fr; padding: var(--space-md) 0; }
  .side-nav-list { display: flex; overflow-x: auto; padding: 0; }
  .side-nav-list a { white-space: nowrap; padding: 12px 16px 12px 24px; border-left: 0; border-bottom: 2px solid transparent; }
  .side-nav-list a.active { border-left: 0; border-bottom-color: var(--gov-red); }
  .side-nav-list a::before { left: 8px; }
  .list-main { padding: var(--space-md); }
  .article-list li { flex-wrap: wrap; padding: 12px 0; }
  .article-list li a.title { font-size: 14px; white-space: normal; }
  .list-filter-search { width: 100%; margin-left: 0; }
  .list-filter-search input { flex: 1; width: auto; }
  .topic-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .topic-grid-card { height: 180px; }
  .policy-table { font-size: 13px; }
  .policy-table thead th, .policy-table tbody td { padding: 10px 6px; }
}
