/* ---------- 行业网状图谱（试用展示） ---------- */
.kgm-head { text-align: center; margin-bottom: 16px; }
.kgm-tag {
  display: inline-block; font-size: 11px; letter-spacing: 2px; padding: 4px 14px;
  border-radius: 999px; background: rgba(240, 185, 11, .12); color: var(--gold-2);
  border: 1px solid rgba(240, 185, 11, .4); margin-bottom: 10px;
}
.kgm-head h3 { font-size: 21px; margin-bottom: 8px; }
.kgm-sub { color: var(--muted); font-size: 13px; }
.kgm-canvas-wrap {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 14px;
  padding: 8px; margin-bottom: 18px; overflow: hidden;
}
.kgm-canvas { width: 100%; height: 420px; display: block; }
.kgm-chains { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.kgm-col {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; position: relative; overflow: hidden;
}
.kgm-col::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.kgm-col:nth-child(1)::before { background: linear-gradient(90deg, var(--green), transparent); }
.kgm-col:nth-child(2)::before { background: linear-gradient(90deg, var(--red), transparent); }
.kgm-col h4 { font-size: 14.5px; margin-bottom: 10px; }
.kgm-col h4.up { color: var(--green); }
.kgm-col h4.down { color: var(--red); }
.kgm-col ol { list-style: none; counter-reset: ch; }
.kgm-col li {
  counter-increment: ch; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 8px;
  font-size: 13px; color: var(--muted); line-height: 1.7; position: relative; padding-left: 34px;
}
.kgm-col li::before {
  content: counter(ch); position: absolute; left: 11px; top: 11px;
  width: 17px; height: 17px; border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.kgm-col:nth-child(1) li::before { background: rgba(22, 199, 132, .16); color: var(--green); }
.kgm-col:nth-child(2) li::before { background: rgba(234, 57, 67, .16); color: var(--red); }
.kgm-links h4 { font-size: 14.5px; color: var(--gold-2); margin-bottom: 10px; }
.kgm-linkgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kgm-linkcard {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; text-decoration: none; transition: .25s;
}
.kgm-linkcard span { color: var(--text); font-size: 13px; font-weight: 600; }
.kgm-linkcard i { color: var(--gold-2); font-size: 12px; font-style: normal; opacity: .75; }
.kgm-linkcard:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
@media (max-width: 860px) {
  .kgm-chains { grid-template-columns: 1fr; }
  .kgm-linkgrid { grid-template-columns: 1fr 1fr; }
  .kgm-canvas { height: 340px; }
}

.kgm-inner{padding:0 14px}
.m-main .kgm-canvas{height:300px}

/* ---------- 提交成功 · 静待消息 ---------- */
.kgm-done {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  background: linear-gradient(120deg, rgba(22, 199, 132, .14), rgba(240, 185, 11, .10));
  border: 1px solid rgba(22, 199, 132, .45); border-left: 4px solid var(--green);
  border-radius: 14px; padding: 18px 22px; margin-bottom: 22px;
}
.kgm-done-main { display: flex; align-items: flex-start; gap: 14px; }
.kgm-done-ico { font-size: 26px; line-height: 1.1; }
.kgm-done-title { font-size: 19px; margin: 0 0 6px; color: var(--text); }
.kgm-done-sub { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; }
.kgm-done-state {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--green);
  background: rgba(22, 199, 132, .12); border: 1px solid rgba(22, 199, 132, .4);
  border-radius: 999px; padding: 7px 14px; white-space: nowrap;
}
.kgm-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(22, 199, 132, .7); animation: kgm-pulse 1.8s infinite;
}
@keyframes kgm-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 199, 132, .7); }
  70%  { box-shadow: 0 0 0 9px rgba(22, 199, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 199, 132, 0); }
}
@media (max-width: 860px) {
  .kgm-done { flex-direction: column; align-items: flex-start; }
}

/* ---------- 企业知识图谱（试用展示） ---------- */
.ke-loading, .ke-empty {
  background: var(--card); border: 1px dashed var(--border); border-radius: 14px;
  padding: 18px 22px; color: var(--muted); font-size: 13.5px; margin-bottom: 20px;
}
.ke-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.ke-stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.ke-stat-l { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ke-stat-v { font-size: 22px; font-weight: 700; color: var(--text); }
.ke-stat-v.up { color: var(--green); }
.ke-stat-v.down { color: var(--red); }
.ke-stat-v.warn { color: var(--gold-2); }
.ke-block { margin-bottom: 24px; }
.ke-h4 { font-size: 15px; color: var(--gold-2); margin-bottom: 12px; }
.ke-meta { font-size: 12px; opacity: .85; }
.ke-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.ke-l { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.ke-l i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ke-chains li { padding-left: 34px; }
.ke-w { color: var(--gold-2); font-size: 11.5px; letter-spacing: 1px; }
.ke-cats .ke-catgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.ke-cat { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ke-cat b { color: var(--text); font-size: 13px; }
.ke-bar { grid-column: 1 / -1; height: 5px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.ke-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--cyan)); }
.ke-lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ke-list { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.ke-list h5 { font-size: 13.5px; margin-bottom: 8px; color: var(--text); }
.ke-list ul { list-style: none; }
.ke-list li { font-size: 12.5px; color: var(--muted); padding: 4px 0 4px 14px; position: relative; }
.ke-list li::before { content: "·"; position: absolute; left: 4px; color: var(--gold-2); }
.ke-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 4px; }
.kgm-canvas-wrap { position: relative; }
.kgm-canvas { width: 100%; height: 430px; display: block; }
@media (max-width: 860px) {
  .ke-stats { grid-template-columns: 1fr 1fr; }
  .ke-cats .ke-catgrid { grid-template-columns: 1fr; }
  .ke-lists { grid-template-columns: 1fr; }
  .kgm-canvas { height: 340px; }
}

/* ---------- 产业链因果结构（上游/中游/下游） ---------- */
.kgm-chainwrap { margin-bottom: 20px; }
.kgm-chainwrap h4 { font-size: 15px; color: var(--gold-2); margin-bottom: 8px; }
.kgm-chain3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kgm-chaincol {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; position: relative; overflow: hidden;
}
.kgm-chaincol::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.kgm-chaincol.c0::before { background: linear-gradient(90deg, var(--cyan), transparent); }
.kgm-chaincol.c1::before { background: linear-gradient(90deg, var(--gold), transparent); }
.kgm-chaincol.c2::before { background: linear-gradient(90deg, var(--green), transparent); }
.kgm-chaincol h5 { font-size: 13.5px; margin-bottom: 8px; color: var(--text); }
.kgm-chaincol ul { list-style: none; }
.kgm-chaincol li { font-size: 12.5px; color: var(--muted); padding: 4px 0 4px 14px; position: relative; }
.kgm-chaincol li::before { content: "›"; position: absolute; left: 2px; color: var(--gold-2); }
@media (max-width: 860px) { .kgm-chain3 { grid-template-columns: 1fr; } }
