/* ============================================
   甘肃省图书馆 - 列表页样式
   ============================================ */

.list-wrap {
  background: #fff;
}

.list-top-line {
  height: 3px;
  background: #ffc067;
  margin: 0 -40px;
}

/* 单个列表项 */
.list-item {
  height: 210px;
  display: flex;
  align-items: center;
  padding: 0 -5px;
  position: relative;
}

.list-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5px;
  right: 5px;
  height: 1px;
  border-bottom: 1px dashed #dceaf8;
}

.list-img {
  width: 230px;
  height: 135px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-text {
  margin-left: 35px;
  flex: 1;
  padding-top: 0;
}

.list-item-title {
  font-size: 18px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.list-item-date {
  margin-top: 9px;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 9px;
}

.list-item-date::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #73a8df;
  flex-shrink: 0;
}

.list-item-desc {
  margin-top: 3px;
  font-size: 14px;
  color: #666;
  line-height: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 通知公告列表 */
.notice-item {
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 0px;
  border-bottom: 1px dashed #dceaf8;
}

.notice-dot {
  width: 7px;
  height: 7px;
  background: #eeceb1;
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-right: 12px;
}

.notice-title {
  font-size: 20px;
  color: #333;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-date {
  font-size: 18px;
  color: #888;
  flex-shrink: 0;
  margin-left: 20px;
}

/* 卡片式列表模板（栏目列表模板=card） */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 24px;
  padding: 30px 0;
}

.card-item {
  display: block;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow .2s;
}

.card-item:hover {
  box-shadow: 0 4px 14px rgba(46, 106, 186, 0.12);
}

.card-img {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-item-title {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  margin: 14px 16px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-item-date {
  font-size: 13px;
  color: #999;
  margin: 8px 16px 16px;
}



/* 书目推荐卡片 */
.book-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 35px 32px;
  margin-top: 35px;
}

.book-card2 {
  width: 183px;
  display: block;
}

.book-card2-img {
  width: 183px;
  height: 212px;
  background: #fff;
  box-shadow: -2px 0 6px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.book-card2-img img {
  max-width: 180px;
  max-height: 210px;
  object-fit: contain;
}

.book-card2-title {
  font-size: 15px;
  color: #333;
  margin-top: 26px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-main-book {
  padding: 0 20px 40px !important;
}
.book-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 35px 32px;
  margin-top: 35px;
}
