/* teardown.html 的内联样式外置；由构建时拆分，便于长缓存。 */

  :root {
    --bg: #0a0e17;
    --bg-deep: #070a10;
    --panel: #0b1119;
    --panel-2: #0d151f;
    --ink: #e9f1f7;
    --ink-soft: #b9c7d3;
    --muted: #758696;
    --muted-2: #536373;
    --line: rgba(141, 183, 216, 0.14);
    --line-strong: rgba(141, 183, 216, 0.28);
    --accent: #70c8ff;
    --accent-dim: #4596c8;
    --accent-soft: rgba(86, 179, 240, 0.1);
    --amber: #d99a61;
    --ok: #78e0ad;
    --danger: #e07e6a;
    --panel-w: clamp(376px, 30vw, 438px);
    --font-display: "Bahnschrift SemiCondensed", "Bahnschrift", "DIN Alternate", "Arial Narrow", sans-serif;
    --font-ui: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    --font-mono: "Cascadia Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  }

  * { box-sizing: border-box; }
  *::before, *::after { box-sizing: border-box; }
  .sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .skip-link {
    position: absolute;
    top: -64px;
    left: 16px;
    z-index: 120;
    padding: 9px 12px;
    border: 1px solid var(--accent);
    background: #0b1822;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: top 0.18s ease;
  }
  .skip-link:focus { top: 12px; }
  :where(button, a, input, [tabindex]):focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 3px;
  }
  .part-row:focus-visible {
    outline-offset: 1px;
    border-color: var(--accent);
  }
  html, body { height: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-ui);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  button { font: inherit; color: inherit; }
  button:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

  .app {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--panel-w);
    width: 100%;
    height: 100dvh;
    min-height: 620px;
    background: var(--bg);
  }

  /* ============ 3D STAGE ============ */
  .stage {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
    background:
      radial-gradient(ellipse 70% 55% at 44% 38%, rgba(32, 66, 97, 0.36), transparent 65%),
      radial-gradient(ellipse 55% 50% at 72% 84%, rgba(137, 83, 49, 0.08), transparent 60%),
      linear-gradient(165deg, #0b111b 0%, #0a0e17 48%, #070a10 100%);
  }
  .stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(129, 173, 207, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(129, 173, 207, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse at 48% 52%, #000 10%, transparent 72%);
    opacity: 0.5;
  }
  .stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  }

  #scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    touch-action: none;
  }
  #scene.is-hovering { cursor: pointer; }
  #scene.is-dragging { cursor: grabbing; }

  .stage-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(5, 8, 13, 0.38) 0%, transparent 18%, transparent 82%, rgba(5, 8, 13, 0.22) 100%),
      radial-gradient(ellipse 86% 80% at 50% 50%, transparent 42%, rgba(4, 7, 11, 0.56) 100%);
  }
  /* 运行时的舞台氛围光：与三维里的电场/扭矩流叠加成冷色脉冲 */
  .run-aura {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    background:
      radial-gradient(ellipse 58% 52% at 47% 49%, rgba(74, 180, 255, 0.14), transparent 68%),
      radial-gradient(ellipse 42% 38% at 68% 58%, rgba(255, 166, 92, 0.08), transparent 70%);
    mix-blend-mode: screen;
    transition: opacity 0.6s ease;
  }
  .stage.is-running .run-aura {
    opacity: 0.9;
    animation: run-aura-pulse 2.8s ease-in-out infinite;
  }
  @keyframes run-aura-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.95; }
  }

  .frame-corners {
    position: absolute;
    inset: 17px;
    z-index: 4;
    pointer-events: none;
  }
  .frame-corners span {
    position: absolute;
    width: 23px;
    height: 23px;
    border-color: rgba(149, 199, 233, 0.26);
    border-style: solid;
  }
  .frame-corners span:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
  .frame-corners span:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
  .frame-corners span:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
  .frame-corners span:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

  .stage-ui {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
  }

  .hero {
    position: absolute;
    top: clamp(32px, 5vh, 58px);
    left: clamp(30px, 3.6vw, 56px);
    max-width: 460px;
    transition: opacity 0.32s ease, transform 0.32s ease;
  }
  .stage-ui.is-inspecting .hero {
    opacity: 0;
    transform: translateY(-9px);
  }
  .stage-ui.is-inspecting .spec-rail { opacity: 0.14; }
  .hero-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
  }
  .hero-kicker::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--accent);
    opacity: 0.65;
  }
  .hero-kicker em {
    color: var(--muted);
    font-style: normal;
  }
  .hero-title {
    margin: 17px 0 0 -3px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(52px, 6.6vw, 92px);
    line-height: 0.78;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-shadow: 0 12px 45px rgba(0, 0, 0, 0.45);
  }
  .hero-title span {
    color: transparent;
    -webkit-text-stroke: 1.1px rgba(224, 160, 100, 0.82);
    text-shadow: none;
  }
  .hero-title .hero-series {
    color: var(--ink);
    -webkit-text-stroke: 0;
    text-shadow: 0 12px 45px rgba(0, 0, 0, 0.45);
  }
  .hero-title .hero-ratio {
    color: transparent;
    -webkit-text-stroke: 1.1px rgba(224, 160, 100, 0.82);
    text-shadow: none;
  }
  .hero-title .hero-ratio:empty { display: none; }
  .hero-sub {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 19px;
    color: var(--ink-soft);
    font-size: 12px;
    letter-spacing: 0.08em;
  }
  .hero-sub::after {
    content: "";
    flex: 1;
    max-width: 90px;
    height: 1px;
    background: linear-gradient(90deg, var(--line-strong), transparent);
  }
  .hero-sub b {
    color: var(--amber);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
  }
  .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
  }
  .hero-tags span {
    padding: 5px 8px 4px;
    border: 1px solid var(--line);
    background: rgba(9, 15, 23, 0.42);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
  }
  .hero-tags span i {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 5px 1px 0;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 6px rgba(120, 224, 173, 0.8);
  }

  .stage-tools {
    position: absolute;
    top: clamp(28px, 4.2vh, 44px);
    right: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
  }
  .stage-id {
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.2em;
    text-align: right;
    line-height: 1.65;
  }
  .stage-id b { color: var(--ink-soft); font-weight: 400; }
  .icon-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(8, 13, 20, 0.58);
    color: var(--ink-soft);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.25s;
  }
  .icon-btn:hover {
    border-color: rgba(112, 200, 255, 0.55);
    color: var(--accent);
    background: rgba(18, 38, 54, 0.68);
    transform: rotate(-20deg);
  }
  .icon-btn svg { width: 15px; height: 15px; }
  .icon-btn .run-pause { display: none; }
  .icon-btn.is-active .run-play { display: none; }
  .icon-btn.is-active .run-pause { display: block; }
  .icon-btn.is-active {
    border-color: rgba(112, 200, 255, 0.64);
    background: rgba(28, 67, 96, 0.58);
    color: var(--accent);
    box-shadow: 0 0 16px rgba(54, 180, 255, 0.12);
  }
  .icon-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
  }
  .icon-btn:disabled:hover {
    border-color: var(--line);
    background: rgba(8, 13, 20, 0.58);
    color: var(--ink-soft);
    transform: none;
  }

  .spec-rail {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-42%) rotate(180deg);
    writing-mode: vertical-rl;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.8;
  }
  .spec-rail b { color: var(--accent-dim); font-weight: 400; }

  .target-readout {
    position: absolute;
    left: clamp(30px, 3.6vw, 56px);
    bottom: clamp(30px, 4.2vh, 46px);
    width: min(330px, 38vw);
    padding-left: 15px;
    border-left: 1px solid var(--line-strong);
  }
  .readout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }
  .readout-head .signal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ok);
  }
  .signal::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
  }
  .readout-name {
    min-height: 28px;
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: 25px;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--ink);
  }
  .readout-name.is-idle { color: var(--muted); font-size: 20px; letter-spacing: 0.07em; }
  .readout-sub {
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.04em;
  }
  .readout-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    padding: 6px 8px;
    border: 1px solid rgba(141, 183, 216, 0.26);
    background: rgba(9, 16, 24, 0.58);
    color: var(--ink-soft);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.08em;
    pointer-events: auto;
    transition: border-color 0.2s, color 0.2s;
  }
  .readout-detail[hidden] { display: none; }
  .readout-detail:hover { border-color: var(--accent-dim); color: var(--ink); }
  .readout-detail span { color: var(--amber); }
  .readout-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
  }
  .readout-bar span {
    height: 2px;
    flex: 1;
    background: var(--line);
  }
  .readout-bar span:first-child { background: var(--accent); box-shadow: 0 0 8px rgba(112, 200, 255, 0.5); }
  .readout-bar em {
    color: var(--accent-dim);
    font-family: var(--font-mono);
    font-size: 8px;
    font-style: normal;
    letter-spacing: 0.12em;
  }

  .orientation {
    position: absolute;
    right: 37px;
    bottom: clamp(30px, 4.2vh, 46px);
    display: flex;
    align-items: flex-end;
    gap: 14px;
  }
  .orientation-meta {
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 7.5px;
    line-height: 1.8;
    letter-spacing: 0.14em;
    text-align: right;
  }
  .orientation-meta b {
    display: block;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.1em;
  }
  .compass {
    position: relative;
    width: 67px;
    height: 67px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 25, 36, 0.7), rgba(7, 11, 17, 0.2));
    box-shadow: inset 0 0 22px rgba(54, 119, 166, 0.08);
  }
  .compass::before, .compass::after {
    content: "";
    position: absolute;
    background: var(--line);
  }
  .compass::before { top: 50%; left: 8px; right: 8px; height: 1px; }
  .compass::after { left: 50%; top: 8px; bottom: 8px; width: 1px; }
  .compass-ring {
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(141, 183, 216, 0.2);
    border-radius: 50%;
    transform: rotate(var(--azimuth, 0deg));
    transition: transform 0.1s linear;
  }
  .compass-needle {
    position: absolute;
    left: calc(50% - 0.5px);
    top: 12px;
    width: 1px;
    height: 21px;
    background: linear-gradient(var(--accent), transparent);
    transform-origin: 50% 21px;
    transform: rotate(var(--azimuth, 0deg));
  }
  .compass-needle::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 9px var(--accent);
  }
  .compass-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .compass-n { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); color: var(--accent-dim); font: 7px var(--font-mono); }

  .orbit-note {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    gap: 17px;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.8;
  }
  .orbit-note span { position: relative; }
  .orbit-note span + span::before {
    content: "/";
    position: absolute;
    left: -10px;
    color: var(--line-strong);
  }

  /* ============ CONTROL PANEL ============ */
  .panel {
    position: relative;
    z-index: 8;
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 24px);
    margin: 12px 12px 12px 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 3px;
    background:
      linear-gradient(180deg, rgba(16, 25, 36, 0.97), rgba(8, 13, 20, 0.99) 61%),
      var(--panel);
    box-shadow: -28px 0 75px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.025);
  }
  .panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.32;
    background-image:
      linear-gradient(90deg, transparent 49.8%, rgba(135, 178, 210, 0.055) 50%, transparent 50.2%),
      linear-gradient(rgba(135, 178, 210, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 44px;
    mask-image: linear-gradient(180deg, #000, transparent 52%);
  }

  .panel-head {
    position: relative;
    flex: 0 0 auto;
    padding: 18px 22px 13px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 24, 35, 0.66), transparent);
  }
  .panel-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .panel-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.17em;
    text-transform: uppercase;
  }
  .brand-mark {
    position: relative;
    width: 19px;
    height: 19px;
    border: 1px solid rgba(224, 160, 100, 0.5);
    border-radius: 50%;
    transform: none;
  }
  .brand-mark::before, .brand-mark::after {
    content: "";
    position: absolute;
    background: var(--accent);
    opacity: 0.8;
  }
  .brand-mark::before {
    width: 5px;
    height: 5px;
    left: 6px;
    top: 6px;
    border-radius: 50%;
  }
  .brand-mark::after {
    width: 1px;
    height: 7px;
    left: 9px;
    top: 10px;
    transform-origin: 50% 0;
    transform: rotate(38deg);
    opacity: 0.7;
  }
  .core-state {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ok);
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .core-state i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: breathe 2.6s ease-in-out infinite;
  }
  .panel-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 13px;
  }
  .panel-eyebrow {
    color: var(--accent-dim);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.22em;
  }
  .panel-title {
    margin: 5px 0 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.06em;
    color: var(--ink);
  }
  .panel-title-en {
    margin: 5px 0 0;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.19em;
    text-transform: uppercase;
  }
  .assembly-count {
    display: flex;
    align-items: baseline;
    gap: 3px;
    flex: 0 0 auto;
    color: var(--ink);
    font-family: var(--font-display);
    line-height: 0.8;
  }
  .assembly-count strong {
    font-size: 35px;
    font-weight: 500;
    letter-spacing: -0.02em;
  }
  .assembly-count span {
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 9px;
  }
  .assembly-count em {
    margin-left: 5px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 6.5px;
    font-style: normal;
    letter-spacing: 0.13em;
  }
  .assembly-meter {
    position: relative;
    height: 2px;
    margin-top: 11px;
    overflow: hidden;
    background: rgba(143, 181, 211, 0.12);
  }
  .assembly-meter span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent));
    box-shadow: 0 0 12px rgba(112, 200, 255, 0.4);
    transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
  }
  .assembly-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .assembly-meta span:last-child { color: var(--muted); }

  .panel-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #263a4b transparent;
    overscroll-behavior: contain;
  }
  .panel-scroll::-webkit-scrollbar { width: 4px; }
  .panel-scroll::-webkit-scrollbar-track { background: transparent; }
  .panel-scroll::-webkit-scrollbar-thumb { background: #263a4b; border-radius: 4px; }

  .module {
    position: relative;
    padding: 12px 20px 13px;
    border-bottom: 1px solid var(--line);
  }
  .module:last-child { border-bottom: 0; }
  .module-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
  }
  .module-no {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.1em;
  }
  .module-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.13em;
    color: var(--ink-soft);
  }
  .module-title-en {
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 6.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .module-head::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 4px;
    background: linear-gradient(90deg, var(--line), transparent);
  }
  .module-hint {
    margin: -2px 0 9px;
    color: var(--muted-2);
    font-size: 8.5px;
    letter-spacing: 0.03em;
  }

  /* 五步引导式拆解 */
  .tour-card {
    position: relative;
    padding: 11px 12px 10px;
    border: 1px solid rgba(112, 200, 255, 0.14);
    background:
      linear-gradient(135deg, rgba(12, 28, 41, 0.72), rgba(6, 12, 19, 0.36)),
      repeating-linear-gradient(90deg, transparent 0, transparent 31px, rgba(112, 200, 255, 0.025) 32px);
  }
  .tour-card::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 11px;
    width: 2px;
    height: 31px;
    background: var(--amber);
    box-shadow: 0 0 10px rgba(217, 154, 97, 0.55);
  }
  .tour-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 6.5px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }
  .tour-state { color: var(--muted-2); }
  .tour-state.is-active { color: var(--accent); }
  .tour-count { color: var(--muted-2); white-space: nowrap; }
  .tour-count b {
    color: var(--amber);
    font-size: 10px;
    font-weight: 400;
  }
  .tour-track {
    display: flex;
    gap: 4px;
    margin: 9px 0 9px;
  }
  .tour-track i {
    display: block;
    flex: 1;
    height: 2px;
    background: rgba(141, 183, 216, 0.14);
    transition: background 0.3s, box-shadow 0.3s;
  }
  .tour-track i.is-done { background: var(--accent-dim); }
  .tour-track i.is-current {
    background: var(--amber);
    box-shadow: 0 0 8px rgba(217, 154, 97, 0.7);
  }
  .tour-heading {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
  }
  .tour-copy {
    min-height: 31px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.65;
  }
  .tour-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
  }
  .tour-btn {
    min-height: 29px;
    border: 1px solid rgba(141, 183, 216, 0.3);
    background: rgba(9, 16, 24, 0.82);
    color: var(--ink-soft);
    padding: 7px 10px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.08em;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
  }
  .tour-btn[hidden] { display: none; }
  .tour-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--ink); }
  .tour-btn.primary {
    border-color: rgba(112, 200, 255, 0.52);
    background: linear-gradient(135deg, rgba(43, 119, 168, 0.38), rgba(18, 53, 76, 0.5));
    color: #e5f5ff;
  }
  .tour-btn.ghost {
    margin-left: auto;
    border-color: transparent;
    color: var(--muted);
    padding-right: 3px;
  }
  .tour-btn.ghost:hover:not(:disabled) { border-color: transparent; color: var(--ink-soft); }
  .tour-btn:disabled { opacity: 0.38; cursor: not-allowed; }
  .part-row.is-tour-focus {
    border-color: rgba(217, 154, 97, 0.55);
    background: linear-gradient(135deg, rgba(99, 62, 32, 0.22), rgba(12, 20, 28, 0.42));
  }
  .part-row.is-tour-focus .part-dot {
    background: var(--amber);
    box-shadow: 0 0 7px rgba(217, 154, 97, 0.8);
  }
  .panel-brand {
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
  }
  .panel-brand:hover { color: var(--ink); }
  .brand-cue {
    margin-left: 2px;
    color: var(--amber);
    font-size: 9px;
    letter-spacing: 0;
  }

  /* 系列选型对照 */
  .series-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .series-modal[hidden] { display: none; }
  .series-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 10, 0.78);
    backdrop-filter: blur(4px);
  }
  .series-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(940px, calc(100vw - 32px));
    max-height: min(760px, calc(100dvh - 36px));
    border: 1px solid rgba(141, 183, 216, 0.24);
    background:
      linear-gradient(150deg, rgba(14, 28, 40, 0.98), rgba(6, 12, 18, 0.99)),
      repeating-linear-gradient(0deg, transparent 0, transparent 47px, rgba(112, 200, 255, 0.028) 48px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
    animation: series-in 0.24s ease both;
  }
  .series-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px 15px;
    border-bottom: 1px solid var(--line);
  }
  .series-eyebrow {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  .series-head h2 {
    margin: 5px 0 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.045em;
    color: var(--ink);
  }
  .series-head p {
    max-width: 610px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.65;
  }
  .series-close {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    background: rgba(9, 16, 24, 0.65);
    color: var(--muted);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
  }
  .series-close:hover { color: var(--ink); border-color: var(--accent-dim); }
  .series-table-wrap {
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #263a4b transparent;
  }
  .series-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-ui);
    font-size: 10px;
    white-space: nowrap;
  }
  .series-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 9px 14px;
    border-bottom: 1px solid var(--line-strong);
    background: #0d1924;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 7px;
    font-weight: 400;
    letter-spacing: 0.13em;
    text-align: left;
    text-transform: uppercase;
  }
  .series-table td {
    padding: 8px 14px;
    border-bottom: 1px solid rgba(141, 183, 216, 0.08);
    color: var(--ink-soft);
    vertical-align: middle;
  }
  .series-table tbody tr:hover { background: rgba(112, 200, 255, 0.045); }
  .series-table tr.is-current {
    background: linear-gradient(90deg, rgba(217, 154, 97, 0.16), rgba(217, 154, 97, 0.035));
  }
  .series-model {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .series-model b {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.03em;
  }
  .series-model span {
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 6.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .series-value {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 10px;
    white-space: nowrap;
  }
  .series-current {
    display: inline-flex;
    align-items: center;
    padding: 2px 5px;
    border: 1px solid rgba(217, 154, 97, 0.5);
    color: var(--amber);
    font-family: var(--font-mono);
    font-size: 6.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .series-current::before {
    content: "";
    width: 3px;
    height: 3px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 5px rgba(217, 154, 97, 0.8);
  }
  .series-note {
    color: var(--muted);
    font-size: 8.5px;
    line-height: 1.6;
  }
  .series-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 22px;
    border-top: 1px solid var(--line);
  }
  .series-foot p {
    margin: 0;
    color: var(--muted-2);
    font-size: 7.5px;
    line-height: 1.5;
  }
  .series-foot button {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: rgba(9, 16, 24, 0.65);
    color: var(--ink-soft);
    padding: 7px 11px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.08em;
  }
  .series-foot button:hover { border-color: var(--accent-dim); color: var(--ink); }
  @keyframes series-in {
    from { opacity: 0; transform: translateY(7px) scale(0.995); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  body.modal-open { overflow: hidden; }

  /* 零件详情 */
  .part-modal {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .part-modal[hidden] { display: none; }
  .part-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 10, 0.8);
    backdrop-filter: blur(4px);
  }
  .part-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(680px, calc(100vw - 32px));
    max-height: min(760px, calc(100dvh - 36px));
    border: 1px solid rgba(141, 183, 216, 0.24);
    background:
      linear-gradient(150deg, rgba(14, 28, 40, 0.985), rgba(6, 12, 18, 0.995)),
      repeating-linear-gradient(0deg, transparent 0, transparent 47px, rgba(112, 200, 255, 0.028) 48px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.64);
    animation: series-in 0.24s ease both;
  }
  .part-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--line);
  }
  .part-eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .part-eyebrow span:last-child {
    padding-left: 7px;
    border-left: 1px solid var(--line);
    color: var(--muted-2);
  }
  .part-head h2 {
    margin: 5px 0 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink);
  }
  .part-name-en {
    margin: 4px 0 0;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .part-close {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    background: rgba(9, 16, 24, 0.65);
    color: var(--muted);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
  }
  .part-close:hover { color: var(--ink); border-color: var(--accent-dim); }
  .part-body {
    min-height: 0;
    overflow-y: auto;
    padding: 15px 20px 14px;
    scrollbar-width: thin;
    scrollbar-color: #263a4b transparent;
  }
  .part-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 14px;
  }
  .part-spec {
    position: relative;
    min-width: 0;
    padding: 8px 9px 7px 12px;
    border: 1px solid rgba(141, 183, 216, 0.16);
    background: rgba(10, 21, 31, 0.55);
    color: var(--ink-soft);
    font-size: 9px;
    line-height: 1.5;
  }
  .part-spec::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--amber);
  }
  .part-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
  }
  .part-fact span {
    display: block;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 6.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .part-fact p {
    margin: 5px 0 0;
    color: var(--ink-soft);
    font-size: 9.5px;
    line-height: 1.65;
  }
  .part-fact:nth-child(4) p { color: var(--amber-soft, #d8b18b); }
  .part-material {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .part-material span {
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 6.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .part-material b {
    color: var(--muted);
    font-weight: 400;
    font-size: 9px;
  }
  .part-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 20px;
    border-top: 1px solid var(--line);
  }
  .part-foot p {
    max-width: 390px;
    margin: 0;
    color: var(--muted-2);
    font-size: 7.5px;
    line-height: 1.55;
  }
  .part-foot > div { display: flex; gap: 6px; flex: 0 0 auto; }
  .part-export {
    border: 1px solid rgba(112, 200, 255, 0.4);
    background: rgba(27, 68, 96, 0.3);
    color: var(--ink);
    padding: 7px 10px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.07em;
  }
  .part-export:hover { border-color: var(--accent); }
  .part-close-foot {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    padding: 7px 10px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.07em;
  }
  .part-close-foot:hover { color: var(--ink); border-color: var(--accent-dim); }

  .part-category { margin-top: 7px; }
  .part-category:first-of-type { margin-top: 0; }
  .part-category-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 3px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .part-category-head::before {
    content: "";
    width: 3px;
    height: 3px;
    background: var(--accent-dim);
  }
  .part-category-head b {
    color: var(--muted-2);
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .part-category-head span:last-child {
    margin-left: auto;
    color: var(--muted-2);
    font-size: 6.5px;
  }
  .part-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }
  .part-row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 35px;
    padding: 4px 7px 4px;
    overflow: hidden;
    border: 1px solid rgba(141, 183, 216, 0.095);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.012);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.24s, background 0.24s, transform 0.24s;
  }
  .part-row::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 7px;
    bottom: 7px;
    width: 1px;
    background: var(--accent);
    opacity: 0;
    transform: scaleY(0.4);
    transition: opacity 0.24s, transform 0.24s;
  }
  .part-row:hover {
    border-color: rgba(131, 196, 241, 0.34);
    background: rgba(86, 179, 240, 0.055);
    transform: translateY(-1px);
  }
  .part-row:hover::before { opacity: 0.55; transform: scaleY(1); }
  .part-row.is-open {
    border-color: rgba(99, 186, 246, 0.42);
    background: linear-gradient(135deg, rgba(58, 138, 193, 0.15), rgba(21, 51, 71, 0.08));
  }
  .part-row.is-open::before { opacity: 1; transform: scaleY(1); }
  .part-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
  }
  .part-code {
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 6px;
    letter-spacing: 0.06em;
  }
  .part-dot {
    width: 3px;
    height: 3px;
    border: 1px solid var(--muted-2);
    border-radius: 50%;
    transition: background 0.24s, border-color 0.24s, box-shadow 0.24s;
  }
  .part-row.is-open .part-code { color: var(--accent-dim); }
  .part-row.is-open .part-dot {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 7px rgba(112, 200, 255, 0.85);
  }
  .part-name {
    display: block;
    width: 100%;
    margin-top: 2px;
    overflow: hidden;
    color: #c4d2de;
    font-size: 10.5px;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.24s;
  }
  .part-row.is-open .part-name { color: #f2f8fc; }
  /* 英文界面下模块标题已译为英文，隐藏重复的英文副标题 */
  html[lang="en"] .module-title-en { display: none; }
  /* 英文组件名更长，允许两行并略缩字号，避免统一省略成 “Fixed Front Fla…” */
  html[lang="en"] .part-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    line-height: 1.25;
    min-height: 2.5em;
    font-size: 9.5px;
    letter-spacing: 0;
  }

  /* specs */
  .spec-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-bottom: 9px;
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
  }
  .spec-tab {
    position: relative;
    padding: 7px 4px 6px;
    border: 0;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.01);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.22s, background 0.22s;
  }
  .spec-tab:last-child { border-right: 0; }
  .spec-tab:hover { color: var(--ink-soft); background: rgba(93, 164, 210, 0.06); }
  .spec-tab[aria-selected="true"] {
    color: var(--accent);
    background: var(--accent-soft);
  }
  .spec-tab[aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 25%;
    right: 25%;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 7px rgba(112, 200, 255, 0.6);
  }
  .spec-pane { display: none; }
  .spec-pane.is-active { display: block; animation: pane-in 0.28s ease both; }
  .spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  .spec-cell {
    min-width: 0;
    padding: 7px 9px 6px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .spec-label {
    display: block;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .spec-value {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .spec-value.accent { color: var(--accent); }
  .spec-foot {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    color: var(--muted-2);
    font-size: 7.5px;
    line-height: 1.5;
    letter-spacing: 0.025em;
  }
  .spec-foot::before {
    content: "+";
    color: var(--amber);
    font-family: var(--font-mono);
    font-size: 9px;
  }

  /* duty estimate */
  .duty-pane {
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
  .duty-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .duty-zone {
    padding: 3px 6px;
    border: 1px solid rgba(120, 224, 173, 0.32);
    color: var(--ok);
    font-size: 7px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
  .duty-zone.is-peak {
    border-color: rgba(217, 154, 97, 0.42);
    color: var(--amber);
  }
  .duty-zone.is-over {
    border-color: rgba(224, 126, 106, 0.5);
    color: var(--danger);
  }
  .duty-controls {
    display: grid;
    gap: 8px;
    margin-bottom: 7px;
  }
  .duty-control-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: 0.06em;
  }
  .duty-control-head b {
    color: var(--ink-soft);
    font-weight: 400;
    letter-spacing: 0.04em;
  }
  .duty-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    margin: 5px 0 3px;
    border-radius: 0;
    background: linear-gradient(90deg, var(--accent-dim), rgba(141, 183, 216, 0.14));
    cursor: pointer;
  }
  .duty-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 11px;
    height: 11px;
    border: 1px solid rgba(194, 232, 255, 0.9);
    border-radius: 50%;
    background: #0c1a26;
    box-shadow: 0 0 0 2px rgba(112, 200, 255, 0.18), 0 0 9px rgba(112, 200, 255, 0.35);
  }
  .duty-range::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: 1px solid rgba(194, 232, 255, 0.9);
    border-radius: 50%;
    background: #0c1a26;
  }
  .duty-chart {
    display: block;
    width: 100%;
    height: auto;
    margin: 3px 0 6px;
    border: 1px solid var(--line);
    background: rgba(5, 11, 17, 0.58);
  }
  .duty-grid-line { stroke: rgba(141, 183, 216, 0.11); stroke-width: 0.6; }
  .duty-axis { stroke: rgba(141, 183, 216, 0.35); stroke-width: 0.8; }
  .duty-tick {
    fill: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 6px;
    letter-spacing: 0.03em;
  }
  .duty-crosshair {
    stroke: rgba(217, 154, 97, 0.4);
    stroke-width: 0.7;
    stroke-dasharray: 2 2;
  }
  .duty-marker {
    fill: #0b141d;
    stroke-width: 1.2;
  }
  .duty-marker.rated { stroke: var(--accent); }
  .duty-marker.peak { stroke: var(--amber); }
  .duty-marker-label {
    fill: var(--muted);
    font-family: var(--font-mono);
    font-size: 6px;
    letter-spacing: 0.04em;
  }
  .duty-point {
    fill: var(--amber);
    stroke: #ffe5c5;
    stroke-width: 0.8;
    filter: drop-shadow(0 0 4px rgba(217, 154, 97, 0.8));
  }
  .duty-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  .duty-metric {
    min-width: 0;
    padding: 6px 7px 5px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .duty-metric span {
    display: block;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 6.5px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }
  .duty-metric b {
    display: block;
    margin-top: 3px;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap;
  }
  .duty-bars {
    display: grid;
    gap: 5px;
    margin-top: 7px;
  }
  .duty-bar-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 7px;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 6.5px;
    letter-spacing: 0.07em;
  }
  .duty-bar {
    display: block;
    height: 2px;
    background: rgba(141, 183, 216, 0.14);
    overflow: hidden;
  }
  .duty-bar i {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dim), var(--amber));
    transition: width 0.2s;
  }
  .duty-bar-row b {
    color: var(--ink-soft);
    font-weight: 400;
    text-align: right;
  }
  .duty-presets {
    display: flex;
    gap: 5px;
    margin: 8px 0 0;
  }
  .duty-preset {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    padding: 5px 7px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 6.5px;
    letter-spacing: 0.05em;
  }
  .duty-preset:hover { color: var(--ink); border-color: var(--accent-dim); }
  .duty-note {
    margin: 8px 0 0;
    color: var(--muted-2);
    font-size: 7.3px;
    line-height: 1.55;
  }
  .duty-note b { color: var(--amber); font-weight: 400; }

  /* simulated run telemetry */
  .sim-strip {
    position: absolute;
    top: clamp(82px, 9vh, 104px);
    left: 50%;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(112, 200, 255, 0.2);
    background: rgba(7, 15, 23, 0.72);
    backdrop-filter: blur(8px);
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.09em;
    pointer-events: none;
  }
  .sim-strip[hidden] { display: none; }
  .sim-strip-state {
    padding-right: 9px;
    border-right: 1px solid var(--line);
    color: var(--accent);
    font-size: 7px;
    letter-spacing: 0.12em;
  }
  .sim-strip span:not(.sim-strip-state) { display: flex; align-items: baseline; gap: 4px; }
  .sim-strip b {
    color: var(--ink);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
  }
  .sim-strip small { color: var(--muted-2); font-size: 6.5px; }
  .sim-strip.is-enabled .sim-strip-state { color: var(--amber); }
  .sim-strip.is-stopping .sim-strip-state { color: var(--amber); }
  .sim-strip.is-fault { border-color: rgba(224, 126, 106, 0.45); }
  .sim-strip.is-fault .sim-strip-state,
  .sim-strip.is-fault b { color: var(--danger); }
  @media (max-width: 1399px) {
    .sim-strip { display: none; }
  }
  /* 嵌入产品详情时舞台更窄：保留一条紧凑遥测条，强化“正在运行”的状态 */
  @media (max-width: 1399px) and (min-width: 761px) {
    html.is-embed .sim-strip { display: flex; }
  }

  .sim-pane {
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
  .sim-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .sim-state {
    padding: 3px 6px;
    border: 1px solid rgba(141, 183, 216, 0.28);
    color: var(--muted);
    font-size: 7px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
  .sim-state.is-enabled { border-color: rgba(217, 154, 97, 0.4); color: var(--amber); }
  .sim-state.is-running { border-color: rgba(120, 224, 173, 0.42); color: var(--ok); }
  .sim-state.is-stopping { border-color: rgba(217, 154, 97, 0.4); color: var(--amber); }
  .sim-state.is-fault { border-color: rgba(224, 126, 106, 0.55); color: var(--danger); }
  .sim-fault {
    margin: -2px 0 8px;
    padding: 6px 8px;
    border-left: 2px solid var(--danger);
    background: rgba(92, 34, 28, 0.22);
    color: #efaf9f;
    font-size: 8px;
    line-height: 1.5;
  }
  .sim-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  .sim-metric {
    min-width: 0;
    padding: 8px 9px 7px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .sim-metric span {
    display: block;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 6.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .sim-metric b {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1;
  }
  .sim-metric b small {
    margin-left: 3px;
    color: var(--muted-2);
    font-size: 7px;
  }
  .sim-chart {
    display: block;
    width: 100%;
    height: auto;
    margin: 9px 0 7px;
    border: 1px solid var(--line);
    background: rgba(5, 11, 17, 0.58);
  }
  .sim-chart-grid { stroke: rgba(141, 183, 216, 0.1); stroke-width: 0.6; }
  .sim-chart-axis { stroke: rgba(141, 183, 216, 0.32); stroke-width: 0.7; }
  .sim-chart-tick {
    fill: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 5.5px;
    letter-spacing: 0.03em;
  }
  .sim-speed-line,
  .sim-temp-line {
    fill: none;
    stroke-width: 1.3;
    stroke-linejoin: round;
    stroke-linecap: round;
  }
  .sim-speed-line { stroke: var(--accent); filter: drop-shadow(0 0 3px rgba(112, 200, 255, 0.4)); }
  .sim-temp-line { stroke: var(--amber); }
  .sim-legend {
    display: flex;
    gap: 12px;
    margin: -2px 0 7px;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 6.5px;
    letter-spacing: 0.05em;
  }
  .sim-legend span::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 1px;
    margin-right: 4px;
    vertical-align: middle;
    background: var(--accent);
  }
  .sim-legend span:last-child::before { background: var(--amber); }
  .sim-bars { display: grid; gap: 5px; margin-bottom: 8px; }
  .sim-bar-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 7px;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 6.5px;
    letter-spacing: 0.06em;
  }
  .sim-bar {
    display: block;
    height: 2px;
    background: rgba(141, 183, 216, 0.14);
    overflow: hidden;
  }
  .sim-bar i {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent));
    transition: width 0.18s linear;
  }
  .sim-bar.temp i { background: linear-gradient(90deg, var(--amber), var(--danger)); }
  .sim-bar-row b { color: var(--ink-soft); font-weight: 400; text-align: right; }
  .sim-controls { display: grid; gap: 7px; margin-bottom: 7px; }
  .sim-presets { display: flex; gap: 5px; margin-bottom: 7px; }
  .sim-presets .duty-preset { flex: 1; }
  .sim-actions {
    display: flex;
    gap: 5px;
    margin-bottom: 2px;
  }
  .sim-btn {
    flex: 1;
    min-height: 30px;
    border: 1px solid var(--line);
    background: rgba(9, 16, 24, 0.6);
    color: var(--muted);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.06em;
  }
  .sim-btn:hover:not(:disabled) { border-color: var(--accent-dim); color: var(--ink); }
  .sim-btn.primary {
    border-color: rgba(112, 200, 255, 0.42);
    background: rgba(27, 68, 96, 0.35);
    color: var(--ink);
  }
  .sim-btn:disabled { opacity: 0.32; cursor: not-allowed; }
  .sim-note {
    margin: 7px 0 0;
    color: var(--muted-2);
    font-size: 7.2px;
    line-height: 1.55;
  }
  .sim-note b { color: var(--amber); font-weight: 400; }

  /* guide */
  .guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .guide-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid rgba(141, 183, 216, 0.08);
    background: rgba(255, 255, 255, 0.012);
  }
  .guide-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--accent-dim);
  }
  .guide-icon svg { width: 11px; height: 11px; }
  .guide-copy { min-width: 0; }
  .guide-copy b {
    display: block;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.03em;
  }
  .guide-copy span {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 6px;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .guide-note {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px dashed rgba(141, 183, 216, 0.13);
    color: var(--muted-2);
    font-size: 7.5px;
    line-height: 1.6;
  }
  .guide-note b { color: var(--amber); font-weight: 400; }

  .panel-foot {
    position: relative;
    flex: 0 0 auto;
    padding: 10px 22px 11px;
    border-top: 1px solid var(--line);
    background: linear-gradient(0deg, rgba(10, 17, 26, 0.98), rgba(10, 17, 26, 0.82));
    box-shadow: 0 -18px 32px rgba(5, 9, 14, 0.34);
  }
  .foot-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 6.8px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }
  .foot-status span:first-child { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .foot-meta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
  .scroll-hint { color: var(--accent-dim); letter-spacing: 0.08em; visibility: hidden; }
  .foot-status i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
  }
  .foot-status b { color: var(--muted); font-weight: 400; }
  .action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.09em;
    cursor: pointer;
    transition: border-color 0.24s, background 0.24s, color 0.24s, box-shadow 0.24s, opacity 0.24s;
  }
  .action-btn svg { width: 13px; height: 13px; flex: 0 0 auto; }
  .action-btn.primary {
    border-color: rgba(111, 199, 255, 0.55);
    background: linear-gradient(135deg, rgba(58, 150, 211, 0.33), rgba(27, 72, 104, 0.24));
    color: #edf9ff;
    box-shadow: inset 0 1px 0 rgba(173, 224, 255, 0.12), 0 0 24px rgba(54, 139, 197, 0.08);
  }
  .action-btn.primary:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(75, 175, 238, 0.44), rgba(27, 81, 117, 0.33));
    box-shadow: inset 0 1px 0 rgba(194, 232, 255, 0.2), 0 0 30px rgba(54, 139, 197, 0.14);
  }
  .action-btn.secondary { color: var(--ink-soft); background: rgba(255, 255, 255, 0.018); }
  .action-btn.secondary:hover { border-color: rgba(160, 202, 233, 0.5); background: rgba(132, 178, 211, 0.08); }
  .action-btn:disabled {
    opacity: 0.32;
    cursor: not-allowed;
    box-shadow: none;
  }
  .action-btn:not(:disabled):active { transform: translateY(1px); }
  .action-btn .shortcut {
    margin-left: auto;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 6px;
    letter-spacing: 0.08em;
  }
  .export-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    margin-top: 7px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    background: rgba(9, 16, 24, 0.48);
    color: var(--muted);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.07em;
    text-align: left;
    transition: border-color 0.2s, background 0.2s;
  }
  .export-btn:hover { border-color: var(--accent-dim); background: rgba(17, 37, 53, 0.58); }
  .export-btn svg { width: 12px; height: 12px; color: var(--accent); flex: 0 0 auto; }
  .export-btn span { color: var(--ink-soft); }
  .export-btn em {
    margin-left: auto;
    color: var(--muted-2);
    font-size: 6px;
    font-style: normal;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  .export-btn.is-done { border-color: rgba(120, 224, 173, 0.42); }
  .export-btn.is-done em { color: var(--ok); }
  .foot-note {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 6px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .panel-barcode {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 13px;
    opacity: 0.42;
  }
  .panel-barcode i {
    display: block;
    width: 1px;
    height: 100%;
    background: var(--muted);
  }
  .panel-barcode i:nth-child(3n) { height: 58%; }
  .panel-barcode i:nth-child(4n) { height: 77%; }
  .panel-barcode i:nth-child(5n) { height: 36%; }

  /* ============ LOADER ============ */
  .boot {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background:
      radial-gradient(ellipse 55% 55% at 50% 47%, rgba(31, 64, 91, 0.25), transparent 67%),
      #080c13;
    transition: opacity 0.65s ease, visibility 0.65s ease;
  }
  .boot::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(137, 180, 213, 0.09);
    pointer-events: none;
  }
  .boot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(138, 187, 226, 0.018) 4px);
    pointer-events: none;
  }
  .boot.is-hidden { opacity: 0; visibility: hidden; }
  .boot-inner {
    position: relative;
    z-index: 1;
    width: min(360px, 74vw);
    text-align: left;
  }
  .boot-logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 25px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
  }
  .boot-symbol {
    position: relative;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(112, 200, 255, 0.55);
    transform: rotate(45deg);
    animation: boot-spin 4.5s linear infinite;
  }
  .boot-symbol::before, .boot-symbol::after {
    content: "";
    position: absolute;
    background: var(--accent);
  }
  .boot-symbol::before { left: 50%; top: 6px; bottom: 6px; width: 1px; }
  .boot-symbol::after { top: 50%; left: 6px; right: 6px; height: 1px; }
  .boot-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 6vw, 56px);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: 0.01em;
    color: var(--ink);
  }
  .boot-title small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.18em;
  }
  .boot-track {
    position: relative;
    height: 1px;
    margin-top: 32px;
    overflow: hidden;
    background: rgba(141, 183, 216, 0.15);
  }
  .boot-track i {
    display: block;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: boot-progress 1.5s ease-in-out infinite;
  }
  .boot-status {
    display: flex;
    justify-content: space-between;
    margin-top: 11px;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .boot-status b { color: var(--accent-dim); font-weight: 400; }
  .boot.is-error .boot-status b { color: var(--danger); }
  .boot.is-error .boot-track i { display: none; }
  .boot-foot {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 29px;
    display: flex;
    justify-content: space-between;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 6.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    z-index: 1;
  }

  @keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
  @keyframes pane-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes boot-progress { 0% { transform: translateX(-110%); } 100% { transform: translateX(250%); } }
  @keyframes boot-spin { from { transform: rotate(45deg); } to { transform: rotate(405deg); } }
  @keyframes panel-in { from { opacity: 0; transform: translateX(9px); } to { opacity: 1; transform: translateX(0); } }

  .panel { animation: panel-in 0.9s 0.28s cubic-bezier(0.16, 1, 0.3, 1) both; }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 1520px) {
    .orbit-note { display: none; }
  }
  @media (max-width: 1180px) {
    :root { --panel-w: 372px; }
    .hero-title { font-size: clamp(48px, 6.2vw, 72px); }
    .spec-rail { display: none; }
    .stage-id { display: none; }
    .target-readout { width: 280px; }
    .part-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (max-width: 900px) {
    body { overflow: auto; }
    .app {
      grid-template-columns: 1fr;
      grid-template-rows: minmax(460px, 58dvh) auto;
      height: auto;
      min-height: 100dvh;
    }
    .stage { height: 58dvh; min-height: 460px; }
    .panel {
      height: auto;
      margin: 0 10px 10px;
      max-height: none;
      border-radius: 3px;
    }
    .panel-scroll { max-height: none; overflow: visible; }
    .part-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .panel-foot { position: sticky; bottom: 0; z-index: 2; }
    .stage-tools { right: 24px; }
    .stage-id { display: none; }
    .target-readout { width: 245px; bottom: 24px; left: 25px; }
    .readout-name { font-size: 21px; }
    .orientation { right: 24px; bottom: 24px; }
    .orientation-meta { display: none; }
    .hero { top: 30px; left: 25px; }
    .frame-corners { inset: 10px; }
    .spec-rail { display: none; }
  }
  @media (max-width: 560px) {
    .hero-kicker { display: none; }
    .stage-tools {
      top: 10px;
      right: 16px;
      gap: 6px;
      transition: opacity 0.28s ease;
    }
    .stage-tools .icon-btn {
      width: 34px;
      height: 34px;
    }
    .stage-tools .icon-btn svg { width: 14px; height: 14px; }
  }
  @media (max-width: 560px) {
    .stage { min-height: 420px; height: 56dvh; }
    .part-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-title { font-size: 48px; }
    .hero-sub { font-size: 10px; }
    .hero-sub b { font-size: 11px; }
    .hero-tags { margin-top: 13px; }
    .hero-tags span { padding: 4px 6px 3px; font-size: 6.5px; }
    .target-readout { width: 200px; }
    .readout-head { font-size: 6.5px; }
    .readout-name { font-size: 17px; margin-top: 7px; }
    .readout-sub { font-size: 8px; }
    .orientation { transform: scale(0.82); transform-origin: right bottom; }
    .compass { width: 58px; height: 58px; }
    .panel-head, .module, .panel-foot { padding-left: 16px; padding-right: 16px; }
    .part-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .part-name { font-size: 9.5px; }
    .panel { margin: 0 6px 6px; }
    .boot-foot { left: 21px; right: 21px; }
  }
  @media (max-width: 560px) {
    .series-modal { padding: 10px; }
    .series-dialog { width: 100%; max-height: calc(100dvh - 20px); }
    .series-head { padding: 15px 16px 12px; }
    .series-head h2 { font-size: 19px; }
    .series-head p { font-size: 8px; }
    .series-table th, .series-table td { padding: 8px 10px; }
    .series-foot { padding: 10px 16px; flex-wrap: wrap; }
    .series-foot p { flex: 1 1 100%; }
    .part-modal { padding: 10px; }
    .part-dialog { width: 100%; max-height: calc(100dvh - 20px); }
    .part-head { padding: 15px 16px 12px; }
    .part-head h2 { font-size: 19px; }
    .part-body { padding: 13px 16px 12px; }
    .part-specs { grid-template-columns: 1fr; }
    .part-facts { grid-template-columns: 1fr; gap: 12px; }
    .part-foot { padding: 10px 16px; flex-wrap: wrap; }
    .part-foot p { flex: 1 1 100%; max-width: none; }
    .part-foot > div { width: 100%; }
    .part-export, .part-close-foot { flex: 1; }
    .export-btn em { font-size: 5.5px; }
  }
  .noscript-card {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: grid;
    place-content: center;
    gap: 12px;
    padding: 32px;
    background: #070a10;
    color: var(--ink);
  }
  .noscript-card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.04em;
  }
  .noscript-card p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
    }
  }
  /* 嵌入产品详情 Tab 时：高度由外层 iframe 决定，不再撑 620px 最小高度 */
  html.is-embed .app { min-height: 0; }
  @media (max-height: 620px) {
    html.is-embed .hero { top: 24px; }
    html.is-embed .hero-title { font-size: clamp(40px, 5.4vw, 60px); }
    html.is-embed .hero-tags { margin-top: 12px; }
    html.is-embed .target-readout { bottom: 20px; }
    html.is-embed .orientation { bottom: 20px; }
  }
