/* ========================================
   列表页（自学考试 / 通知公告）— 对齐 Figma 02列表 node 45:306
   依赖：css/style.css（公共头尾）
======================================== */

:root {
  --list-bg: #f6f6f6;
  --list-sidebar-title: #0071b6;
  --list-sidebar-active-bg: #bfe3f9;
  --list-text: #333;
  --list-muted: #656565;
  --list-meta: #999;
  --list-rule: #e8e8e8;
  --list-card-gap: 5px;
}

/* ----- 页面主区（无首页 banner / 无轮播）----- */
.list-page {
  background: var(--list-bg);
  padding: 20px 0 56px;
  min-height: 60vh;
}

.list-page-panel {
  max-width: 1600px;
  margin: 0 auto;
  padding: 17px 15px 40px;
  background: #fff;
  display: grid;
  grid-template-columns: 242px 1fr;
  gap: 43px;
  align-items: start;
  box-sizing: border-box;
}

/* ----- 左侧栏 ----- */
.list-sidebar {
  width: 242px;
  max-width: 100%;
}

.list-sidebar-head {
  height: 68px;
  background: var(--list-sidebar-title);
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  padding: 0 18px;
  position: relative;
}

.list-sidebar-head::before {
  content: '';
  width: 4px;
  height: 20px;
  background: #fff;
  border-radius: 2.5px;
  margin-right: 10px;
  flex-shrink: 0;
}

.list-sidebar-title-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 25px;
}

.list-sidebar-body {
  background: #f6f7f8;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  border: 1px solid #eee;
  border-top: none;
}

.list-side-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-side-nav li {
  border-bottom: 1px solid var(--list-rule);
  min-height: 56px;
}

.list-side-nav li:last-child {
  border-bottom: none;
}

.list-side-nav a {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: start;
  justify-content: flex-start;
  min-height: 56px;
  padding: 0 14px 0 18px;
  font-size: 16px;
  color: var(--list-text);
  line-height: 1.35;
  transition: background 0.2s;
}

.list-side-nav .side-label {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
}

.list-side-nav a:hover {
  background: rgba(0, 113, 182, 0.06);
}

.list-side-nav li.is-active a {
  background: var(--list-sidebar-active-bg);
  color: var(--list-sidebar-title);
  font-weight: 500;
}

.list-side-nav .side-label::before {
  content: '·';
  margin-right: 4px;
}

.list-side-nav .side-arrow {
  width: 10px;
  height: 10px;
  object-fit: contain;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  opacity: 0.55;
  display: block;
  margin-left: auto;
  align-self: center;
}

.list-side-nav li.is-active .side-arrow {
  opacity: 1;
}

/* ----- 右侧主列 ----- */
.list-main {
  min-width: 0;
}

.list-breadcrumb-bar {
  min-height: 64px;
  background: var(--list-bg);
  display: flex;
  align-items: center;
  padding: 0 6px 0 0;
  margin-bottom: 0;
}

.list-breadcrumb-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-bc-accent {
  width: 5px;
  height: 21px;
  background: var(--list-sidebar-title);
  border-radius: 3.5px;
  flex-shrink: 0;
}

.list-breadcrumb {
  font-size: 16px;
  color: #000;
  line-height: 36px;
}

.list-breadcrumb a {
  color: inherit;
}

.list-breadcrumb a:hover {
  color: var(--list-sidebar-title);
}

.list-breadcrumb-sep {
  margin: 0 12px;
  opacity: 0.45;
}

/* 文章列表 */
.list-articles {
  background: #fff;
  padding-top: 8px;
}

.list-item-article {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 5px solid var(--list-bg);
}

.list-item-article:last-of-type {
  margin-bottom: 28px;
}

.list-item-title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  line-height: 36px;
  margin: 0 0 6px;
  max-width: 100%;
}

.list-item-title a {
  color: inherit;
}

.list-item-title a:hover {
  color: var(--list-sidebar-title);
}

.list-item-excerpt {
  font-size: 14px;
  color: var(--list-muted);
  line-height: 30px;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.list-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.list-meta-left,
.list-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--list-meta);
  line-height: 30px;
}

.list-meta-left img,
.list-meta-right img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.list-meta-views img {
  width: 18px;
  height: 14px;
  object-fit: contain;
}

/* 分页 */
.list-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 19px;
  padding: 8px 0 24px;
}

.list-page-btn {
  box-sizing: border-box;
  min-width: 47px;
  height: 36px;
  padding: 0 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid #eee;
  background: #fff;
  color: #aaa;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.list-page-btn:hover:not(:disabled) {
  border-color: var(--list-sidebar-title);
  color: var(--list-sidebar-title);
}

.list-page-btn.is-active {
  background: var(--list-sidebar-title);
  color: #fff;
  border-color: var(--list-sidebar-title);
}

.list-page-btn:disabled {
  cursor: default;
  opacity: 0.9;
}

/* ----- 响应式 ----- */
@media (max-width: 1200px) {
  .list-page-panel {
    grid-template-columns: 220px 1fr;
    gap: 28px;
    padding: 16px 12px 32px;
  }

  .list-sidebar {
    width: 220px;
  }
}

@media (max-width: 1024px) {
  .list-page-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 12px 12px 28px;
  }

  .list-sidebar {
    width: 100%;
  }

  .list-sidebar-body {
    border-radius: 0 0 10px 10px;
  }

  .list-side-nav a {
    min-height: 48px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .list-page {
    padding: 12px 0 40px;
  }

  .list-page-panel {
    padding: 10px 0 20px;
    background: transparent;
    gap: 16px;
  }

  .list-sidebar {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 50, 100, 0.07);
  }

  .list-sidebar-head {
    border-radius: 12px 12px 0 0;
  }

  .list-sidebar-body {
    border-radius: 0 0 12px 12px;
  }

  .list-side-nav {
    display: block;
  }

  .list-side-nav li {
    border-right: none;
  }

  .list-breadcrumb-bar {
    min-height: 52px;
    padding: 0 4px;
    border-radius: 8px;
  }

  .list-breadcrumb {
    font-size: 14px;
    line-height: 1.5;
  }

  .list-item-title {
    font-size: 17px;
    line-height: 1.45;
  }

  .list-item-excerpt {
    -webkit-line-clamp: 4;
    font-size: 13px;
    line-height: 1.65;
  }

  .list-item-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-meta-right {
    align-self: flex-end;
  }

  .list-pagination {
    gap: 10px;
  }

  .list-page-btn {
    min-width: 42px;
    height: 34px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .list-item-title {
    font-size: 15px;
  }

  .list-bc-accent {
    height: 18px;
  }
}
