
/* ================= 知识图谱页 · 对齐站点企业图谱样式（浅色） ================= */
.page.kgmode { background: #f8fafc; color: #1e293b; padding: 0 0 60px; max-width: none; }
.kg-wrap { max-width: 1400px; margin: 0 auto; padding: 20px 24px 40px; }
.kg-nav { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 12px 24px; display: flex; gap: 18px; }
.kg-nav a { color: #2d5a87; font-size: 13.5px; text-decoration: none; }
.kg-nav a:hover { text-decoration: underline; }
.kg-header { background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%); color: #fff; padding: 24px 32px; border-radius: 0; }
.kg-header h1 { font-size: 26px; margin-bottom: 8px; color: #fff; }
.kg-header h1 small { font-size: 17px; opacity: .8; font-weight: 400; }
.kg-header .kg-meta { opacity: .92; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 18px; }
.kg-header .kg-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.kg-header .btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }
.kg-header .btn:hover { border-color: #fff; background: rgba(255,255,255,.24); }
.kgmode .kg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; }
.kgmode .kg-stat { background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.kgmode .kg-stat .label { font-size: 13px; color: #64748b; margin-bottom: 6px; }
.kgmode .kg-stat .value { font-size: 26px; font-weight: 700; }
.kgmode .kg-stat .value.up { color: #10b981; } .kgmode .kg-stat .value.down { color: #ef4444; }
.kgmode .kg-sec { background: #fff; border-radius: 12px; padding: 22px 24px; margin-bottom: 22px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.kgmode .kg-sec > h2 { font-size: 19px; margin-bottom: 16px; color: #1e3a5f; border-left: 4px solid #2d5a87; padding-left: 12px; display: flex; justify-content: space-between; align-items: center; }
.kgmode .kg-sec > h2 small { color: #64748b; font-weight: 400; font-size: 12.5px; }
.kgmode .kg-chart { width: 100%; background: #fff; }
.kgmode .kg-chart canvas { width: 100%; height: 460px; display: block; }
.kgmode .kg-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.kgmode .kg-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #475569; }
.kgmode .kg-legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.kgmode .kg-filters { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.kgmode .kg-filters select, .kgmode .kg-filters input { padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 13.5px; background: #fff; color: #1e293b; }
.kgmode .kg-tbl { overflow: auto; max-height: 480px; border: 1px solid #e2e8f0; border-radius: 10px; }
.kgmode table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.kgmode th { background: #f1f5f9; padding: 10px 8px; text-align: left; font-weight: 600; color: #475569; border-bottom: 2px solid #e2e8f0; position: sticky; top: 0; }
.kgmode td { padding: 10px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: top; color: #1e293b; }
.kgmode tr:hover td { background: #f8fafc; }
.kgmode .up { color: #10b981; font-weight: 600; } .kgmode .down { color: #ef4444; font-weight: 600; }
.kgmode .weight { color: #f59e0b; white-space: nowrap; }
.kgmode .chain { font-size: 12px; color: #64748b; max-width: 320px; }
.kgmode .trigger { font-size: 12px; color: #475569; max-width: 210px; }
.kgmode .badge2 { display: inline-block; padding: 2px 9px; border-radius: 4px; font-size: 11px; font-weight: 600; background: #dbeafe; color: #1e40af; }
.kgmode .cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .kgmode .cols2 { grid-template-columns: 1fr; } }
.kgmode .chainlist { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.kgmode .chainlist li { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: 12.6px; color: #64748b; }
.kgmode .chainlist li b { color: #1e293b; font-size: 13px; }
.kgmode .three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .kgmode .three-col { grid-template-columns: 1fr; } }
.kgmode .list-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; }
.kgmode .list-box h3 { font-size: 13.5px; margin-bottom: 8px; color: #1e3a5f; }
.kgmode .list-box ul { list-style: none; color: #475569; font-size: 12.8px; }
.kgmode .list-box li { padding: 3px 0 3px 14px; position: relative; }
.kgmode .list-box li::before { content: "•"; position: absolute; left: 2px; color: #2d5a87; }
.kgmode .rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.kgmode .rel-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; display: block; }
.kgmode .rel-card:hover { border-color: #2d5a87; background: #fff; }
.kgmode .rel-card b { display: block; color: #1e293b; font-size: 13px; }
.kgmode .rel-card span { color: #64748b; font-size: 12px; }
.kgmode .empty2 { color: #64748b; font-size: 13px; padding: 16px; text-align: center; border: 1px dashed #e2e8f0; border-radius: 10px; }
.kgmode .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.kgmode .cat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px 18px; cursor: pointer; transition: .18s; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.kgmode .cat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15,23,42,.1); border-color: #2d5a87; }
.kgmode .cat-card .ico { font-size: 20px; }
.kgmode .cat-card b { display: block; margin: 6px 0 2px; font-size: 15px; color: #1e3a5f; }
.kgmode .cat-card span { color: #64748b; font-size: 12.5px; }
.kgmode .kg-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.kgmode .kg-toolbar input, .kgmode .kg-toolbar select { padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #1e293b; }
.kgmode .btn { border-color: #e2e8f0; background: #fff; color: #1e293b; }
.kgmode .btn:hover { border-color: #2d5a87; }
.kgmode .btn-primary { background: linear-gradient(135deg, #2d5a87, #1e3a5f); color: #fff; border: 0; }
.kgmode .pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 14px; color: #64748b; font-size: 12.5px; }
.kgmode h4 { color: #1e3a5f; }
