/* 列表页样式 */

/* 页面头部 */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 60px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  opacity: 0.9;
}

/* 列表布局 */
.list-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 40px 0 60px;
}

/* 侧边栏 */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  height: fit-content;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.sidebar-menu {
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sidebar-menu a {
  display: block;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.sidebar-menu a:last-child {
  border-bottom: none;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(196, 30, 36, 0.06);
  color: var(--primary);
  padding-left: 24px;
}

.sidebar-menu a.active {
  font-weight: 600;
  border-left: 3px solid var(--primary);
}

/* 列表内容 */
.list-content {
  min-height: 600px;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.list-title {
  font-size: 20px;
  font-weight: 600;
}

.list-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.list-count span {
  color: var(--primary);
  font-weight: 600;
}

/* 列表项样式 */
.news-list .news-item {
  padding: 20px 0;
}

.news-list .news-item:hover {
  padding-left: 12px;
}

.news-list .news-title {
  font-size: 16px;
}

/* 卡片列表 */
.card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card-list .card {
  display: flex;
  flex-direction: column;
}

.card-list .card-img {
  height: 180px;
}

/* 响应式 */
@media (max-width: 1199px) {
  .list-layout {
    grid-template-columns: 220px 1fr;
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .page-header {
    padding: 24px 0 20px;
  }

  .page-header h1 {
    font-size: 22px;
  }

  .page-header p {
    font-size: 13px;
  }

  .list-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px 0 40px;
  }

  .sidebar,
  .list-content {
    min-width: 0;
  }

  .sidebar {
    position: static;
  }

  .sidebar-menu {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 8px;
  }

  .sidebar-menu::-webkit-scrollbar {
    display: none;
  }

  .sidebar-menu a {
    white-space: nowrap;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .sidebar-menu a.active {
    border-left: none;
    border-bottom: 3px solid var(--primary);
  }

  .card-list {
    grid-template-columns: 1fr;
  }

  .list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
