/* ── 每日情报工作流专属页 — 情报蓝 #1565C0 主题 ── */
/* di- 前缀，标准两列布局 */

.di-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.di-back-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.di-back-btn:hover { background: var(--bg-hover); }
.di-title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}

/* ── 两列布局 ── */
.di-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  padding: 16px;
  height: calc(100vh - 60px);
  overflow: hidden;
}
.di-left, .di-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

/* ── 区块 ── */
.di-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.di-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}

/* ── 采集统计网格 ── */
.di-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 14px;
}
.di-stat-card {
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid;
}
.di-stat-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.di-stat-label {
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.8;
}

/* ── 步骤状态 ── */
.di-steps {
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.di-step {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.di-step-completed { background: #dcfce7; color: #166534; }
.di-step-running { background: #dbeafe; color: #1e40af; }
.di-step-failed { background: #fee2e2; color: #991b1b; }
.di-step-pending { background: var(--bg-subtle); color: var(--text-dim); }

/* ── 标签行 ── */
.di-tags {
  padding: 8px 14px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.di-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid;
}

/* ── 简报全文 ── */
.di-brief-content {
  margin-bottom: 16px;
}
.di-brief-text {
  background: #FAFAFA;
  border: 1px solid #E0E0E0;
  padding: 20px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  font-family: inherit;
}
.di-brief-empty {
  padding: 30px;
  text-align: center;
  color: var(--text-secondary);
  background: #FAFAFA;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
}

/* ── 运行历史 ── */
.di-history-list { max-height: 300px; overflow-y: auto; }
.di-history-item {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.di-history-item:hover { background: var(--bg-hover); }
.di-history-item:last-child { border-bottom: none; }
.di-history-row { display: flex; justify-content: space-between; align-items: center; }
.di-history-time { font-size: 11px; color: var(--text-dim); }
.di-history-status { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.di-history-detail { display: none; padding: 8px 0 0 0; font-size: 12px; }
.di-history-detail.open { display: block; }
.di-history-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 12px;
}

.di-loading { padding: 20px; text-align: center; color: var(--text-dim); font-size: 13px; }
.di-empty { padding: 20px; text-align: center; color: var(--text-dim); font-size: 13px; }
