/* ============================================================
   客户挖掘 Agent —— platform.html 专属样式
   只补充 platform.css 没有的组件，颜色全部走既有 CSS 变量
   ============================================================ */

/* ---------- 输入区 ---------- */
.mn-in {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 14px;
  line-height: 1.65;
  padding: 12px 14px;
  resize: vertical;
  min-height: 76px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.mn-in:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 110, 120, .12);
}
.mn-in::placeholder { color: #556C7A; }

.mn-lab {
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 0 0 7px;
  text-transform: uppercase;
}

/* ---------- 示例提问 ---------- */
.mn-ex { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.mn-ex .chip {
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s;
  user-select: none;
}
.mn-ex .chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

/* ---------- 操作行 ---------- */
.mn-acts {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mn-acts .mn-tip { font-size: 12px; color: var(--muted); }
.mn-acts .mn-tip b { color: var(--ink); font-family: var(--font-mono); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- 旋转指示 ---------- */
.mn-spin {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mn-spin .7s linear infinite;
  vertical-align: -1px;
  margin-right: 6px;
}
@keyframes mn-spin { to { transform: rotate(360deg); } }

/* ---------- 意图解析回显 ---------- */
.mn-intent {
  margin-top: 16px;
  border: 1px solid var(--line-2, var(--line));
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  background: var(--brand-soft);
  padding: 12px 14px;
}
.mn-intent .h {
  font-size: 12px;
  color: var(--brand);
  letter-spacing: .04em;
  margin-bottom: 8px;
  font-weight: 600;
}
.mn-intent .sum { font-size: 13.5px; color: var(--ink); line-height: 1.6; margin-bottom: 10px; }
.mn-intent .kv { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.mn-intent .kv div { font-size: 12px; color: var(--muted); }
.mn-intent .kv b { color: var(--ink); font-family: var(--font-mono); font-size: 12px; }

/* ---------- 流水线步骤 ---------- */
.mn-pipe { display: flex; flex-direction: column; gap: 10px; }
.mn-step {
  display: grid;
  grid-template-columns: 26px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}
.mn-step .no {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  display: flex; align-items: center; justify-content: center;
}
.mn-step.on .no { background: var(--brand); color: #fff; }
.mn-step .cond { font-size: 12.5px; color: var(--ink); line-height: 1.5; }
.mn-step .cond em { color: var(--muted); font-style: normal; font-family: var(--font-mono); font-size: 11.5px; }
.mn-step .hits { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.mn-step.on .hits { color: var(--brand); }
.mn-step.relax { border-color: #E4C68A; background: var(--warn-soft); }
.mn-step.relax .no { background: var(--warn); color: #fff; }

/* ---------- 结果摘要 KPI ---------- */
.mn-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.mn-kpi {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}
.mn-kpi .l { font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.mn-kpi .v {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--ink);
  line-height: 1.15;
}
.mn-kpi .v.b { color: var(--brand); }
.mn-kpi .s { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ---------- 结果表 ---------- */
.mn-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mn-table thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 600;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.mn-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line-2, #EEF3F5);
  vertical-align: top;
}
.mn-table tbody tr:hover { background: var(--paper); }
.mn-table .nm { color: var(--ink); font-weight: 600; display: block; line-height: 1.35; }
.mn-table .ty { color: var(--muted); font-size: 11.5px; display: block; margin-top: 3px; }
.mn-table .pa { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.mn-table .mo { font-family: var(--font-mono); font-size: 12.5px; }

/* 命中理由标签 */
.mn-why { display: flex; flex-wrap: wrap; gap: 4px; max-width: 260px; }
.mn-why span {
  font-size: 10.5px;
  line-height: 1.5;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--mist);
  color: var(--muted);
  white-space: nowrap;
}
.mn-why span.k { background: var(--brand-soft); color: var(--brand); }
.mn-why span.r { background: var(--ok-soft); color: var(--ok); }

/* 得分条 */
.mn-sc { display: flex; align-items: center; gap: 7px; min-width: 96px; }
.mn-sc .bar2 { flex: 1; height: 5px; border-radius: 3px; background: var(--mist); overflow: hidden; }
.mn-sc .bar2 i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.mn-sc .n { font-family: var(--font-mono); font-size: 12px; color: var(--ink); min-width: 30px; text-align: right; }

/* ---------- 状态条 ---------- */
.mn-status {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
  margin: 16px 0;
}
.mn-status.info { background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(15,110,120,.22); }
.mn-status.err  { background: #FBEDE8; color: var(--cta); border: 1px solid rgba(194,70,28,.25); }
.mn-status.warn { background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(156,117,8,.25); }
.mn-status .t { font-weight: 600; }
.mn-status .d { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---------- 空态 ---------- */
.mn-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 13px;
}
.mn-empty b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 6px; }

@media (max-width: 900px) {
  .mn-why { max-width: none; }
  .mn-table { font-size: 12px; }
}


/* ============================================================
   AI 挖掘 · 积分与导出（v20260922c）
   ============================================================ */

/* ---------- 积分条 ---------- */
.mn-pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 16px 0 14px;
  padding: 13px 15px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.mn-pay-l { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.mn-pay-k { font-size: 12px; color: var(--muted); }
.mn-pay-v {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.mn-pay-v.ok { color: var(--ok); }
.mn-pay-v.low { color: var(--warn); }
.mn-pay-s { font-size: 12px; color: var(--muted); }
.mn-pay-r { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 弹窗 ---------- */
.mn-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 31, 42, .44);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
/* 关键：display:flex 会盖掉 [hidden]，必须显式声明，否则弹窗永远关不掉 */
.mn-mask[hidden] { display: none; }

.mn-modal {
  width: 100%;
  max-width: 540px;
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: var(--r3);
  box-shadow: var(--sh3);
  animation: mn-pop .22s var(--ease);
}
@keyframes mn-pop {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.mn-modal-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.mn-modal-x {
  cursor: pointer;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  padding: 0 4px;
}
.mn-modal-x:hover { color: var(--cta); }
.mn-modal-b { padding: 16px 18px; }
.mn-modal-f {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: var(--mist);
  border-radius: 0 0 var(--r3) var(--r3);
}
.mn-modal-note {
  margin: 13px 0 0;
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--muted);
}
.mn-modal-note b { color: var(--ink); }
.mn-modal-acts { margin-top: 12px; }

.mn-kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 13.5px;
}
.mn-kv .k { color: var(--muted); }
.mn-kv .v { color: var(--ink); font-weight: 600; }
.mn-kv .v.mono { font-family: var(--font-mono); }

.mn-tier {
  background: linear-gradient(135deg, var(--brand-soft), #fff);
  border: 1px solid rgba(15, 110, 120, .22);
  border-radius: 10px;
  padding: 15px 17px;
}
.mn-tier-top { display: flex; align-items: baseline; gap: 9px; }
.mn-tier-top b {
  font-family: var(--font-mono);
  font-size: 27px;
  color: var(--brand-ink);
  line-height: 1.1;
}
.mn-tier-top span { font-size: 14px; color: var(--brand); font-weight: 600; }
.mn-tier-d { margin-top: 8px; font-size: 12.5px; color: var(--body); }
.mn-tier-d b { color: var(--brand-ink); }

.mn-code {
  min-height: auto;
  padding: 11px 13px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mn-status.ok {
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid rgba(27, 127, 90, .25);
}

@media (max-width: 720px) {
  .mn-pay { flex-direction: column; align-items: stretch; }
  .mn-pay-r { justify-content: stretch; }
  .mn-pay-r .btn { flex: 1; }
  .mn-modal { max-width: none; }
}


/* ---------- 账户凭据 ---------- */
.mn-cred {
  margin-top: 18px;
  padding: 14px 15px;
  background: var(--mist);
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.mn-cred-h {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 9px;
}
.mn-cred-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.mn-cred-row + .mn-cred-row { margin-top: 9px; }
.mn-cred-t {
  flex: 1 1 190px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  overflow-wrap: anywhere;
}
.mn-cred-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.mn-cred-note b { color: var(--cta); }


/* ---- hidden 兜底 ----
   任何作者写的 display:flex / grid 都会盖掉浏览器默认的 [hidden]{display:none}，
   导致"隐藏"的元素仍然占位（实测：导出弹窗里就多出一大块空白）。
   作用域限定在挖掘视图内，避免影响站点其它弹窗的既有逻辑。 */
#v-mine [hidden] { display: none !important; }

/* ---- 试用锁定态（2026-10-08 改版） ----
   试用期：「联系路径」列改为「🔒 购买解锁」，不透露任何可触达线索。 */
.mn-table .pill.lock {
  background: #F1F5F6;
  color: var(--faint);
  border: 1px dashed #C4D2D8;
  font-weight: 600;
  white-space: nowrap;
}


/* ===== 首屏大搜索框（找买家 · 设计稿三块设计之一）===== */
.hero-search{background:linear-gradient(180deg,#F4FAFB,#EAF4F5);border:1px solid #CFE3E6;border-radius:14px;padding:22px 24px;margin-bottom:18px}
.hero-search .hs-h{margin:0 0 6px;font-size:20px;font-weight:800;color:#0B1F2A}
.hero-search .hs-p{margin:0 0 14px;font-size:13px;color:#556C7A}
.hero-search .hs-row{display:flex;gap:10px}
.hero-search .hs-in{flex:1;min-width:0;height:46px;border:1px solid #BFD6DA;border-radius:10px;padding:0 14px;font-size:15px;background:#fff;color:#0B1F2A}
.hero-search .hs-in:focus{outline:none;border-color:#0F6E78;box-shadow:0 0 0 3px rgba(15,110,120,.12)}
.hero-search .hs-row .btn{height:46px;padding:0 22px;white-space:nowrap;flex:0 0 auto}
.hero-search .hs-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.hero-search .chip{border:1px solid #CFE3E6;background:#fff;color:#0F6E78;border-radius:999px;padding:6px 14px;font-size:12.5px;cursor:pointer;transition:background .18s,color .18s,border-color .18s;font-family:inherit}
.hero-search .chip:hover{background:#0F6E78;color:#fff;border-color:#0F6E78}
@media(max-width:860px){.hero-search{padding:16px}.hero-search .hs-row{flex-direction:column}.hero-search .hs-row .btn{height:44px}}

/* ===== 试用锁定态：打码占位（不是消失，是让他看到"这里本来有数据"）===== */
.mn-table .mask{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#8A9AA3;letter-spacing:1px;display:block;font-size:12.5px}
.mn-table .mut-dash{color:#8A9AA3}


/* ===== 结果列表：一行一家（极简版） ===== */
.mn-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.mn-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 20px;align-items:center;
  background:#fff;border:1px solid #E2EAED;border-radius:12px;padding:14px 18px;
  transition:border-color .18s,box-shadow .18s}
.mn-item:hover{border-color:#BBD7DB;box-shadow:0 2px 12px rgba(11,31,42,.06)}
.it-main{min-width:0}
.it-nm{font-size:15.5px;font-weight:700;color:#0B1F2A;line-height:1.35;word-break:break-word}
.it-tag{display:inline-block;font-size:11px;font-weight:600;padding:2px 9px;border-radius:999px;
  background:#FDEBE4;color:#B03D18;margin-left:8px;vertical-align:1px}
.it-loc{font-size:12.5px;color:var(--muted);margin-top:3px}
.it-cv{display:flex;flex-direction:column;gap:3px;align-items:flex-end;text-align:right;
  font-size:13px;color:var(--muted)}
.cv-i{white-space:nowrap}
.cv-i a{color:#0F6E78;text-decoration:none}
.cv-i a:hover{text-decoration:underline}
.cv-site{color:#0F6E78;text-decoration:none;font-weight:600}
.cv-site:hover{text-decoration:underline}
.cv-lock{color:#9FB0B8;white-space:nowrap;letter-spacing:.5px}
.cv-go{margin-top:4px;border:0;background:none;color:#B03D18;font-weight:700;font-size:12.5px;
  cursor:pointer;font-family:inherit;padding:0}
.cv-go:hover{text-decoration:underline}
.cv-none{color:#9FB0B8;font-size:12.5px}
.mn-note-line{margin:16px 0 0;font-size:12.5px;color:var(--muted);line-height:1.7}

/* 侧栏「数据来源与合规」小入口（在 side-foot 里，复用 .nv 以便参与导航切换） */
.side-foot .side-link{display:block;width:100%;text-align:left;font-size:12.5px;color:var(--muted);
  padding:8px 8px 0;margin-top:2px;background:none;border:0;cursor:pointer;font-family:inherit}
.side-foot .side-link:hover{color:var(--brand)}
.side-foot .side-link.on{background:none;color:var(--brand);font-weight:700}

@media(max-width:860px){
  .mn-item{grid-template-columns:1fr}
  .it-cv{align-items:flex-start;text-align:left;margin-top:6px}
}
