/* 友商差评静默采集与查看专页 */
.tool-pill.collection-negative-link.is-active {
  background: #9f1239;
  color: #fff;
  border-color: #9f1239;
}

.neg-page {
  padding: 20px 22px 26px;
}

.neg-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.neg-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.neg-title-row h2 {
  margin: 0;
  font-size: 20px;
}

.neg-silent-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #fef2f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.neg-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.neg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1f2937;
  text-decoration: none;
}

.neg-btn:hover:not(:disabled) {
  background: #f9fafb;
}

.neg-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.neg-btn.primary {
  background: #9f1239;
  border-color: #9f1239;
  color: #fff;
}

.neg-btn.primary:hover:not(:disabled) {
  background: #881337;
}

.neg-btn.soft {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.neg-btn.danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.neg-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.neg-kpi-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}

.neg-kpi-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.neg-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.neg-kpi-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
}

.neg-device-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12px;
}

.neg-device-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.neg-device-chip.is-ready {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.neg-device-chip.is-old {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.neg-config-drawer {
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fbfdff;
  padding: 12px 14px;
}

.neg-config-drawer summary {
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: #0f172a;
}

.neg-config-body {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.neg-config-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.neg-config-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #475569;
}

.neg-config-row input[type="text"],
.neg-config-row input[type="number"] {
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 13px;
  min-width: 180px;
}

.neg-brand-table-wrap {
  max-height: 320px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.neg-brand-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.neg-brand-table th,
.neg-brand-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}

.neg-brand-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  font-size: 12px;
  color: #475569;
}

.neg-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.neg-filter-bar input[type="search"],
.neg-filter-bar select {
  padding: 7px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
}

.neg-filter-bar input[type="search"] {
  flex: 1 1 240px;
}

.neg-brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.neg-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 12px;
  cursor: pointer;
}

.neg-pill.is-active {
  background: #9f1239;
  border-color: #9f1239;
  color: #fff;
}

.neg-posts-list {
  display: grid;
  gap: 12px;
}

.neg-post-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
}

.neg-post-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.neg-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.neg-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.neg-tag-brand {
  background: #fef2f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.neg-tag-kw {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.neg-tag-type {
  background: #f1f5f9;
  color: #475569;
}

.neg-post-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.neg-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.neg-post-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: #1e293b;
  white-space: pre-wrap;
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.neg-post-previews {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: #334155;
}

.neg-preview-line {
  padding: 4px 8px;
  border-left: 3px solid #fda4af;
  background: #fff1f2;
  border-radius: 0 6px 6px 0;
}

.neg-post-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.neg-comments-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
}

.neg-comment-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  padding: 9px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.neg-comment-item:last-child {
  border-bottom: none;
}

.neg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}

.neg-avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.neg-comment-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 4px;
}

.neg-comment-author {
  font-weight: 600;
  color: #0f172a;
}

.neg-comment-body {
  font-size: 13px;
  color: #1e293b;
  line-height: 1.5;
  white-space: pre-wrap;
}

.neg-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 4px;
}

.neg-water-chip {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.neg-status-line {
  font-size: 13px;
  color: #475569;
  margin: 8px 0;
}

.neg-empty {
  text-align: center;
  padding: 36px 16px;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}

.neg-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

/* v2: 分层研判视图、角色切换、槽点摘要与人工纠偏样式 */
.neg-role-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.neg-role-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.neg-role-btn.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.neg-kpi-card.neg-kpi-danger {
  background: #fff1f2;
  border-color: #fecdd3;
}

.neg-kpi-card.neg-kpi-danger .neg-kpi-value {
  color: #9f1239;
}

.neg-kpi-card.neg-kpi-warn {
  background: #fffbeb;
  border-color: #fde68a;
}

.neg-kpi-card.neg-kpi-warn .neg-kpi-value {
  color: #b45309;
}

.neg-kpi-pct {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.neg-verdict-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.neg-vtab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.neg-vtab.is-active {
  background: #9f1239;
  border-color: #9f1239;
  color: #fff;
}

.neg-vtab-count {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.08);
}

.neg-vtab.is-active .neg-vtab-count {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.neg-ai-banner {
  padding: 8px 12px;
  border-radius: 8px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0c4a6e;
  font-size: 12.5px;
}

.neg-config-row select {
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 13px;
  background: #fff;
}

.neg-warn-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.neg-post-card.is-confirmed {
  border-color: #fda4af;
  box-shadow: 0 1px 4px rgba(159, 18, 57, 0.08);
}

.neg-verdict-confirmed {
  background: #ffe4e6;
  color: #9f1239;
  border: 1px solid #fda4af;
}

.neg-verdict-mixed {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
}

.neg-verdict-comment {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.neg-verdict-positive {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.neg-verdict-irrelevant {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.neg-tag-src {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.neg-tag-own {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
}

.neg-assess-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.neg-assess-summary {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.5;
}

.neg-assess-reason {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}

.neg-issue-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.neg-issue-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: #fff;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.neg-flag-complaint {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.neg-flag-hijack {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #d8b4fe;
}

.neg-flag-shill {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.neg-flag-question {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.neg-preview-line.is-flagged {
  border-left-color: #e11d48;
  background: #fff1f2;
}

.neg-comment-item.is-flagged {
  background: #fff7ed;
  border-radius: 8px;
}

.neg-flag-reason {
  font-size: 12px;
  color: #9a3412;
  margin-top: 4px;
}

.neg-override-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.neg-mini-btn {
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  font-size: 12px;
  cursor: pointer;
}

.neg-mini-btn:hover:not(:disabled) {
  background: #f8fafc;
}

.neg-mini-btn.danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.neg-mini-btn.warn {
  color: #c2410c;
  border-color: #fed7aa;
  background: #fff7ed;
}
