/* ========== 全局变量 ========== */
:root {
  --color-primary: #4f46e5;
  --color-primary-light: #6366f1;
  --color-primary-dark: #4338ca;
  --color-bg: #f0f2f5;
  --color-card-bg: #ffffff;
  --color-text: #1f2937;
  --color-text-secondary: #6b7280;
  --color-text-light: #9ca3af;
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;
  --color-up: #ef4444;      /* A股红涨 */
  --color-down: #10b981;    /* A股绿跌 */
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* ========== 全局重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 14px;
}

/* ========== 布局 ========== */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 24px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* ========== 加载状态 ========== */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  color: var(--color-text-secondary);
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== 顶部栏 ========== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
}

.page-subtitle {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-left: 4px;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--color-border-light);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: rgba(79, 70, 229, 0.05);
}

.btn-run {
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
}

.btn-icon {
  font-size: 11px;
}

/* ========== 标签导航 ========== */
.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-text-secondary);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ========== 卡片 ========== */
.card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.card-extra {
  font-size: 12px;
  color: var(--color-text-light);
}

.card-link {
  font-size: 13px;
  color: var(--color-primary);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ========== 数据概览 ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.stat-trend {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 6px;
}

.stat-trend.up {
  color: var(--color-up);
}

.stat-trend.down {
  color: var(--color-down);
}

/* ========== Agent 流水线 ========== */
.agent-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
}

.agent-node {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-border-light);
  position: relative;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.agent-node:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.agent-node + .agent-node {
  margin-left: 8px;
}

.agent-node::after {
  content: "→";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  font-size: 16px;
  z-index: 1;
}

.agent-node:last-child::after {
  display: none;
}

.agent-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.agent-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.agent-desc {
  font-size: 11px;
  color: var(--color-text-light);
  line-height: 1.3;
}

