/* 商品对比：底部浮条 + 并排对比弹层 */

.cmp-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 60, 90, .16);
}
.cmp-bar[hidden] { display: none; }
.cmp-bar__text { font-size: 13px; color: var(--ink-700); }

/* 结果行里的「＋ 对比」按钮：选中后变实心 */
.cmp-toggle.is-on {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.cmp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 30, 45, .45);
}
body.cmp-open { overflow: hidden; }

.cmp-panel {
  width: min(980px, 100%);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  overflow: hidden;
}
.cmp-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.cmp-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-500);
  cursor: pointer;
}
.cmp-close:hover { color: var(--ink-900); }
.cmp-panel__body { padding: 6px 18px 20px; overflow: auto; }
.cmp-loading { padding: 26px 0; text-align: center; color: var(--ink-500); font-size: 13px; }

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}
.cmp-table th,
.cmp-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #EEF3F7;
  text-align: left;
  vertical-align: top;
}
.cmp-table thead th {
  position: sticky;
  top: 0;
  background: #F7FAFC;
  font-size: 13.5px;
  color: var(--ink-900);
}
.cmp-table thead th:first-child { width: 84px; }
.cmp-table .cmp-label,
.cmp-table tbody th { width: 84px; }
.cmp-table tbody th {
  color: var(--ink-500);
  font-weight: 500;
  background: #FBFDFE;
  white-space: nowrap;
}
.cmp-table .cmp-sub { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-400); font-weight: 400; }
.cmp-table .cmp-num { color: var(--accent-600); font-weight: 600; }
.cmp-table .cmp-actions { white-space: nowrap; }
.cmp-table .cmp-actions .btn { margin-right: 4px; }
