/* 周金根借助AI编程完成 */

    * {
      box-sizing: border-box;
    }
    html, body {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f8fafc;
      color: #0f172a;
      -webkit-font-smoothing: antialiased;
    }

    .canvas-bg {
      background-color: #f8fafc;
      background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
      background-size: 20px 20px;
    }

    ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    ::-webkit-scrollbar-track {
      background: transparent;
    }
    ::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 9999px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: #94a3b8;
    }

    .am-node {
      cursor: pointer;
      transition: opacity 0.18s ease, filter 0.18s ease;
    }
    .am-node:hover .am-node-outline {
      filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.22));
    }
    .am-node.is-selected .am-node-outline {
      stroke: #2563eb !important;
      stroke-width: 2.5px !important;
      filter: drop-shadow(0 0 0 3px rgba(37, 99, 235, 0.25));
    }
    .am-node.is-dimmed {
      opacity: 0.24;
    }

    .am-conn {
      cursor: pointer;
      transition: opacity 0.18s ease;
    }
    .am-conn:hover .am-conn-visible {
      stroke: #2563eb !important;
      stroke-width: 2.4px !important;
    }
    .am-conn.is-selected .am-conn-visible {
      stroke: #2563eb !important;
      stroke-width: 2.6px !important;
    }
    .am-conn.is-dimmed {
      opacity: 0.16;
    }

    @keyframes locatePulse {
      0% { stroke-width: 2px; stroke: #2563eb; }
      50% { stroke-width: 6px; stroke: #3b82f6; }
      100% { stroke-width: 2.5px; stroke: #2563eb; }
    }
    .am-locate-pulse .am-node-outline {
      animation: locatePulse 0.9s ease-in-out 2;
    }

    /* 演示模式样式已迁移至 plugins/presentation-mode.plugin.js */
