/* ==========================================
   全局核心样式与动效表 (style.css)
   为 "技控密码AI极速版" 提供所有高阶视觉特效
========================================== */

/* 1. 基础重置、设计变量与响应式应用骨架 */
:root {
    --color-brand: #2563eb;
    --color-brand-strong: #1d4ed8;
    --color-cyan: #0891b2;
    --color-ink: #0f172a;
    --color-copy: #334155;
    --color-muted: #64748b;
    --color-line: #dbe3ee;
    --color-surface: #ffffff;
    --color-canvas: #f4f7fb;
    --radius-control: 8px;
    --radius-panel: 10px;
    --shadow-panel: 0 18px 50px -34px rgba(15, 23, 42, 0.35);
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    background: var(--color-canvas);
    color: var(--color-copy);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

.app-shell {
    max-width: 100%;
    box-shadow: none;
    background: var(--color-surface);
}

.position-grid,
.responsive-card-grid,
.bem-grid,
.solution-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}

.responsive-grid-full {
    grid-column: 1 / -1;
}

#report-container {
    width: min(100%, 760px);
    margin-inline: auto;
}

input,
textarea,
button {
    min-width: 0;
}

button,
input,
textarea {
    border-radius: var(--radius-control) !important;
}

button {
    min-height: 44px;
}

.icon-button {
    min-height: 0;
    border-radius: 50% !important;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.24);
    outline-offset: 2px;
}

.app-shell [class*="tracking-"] {
    letter-spacing: 0 !important;
}

.app-shell .text-\[9px\],
.app-shell .text-\[10px\] {
    font-size: 12px !important;
}

.app-shell .text-\[11px\] {
    font-size: 13px !important;
}

.app-shell .rounded-2xl,
.app-shell .rounded-3xl {
    border-radius: var(--radius-panel) !important;
}

.app-shell .shadow-2xl,
.app-shell .shadow-xl,
.app-shell .shadow-lg {
    box-shadow: var(--shadow-panel) !important;
}

textarea {
    overflow-wrap: anywhere;
}

.voice-btn {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    line-height: 1;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.voice-btn svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.voice-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.voice-btn:active {
    transform: scale(0.94);
}

.voice-btn-dark {
    border-color: #475569;
    background: #1e293b;
}

.voice-btn-dark:hover {
    border-color: #38bdf8;
    background: #0f172a;
}

.voice-btn.is-listening {
    color: #ffffff;
    border-color: #ef4444;
    background: #ef4444;
    animation: voice-listening 1.1s ease-in-out infinite;
}

.app-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-line);
}

.app-header img {
    width: clamp(128px, 16vw, 160px);
    height: auto !important;
    margin-top: 0 !important;
    opacity: 1 !important;
}

.app-header .tracking-tighter.italic > span:first-child,
.app-header .tracking-tighter.italic > span:last-child {
    font-size: 24px !important;
}

.app-header .tracking-tighter.italic > span:nth-child(2) {
    font-size: 11px !important;
}

.app-header .tracking-tighter.italic + p {
    margin-top: 0.4rem;
    font-size: 12px !important;
    font-weight: 600;
}

.workflow-stepper {
    position: relative;
    isolation: isolate;
}

.workflow-stepper > svg {
    display: none;
}

.workflow-stepper::before {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    left: 12px;
    height: 1px;
    background: #dbe3ee;
    z-index: -1;
}

.workflow-stepper > div {
    width: 25% !important;
}

.workflow-stepper > div > div:first-child {
    width: 24px !important;
    height: 24px !important;
    border: 3px solid #fff;
}

.workflow-stepper > div > span {
    padding-inline: 0.25rem;
    background: #fff;
    font-size: 11px !important;
}

.context-tags {
    align-items: stretch;
}

.context-tags > span {
    max-width: 100% !important;
    min-width: 0;
    height: auto;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    line-height: 1.45;
    text-align: left;
}

/* Stage 1: 行业岗位雷达扫描舱 */
.position-scanner {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    padding: 1.25rem;
    border: 1px solid #1e3a5f;
    border-radius: var(--radius-panel);
    background: #07111f;
    color: #dbeafe;
    box-shadow: 0 24px 60px -36px rgba(2, 132, 199, 0.7);
    isolation: isolate;
}

.position-scanner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, rgba(14, 165, 233, 0.08), transparent 42%, rgba(37, 99, 235, 0.08));
}

.position-scanner-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.18) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
    mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.position-scanner-head,
.position-scanner-body,
.position-scan-progress-head,
.position-radar-telemetry {
    display: flex;
}

.position-scanner-head {
    position: relative;
    z-index: 2;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(71, 85, 105, 0.55);
}

.position-scanner-kicker {
    display: block;
    margin-bottom: 0.25rem;
    color: #38bdf8;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    font-weight: 800;
}

.position-scanner-head h3 {
    color: #f8fafc;
    font-size: 17px;
    font-weight: 800;
}

.position-scanner-live {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.4rem;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 700;
}

.position-scanner-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 12px #22d3ee;
    animation: position-live-pulse 1.3s ease-in-out infinite;
}

.position-scanner-body {
    position: relative;
    z-index: 2;
    align-items: center;
    gap: 1.4rem;
    padding-top: 1.25rem;
}

.position-radar-wrap {
    flex: 1 1 56%;
    min-width: 0;
}

.position-radar-body {
    display: block;
}

.position-radar-stage {
    position: relative;
    width: 100%;
    height: 415px;
}

.position-radar {
    position: relative;
    width: min(100%, 340px);
    aspect-ratio: 1;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 19%, rgba(56, 189, 248, 0.22) 20%, transparent 21%, transparent 39%, rgba(56, 189, 248, 0.2) 40%, transparent 41%, transparent 59%, rgba(56, 189, 248, 0.18) 60%, transparent 61%),
        radial-gradient(circle at center, rgba(14, 165, 233, 0.12), rgba(2, 6, 23, 0.5) 72%);
    box-shadow: inset 0 0 45px rgba(14, 165, 233, 0.08), 0 0 30px rgba(14, 165, 233, 0.08);
}

.position-radar-cross {
    position: absolute;
    z-index: 0;
    background: rgba(56, 189, 248, 0.18);
}

.position-radar-cross-x {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
}

.position-radar-cross-y {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
}

.position-radar-sweep {
    position: absolute;
    inset: -1px;
    z-index: 1;
    border-radius: 50%;
    background: conic-gradient(from 10deg, transparent 0 74%, rgba(34, 211, 238, 0.05) 82%, rgba(34, 211, 238, 0.42) 99%, transparent 100%);
    animation: position-radar-spin 2.8s linear infinite;
}

.position-radar-sweep::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48%;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.15), #67e8f9);
    box-shadow: 0 0 9px #22d3ee;
    transform-origin: left center;
}

.position-radar-core {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    width: 88px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0.45rem;
    border: 1px solid rgba(56, 189, 248, 0.58);
    border-radius: 6px;
    background: rgba(7, 17, 31, 0.92);
    box-shadow: 0 0 24px rgba(14, 165, 233, 0.22);
    text-align: center;
    transform: translate(-50%, -50%);
}

.position-radar-core strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #f0f9ff;
    font-size: 11px;
    line-height: 1.25;
}

.position-radar-core span {
    margin-top: 0.15rem;
    color: #38bdf8;
    font-size: 8px;
}

.position-radar-node {
    position: absolute;
    z-index: 4;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
    transition: opacity 320ms ease, transform 320ms ease;
}

.position-radar-node i {
    display: block;
    width: 8px;
    height: 8px;
    margin: auto;
    border: 2px solid #0ea5e9;
    border-radius: 50%;
    background: #082f49;
}

