.chip-lead-wrap { max-width: 1080px; margin: 0 auto; font-size: 15px; line-height: 1.6; }
.chip-lead-wrap .cl-header h2 { margin: 0 0 6px; }
.chip-lead-wrap .cl-sub { color: #666; margin: 0 0 18px; }

/* 未授权门禁 */
.cl-gate { text-align: center; padding: 40px 20px; border: 1px dashed #d0d5dd; border-radius: 12px; background: #fafbfc; }
.cl-gate-icon { font-size: 44px; margin-bottom: 8px; }
.cl-gate h3 { margin: 6px 0; }
.cl-gate p { color: #666; }
.cl-gate-actions { margin: 16px 0; }
.cl-code-box { margin-top: 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.cl-code-box input { padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; min-width: 220px; }
.cl-code-msg { width: 100%; margin-top: 8px; font-size: 13px; }

/* 双重校验步骤 */
.cl-steps { list-style: none; padding: 0; margin: 18px auto 8px; max-width: 340px; text-align: left; }
.cl-steps li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; margin-bottom: 6px; font-size: 14px; }
.cl-steps li.cl-done { background: #ecfdf3; color: #067647; }
.cl-steps li.cl-todo { background: #f9fafb; color: #475467; }
.cl-step-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.cl-steps li.cl-done .cl-step-mark { background: #12b76a; color: #fff; }
.cl-steps li.cl-todo .cl-step-mark { background: #eaecf0; color: #667085; }
.cl-warn { margin-top: 12px; font-size: 13.5px; color: #b54708; }

/* 查询面板 */
.cl-panel { background: #fff; border: 1px solid #e4e7ec; border-radius: 12px; padding: 18px; box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.cl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cl-row input[type=text] { flex: 1 1 320px; padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 15px; }
.cl-opts { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 12px; color: #475467; font-size: 14px; }
.cl-opts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cl-opts select { padding: 4px 8px; border-radius: 6px; border: 1px solid #cbd5e1; }
.cl-hint { margin-top: 10px; font-size: 12.5px; color: #98a2b3; }

/* 按钮 */
.cl-btn { display: inline-block; padding: 10px 18px; border: 1px solid #cbd5e1; background: #fff; color: #344054; border-radius: 8px; cursor: pointer; font-size: 14px; text-decoration: none; line-height: 1.2; }
.cl-btn:hover { background: #f9fafb; }
.cl-btn-primary { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }
.cl-btn-primary:hover { background: #1d4ed8; }
.cl-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.cl-btn-sm { padding: 7px 14px; font-size: 13px; }

/* 状态条 */
.cl-status { margin: 14px 0; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.cl-loading { background: #eff8ff; color: #175cd3; border: 1px solid #b2ddff; }
.cl-ok { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.cl-error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }

/* 后台任务进度（异步提交） */
.cl-prog-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-weight: 600; }
.cl-prog-note { font-weight: 400; font-size: 12px; color: #667085; margin-left: auto; }
.cl-prog-bar { height: 6px; margin: 8px 0 6px; border-radius: 999px; background: #d6e8ff; overflow: hidden; }
.cl-prog-bar > span { display: block; height: 100%; background: linear-gradient(90deg,#4f8cff,#175cd3); border-radius: 999px; transition: width .4s ease; }
.cl-prog-log { margin-top: 6px; padding: 8px 10px; border-radius: 6px; background: rgba(255,255,255,.6);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.6;
  color: #344054; max-height: 150px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.cl-prog-log > div { opacity: .55; }
.cl-prog-log > div:last-child { opacity: 1; font-weight: 600; color: #175cd3; }

/* 结果 */
.cl-results { margin-top: 8px; }
.cl-sec { margin: 22px 0 10px; font-size: 17px; }
.cl-empty { color: #667085; background: #f9fafb; border: 1px dashed #e4e7ec; border-radius: 10px; padding: 22px; text-align: center; }
.cl-tip { font-size: 13px; color: #98a2b3; margin-top: 6px; }

.cl-chip-card { border: 1px solid #e4e7ec; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.cl-chip-title { font-size: 17px; font-weight: 700; color: #101828; margin-bottom: 8px; }
.cl-kv { width: 100%; border-collapse: collapse; }
.cl-kv th { text-align: left; width: 96px; color: #667085; font-weight: 500; padding: 3px 8px 3px 0; vertical-align: top; }
.cl-kv td { color: #1d2939; padding: 3px 0; }
.cl-buyers { margin-top: 8px; }
.cl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cl-tag { background: #eef2ff; color: #3538cd; border-radius: 999px; padding: 3px 10px; font-size: 13px; }

.cl-table-wrap { overflow-x: auto; border: 1px solid #e4e7ec; border-radius: 10px; }
.cl-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 820px; }
.cl-table th, .cl-table td { padding: 8px 10px; border-bottom: 1px solid #eaecf0; text-align: left; vertical-align: top; }
.cl-table thead th { background: #f9fafb; color: #475467; font-weight: 600; white-space: nowrap; }
.cl-table tbody tr:hover { background: #fcfcfd; }
.cl-table a { color: #2563eb; }

.cl-export { display: flex; gap: 8px; margin: 4px 0 12px; }
.cl-disclaimer { margin-top: 18px; font-size: 12.5px; color: #98a2b3; border-top: 1px solid #eaecf0; padding-top: 10px; }

/* 我的查询历史 */
.cl-history { margin-top: 30px; border-top: 1px solid #eaecf0; padding-top: 14px; }
.cl-hist-head { display: flex; align-items: center; justify-content: space-between; }
.cl-hist-head .cl-sec { margin: 0; }
.cl-hist-list { margin-top: 10px; }
.cl-hist-empty { color: #98a2b3; font-size: 14px; }
.cl-hist-items { display: flex; flex-direction: column; gap: 8px; }
.cl-hist-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #e4e7ec; border-radius: 10px; padding: 10px 14px; background: #fff; }
.cl-hist-item:hover { background: #fcfcfd; }
.cl-hist-main { min-width: 0; }
.cl-hist-models { display: block; font-weight: 600; color: #101828; word-break: break-all; }
.cl-hist-meta { display: block; font-size: 12.5px; color: #667085; margin-top: 2px; }
.cl-hist-item .cl-btn { white-space: nowrap; flex: 0 0 auto; }

@media (max-width: 640px) {
  .chip-lead-wrap { font-size: 14px; }
  .cl-panel { padding: 14px; }
  .cl-row input[type=text] { flex-basis: 100%; }
  .cl-opts { gap: 12px; }
}
