分享图
动画工坊
引擎就绪
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>4路宽量程多抽头协同励磁与同步补偿系统</title>
  <style>
    :root {
      --bg: #070a12;
      --card-bg: rgba(14, 21, 37, 0.78);
      --border: rgba(0, 240, 255, 0.22);
      --cyan: #00f0ff;
      --emerald: #00ffaa;
      --amber: #ffaa00;
      --purple: #a855f7;
      --text-muted: #8395a7;
      --text-bright: #e2e8f0;
      --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      user-select: none;
    }

    body {
      background: radial-gradient(circle at 50% 50%, #0d1527 0%, var(--bg) 100%);
      color: var(--text-bright);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      min-height: 100vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      position: relative;
    }

    /* 顶部精简微型状态栏 */
    .top-bar {
      position: absolute;
      top: 14px;
      left: 20px;
      right: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 10;
      pointer-events: none;
    }

    .title-group {
      pointer-events: auto;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .title-badge {
      background: rgba(0, 240, 255, 0.12);
      border: 1px solid var(--cyan);
      color: var(--cyan);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.8px;
      padding: 3px 8px;
      border-radius: 4px;
      font-family: var(--font-mono);
    }

    .title-text {
      font-size: 15px;
      font-weight: 600;
      letter-spacing: 0.5px;
      color: #ffffff;
      text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
    }

    .telemetry-chip {
      background: var(--card-bg);
      border: 1px solid rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-family: var(--font-mono);
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--text-muted);
    }

    .status-dot {
      width: 7px;
      height: 7px;
      background: var(--emerald);
      border-radius: 50%;
      box-shadow: 0 0 8px var(--emerald);
      animation: pulse-dot 1.8s infinite;
    }

    @keyframes pulse-dot {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(0.85); }
    }

    /* 主可视化画板容器 - 保持核心动画处于画面中央最大化 */
    .viewport {
      flex: 1;
      width: 100vw;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
    }

    svg {
      width: 100%;
      height: 100%;
      max-width: 1300px;
      max-height: 860px;
      filter: drop-shadow(0 0 35px rgba(0, 0, 0, 0.7));
    }

    /* 悬浮控制面板 - 靠边角落布局,绝不遮挡中央主视觉 */
    .ctrl-dock {
      position: absolute;
      bottom: 16px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--card-bg);
      border: 1px solid var(--border);
      backdrop-filter: blur(14px);
      padding: 7px 14px;
      border-radius: 30px;
      display: flex;
      align-items: center;
      gap: 12px;
      z-index: 10;
      box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    }

    .dock-label {
      font-size: 12px;
      color: var(--text-muted);
      font-family: var(--font-mono);
      margin-right: 4px;
    }

    .gear-btn-group {
      display: flex;
      gap: 6px;
      background: rgba(0, 0, 0, 0.35);
      padding: 3px;
      border-radius: 20px;
    }

    .gear-btn {
      background: transparent;
      border: 1px solid transparent;
      color: #94a3b8;
      font-size: 11px;
      font-family: var(--font-mono);
      padding: 5px 12px;
      border-radius: 16px;
      cursor: pointer;
      transition: all 0.25s ease;
    }

    .gear-btn:hover {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.06);
    }

    .gear-btn.active {
      background: rgba(0, 240, 255, 0.18);
      border-color: var(--cyan);
      color: var(--cyan);
      font-weight: 600;
      box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
    }

    .auto-toggle {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      color: var(--text-muted);
      cursor: pointer;
      border-left: 1px solid rgba(255, 255, 255, 0.12);
      padding-left: 12px;
    }

    .auto-toggle input {
      accent-color: var(--cyan);
      cursor: pointer;
    }

    /* 左右下角微型信息挂件 */
    .hud-corner-left {
      position: absolute;
      bottom: 18px;
      left: 20px;
      background: var(--card-bg);
      border: 1px solid rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(10px);
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 11px;
      font-family: var(--font-mono);
      line-height: 1.5;
      color: var(--text-muted);
      pointer-events: none;
      z-index: 5;
    }

    .hud-corner-left span {
      color: var(--cyan);
      font-weight: 600;
    }

    .hud-corner-right {
      position: absolute;
      bottom: 18px;
      right: 20px;
      background: var(--card-bg);
      border: 1px solid rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(10px);
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 11px;
      font-family: var(--font-mono);
      line-height: 1.5;
      text-align: right;
      color: var(--text-muted);
      pointer-events: none;
      z-index: 5;
    }

    .hud-corner-right span {
      color: var(--emerald);
      font-weight: 600;
    }
  </style>
