/* ============================================================
   casematch.css —— 相似公开案例 + 公开案例库（案例库·块2）
   藏青深蓝 + 金色；与主站风格一致，移动端自适应。
   ============================================================ */

.cm-block {
  margin-top: 14px;
  border: 1px solid var(--border, #d9e1ec);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.cm-block-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0f2747 0%, #163a66 100%);
}
.cm-block-title {
  color: #f2c76b; font-weight: 700; font-size: 15px; letter-spacing: 0.5px;
}
.cm-block-title::before { content: '⚖ '; }
.cm-block-count { color: #cdd8e8; font-size: 12.5px; }

.cm-card { border-bottom: 1px solid #e6ecf4; }
.cm-card:last-child { border-bottom: none; }

.cm-card-head {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #fff; border: none; cursor: pointer;
  text-align: left;
}
.cm-card-head:hover { background: #f7f9fc; }
.cm-card-head.cm-collapsed .cm-chevron { transform: rotate(-90deg); }

.cm-score {
  flex: 0 0 auto; width: 52px; text-align: center;
  background: linear-gradient(160deg, #f4cf78, #e2ad3e);
  border-radius: 10px; padding: 6px 0;
}
.cm-score b { display: block; color: #1c2c44; font-size: 18px; line-height: 1.1; }
.cm-score i { font-style: normal; font-size: 10.5px; color: #5c4a1e; }

.cm-head-text { flex: 1 1 auto; min-width: 0; }
.cm-title {
  display: block; font-weight: 600; color: #16263f; font-size: 14px; line-height: 1.45;
}
.cm-meta {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px;
  font-size: 12px; color: #6b7a90;
}
.cm-type {
  color: #b8872e; font-weight: 600;
}
.cm-chevron { flex: 0 0 auto; color: #94a2b5; transition: transform 0.2s; font-size: 14px; }

.cm-card-body { padding: 4px 16px 14px 16px; }

.cm-signals {
  background: #f4f7fb; border: 1px solid #e2e9f3; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 10px;
}
.cm-signals-title { font-size: 12.5px; color: #5b6b82; margin-bottom: 6px; font-weight: 600; }
.cm-signal {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 4px 0; font-size: 13px; border-top: 1px dashed #dbe3ee;
}
.cm-signal:first-of-type { border-top: none; }
.cm-signal-label {
  flex: 0 0 auto; color: #0f2747; font-weight: 600;
}
.cm-signal-detail { flex: 1 1 200px; color: #3c4a5f; }
.cm-signal-contrib {
  flex: 0 0 auto; color: #b8872e; font-weight: 700; font-variant-numeric: tabular-nums;
}

.cm-section { margin-top: 8px; }
.cm-section-title {
  font-size: 12.5px; font-weight: 700; color: #0f2747; margin-bottom: 3px;
}
.cm-section-title::before {
  content: ''; display: inline-block; width: 3px; height: 12px;
  background: #d9ac43; border-radius: 2px; margin-right: 6px; vertical-align: -1px;
}
.cm-section-text { font-size: 13px; color: #3c4a5f; line-height: 1.65; white-space: pre-wrap; }
.cm-lessons { margin: 4px 0 0 0; padding-left: 20px; font-size: 13px; color: #3c4a5f; line-height: 1.7; }

.cm-footer { margin-top: 10px; font-size: 12.5px; color: #5b6b82; }
.cm-source-link { color: #1d4f8e; text-decoration: none; border-bottom: 1px solid #a8c2df; }
.cm-source-link:hover { color: #163a66; }
.cm-source-name { color: #5b6b82; }

.cm-disclaimer {
  margin-top: 8px; padding: 7px 10px; font-size: 12px; color: #8a6d2b;
  background: #fdf6e8; border-radius: 8px; line-height: 1.55;
}

.cm-more { display: block; margin: 10px auto 14px; }

/* ---------------- 案例库 Tab ---------------- */
.cm-lib-card { margin-bottom: 12px; }
.cm-lib-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.cm-lib-head .card-title { font-size: 15px; line-height: 1.5; }
.cm-lib-type {
  flex: 0 0 auto; font-size: 12px; color: #b8872e; font-weight: 600;
  background: #fbf3e2; border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.cm-lib-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0;
  font-size: 12.5px; color: #6b7a90;
}
.cm-lib-facts {
  font-size: 13px; color: #3c4a5f; line-height: 1.65; margin: 6px 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cm-lib-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }

.cm-pager {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 16px 0;
}
.cm-page-info { font-size: 13px; color: #5b6b82; font-variant-numeric: tabular-nums; }

.cm-detail-title { font-size: 19px; color: #0f2747; line-height: 1.5; margin: 12px 0 4px; }
.cm-amounts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin: 12px 0;
}
.cm-amount {
  background: #f4f7fb; border: 1px solid #e2e9f3; border-radius: 10px; padding: 10px 12px;
}
.cm-amount span { display: block; font-size: 12px; color: #6b7a90; margin-bottom: 3px; }
.cm-amount b { color: #0f2747; font-size: 15px; font-variant-numeric: tabular-nums; }
.cm-detail-section { margin-top: 14px; font-size: 13.5px; color: #3c4a5f; line-height: 1.7; }
.cm-detail-section h4 {
  font-size: 13.5px; color: #0f2747; margin: 0 0 6px; font-weight: 700;
}
.cm-detail-section h4::before {
  content: ''; display: inline-block; width: 3px; height: 13px;
  background: #d9ac43; border-radius: 2px; margin-right: 7px; vertical-align: -1px;
}

@media (max-width: 720px) {
  .cm-block-head { padding: 10px 12px; }
  .cm-card-head { padding: 10px 12px; gap: 9px; }
  .cm-card-body { padding: 2px 12px 12px; }
  .cm-score { width: 46px; }
  .cm-score b { font-size: 16px; }
  .cm-title { font-size: 13.5px; }
  .cm-lib-head { flex-direction: column; gap: 5px; }
  .cm-detail-title { font-size: 17px; }
}