.position-radar-node span {
    display: block;
    margin-top: 0.2rem;
    padding: 0.1rem 0.25rem;
    color: #bae6fd;
    background: rgba(7, 17, 31, 0.78);
    font-size: 8px;
    white-space: nowrap;
}

.position-radar-node.is-detected {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.position-radar-node.is-detected i {
    background: #67e8f9;
    border-color: #cffafe;
    box-shadow: 0 0 13px #22d3ee;
}

.position-radar-node.is-locked span {
    color: #ecfeff;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 3px;
    background: rgba(8, 47, 73, 0.92);
}

.position-radar-node.is-hidden,
.industry-map-node.is-hidden {
    display: none;
}

.node-1 { top: 20%; left: 34%; }
.node-2 { top: 29%; left: 70%; }
.node-3 { top: 47%; left: 20%; }
.node-4 { top: 71%; left: 31%; }
.node-5 { top: 66%; left: 76%; }
.node-6 { top: 83%; left: 56%; }
.node-7 { top: 17%; left: 55%; }
.node-8 { top: 44%; left: 83%; }
.node-9 { top: 34%; left: 10%; }
.node-10 { top: 82%; left: 82%; }

.position-radar-telemetry {
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.7rem;
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 8px;
}

.position-radar-telemetry b {
    color: #67e8f9;
}

.position-scan-console {
    flex: 1 1 44%;
    min-width: 220px;
}

.position-scan-status > span,
.position-scan-progress-head span {
    display: block;
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
}

.position-scan-status strong {
    display: block;
    min-height: 42px;
    margin-top: 0.3rem;
    color: #e0f2fe;
    font-size: 13px;
    line-height: 1.45;
}

.position-scan-steps {
    display: grid;
    gap: 0.45rem;
    margin: 0.9rem 0 1rem;
}

.position-scan-steps > div {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    min-height: 32px;
    padding: 0.42rem 0.55rem;
    border: 1px solid rgba(51, 65, 85, 0.75);
    border-radius: 5px;
    color: #64748b;
    background: rgba(15, 23, 42, 0.58);
    font-size: 10px;
    transition: color 250ms ease, border-color 250ms ease, background-color 250ms ease;
}

.position-scan-steps i {
    width: 7px;
    height: 7px;
    border: 1px solid #475569;
    border-radius: 50%;
}

.position-scan-steps b {
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 8px;
}

.position-scan-steps .is-active {
    color: #e0f2fe;
    border-color: rgba(14, 165, 233, 0.65);
    background: rgba(14, 165, 233, 0.09);
}

.position-scan-steps .is-active i {
    border-color: #67e8f9;
    background: #22d3ee;
    box-shadow: 0 0 10px #22d3ee;
    animation: position-live-pulse 1.2s ease-in-out infinite;
}

.position-scan-steps .is-active b,
.position-scan-steps .is-complete b {
    color: #22d3ee;
}

.position-scan-steps .is-complete {
    color: #94a3b8;
    border-color: rgba(34, 211, 238, 0.2);
}

.position-scan-steps .is-complete i {
    border-color: #22d3ee;
    background: #164e63;
}

.position-scan-progress-head {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.position-scan-progress-head b {
    color: #67e8f9;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
}

.position-scan-progress {
    height: 4px;
    overflow: hidden;
    border-radius: 2px;
    background: #1e293b;
}

.position-scan-progress i {
    display: block;
    width: 8%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #22d3ee);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
    transition: width 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.position-scanner.is-complete {
    border-color: rgba(34, 211, 238, 0.75);
}

.position-scanner.is-complete .position-scanner-live {
    color: #a7f3d0;
}

/* Stage 3: BEM 七段式解码芯片 */
.bem-chip-scanner {
    min-height: 470px;
}

.bem-chip-stage {
    padding-top: 1.25rem;
}

.bem-chip-core {
    display: flex;
    width: 104px;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0 auto;
    border: 1px solid #22d3ee;
    border-radius: 6px;
    background: rgba(7, 17, 31, 0.94);
    box-shadow: 0 0 28px rgba(14, 165, 233, 0.24), inset 0 0 18px rgba(34, 211, 238, 0.08);
}

.bem-chip-core strong {
    color: #67e8f9;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 19px;
    letter-spacing: 0.08em;
}

.bem-chip-core span {
    margin-top: 0.15rem;
    color: #94a3b8;
    font-size: 8px;
}

.bem-chip-board {
    position: relative;
    margin-top: 1rem;
    padding: 1.1rem 0.85rem;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 7px;
    background:
        linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(14, 165, 233, 0.14), rgba(2, 6, 23, 0.28) 70%);
    background-size: 22px 22px, 22px 22px, auto;
}

.bem-chip-bus {
    position: absolute;
    top: 50%;
    right: 2%;
    left: 2%;
    height: 1px;
    background: rgba(34, 211, 238, 0.38);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.35);
}

.bem-chip-bus i {
    position: absolute;
    top: -2px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a5f3fc;
    box-shadow: 0 0 10px #22d3ee;
    animation: bem-chip-packet 2.4s linear infinite;
}

.bem-chip-module-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
}

.bem-chip-module {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 98px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0.65rem 0.35rem;
    border: 1px solid rgba(71, 85, 105, 0.86);
    border-radius: 5px;
    color: #64748b;
    background: rgba(8, 20, 37, 0.9);
    text-align: center;
    transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.bem-chip-module:not(:first-child)::before {
    position: absolute;
    top: 50%;
    left: -0.45rem;
    width: 0.45rem;
    height: 1px;
    background: rgba(34, 211, 238, 0.38);
    content: "";
}

.bem-chip-module-topline {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.2rem;
}

.bem-chip-code {
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 8px;
}

.bem-chip-light {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border: 1px solid #475569;
    border-radius: 50%;
    background: #0f2438;
}

.bem-chip-module strong {
    display: block;
    margin: 0.6rem 0 0.35rem;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.bem-chip-module-status {
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 8px;
}

.bem-chip-module.is-active {
    border-color: rgba(34, 211, 238, 0.9);
    color: #e0f2fe;
    background: rgba(8, 47, 73, 0.86);
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.18), inset 0 0 18px rgba(34, 211, 238, 0.08);
}

.bem-chip-module.is-active::after {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(90deg, transparent, #67e8f9, transparent);
    content: "";
    animation: bem-chip-scan-line 1.2s linear infinite;
}

.bem-chip-module.is-active .bem-chip-light {
    border-color: #cffafe;
    background: #22d3ee;
    box-shadow: 0 0 10px #22d3ee;
    animation: position-live-pulse 1.2s ease-in-out infinite;
}

.bem-chip-module.is-active strong,
.bem-chip-module.is-active .bem-chip-module-status {
    color: #67e8f9;
}

.bem-chip-module.is-complete {
    border-color: rgba(34, 211, 238, 0.42);
    background: rgba(8, 47, 73, 0.56);
}

.bem-chip-module.is-complete .bem-chip-light {
    border-color: #22d3ee;
    background: #164e63;
}

.bem-chip-module.is-complete strong,
.bem-chip-module.is-complete .bem-chip-module-status {
    color: #bae6fd;
}

.bem-chip-hud {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr);
    align-items: end;
    gap: 1.25rem;
    margin-top: 0.85rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(14, 165, 233, 0.42);
    border-radius: 6px;
    background: rgba(7, 17, 31, 0.9);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.34);
}

@keyframes bem-chip-packet {
    from { left: 0; }
    to { left: calc(100% - 5px); }
}

@keyframes bem-chip-scan-line {
    from { opacity: 0.35; transform: translateX(-45%); }
    to { opacity: 1; transform: translateX(45%); }
}

/* Stage 4: 技控方案神经网络路径 */
.solution-scanner {
    min-height: 470px;
}

.solution-network-stage {
    padding-top: 1.25rem;
}

.solution-network-flow {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.1rem 0.25rem;
}