</head>
<body>

  <!-- 顶部状态条 -->
  <header class="top-bar">
    <div class="title-group">
      <span class="title-badge">TRIZ IFR SYSTEM</span>
      <h1 class="title-text">4路宽量程独立多抽头恒磁通同步激励平台</h1>
    </div>
    <div class="telemetry-chip">
      <span class="status-dot"></span>
      <span>基准相位同步抖动: <strong style="color:var(--emerald);" id="jitterVal">0.24 μs</strong> (≤ 1.0 μs)</span>
    </div>
  </header>

  <!-- 中央主图 SVG 空间 -->
  <main class="viewport">
    <svg viewBox="0 0 1100 760" id="mainSvg">
      <defs>
        <!-- 辉光滤镜 -->
        <filter id="glow" x="-20%" y="-20%" width="140%" height="140%">
          <feGaussianBlur stdDeviation="3.5" result="blur" />
          <feMerge>
            <feMergeNode in="blur" />
            <feMergeNode in="SourceGraphic" />
          </feMerge>
        </filter>

        <filter id="glow-heavy" x="-50%" y="-50%" width="200%" height="200%">
          <feGaussianBlur stdDeviation="7" result="blur1" />
          <feGaussianBlur stdDeviation="3" result="blur2" />
          <feMerge>
            <feMergeNode in="blur1" />
            <feMergeNode in="blur2" />
            <feMergeNode in="SourceGraphic" />
          </feMerge>
        </filter>

        <!-- 磁回路流动粒子标记 -->
        <radialGradient id="centerCoreGrad" cx="50%" cy="50%" r="50%">
          <stop offset="0%" stop-color="#152844" stop-opacity="0.9" />
          <stop offset="70%" stop-color="#0a1426" stop-opacity="0.95" />
          <stop offset="100%" stop-color="#040913" stop-opacity="1" />
        </radialGradient>

        <!-- 导线渐变 -->
        <linearGradient id="wirePulseGrad" x1="0%" y1="0%" x2="100%" y2="0%">
          <stop offset="0%" stop-color="#00f0ff" stop-opacity="0.1" />
          <stop offset="50%" stop-color="#00f0ff" stop-opacity="1" />
          <stop offset="100%" stop-color="#00f0ff" stop-opacity="0.1" />
        </linearGradient>

        <linearGradient id="fluxLoopGrad" x1="0%" y1="0%" x2="100%" y2="100%">
          <stop offset="0%" stop-color="#00f0ff" stop-opacity="0.7" />
          <stop offset="50%" stop-color="#00ffaa" stop-opacity="0.9" />
          <stop offset="100%" stop-color="#00f0ff" stop-opacity="0.7" />
        </linearGradient>
      </defs>

      <!-- 导磁轭铁基座及磁路骨架 (四极十字闭合低磁阻回流架构) -->
      <g id="magneticYoke" opacity="0.92">
        <!-- 闭合回流外环与四极极靴 -->
        <path d="M 310,130 L 790,130 C 860,130 920,190 920,260 L 920,500 C 920,570 860,630 790,630 L 310,630 C 240,630 180,570 180,500 L 180,260 C 180,190 240,130 310,130 Z"
              fill="url(#centerCoreGrad)" stroke="#1a3154" stroke-width="6" stroke-dasharray="16, 6" />

        <!-- 中央环形磁通汇流台 -->
        <circle cx="550" cy="380" r="115" fill="#08101e" stroke="#00f0ff" stroke-width="2.5" stroke-opacity="0.4" />
        <circle cx="550" cy="380" r="80" fill="#0c172b" stroke="#00ffaa" stroke-width="1.5" stroke-opacity="0.5" stroke-dasharray="4, 4" />

        <!-- 四象限磁轭支柱铁芯 -->
        <!-- 左上极靴 -->
        <rect x="290" y="220" width="100" height="90" rx="10" fill="#111d33" stroke="#25426e" stroke-width="2.5" />
        <!-- 右上极靴 -->
        <rect x="710" y="220" width="100" height="90" rx="10" fill="#111d33" stroke="#25426e" stroke-width="2.5" />
        <!-- 左下极靴 -->
        <rect x="290" y="450" width="100" height="90" rx="10" fill="#111d33" stroke="#25426e" stroke-width="2.5" />
        <!-- 右下极靴 -->
        <rect x="710" y="450" width="100" height="90" rx="10" fill="#111d33" stroke="#25426e" stroke-width="2.5" />
      </g>

      <!-- 动态低阻回流磁通线 (闭环磁通,依据安匝数动态加速与辉光加粗) -->
      <g id="fluxField" opacity="0.85">
        <!-- 环绕磁通大回路 1 (顺时针) -->
        <path id="fluxLine1" d="M 330,175 C 550,165 770,175 870,250 C 900,320 900,440 870,510 C 770,585 550,595 330,585 C 200,510 200,250 330,175 Z"
              fill="none" stroke="url(#fluxLoopGrad)" stroke-width="3" stroke-dasharray="14 10" filter="url(#glow)">
          <animate attributeName="stroke-dashoffset" from="0" to="-240" dur="4s" repeatCount="indefinite" id="animFlux1" />
        </path>
        <!-- 环绕磁通内回路 2 (反向/对称补磁回路) -->
        <path id="fluxLine2" d="M 380,240 Q 550,280 720,240 Q 760,380 720,520 Q 550,480 380,520 Q 340,380 380,240 Z"
              fill="none" stroke="#00ffaa" stroke-opacity="0.5" stroke-width="2" stroke-dasharray="8 8">
          <animate attributeName="stroke-dashoffset" from="0" to="-160" dur="2.8s" repeatCount="indefinite" id="animFlux2" />
        </path>

        <!-- 十字核心磁通矢量汇流线 -->
        <path d="M 390,265 L 550,380 L 710,265 M 390,495 L 550,380 L 710,495"
              fill="none" stroke="#00f0ff" stroke-width="1.8" stroke-dasharray="6 6" stroke-opacity="0.6">
          <animate attributeName="stroke-dashoffset" from="0" to="-120" dur="2s" repeatCount="indefinite" />
        </path>
      </g>

      <!-- 四象限线圈与多抽头组 (CH1-CH4) -->
      <!-- ====================== 通道 1 (左上) ====================== -->
      <g id="channel1" transform="translate(0, 0)">
        <!-- 模块背景及标示 -->
        <text x="235" y="195" fill="#64748b" font-size="11" font-family="var(--font-mono)">CH-1 [左上线圈组]</text>

        <!-- 4段分层绕组线圈外观示意 (60T / 120T / 180T / 240T) -->
        <g id="coil-ch1" transform="translate(295, 225)">
          <!-- 绕组 60T (第一层,始终有效) -->
          <rect id="c1-s1" x="0" y="5" width="90" height="16" rx="4" fill="#00f0ff" fill-opacity="0.85" stroke="#00f0ff" stroke-width="1.5" />
          <text x="45" y="17" fill="#04101e" font-size="9" font-weight="bold" text-anchor="middle" font-family="var(--font-mono)">60 匝 (基段)</text>

          <!-- 绕组 120T 扩充层 -->
          <rect id="c1-s2" x="0" y="24" width="90" height="16" rx="4" fill="#00f0ff" fill-opacity="0.6" stroke="#00f0ff" stroke-width="1.2" />
          <text x="45" y="36" fill="#04101e" font-size="9" font-weight="bold" text-anchor="middle" font-family="var(--font-mono)">+60 匝 (120T)</text>

          <!-- 绕组 180T 扩充层 -->
          <rect id="c1-s3" x="0" y="43" width="90" height="16" rx="4" fill="#00f0ff" fill-opacity="0.4" stroke="#00f0ff" stroke-width="1.2" />
          <text x="45" y="55" fill="#04101e" font-size="9" font-weight="bold" text-anchor="middle" font-family="var(--font-mono)">+60 匝 (180T)</text>

          <!-- 绕组 240T 扩充层 -->
          <rect id="c1-s4" x="0" y="62" width="90" height="16" rx="4" fill="#00f0ff" fill-opacity="0.2" stroke="#00f0ff" stroke-width="1.2" />
          <text x="45" y="74" fill="#04101e" font-size="9" font-weight="bold" text-anchor="middle" font-family="var(--font-mono)">+60 匝 (240T)</text>
        </g>

        <!-- 密封接线板与抽头引出线 (T1: 60T, T2: 120T, T3: 180T, T4: 240T) -->
        <g id="taps-ch1" stroke="#334155" stroke-width="1.5">
          <path id="tap1-wire1" d="M 295, 238 L 230, 238" />
          <path id="tap1-wire2" d="M 295, 257 L 210, 257" />
          <path id="tap1-wire3" d="M 295, 276 L 190, 276" />
          <path id="tap1-wire4" d="M 295, 295 L 170, 295" />
        </g>

        <!-- 固态继电器阵列 SSR Selector Unit -->
        <rect x="145" y="215" width="85" height="100" rx="6" fill="#091426" stroke="#00f0ff" stroke-width="1" stroke-dasharray="3, 3" />
        <text x="187" y="230" fill="#00f0ff" font-size="9" text-anchor="middle" font-weight="600">SSR 档位阵列</text>
        <!-- SSR 触点指示 -->
        <circle id="c1-ssr-1" cx="215" cy="245" r="4.5" fill="#334155" />
        <circle id="c1-ssr-2" cx="195" cy="265" r="4.5" fill="#334155" />
        <circle id="c1-ssr-3" cx="175" cy="285" r="4.5" fill="#334155" />
        <circle id="c1-ssr-4" cx="155" cy="305" r="4.5" fill="#00ffaa" filter="url(#glow)" />

        <!-- 独立 H 桥驱动 -->
        <rect x="85" y="235" width="50" height="60" rx="5" fill="#13233c" stroke="#38bdf8" stroke-width="1.5" />
        <text x="110" y="263" fill="#ffffff" font-size="10" font-weight="bold" text-anchor="middle">H-桥 1</text>
        <text x="110" y="278" fill="#38bdf8" font-size="8" text-anchor="middle" id="c1-curr-tag">2.0 A</text>

        <!-- 驱动进线到 SSR -->
        <path d="M 135,265 L 145,265" stroke="#38bdf8" stroke-width="2" />
      </g>

      <!-- ====================== 通道 2 (右上) ====================== -->
      <g id="channel2">
        <text x="770" y="195" fill="#64748b" font-size="11" font-family="var(--font-mono)">CH-2 [右上线圈组]</text>
        <g id="coil-ch2" transform="translate(715, 225)">
          <rect id="c2-s1" x="0" y="5" width="90" height="16" rx="4" fill="#00f0ff" fill-opacity="0.85" stroke="#00f0ff" stroke-width="1.5" />
          <text x="45" y="17" fill="#04101e" font-size="9" font-weight="bold" text-anchor="middle" font-family="var(--font-mono)">60 匝 (基段)</text>
          <rect id="c2-s2" x="0" y="24" width="90" height="16" rx="4" fill="#00f0ff" fill-opacity="0.6" stroke="#00f0ff" stroke-width="1.2" />
          <text x="45" y="36" fill="#04101e" font-size="9" font-weight="bold" text-anchor="middle" font-family="var(--font-mono)">+60 匝 (120T)</text>
          <rect id="c2-s3" x="0" y="43" width="90" height="16" rx="4" fill="#00f0ff" fill-opacity="0.4" stroke="#00f0ff" stroke-width="1.2" />
          <text x="45" y="55" fill="#04101e" font-size="9" font-weight="bold" text-anchor="middle" font-family="var(--font-mono)">+60 匝 (180T)</text>
          <rect id="c2-s4" x="0" y="62" width="90" height="16" rx="4" fill="#00f0ff" fill-opacity="0.2" stroke="#00f0ff" stroke-width="1.2" />
          <text x="45" y="74" fill="#04101e" font-size="9" font-weight="bold" text-anchor="middle" font-family="var(--font-mono)">+60 匝 (240T)</text>
        </g>

        <!-- 抽头线引出 -->
        <g id="taps-ch2" stroke="#334155" stroke-width="1.5">
          <path id="tap2-wire1" d="M 805, 238 L 870, 238" />
          <path id="tap2-wire2" d="M 805, 257 L 890, 257" />
          <path id="tap2-wire3" d="M 805, 276 L 910, 276" />
          <path id="tap2-wire4" d="M 805, 295 L 930, 295" />
        </g>

        <!-- SSR 模块 -->
        <rect x="870" y="215" width="85" height="100" rx="6" fill="#091426" stroke="#00f0ff" stroke-width="1" stroke-dasharray="3, 3" />
        <text x="912" y="230" fill="#00f0ff" font-size="9" text-anchor="middle" font-weight="600">SSR 档位阵列</text>
        <circle id="c2-ssr-1" cx="885" cy="245" r="4.5" fill="#334155" />
        <circle id="c2-ssr-2" cx="905" cy="265" r="4.5" fill="#334155" />
        <circle id="c2-ssr-3" cx="925" cy="285" r="4.5" fill="#334155" />
        <circle id="c2-ssr-4" cx="945" cy="305" r="4.5" fill="#00ffaa" filter="url(#glow)" />

        <!-- 独立 H 桥 2 -->
        <rect x="965" y="235" width="50" height="60" rx="5" fill="#13233c" stroke="#38bdf8" stroke-width="1.5" />
        <text x="990" y="263" fill="#ffffff" font-size="10" font-weight="bold" text-anchor="middle">H-桥 2</text>
        <text x="990" y="278" fill="#38bdf8" font-size="8" text-anchor="middle" id="c2-curr-tag">2.0 A</text>
        <path d="M 955,265 L 965,265" stroke="#38bdf8" stroke-width="2" />
      </g>

      <!-- ====================== 通道 3 (左下) ====================== -->
      <g id="channel3">
        <text x="235" y="565" fill="#64748b" font-size="11" font-family="var(--font-mono)">CH-3 [左下线圈组]</text>
        <g id="coil-ch3" transform="translate(295, 455)">
          <rect id="c3-s1" x="0" y="5" width="90" height="16" rx="4" fill="#00f0ff" fill-opacity="0.85" stroke="#00f0ff" stroke-width="1.5" />
          <text x="45" y="17" fill="#04101e" font-size="9" font-weight="bold" text-anchor="middle" font-family="var(--font-mono)">60 匝 (基段)</text>
          <rect id="c3-s2" x="0" y="24" width="90" height="16" rx="4" fill="#00f0ff" fill-opacity="0.6" stroke="#00f0ff" stroke-width="1.2" />
          <text x="45" y="36" fill="#04101e" font-size="9" font-weight="bold" text-anchor="middle" font-family="var(--font-mono)">+60 匝 (120T)</text>
          <rect id="c3-s3" x="0" y="43" width="90" height="16" rx="4" fill="#00f0ff" fill-opacity="0.4" stroke="#00f0ff" stroke-width="1.2" />
          <text x="45" y="55" fill="#04101e" font-size="9" font-weight="bold" text-anchor="middle" font-family="var(--font-mono)">+60 匝 (180T)</text>
          <rect id="c3-s4" x="0" y="62" width="90" height="16" rx="4" fill="#00f0ff" fill-opacity="0.2" stroke="#00f0ff" stroke-width="1.2" />
          <text x="45" y="74" fill="#04101e" font-size="9" font-weight="bold" text-anchor="middle" font-family="var(--font-mono)">+60 匝 (240T)</text>
        </g>

        <!-- 抽头引线 -->
        <g id="taps-ch3" stroke="#334155" stroke-width="1.5">
          <path id="tap3-wire1" d="M 295, 468 L 230, 468" />
          <path id="tap3-wire2" d="M 295, 487 L 210, 487" />
          <path id="tap3-wire3" d="M 295, 506 L 190, 506" />
          <path id="tap3-wire4" d="M 295, 525 L 170, 525" />
        </g>

        <!-- SSR 模块 -->
        <rect x="145" y="445" width="85" height="100" rx="6" fill="#091426" stroke="#00f0ff" stroke-width="1" stroke-dasharray="3, 3" />
        <text x="187" y="460" fill="#00f0ff" font-size="9" text-anchor="middle" font-weight="600">SSR 档位阵列</text>
        <circle id="c3-ssr-1" cx="215" cy="475" r="4.5" fill="#334155" />
        <circle id="c3-ssr-2" cx="195" cy="495" r="4.5" fill="#334155" />
        <circle id="c3-ssr-3" cx="175" cy="515" r="4.5" fill="#334155" />
        <circle id="c3-ssr-4" cx="155" cy="535" r="4.5" fill="#00ffaa" filter="url(#glow)" />

        <!-- 独立 H 桥 3 -->
        <rect x="85" y="465" width="50" height="60" rx="5" fill="#13233c" stroke="#38bdf8" stroke-width="1.5" />
        <text x="110" y="493" fill="#ffffff" font-size="10" font-weight="bold" text-anchor="middle">H-桥 3</text>
        <text x="110" y="508" fill="#38bdf8" font-size="8" text-anchor="middle" id="c3-curr-tag">2.0 A</text>
        <path d="M 135,495 L 145,495" stroke="#38bdf8" stroke-width="2" />
      </g>

      <!-- ====================== 通道 4 (右下) ====================== -->
      <g id="channel4">
        <text x="770" y="565" fill="#64748b" font-size="11" font-family="var(--font-mono)">CH-4 [右下线圈组]</text>
        <g id="coil-ch4" transform="translate(715, 455)">
          <rect id="c4-s1" x="0" y="5" width="90" height="16" rx="4" fill="#00f0ff" fill-opacity="0.85" stroke="#00f0ff" stroke-width="1.5" />
          <text x="45" y="17" fill="#04101e" font-size="9" font-weight="bold" text-anchor="middle" font-family="var(--font-mono)">60 匝 (基段)</text>
          <rect id="c4-s2" x="0" y="24" width="90" height="16" rx="4" fill="#00f0ff" fill-opacity="0.6" stroke="#00f0ff" stroke-width="1.2" />
          <text x="45" y="36" fill="#04101e" font-size="9" font-weight="bold" text-anchor="middle" font-family="var(--font-mono)">+60 匝 (120T)</text>
          <rect id="c4-s3" x="0" y="43" width="90" height="16" rx="4" fill="#00f0ff" fill-opacity="0.4" stroke="#00f0ff" stroke-width="1.2" />
          <text x="45" y="55" fill="#04101e" font-size="9" font-weight="bold" text-anchor="middle" font-family="var(--font-mono)">+60 匝 (180T)</text>
          <rect id="c4-s4" x="0" y="62" width="90" height="16" rx="4" fill="#00f0ff" fill-opacity="0.2" stroke="#00f0ff" stroke-width="1.2" />
          <text x="45" y="74" fill="#04101e" font-size="9" font-weight="bold" text-anchor="middle" font-family="var(--font-mono)">+60 匝 (240T)</text>
        </g>

        <!-- 抽头引线 -->
        <g id="taps-ch4" stroke="#334155" stroke-width="1.5">
          <path id="tap4-wire1" d="M 805, 468 L 870, 468" />
          <path id="tap4-wire2" d="M 805, 487 L 890, 487" />
          <path id="tap4-wire3" d="M 805, 506 L 910, 506" />
          <path id="tap4-wire4" d="M 805, 525 L 930, 525" />
        </g>

        <!-- SSR 模块 -->
        <rect x="870" y="445" width="85" height="100" rx="6" fill="#091426" stroke="#00f0ff" stroke-width="1" stroke-dasharray="3, 3" />
        <text x="912" y="460" fill="#00f0ff" font-size="9" text-anchor="middle" font-weight="600">SSR 档位阵列</text>
        <circle id="c4-ssr-1" cx="885" cy="475" r="4.5" fill="#334155" />
        <circle id="c4-ssr-2" cx="905" cy="495" r="4.5" fill="#334155" />
        <circle id="c4-ssr-3" cx="925" cy="515" r="4.5" fill="#334155" />
        <circle id="c4-ssr-4" cx="945" cy="535" r="4.5" fill="#00ffaa" filter="url(#glow)" />

        <!-- 独立 H 桥 4 -->
        <rect x="965" y="465" width="50" height="60" rx="5" fill="#13233c" stroke="#38bdf8" stroke-width="1.5" />
        <text x="990" y="493" fill="#ffffff" font-size="10" font-weight="bold" text-anchor="middle">H-桥 4</text>
        <text x="990" y="508" fill="#38bdf8" font-size="8" text-anchor="middle" id="c4-curr-tag">2.0 A</text>
        <path d="M 955,495 L 965,495" stroke="#38bdf8" stroke-width="2" />
      </g>

      <!-- ====================== 中央主控基准协同中枢 ====================== -->
      <g id="masterController" transform="translate(550, 380)">
        <!-- 同步脉冲光晕扩散环 (高频模拟 ≤1μs 同步时钟) -->
        <circle id="syncWave" cx="0" cy="0" r="40" fill="none" stroke="#00ffaa" stroke-width="2" opacity="0.8">
          <animate attributeName="r" values="35; 165" dur="1.2s" repeatCount="indefinite" />
          <animate attributeName="opacity" values="0.8; 0" dur="1.2s" repeatCount="indefinite" />
        </circle>

        <!-- 核心实体圆盘 -->
        <circle cx="0" cy="0" r="56" fill="#060c18" stroke="#00f0ff" stroke-width="2" filter="url(#glow)" />
        <circle cx="0" cy="0" r="48" fill="#0f1b2d" stroke="#1e293b" stroke-width="1" />

        <text x="0" y="-12" fill="#00f0ff" font-size="11" font-weight="bold" text-anchor="middle" letter-spacing="0.5">相位基准同步</text>
        <text x="0" y="4" fill="#e2e8f0" font-size="9" text-anchor="middle">3路指令折算中枢</text>
        <text x="0" y="22" fill="#00ffaa" font-size="11" font-weight="bold" text-anchor="middle" font-family="var(--font-mono)" id="activeAtBadge">480 AT</text>

        <!-- 四向同频同步触发总线 (辐射向四路 H 桥及 SSR 译码器) -->
        <g stroke="#00f0ff" stroke-width="1.8" stroke-dasharray="4, 4" opacity="0.8">
          <!-- 到 CH1 -->
          <line x1="-42" y1="-42" x2="-360" y2="-120">
            <animate attributeName="stroke-dashoffset" from="0" to="-32" dur="0.8s" repeatCount="indefinite" />
          </line>
          <!-- 到 CH2 -->
          <line x1="42" y1="-42" x2="360" y2="-120">
            <animate attributeName="stroke-dashoffset" from="0" to="-32" dur="0.8s" repeatCount="indefinite" />
          </line>
          <!-- 到 CH3 -->
          <line x1="-42" y1="42" x2="-360" y2="120">
            <animate attributeName="stroke-dashoffset" from="0" to="-32" dur="0.8s" repeatCount="indefinite" />
          </line>
          <!-- 到 CH4 -->
          <line x1="42" y1="42" x2="360" y2="120">
            <animate attributeName="stroke-dashoffset" from="0" to="-32" dur="0.8s" repeatCount="indefinite" />
          </line>
        </g>
      </g>

      <!-- 闭环修正与残余耦合抵消提示箭头 -->
      <g id="closedLoopBadge" transform="translate(550, 520)" opacity="0.85">
        <rect x="-110" y="-14" width="220" height="28" rx="14" fill="#091322" stroke="#00ffaa" stroke-width="1" />
        <text x="0" y="4" fill="#00ffaa" font-size="11" font-family="var(--font-mono)" text-anchor="middle">
          ⚡ 闭环解耦已补偿: 残余互感 ≈ 0
        </text>
      </g>
    </svg>
  </main>

  <!-- 底部微型操作控制坞 (简洁边缘布局) -->
  <footer class="ctrl-dock">
    <span class="dock-label">档位切换(匝数/电流):</span>
    <div class="gear-btn-group">
      <button class="gear-btn active" data-gear="1">1档 (240T / 2A)</button>
      <button class="gear-btn" data-gear="2">2档 (180T / 4A)</button>
      <button class="gear-btn" data-gear="3">3档 (120T / 8A)</button>
      <button class="gear-btn" data-gear="4">4档 (60T / 12A)</button>
    </div>
    <label class="auto-toggle">
      <input type="checkbox" id="autoCycleCheck" checked>
      <span>自动时序巡检</span>
    </label>
  </footer>

  <!-- 左右侧角边浮动极简 HUD 数据 -->
  <aside class="hud-corner-left">
    <div>模式: <span>多抽头恒安匝自适应</span></div>
    <div>线径: <span>1.0 ~ 1.2 mm 铜漆包线</span></div>
    <div>有效匝数: <span id="turnsHud">240 匝 (细调精控)</span></div>
  </aside>

  <aside class="hud-corner-right">
    <div>各路独立安匝: <span id="atHud">480 AT (恒定补偿)</span></div>
    <div>四路触发相位差: <span>Δt ≤ 0.3 μs (同频同相)</span></div>
    <div>磁阻回流损耗: <span>降低 74.2%</span></div>
  </aside>

  <script>
    // 档位配置数据模型 (TRIZ IFR 最终理想解参数)
    const GEARS = {
      1: { turns: 240, current: 2.0, at: 480, desc: '240 匝 (低档高灵敏度细调)', tapIndex: 4, speed: '4.2s', fluxStroke: 2.5 },
      2: { turns: 180, current: 4.0, at: 720, desc: '180 匝 (中低档平稳过渡)', tapIndex: 3, speed: '3.2s', fluxStroke: 3.5 },
      3: { turns: 120, current: 8.0, at: 960, desc: '120 匝 (中高档强励磁输出)', tapIndex: 2, speed: '2.4s', fluxStroke: 4.5 },
      4: { turns: 60, current: 12.0, at: 720, desc: '60 匝 (高档大电流脉冲磁通)', tapIndex: 1, speed: '1.6s', fluxStroke: 5.5 }
    };

    let currentGear = 1;
    let autoTimer = null;
    let isAuto = true;

    // 获取 DOM 元素
    const gearBtns = document.querySelectorAll('.gear-btn');
    const autoCycleCheck = document.getElementById('autoCycleCheck');
    const turnsHud = document.getElementById('turnsHud');
    const atHud = document.getElementById('atHud');
    const activeAtBadge = document.getElementById('activeAtBadge');
    const jitterVal = document.getElementById('jitterVal');

    const currTags = [
      document.getElementById('c1-curr-tag'),
      document.getElementById('c2-curr-tag'),
      document.getElementById('c3-curr-tag'),
      document.getElementById('c4-curr-tag')
    ];

    const fluxLine1 = document.getElementById('fluxLine1');
    const animFlux1 = document.getElementById('animFlux1');
    const animFlux2 = document.getElementById('animFlux2');

    // 切换档位视觉呈现
    function applyGear(gearNum) {
      currentGear = gearNum;
      const cfg = GEARS[gearNum];

      // 1. 更新按钮状态
      gearBtns.forEach(b => {
        if (parseInt(b.getAttribute('data-gear')) === gearNum) {
          b.classList.add('active');
        } else {
          b.classList.remove('active');
        }
      });

      // 2. 更新 HUD 文字
      turnsHud.textContent = cfg.desc;
      atHud.textContent = `${cfg.at} AT (各路独立可调)`;
      activeAtBadge.textContent = `${cfg.at} AT`;

      // 3. 更新 4 路 H 桥电流
      currTags.forEach(tag => {
        if (tag) tag.textContent = `${cfg.current.toFixed(1)} A`;
      });

      // 4. 更新 4 组线圈绕组高亮状态
      // 档位 1: 4段全开(240T);档位 2: 开前3段(180T);档位 3: 开前2段(120T);档位 4: 仅开第1段(60T)
      const activeLayers = (5 - cfg.tapIndex); // 1->4 layers, 2->3 layers, 3->2 layers, 4->1 layer

      for (let ch = 1; ch <= 4; ch++) {
        for (let seg = 1; seg <= 4; seg++) {
          const rect = document.getElementById(`c${ch}-s${seg}`);
          if (rect) {
            if (seg <= activeLayers) {
              rect.setAttribute('fill', '#00f0ff');
              rect.setAttribute('fill-opacity', (0.95 - (seg - 1) * 0.18).toString());
              rect.setAttribute('stroke', '#00ffaa');
              rect.setAttribute('filter', 'url(#glow)');
            } else {
              rect.setAttribute('fill', '#1e293b');
              rect.setAttribute('fill-opacity', '0.2');
              rect.setAttribute('stroke', '#334155');
              rect.removeAttribute('filter');
            }
          }
        }

        // 更新 SSR 开关导通点高亮
        for (let t = 1; t <= 4; t++) {
          const dot = document.getElementById(`c${ch}-ssr-${t}`);
          const wire = document.getElementById(`tap${ch}-wire${t}`);
          if (dot) {
            if (t === activeLayers) {
              dot.setAttribute('fill', '#00ffaa');
              dot.setAttribute('filter', 'url(#glow)');
              dot.setAttribute('r', '5.5');
            } else {
              dot.setAttribute('fill', '#334155');
              dot.removeAttribute('filter');
              dot.setAttribute('r', '4');
            }
          }
          if (wire) {
            if (t === activeLayers) {
              wire.setAttribute('stroke', '#00ffaa');
              wire.setAttribute('stroke-width', '2.5');
              wire.setAttribute('filter', 'url(#glow)');
            } else {
              wire.setAttribute('stroke', '#334155');
              wire.setAttribute('stroke-width', '1.5');
              wire.removeAttribute('filter');
            }
          }
        }
      }

      // 5. 磁通流速和粗细同步受控
      if (fluxLine1) {
        fluxLine1.setAttribute('stroke-width', cfg.fluxStroke.toString());
      }
      if (animFlux1) {
        animFlux1.setAttribute('dur', cfg.speed);
      }
      if (animFlux2) {
        animFlux2.setAttribute('dur', (parseFloat(cfg.speed) * 0.7).toFixed(1) + 's');
      }

      // 模拟抖动毫秒微弱变动 (始终 ≤ 1 μs)
      const randomJitter = (0.15 + Math.random() * 0.25).toFixed(2);
      jitterVal.textContent = `${randomJitter} μs`;
    }

    // 绑定交互按钮点击
    gearBtns.forEach(btn => {
      btn.addEventListener('click', () => {
        const g = parseInt(btn.getAttribute('data-gear'));
        applyGear(g);
      });
    });

    // 自动轮巡定时器
    function startAutoCycle() {
      if (autoTimer) clearInterval(autoTimer);
      autoTimer = setInterval(() => {
        if (!isAuto) return;
        let nextGear = currentGear + 1;
        if (nextGear > 4) nextGear = 1;
        applyGear(nextGear);
      }, 3400);
    }

    autoCycleCheck.addEventListener('change', (e) => {
      isAuto = e.target.checked;
      if (isAuto) {
        startAutoCycle();
      } else {
        if (autoTimer) clearInterval(autoTimer);
      }
    });

    // 页面加载完成后立即自动开始播放
    window.addEventListener('DOMContentLoaded', () => {
      applyGear(1);
      startAutoCycle();
    });

    // 页面重开或可见性切换时重置确保动画顺畅
    document.addEventListener('visibilitychange', () => {
      if (!document.hidden && isAuto) {
        startAutoCycle();
      }
    });
  </script>
</body>
</html>
积分规则:每轮对话扣10分