/* 投研笔记报告组件 — 仅 rs-rpt-* class，由 Stage2 LLM 输出 + bleach 清洗后使用 */

.rs-rpt {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-1, #111);
}

.rs-rpt-summary {
  padding: 16px 18px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand, #7C3AED) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand, #7C3AED) 22%, transparent);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-1);
}

.rs-rpt-section-title {
  margin: 28px 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.rs-rpt-section-title:first-child {
  margin-top: 0;
}

.rs-rpt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .rs-rpt-grid {
    grid-template-columns: 1fr;
  }
}

.rs-rpt-card {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--bg-1, #fff);
}

.rs-rpt-card--accent {
  border-color: color-mix(in srgb, var(--brand, #7C3AED) 35%, var(--border, #e5e7eb));
  background: color-mix(in srgb, var(--brand, #7C3AED) 5%, var(--bg-1, #fff));
}

.rs-rpt-card--muted {
  background: var(--bg-2, #f9fafb);
  border-style: dashed;
}

.rs-rpt-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.rs-rpt-card p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-2);
}

.rs-rpt-card p:last-child {
  margin-bottom: 0;
}

.rs-rpt-tag {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-2, #f3f4f6);
  color: var(--text-2);
}

.rs-rpt-tag--warn {
  background: #fef3c7;
  color: #92400e;
}

.rs-rpt-timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid color-mix(in srgb, var(--brand, #7C3AED) 30%, var(--border, #e5e7eb));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rs-rpt-timeline-item {
  position: relative;
  padding-left: 4px;
}

.rs-rpt-timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand, #7C3AED);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #7C3AED) 20%, transparent);
}

.rs-rpt-timeline-date {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand, #7C3AED);
  margin-bottom: 4px;
}

.rs-rpt-timeline-body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.rs-rpt-callout {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--bg-2, #f9fafb);
  color: var(--text-2);
}

.rs-rpt-callout--muted {
  font-size: 12px;
  color: var(--text-3);
}

.rs-rpt-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text-2);
}

.rs-rpt-list li {
  margin-bottom: 6px;
}

.rs-rpt-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0;
}

.rs-rpt table,
table.rs-rpt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
}

.rs-rpt table th,
.rs-rpt table td,
table.rs-rpt-table th,
table.rs-rpt-table td {
  border: 1px solid var(--border, #e5e7eb);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.rs-rpt table thead th,
table.rs-rpt-table thead th {
  background: var(--bg-2, #f9fafb);
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
}

.rs-rpt table tbody tr:nth-child(even),
table.rs-rpt-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--bg-2, #f9fafb) 60%, transparent);
}

.rs-rpt blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid color-mix(in srgb, var(--brand, #7C3AED) 40%, var(--border, #e5e7eb));
  background: var(--bg-2, #f9fafb);
  color: var(--text-2);
  font-size: 14px;
}

.rs-rpt p {
  margin: 0 0 12px;
  color: var(--text-2);
}

.rs-rpt-fallback-note {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-3);
  background: var(--bg-2, #f9fafb);
  border: 1px dashed var(--border, #e5e7eb);
}