.solution-network-flow-step {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.6rem;
    border: 1px solid rgba(71, 85, 105, 0.76);
    border-radius: 5px;
    background: rgba(8, 20, 37, 0.72);
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.solution-network-flow-step.is-active {
    border-color: rgba(34, 211, 238, 0.82);
    background: rgba(8, 47, 73, 0.84);
    color: #a5f3fc;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.14), inset 0 0 14px rgba(34, 211, 238, 0.08);
}

.solution-network-flow-step.is-complete {
    border-color: rgba(34, 211, 238, 0.44);
    color: #67e8f9;
}

.solution-network-flow-arrow {
    position: relative;
    display: block;
    width: 2rem;
    height: 1px;
    background: rgba(71, 85, 105, 0.8);
    transition: background-color 220ms ease, box-shadow 220ms ease;
}

.solution-network-flow-arrow::after {
    position: absolute;
    top: -0.22rem;
    right: 0;
    width: 0.45rem;
    height: 0.45rem;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    color: #64748b;
    content: "";
    transform: rotate(45deg);
    transition: color 220ms ease;
}

.solution-network-flow-arrow.is-active {
    background: #22d3ee;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}

.solution-network-flow-arrow.is-active::after {
    color: #67e8f9;
}

.solution-network-flow-arrow.is-active::before {
    position: absolute;
    top: -0.15rem;
    left: 0;
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background: #cffafe;
    box-shadow: 0 0 10px #22d3ee;
    content: "";
    animation: solution-flow-packet 1.1s ease-in-out infinite;
}

@keyframes solution-flow-packet {
    0% { opacity: 0; transform: translateX(0); }
    18% { opacity: 1; }
    82% { opacity: 1; }
    100% { opacity: 0; transform: translateX(1.65rem); }
}

.solution-network-board {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 7px;
    background:
        linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(14, 165, 233, 0.14), rgba(2, 6, 23, 0.28) 70%);
    background-size: 22px 22px, 22px 22px, auto;
}

.solution-network-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr) minmax(150px, 0.8fr) minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.1rem;
}

.solution-network-column {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.6rem;
}

.solution-network-source-column {
    justify-content: center;
    padding-top: 0;
}

.solution-network-source,
.solution-network-bem-node,
.solution-network-fusion,
.solution-network-output {
    position: relative;
    border: 1px solid rgba(71, 85, 105, 0.86);
    border-radius: 5px;
    background: rgba(8, 20, 37, 0.9);
    transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.solution-network-source {
    display: flex;
    min-height: 152px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 0.9rem;
}

.solution-network-source > span,
.solution-network-output > span {
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 8px;
    font-weight: 800;
}

.solution-network-source strong {
    display: block;
    margin-top: 0.5rem;
    color: #e0f2fe;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.solution-network-source i,
.solution-network-output i,
.solution-network-bem-node em {
    margin-top: 0.5rem;
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 8px;
    font-style: normal;
}

.solution-network-fusion {
    display: flex;
    min-height: 126px;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    text-align: center;
    flex-direction: column;
    gap: 0.3rem;
}

.solution-network-fusion-core {
    width: 20px;
    height: 20px;
    border: 1px solid #155e75;
    border-radius: 50%;
    background: #082f49;
    box-shadow: inset 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.solution-network-fusion > span {
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 8px;
    font-weight: 800;
}

.solution-network-fusion strong {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.35;
}

.solution-network-fusion em {
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 8px;
    font-style: normal;
}

.solution-network-bem-list,
.solution-network-output-list {
    display: grid;
    gap: 0.55rem;
}

.solution-network-bem-node {
    display: grid;
    grid-template-columns: 7px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.25rem 0.45rem;
    min-height: 57px;
    padding: 0.55rem 0.65rem;
}

.solution-network-node-light {
    grid-row: 1 / span 2;
    width: 6px;
    height: 6px;
    border: 1px solid #475569;
    border-radius: 50%;
    background: #0f2438;
}

.solution-network-bem-node > span {
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 8px;
}

.solution-network-bem-node strong {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.solution-network-bem-node em {
    grid-row: 1 / span 2;
    margin-top: 0;
}

.solution-network-output {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.25rem 0.5rem;
    min-height: 57px;
    padding: 0.6rem 0.7rem;
}

.solution-network-output strong {
    color: #94a3b8;
    font-size: 12px;
}

.solution-network-output i {
    grid-column: 1 / -1;
    margin-top: 0;
}

.solution-network-source.is-active,
.solution-network-bem-node.is-active,
.solution-network-fusion.is-active,
.solution-network-output.is-active {
    border-color: rgba(34, 211, 238, 0.9);
    background: rgba(8, 47, 73, 0.86);
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.16), inset 0 0 18px rgba(34, 211, 238, 0.08);
}

.solution-network-source.is-active strong,
.solution-network-source.is-active i,
.solution-network-bem-node.is-active strong,
.solution-network-bem-node.is-active em,
.solution-network-fusion.is-active > span,
.solution-network-fusion.is-active strong,
.solution-network-fusion.is-active em,
.solution-network-output.is-active strong,
.solution-network-output.is-active i {
    color: #67e8f9;
}

.solution-network-bem-node.is-active .solution-network-node-light {
    border-color: #cffafe;
    background: #22d3ee;
    box-shadow: 0 0 10px #22d3ee;
    animation: position-live-pulse 1.2s ease-in-out infinite;
}

.solution-network-fusion.is-active .solution-network-fusion-core {
    border-color: #cffafe;
    background: #22d3ee;
    box-shadow: 0 0 16px #22d3ee, inset 0 0 0 4px rgba(207, 250, 254, 0.25);
    animation: position-live-pulse 1.2s ease-in-out infinite;
}

.solution-network-source.is-complete,
.solution-network-bem-node.is-complete,
.solution-network-fusion.is-complete,
.solution-network-output.is-complete {
    border-color: rgba(34, 211, 238, 0.42);
    background: rgba(8, 47, 73, 0.56);
}

.solution-network-source.is-complete i,
.solution-network-bem-node.is-complete em,
.solution-network-fusion.is-complete em,
.solution-network-output.is-complete i {
    color: #bae6fd;
}

.solution-network-hud {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr);
    align-items: end;
    gap: 1.25rem;
    margin-top: 0.85rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(14, 165, 233, 0.42);
    border-radius: 6px;
    background: rgba(7, 17, 31, 0.9);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.34);
}

/* Stage 1: 选择行业前的产业图谱扫描 */
.industry-map-scanner {
    min-height: 430px;
}

.industry-scanner-body {
    display: block;
}

.industry-map-network {
    position: relative;
    width: 100%;
    height: 340px;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 7px;
    background:
        linear-gradient(rgba(56, 189, 248, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.07) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(14, 165, 233, 0.14), rgba(2, 6, 23, 0.2) 62%);
    background-size: 24px 24px, 24px 24px, auto;
}

.industry-map-network::before,
.industry-map-network::after {
    content: "";
    position: absolute;
    z-index: 0;
    background: rgba(34, 211, 238, 0.22);
}

.industry-map-network::before {
    top: 50%;
    left: 8%;
    width: 84%;
    height: 1px;
}

.industry-map-network::after {
    top: 10%;
    left: 50%;
    width: 1px;
    height: 80%;
}

.industry-map-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.industry-map-orbit.orbit-a {
    width: 58%;
    aspect-ratio: 1.7;
}

.industry-map-orbit.orbit-b {
    width: 88%;
    aspect-ratio: 2.3;
    transform: translate(-50%, -50%) rotate(-18deg);
}

.industry-map-core {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    display: flex;
    width: 88px;
    height: 62px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid #0ea5e9;
    border-radius: 6px;
    background: rgba(7, 17, 31, 0.94);
    box-shadow: 0 0 28px rgba(14, 165, 233, 0.24);
    transform: translate(-50%, -50%);
}

.industry-map-core b {
    color: #67e8f9;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 20px;
}

.industry-map-core span {
    color: #94a3b8;
    font-size: 8px;
}

.industry-map-node {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.28rem;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
    transition: opacity 320ms ease, transform 320ms ease;
}

.industry-map-node i {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #0e7490;
}

.industry-map-node span {
    padding: 0.2rem 0.35rem;
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 3px;
    color: #64748b;
    background: rgba(7, 17, 31, 0.9);
    font-size: 8px;
    white-space: nowrap;
}

.industry-map-node.is-detected {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.industry-map-node.is-detected i {
    background: #67e8f9;
    box-shadow: 0 0 11px #22d3ee;
}

.industry-map-node.is-detected span {
    color: #bae6fd;
    border-color: rgba(14, 165, 233, 0.45);
}

.industry-map-node.is-locked span {
    color: #ecfeff;
    border-color: rgba(34, 211, 238, 0.72);
    background: rgba(8, 47, 73, 0.92);
}

.industry-map-hud {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr);
    align-items: end;
    gap: 1.25rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(14, 165, 233, 0.42);
    border-radius: 6px;
    background: rgba(7, 17, 31, 0.9);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.34);
    backdrop-filter: blur(8px);
}

