/* 今日线索三栏工作台：左筛选 / 中事件流 / 右详情面板 */
.feed {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 400px;
  gap: 14px;
  align-items: start;
  margin-top: 4px;
}

/* ---- 左筛选 ---- */
.feed-side { position: sticky; top: 78px; max-height: calc(100vh - 96px); overflow: auto; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.side-title { font-size: 12px; color: var(--muted); margin-bottom: 8px; letter-spacing: .4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 13px; line-height: 1.2;
}
.chip:hover { text-decoration: none; border-color: #c7d2fe; color: var(--ink); }
.chip.on { background: #eef2ff; border-color: #4f46e5; color: #1e3a8a; font-weight: 600; }
.chip i { font-style: normal; font-size: 11px; color: var(--muted); }
.chip.on i { color: #4338ca; }

/* ---- 中列表 ---- */
.feed-main { min-width: 0; }
.feed-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 10px; font-size: 13.5px; color: var(--ink-2);
}
.ev-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ev {
  display: flex; gap: 10px; padding: 12px 14px; cursor: pointer;
  border-bottom: 1px solid #f1f5f9; transition: background .12s;
}
.ev:last-child { border-bottom: 0; }
.ev:hover { background: #f8fafc; }
.ev.sel { background: #eef2ff; box-shadow: inset 3px 0 0 #4f46e5; }
.ev-main { flex: 1; min-width: 0; }
.ev-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ev-name { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.ev-name:hover { color: #1d4ed8; }
.ev-reason { margin-top: 5px; color: var(--ink-2); font-size: 13px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; }
.ev-meta { margin-top: 6px; display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.ev-act { display: flex; align-items: center; }
.phone-chip { font-size: 12.5px; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; padding: 3px 8px; border-radius: 7px; white-space: nowrap; }
.no-phone { font-size: 12px; color: #9ca3af; white-space: nowrap; }

.tag { font-size: 11.5px; padding: 1px 7px; border-radius: 6px; white-space: nowrap; font-weight: 500; }
.tag-资质撤回 { background: #fee2e2; color: #b91c1c; }
.tag-安许整改 { background: #fef3c7; color: #b45309; }
.tag-动态核查整改 { background: #e0e7ff; color: #3730a3; }
.tag-行政处罚 { background: #e5e7eb; color: #374151; }
.tag-资质到期 { background: #dcfce7; color: #15803d; }

/* ---- 右面板 ---- */
.feed-panel {
  position: sticky; top: 78px; max-height: calc(100vh - 96px); overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: box-shadow .2s;
}
.feed-panel.flash { box-shadow: 0 0 0 3px #dbeafe; }
.panel-inner { padding: 16px; position: relative; }
.panel-close { display: none; position: absolute; right: 10px; top: 8px; width: 30px; height: 30px; border: 0; background: #f3f4f6; border-radius: 50%; font-size: 17px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.panel-close:hover { background: #e5e7eb; }
.panel-name { font-size: 18px; margin: 0 0 4px; }
.panel-name a { color: var(--ink); }
.panel-sub { font-size: 12.5px; color: var(--muted); }
.panel-tags { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.state { font-size: 12px; color: var(--ink-2); background: #f3f4f6; padding: 1px 8px; border-radius: 6px; }
.kv { display: grid; grid-template-columns: 74px 1fr; gap: 6px 10px; margin: 14px 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink-2); }
.quote { margin: 0 0 14px; padding: 10px 12px; background: #f8fafc; border-left: 3px solid #c7d2fe; border-radius: 0 8px 8px 0; font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.panel-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-acts .btn { font-size: 13px; padding: 7px 12px; }
.sec-title { font-size: 13px; font-weight: 600; color: var(--ink); margin: 16px 0 10px; display: flex; gap: 6px; align-items: baseline; }
.tl { list-style: none; margin: 0; padding: 0 0 0 6px; }
.tl li { position: relative; padding: 0 0 14px 16px; border-left: 1px solid #e5e7eb; }
.tl li:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-dot { position: absolute; left: -4.5px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.tl-dot.tag-资质撤回 { background: #dc2626; }
.tl-dot.tag-安许整改 { background: #d97706; }
.tl-dot.tag-动态核查整改 { background: #4f46e5; }
.tl-dot.tag-行政处罚 { background: #6b7280; }
.tl-date { font-size: 12px; color: var(--muted); }
.tl-txt { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 2px; }
.tl-reason { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.advice { font-size: 13px; color: var(--ink-2); background: #f0fdfa; border: 1px solid #ccfbf1; border-radius: 8px; padding: 10px 12px; line-height: 1.7; }
.panel-empty { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.empty-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px 20px; text-align: center; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; font-size: 13px; }

/* ---- 数据新鲜度条 ---- */
.fresh-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; margin-bottom: 8px; font-size: 12.5px; color: var(--ink-2);
}
.fresh-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; flex: 0 0 auto; }
.fresh-note { margin-left: auto; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.tag-old { display: inline-block; font-size: 11px; color: #92400e; background: #fef3c7; border: 1px solid #fde68a; border-radius: 5px; padding: 0 5px; line-height: 16px; }

/* ---- 平板 ---- */
@media (max-width: 1180px) {
  .feed { grid-template-columns: 200px minmax(0, 1fr) 340px; gap: 10px; }
}

/* ---- 手机：筛选横滑 + 卡片 + 详情弹层 ---- */
@media (max-width: 900px) {
  .feed { display: block; }
  .feed-side {
    position: static; max-height: none; overflow: visible;
    display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px;
  }
  .feed-side::-webkit-scrollbar { display: none; }
  .side-card { flex: 0 0 auto; margin: 0; padding: 8px 10px; }
  .side-title { display: none; }
  .chips { flex-wrap: nowrap; }
  .chip { white-space: nowrap; padding: 6px 10px; }
  .feed-panel {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60;
    max-height: 76vh; border-radius: 16px 16px 0 0; border: 1px solid var(--line);
    box-shadow: 0 -8px 30px rgba(17, 24, 39, .16); transform: translateY(101%);
    transition: transform .22s ease;
  }
  .feed-panel.open { transform: translateY(0); }
  .panel-close { display: block; }
  .panel-inner { padding: 16px 14px 20px; }
  .ev { padding: 11px 12px; }
  .ev-name { font-size: 14px; }
  .ev-reason { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body.panel-open::after {
    content: ""; position: fixed; inset: 0; background: rgba(17, 24, 39, .32); z-index: 55;
  }
}
