/* 对标库：与灵感库同一视觉语言，表格优先、少文字。 */
body.benchmark-hub-active .inspiration-workspace { display: none !important; }

#benchmark-hub {
  min-height: calc(100dvh - 150px);
  padding: 24px 26px 64px;
  background: var(--ih-bg, #f5f0ee);
  color: var(--ih-text, #24202b);
}
#benchmark-hub[hidden] { display: none; }

.bh-icon { width: 15px; height: 15px; flex: none; }

.bh-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bh-kicker { color: var(--ih-faint, #a39799); font-size: 9px; letter-spacing: .14em; }
.bh-heading h1 { margin: 4px 0 0; font-size: 26px; font-weight: 640; }
.bh-heading h1 sup { margin-left: 6px; color: var(--ih-faint, #a39799); font-size: 12px; font-weight: 500; }
.bh-sub { color: var(--ih-muted, #81777b); font-size: 12px; }
.bh-back { display: inline-block; margin-bottom: 6px; padding: 0; border: 0; background: none; color: var(--ih-muted, #81777b); font-size: 12px; cursor: pointer; }
.bh-back:hover { color: var(--ih-accent, #df655b); }
.bh-heading-actions { display: flex; gap: 10px; align-items: center; }

.bh-button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1px solid var(--ih-line-strong, #cfc2bd); border-radius: 999px; background: var(--ih-surface, #fffdfb); color: var(--ih-text, #24202b); font-size: 12px; font-weight: 560; cursor: pointer; text-decoration: none; }
.bh-button:hover { border-color: var(--ih-accent, #df655b); }
.bh-button:disabled { opacity: .55; cursor: wait; }
.bh-primary { background: var(--ih-accent, #df655b); border-color: var(--ih-accent, #df655b); color: #fff; }
.bh-primary:hover { background: var(--ih-accent-hover, #ca554c); }

.bh-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--ih-line, #e3d9d5); border-radius: 50%; background: var(--ih-surface, #fffdfb); color: var(--ih-muted, #81777b); cursor: pointer; }
.bh-icon-button:hover { color: var(--ih-accent, #df655b); border-color: var(--ih-accent, #df655b); }
.bh-icon-button:disabled { opacity: .45; cursor: wait; }
.bh-icon-button.bh-danger:hover { color: var(--ih-danger, #a7443e); border-color: var(--ih-danger, #a7443e); }

.bh-table { width: 100%; margin-top: 22px; border-collapse: collapse; }
.bh-table th { padding: 0 12px 10px; color: var(--ih-faint, #a39799); font-size: 10px; font-weight: 560; text-align: left; border-bottom: 1px solid var(--ih-line-strong, #cfc2bd); }
.bh-table td { padding: 14px 12px; border-bottom: 1px solid var(--ih-line, #e3d9d5); font-size: 13px; }
.bh-table tbody tr { cursor: pointer; }
.bh-table tbody tr:hover { background: var(--ih-muted-surface, #f9f5f2); }
.bh-table td strong { display: block; font-size: 13px; font-weight: 620; }
.bh-table td small { display: block; margin-top: 2px; color: var(--ih-faint, #a39799); font-size: 10px; }
.bh-actions { white-space: nowrap; text-align: right; }
.bh-actions .bh-icon-button { margin-left: 6px; }
.bh-footnote { margin-top: 10px; color: var(--ih-faint, #a39799); font-size: 10px; }

.bh-metrics { display: flex; gap: 34px; flex-wrap: wrap; margin: 24px 0 0; padding: 18px 0; border-top: 1px solid var(--ih-line, #e3d9d5); border-bottom: 1px solid var(--ih-line, #e3d9d5); }
.bh-metric dt { color: var(--ih-faint, #a39799); font-size: 10px; }
.bh-metric dd { margin: 4px 0 0; font-size: 22px; font-weight: 640; }
.bh-metric dd small { font-size: 12px; }

.bh-sort-bar { display: flex; gap: 8px; margin-top: 20px; }
.bh-sort-bar button { padding: 6px 14px; border: 1px solid var(--ih-line, #e3d9d5); border-radius: 999px; background: var(--ih-surface, #fffdfb); color: var(--ih-muted, #81777b); font-size: 11px; cursor: pointer; }
.bh-sort-bar button.is-active { background: var(--ih-text, #24202b); border-color: var(--ih-text, #24202b); color: var(--ih-bg, #f5f0ee); }

.bh-video-list { margin: 8px 0 0; padding: 0; list-style: none; }
.bh-video-list li { border-bottom: 1px solid var(--ih-line, #e3d9d5); }
.bh-video-link { display: block; padding: 13px 4px; text-decoration: none; color: inherit; }
.bh-video-link:hover .bh-video-desc { color: var(--ih-accent, #df655b); }
.bh-video-desc { display: block; font-size: 13px; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-video-meta { display: flex; gap: 14px; margin-top: 5px; color: var(--ih-faint, #a39799); font-size: 10px; }
.bh-video-meta b { color: var(--ih-text, #24202b); font-weight: 620; }

.bh-empty { padding: 70px 20px; text-align: center; }
.bh-empty strong { font-size: 15px; font-weight: 620; }
.bh-empty p { margin: 8px 0 18px; color: var(--ih-muted, #81777b); font-size: 12px; }

.bh-loading { display: flex; gap: 8px; justify-content: center; padding: 80px 0; }
.bh-loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--ih-accent, #df655b); animation: bh-pulse 1s infinite ease-in-out; }
.bh-loading span:nth-child(2) { animation-delay: .15s; }
.bh-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes bh-pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

.bh-dialog { border: 0; border-radius: 18px; padding: 0; background: var(--ih-surface, #fffdfb); color: var(--ih-text, #24202b); width: min(430px, 92vw); }
.bh-dialog::backdrop { background: rgba(30, 22, 20, .42); }
.bh-dialog-shell { padding: 24px 26px 26px; }
.bh-dialog-shell header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.bh-dialog-shell h2 { margin: 0; font-size: 17px; font-weight: 640; }
.bh-form label { display: block; font-size: 12px; font-weight: 570; }
.bh-form input { width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--ih-line-strong, #cfc2bd); border-radius: 10px; background: var(--ih-bg, #f5f0ee); color: var(--ih-text, #24202b); font-size: 13px; font-family: inherit; box-sizing: border-box; }
.bh-form input:focus { outline: 2px solid var(--ih-accent-soft, #fbe9e5); border-color: var(--ih-accent, #df655b); }
.bh-form .bh-hint { margin: 10px 0 0; color: var(--ih-faint, #a39799); font-size: 10px; }
.bh-form footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.bh-toast { position: fixed; left: 50%; bottom: 34px; z-index: 4000; transform: translate(-50%, 16px); padding: 10px 18px; border-radius: 999px; background: var(--ih-text, #24202b); color: var(--ih-bg, #f5f0ee); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.bh-toast.is-success { opacity: 1; transform: translate(-50%, 0); }
.bh-toast.is-error { opacity: 1; transform: translate(-50%, 0); background: var(--ih-danger, #a7443e); color: #fff; }

@media (max-width: 820px) {
  #benchmark-hub { padding: 16px 14px 48px; }
  .bh-table th:nth-child(3), .bh-table td:nth-child(3),
  .bh-table th:nth-child(6), .bh-table td:nth-child(6) { display: none; }
  .bh-metrics { gap: 22px; }
}