.industry-map-command span {
    display: block;
    margin-bottom: 0.22rem;
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
}

.industry-map-command strong {
    display: block;
    color: #e0f2fe;
    font-size: 13px;
    line-height: 1.35;
}

.industry-map-progress-block {
    min-width: 0;
}

.position-radar-hud {
    right: 0;
    bottom: 0;
    left: 0;
}

.industry-node-1 { top: 16%; left: 13%; }
.industry-node-2 { top: 13%; left: 35%; }
.industry-node-3 { top: 16%; left: 62%; }
.industry-node-4 { top: 28%; left: 85%; }
.industry-node-5 { top: 45%; left: 12%; }
.industry-node-6 { top: 44%; left: 86%; }
.industry-node-7 { top: 64%; left: 17%; }
.industry-node-8 { top: 63%; left: 39%; }
.industry-node-9 { top: 62%; left: 64%; }
.industry-node-10 { top: 59%; left: 86%; }
.industry-node-11 { top: 8%; left: 6%; }
.industry-node-12 { top: 8%; left: 50%; }
.industry-node-13 { top: 8%; left: 92%; }
.industry-node-14 { top: 31%; left: 27%; }
.industry-node-15 { top: 31%; left: 74%; }
.industry-node-16 { top: 44%; left: 3%; }
.industry-node-17 { top: 44%; left: 97%; }
.industry-node-18 { top: 78%; left: 8%; }
.industry-node-19 { top: 78%; left: 50%; }
.industry-node-20 { top: 78%; left: 92%; }

.industry-map-packet {
    position: absolute;
    z-index: 2;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a5f3fc;
    box-shadow: 0 0 10px #22d3ee;
}

.industry-map-packet.packet-a {
    top: 50%;
    left: 8%;
    animation: industry-packet-x 2.4s linear infinite;
}

.industry-map-packet.packet-b {
    top: 10%;
    left: 50%;
    animation: industry-packet-y 2.8s linear infinite 0.5s;
}

@keyframes position-radar-spin {
    to { transform: rotate(360deg); }
}

@keyframes position-live-pulse {
    0%, 100% { opacity: 0.45; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.15); }
}

@keyframes industry-packet-x {
    from { transform: translateX(0); opacity: 0; }
    12%, 88% { opacity: 1; }
    to { transform: translateX(275px); opacity: 0; }
}

@keyframes industry-packet-y {
    from { transform: translateY(0); opacity: 0; }
    12%, 88% { opacity: 1; }
    to { transform: translateY(210px); opacity: 0; }
}

.error-state {
    padding: 2rem;
    border: 1px solid #fecaca;
    border-radius: var(--radius-panel);
    background: #fff7f7;
    text-align: center;
}

.error-state-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    color: #b91c1c;
    background: #fee2e2;
}

.error-state h3 {
    color: #991b1b;
    font-size: 16px;
    font-weight: 700;
}

.error-state p {
    margin-top: 0.4rem;
    color: #64748b;
    font-size: 13px;
}

.error-state button {
    margin-top: 1rem;
    padding: 0 1.25rem;
    color: #fff;
    background: var(--color-brand);
    font-size: 13px;
    font-weight: 700;
}

.bem-panel {
    overflow: hidden;
    border: 1px solid #22314a;
    border-radius: var(--radius-panel);
    background: #0f172a;
    box-shadow: var(--shadow-panel);
}

.bem-panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #26364f;
}

.bem-eyebrow {
    color: #22d3ee;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 700;
}

.bem-panel-heading h3 {
    margin-top: 0.25rem;
    color: #fff;
    font-size: 18px;
    font-weight: 750;
}

.bem-panel-heading > p {
    color: #94a3b8;
    font-size: 12px;
}

.bem-table-head,
.bem-row {
    display: grid;
    grid-template-columns: 54px 104px minmax(180px, 0.95fr) minmax(230px, 1.25fr) 34px;
    gap: 1rem;
    align-items: center;
}

.bem-table-head {
    padding: 0.7rem 1.25rem;
    color: #64748b;
    background: #111c30;
    font-size: 11px;
    font-weight: 700;
}

.bem-row {
    width: 100%;
    min-height: 78px;
    padding: 0.9rem 1.25rem;
    border: 0 !important;
    border-top: 1px solid #22314a !important;
    border-radius: 0 !important;
    color: #cbd5e1;
    background: #0f172a;
    text-align: left;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.bem-row:hover {
    background: #152239;
}

.bem-row.is-selected {
    background: #0c2940;
    box-shadow: inset 3px 0 #22d3ee;
}

.bem-code {
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}

.bem-dimension {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 750;
}

.bem-question,
.bem-example {
    color: #aebbd0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
}

.bem-example {
    color: #dbeafe;
    font-size: 14px;
    font-weight: 700;
}

.bem-question small,
.bem-example small {
    display: none;
}

.bem-selector {
    display: flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid #64748b;
    border-radius: 50%;
}

.bem-selector i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
}

.bem-row.is-selected .bem-selector {
    border-color: #22d3ee;
}

.bem-row.is-selected .bem-selector i {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: transparent;
}

.bem-row.is-selected .bem-selector i::after {
    content: "✓";
    color: #22d3ee;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.solution-comparison {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-panel);
    background: #fff;
    box-shadow: var(--shadow-panel);
}

.solution-compare-grid {
    display: grid;
    grid-template-columns: 116px repeat(3, minmax(0, 1fr));
}

.solution-compare-grid > * {
    min-width: 0;
    padding: 0.9rem 1rem;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.solution-compare-grid > :nth-child(4n) {
    border-right: 0;
}

.compare-corner,
.compare-label {
    color: #64748b;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
}

.compare-header {
    background: #f8fafc;
}

.compare-index {
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
}

.compare-header h3 {
    margin-top: 0.35rem;
    color: #0f172a;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
}

.compare-value {
    color: #334155;
    font-size: 13px;
    line-height: 1.6;
}

.compare-value.is-metric {
    color: #1d4ed8;
    font-weight: 700;
}

.compare-action {
    display: flex;
    justify-content: center;
    background: #fff;
}

.compare-action button {
    width: 100%;
    color: #fff;
    background: #2563eb;
    font-size: 12px;
    font-weight: 700;
}

.solution-mobile-list {
    display: none;
}

.solution-mobile-card {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-panel);
    background: #fff;
}

.solution-mobile-card > div {
    padding: 1rem;
}

.solution-mobile-card h3 {
    color: #0f172a;
    font-size: 15px;
    font-weight: 750;
}

