/* ============================================================
   virtual_list.css — 虚拟专题列表页（b12 版式）
   竖版封面卡片网格；与 issue_browser 的封面模式同一视觉语言。
   ============================================================ */

.vl-page { padding-bottom: 2.5rem; }
.vl-page .crumb { margin-bottom: .2rem; }
.vl-page .crumb .crumb-sep { color: #b5b5c3; margin: 0 .4rem; }

/* 小标题 + 数量 */
.vl-head {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: 1rem;
}

.vl-section-title {
  position: relative;
  margin: 0;
  padding-left: .75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #181c32;
}

.vl-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: .22rem;
  border-radius: .22rem;
  background: #3445e5;
}

.vl-count { color: #7e8299; font-size: .85rem; }
.vl-count b { color: #3445e5; font-weight: 600; }

/* ---------- 网格（自带 flex 栅格，不依赖 Bootstrap col） ---------- */
.vl-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -.45rem;
}

.vl-cell {
  width: 50%;
  padding: .45rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .vl-cell { width: 33.3333%; }
}

@media (min-width: 1200px) {
  .vl-cell { width: 25%; }
}

/* ---------- 卡片 ---------- */
.vl-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 1.5rem;
  border: 1px solid #e4e6ef;
  border-radius: .6rem;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.vl-card:hover {
  transform: translateY(-4px);
  border-color: #cfd6ff;
  box-shadow: 0 12px 26px -12px rgba(52, 69, 229, .35);
  text-decoration: none;
}

/* 封面（竖版书封比例 260x368） */
.vl-cover {
  position: relative;
  width: 100%;
  padding-top: 138%;
  background: #f1f3ff;
  overflow: hidden;
}

.vl-card.is-topic .vl-cover { padding-top: 100%; }

.vl-cover img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s ease;
}

.vl-card:hover .vl-cover img { transform: scale(1.04); }

.vl-cover-ph {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  color: #3445e5;
  background: linear-gradient(135deg, #f1f3ff 0%, #e6eaff 100%);
}

/* 信息区 */
.vl-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: .9rem 1rem 1rem;
}

.vl-name {
  margin: 0 0 .45rem;
  font-size: .95rem;
  line-height: 1.5;
  font-weight: 600;
  color: #181c32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s ease;
}

.vl-card:hover .vl-name { color: #3445e5; }

.vl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .7rem;
  margin: 0 0 .5rem;
  font-size: .78rem;
  color: #7e8299;
}

.vl-meta .vl-date,
.vl-meta .vl-editor {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.vl-meta .vl-editor {
  padding: 0 .4rem;
  border-radius: .25rem;
  background: #f1f3ff;
  color: #3445e5;
}

.vl-desc {
  margin: 0 0 .6rem;
  font-size: .82rem;
  line-height: 1.7;
  color: #b5b5c3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vl-more {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  margin-top: auto;
  font-size: .82rem;
  font-weight: 600;
  color: #3445e5;
}

.vl-more svg { transition: transform .18s ease; }
.vl-card:hover .vl-more svg { transform: translateX(3px); }

/* 空数据 */
.vl-empty {
  padding: 3.5rem 1rem;
  text-align: center;
  color: #7e8299;
  border: 1px dashed #e4e6ef;
  border-radius: .6rem;
  background: #fff;
}

.vl-empty svg { color: #c8cde8; margin-bottom: .6rem; }
.vl-empty p { margin: 0; font-size: .9rem; }

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
  .vl-page .page-head { margin-top: 0 !important; }
  .vl-page .page-head .ph-desc { display: none; }
  .vl-page .ph-actions { justify-content: flex-start !important; }
  .vl-card { margin-bottom: 1rem; }
  .vl-info { padding: .7rem .75rem .85rem; }
  .vl-name { font-size: .88rem; }
  .vl-desc { -webkit-line-clamp: 2; margin-bottom: .45rem; }
  .vl-more { font-size: .78rem; }
}
