/* ============================
   list.css - 公告 / 新闻列表页 共享样式
   hbyv10syc1 IDC 基础业务模板
   ============================ */

/* ======================== 页面 Banner ======================== */

.list-banner {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 60%, #3B82F6 100%);
  padding: 52px 0 48px;
}

.list-banner .section-content { padding-bottom: 0; }

.list-banner-title {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.list-banner-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  line-height: 1.7;
}

/* ======================== 主体区域 ======================== */

.list-body {
  background: #F8FAFC;
  padding: 36px 0 80px;
  min-height: 480px;
}

.list-body .section-content { padding-top: 0; }

/* ======================== 分类过滤 Tabs ======================== */

.list-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.filter-tab:hover {
  color: #2563EB;
  border-color: #93C5FD;
  background: #EFF6FF;
}

.filter-tab.active {
  color: #fff;
  background: #2563EB;
  border-color: #2563EB;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.filter-tab .tab-count {
  font-size: 11px;
  opacity: 0.75;
  font-weight: 400;
}

.filter-tab.active .tab-count { opacity: 0.85; }

/* ======================== 列表卡片 ======================== */

.list-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
}

.list-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 13px;
  color: #94A3B8;
}

.list-count { font-weight: 500; }

/* 列表项 */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid #F8FAFC;
  transition: background 0.15s ease;
}

.list-item:last-child { border-bottom: none; }

.list-item:hover { background: #FAFBFF; }

.list-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.list-item-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
  flex-shrink: 0;
  transition: background 0.15s;
}

.list-item:hover .list-item-icon { background: #2563EB; }

.list-item-title {
  font-size: 14px;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
  flex: 1;
}

.list-item:hover .list-item-title { color: #2563EB; }

.list-item-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.list-item-date {
  font-size: 12px;
  color: #94A3B8;
  white-space: nowrap;
}

.list-item-arrow {
  font-size: 14px;
  color: #CBD5E1;
  transition: color 0.15s, transform 0.15s;
}

.list-item:hover .list-item-arrow {
  color: #2563EB;
  transform: translateX(2px);
}

/* 空状态 */
.list-empty {
  padding: 64px 24px;
  text-align: center;
  color: #94A3B8;
  font-size: 14px;
}

/* ======================== 分页 ======================== */

.list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid #F1F5F9;
  background: #fff;
  border-radius: 0 0 12px 12px;
}

.pagination-info {
  font-size: 13px;
  color: #94A3B8;
}

.pagination-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #475569;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.page-btn:hover {
  color: #2563EB;
  border-color: #93C5FD;
  background: #EFF6FF;
}

.page-btn.active {
  color: #fff;
  background: #2563EB;
  border-color: #2563EB;
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.page-ellipsis {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #94A3B8;
}