.solution-mobile-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-block: 0.85rem;
}

.solution-mobile-meta span {
    padding: 0.65rem;
    border-radius: 6px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
}

.solution-mobile-card button {
    width: 100%;
    border-radius: 0 !important;
    color: #fff;
    background: #2563eb;
    font-size: 13px;
    font-weight: 700;
}

.task-process-panel {
    overflow: hidden;
    border: 1px solid #26364f;
    border-radius: var(--radius-panel);
    background: #0f172a;
    box-shadow: var(--shadow-panel);
}

.task-process-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid #26364f;
}

.task-process-step {
    color: #60a5fa;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 800;
}

.task-process-step.is-scoring {
    color: #22d3ee;
}

.task-process-heading h3 {
    margin-top: 0.25rem;
    color: #f8fafc;
    font-size: 17px;
    font-weight: 750;
}

.task-process-heading > span {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.task-discovery-list,
.task-scoring-list {
    padding: 0.5rem 1.25rem 1rem;
}

.task-discovery-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    min-height: 52px;
    padding: 0.65rem 0.25rem;
    border-bottom: 1px solid #22314a;
    opacity: 0.18;
    transform: translateY(8px);
    transition: opacity 220ms ease, transform 220ms ease, background-color 220ms ease;
}

.task-discovery-row.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.task-discovery-index {
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
}

.task-discovery-row strong {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 650;
}

.task-discovery-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #67e8f9;
    font-size: 11px;
    font-weight: 700;
}

.task-discovery-status svg {
    width: 14px;
    height: 14px;
}

.task-process-awaiting {
    min-height: 118px;
}

.task-awaiting-state {
    color: #67e8f9 !important;
}

.task-awaiting-track {
    height: 3px;
    margin: 0.2rem 1.25rem 1.25rem;
    overflow: hidden;
    border-radius: 2px;
    background: #1e293b;
}

.task-awaiting-track i {
    display: block;
    width: 34%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, #38bdf8, #22d3ee, transparent);
    animation: task-awaiting-scan 1.25s ease-in-out infinite;
}

@keyframes task-awaiting-scan {
    from { transform: translateX(-110%); }
    to { transform: translateX(310%); }
}

/* Stage 2: 工作画布与提升度/贡献度二维定位 */
.workflow-awaiting-panel,
.workflow-canvas-panel,
.workflow-matrix-panel {
    overflow: hidden;
    border: 1px solid #26364f;
    border-radius: var(--radius-panel);
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: var(--shadow-panel);
}

.workflow-diagnostic-panel {
    overflow: hidden;
    border: 1px solid #26364f;
    border-radius: var(--radius-panel);
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: var(--shadow-panel);
}

.pain-point-only-panel {
    overflow: hidden;
    border: 1px solid #26364f;
    border-radius: var(--radius-panel);
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: var(--shadow-panel);
}

.pain-point-only-heading {
    position: relative;
    padding: 1.35rem;
    border-bottom: 1px solid #26364f;
}

.pain-point-only-heading > span {
    color: #60a5fa;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 800;
}

.pain-point-only-heading h3 {
    max-width: calc(100% - 3rem);
    margin-top: 0.3rem;
    color: #f8fafc;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.pain-point-back {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    width: 30px;
    height: 30px;
    color: #cbd5e1;
    background: #1e293b;
}

.pain-point-only-panel #pain-points-scan-area {
    padding: 1.35rem;
}

.pain-scan-loading {
    padding: 1.35rem;
    border: 1px solid #1e4863;
    border-radius: 10px;
    background: #0b1b2d;
    box-shadow: inset 0 0 28px rgba(8, 145, 178, 0.08);
}

.pain-scan-hud {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pain-scan-core {
    position: relative;
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
    border: 1px solid #22d3ee;
    border-radius: 50%;
    background: #0f2438;
    box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.06), 0 0 24px rgba(34, 211, 238, 0.2);
}

.pain-scan-core::before {
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(103, 232, 249, 0.7);
    border-radius: 50%;
    content: "";
    animation: pain-scan-core-pulse 1.8s ease-in-out infinite;
}

.pain-scan-core::after {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 1px;
    height: 27px;
    background: #67e8f9;
    box-shadow: 0 0 8px #22d3ee;
    content: "";
    transform-origin: 50% 27px;
    animation: pain-scan-rotate 1.8s linear infinite;
}

.pain-scan-core i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f8fafc;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.22), 0 0 12px #22d3ee;
    transform: translate(-50%, -50%);
}

.pain-scan-copy {
    min-width: 0;
}

.pain-scan-kicker {
    color: #67e8f9;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    font-weight: 800;
}

.pain-scan-copy strong {
    display: block;
    margin-top: 0.25rem;
    color: #f8fafc;
    font-size: 16px;
    font-weight: 750;
}

.pain-scan-copy p {
    margin-top: 0.3rem;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.5;
}

.pain-scan-status-line {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.pain-scan-status-line span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 10px;
    white-space: nowrap;
    animation: pain-scan-status 1.8s ease-in-out infinite;
}

.pain-scan-status-line span::before {
    width: 5px;
    height: 5px;
    border: 1px solid #0e7490;
    border-radius: 50%;
    background: #0f2438;
    content: "";
}

.pain-scan-status-line span:nth-child(2) {
    animation-delay: 0.35s;
}

.pain-scan-status-line span:nth-child(3) {
    animation-delay: 0.7s;
}

.pain-scan-progress {
    height: 3px;
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 3px;
    background: #172b40;
}

.pain-scan-progress i {
    display: block;
    width: 34%;
    height: 100%;
    border-radius: inherit;
    background: #22d3ee;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.85);
    animation: pain-scan-progress 1.5s ease-in-out infinite;
}

