/* ==================================================================
   项目卡 · 标准背景图 + Flex 结构（全新独立文件，无历史层污染）
   严格按用户给的结构实现：卡片独立 div + background-image + 固定高度
   ================================================================== */

/* 列表容器留间距（用户要求 margin-bottom:12px 在卡片上） */
.hm2-list { display: flex !important; flex-direction: column !important; }

.project-item {
  width: 100% !important;
  height: calc(6.5 * var(--u)) !important;
  background-image: url('/assets/card_project_item.png') !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
  margin-bottom: 12px !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  background-color: transparent !important;
  overflow: hidden !important;
  cursor: pointer !important;
}
.project-item:active { transform: scale(.99) !important; }
.left-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.medal {
  width: calc(2.2 * var(--u)) !important;
  height: calc(2.2 * var(--u)) !important;
  object-fit: contain !important;
  flex: 0 0 calc(2.2 * var(--u)) !important;
}
.medal-n {
  display: grid !important; place-items: center !important;
  font-size: 15px !important; font-weight: 800 !important; color: #0c6a8a !important;
  background: rgba(255,255,255,.6) !important; border-radius: 50% !important;
}
.avatar {
  width: calc(3.72 * var(--u)) !important;
  height: calc(3.72 * var(--u)) !important;
  border-radius: 14px !important;
  object-fit: cover !important;
  flex: 0 0 calc(3.72 * var(--u)) !important;
}
.info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
}
.title {
  font-size: calc(1.1 * var(--u)) !important;
  font-weight: bold !important;
  color: #082f49 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.tag {
  font-size: calc(0.76 * var(--u)) !important;
  color: #d97706 !important;
  background: rgba(245, 158, 11, 0.15) !important;
  padding: 2px calc(0.55 * var(--u)) !important;
  border-radius: 9999px !important;
  margin-top: 4px !important;
  width: fit-content !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}
.tag svg { width: 12px !important; height: 12px !important; }
.arrow {
  flex: 0 0 auto !important;
  width: 30px !important; height: 30px !important;
  margin-left: auto !important;
  border-radius: 50% !important;
  display: grid !important; place-items: center !important;
  background: rgba(255,255,255,.55) !important;
  border: 1px solid rgba(255,255,255,.75) !important;
  color: #0c6a8a !important;
}
.arrow svg { width: 18px !important; height: 18px !important; }

/* v7 · 修间距翻倍：.hm2-list 的 gap 与 .project-item 的 margin-bottom 双重叠加，
   导致卡片间距 21px（参考图约12px）。清单列表 gap 归零，只保留 margin-bottom:12px。 */
.hm2-list {
  gap: 0 !important;
}
.hm2-skeleton {
  margin-bottom: 12px !important;
}
/* 冲榜卡与列表之间的间距，保持与卡间距一致 */
.hm2-leaderboard { margin-bottom: 12px !important; }
