/* 爆文洞察 */
.nvi-root {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 8px 48px;
}

.nvi-page-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid #eef2f7;
}

.nvi-page-tab {
  border: 0;
  background: transparent;
  padding: 10px 16px;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.nvi-page-tab.is-active {
  color: #3c66ff;
  font-weight: 600;
  border-bottom-color: #3c66ff;
}

.nvi-hero {
  margin-bottom: 18px;
}

.nvi-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
}

.nvi-sub {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
}

.nvi-sample-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #475569;
}

.nvi-sample-dl {
  flex-shrink: 0;
  color: #3c66ff;
  text-decoration: none;
  font-weight: 600;
}

.nvi-sample-dl:hover {
  text-decoration: underline;
}

.nvi-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 18px 20px 20px;
  margin-bottom: 14px;
}

.nvi-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.nvi-sec-title i {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: #3c66ff;
}

.nvi-sec-desc {
  margin: 0 0 12px;
  font-size: 12px;
  color: #94a3b8;
}

.nvi-mode-row,
.nvi-metric-row,
.nvi-date-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.nvi-select,
.nvi-date,
.nvi-kw-input,
.nvi-th-custom {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: #0f172a;
  background: #fff;
}

.nvi-select {
  min-width: 140px;
}

.nvi-mode-hint,
.nvi-metric-summary {
  font-size: 13px;
  color: #64748b;
}

.nvi-kw-box,
.nvi-adv-block {
  border: 1px dashed #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fafbfc;
}

.nvi-adv-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}

.nvi-req {
  font-size: 11px;
  color: var(--bd-down, #f53f3f);
}

.nvi-opt,
.nvi-opt-tag {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 400;
}

.nvi-adv-desc {
  margin: 0 0 10px;
  font-size: 12px;
  color: #94a3b8;
}

.nvi-kw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.nvi-kw-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  background: #ede9fe;
  color: var(--bd-accent-text, #2952e6);
  font-size: 12px;
}

.nvi-kw-tag button {
  border: 0;
  background: transparent;
  color: #3c66ff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.nvi-kw-add-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nvi-kw-input {
  flex: 1;
  min-width: 180px;
}

.nvi-btn-add {
  border: 1px solid #a5b4fc;
  background: #fff;
  color: #3c66ff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}

.nvi-btn-add:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nvi-kw-count {
  margin-top: 8px;
  font-size: 12px;
  color: #94a3b8;
  text-align: right;
}

.nvi-th-row,
.nvi-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}

.nvi-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}

.nvi-radio input {
  accent-color: #3c66ff;
}

.nvi-th-custom {
  width: 120px;
}

.nvi-adv-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.nvi-adv-toggle .nvi-sec-title {
  margin: 0;
}

.nvi-chevron {
  color: #94a3b8;
  transition: transform 0.15s ease;
}

.nvi-chevron.is-open {
  transform: rotate(180deg);
}

.nvi-adv-body {
  margin-top: 12px;
}

.nvi-field {
  margin-bottom: 14px;
}

.nvi-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.nvi-hint-inline {
  font-weight: 400;
  color: #94a3b8;
  font-size: 12px;
}

.nvi-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nvi-cat-chip {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
}

.nvi-cat-chip.is-active {
  background: #3c66ff;
  border-color: #3c66ff;
  color: #fff;
}

.nvi-quota {
  margin: 0 0 14px;
  font-size: 13px;
  color: #64748b;
}

.nvi-submit {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #6b8cff, #3c66ff);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.nvi-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nvi-foot-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.nvi-error {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
}

.nvi-toast {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef2ff;
  color: var(--bd-accent-text, #2952e6);
  font-size: 13px;
}

.nvi-empty,
.nvi-empty-card {
  padding: 48px 20px;
  text-align: center;
  color: #64748b;
}

.nvi-empty-card h3 {
  margin: 0 0 8px;
  color: #0f172a;
}

.nvi-btn-link {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #3c66ff;
  font-weight: 600;
  cursor: pointer;
}

.nvi-report-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nvi-report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #fff;
}

.nvi-report-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.nvi-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
}

.nvi-report-dl {
  flex-shrink: 0;
  color: #3c66ff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .nvi-sample-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nvi-report-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