@keyframes pain-scan-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pain-scan-core-pulse {
    0%, 100% { opacity: 0.45; transform: scale(0.94); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes pain-scan-status {
    0%, 100% { color: #64748b; }
    35% { color: #67e8f9; }
}

@keyframes pain-scan-progress {
    from { transform: translateX(-125%); }
    to { transform: translateX(320%); }
}

.workflow-diagnostic-heading {
    padding: 1.35rem;
    border-bottom: 1px solid #26364f;
}

.workflow-diagnostic-heading h3 {
    margin-top: 0.3rem;
    color: #f8fafc;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.workflow-diagnostic-heading p {
    margin-top: 0.35rem;
    color: #94a3b8;
    font-size: 11px;
}

.workflow-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.35rem 0.7rem;
}

.workflow-section-heading > span {
    color: #60a5fa;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 800;
}

.workflow-section-heading > strong {
    color: #94a3b8;
    font-size: 12px;
}

.workflow-section-heading-matrix {
    padding-inline: 0;
}

.workflow-section-heading-matrix > div h3 {
    margin-top: 0.25rem;
    color: #f8fafc;
    font-size: 17px;
    font-weight: 750;
}

.workflow-section-heading-matrix > strong {
    color: #fbbf24;
}

.workflow-matrix-mount {
    margin-top: 0.35rem;
    border-top: 1px solid #26364f;
}

.workflow-matrix-section {
    padding: 0 1.35rem 1.35rem;
}

.workflow-awaiting-panel {
    padding: 1.35rem;
}

.workflow-awaiting-panel strong {
    display: block;
    margin-top: 0.35rem;
    color: #f8fafc;
    font-size: 16px;
}

.workflow-awaiting-line {
    height: 3px;
    margin-top: 1.25rem;
    overflow: hidden;
    border-radius: 2px;
    background: #1e293b;
}

.workflow-awaiting-line i {
    display: block;
    width: 32%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #22d3ee, transparent);
    animation: task-awaiting-scan 1.25s ease-in-out infinite;
}

.workflow-panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid #26364f;
}

.workflow-panel-kicker {
    color: #60a5fa;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 800;
}

.workflow-panel-kicker.is-matrix {
    color: #22d3ee;
}

.workflow-panel-heading h3 {
    max-width: 100%;
    margin-top: 0.25rem;
    color: #f8fafc;
    font-size: 17px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.workflow-panel-state {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.workflow-canvas-flow {
    position: relative;
    padding: 0.45rem 1.35rem 1.15rem;
}

.workflow-canvas-flow::before {
    position: absolute;
    top: 1.3rem;
    bottom: 1.3rem;
    left: calc(1.35rem + 15px);
    width: 1px;
    background: #2f5874;
    content: "";
}

.workflow-canvas-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    min-height: 58px;
    padding: 0.55rem 0.15rem;
    border-bottom: 1px solid #22314a;
    border-radius: 0 !important;
    color: inherit;
    background: #0f172a;
    text-align: left;
    opacity: 0.15;
    transform: translateY(8px);
    transition: opacity 220ms ease, transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.workflow-canvas-row:last-child {
    border-bottom: 0;
}

.workflow-canvas-row:not(:last-child)::after {
    position: absolute;
    bottom: -5px;
    left: 11px;
    z-index: 3;
    width: 8px;
    height: 8px;
    border-right: 1px solid #38bdf8;
    border-bottom: 1px solid #38bdf8;
    background: #0f172a;
    content: "";
    pointer-events: none;
    transform: rotate(45deg);
}

.workflow-canvas-row.is-detail-open {
    background: #111d31;
}

.workflow-canvas-title-line {
    display: flex;
    grid-column: 2;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.workflow-canvas-help {
    display: inline-flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px !important;
    padding: 0 !important;
    border: 1px solid #38bdf8;
    border-radius: 50% !important;
    color: #67e8f9;
    background: rgba(8, 47, 73, 0.7);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.workflow-canvas-help:hover,
.workflow-canvas-help:focus-visible {
    color: #082f49;
    background: #67e8f9;
    transform: scale(1.08);
}

.workflow-canvas-detail {
    grid-column: 2;
    margin: 0.05rem 0 0;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.workflow-canvas-row.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.workflow-canvas-row:hover,
.workflow-canvas-row:focus-visible {
    border-color: #22d3ee;
    background: rgba(14, 116, 144, 0.16);
}

.workflow-canvas-index {
    display: inline-flex;
    grid-column: 1;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #38bdf8;
    border-radius: 50%;
    color: #64748b;
    background: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 800;
}

.workflow-canvas-row strong {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
}

.workflow-canvas-row p {
    margin-top: 0.22rem;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.45;
}

.workflow-canvas-row .workflow-canvas-detail {
    margin: 0.05rem 2.1rem 0 0;
}

.workflow-matrix-intro {
    padding: 1rem 0 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
}

.workflow-matrix-content {
    padding: 1rem 0 1.35rem;
}

.workflow-matrix-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
    gap: 1rem;
    align-items: stretch;
}

.workflow-chart-wrap {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    min-width: 0;
    min-height: 370px;
}

.workflow-axis-y {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.35rem;
    color: #67e8f9;
    writing-mode: vertical-rl;
}

.workflow-axis-y span {
    font-size: 13px;
    font-weight: 800;
}

.workflow-axis-y small {
    color: #64748b;
    font-size: 9px;
}

.workflow-chart {
    position: relative;
    min-width: 0;
    min-height: 370px;
    border-bottom: 1px solid #64748b;
    border-left: 1px solid #64748b;
    background: rgba(15, 23, 42, 0.65);
    overflow: visible;
}

.workflow-chart-grid-lines {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(71, 85, 105, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(71, 85, 105, 0.5) 1px, transparent 1px);
    background-size: 25% 25%;
}

.workflow-chart-point {
    position: absolute;
    z-index: 2;
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
    border: 2px solid #38bdf8;
    border-radius: 50% !important;
    background: #082f49;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
    transform: translate(-50%, 50%);
}

.workflow-chart-point:hover,
.workflow-chart-point:focus-visible {
    z-index: 6;
    border-color: #f8fafc;
    background: #0e7490;
    box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.22);
}

.workflow-chart-point i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #67e8f9;
}

.workflow-chart-point span {
    position: absolute;
    bottom: 1.05rem;
    left: 50%;
    width: max-content;
    max-width: 120px;
    padding: 0.2rem 0.35rem;
    border: 1px solid rgba(71, 85, 105, 0.75);
    border-radius: 3px;
    color: #cbd5e1;
    background: rgba(7, 17, 31, 0.94);
    font-size: 9px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    text-align: left;
    transform: translateX(-50%);
}

.workflow-chart-point b {
    position: absolute;
    top: 0.9rem;
    left: 50%;
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 8px;
    white-space: nowrap;
    transform: translateX(-50%);
}

.workflow-chart-point.is-key {
    z-index: 4;
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
    border-color: #fbbf24;
    background: #78350f;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.14), 0 0 20px rgba(245, 158, 11, 0.5);
}

.workflow-chart-point.is-key i {
    background: #fbbf24;
}

.workflow-chart-point.is-key span {
    border-color: rgba(245, 158, 11, 0.62);
    color: #fef3c7;
}

.workflow-chart-point.is-key b {
    color: #fbbf24;
    font-weight: 800;
}

.workflow-chart-axis-x {
    position: absolute;
    right: 0;
    bottom: -2rem;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #64748b;
    font-size: 9px;
}

.workflow-chart-axis-x b {
    color: #67e8f9;
    font-size: 11px;
}

.workflow-top-three {
    padding: 1rem;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #172339;
}

.workflow-top-three-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.workflow-top-three-heading span {
    color: #fbbf24;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 800;
}

.workflow-top-three-heading strong {
    color: #f8fafc;
    font-size: 15px;
}

.workflow-top-three > p {
    margin-top: 0.35rem;
    color: #94a3b8;
    font-size: 10px;
}

.workflow-key-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.workflow-all-points .workflow-key-list {
    max-height: 320px;
    padding-right: 0.35rem;
    overflow-y: auto;
    scrollbar-color: #38bdf8 #0f172a;
    scrollbar-width: thin;
}

.workflow-all-points .workflow-key-list::-webkit-scrollbar {
    width: 5px;
}

.workflow-all-points .workflow-key-list::-webkit-scrollbar-track {
    background: #0f172a;
}

.workflow-all-points .workflow-key-list::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: #38bdf8;
}

.workflow-all-points .workflow-key-option.is-key-point {
    border-color: rgba(251, 191, 36, 0.58);
}

.workflow-key-option {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 0.6rem;
    border: 1px solid #475569;
    border-radius: 6px !important;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.8);
    text-align: left;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.workflow-key-option:hover,
.workflow-key-option:focus-visible {
    border-color: #fbbf24;
    background: #1e293b;
    transform: translateX(2px);
}

.workflow-key-rank {
    color: #fbbf24;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 800;
}

.workflow-key-copy {
    min-width: 0;
}

.workflow-key-copy strong,
.workflow-key-copy small {
    display: block;
    overflow-wrap: anywhere;
}

.workflow-key-copy strong {
    color: #f8fafc;
    font-size: 12px;
    line-height: 1.35;
}

.workflow-key-copy small {
    margin-top: 0.2rem;
    color: #94a3b8;
    font-size: 9px;
}

.workflow-key-option > b {
    color: #fbbf24;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 15px;
    white-space: nowrap;
}

.workflow-key-option > b small {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 600;
}

.workflow-custom-action {
    margin-top: 2.5rem;
}

.task-scoring-row {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(310px, 1.6fr) 82px;
    gap: 1rem;
    align-items: center;
    min-height: 68px;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid #22314a;
    opacity: 0.2;
    transition: opacity 220ms ease, background-color 220ms ease, transform 220ms ease;
    transform: translateX(-8px);
}

.task-scoring-row.is-scored {
    opacity: 1;
    transform: translateX(0);
    background: rgba(14, 116, 144, 0.08);
}

.task-scoring-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.task-scoring-title span {
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
}

.task-scoring-title strong {
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.45;
}

.task-four-e-scores {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
}

.task-four-e-scores span {
    padding: 0.45rem 0.35rem;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #f8fafc;
    background: #172339;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.task-four-e-scores small {
    display: block;
    margin-bottom: 0.1rem;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 600;
}

.task-total-score {
    color: #f8fafc;
    text-align: right;
}

.task-total-score small {
    display: block;
    color: #67e8f9;
    font-size: 10px;
    font-weight: 700;
}

.task-total-score strong {
    font-size: 20px;
}

.task-total-score span {
    color: #64748b;
    font-size: 10px;
}

.task-ranking-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--color-line);
}

.task-ranking-heading span {
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
}

.task-ranking-heading h3 {
    margin-top: 0.2rem;
    color: #0f172a;
    font-size: 17px;
    font-weight: 750;
}

.task-ranking-heading p {
    color: #64748b;
    font-size: 12px;
}

.task-ranking-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}