.agent-status {
  margin-top: 8px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

/* Agent 状态颜色 */
.agent-node.status-done {
  background: #ecfdf5;
}
.agent-node.status-done .agent-icon { background: var(--color-success); }
.agent-node.status-done .agent-status {
  background: var(--color-success);
  color: #fff;
}

.agent-node.status-running {
  background: #eff6ff;
}
.agent-node.status-running .agent-icon { background: var(--color-info); animation: pulse 1.5s infinite; }
.agent-node.status-running .agent-status {
  background: var(--color-info);
  color: #fff;
}

.agent-node.status-pending {
  background: var(--color-border-light);
}
.agent-node.status-pending .agent-icon { background: var(--color-text-light); }
.agent-node.status-pending .agent-status {
  background: var(--color-border);
  color: var(--color-text-secondary);
}

.agent-node.status-failed {
  background: #fef2f2;
}
.agent-node.status-failed .agent-icon { background: var(--color-danger); }
.agent-node.status-failed .agent-status {
  background: var(--color-danger);
  color: #fff;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Agent 进度文本（执行中显示最新日志） */
.agent-progress {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--color-text-light);
  min-height: 14px;
  max-height: 42px;
  overflow: hidden;
  word-break: break-all;
}
.agent-progress.progress-error { color: var(--color-danger); }

/* ========== 运行日志面板 ========== */
.run-log-panel {
  display: none;
  margin-top: 12px;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  background: #0f172a;
  overflow: hidden;
}
.run-log-panel.visible { display: block; }
.run-log-header {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}
.run-log-body {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px 12px;
  font-family: Consolas, Monaco, monospace;
  font-size: 11px;
  line-height: 1.7;
  color: #94a3b8;
}
.run-log-line { white-space: pre-wrap; word-break: break-all; }
.run-log-line .log-time { color: #64748b; margin-right: 6px; }
.run-log-line .log-agent { color: #38bdf8; margin-right: 6px; }
.run-log-line.level-warn { color: #fbbf24; }
.run-log-line.level-error { color: #f87171; }


/* ========== 报告预览 ========== */
.report-preview {
  cursor: pointer;
}

.report-preview-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.report-preview-date {
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.report-preview-summary {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.report-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 10px;
  background: var(--color-border-light);
  color: var(--color-text-secondary);
}

.tag.up { background: #fef2f2; color: var(--color-up); }
.tag.down { background: #ecfdf5; color: var(--color-down); }

/* ========== 板块资金流向 ========== */
.sector-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sector-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--color-border-light);
  border-radius: var(--radius-sm);
}

.sector-name {
  width: 70px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.sector-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.sector-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.sector-bar.inflow { background: var(--color-up); }
.sector-bar.outflow { background: var(--color-down); }

.sector-flow-text {
  width: 70px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.sector-flow-text.inflow { color: var(--color-up); }
.sector-flow-text.outflow { color: var(--color-down); }

/* ========== 报告列表 ========== */
.report-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-item {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.report-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.report-item-date {
  width: 90px;
  flex-shrink: 0;
}

.report-item-date .day {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.report-item-date .month {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.report-item-body {
  flex: 1;
  min-width: 0;
}

.report-item-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.report-item-summary {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.report-item-meta {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.report-item-stocks {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.stock-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eef2ff;
  color: var(--color-primary);
  font-weight: 500;
}

/* ========== 筛选 ========== */
.filter-bar {
  display: flex;
  gap: 10px;
}

.filter-select {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  cursor: pointer;
}

/* ========== 表单 ========== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-input, .form-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-hint {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 6px;
}

.form-range {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: var(--color-border);
  border-radius: 3px;
  outline: none;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
}

.range-value {
  color: var(--color-primary);
  font-weight: 600;
  margin-left: 4px;
}

/* 单选组 */
.radio-group {
  display: flex;
  gap: 16px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
}

.radio-item input[type="radio"] {
  accent-color: var(--color-primary);
}

/* 开关 */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--color-border);
  border-radius: 22px;
  transition: 0.3s;
}

.switch-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.switch input:checked + .switch-slider {
  background: var(--color-primary);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
}

/* 板块标签 */
.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sector-tag {
  padding: 5px 14px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.sector-tag.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* 定时信息 */
.schedule-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--color-border-light);
  border-radius: var(--radius-sm);
}

/* 订阅信息 */
.sub-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sub-plan {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-plan-name {
  font-size: 15px;
  font-weight: 600;
}

.sub-plan-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

.sub-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.sub-status.active {
  color: var(--color-success);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
}

.sub-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
  padding: 12px;
  background: var(--color-border-light);
  border-radius: var(--radius-sm);
}

.sub-detail strong {
  color: var(--color-text);
}

/* ========== 弹窗 ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  font-size: 17px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-light);
  padding: 0 4px;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--color-border);
}

/* 报告详情内容样式 */
.report-detail h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 18px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border-light);
}

.report-detail h3:first-child {
  margin-top: 0;
}

.report-detail .summary-text {
  color: var(--color-text-secondary);
  padding: 12px;
  background: var(--color-border-light);
  border-radius: var(--radius-sm);
}

.stock-detail-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
}

.stock-detail-card .stock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stock-detail-card .stock-name {
  font-size: 16px;
  font-weight: 600;
}

.stock-detail-card .stock-code {
  font-size: 12px;
  color: var(--color-text-light);
}

.stock-detail-card .price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.stock-detail-card .price-item {
  text-align: center;
}

.stock-detail-card .price-label {
  font-size: 11px;
  color: var(--color-text-light);
}

.stock-detail-card .price-value {
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;
}

.price-value.buy { color: var(--color-up); }
.price-value.sell { color: var(--color-down); }

.disclaimer {
  margin-top: 16px;
  padding: 10px;
  background: #fffbeb;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #92400e;
  text-align: center;
}

/* ========== Agent 配置弹窗 ========== */
.agent-config .agent-desc-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  padding: 10px 12px;
  background: var(--color-border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.agent-config .config-section {
  margin-bottom: 18px;
}

.agent-config .config-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border-light);
}

.form-textarea {
  width: 100%;
  min-height: 80px;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  line-height: 1.6;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}

.checkbox-item input[type="checkbox"] {
  accent-color: var(--color-primary);
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translate(-50%, -20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main-content {
    padding: 16px;
  }
  .page-title {
    font-size: 20px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-value {
    font-size: 22px;
  }
  .agent-flow {
    flex-wrap: nowrap;
  }
  .agent-node {
    min-width: 110px;
  }
  .stock-detail-card .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== 报告详情多 Tab 样式 ========== */
.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 16px;
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 10;
}
.report-tab {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  white-space: nowrap;
  transition: all 0.2s;
}
.report-tab:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--color-primary);
}
.report-tab.active {
  color: var(--color-primary);
  background: #fff;
  font-weight: 600;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: -2px;
}
.report-tab-content {
  padding: 16px;
  max-height: 70vh;
  overflow-y: auto;
}

/* 中性流向颜色 */
.sector-flow-text.neutral { color: var(--text-secondary); }
.sector-bar.neutral { background: var(--text-secondary); }

/* 新闻列表 */
.news-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}
.news-item:last-child { border-bottom: none; }
.news-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
  font-size: 12px;
}
.news-entropy { font-weight: 700; }
.news-cat {
  background: var(--color-primary);
  color: #fff;
  padding: 1px 8px;
  border-radius: 10px;
}
.news-type { color: var(--text-secondary); }
.news-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.news-content {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 4px;
}
.news-meta {
  font-size: 11px;
  color: #9ca3af;
}
.news-keywords { margin-top: 4px; }
.kw-tag {
  display: inline-block;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  margin-right: 4px;
}

/* 事件序列 */
.event-item {
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 10px;
}
.event-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.event-summary { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #6b7280;
}

/* 板块影响 */
.sector-impact-card {
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 10px;
}
.sector-impact-head {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  margin-bottom: 6px;
}
.sector-name-tag {
  font-weight: 700;
  color: var(--color-primary);
}
.sector-impact-analysis {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
}
.sector-key-events {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}
.hot-topics { margin-top: 8px; }
.hot-topic-tag {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
  margin-right: 6px;
}

/* 资金反应 */
.reaction-card {
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 10px;
}
.reaction-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}
.reaction-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.reaction-table th, .reaction-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.reaction-table th {
  background: #f9fafb;
  font-weight: 600;
  color: var(--text-secondary);
}

/* 候选标的 */
.candidate-card {
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 10px;
}
.candidate-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}
.candidate-head .stock-name { font-size: 15px; font-weight: 700; }
.candidate-head .stock-code { font-size: 13px; color: var(--text-secondary); }
.sector-tag {
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
}
.candidate-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.candidate-reason {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
}

/* 分发日志 */
.delivery-log {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.log-channel { font-weight: 600; min-width: 70px; }
.log-status { font-weight: 700; min-width: 40px; }
.log-response { flex: 1; color: var(--text-secondary); }
.log-time { color: #9ca3af; font-size: 12px; white-space: nowrap; }
