/* =========================================================
   学科知识地图 · 独立公开工具
   仅服务 tools/knowledge-map 页面，不改动全站样式
   ========================================================= */
:root {
  --ink: #0b1f3a;
  --ink-2: #17395f;
  --blue: #1d5fa8;
  --blue-2: #6ea3d8;
  --blue-100: #e8f1fa;
  --gold: #b8863b;
  --gold-100: #fbf3e2;
  --paper: #f7f9fc;
  --white: #ffffff;
  --text: #111827;
  --muted: #5b6779;
  --line: #dfe6ef;
  --green: #15803d;
  --amber: #b45309;
  --red: #b91c1c;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(11, 31, 58, .10);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- 顶部 ---------- */
.tool-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 249, 252, .88); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 230, 239, .8);
}
.tool-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand span { font-size: 17px; }
.brand em { font-style: normal; font-size: 11px; color: var(--blue); letter-spacing: .12em; margin-left: 6px; }
.tool-nav nav { display: flex; gap: 22px; font-size: 13px; color: var(--muted); align-items: center; }
.tool-nav nav a:hover { color: var(--ink); }
.nav-cta { padding: 8px 15px; border-radius: 999px; background: var(--ink); color: #fff !important; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 36px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(29,95,168,.14), transparent 32%),
    radial-gradient(circle at 12% 80%, rgba(184,134,59,.10), transparent 30%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; color: var(--blue); font-weight: 800; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.hero h1 { margin: 16px 0 14px; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.04em; color: var(--ink); font-weight: 900; }
.hero h1 .accent { color: var(--blue); }
.hero .lead { margin: 0; max-width: 620px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero .micro { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.micro span { display: inline-flex; align-items: center; gap: 6px; }
.micro i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn-primary, .btn-ghost, .btn-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 800; transition: .18s ease;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(11,31,58,.20); }
.btn-primary:hover { transform: translateY(-2px); background: var(--blue); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-2); color: var(--blue); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blue-100); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 32px; max-width: 600px; }
.hero-stat { background: rgba(255,255,255,.72); border: 1px solid rgba(223,230,239,.9); border-radius: 14px; padding: 14px 15px; }
.hero-stat strong { display: block; font-size: 24px; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 11px; color: var(--muted); letter-spacing: .04em; }

.hero-visual { position: relative; min-height: 430px; }
.hero-card {
  position: relative; z-index: 2; background: linear-gradient(145deg, var(--ink) 0%, #123a6b 100%);
  border-radius: 26px; padding: 28px; color: #fff; box-shadow: var(--shadow); overflow: hidden;
}
.hero-card::after { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 70% 30%, rgba(110,163,216,.35), transparent 40%); pointer-events: none; }
.hero-card .card-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-card .card-top small { letter-spacing: .14em; font-size: 10px; color: #bcd3ea; font-weight: 800; }
.hero-card .pill { font-size: 10px; border: 1px solid rgba(255,255,255,.25); color: #e8f1fa; border-radius: 999px; padding: 4px 9px; }
.mini-map { position: relative; z-index: 2; height: 210px; margin: 16px 0 6px; }
.mini-map svg { width: 100%; height: 100%; }
.hero-card .card-copy { position: relative; z-index: 2; }
.hero-card .card-copy b { display: block; font-size: 14px; margin-bottom: 8px; }
.hero-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; color: #d7e6f4; font-size: 12.5px; }
.hero-card li { display: flex; gap: 8px; }
.hero-card li::before { content: "→"; color: #8fb9dd; }
.float-card {
  position: absolute; right: -16px; bottom: 6px; z-index: 3;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px;
  box-shadow: 0 16px 34px rgba(11,31,58,.12); font-size: 12px; color: var(--muted);
}
.float-card b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-head h2 { margin: 10px 0 8px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -.03em; color: var(--ink); }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 720px; }
.view-toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; flex: 0 0 auto; }
.view-toggle button { border: 0; background: transparent; border-radius: 999px; padding: 8px 15px; font-size: 12px; font-weight: 700; color: var(--muted); }
.view-toggle button.active { background: var(--ink); color: #fff; }

/* ---------- 图谱 ---------- */
.map-shell { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.map-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.map-tabs button { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 7px 13px; font-size: 12px; font-weight: 700; }
.map-tabs button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.map-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.map-canvas { position: relative; min-height: 640px; background: radial-gradient(circle at 50% 46%, #fbfdff 0%, #f2f6fb 70%); overflow: hidden; }
.map-canvas svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(247,249,252,.86); z-index: 8; color: var(--muted); font-size: 13px; }
.map-loading[hidden] { display: none; }
.map-error { color: var(--red); text-align: center; padding: 20px; }
.map-legend { position: absolute; left: 18px; bottom: 16px; display: flex; gap: 10px; flex-wrap: wrap; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 10.5px; color: var(--muted); z-index: 4; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.map-hint { position: absolute; right: 16px; top: 14px; background: rgba(255,255,255,.9); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 5px 10px; font-size: 10px; z-index: 4; }
.map-panel { border-left: 1px solid var(--line); padding: 22px 20px; background: #fff; display: flex; flex-direction: column; min-height: 640px; }
.panel-kicker { font-size: 10px; letter-spacing: .12em; color: var(--blue); font-weight: 800; text-transform: uppercase; }
.panel-title { margin: 8px 0 4px; font-size: 22px; line-height: 1.3; color: var(--ink); letter-spacing: -.02em; }
.panel-sub { font-size: 12px; color: var(--muted); }
.panel-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.panel-stat { background: var(--paper); border-radius: 10px; padding: 10px 11px; }
.panel-stat b { display: block; font-size: 19px; color: var(--ink); line-height: 1.2; }
.panel-stat span { font-size: 10px; color: var(--muted); }
.panel-block { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.panel-block h4 { margin: 0 0 8px; font-size: 12px; color: var(--ink); }
.panel-links { display: grid; gap: 6px; }
.panel-link { font-size: 11.5px; color: var(--muted); background: #f7f9fc; border: 1px solid transparent; border-radius: 8px; padding: 7px 9px; text-align: left; }
.panel-link:hover { border-color: var(--blue-2); color: var(--blue); background: #fff; }
.panel-cta { margin-top: auto; padding-top: 18px; }
.panel-cta .btn-primary { width: 100%; min-height: 42px; font-size: 13px; }
.panel-note { font-size: 10px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* SVG 节点 */
.kg-node { cursor: pointer; }
.kg-node circle { transition: transform .15s ease, stroke-width .15s ease; transform-origin: center; }
.kg-node:hover circle { stroke-width: 3; }
.kg-node text { paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; font-family: var(--font); }
.kg-node.active circle { stroke: var(--gold) !important; stroke-width: 4 !important; }
.kg-edge { stroke-linecap: round; }
.kg-edge.include { stroke: #cbd8e8; stroke-width: 1.3; }
.kg-edge.relation { stroke: #9fb7d1; stroke-width: 1.8; stroke-dasharray: 5 4; }

/* 清单视图 */
.map-list { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 10px 22px 22px; box-shadow: var(--shadow); }
.map-list[hidden] { display: none; }
.list-group { border-bottom: 1px solid var(--line); padding: 16px 0 10px; }
.list-group:last-child { border-bottom: 0; }
.list-group h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink); display: flex; justify-content: space-between; gap: 10px; }
.list-group h3 span { font-size: 11px; color: var(--muted); font-weight: 500; }
.list-leaf { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px dashed #edf1f6; font-size: 12px; color: var(--muted); }
.list-leaf b { color: var(--ink); font-weight: 600; }
.list-leaf em { font-style: normal; color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 能力/步骤 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.feature .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-100); color: var(--blue); font-size: 12px; font-weight: 900; }
.feature h3 { margin: 14px 0 7px; font-size: 18px; color: var(--ink); }
.feature p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.75; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.audience { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.audience b { font-size: 15px; color: var(--ink); display: block; margin-bottom: 6px; }
.audience p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band { padding: 0 0 72px; }
.cta-inner { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--ink) 0%, #123a6b 65%, #1d5fa8 100%); border-radius: 24px; padding: 42px 44px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta-inner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.05), 0 0 0 78px rgba(255,255,255,.03); }
.cta-inner h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 36px); line-height: 1.25; letter-spacing: -.03em; position: relative; z-index: 2; }
.cta-inner p { margin: 0; color: #d6e5f4; font-size: 13px; max-width: 640px; position: relative; z-index: 2; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 2; flex: 0 0 auto; }

/* ---------- 页脚 ---------- */
.tool-footer { background: #fff; border-top: 1px solid var(--line); padding: 34px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.footer-brand img { width: 28px; }
.footer-links { display: flex; gap: 20px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.footer-note { font-size: 11px; color: var(--muted); line-height: 1.7; max-width: 520px; }

/* ---------- Hub ---------- */
.hub-hero { padding: 64px 0 30px; }
.hub-hero h1 { margin: 14px 0 12px; font-size: clamp(36px, 5vw, 62px); line-height: 1.08; letter-spacing: -.04em; color: var(--ink); }
.hub-hero h1 .accent { color: var(--blue); }
.hub-hero p { margin: 0; max-width: 720px; color: var(--muted); font-size: 15px; }
.hub-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 24px; color: var(--muted); font-size: 12px; }
.hub-stats b { color: var(--ink); font-size: 22px; margin-right: 4px; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 26px 0 72px; }
.tool-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; min-height: 292px; transition: .2s ease; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9d9ea; }
.tool-card .top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.tool-card .icon { width: 46px; height: 46px; border-radius: 14px; background: var(--blue-100); color: var(--blue); display: grid; place-items: center; font-weight: 900; font-size: 17px; letter-spacing: -.03em; }
.tool-card .en { font-size: 10px; letter-spacing: .12em; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.tool-card h2 { margin: 16px 0 7px; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.tool-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; min-height: 44px; }
.tool-card .card-stats { display: flex; gap: 14px; margin: 14px 0 18px; font-size: 11px; color: var(--muted); }
.tool-card .card-stats b { color: var(--ink); font-size: 17px; display: block; line-height: 1.2; }
.tool-card .card-actions { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.tool-card .open { font-size: 12px; font-weight: 800; color: var(--blue); display: inline-flex; gap: 5px; align-items: center; }
.tool-card .open:hover { gap: 8px; }
.tool-card .signup-mini { font-size: 11px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.tool-card .signup-mini:hover { color: var(--ink); }
.hub-note { background: var(--gold-100); border: 1px solid #ead9b8; border-radius: 16px; padding: 18px 22px; color: #6b5428; font-size: 12.5px; margin-bottom: 56px; display: flex; gap: 10px; align-items: start; }
.hub-note b { color: #4d3a18; }

/* ---------- 登记页 ---------- */
.signup-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 36px; padding: 52px 0 72px; align-items: start; }
.signup-copy h1 { margin: 12px 0 14px; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -.04em; color: var(--ink); }
.signup-copy p { color: var(--muted); font-size: 14px; max-width: 620px; }
.signup-points { display: grid; gap: 12px; margin-top: 26px; }
.signup-point { display: flex; gap: 12px; align-items: start; font-size: 13px; color: var(--muted); }
.signup-point i { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-100); color: var(--blue); display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 11px; }
.signup-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 26px; }
.signup-card h2 { margin: 0 0 4px; font-size: 20px; color: var(--ink); }
.signup-card .sub { margin: 0 0 18px; font-size: 12px; color: var(--muted); }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 11px; font-weight: 800; color: var(--ink-2); margin-bottom: 5px; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #fbfcfe; border-radius: 10px;
  padding: 11px 12px; font-size: 13px; color: var(--text); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-2); background: #fff; box-shadow: 0 0 0 3px rgba(110,163,216,.12); }
.field textarea { min-height: 76px; resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent { display: flex; gap: 8px; align-items: start; font-size: 11px; color: var(--muted); line-height: 1.6; margin: 4px 0 16px; }
.consent input { margin-top: 3px; }
.signup-submit { width: 100%; min-height: 46px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; }
.signup-submit:hover { background: var(--blue); }
.signup-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-msg { margin-top: 10px; font-size: 12px; min-height: 18px; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--red); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.success-panel { display: none; text-align: center; padding: 26px 8px 12px; }
.success-panel .check { width: 54px; height: 54px; border-radius: 50%; background: #e8f6ed; color: var(--green); display: grid; place-items: center; font-size: 26px; margin: 0 auto 14px; }
.success-panel h3 { margin: 0 0 6px; color: var(--ink); font-size: 20px; }
.success-panel p { color: var(--muted); font-size: 12.5px; margin: 0 0 18px; }
.success-panel .btn-ghost { width: 100%; }

/* ---------- 管理端线索页 ---------- */
.lead-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lead-filter select, .lead-filter input { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; background: #fff; }
.lead-table td { vertical-align: middle; }
.lead-phone { font-variant-numeric: tabular-nums; }
.lead-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.lead-badge.new { background: #fff7e6; color: #b45309; }
.lead-badge.contacted { background: #e8f6ed; color: #15803d; }
.lead-badge.invalid { background: #f3f4f6; color: #6b7280; }
.lead-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.lead-actions button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 7px; font-size: 10px; color: var(--muted); }
.lead-actions button:hover { border-color: var(--blue-2); color: var(--blue); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { min-height: auto; }
  .float-card { right: 10px; }
  .map-body { grid-template-columns: 1fr; }
  .map-panel { border-left: 0; border-top: 1px solid var(--line); min-height: auto; }
  .map-canvas { min-height: 560px; }
  .feature-grid, .audience-grid, .hub-grid { grid-template-columns: 1fr 1fr; }
  .signup-layout { grid-template-columns: 1fr; }
  .signup-card { max-width: 560px; }
  .cta-inner { padding: 32px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .tool-nav .wrap { height: 58px; }
  .tool-nav nav { gap: 12px; }
  .tool-nav nav a:not(.nav-cta) { display: none; }
  .brand span { font-size: 15px; }
  .brand em { display: block; margin-left: 0; font-size: 9px; }
  .brand img { width: 30px; height: 30px; }
  .hero { padding: 36px 0 20px; }
  .hero h1 { font-size: 42px; }
  .hero .lead { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { width: 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 7px; margin-top: 22px; }
  .hero-stat { padding: 10px; }
  .hero-stat strong { font-size: 19px; }
  .hero-stat span { font-size: 9.5px; }
  .hero-card { padding: 20px; border-radius: 20px; }
  .mini-map { height: 170px; }
  .float-card { position: relative; right: auto; bottom: auto; margin-top: 12px; }
  .section { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: start; gap: 12px; }
  .section-head h2 { font-size: 28px; }
  .map-canvas { min-height: 470px; }
  .map-legend { left: 10px; right: 10px; bottom: 10px; gap: 7px; font-size: 9.5px; }
  .map-hint { display: none; }
  .map-panel { padding: 18px; }
  .panel-title { font-size: 19px; }
  .feature-grid, .audience-grid, .hub-grid { grid-template-columns: 1fr; }
  .feature, .audience, .tool-card { padding: 20px; }
  .tool-card { min-height: 260px; }
  .cta-inner { flex-direction: column; align-items: start; padding: 26px; border-radius: 18px; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn-light, .cta-actions .btn-ghost { width: 100%; }
  .signup-layout { gap: 24px; padding: 32px 0 52px; }
  .signup-copy h1 { font-size: 34px; }
  .signup-card { padding: 20px; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { align-items: start; }
  .hub-hero { padding: 40px 0 18px; }
  .hub-hero h1 { font-size: 38px; }
  .hub-stats { gap: 14px; }
  .hub-stats b { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ---------- 2026-11 系列工具优化：统一导航 / 搜索筛选 / 缩放 ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.series-bar {
  position: sticky; top: 64px; z-index: 25;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223,230,239,.9);
}
.series-bar .wrap { display: flex; align-items: center; gap: 7px; padding: 9px 0; overflow-x: auto; scrollbar-width: none; }
.series-bar .wrap::-webkit-scrollbar { display: none; }
.series-label { flex: 0 0 auto; font-size: 10px; letter-spacing: .12em; color: var(--muted); font-weight: 800; margin-right: 4px; }
.series-bar a {
  flex: 0 0 auto; font-size: 11.5px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 11px; background: #fff; white-space: nowrap;
}
.series-bar a:hover { color: var(--blue); border-color: var(--blue-2); }
.series-bar a.active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

.map-tools { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.map-search-wrap { position: relative; flex: 1 1 320px; min-width: 240px; }
.map-search-wrap input {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; padding: 0 74px 0 36px; font-size: 12.5px; color: var(--text); outline: none;
}
.map-search-wrap input:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(110,163,216,.12); }
.map-search-wrap::before {
  content: "⌕"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 17px; line-height: 1; pointer-events: none;
}
.map-search-clear {
  position: absolute; right: 7px; top: 6px; height: 28px; border: 0; background: var(--paper);
  color: var(--muted); border-radius: 7px; padding: 0 9px; font-size: 10px;
}
.map-search-clear:hover { color: var(--ink); }
.map-search-result {
  position: absolute; left: 0; right: 0; top: 44px; z-index: 20;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(11,31,58,.14); padding: 6px; max-height: 280px; overflow: auto;
}
.map-search-result button {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
  border: 0; background: transparent; text-align: left; padding: 9px 10px; border-radius: 8px;
}
.map-search-result button:hover, .map-search-result button:focus-visible { background: var(--blue-100); }
.map-search-result b { font-size: 12.5px; color: var(--ink); font-weight: 700; }
.map-search-result span { font-size: 10px; color: var(--muted); white-space: nowrap; }
.map-search-empty { padding: 14px 10px; text-align: center; color: var(--muted); font-size: 12px; }
.map-filters { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; flex: 0 0 auto; }
.map-filters button { border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 11px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.map-filters button.active { background: var(--ink); color: #fff; }
.map-count { margin-left: auto; font-size: 10.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.map-canvas { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.map-canvas.dragging { cursor: grabbing; }
.map-zoom {
  position: absolute; right: 16px; top: 48px; z-index: 5;
  display: grid; gap: 4px; padding: 5px; border-radius: 11px;
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(11,31,58,.08);
}
.map-zoom button {
  width: 34px; height: 29px; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1;
}
.map-zoom button:hover { background: var(--blue-100); border-color: var(--blue-2); }
.map-zoom button[data-zoom="reset"] { font-size: 9px; font-weight: 700; color: var(--muted); }
.kg-node.dim { opacity: .16; pointer-events: none; }
.kg-edge.dim { opacity: .10; }
.panel-crumb { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 10px; color: var(--muted); margin-bottom: 9px; line-height: 1.5; }
.panel-crumb button { border: 0; background: transparent; padding: 0; color: var(--muted); font-size: 10px; text-align: left; }
.panel-crumb button:hover { color: var(--blue); }
.panel-crumb span { color: #b6c1d0; }
.panel-link span { float: right; color: #9ca3af; }
.panel-link em { font-style: normal; color: var(--gold); font-weight: 800; margin-right: 3px; }
.panel-actions { display: grid; gap: 8px; }
.panel-copy { min-height: 36px; font-size: 11px; padding: 0 12px; }
.list-panel { border: 1px solid var(--line); border-radius: 18px; margin-top: 14px; min-height: 0; box-shadow: 0 14px 34px rgba(11,31,58,.07); }
.map-list { display: block; }
.map-list[hidden] { display: none; }
.list-leaf {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; align-items: center;
  width: 100%; border: 0; border-top: 1px dashed #edf1f6; background: transparent;
  padding: 9px 0; text-align: left; color: var(--muted); font-size: 12px;
}
.list-leaf:hover b { color: var(--blue); }
.list-leaf b { color: var(--ink); font-weight: 600; }
.list-leaf em { font-style: normal; color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.list-leaf span { font-size: 10px; color: var(--muted); white-space: nowrap; }
.list-leaf:hover span { color: var(--blue); }
.map-empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 12.5px; }

@media (max-width: 980px) {
  .map-tools { align-items: stretch; }
  .map-count { margin-left: 0; }
}
@media (max-width: 640px) {
  .series-bar { top: 58px; }
  .series-bar .wrap { padding: 8px 0; gap: 5px; }
  .series-label { display: none; }
  .series-bar a { font-size: 10.5px; padding: 5px 9px; }
  .map-tools { gap: 8px; }
  .map-search-wrap { flex: 1 1 100%; min-width: 0; }
  .map-search-wrap input { height: 38px; font-size: 12px; }
  .map-filters { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .map-filters button { flex: 0 0 auto; }
  .map-count { display: none; }
  .map-zoom { right: 10px; top: 10px; padding: 4px; }
  .map-zoom button { width: 32px; height: 27px; }
  .list-panel { padding: 18px; }
}

/* 工具页优先让图谱进入首屏：压缩 hero，移动端隐藏装饰卡 */
.hero { padding: 42px 0 28px; }
.hero h1 { font-size: clamp(38px, 4.7vw, 62px); margin: 12px 0 10px; }
.hero .lead { font-size: 15px; line-height: 1.72; }
.hero-stats { margin-top: 24px; }
.section { padding: 56px 0; }
@media (max-width: 640px) {
  .hero { padding: 28px 0 14px; }
  .hero h1 { font-size: 38px; margin-top: 9px; }
  .hero .lead { font-size: 13.5px; }
  .hero-stats { margin-top: 18px; }
  .hero-visual { display: none; }
  .section { padding: 34px 0; }
  .section-head { margin-bottom: 18px; }
}



#mapSection { scroll-margin-top: 112px; }
@media (max-width: 640px) { #mapSection { scroll-margin-top: 104px; } }