.task-ranking-full {
    grid-column: 1 / -1;
}

.task-lock-card {
    min-width: 0;
}

.task-lock-name {
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.task-ranking-card {
    width: 100%;
    min-height: 190px;
    padding: 1rem;
    border: 1px solid #dbe3ee;
    color: #334155;
    background: #fff;
    box-shadow: 0 8px 24px -22px rgba(15, 23, 42, 0.5);
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.task-ranking-card:hover {
    border-color: #60a5fa;
    box-shadow: 0 14px 32px -22px rgba(37, 99, 235, 0.45);
    transform: translateY(-2px);
}

.task-ranking-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.task-rank {
    color: #2563eb;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 800;
}

.task-score {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    color: #64748b;
    font-size: 10px;
}

.task-score strong {
    color: #0f172a;
    font-size: 16px;
}

.task-score small {
    color: #64748b;
    font-size: 10px;
}

.task-score-summary {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.task-score-stars {
    display: inline-flex;
    gap: 0.05rem;
}

.task-score-summary .task-star {
    width: 13px;
    height: 13px;
}

.task-ranking-card h4 {
    min-height: 2.8em;
    margin-top: 0.5rem;
    color: #0f172a;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
}

.task-star {
    width: 15px;
    height: 15px;
    fill: transparent;
    stroke: #cbd5e1;
    stroke-width: 1.5;
}

.task-star.is-filled {
    fill: #f59e0b;
    stroke: #f59e0b;
}

.task-four-e-detail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.task-four-e-detail span {
    padding: 0.4rem 0.25rem;
    border-radius: 5px;
    background: #f1f5f9;
    text-align: center;
}

.task-four-e-detail small {
    display: block;
    color: #64748b;
    font-size: 8px;
    overflow-wrap: anywhere;
}

.task-four-e-detail strong {
    color: #1d4ed8;
    font-size: 12px;
}

@keyframes voice-listening {
    50% {
        box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.16);
    }
}

@media (max-width: 479px) {
    .app-screen {
        padding: 1.5rem 1rem 5rem;
    }

    .app-screen > button.absolute {
        left: 0.75rem;
        top: 1.7rem;
    }

    .app-screen > .app-header {
        margin-bottom: 1.5rem;
    }

    .app-screen > .app-header.ml-8 {
        margin-left: 2.25rem;
    }

    .app-header .tracking-tighter.italic > span:first-child,
    .app-header .tracking-tighter.italic > span:last-child {
        font-size: 20px !important;
    }

    .app-header img {
        width: 104px;
    }

    .app-screen h2 {
        font-size: 20px !important;
    }

    .workflow-stepper {
        margin-bottom: 1.5rem !important;
    }

    input,
    textarea {
        font-size: 16px !important;
    }

    .app-shell .industry-grid {
        gap: 0.5rem;
    }

    #custom-industry-box,
    #custom-pos-box,
    #custom-task-box,
    #custom-ap-input,
    #custom-pain-box {
        font-size: 0.75rem;
    }
}

@media (max-width: 767px) {
    .position-scanner {
        min-height: 0;
        padding: 1rem;
    }

    .position-scanner-head h3 {
        font-size: 15px;
    }

    .position-scanner-body {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .position-radar {
        width: min(76vw, 270px);
    }

    .position-radar-stage {
        height: 400px;
    }

    .bem-chip-scanner {
        min-height: 0;
    }

    .bem-chip-stage {
        padding-top: 1rem;
    }

    .bem-chip-board {
        padding: 0.75rem;
    }

    .bem-chip-bus {
        display: none;
    }

    .bem-chip-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .bem-chip-module {
        min-height: 86px;
    }

    .bem-chip-module:not(:first-child)::before {
        display: none;
    }

    .bem-chip-module:nth-child(7) {
        grid-column: 1 / -1;
    }

    .bem-chip-hud {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.65rem;
    }

    .solution-scanner {
        min-height: 0;
    }

    .solution-network-stage {
        padding-top: 1rem;
    }

    .solution-network-flow {
        display: flex;
        gap: 0.45rem;
        overflow-x: auto;
        padding: 0.75rem 0.75rem 0.15rem;
        scrollbar-width: none;
    }

    .solution-network-flow::-webkit-scrollbar {
        display: none;
    }

    .solution-network-flow-step {
        min-width: 78px;
        min-height: 32px;
        flex: 1 0 78px;
        font-size: 10px;
        white-space: nowrap;
    }

    .solution-network-flow-arrow {
        flex: 0 0 1.35rem;
    }

    .solution-network-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.9rem;
        padding: 0.75rem;
    }

    .solution-network-source-column {
        padding-top: 0;
    }

    .solution-network-source {
        min-height: 104px;
    }

    .solution-network-bem-list,
    .solution-network-output-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .solution-network-output {
        min-height: 66px;
    }

    .solution-network-fusion {
        min-height: 96px;
    }

    .solution-network-hud {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.65rem;
    }

    .position-radar-hud {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.65rem;
    }

    .position-scan-console {
        min-width: 0;
    }

    .position-scan-status strong {
        min-height: 0;
    }

    .position-scan-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .industry-map-scanner {
        min-height: 0;
    }

    .industry-map-network {
        height: 430px;
    }

    .industry-map-hud {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.65rem;
    }

    .industry-map-core {
        top: 40%;
    }

    .industry-node-1 { top: 12%; left: 20%; }
    .industry-node-2 { top: 12%; left: 50%; }
    .industry-node-3 { top: 12%; left: 80%; }
    .industry-node-4 { top: 29%; left: 16%; }
    .industry-node-5 { top: 29%; left: 84%; }
    .industry-node-6 { top: 47%; left: 15%; }
    .industry-node-7 { top: 47%; left: 85%; }
    .industry-node-8 { top: 64%; left: 19%; }
    .industry-node-9 { top: 64%; left: 50%; }
    .industry-node-10 { top: 64%; left: 81%; }
    .industry-node-11 { top: 23%; left: 5%; }
    .industry-node-12 { top: 23%; left: 95%; }
    .industry-node-13 { top: 40%; left: 5%; }
    .industry-node-14 { top: 40%; left: 95%; }
    .industry-node-15 { top: 55%; left: 5%; }
    .industry-node-16 { top: 55%; left: 95%; }
    .industry-node-17 { top: 75%; left: 5%; }
    .industry-node-18 { top: 75%; left: 28%; }
    .industry-node-19 { top: 75%; left: 72%; }
    .industry-node-20 { top: 75%; left: 95%; }

    .task-process-heading,
    .task-ranking-heading,
    .workflow-panel-heading,
    .workflow-diagnostic-heading,
    .workflow-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .workflow-canvas-flow {
        padding-inline: 0.85rem;
    }

    .workflow-canvas-flow::before {
        left: calc(0.85rem + 15px);
    }

    .workflow-canvas-row {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 0.45rem;
        min-height: 54px;
        padding-inline: 0.55rem;
    }

    .workflow-canvas-row strong {
        font-size: 12px;
    }

    .workflow-canvas-row p {
        font-size: 10px;
    }

    .workflow-canvas-row .workflow-canvas-detail {
        margin-right: 0;
    }

    .workflow-canvas-status {
        grid-column: 2;
    }

    .workflow-matrix-section {
        padding-inline: 0.85rem;
    }

    .pain-point-only-heading,
    .pain-point-only-panel #pain-points-scan-area {
        padding-inline: 0.85rem;
    }

    .pain-scan-loading {
        padding: 0.85rem;
    }

    .pain-scan-hud {
        align-items: flex-start;
        gap: 0.7rem;
    }

    .pain-scan-core {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
    }

    .pain-scan-core::after {
        height: 22px;
        transform-origin: 50% 22px;
    }

    .pain-scan-copy strong {
        font-size: 14px;
    }

    .pain-scan-status-line {
        gap: 0.3rem;
    }

    .pain-scan-status-line span {
        gap: 0.2rem;
        font-size: 9px;
    }

    .workflow-matrix-intro,
    .workflow-matrix-content {
        padding-inline: 0;
    }

    .workflow-matrix-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .workflow-all-points .workflow-key-list {
        max-height: 270px;
    }

    .workflow-chart-wrap,
    .workflow-chart {
        min-height: 320px;
    }

    .workflow-chart-wrap {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .workflow-chart-point span {
        max-width: 90px;
        font-size: 8px;
    }

    .workflow-custom-action {
        margin-top: 2rem;
    }

    .task-discovery-list,
    .task-scoring-list {
        padding-inline: 0.85rem;
    }

    .task-discovery-row {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .task-discovery-status {
        grid-column: 2;
    }

    .task-scoring-row {
        grid-template-columns: minmax(0, 1fr) 70px;
        gap: 0.65rem;
    }

    .task-four-e-scores {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .task-total-score {
        grid-column: 2;
        grid-row: 1;
    }

    .task-ranking-card {
        min-height: 0;
    }

    .bem-panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
        padding: 1rem;
    }

    .bem-table-head {
        display: none;
    }

    .bem-row {
        grid-template-columns: 36px minmax(0, 1fr) 22px;
        gap: 0.55rem;
        padding: 1rem;
    }

    .bem-question,
    .bem-example {
        grid-column: 2 / -1;
    }

    .bem-question small,
    .bem-example small {
        display: block;
        margin-bottom: 0.2rem;
        color: #64748b;
        font-size: 10px;
        font-weight: 700;
    }

    .solution-comparison {
        display: none;
    }

    .solution-mobile-list {
        display: grid;
        gap: 0.75rem;
    }

    .stage-primary-action {
        position: sticky;
        bottom: 0.75rem;
        z-index: 20;
        padding: 0.5rem;
        border: 1px solid #dbe3ee;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(12px);
    }
}

@media (min-width: 768px) {
    .app-shell {
        max-width: 820px;
        margin-block: 1.5rem;
        min-height: calc(100vh - 3rem);
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        box-shadow: 0 24px 70px -36px rgba(15, 23, 42, 0.45);
    }

    .app-screen {
        padding: 2.25rem 2.5rem 5rem;
    }

    .app-shell .industry-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .position-grid,
    .responsive-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .task-ranking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .position-radar-sweep,
    .position-scanner-live i,
    .position-scan-steps .is-active i,
    .industry-map-packet {
        animation-duration: 8s !important;
    }

    .task-discovery-row,
    .task-scoring-row,
    .task-ranking-card,
    .workflow-canvas-row {
        transition: none !important;
        transform: none !important;
    }

    .task-awaiting-track i {
        animation-duration: 4s !important;
    }
}

@media (min-width: 1100px) {
    .app-shell {
        max-width: 1200px;
        min-height: calc(100vh - 2rem);
        margin-block: 1rem;
    }

    .app-screen {
        display: grid;
        grid-template-columns: 196px minmax(0, 1fr);
        column-gap: 3rem;
        padding: 2rem 2.5rem 4rem;
    }

    .app-screen > .app-header {
        grid-column: 1 / -1;
        margin-right: 0 !important;
        margin-bottom: 2rem !important;
        margin-left: 0 !important;
    }

    .app-screen > .workflow-stepper {
        grid-column: 1;
        grid-row: 2 / span 30;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 1.75rem;
        margin: 0 !important;
        padding: 3.75rem 1.75rem 0 0 !important;
        border-right: 1px solid var(--color-line);
    }

    .app-screen > .workflow-stepper::before {
        top: 4.5rem;
        bottom: 13px;
        left: 11px;
        width: 1px;
        height: auto;
    }

    .app-screen > .workflow-stepper > div {
        width: 100% !important;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .app-screen > .workflow-stepper > div > span {
        padding: 0;
        font-size: 13px !important;
        text-align: left;
    }

    .app-screen > :not(.app-header):not(.workflow-stepper):not(button.absolute) {
        grid-column: 2;
    }

    .app-screen > button.absolute {
        top: 7.25rem;
        left: 2rem;
    }

    .app-screen > .context-tags {
        justify-content: flex-start !important;
    }

    .app-screen h2 {
        font-size: 24px !important;
        text-align: left !important;
    }

    .app-screen h2 + p {
        padding-inline: 0 !important;
        text-align: left !important;
    }

    .app-shell .industry-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .position-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .responsive-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .app-screen > .workflow-stepper + * {
        grid-row: 2;
    }
}

/* 2. 全局基础入场动画 (页面切换时的丝滑上浮) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* 3. 科技感扫描线动画 */
@keyframes scanDown {
    0% {
        top: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* 4. 脉冲发光动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ==========================================
   Stage 4: 赛博朋克极客模式专属动效
========================================== */

/* 4. 爽感文字霓虹渐变发光特效 */
@keyframes pulse-glow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(139, 92, 246, 0.3); 
        transform: scale(1); 
    }
    50% { 
        text-shadow: 0 0 25px rgba(139, 92, 246, 0.7); 
        transform: scale(1.02); 
    }
}
.vivid-text {
    background: linear-gradient(135deg, #FF3366, #9333EA, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: pulse-glow 3s infinite ease-in-out;
}


/* 5. 主行动按钮 (CTA) 的赛博呼吸放大特效 */
@keyframes cyber-pulse-scale {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 15px rgba(236,72,153,0.4); 
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 25px rgba(236,72,153,0.8); 
    }
}
.cyber-btn-pulse {
    animation: cyber-pulse-scale 2s infinite ease-in-out;
}


/* 6. 第5级极客模式：文字故障闪烁 (Glitch) 震撼特效 */
@keyframes cyber-glitch {
    0% { text-shadow: 1px 1px #ff00c1, -1px -1px #00fff9; }
    25% { text-shadow: -1px 1px #ff00c1, 1px -1px #00fff9; }
    50% { text-shadow: 1px -1px #ff00c1, -1px 1px #00fff9; }
    75% { text-shadow: -1px -1px #ff00c1, 1px 1px #00fff9; }
    100% { text-shadow: 1px 1px #ff00c1, -1px -1px #00fff9; }
}
.cyber-glitch-text {
    color: #fff;
    animation: cyber-glitch 2.5s infinite;
}

/* ==========================================
   防打扰与移动端打印优化
========================================== */

/* 防止报告保存/截图时出现滚动条干扰 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 导出报告时的分页截断保护 */
@media print {
    .break-inside-avoid {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
