/* ============ 数据采集中心（cl-*） ============ */
.cl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 2px 0 14px; flex-wrap: wrap; }
.cl-head h2 { margin: 0; font-size: 21px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.cl-head p { margin: 7px 0 0; font-size: 12px; color: #7b90ab; }

.cl-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.cl-summary-card { background: #fff; border: 1px solid #e4edf8; border-radius: 10px; padding: 13px 16px; }
.cl-summary-card > span { display: block; font-size: 12px; color: #6d85a3; }
.cl-summary-card > strong { display: block; font-family: Arial, sans-serif; font-size: 26px; color: #17324f; line-height: 1.25; margin-top: 4px; }
.cl-summary-card > strong small { font-size: 11px; font-weight: 400; color: #8fa4bd; margin-left: 4px; }
.cl-summary-card > strong.cl-time { font-family: inherit; font-size: 15px; font-weight: 600; padding: 5px 0; }
.cl-summary-card > em { display: block; font-style: normal; font-size: 11px; color: #8093ab; margin-top: 3px; }
.cl-summary-card.warn { background: #fffaf3; border-color: #f8ebd8; }
.cl-summary-card.warn > strong { color: #d98614; }

.cl-panel { padding: 0; overflow: hidden; }
.cl-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 15px 18px 13px; border-bottom: 1px solid #eef3fa; flex-wrap: wrap; }
.cl-panel-head h3 { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 7px; color: #17324f; }
.cl-panel-head h3 .icon { color: #1674ff; }
.cl-panel-head p { margin: 7px 0 0; font-size: 12px; color: #7b90ab; line-height: 1.6; }
.cl-head-actions { display: flex; gap: 8px; }

.cl-table-wrap { overflow-x: auto; }
.cl-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 860px; table-layout: fixed; }
.cl-table th { background: #f7fafd; color: #6d85a3; font-size: 11px; font-weight: 500; text-align: left; padding: 9px 14px; border-bottom: 1px solid #e8eff9; }
.cl-table th:nth-child(1) { width: 30%; } .cl-table th:nth-child(2) { width: 15%; }
.cl-table th:nth-child(3) { width: 13%; } .cl-table th:nth-child(4) { width: 12%; }
.cl-table th:nth-child(5) { width: 15%; } .cl-table th:nth-child(6) { width: 15%; }
.cl-table td { padding: 12px 14px; border-bottom: 1px solid #f0f4fa; color: #33506f; vertical-align: middle; }
.cl-table tr:last-child td { border-bottom: 0; }
.cl-table td strong { display: block; font-weight: 500; color: #1c3a5b; }
.cl-table td small { display: block; margin-top: 3px; font-size: 10px; color: #a3b4c9; }
.cl-table code { font-family: "SFMono-Regular", Menlo, monospace; font-size: 11px; background: #f4f8fe; border: 1px solid #e6eef9; border-radius: 4px; padding: 2px 6px; color: #3b628f; }
.cl-num { font-variant-numeric: tabular-nums; font-weight: 600; color: #17324f; }
.cl-num small { display: inline !important; margin-left: 3px; font-weight: 400; }
.cl-status { display: inline-block; font-size: 11px; line-height: 19px; padding: 0 8px; border-radius: 10px; background: #f0f4fa; color: #7b90ab; white-space: nowrap; }
.cl-status.ok { background: #e9f8f1; color: #12895f; }
.cl-status.error { background: #fdeceb; color: #d93a35; }
.cl-empty { text-align: center; padding: 34px 16px !important; color: #90a4bd; }
.cl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; background: #fbfdff; font-size: 11px; color: #7b90ab; flex-wrap: wrap; }
.cl-foot code { font-size: 10px; color: #4d6a8c; }
.cl-msg { color: #12895f; }
.cl-msg.error { color: #d93a35; }
.cl-error { margin: 0; padding: 10px 18px; background: #fff7f6; color: #c9433e; font-size: 11px; border-top: 1px solid #fbe4e1; }

.cl-others { margin-top: 14px; }
.cl-others-head { margin-bottom: 10px; }
.cl-others-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: #17324f; }
.cl-others-head p { margin: 6px 0 0; font-size: 12px; color: #7b90ab; }

/* ============ 功能采集站（cl-station） ============ */
.cl-stations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cl-station { grid-column: 1 / -1; background: #fff; border: 1px solid #f0e4d0; border-radius: 10px; padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.cl-station > header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cl-station > header > div { flex: 1; min-width: 220px; }
.cl-station h3 { margin: 0; font-size: 15px; font-weight: 600; color: #17324f; }
.cl-station > header small { display: block; font-size: 11px; color: #9aadc3; margin-top: 3px; }
.cl-station .cl-card-icon { background: #fff5e6; color: #d98614; }
.cl-station-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cl-station-stats > div { background: #fffaf3; border: 1px solid #f5ead8; border-radius: 8px; padding: 9px 12px; min-width: 0; }
.cl-station-stats span { display: block; font-size: 11px; color: #a58c68; }
.cl-station-stats strong { display: block; font-family: Arial, sans-serif; font-size: 19px; color: #17324f; line-height: 1.3; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-station-stats strong small { font-size: 10px; font-weight: 400; color: #8fa4bd; margin-left: 3px; }
.cl-station > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cl-station-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-toggle { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border: 1px solid #dbe6f3; border-radius: 6px; background: #fbfdff; font-size: 12px; color: #3f6390; cursor: pointer; transition: .15s; }
.cl-toggle:hover { border-color: #7fb4f6; color: #1674ff; }
.cl-toggle .icon { transition: transform .15s; }
.cl-toggle[aria-expanded="true"] .icon { transform: rotate(90deg); }
.cl-station .cl-msg { display: block; font-size: 11px; }
.cl-station .cl-error { margin: 0; border: 0; border-radius: 6px; }
.cl-panel { margin-top: 12px; }
.cl-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cl-card { background: #fff; border: 1px solid #e4edf8; border-radius: 10px; padding: 15px 16px; display: flex; flex-direction: column; gap: 10px; transition: .15s; }
.cl-card:hover { border-color: #b9d4f2; box-shadow: 0 4px 14px rgba(20, 74, 140, .07); transform: translateY(-1px); }
.cl-card > header { display: flex; align-items: center; gap: 10px; }
.cl-card-icon { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #eef5ff; color: #1674ff; flex: none; }
.cl-card.green .cl-card-icon { background: #eaf9f2; color: #0e9c68; }
.cl-card.orange .cl-card-icon { background: #fff5e6; color: #d98614; }
.cl-card header > div { flex: 1; min-width: 0; }
.cl-card h4 { margin: 0; font-size: 13px; font-weight: 600; color: #17324f; }
.cl-card header small { display: block; font-size: 10px; color: #9aadc3; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-card p { margin: 0; font-size: 12px; line-height: 1.7; color: #6d85a3; flex: 1; }
.cl-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px dashed #eaf0f9; font-size: 11px; color: #9aadc3; }
.cl-card > footer a { color: #1674ff; font-size: 11px; white-space: nowrap; }
.cl-card > footer a:hover { text-decoration: underline; }

/* 配置抽屉 */
.cl-drawer .cl-drawer-body { display: flex; flex-direction: column; gap: 11px; }
.cl-note { margin: 0; padding: 11px 13px; background: #f4f9ff; border: 1px solid #e2eefc; border-radius: 8px; font-size: 11px; line-height: 1.8; color: #5b7594; }
.cl-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #46648a; }
.cl-field span { font-size: 11px; color: #7b90ab; }
.cl-field input { height: 34px; padding: 0 10px; border: 1px solid #dbe6f3; border-radius: 6px; font-size: 12px; color: #17324f; background: #fbfdff; }
.cl-field input:focus { border-color: #7fb4f6; background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(22, 116, 255, .1); }
.cl-sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cl-sheet-block { display: flex; flex-direction: column; gap: 9px; padding: 11px; border: 1px dashed #e0eaf7; border-radius: 8px; background: #fbfdff; }
.cl-fieldmap { font-size: 12px; color: #5b7594; }
.cl-fieldmap summary { cursor: pointer; font-size: 11px; color: #7b90ab; padding: 4px 0; }
.cl-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 8px; }
.cl-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

@media (max-width: 1100px) { .cl-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cl-stations { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cl-station-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cl-summary { grid-template-columns: 1fr; }
  .cl-card-grid { grid-template-columns: 1fr; }
  .cl-stations { grid-template-columns: 1fr; }
  .cl-station-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-sheet-grid, .cl-field-grid { grid-template-columns: 1fr; }
  .cl-head h2 { font-size: 17px; }
}

.collect-health { margin-bottom: 16px; padding: 12px 16px; }
.collect-health summary { color: var(--ink); cursor: pointer; font-weight: 600; }
.collect-health .source-list { margin-bottom: 0; }
