﻿:root {
        color-scheme: light;
        --bg-start: #f2f6ff;
        --bg-mid: #eaf1fc;
        --bg-end: #e5edf9;
        --panel: rgba(248, 251, 255, 0.82);
        --panel-soft: rgba(241, 246, 253, 0.72);
        --panel-solid: #f7faff;
        --control: rgba(247, 250, 255, 0.9);
        --control-hover: rgba(235, 243, 255, 0.96);
        --line: rgba(22, 93, 255, 0.17);
        --line-strong: rgba(22, 93, 255, 0.34);
        --glow-line: rgba(22, 93, 255, 0.24);
        --grid-line: rgba(22, 93, 255, 0.05);
        --text: #0d1b33;
        --text-soft: #334155;
        --muted: #5b6b82;
        --canvas: rgba(245, 248, 255, 0.78);
        --panel-highlight: rgba(255, 255, 255, 0.62);
        --aurora-soft: rgba(24, 215, 255, 0.18);
        --topbar: rgba(239, 245, 255, 0.84);
        --sidebar: rgba(239, 245, 255, 0.78);
        --shadow-color: rgba(25, 58, 112, 0.1);
      }

      .dark {
        color-scheme: dark;
        --bg-start: #080c1a;
        --bg-mid: #0b1328;
        --bg-end: #0f1a36;
        --panel: rgba(12, 21, 40, 0.84);
        --panel-soft: rgba(15, 27, 49, 0.72);
        --panel-solid: #0d172b;
        --control: rgba(11, 21, 40, 0.92);
        --control-hover: rgba(16, 33, 61, 0.96);
        --line: rgba(24, 215, 255, 0.18);
        --line-strong: rgba(24, 215, 255, 0.38);
        --glow-line: rgba(24, 215, 255, 0.26);
        --grid-line: rgba(22, 93, 255, 0.05);
        --text: #edf4ff;
        --text-soft: #c5d2e6;
        --muted: #99a9c0;
        --canvas: rgba(9, 14, 25, 0.8);
        --panel-highlight: rgba(255, 255, 255, 0.08);
        --aurora-soft: rgba(24, 215, 255, 0.24);
        --topbar: rgba(6, 11, 24, 0.86);
        --sidebar: rgba(8, 16, 31, 0.84);
        --shadow-color: rgba(0, 0, 0, 0.3);
      }

      * {
        box-sizing: border-box;
      }

      html {
        scroll-behavior: smooth;
      }

      body {
        min-height: 100vh;
        margin: 0;
        overflow-x: clip;
        background:
          linear-gradient(145deg, rgba(22, 93, 255, 0.055), transparent 38%),
          linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 48%, var(--bg-end) 100%);
        color: var(--text);
        font-family:
          Inter,
          ui-sans-serif,
          system-ui,
          -apple-system,
          BlinkMacSystemFont,
          "Segoe UI",
          "Microsoft YaHei",
          sans-serif;
      }

      .dark body,
      body.dark {
        background:
          linear-gradient(145deg, rgba(24, 215, 255, 0.035), transparent 42%),
          linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 48%, var(--bg-end) 100%);
      }

      button,
      input,
      select,
      textarea {
        font: inherit;
      }

      input,
      select,
      textarea {
        color: var(--text);
        caret-color: #165dff;
      }

      input::placeholder,
      textarea::placeholder {
        color: var(--muted);
        opacity: 0.78;
      }

      select option {
        color: var(--text);
        background: var(--panel-solid);
      }

      :focus-visible {
        outline: 2px solid rgba(22, 93, 255, 0.7);
        outline-offset: 2px;
      }

      .dark :focus-visible {
        outline-color: rgba(24, 215, 255, 0.72);
      }

      body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -3;
        background-image:
          repeating-linear-gradient(90deg, var(--grid-line) 0 0.5px, transparent 0.5px 12px, transparent 12px 140px),
          repeating-linear-gradient(0deg, var(--grid-line) 0 0.5px, transparent 0.5px 12px, transparent 12px 140px);
        mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 90%);
        opacity: 1;
        pointer-events: none;
      }

      [v-cloak] {
        display: none;
      }

      .iconfont {
        font-size: inherit;
        line-height: 1;
        stroke-width: 2px;
      }

      .particle-canvas {
        position: fixed;
        inset: 0;
        z-index: -2;
        opacity: 1;
        pointer-events: none;
      }

      .app-root {
        position: relative;
        isolation: isolate;
        color: var(--text);
      }

      html:not(.dark) .app-root .text-ai-green {
        color: #087a3c !important;
      }

      html:not(.dark) .app-root .text-ai-yellow {
        color: #985600 !important;
      }

      html:not(.dark) .app-root .text-ai-red {
        color: #b42318 !important;
      }

      .app-root::before {
        content: "";
        position: fixed;
        inset: 0 0 auto;
        z-index: -1;
        height: 420px;
        background:
          linear-gradient(110deg, rgba(22, 93, 255, 0.08), transparent 36%),
          linear-gradient(250deg, rgba(24, 215, 255, 0.05), transparent 32%);
        pointer-events: none;
      }

      .app-topbar {
        background: var(--topbar) !important;
        border-color: var(--line) !important;
        box-shadow: 0 12px 34px rgba(25, 58, 112, 0.06);
      }

      .app-topbar::after {
        content: "";
        position: absolute;
        inset: auto 0 -1px;
        height: 1px;
        background: linear-gradient(90deg, transparent 4%, rgba(22, 93, 255, 0.38) 34%, rgba(24, 215, 255, 0.28) 66%, transparent 96%);
        opacity: 0.7;
        pointer-events: none;
      }

      .portal-admin .app-topbar::after {
        background: linear-gradient(90deg, transparent 4%, rgba(24, 215, 255, 0.46) 36%, rgba(33, 196, 93, 0.25) 72%, transparent 96%);
      }

      .public-shell,
      .workspace-shell {
        position: relative;
        z-index: 1;
      }

      .workspace-shell {
        align-items: start;
      }

      .workspace-shell--workflow-wide {
        width: 100%;
        max-width: none !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        gap: 10px !important;
        align-items: stretch;
      }

      .workspace-shell--workflow-focus {
        grid-template-columns: minmax(0, 1fr) !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
      }

      .workspace-shell--workflow-focus .workspace-sidebar,
      .workspace-shell--workflow-focus .workflow-runtime-strip,
      .workspace-shell--workflow-focus .workflow-cost-strip,
      .workspace-shell--workflow-focus .workflow-side-panel,
      .workspace-shell--workflow-focus .workflow-queue-panel {
        display: none !important;
      }

      .workspace-shell--workflow-focus .workflow-primary-panel {
        padding: 12px !important;
      }

      .workspace-shell--workflow-focus .workflow-canvas-shell {
        margin-top: 12px !important;
      }

      .workspace-shell--admin-dense {
        width: 100%;
        max-width: none !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        gap: 12px !important;
      }

      .workspace-shell--admin-dense .workspace-content {
        min-width: 0;
      }

      .workspace-shell--admin-dense .workspace-content > section {
        min-width: 0;
      }

      html.portal-admin .workspace-shell {
        width: 100%;
        max-width: none !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
      }

      html.portal-admin .workspace-content {
        min-width: 0;
      }

      html.portal-admin .workspace-content > section {
        min-width: 0;
      }

      @media (min-width: 1024px) {
        html.portal-admin .workspace-shell {
          grid-template-columns: 208px minmax(0, 1fr) !important;
          gap: 12px !important;
        }
      }

      @media (min-width: 1536px) {
        html.portal-admin .workspace-shell {
          grid-template-columns: 224px minmax(0, 1fr) !important;
          gap: 14px !important;
        }
      }

      .gateway-compact-table {
        width: 100%;
        min-width: 0 !important;
        table-layout: fixed;
      }

      .gateway-compact-table th,
      .gateway-compact-table td {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
      }

      .gateway-compact-table .btn {
        white-space: nowrap;
      }

      .gateway-layout-grid {
        align-items: start;
      }

      .gateway-inspector-panel {
        min-width: 0;
      }

      html.portal-admin .gateway-inspector-panel > article {
        border-color: rgba(22, 93, 255, 0.16);
        box-shadow: 0 14px 34px rgba(16, 24, 40, 0.06);
      }

      @media (min-width: 1180px) {
        .gateway-layout-grid {
          grid-template-columns: minmax(0, 1fr) 240px !important;
          gap: 12px !important;
        }

        .gateway-inspector-panel {
          position: sticky;
          top: 84px;
          max-height: calc(100vh - 104px);
          overflow-y: auto;
          padding-right: 2px;
        }
      }

      @media (min-width: 1536px) {
        .gateway-layout-grid {
          grid-template-columns: minmax(0, 1fr) 300px !important;
          gap: 14px !important;
        }
      }

      @media (min-width: 1760px) {
        .gateway-layout-grid {
          grid-template-columns: minmax(0, 1fr) 320px !important;
        }
      }

      .workflow-layout-wide {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px !important;
        align-items: stretch;
      }

      .workflow-primary-panel {
        min-width: 0;
      }

      .workflow-side-panel {
        display: flex;
        min-width: 0;
        height: 100%;
        flex-direction: column;
        overflow-x: hidden;
      }

      .workflow-result-workbench {
        background:
          linear-gradient(135deg, rgba(22, 93, 255, 0.055), transparent 34%),
          rgba(255, 255, 255, 0.58);
        box-shadow: 0 18px 48px rgba(22, 93, 255, 0.08);
      }

      .workflow-result-card,
      .workflow-result-image {
        transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
      }

      .workflow-result-card:hover,
      .workflow-result-image:hover {
        transform: translateY(-2px);
        border-color: rgba(22, 93, 255, 0.3);
        box-shadow: 0 12px 28px rgba(22, 93, 255, 0.09);
      }

      .workflow-result-copy {
        min-height: 0;
        max-height: 10rem;
        overflow-y: auto;
        font-family: inherit;
      }

      .workflow-primary-panel {
        display: flex;
        min-width: 0;
        flex-direction: column;
      }

      .workflow-primary-panel .workflow-runtime-strip {
        order: 10;
      }

      .workflow-primary-panel .workflow-cost-strip {
        order: 20;
      }

      .workflow-primary-panel .workflow-canvas-shell,
      .workflow-primary-panel .workflow-canvas-shell + .lg\:hidden {
        order: 30;
      }

      .workflow-primary-panel #quick-generation-results {
        order: 40;
      }

      .workflow-primary-panel .workflow-queue-panel {
        order: 50;
      }

      .workflow-result-section {
        transition: background-color 180ms ease;
      }

      .workflow-result-section:hover {
        background: rgba(22, 93, 255, 0.035);
      }

      .workflow-node-library .workflow-library-item {
        white-space: normal;
        min-width: 0;
        max-width: 100%;
        overflow: clip;
        transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
      }

      .workflow-side-switch {
        isolation: isolate;
      }

      .workflow-node-library .workflow-library-item:hover {
        transform: translateY(-1px);
        border-color: rgba(22, 93, 255, 0.34);
        background: rgba(245, 248, 255, 0.82);
      }

      .workflow-node-library .workflow-library-item span,
      .workflow-node-library .workflow-library-item strong {
        min-width: 0;
        max-width: 100%;
      }

      .workflow-node-library .workflow-library-item strong {
        overflow-wrap: anywhere;
        word-break: break-word;
      }

      .workflow-library-desc {
        display: -webkit-box !important;
        overflow: hidden;
        overflow-wrap: anywhere;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }

      .dark .workflow-result-workbench {
        background:
          linear-gradient(135deg, rgba(24, 215, 255, 0.055), transparent 34%),
          rgba(8, 12, 26, 0.72);
      }

      @media (max-width: 767px) {
        .workspace-shell--workflow-wide,
        .workflow-layout-wide,
        .workflow-primary-panel,
        .workflow-side-panel {
          max-width: 100%;
          overflow-x: clip;
        }
      }

      @media (min-width: 1024px) {
        .workspace-shell--workflow-wide {
          grid-template-columns: 200px minmax(0, 1fr) !important;
        }

        .workspace-shell--workflow-focus {
          grid-template-columns: minmax(0, 1fr) !important;
        }

        .workspace-shell--workflow-wide .workspace-sidebar {
          padding-left: 8px;
          padding-right: 8px;
          position: relative !important;
          top: auto !important;
          height: auto !important;
          min-height: calc(100vh - 104px);
          align-self: stretch;
        }
      }

      @media (min-width: 1180px) {
        .workflow-layout-wide {
          grid-template-columns: minmax(0, 1fr) 288px;
        }

        .workflow-side-panel {
          position: relative;
          top: auto;
          min-height: 100%;
          max-height: none;
          overflow-x: clip;
          overflow-y: auto;
          align-self: stretch;
          height: 100%;
        }
      }

      @media (min-width: 1440px) {
        .workflow-layout-wide {
          grid-template-columns: minmax(0, 1fr) 308px;
        }
      }

      @media (min-width: 1700px) {
        .workflow-layout-wide {
          grid-template-columns: minmax(0, 1fr) 332px;
        }

        .workflow-side-panel {
          position: relative;
          top: auto;
          min-height: 100%;
          max-height: none;
          overflow-x: clip;
          overflow-y: visible;
          align-self: stretch;
          height: 100%;
        }
      }

      @media (min-width: 1536px) {
        .workspace-shell--workflow-wide {
          grid-template-columns: 208px minmax(0, 1fr) !important;
        }

        .workspace-shell--workflow-focus {
          grid-template-columns: minmax(0, 1fr) !important;
        }
      }

      @media (min-width: 1900px) {
        .workflow-layout-wide {
          grid-template-columns: minmax(0, 1fr) 352px;
        }
      }

      .workspace-sidebar {
        overflow: hidden;
        background:
          linear-gradient(165deg, rgba(22, 93, 255, 0.08), transparent 34%),
          var(--sidebar) !important;
      }

      .workspace-sidebar::after {
        content: "";
        position: absolute;
        inset: 18px 0 18px auto;
        width: 1px;
        background: linear-gradient(180deg, transparent, rgba(24, 215, 255, 0.38), transparent);
        opacity: 0.72;
      }

      .workspace-content > section {
        animation: workspaceEnter 360ms ease both;
      }

      .workspace-content table {
        color: var(--text-soft);
      }

      .workspace-content thead {
        color: var(--muted);
      }

      .workspace-content tbody tr {
        transition: background-color 220ms ease, box-shadow 220ms ease;
      }

      .workspace-content tbody tr:hover {
        background-color: rgba(22, 93, 255, 0.055) !important;
        box-shadow: inset 2px 0 0 rgba(22, 93, 255, 0.58);
      }

      .dark .workspace-content tbody tr:hover {
        background-color: rgba(24, 215, 255, 0.055) !important;
        box-shadow: inset 2px 0 0 rgba(24, 215, 255, 0.58);
      }

      .workspace-content input,
      .workspace-content select,
      .workspace-content textarea,
      .task-drawer input,
      .task-drawer select,
      .task-drawer textarea {
        border-color: var(--line) !important;
        background: var(--control) !important;
        color: var(--text) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
      }

      .workspace-content input:hover,
      .workspace-content select:hover,
      .workspace-content textarea:hover {
        border-color: var(--line-strong) !important;
        background: var(--control-hover) !important;
      }

      .workspace-content input:disabled,
      .workspace-content select:disabled,
      .workspace-content textarea:disabled,
      .workspace-content button:disabled {
        cursor: not-allowed;
        opacity: 0.54;
      }

      .layer-admin .workspace-content .glass {
        border-color: rgba(24, 215, 255, 0.2);
      }

      .layer-admin .workspace-content .metric-hud::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 2px;
        background: linear-gradient(180deg, transparent, rgba(24, 215, 255, 0.72), transparent);
      }

      .layer-merchant .workspace-content > section > .glass:first-child {
        border-top-color: rgba(22, 93, 255, 0.42);
      }

      .glass {
        position: relative;
        background:
          linear-gradient(135deg, var(--panel-highlight), transparent 42%),
          var(--panel);
        border: 1px solid var(--glow-line);
        box-shadow: 0 18px 50px var(--shadow-color);
        backdrop-filter: blur(16px);
      }

      .dark .glass {
        border-color: var(--glow-line);
        box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
      }

      .soft-panel {
        position: relative;
        background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 58%),
          var(--panel-soft);
        border: 1px solid var(--line);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
        backdrop-filter: blur(14px);
      }

      .glass,
      .soft-panel {
        color: var(--text);
      }

      .glass .text-ai-muted,
      .soft-panel .text-ai-muted {
        color: var(--muted);
      }

      .dark .soft-panel {
        background:
          linear-gradient(135deg, rgba(24, 215, 255, 0.06), transparent 58%),
          var(--panel-soft);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
      }

      .icon-orb {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(22, 93, 255, 0.16);
        background:
          radial-gradient(circle at 35% 25%, rgba(24, 215, 255, 0.18), transparent 42%),
          rgba(22, 93, 255, 0.08);
        color: #165dff;
        box-shadow: inset 0 0 18px rgba(22, 93, 255, 0.08), 0 10px 28px rgba(22, 93, 255, 0.08);
      }

      .dark .icon-orb {
        border-color: rgba(24, 215, 255, 0.2);
        background:
          radial-gradient(circle at 35% 25%, rgba(24, 215, 255, 0.2), transparent 42%),
          rgba(24, 215, 255, 0.08);
        color: #b9f4ff;
      }

      .metric-hud {
        position: relative;
        overflow: hidden;
      }

      .metric-hud::after {
        content: "";
        position: absolute;
        inset: auto 14px 0 14px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(24, 215, 255, 0.54), transparent);
        opacity: 0.72;
      }

      .hero-media {
        position: relative;
        min-height: min(760px, calc(100vh - 88px));
        overflow: hidden;
        background:
          linear-gradient(115deg, rgba(22, 93, 255, 0.055), transparent 44%),
          linear-gradient(180deg, transparent, rgba(22, 93, 255, 0.035));
      }

      .dark .hero-media {
        background:
          linear-gradient(115deg, rgba(22, 93, 255, 0.11), transparent 46%),
          linear-gradient(180deg, rgba(24, 215, 255, 0.025), rgba(6, 11, 24, 0.12));
      }

      .hero-media::after {
        content: none;
        position: absolute;
        inset: 0;
        background: none;
        opacity: 0;
        pointer-events: none;
      }

      .dark .hero-media::after {
        background: none;
      }

      .hero-visual {
        position: relative;
        min-height: 470px;
        overflow: hidden;
        border-radius: 16px;
        border-color: rgba(22, 93, 255, 0.18);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
        padding: 22px;
        box-shadow: 0 24px 70px rgba(22, 93, 255, 0.1);
        transform: translateZ(0);
      }

      .dark .hero-visual {
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.36), rgba(15, 23, 42, 0.12));
        box-shadow: 0 24px 74px rgba(0, 0, 0, 0.24);
      }

      .hero-visual::before {
        content: "";
        position: absolute;
        inset: -24%;
        background:
          radial-gradient(circle at 78% 18%, rgba(24, 215, 255, 0.18), transparent 28%),
          radial-gradient(circle at 18% 78%, rgba(22, 93, 255, 0.12), transparent 32%);
        filter: blur(8px);
        opacity: 0.85;
        pointer-events: none;
      }

      .hero-flow-stage {
        position: relative;
        z-index: 1;
        height: 340px;
        margin-top: 18px;
        overflow: hidden;
        border: 1px solid rgba(22, 93, 255, 0.14);
        border-radius: 16px;
        background-color: transparent;
        box-shadow: inset 0 0 40px rgba(22, 93, 255, 0.06);
      }

      .dark .hero-flow-stage {
        border-color: rgba(24, 215, 255, 0.16);
        background-color: transparent;
        box-shadow: inset 0 0 46px rgba(24, 215, 255, 0.06);
      }

      .hero-flow-stage::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(105deg, transparent 20%, rgba(24, 215, 255, 0.13), transparent 56%);
        transform: translateX(-115%);
        animation: scanSweep 7.6s ease-in-out infinite;
        pointer-events: none;
      }

      .hero-flow-node {
        position: absolute;
        z-index: 2;
        display: flex;
        width: 160px;
        align-items: center;
        gap: 9px;
        border: 1px solid rgba(22, 93, 255, 0.18);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.78);
        padding: 10px;
        box-shadow: 0 16px 36px rgba(22, 93, 255, 0.1);
        backdrop-filter: blur(14px);
        animation: heroNodeCycle 6.4s ease-in-out infinite;
        animation-delay: var(--node-delay, 0s);
        transition:
          transform 300ms ease,
          border-color 300ms ease,
          box-shadow 300ms ease;
      }

      .dark .hero-flow-node {
        border-color: rgba(24, 215, 255, 0.18);
        background: rgba(15, 23, 42, 0.82);
      }

      .hero-flow-node:hover,
      .hero-flow-node.is-live {
        transform: translateY(-4px);
        border-color: rgba(24, 215, 255, 0.58);
        box-shadow: 0 0 0 1px rgba(24, 215, 255, 0.16), 0 18px 44px rgba(22, 93, 255, 0.16);
      }

      .hero-flow-node.is-live {
        animation: nodeBreath 3.2s ease-in-out infinite;
      }

      .hero-flow-icon {
        display: flex;
        height: 34px;
        width: 34px;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: rgba(22, 93, 255, 0.1);
        color: #165dff;
        box-shadow: inset 0 0 18px rgba(22, 93, 255, 0.08);
      }

      .hero-flow-node.is-live .hero-flow-icon,
      .hero-flow-node:hover .hero-flow-icon {
        color: #165dff;
        filter: drop-shadow(0 0 8px rgba(22, 93, 255, 0.34));
      }

      .hero-flow-line {
        opacity: 0.88;
        filter: drop-shadow(0 0 8px rgba(24, 215, 255, 0.28));
        stroke-dasharray: 8 14;
        animation: dash 3.2s linear infinite;
      }

      .hero-telemetry {
        border: 1px solid rgba(22, 93, 255, 0.14);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.56);
        padding: 10px;
        backdrop-filter: blur(12px);
      }

      .dark .hero-telemetry {
        border-color: rgba(24, 215, 255, 0.16);
        background: rgba(255, 255, 255, 0.08);
      }

      .hero-title-glow {
        text-shadow:
          0 0 18px rgba(22, 93, 255, 0.34),
          0 0 42px rgba(24, 215, 255, 0.18);
        transition: text-shadow 300ms ease;
      }

      .hero-title-glow:hover {
        text-shadow:
          0 0 24px rgba(22, 93, 255, 0.46),
          0 0 62px rgba(24, 215, 255, 0.24);
      }

      .workflow-demo-shell {
        border: 1px solid var(--glow-line);
        background: rgba(255, 255, 255, 0.58);
        box-shadow: 0 20px 60px rgba(22, 93, 255, 0.12);
        backdrop-filter: blur(16px);
      }

      .demo-stage {
        position: relative;
        width: 1040px;
        height: 360px;
        transform-origin: top left;
      }

      .dark .workflow-demo-shell {
        background: rgba(9, 14, 25, 0.64);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
      }

      .btn,
      .nav-tab,
      .side-item,
      .feature-card,
      .template-card,
      .model-card,
      .workflow-node,
      .table-row {
        transition:
          transform 300ms ease,
          border-color 300ms ease,
          box-shadow 300ms ease,
          background 300ms ease,
          color 300ms ease;
      }

      .btn,
      .nav-tab,
      .side-item {
        white-space: nowrap;
      }

      .btn:active {
        transform: scale(0.98);
      }

      .nav-tab:hover,
      .side-item:hover,
      .feature-card:hover,
      .template-card:hover,
      .model-card:hover,
      .soft-panel:hover,
      .table-row:hover {
        transform: translateY(-4px);
        border-color: rgba(24, 215, 255, 0.42);
        box-shadow: 0 18px 54px rgba(22, 93, 255, 0.13);
      }

      .feature-card:hover .iconfont,
      .template-card:hover .iconfont,
      .model-card:hover .iconfont {
        color: #165dff;
        filter: drop-shadow(0 0 8px rgba(22, 93, 255, 0.32));
      }

      .side-item-active {
        color: #fff !important;
        background: linear-gradient(135deg, #165dff, #0f7dff) !important;
        border: 1px solid rgba(22, 93, 255, 0.34);
        box-shadow: 0 14px 34px rgba(22, 93, 255, 0.22);
      }

      .side-item-active .iconfont,
      .side-item-active span {
        color: currentColor !important;
      }

      .aurora-btn {
        position: relative;
        overflow: hidden;
        border: 1px solid transparent;
        background:
          linear-gradient(#165dff, #165dff) padding-box,
          linear-gradient(90deg, rgba(22, 93, 255, 0.45), rgba(24, 215, 255, 0.95), rgba(22, 93, 255, 0.45)) border-box;
        background-size: 100% 100%, 240% 100%;
        animation: borderFlow 4.8s linear infinite;
      }

      .aurora-btn::before {
        content: "";
        position: absolute;
        inset: -2px;
        opacity: 0;
        background: rgba(24, 215, 255, 0.16);
        filter: blur(12px);
        transition: opacity 300ms ease;
      }

      .aurora-btn:hover::before {
        opacity: 1;
      }

      .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition:
          opacity 620ms ease,
          transform 620ms ease;
      }

      .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
      }

      .stage-grid {
        background:
          radial-gradient(circle at 1px 1px, rgba(22, 93, 255, 0.13) 1px, transparent 0),
          var(--canvas);
        background-size: 28px 28px;
      }

      .hero-flow-stage.stage-grid {
        background:
          radial-gradient(circle at 1px 1px, rgba(22, 93, 255, 0.18) 1px, transparent 0),
          transparent;
        background-size: 30px 30px;
      }

      .workflow-node {
        position: absolute;
        width: 178px;
        min-height: 78px;
        cursor: grab;
        user-select: none;
        touch-action: none;
        overflow: hidden;
      }

      .workflow-node::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(24, 215, 255, 0.52), transparent);
        opacity: 0.42;
      }

      .workflow-node:hover {
        border-color: rgba(24, 215, 255, 0.72);
        box-shadow: 0 0 0 1px rgba(24, 215, 255, 0.18), 0 18px 42px rgba(22, 93, 255, 0.14);
      }

      .workflow-node.is-selected {
        border-color: rgba(22, 93, 255, 0.88);
        box-shadow: 0 0 0 1px rgba(22, 93, 255, 0.28), 0 20px 54px rgba(22, 93, 255, 0.22);
      }

      .workflow-node.is-selected::before {
        opacity: 1;
      }

      .workflow-node.is-complete {
        border-color: rgba(33, 196, 93, 0.34);
        box-shadow: 0 8px 22px rgba(33, 196, 93, 0.08);
      }

      .workflow-node.is-complete::before {
        background: linear-gradient(90deg, transparent, rgba(33, 196, 93, 0.74), transparent);
        opacity: 0.82;
      }

      .workflow-node.is-waiting {
        border-color: rgba(148, 163, 184, 0.28);
        box-shadow: none;
      }

      .workflow-node.is-failed {
        border-color: rgba(239, 68, 68, 0.58);
        box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12), 0 16px 38px rgba(239, 68, 68, 0.12);
      }

      .workflow-node.is-running::after {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: 8px;
        padding: 1px;
        background: linear-gradient(90deg, transparent, rgba(24, 215, 255, 0.42), transparent);
        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        mask-composite: exclude;
        animation: shimmer 1.8s linear infinite;
        pointer-events: none;
      }

      .workflow-node.is-running {
        z-index: 4;
        border-color: rgba(22, 93, 255, 0.9);
        animation: nodeBreath 3.2s ease-in-out infinite;
      }

      .flow-path {
        filter: drop-shadow(0 0 7px rgba(24, 215, 255, 0.34));
      }

      .flow-path.running {
        stroke-dasharray: 10 12;
        animation: dash 1.2s linear infinite;
      }

      .progress-glow {
        background: linear-gradient(90deg, #165dff, #18d7ff, #21c45d);
        background-size: 180% 100%;
        animation: flow 2.4s ease-in-out infinite;
      }

      .workflow-canvas-shell {
        position: relative;
        background:
          radial-gradient(circle at 18% 16%, rgba(24, 215, 255, 0.1), transparent 30%),
          radial-gradient(circle at 82% 70%, rgba(22, 93, 255, 0.08), transparent 34%),
          rgba(255, 255, 255, 0.38);
        box-shadow: inset 0 0 46px rgba(22, 93, 255, 0.08), 0 18px 52px rgba(22, 93, 255, 0.08);
      }

      .workflow-canvas-viewport {
        height: min(72vh, 760px);
        min-height: 620px;
      }

      .workspace-shell--workflow-focus .workflow-canvas-viewport {
        height: calc(100vh - 250px);
        min-height: 620px;
      }

      .workflow-stage-wide {
        min-width: 1600px;
        min-height: 820px;
      }

      .dark .workflow-canvas-shell {
        background:
          radial-gradient(circle at 18% 16%, rgba(24, 215, 255, 0.12), transparent 30%),
          radial-gradient(circle at 82% 70%, rgba(22, 93, 255, 0.12), transparent 34%),
          rgba(9, 14, 25, 0.62);
        box-shadow: inset 0 0 52px rgba(24, 215, 255, 0.07), 0 20px 60px rgba(0, 0, 0, 0.22);
      }

      .canvas-hud,
      .canvas-tools,
      .canvas-minimap {
        position: absolute;
        z-index: 5;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.72);
        box-shadow: 0 14px 34px rgba(22, 93, 255, 0.1);
        backdrop-filter: blur(16px);
      }

      .dark .canvas-hud,
      .dark .canvas-tools,
      .dark .canvas-minimap {
        background: rgba(9, 14, 25, 0.76);
        border-color: rgba(24, 215, 255, 0.16);
      }

      .canvas-hud {
        left: 12px;
        top: 12px;
        width: min(420px, calc(100% - 250px));
        max-width: 420px;
        border-radius: 12px;
        padding: 10px 12px;
        pointer-events: none;
      }

      .canvas-hud .icon-orb.is-running {
        box-shadow: 0 0 0 1px rgba(22, 93, 255, 0.2), 0 0 22px rgba(24, 215, 255, 0.28);
      }

      .canvas-tools {
        right: 12px;
        top: 12px;
        display: flex;
        max-width: min(560px, calc(100% - 460px));
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        border-radius: 12px;
        padding: 6px;
      }

      .canvas-tools button {
        display: inline-flex;
        height: 30px;
        min-width: 30px;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        color: #165dff;
        font-size: 12px;
        font-weight: 700;
      }

      .workflow-mobile-node.is-running {
        border-color: rgba(22, 93, 255, 0.72);
        box-shadow: 0 12px 30px rgba(22, 93, 255, 0.12);
      }

      .workflow-mobile-node.is-complete {
        border-color: rgba(33, 196, 93, 0.3);
      }

      .workflow-mobile-node.is-failed {
        border-color: rgba(239, 68, 68, 0.5);
      }

      @media (max-width: 1279px) {
        .canvas-hud {
          width: min(340px, calc(100% - 360px));
        }

        .canvas-tools {
          max-width: 330px;
        }
      }

      .canvas-minimap {
        right: 12px;
        bottom: 12px;
        width: 190px;
        border-radius: 12px;
        padding: 10px;
      }

      .minimap-stage {
        position: relative;
        height: 96px;
        overflow: hidden;
        border: 1px solid rgba(22, 93, 255, 0.12);
        border-radius: 10px;
        background:
          radial-gradient(circle at 1px 1px, rgba(22, 93, 255, 0.14) 1px, transparent 0),
          rgba(245, 248, 255, 0.58);
        background-size: 14px 14px;
      }

      .dark .minimap-stage {
        border-color: rgba(24, 215, 255, 0.16);
        background:
          radial-gradient(circle at 1px 1px, rgba(24, 215, 255, 0.16) 1px, transparent 0),
          rgba(15, 23, 42, 0.72);
        background-size: 14px 14px;
      }

      .minimap-node {
        position: absolute;
        width: 18px;
        height: 8px;
        border-radius: 999px;
        background: rgba(22, 93, 255, 0.7);
        box-shadow: 0 0 10px rgba(22, 93, 255, 0.22);
      }

      .minimap-node.is-running,
      .minimap-node.is-selected {
        background: #18d7ff;
        box-shadow: 0 0 14px rgba(24, 215, 255, 0.46);
      }

      .mini-chart {
        position: relative;
        overflow: hidden;
        border-radius: 14px;
        border: 1px solid var(--line);
        background:
          linear-gradient(180deg, rgba(22, 93, 255, 0.05), transparent),
          repeating-linear-gradient(0deg, transparent 0 38px, rgba(22, 93, 255, 0.06) 39px 40px);
        padding: 18px;
      }

      .mini-chart span {
        display: block;
        width: 100%;
        min-height: 12px;
        border-radius: 999px 999px 6px 6px;
        background: linear-gradient(180deg, rgba(24, 215, 255, 0.9), rgba(22, 93, 255, 0.72));
        box-shadow: 0 0 20px rgba(22, 93, 255, 0.18);
      }

      .mini-line {
        color: #165dff;
        filter: drop-shadow(0 0 6px rgba(22, 93, 255, 0.18));
      }

      .scrollbar-thin::-webkit-scrollbar {
        width: 8px;
        height: 8px;
      }

      .scrollbar-thin::-webkit-scrollbar-thumb {
        background: rgba(102, 112, 133, 0.28);
        border-radius: 999px;
      }

      .task-drawer {
        animation: drawerIn 260ms ease both;
        color: var(--text);
        background:
          linear-gradient(145deg, rgba(22, 93, 255, 0.07), transparent 32%),
          var(--panel-solid) !important;
        border-color: var(--line) !important;
      }

      @keyframes workspaceEnter {
        from {
          opacity: 0;
          transform: translateY(8px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      @keyframes shimmer {
        from {
          transform: translateX(-42%);
        }
        to {
          transform: translateX(42%);
        }
      }

      @keyframes drawerIn {
        from {
          opacity: 0;
          transform: translateX(24px);
        }
        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      @keyframes dash {
        to {
          stroke-dashoffset: -22;
        }
      }

      @keyframes flow {
        0%,
        100% {
          background-position: 0 50%;
        }
        50% {
          background-position: 100% 50%;
        }
      }

      @keyframes borderFlow {
        to {
          background-position: 0 0, 240% 0;
        }
      }

      @keyframes scanSweep {
        0%,
        22% {
          transform: translateX(-115%);
        }
        58%,
        100% {
          transform: translateX(115%);
        }
      }

      @keyframes heroNodeCycle {
        0%,
        100%,
        32% {
          transform: translateY(0);
          border-color: rgba(22, 93, 255, 0.18);
          box-shadow: 0 16px 36px rgba(22, 93, 255, 0.1);
        }
        9%,
        20% {
          transform: translateY(-4px);
          border-color: rgba(24, 215, 255, 0.58);
          box-shadow: 0 0 0 1px rgba(24, 215, 255, 0.16), 0 18px 44px rgba(22, 93, 255, 0.16);
        }
      }

      @keyframes nodeBreath {
        0%,
        100% {
          box-shadow: 0 0 0 1px rgba(24, 215, 255, 0.16), 0 14px 34px rgba(22, 93, 255, 0.14);
        }
        50% {
          box-shadow: 0 0 0 1px rgba(24, 215, 255, 0.42), 0 20px 58px rgba(22, 93, 255, 0.24);
        }
      }

      .gateway-test-overlay {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
        padding: 12px;
        background: rgba(2, 6, 23, 0.62);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        overscroll-behavior: contain;
      }

      .gateway-test-dialog {
        position: relative;
        width: min(900px, calc(100vw - 24px));
        max-height: 92vh;
        margin: auto;
        overflow-y: auto;
        padding: 20px;
        border: 1px solid rgba(22, 93, 255, 0.24);
        border-radius: 8px;
        background: rgba(247, 249, 255, 0.98);
        box-shadow: 0 24px 72px rgba(20, 48, 104, 0.28);
        isolation: isolate;
      }

      .gateway-test-dialog-image {
        width: min(860px, calc(100vw - 24px));
      }

      .gateway-test-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
        gap: 16px;
      }

      .gateway-test-layout-image {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
      }

      .dark .gateway-test-dialog {
        border-color: rgba(24, 215, 255, 0.3);
        background: rgba(8, 12, 26, 0.98);
        box-shadow: 0 24px 72px rgba(0, 0, 0, 0.48);
      }

      @media (max-width: 900px) {
        .gateway-test-dialog,
        .gateway-test-dialog-image {
          width: min(720px, calc(100vw - 24px));
        }

        .gateway-test-layout,
        .gateway-test-layout-image {
          grid-template-columns: minmax(0, 1fr);
        }
      }

      @media (prefers-reduced-motion: reduce) {
        html {
          scroll-behavior: auto;
        }

        *,
        *::before,
        *::after {
          animation-duration: 0.001ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.001ms !important;
        }

        .reveal {
          opacity: 1;
          transform: none;
        }

        .particle-canvas {
          display: none;
        }
      }

      @media (max-width: 767px) {
        .app-root::before {
          height: 280px;
          opacity: 0.7;
        }

        .hero-media,
        .hero-media > div {
          min-height: min(620px, calc(100svh - 132px));
        }

        .hero-media > div {
          padding-top: 42px;
          padding-bottom: 42px;
        }

        .workspace-content .glass,
        .workspace-content .soft-panel {
          box-shadow: 0 10px 28px rgba(25, 58, 112, 0.08);
        }

        .aurora-btn {
          animation-duration: 7.2s;
        }

        .flow-path.running {
          animation-duration: 2.8s;
        }

        .workflow-node.is-running {
          animation-duration: 4.2s;
        }

        .workflow-demo-shell {
          height: 124px !important;
        }

        .demo-stage {
          transform: scale(0.34);
        }
      }

      @media (min-width: 431px) and (max-width: 767px) {
        .workflow-demo-shell {
          height: 176px !important;
        }

        .demo-stage {
          transform: scale(0.49);
        }
      }
