/* ============================================================
   list-row.css — 栏目页样式2：左列表+右侧栏
   适用栏目：身边动态、便民服务、文化综合 等
   ============================================================ */

/* 面包屑 */
.breadcrumb { padding: 18px 0 0; font-size: 15px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 8px; color: var(--border); }

/* 栏目页头部 */
.list-header {
  padding: 28px 0 20px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}
.list-header h1 {
  font-size: 28px; font-weight: 900;
  display: flex; align-items: center; gap: 14px;
}
.list-header h1 .title-bar { height: 32px; width: 6px; }
.list-header .list-desc { margin-top: 10px; font-size: 16px; color: var(--text-muted); line-height: 1.7; }

/* ===== 左右布局 ===== */
.row-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.row-main { flex: 1; min-width: 0; }
.row-sidebar { width: 300px; flex-shrink: 0; }

/* ===== 左侧简易列表 ===== */
.row-list { display: flex; flex-direction: column; gap: 2px; }
.row-item-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #fff;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.row-item-simple:hover {
  background: #f7f9fc;
  color: var(--blue);
  padding-left: 22px;
}
.row-item-simple-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.row-item-simple:hover .row-item-simple-title {
  color: var(--blue);
}
.row-item-simple-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 12px;
  white-space: nowrap;
}

/* ===== 右侧栏 ===== */
.sidebar-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.sidebar-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--border);
}
.sidebar-title .title-bar {
  height: 22px; width: 5px; border-radius: 3px;
}

/* 文字列表 */
.sidebar-text-list {
  list-style: none; margin: 0; padding: 6px 0;
}
.sidebar-text-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 18px;
  gap: 10px;
  transition: background 0.2s;
}
.sidebar-text-list li:hover { background: var(--bg); }
.sidebar-text-list li a {
  font-size: 14px; color: var(--text);
  line-height: 1.5;
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.2s;
}
.sidebar-text-list li a:hover { color: var(--blue); }
.sidebar-text-list li span {
  font-size: 12px; color: var(--text-muted);
  flex-shrink: 0;
}
/* 列表前置小圆点 */
.dot-icon {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  transition: background 0.2s;
}
.row-item-simple:hover .dot-icon {
  background: var(--blue);
}

/* 热门列表（带序号） */
.sidebar-text-list.hot li em {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 4px;
  font-size: 12px; font-style: normal; font-weight: 700;
  background: var(--border); color: var(--text-muted);
  flex-shrink: 0; margin-right: 8px;
  transition: all 0.2s;
}
.sidebar-text-list.hot li:nth-child(1) em { background: var(--red); color: #fff; }
.sidebar-text-list.hot li:nth-child(2) em { background: var(--orange); color: #fff; }
.sidebar-text-list.hot li:nth-child(3) em { background: var(--gold); color: #fff; }

/* 图片资讯网格 */
.sidebar-img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px;
}
.sidebar-img-item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.3s;
}
.sidebar-img-item:hover { transform: translateY(-2px); }
.sidebar-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.sidebar-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.sidebar-img-item:hover .sidebar-img-wrap img { transform: scale(1.08); }
.sidebar-img-item span {
  display: block;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  padding: 6px 2px 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.2s;
}
.sidebar-img-item:hover span { color: var(--blue); }

/* ===== 分页 ===== */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; padding: 36px 0 20px;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
  border: 2px solid var(--border); background: var(--white); color: var(--text-secondary);
  transition: all 0.2s;
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .row-sidebar { width: 260px; }
}

@media (max-width: 768px) {
  .row-layout { flex-direction: column; }
  .row-sidebar { width: 100%; }
  .sidebar-img-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

@media (max-width: 480px) {
  .sidebar-img-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pagination a, .pagination span { min-width: 34px; height: 34px; font-size: 14px; }
}