        /* ============================================
           CALM AUTHORITY THEME - GLOBAL STYLES
           Inherits from design-system.css
           ============================================ */

        /* 防止 Vue 模板闪烁：在 Vue 编译完成前隐藏所有内容 */
        [v-cloak] {
            display: none !important;
        }

        .voice-assistant-page {
            --voice-surface: #f7f8fa;
            --voice-card: #ffffff;
            --voice-line: #d9dee7;
            --voice-text: #1f2933;
            --voice-muted: #687586;
            --voice-primary: #2563eb;
            --voice-good: #16845d;
            --voice-warn: #b45309;
            --voice-danger: #b42318;
            color: var(--voice-text);
        }

        .voice-assistant-shell-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 14px;
        }

        .voice-assistant-header {
            align-items: flex-start;
            gap: 16px;
            flex: 1;
            margin: 0;
        }

        .voice-assistant-view-switch {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px;
            border: 1px solid var(--voice-line);
            border-radius: 8px;
            background: #f3f6fb;
            flex: 0 0 auto;
        }

        .voice-assistant-view-switch button {
            min-width: 72px;
            height: 34px;
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: var(--voice-muted);
            font-size: 13px;
            cursor: pointer;
        }

        .voice-assistant-view-switch button.active {
            background: #fff;
            color: var(--voice-primary);
            font-weight: 700;
            box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
        }

        .voice-assistant-status-strip {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 14px;
        }

        .voice-assistant-status-item {
            min-height: 64px;
            padding: 12px 14px;
            border: 1px solid var(--voice-line);
            border-radius: 8px;
            background: var(--voice-card);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
        }

        .voice-assistant-status-item span {
            font-size: 12px;
            color: var(--voice-muted);
            line-height: 1.3;
        }

        .voice-assistant-status-item strong {
            font-size: 14px;
            line-height: 1.35;
            color: var(--voice-warn);
            word-break: break-word;
        }

        .voice-assistant-status-item.ready strong {
            color: var(--voice-good);
        }

        .voice-assistant-status-item.muted strong {
            color: var(--voice-muted);
        }

        .voice-assistant-error {
            margin-bottom: 12px;
            padding: 10px 12px;
            border: 1px solid #f1b8b4;
            border-radius: 8px;
            color: var(--voice-danger);
            background: #fff4f2;
            font-size: 13px;
        }

        .voice-assistant-workbench {
            display: grid;
            grid-template-columns: minmax(210px, 0.8fr) minmax(420px, 1.8fr) minmax(240px, 1fr);
            gap: 14px;
            min-height: calc(100vh - 260px);
        }

        .voice-assistant-side,
        .voice-assistant-main {
            border: 1px solid var(--voice-line);
            border-radius: 8px;
            background: var(--voice-card);
            box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
        }

        .voice-assistant-side {
            padding: 14px;
            overflow: hidden;
        }

        .voice-assistant-main {
            display: grid;
            grid-template-rows: minmax(320px, 1fr) auto;
            overflow: hidden;
        }

        .voice-assistant-section-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 12px;
        }

        .voice-assistant-section-head h3 {
            margin: 0;
            font-size: 16px;
            line-height: 1.35;
        }

        .voice-assistant-section-head p {
            margin: 4px 0 0;
            color: var(--voice-muted);
            font-size: 12px;
            line-height: 1.35;
        }

        .voice-assistant-icon-button {
            width: 32px;
            height: 32px;
            border: 1px solid var(--voice-line);
            border-radius: 8px;
            background: #f3f6fb;
            color: var(--voice-primary);
            font-size: 20px;
            line-height: 1;
            cursor: pointer;
        }

        .voice-assistant-icon-button:disabled,
        .voice-assistant-mic-button:disabled {
            cursor: not-allowed;
            opacity: 0.62;
        }

        .voice-assistant-session-items {
            display: grid;
            gap: 8px;
            max-height: calc(100vh - 330px);
            overflow: auto;
            padding-right: 2px;
        }

        .voice-assistant-session-item {
            width: 100%;
            min-height: 54px;
            padding: 10px;
            border: 1px solid var(--voice-line);
            border-radius: 8px;
            background: #fbfcfe;
            color: var(--voice-text);
            text-align: left;
            cursor: pointer;
        }

        .voice-assistant-session-item.active {
            border-color: #8eb4ff;
            background: #eef5ff;
        }

        .voice-assistant-session-item span,
        .voice-assistant-session-item small {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .voice-assistant-session-item span {
            font-size: 13px;
            line-height: 1.35;
        }

        .voice-assistant-session-item small {
            margin-top: 4px;
            color: var(--voice-muted);
            font-size: 12px;
        }

        .voice-assistant-empty-list,
        .voice-assistant-empty-transcript {
            color: var(--voice-muted);
            font-size: 13px;
            line-height: 1.6;
        }

        .voice-assistant-transcript {
            min-height: 320px;
            padding: 18px;
            background: var(--voice-surface);
            overflow: auto;
        }

        .voice-assistant-turns {
            display: grid;
            gap: 16px;
        }

        .voice-assistant-turn-pair {
            display: grid;
            gap: 8px;
        }

        .voice-assistant-message {
            max-width: min(86%, 720px);
            padding: 12px 14px;
            border: 1px solid var(--voice-line);
            border-radius: 8px;
            background: var(--voice-card);
        }

        .voice-assistant-message.user {
            justify-self: end;
            border-color: #b9d2ff;
            background: #eef5ff;
        }

        .voice-assistant-message.assistant {
            justify-self: start;
            border-color: #c6ded3;
            background: #f2faf6;
        }

        .voice-assistant-message span {
            display: block;
            margin-bottom: 6px;
            color: var(--voice-muted);
            font-size: 12px;
            line-height: 1.3;
        }

        .voice-assistant-message p {
            margin: 0;
            color: var(--voice-text);
            font-size: 14px;
            line-height: 1.65;
            word-break: break-word;
        }

        .voice-assistant-link-button {
            margin-top: 8px;
            padding: 0;
            border: 0;
            background: transparent;
            color: var(--voice-primary);
            font-size: 13px;
            cursor: pointer;
        }

        .voice-assistant-match-status {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 10px;
            padding: 5px 8px;
            border: 1px solid var(--voice-line);
            border-radius: 8px;
            background: #fff;
            color: var(--voice-muted);
            font-size: 12px;
            line-height: 1.3;
        }

        .voice-assistant-match-status.correct {
            border-color: #b8d9c8;
            color: var(--voice-good);
            background: #f7fcf9;
        }

        .voice-assistant-match-status.question {
            border-color: #bfdbfe;
            color: var(--voice-primary);
            background: #eff6ff;
        }

        .voice-assistant-match-status.unknown {
            border-color: #cbd5e1;
            color: var(--voice-muted);
            background: #f8fafc;
        }

        .voice-assistant-match-status.incorrect,
        .voice-assistant-match-status.timeout {
            border-color: #f0d0a5;
            color: var(--voice-warn);
            background: #fff8ed;
        }

        .voice-assistant-match-status small {
            color: inherit;
            font-size: 11px;
        }

        .voice-assistant-empty-transcript {
            height: 100%;
            display: grid;
            place-content: center;
            text-align: center;
        }

        .voice-assistant-empty-transcript h3 {
            margin: 0 0 8px;
            color: var(--voice-text);
            font-size: 18px;
            line-height: 1.35;
        }

        .voice-assistant-empty-transcript p {
            max-width: 380px;
            margin: 0;
        }

        .voice-assistant-recorder {
            min-height: 128px;
            padding: 18px;
            border-top: 1px solid var(--voice-line);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
            background: #fff;
        }

        .voice-assistant-mic-button {
            width: 98px;
            height: 98px;
            border: 0;
            border-radius: 50%;
            background: var(--voice-primary);
            color: #fff;
            font-weight: 700;
            font-size: 15px;
            line-height: 1.2;
            padding: 0 14px;
            box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
            cursor: pointer;
        }

        .voice-assistant-mic-button.recording {
            background: var(--voice-danger);
            box-shadow: 0 12px 28px rgba(180, 35, 24, 0.24);
        }

        .voice-assistant-mic-button.processing {
            background: var(--voice-warn);
            box-shadow: 0 12px 28px rgba(180, 83, 9, 0.22);
        }

        .voice-assistant-mic-button.speaking {
            background: #0f766e;
            box-shadow: 0 12px 28px rgba(15, 118, 110, 0.24);
        }

        .voice-assistant-recorder-meta {
            display: grid;
            gap: 4px;
            min-width: 180px;
        }

        .voice-assistant-recorder-meta strong {
            font-size: 15px;
            line-height: 1.35;
        }

        .voice-assistant-recorder-meta span {
            color: var(--voice-muted);
            font-size: 13px;
            line-height: 1.45;
        }

        .voice-assistant-context-list {
            display: grid;
            gap: 10px;
            margin: 0;
        }

        .voice-assistant-context-list div {
            padding: 10px;
            border: 1px solid var(--voice-line);
            border-radius: 8px;
            background: #fbfcfe;
        }

        .voice-assistant-context-list dt {
            margin-bottom: 4px;
            color: var(--voice-muted);
            font-size: 12px;
            line-height: 1.3;
        }

        .voice-assistant-context-list dd {
            margin: 0;
            color: var(--voice-text);
            font-size: 14px;
            line-height: 1.4;
            word-break: break-word;
        }

        .voice-assistant-config-page {
            display: grid;
            grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
            gap: 14px;
            align-items: start;
        }

        .voice-assistant-config-panel {
            border: 1px solid var(--voice-line);
            border-radius: 8px;
            background: var(--voice-card);
            padding: 16px;
            box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
        }

        .voice-assistant-config-panel-primary {
            grid-column: 1 / -1;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            position: sticky;
            top: 0;
            z-index: 2;
        }

        .voice-assistant-config-title {
            display: grid;
            gap: 4px;
        }

        .voice-assistant-config-title span,
        .voice-assistant-config-section-head span {
            color: var(--voice-muted);
            font-size: 12px;
            line-height: 1.3;
        }

        .voice-assistant-config-title h2,
        .voice-assistant-config-section-head h3 {
            margin: 0;
            color: var(--voice-text);
            line-height: 1.3;
        }

        .voice-assistant-config-title h2 {
            font-size: 20px;
        }

        .voice-assistant-config-title p {
            margin: 0;
            color: var(--voice-muted);
            font-size: 13px;
            line-height: 1.45;
        }

        .voice-assistant-config-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            flex: 0 0 auto;
        }

        .voice-assistant-save-note {
            align-self: center;
            color: var(--voice-good);
            font-size: 13px;
            line-height: 1.4;
        }

        .voice-assistant-config-section-head {
            display: grid;
            gap: 4px;
            margin-bottom: 14px;
        }

        .voice-assistant-config-section-head h3 {
            font-size: 16px;
        }

        .voice-assistant-config-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }

        .voice-assistant-field-wide {
            grid-column: 1 / -1;
        }

        .voice-assistant-field {
            display: grid;
            gap: 6px;
        }

        .voice-assistant-field span {
            color: var(--voice-muted);
            font-size: 12px;
            line-height: 1.3;
        }

        .voice-assistant-field input,
        .voice-assistant-field select {
            width: 100%;
            min-height: 38px;
            border: 1px solid var(--voice-line);
            border-radius: 8px;
            padding: 8px 10px;
            background: #fff;
            color: var(--voice-text);
            font-size: 14px;
        }

        .voice-assistant-switch-field {
            align-content: start;
        }

        .voice-assistant-switch-field input[type="checkbox"] {
            width: 42px;
            min-height: 22px;
            accent-color: var(--voice-good);
        }

        .voice-assistant-switch-field strong {
            color: var(--voice-text);
            font-size: 14px;
            line-height: 1.3;
        }

        .voice-assistant-field small {
            color: var(--voice-muted);
            font-size: 12px;
            line-height: 1.35;
        }

        .voice-assistant-config-summary {
            display: grid;
            gap: 10px;
            margin: 0;
        }

        .voice-assistant-config-summary div {
            display: grid;
            gap: 4px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--voice-line);
        }

        .voice-assistant-config-summary div:last-child {
            padding-bottom: 0;
            border-bottom: 0;
        }

        .voice-assistant-config-summary dt {
            color: var(--voice-muted);
            font-size: 12px;
            line-height: 1.3;
        }

        .voice-assistant-config-summary dd {
            margin: 0;
            color: var(--voice-text);
            font-size: 14px;
            line-height: 1.4;
            word-break: break-word;
        }

        @media (max-width: 1180px) {
            .voice-assistant-status-strip,
            .voice-assistant-workbench,
            .voice-assistant-config-page {
                grid-template-columns: 1fr 1fr;
            }

            .voice-assistant-main {
                grid-column: 1 / -1;
                order: 3;
            }
        }

        @media (max-width: 760px) {
            .voice-assistant-status-strip,
            .voice-assistant-workbench,
            .voice-assistant-config-page,
            .voice-assistant-config-grid {
                grid-template-columns: 1fr;
            }

            .voice-assistant-shell-head,
            .voice-assistant-config-panel-primary {
                display: grid;
            }

            .voice-assistant-main {
                grid-column: auto;
            }

            .voice-assistant-message {
                max-width: 100%;
            }

            .voice-assistant-recorder {
                justify-content: flex-start;
            }
        }

        .voice-assistant-page {
            --voice-ink: #18211f;
            --voice-ink-soft: #4f5d58;
            --voice-muted: #7a8782;
            --voice-paper: #edf2ec;
            --voice-panel: #ffffff;
            --voice-line: #dce4dd;
            --voice-signal: #0d8f66;
            --voice-signal-soft: #dff4eb;
            --voice-warning: #c27a14;
            --voice-warning-soft: #fff1d8;
            --voice-danger: #c73f36;
            --voice-danger-soft: #ffe2df;
            --voice-charcoal: #17221f;
            --voice-aqua: #127b7a;
            color: var(--voice-ink);
        }

        .voice-assistant-h5-shell {
            min-height: calc(100vh - 160px);
            padding: 18px 0 28px;
            display: grid;
            justify-items: center;
            background:
                linear-gradient(135deg, rgba(13, 143, 102, 0.1), transparent 34%),
                linear-gradient(315deg, rgba(194, 122, 20, 0.1), transparent 38%),
                var(--voice-paper);
            border: 1px solid rgba(23, 34, 31, 0.08);
            border-radius: 8px;
        }

        .voice-assistant-phone-shell {
            width: min(390px, calc(100vw - 32px));
            height: 760px;
            min-height: 0;
            border-radius: 34px;
            padding: 10px;
            background: #101714;
            box-shadow: 0 22px 70px rgba(21, 33, 30, 0.18);
        }

        .voice-assistant-phone-screen {
            height: 100%;
            min-height: 0;
            border-radius: 26px;
            overflow: hidden;
            background:
                linear-gradient(180deg, #f9fbf6 0%, #eef4ee 48%, #e8f0ea 100%);
            border: 1px solid rgba(255, 255, 255, 0.54);
            display: grid;
            grid-template-rows: auto auto auto minmax(0, 1fr) auto;
        }

        .voice-assistant-safe-top {
            height: 44px;
            padding: 12px 22px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--voice-charcoal);
            font-size: 12px;
        }

        .voice-assistant-mini-status {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .voice-assistant-mini-status::before {
            content: "";
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--voice-signal);
        }

        .voice-assistant-app-header {
            padding: 18px 20px 0;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 14px;
        }

        .voice-assistant-app-header p {
            margin: 0 0 6px;
            color: var(--voice-muted);
            font-size: 12px;
            line-height: 1;
        }

        .voice-assistant-app-header h2 {
            margin: 0;
            color: var(--voice-charcoal);
            font-size: 30px;
            line-height: 1.12;
            font-weight: 760;
            letter-spacing: 0;
        }

        .voice-assistant-round-icon {
            width: 42px;
            height: 42px;
            border: 1px solid var(--voice-line);
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.86);
            color: var(--voice-charcoal);
            display: grid;
            place-items: center;
            cursor: pointer;
            flex: 0 0 auto;
        }

        .voice-assistant-round-icon svg,
        .voice-assistant-control-button svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .connection-summary {
            margin: 16px 20px 0;
            min-height: 42px;
            padding: 9px 12px;
            border: 1px solid var(--voice-line);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.78);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .connection-summary span {
            color: var(--voice-muted);
            font-size: 12px;
            white-space: nowrap;
        }

        .connection-summary strong {
            color: var(--voice-charcoal);
            font-size: 14px;
            line-height: 1.1;
            text-align: right;
            word-break: break-word;
        }

        .connection-summary.ready {
            border-color: rgba(13, 143, 102, 0.24);
            background: var(--voice-signal-soft);
        }

        .connection-summary.warn {
            border-color: rgba(194, 122, 20, 0.28);
            background: var(--voice-warning-soft);
        }

        .voice-assistant-transcript {
            margin: 14px 20px 0;
            padding: 14px;
            height: auto;
            min-height: 0;
            border: 1px solid var(--voice-line);
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.86);
            display: grid;
            grid-template-rows: auto minmax(0, 1fr);
            gap: 11px;
            overflow: hidden;
        }

        .voice-assistant-transcript-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: var(--voice-muted);
            font-size: 12px;
        }

        .voice-assistant-live-dot {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--voice-signal);
            font-weight: 650;
        }

        .voice-assistant-live-dot::before {
            content: "";
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: currentColor;
        }

        .voice-assistant-transcript-body {
            min-height: 0;
            overflow-y: auto;
            padding-right: 2px;
            overscroll-behavior: contain;
            scrollbar-width: thin;
        }

        .voice-assistant-caption-bubble {
            max-width: 86%;
            padding: 10px 12px;
            border-radius: 14px;
            font-size: 14px;
            line-height: 1.5;
            word-break: break-word;
        }

        .voice-assistant-caption-bubble.user {
            margin-left: auto;
            color: #ffffff;
            background: var(--voice-aqua);
            border-bottom-right-radius: 6px;
        }

        .voice-assistant-caption-bubble.assistant {
            color: var(--voice-charcoal);
            background: #edf4ed;
            border: 1px solid rgba(13, 143, 102, 0.16);
            border-bottom-left-radius: 6px;
        }

        .voice-assistant-caption-bubble span {
            display: block;
            margin-bottom: 4px;
            color: rgba(255, 255, 255, 0.72);
            font-size: 11px;
        }

        .voice-assistant-caption-bubble.assistant span {
            color: var(--voice-signal);
        }

        .call-controls {
            position: relative;
            z-index: 4;
            padding: 14px 20px calc(18px + env(safe-area-inset-bottom));
            background: linear-gradient(180deg, rgba(232, 240, 234, 0), #f8faf5 22%);
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 12px;
            align-self: end;
        }

        .voice-assistant-control-button {
            min-height: 56px;
            border: 1px solid var(--voice-line);
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.9);
            color: var(--voice-charcoal);
            display: grid;
            place-items: center;
            gap: 4px;
            font-size: 11px;
            cursor: pointer;
        }

        .voice-assistant-control-button.primary,
        .voice-assistant-control-button.active {
            background: var(--voice-signal-soft);
            color: var(--voice-signal);
            border-color: rgba(13, 143, 102, 0.24);
        }

        .voice-assistant-control-button.danger {
            background: var(--voice-danger-soft);
            color: var(--voice-danger);
            border-color: rgba(199, 63, 54, 0.22);
        }

        .voice-assistant-control-button.call-action {
            min-height: 58px;
            display: flex;
            flex-direction: row;
            justify-content: center;
            font-size: 16px;
            font-weight: 720;
        }

        .voice-assistant-control-button.disabled {
            background: var(--voice-warning-soft);
            color: var(--voice-warning);
            border-color: rgba(194, 122, 20, 0.28);
        }

        .voice-assistant-config-page {
            display: grid;
            grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
            gap: 14px;
            align-items: start;
        }

        .voice-assistant-config-panel-wide {
            grid-column: 1 / -1;
        }

        @media (max-width: 760px) {
            body:has(#voiceAssistantPage.active) .sidebar {
                display: none !important;
            }

            body:has(#voiceAssistantPage.active) .main-content {
                margin-left: 0 !important;
                padding: 0 !important;
                width: 100vw;
                min-height: 100vh;
                overflow-x: hidden;
            }

            body:has(#voiceAssistantPage.active) #voiceAssistantPage.active {
                padding: 0 !important;
            }

            .voice-assistant-shell-head {
                display: none;
            }

            .voice-assistant-h5-shell {
                min-height: 100vh;
                height: 100vh;
                height: 100dvh;
                padding: 0;
                border: 0;
                border-radius: 0;
                background: var(--voice-paper);
                overflow: hidden;
            }

            .voice-assistant-phone-shell {
                width: 100%;
                height: 100vh;
                height: 100dvh;
                min-height: 0;
                padding: 0;
                border-radius: 0;
                background: transparent;
                box-shadow: none;
            }

            .voice-assistant-phone-screen {
                height: 100%;
                min-height: 0;
                border-radius: 0;
                border: 0;
            }

            .voice-assistant-config-page {
                grid-template-columns: 1fr;
            }

            .voice-assistant-config-panel-wide {
                grid-column: auto;
            }
        }

        /* 初始化时隐藏 #app 内容，直到 Vue 初始化完成 */
        #app:not([data-v-app]) {
            visibility: hidden;
        }

        /* 活动状态脉冲动画 */
        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 0 0 4px rgba(59, 130, 246, 0);
            }
        }

        @keyframes accent-pulse {
            0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--primary); }
            50% { opacity: 0.7; box-shadow: 0 0 4px var(--primary); }
        }

        body {
            font-family: var(--font-body);
            font-size: 14px;
            line-height: 1.5;
            font-weight: 400;
            background: var(--bg-primary);
            min-height: 100vh;
            color: var(--text-primary);
        }

        .app-container {
            display: flex;
            min-height: 100vh;
            height: 100vh;
            overflow: hidden;
            background: var(--bg-primary);
        }

        /* ============================================
           SIDEBAR - CALM AUTHORITY STYLE
           ============================================ */
        .sidebar {
            width: 240px;
            background: var(--bg-secondary);
            border-right: 1px solid var(--border-light);
            position: fixed;
            height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            z-index: 100;
            box-shadow: var(--shadow-md);
        }

        /* Sidebar logo area */
        .sidebar-header {
            padding: 20px 20px;
            border-bottom: 1px solid var(--border-light);
            background: var(--bg-secondary);
            position: relative;
        }

        .sidebar-logo {
            font-family: var(--font-display);
            font-weight: 600;
            font-size: 17px;
            letter-spacing: -0.3px;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .sidebar-logo::before {
            content: '';
            width: 10px;
            height: 10px;
            background: var(--primary);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--primary);
            animation: accent-pulse 2s ease-in-out infinite;
        }

        .instance-pill {
            display: inline-flex;
            align-items: center;
            max-width: 100%;
            padding: 6px 10px;
            border-radius: 999px;
            border: 1px solid rgba(59, 130, 246, 0.2);
            background: rgba(59, 130, 246, 0.08);
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 600;
            line-height: 1.2;
            letter-spacing: 0.2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .instance-pill-sidebar {
            margin-top: 12px;
        }

        .sidebar-content {
            flex: 1;
            overflow-y: auto;
            padding: 8px 0;
        }

        /* Sidebar scrollbar */
        .sidebar-content::-webkit-scrollbar {
            width: 4px;
        }

        .sidebar-content::-webkit-scrollbar-track {
            background: var(--bg-tertiary);
        }

        .sidebar-content::-webkit-scrollbar-thumb {
            background: var(--border-medium);
            border-radius: 2px;
        }

        .sidebar-footer {
            padding: 16px;
            border-top: 1px solid var(--border-light);
            background: var(--bg-tertiary);
            flex-shrink: 0;
            position: relative;
        }

        .sidebar-footer-actions {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 12px;
        }

        .sidebar-footer-actions .theme-toggle-btn {
            width: 32px;
            height: 32px;
        }

        .sidebar-footer-actions .theme-toggle-btn .theme-icon {
            width: 16px;
            height: 16px;
        }

        /* ============================================
           NAVIGATION - CALM AUTHORITY STYLE
           ============================================ */
        .nav-menu {
            padding: 8px 0;
        }

        .nav-section-label {
            font-family: var(--font-body);
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-tertiary);
            padding: 16px 20px 8px;
            margin: 0;
        }

        .nav-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .nav-item {
            margin: 2px 12px;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            color: var(--text-secondary);
            text-decoration: none;
            border-radius: var(--radius-md);
            transition: all var(--transition-fast);
            cursor: pointer;
            font-family: var(--font-body);
            font-size: 14px;
            font-weight: 500;
            position: relative;
            border: 1px solid transparent;
            background: transparent;
        }

        .nav-link .nav-icon {
            font-size: 18px;
            width: 28px;
            text-align: center;
            flex-shrink: 0;
        }

        .nav-link .nav-text {
            margin-left: 10px;
        }

        .nav-link:hover {
            background: var(--bg-hover);
            color: var(--text-primary);
        }

        .nav-link.active {
            background: var(--primary-50);
            border-color: var(--primary-200);
            color: var(--primary);
        }

        .nav-link.active .nav-icon {
            color: var(--primary);
        }

        /* ============================================
           MAIN CONTENT AREA
           ============================================ */
        .main-content {
            flex: 1;
            margin-left: 240px;
            padding: 0;
            position: relative;
            min-width: 0;
            overflow-x: visible;
            overflow-y: auto;
            width: calc(100% - 240px);
            box-sizing: border-box;
            height: 100vh;
            max-height: 100vh;
            -webkit-overflow-scrolling: touch;
            background: var(--bg-primary);
        }

        /* ============================================
           SIDEBAR USER SECTION
           ============================================ */
        .sidebar-footer .user-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .sidebar-footer .user-avatar {
            width: 38px;
            height: 38px;
            border-radius: var(--radius-md);
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--font-display);
            font-size: 14px;
            font-weight: 600;
            flex-shrink: 0;
        }

        .sidebar-footer .user-details {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .sidebar-footer .user-name {
            font-family: var(--font-body);
            font-size: 13px;
            color: var(--text-primary);
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sidebar-footer .user-role {
            font-family: var(--font-mono);
            font-size: 10px;
            font-weight: 500;
            padding: 2px 8px;
            border-radius: 20px;
            display: inline-block;
            width: fit-content;
        }

        .sidebar-footer .user-role.role-admin {
            background: var(--primary-light);
            color: var(--primary);
        }

        .sidebar-footer .user-role.role-user {
            background: var(--bg-hover);
            color: var(--text-secondary);
        }

        .sidebar-footer .logout-btn {
            width: 34px;
            height: 34px;
            border-radius: var(--radius-sm);
            background: var(--bg-secondary);
            border: 1px solid var(--border-light);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
            color: var(--text-tertiary);
            flex-shrink: 0;
        }

        .sidebar-footer .logout-btn:hover {
            background: var(--danger-light);
            border-color: var(--danger);
            color: var(--danger);
        }

        .sidebar-footer .logout-btn svg {
            width: 16px;
            height: 16px;
        }

        /* 算力资源选择模块样式 - Industrial */
        .workflow-selection-container {
            width: 100%;
        }

        .workflow-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 12px;
            margin-bottom: 12px;
        }

        .workflow-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            background: var(--industrial-charcoal);
            border: 1px solid var(--industrial-dark-border);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
        }

        .workflow-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--steel-blue);
            border-radius: 6px 0 0 6px;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .workflow-item:hover:not(.in-use):not(.unavailable) {
            background: var(--industrial-graphite);
            border-color: var(--copper-accent);
        }

        .workflow-item:hover:not(.in-use):not(.unavailable)::before {
            opacity: 1;
            background: var(--copper-accent);
        }

        .workflow-item.selected:not(.in-use):not(.unavailable) {
            background: var(--industrial-graphite);
            border-color: var(--copper-accent);
            box-shadow: 0 0 15px rgba(184, 115, 51, 0.2);
        }

        .workflow-item.selected:not(.in-use):not(.unavailable)::before {
            opacity: 1;
            background: var(--copper-accent);
            box-shadow: 0 0 8px var(--copper-accent);
        }

        .workflow-item.in-use {
            background: rgba(229, 57, 53, 0.1);
            border-color: var(--signal-red);
            cursor: not-allowed;
            opacity: 0.8;
        }

        .workflow-item.in-use::before {
            opacity: 1;
            background: var(--signal-red);
        }

        .workflow-item.unavailable {
            background: var(--industrial-slate);
            border-color: var(--industrial-dark-border);
            cursor: not-allowed;
            opacity: 0.5;
        }

        .workflow-name {
            font-family: 'Barlow', sans-serif;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            flex: 1;
        }

        .workflow-item.unavailable .workflow-name {
            color: var(--text-muted);
        }

        .workflow-status {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: 12px;
        }

        .status-indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .status-indicator.status-red {
            background-color: var(--signal-red);
            box-shadow: 0 0 8px var(--signal-red);
            animation: industrial-blink 1s infinite;
        }

        .status-indicator.status-green {
            background-color: var(--signal-green);
            box-shadow: 0 0 8px var(--signal-green);
        }

        .status-indicator.status-gray {
            background-color: var(--text-muted);
            box-shadow: none;
        }

        .status-text {
            font-family: 'Barlow', sans-serif;
            font-size: 11px;
            color: var(--signal-red);
            font-weight: 500;
            white-space: nowrap;
        }

        .page-header {
            text-align: left;
            color: var(--text-primary);
            margin-bottom: 0;
            padding: 16px 24px;
            word-wrap: break-word;
            overflow-wrap: break-word;
            width: 100%;
            box-sizing: border-box;
            background: linear-gradient(180deg, var(--industrial-black) 0%, var(--industrial-charcoal) 100%);
            border-bottom: 1px solid var(--industrial-dark-border);
        }

        .page-header h1 {
            font-family: 'Chakra Petch', sans-serif;
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 0;
            letter-spacing: 2px;
            text-transform: uppercase;
            line-height: 1.4;
            word-wrap: break-word;
            overflow-wrap: break-word;
            max-width: 100%;
            white-space: normal;
            display: flex;
            align-items: center;
            gap: 12px;
            text-shadow: none;
        }

        .page-header h1::before {
            content: '';
            display: inline-block;
            width: 8px;
            height: 8px;
            background: var(--copper-accent);
            border-radius: 50%;
            box-shadow: 0 0 8px var(--copper-accent);
            animation: accent-pulse 2s ease-in-out infinite;
        }

        .page-header p {
            font-family: 'Barlow', sans-serif;
            font-size: 13px;
            font-weight: 400;
            color: var(--text-secondary);
            margin: 4px 0 0 20px;
            line-height: 1.4;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        /* ============================================
           CARD - INDUSTRIAL PANEL STYLE
           ============================================ */
        .card {
            background: var(--industrial-graphite);
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            width: 100%;
            max-width: 100%;
            overflow: visible;
            box-sizing: border-box;
            border: 1px solid var(--industrial-dark-border);
            position: relative;
        }

        /* Card corner rivets */
        .card::before,
        .card::after {
            content: '';
            position: absolute;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, var(--text-muted), var(--industrial-slate));
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.5), 0 1px 1px rgba(255,255,255,0.03);
        }

        .card::before {
            top: 8px;
            left: 8px;
        }

        .card::after {
            top: 8px;
            right: 8px;
        }

        .form-group {
            margin-bottom: 12px;
        }

        .form-group label {
            display: block;
            margin-bottom: 6px;
            font-family: 'Barlow', sans-serif;
            font-weight: 600;
            color: var(--text-primary);
            font-size: 13px;
            letter-spacing: 0.3px;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid var(--industrial-dark-border);
            border-radius: 6px;
            font-size: 14px;
            font-family: 'Barlow', sans-serif;
            transition: all 0.2s ease;
            background: var(--industrial-charcoal);
            color: var(--text-primary);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: var(--text-muted);
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--copper-accent);
            background: var(--industrial-black);
            box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.15), 0 0 15px rgba(184, 115, 51, 0.1);
        }

        .form-group input[type="checkbox"] {
            width: auto;
            margin-right: 8px;
            cursor: pointer;
            accent-color: var(--copper-accent);
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            cursor: pointer;
            color: var(--text-secondary);
        }

        .workflow-config-item {
            background: var(--industrial-charcoal);
            padding: 16px;
            border-radius: 8px;
            margin-bottom: 12px;
            border: 1px solid var(--industrial-dark-border);
            position: relative;
        }

        .workflow-config-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--steel-blue);
            border-radius: 8px 0 0 8px;
        }

        .workflow-config-item h3 {
            margin-bottom: 12px;
            font-family: 'Chakra Petch', sans-serif;
            color: var(--text-primary);
            font-size: 15px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .login-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
            background: var(--industrial-black);
            position: relative;
        }

        /* Login page grid background */
        .login-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image:
                linear-gradient(rgba(184, 115, 51, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(184, 115, 51, 0.05) 1px, transparent 1px);
            background-size: 50px 50px;
            pointer-events: none;
        }

        .login-card {
            background: var(--industrial-graphite);
            border-radius: 12px;
            padding: 40px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(184, 115, 51, 0.1);
            width: 100%;
            max-width: 400px;
            border: 1px solid var(--industrial-dark-border);
            position: relative;
            z-index: 1;
        }

        /* Login card top accent */
        .login-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--copper-accent), var(--copper-glow), var(--copper-accent));
            border-radius: 12px 12px 0 0;
        }

        .login-brand {
            text-align: center;
            margin-bottom: 24px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--industrial-dark-border);
        }

        .login-logo-icon {
            width: 50px;
            height: 50px;
            margin: 0 auto 12px;
            background: linear-gradient(135deg, var(--copper-dim), var(--copper-accent));
            border-radius: 12px;
            position: relative;
            box-shadow: 0 0 30px rgba(184, 115, 51, 0.4);
        }

        .login-logo-icon::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 24px;
            height: 24px;
            border: 3px solid var(--text-primary);
            border-radius: 50%;
        }

        .login-logo-icon::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 10px;
            height: 10px;
            background: var(--text-primary);
            border-radius: 50%;
            animation: accent-pulse 2s ease-in-out infinite;
        }

        .login-logo-text {
            font-family: 'Chakra Petch', sans-serif;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            letter-spacing: 3px;
            text-transform: uppercase;
        }

        .instance-pill-login {
            margin: 14px auto 0;
        }

        .login-card h2 {
            font-family: 'Chakra Petch', sans-serif;
            text-align: center;
            margin-bottom: 24px;
            color: var(--text-secondary);
            font-weight: 500;
            font-size: 14px;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .user-list {
            list-style: none;
            padding: 0;
        }

        .user-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background: var(--industrial-charcoal);
            border-radius: 6px;
            margin-bottom: 10px;
            border: 1px solid var(--industrial-dark-border);
            transition: all 0.2s ease;
        }

        .user-item:hover {
            border-color: var(--copper-accent);
            box-shadow: 0 0 10px rgba(184, 115, 51, 0.1);
        }

        .user-item .user-info {
            flex: 1;
        }

        .user-item .user-name {
            font-family: 'Barlow', sans-serif;
            font-weight: 600;
            color: var(--text-primary);
            font-size: 14px;
        }

        .user-item .user-actions {
            display: flex;
            gap: 10px;
        }

        .btn-small {
            padding: 6px 15px;
            font-size: 14px;
        }

        .user-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .logout-btn {
            background: #6c757d;
            color: white;
            padding: 8px 20px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
        }

        .logout-btn:hover {
            background: #5a6268;
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: #667eea;
        }

        .form-group small {
            display: none; /* 隐藏说明文字以节省空间 */
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
        
        .form-row-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
        
        .form-row-3 {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 12px;
        }
        
        .form-row-4 {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr;
            gap: 12px;
        }

        /* ============================================
           BUTTONS - INDUSTRIAL STYLE
           ============================================ */
        .btn {
            padding: 10px 20px;
            border: 1px solid transparent;
            border-radius: 6px;
            font-family: 'Barlow', sans-serif;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-right: 8px;
            letter-spacing: 0.3px;
            position: relative;
            overflow: hidden;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
            transition: left 0.4s ease;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--copper-dim), var(--copper-accent));
            color: var(--text-primary);
            border-color: var(--copper-accent);
            box-shadow: 0 2px 8px rgba(184, 115, 51, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(184, 115, 51, 0.5), 0 0 20px rgba(184, 115, 51, 0.2);
            background: linear-gradient(135deg, var(--copper-accent), var(--copper-glow));
        }

        .btn-primary:disabled {
            background: var(--industrial-slate);
            border-color: var(--industrial-dark-border);
            color: var(--text-muted);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .btn-secondary {
            background: var(--industrial-slate);
            color: var(--text-secondary);
            border-color: var(--industrial-dark-border);
        }

        .btn-secondary:hover {
            background: var(--industrial-graphite);
            border-color: var(--text-muted);
            color: var(--text-primary);
        }

        .btn-success {
            background: linear-gradient(135deg, var(--signal-green), #4caf50);
            color: white;
            border-color: var(--signal-green);
        }

        .btn-success:hover {
            box-shadow: 0 4px 15px rgba(67, 160, 71, 0.4);
            transform: translateY(-2px);
        }

        .btn-warning {
            background: linear-gradient(135deg, var(--signal-amber), #ffc107);
            color: var(--industrial-black);
            border-color: var(--signal-amber);
        }

        .btn-warning:hover {
            box-shadow: 0 4px 15px rgba(255, 179, 0, 0.4);
            transform: translateY(-2px);
        }

        .btn-danger {
            background: linear-gradient(135deg, var(--signal-red), #f44336);
            color: white;
            border-color: var(--signal-red);
        }

        .btn-danger:hover {
            box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
            transform: translateY(-2px);
        }

        .btn-outline {
            background: transparent;
            color: var(--copper-accent);
            border: 1px solid var(--copper-accent);
        }

        .btn-outline:hover {
            background: rgba(184, 115, 51, 0.1);
            box-shadow: 0 0 15px rgba(184, 115, 51, 0.2);
        }

        .loading {
            text-align: center;
            padding: 20px;
            color: var(--copper-accent);
        }

        .spinner {
            border: 4px solid var(--industrial-slate);
            border-top: 4px solid var(--copper-accent);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* 状态指示点样式 - Industrial */
        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
            flex-shrink: 0;
            box-shadow: 0 0 6px currentColor;
        }

        .status-dot-red-blink {
            background-color: var(--signal-red);
            box-shadow: 0 0 8px var(--signal-red);
            animation: industrial-blink 1s infinite;
        }

        .status-dot-green {
            background-color: var(--signal-green);
            box-shadow: 0 0 8px var(--signal-green);
        }

        .status-dot-gray {
            background-color: var(--text-muted);
            box-shadow: none;
        }

        @keyframes industrial-blink {
            0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--signal-red); }
            50% { opacity: 0.4; box-shadow: 0 0 4px var(--signal-red); }
        }

        /* 固定状态条样式 - Industrial */
        .task-status-bar {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            background: var(--industrial-graphite);
            border: 1px solid var(--industrial-dark-border);
            border-radius: 6px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
            padding: 8px 16px;
            display: none;
        }

        .task-status-bar-inline {
            display: inline-flex;
            align-items: center;
            background: var(--industrial-charcoal);
            border: 1px solid var(--industrial-dark-border);
            border-radius: 4px;
            padding: 4px 8px;
            font-size: 11px;
            white-space: nowrap;
        }

        .task-status-content {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .spinner-small {
            border: 2px solid var(--industrial-slate);
            border-top: 2px solid var(--copper-accent);
            border-radius: 50%;
            width: 14px;
            height: 14px;
            animation: spin 1s linear infinite;
            flex-shrink: 0;
        }

        .task-status-text {
            font-family: 'Barlow', sans-serif;
            color: var(--copper-accent);
            font-weight: 500;
            white-space: nowrap;
            font-size: 11px;
        }

        .task-progress-info {
            font-family: 'JetBrains Mono', monospace;
            color: var(--text-secondary);
            font-size: 10px;
            white-space: nowrap;
            background: var(--industrial-slate);
            padding: 2px 6px;
            border-radius: 3px;
        }

        .task-status-buttons {
            display: flex;
            gap: 4px;
            margin-left: auto;
        }

        .result-panel.has-status-bar .result-header {
            padding-bottom: 8px;
        }

        .btn-small {
            padding: 4px 12px !important;
            font-size: 11px !important;
        }

        .result-section {
            margin-top: 30px;
        }

        .result-container {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-top: 16px;
            height: calc(100vh - 400px); /* 自适应屏幕高度 */
            min-height: 400px;
            max-height: calc(100vh - 400px);
        }

        /* 数据源管理页面自适应布局 */
        .dbconfig-page {
            display: flex;
            flex-direction: column;
            height: calc(100vh - 48px);
            min-height: calc(100vh - 48px);
            max-height: calc(100vh - 48px);
            overflow: hidden;
        }
        
        .dbconfig-page-content {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            overflow-x: hidden;
        }
        
        /* 用户管理页面自适应布局 */
        .users-page {
            display: flex;
            flex-direction: column;
            height: calc(100vh - 48px);
            min-height: calc(100vh - 48px);
            max-height: calc(100vh - 48px);
            overflow: hidden;
        }
        
        .users-page-content {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            overflow-x: hidden;
        }
        
        .result-panel {
            background: var(--industrial-graphite);
            border-radius: 8px;
            padding: 16px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.4);
            width: 100%;
            max-width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid var(--industrial-dark-border);
        }

        .log-panel {
            background: var(--industrial-black);
            border-radius: 8px;
            padding: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.4);
            height: 100%;
            max-height: 400px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid var(--industrial-dark-border);
        }

        .result-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--industrial-dark-border);
            flex-shrink: 0;
        }

        .result-header h2 {
            font-family: 'Chakra Petch', sans-serif;
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin: 0;
        }

        .log-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--industrial-dark-border);
            flex-shrink: 0;
        }

        .log-header h2 {
            font-family: 'Chakra Petch', sans-serif;
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin: 0;
        }

        .result-content {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 10px;
            font-family: 'Barlow', sans-serif;
            font-size: 13px;
            min-height: 0;
            color: var(--text-secondary);
        }

        .log-content {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 10px;
            background: var(--industrial-black);
            color: var(--text-secondary);
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            line-height: 1.5;
            white-space: pre-wrap;
            word-wrap: break-word;
            min-height: 0;
            border-radius: 4px;
        }

        .log-content::-webkit-scrollbar {
            width: 6px;
        }

        .log-content::-webkit-scrollbar-track {
            background: var(--industrial-charcoal);
            border-radius: 3px;
        }

        .log-content::-webkit-scrollbar-thumb {
            background: var(--industrial-slate);
            border-radius: 3px;
        }

        .log-content::-webkit-scrollbar-thumb:hover {
            background: var(--text-muted);
        }

        .result-content::-webkit-scrollbar {
            width: 6px;
        }

        .result-content::-webkit-scrollbar-track {
            background: var(--industrial-charcoal);
            border-radius: 3px;
        }

        .result-content::-webkit-scrollbar-thumb {
            background: var(--industrial-slate);
            border-radius: 3px;
        }

        .result-content::-webkit-scrollbar-thumb:hover {
            background: var(--text-muted);
        }

        .summary {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            margin-bottom: 12px;
        }

        .summary-item {
            background: var(--industrial-charcoal);
            padding: 12px;
            border-radius: 6px;
            text-align: center;
            border: 1px solid var(--industrial-dark-border);
            position: relative;
        }

        .summary-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--steel-blue);
        }

        .summary-item .label {
            font-family: 'Barlow', sans-serif;
            font-size: 11px;
            color: var(--text-muted);
            margin-bottom: 5px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .summary-item .value {
            font-family: 'JetBrains Mono', monospace;
            font-size: 24px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .summary-item .value.success {
            color: var(--signal-green);
            text-shadow: 0 0 10px rgba(67, 160, 71, 0.3);
        }

        .summary-item .value.failure {
            color: var(--signal-red);
            text-shadow: 0 0 10px rgba(229, 57, 53, 0.3);
        }

        .results-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }

        .results-table th,
        .results-table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid var(--industrial-dark-border);
            font-family: 'Barlow', sans-serif;
            color: var(--text-secondary);
        }

        .results-table th {
            background: var(--industrial-slate);
            font-weight: 600;
            color: var(--text-primary);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            position: sticky;
            top: 0;
        }

        .results-table tr:hover {
            background: var(--industrial-graphite);
        }

        .status-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 4px;
            font-family: 'Barlow', sans-serif;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .status-badge.success {
            background: rgba(67, 160, 71, 0.15);
            color: var(--signal-green);
            border: 1px solid rgba(67, 160, 71, 0.3);
        }

        .status-badge.failure {
            background: rgba(229, 57, 53, 0.15);
            color: var(--signal-red);
            border: 1px solid rgba(229, 57, 53, 0.3);
        }

        .response-content {
            max-width: 600px;
            max-height: 300px;
            overflow: auto;
            background: var(--industrial-black);
            padding: 15px;
            border-radius: 6px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            margin-top: 10px;
            border: 1px solid var(--industrial-dark-border);
            color: var(--text-secondary);
        }

        .response-content pre {
            margin: 0;
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        .error-message {
            background: rgba(229, 57, 53, 0.1);
            color: var(--signal-red);
            padding: 15px;
            border-radius: 6px;
            margin-top: 20px;
            border-left: 3px solid var(--signal-red);
            font-family: 'Barlow', sans-serif;
        }

        .success-message {
            background: rgba(67, 160, 71, 0.1);
            color: var(--signal-green);
            padding: 15px;
            border-radius: 6px;
            margin-top: 20px;
            border-left: 3px solid var(--signal-green);
            font-family: 'Barlow', sans-serif;
        }

        .expandable {
            cursor: pointer;
            color: #667eea;
            text-decoration: underline;
        }

        .expandable:hover {
            color: #764ba2;
        }

        .collapsible-content {
            display: none;
            margin-top: 10px;
        }

        .collapsible-content.show {
            display: block;
        }

        .ai-report-page .page-header {
            margin-bottom: 20px;
        }

        .ai-report-page {
            display: flex;
            flex-direction: column;
            min-height: calc(100vh - 48px);
            height: calc(100vh - 48px);
            overflow: hidden;
        }

        .ai-report-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 16px;
        }

        .ai-report-toolbar-filters,
        .ai-report-toolbar-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .ai-report-toolbar-filters select {
            min-width: 200px;
            padding: 8px 10px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            background: var(--bg-secondary);
            color: var(--text-primary);
            font-size: 13px;
        }

        .ai-report-table-wrap {
            flex: 1;
            min-height: 0;
            border: 1px solid var(--border-light);
            border-radius: 12px;
            background: var(--bg-secondary);
            overflow: auto;
            box-shadow: var(--shadow-sm);
        }

        .ai-report-table {
            width: 100%;
            min-width: 1020px;
            border-collapse: collapse;
        }

        .ai-report-table th,
        .ai-report-table td {
            padding: 12px 14px;
            border-bottom: 1px solid var(--border-color);
            text-align: left;
            color: var(--text-primary);
            font-size: 13px;
            white-space: nowrap;
        }

        .ai-report-table th {
            background: var(--bg-tertiary);
            font-weight: 600;
            color: var(--text-secondary);
            font-size: 12px;
        }

        .ai-report-table tbody tr:hover td {
            background: var(--bg-hover);
        }

        .ai-report-type-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            border-radius: 6px;
            padding: 4px 10px;
            font-size: 12px;
            font-weight: 600;
        }

        .ai-report-status {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            text-transform: lowercase;
        }

        .ai-report-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .ai-report-action-btn {
            min-width: 84px;
            padding: 7px 10px;
            border-radius: var(--radius-sm);
            font-size: 12px;
            font-weight: 500;
        }

        .ai-report-action-btn.is-visual {
            border: 1px solid var(--primary-200);
            color: var(--primary-700);
            background: var(--primary-50);
        }

        .theme-dark .ai-report-action-btn.is-visual,
        [data-theme="dark"] .ai-report-action-btn.is-visual {
            border-color: var(--primary-light);
            color: #cfe2ff;
            background: rgba(59, 130, 246, 0.18);
        }

        .ai-report-empty {
            text-align: center;
            color: var(--text-secondary);
            padding: 28px 16px !important;
        }

        .ai-report-pagination {
            margin-top: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            color: var(--text-secondary);
            font-size: 13px;
        }

        .ai-report-detail {
            margin-top: 16px;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background: var(--dark-card);
            padding: 14px;
        }

        .ai-report-detail-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .ai-report-detail-header h3 {
            margin: 0;
            font-size: 15px;
            color: var(--text-primary);
        }

        .ai-report-detail-meta {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
            margin-bottom: 10px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        .ai-report-detail pre {
            margin: 0;
            max-height: 360px;
            overflow: auto;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: var(--industrial-black);
            color: #d6e2ff;
            padding: 12px;
            font-size: 12px;
            line-height: 1.45;
            white-space: pre;
        }

        .ai-report-detail-loading {
            color: var(--text-secondary);
            font-size: 13px;
        }

        .ai-report-modal-mask {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.62);
            backdrop-filter: blur(4px);
            z-index: 1200;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 24px;
        }

        .ai-report-modal {
            width: min(1120px, 96vw);
            max-height: 88vh;
            display: flex;
            flex-direction: column;
            border: 1px solid var(--border-light);
            border-radius: 14px;
            background: var(--bg-secondary);
            box-shadow: var(--shadow-xl);
            overflow: hidden;
            color: var(--text-primary);
        }

        .ai-report-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
            padding: 18px 20px;
            border-bottom: 1px solid var(--border-light);
            background: var(--bg-tertiary);
        }

        .ai-report-modal-header h3 {
            margin: 0;
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .ai-report-modal-header p {
            margin: 6px 0 0;
            font-size: 13px;
            color: var(--text-secondary);
        }

        .ai-report-modal-body {
            padding: 16px 20px 20px;
            overflow: auto;
            background: var(--bg-secondary);
        }

        .ai-report-json-wrap pre {
            margin: 0;
            max-height: 66vh;
            overflow: auto;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            background: var(--bg-primary);
            color: var(--text-primary);
            padding: 14px;
            font-size: 13px;
            line-height: 1.6;
            white-space: pre-wrap;
            word-break: break-word;
        }
        .ai-report-dashboard { display: grid; gap: 14px; }
        .ai-report-top-strip {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
            gap: 8px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-light);
            border-radius: 12px;
            padding: 10px;
        }
        .ai-report-top-strip .meta-item { padding: 8px 10px; border-radius: 10px; background: var(--bg-secondary); border: 1px solid var(--border-light); }
        .ai-report-top-strip .meta-label { display: block; font-size: 11px; color: var(--text-tertiary); margin-bottom: 4px; }
        .ai-report-top-strip .meta-value { display: block; font-size: 13px; color: var(--text-primary); font-weight: 600; }

        .ai-report-hero {
            display: grid;
            grid-template-columns: 220px 1fr;
            gap: 12px;
            border-radius: 12px;
            border: 1px solid #FCD34D;
            background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
            padding: 14px;
        }
        .hero-main { display: flex; flex-direction: column; justify-content: center; border-radius: 10px; background: rgba(255,255,255,0.55); border: 1px solid rgba(245,158,11,0.25); padding: 12px; }
        .hero-number { font-size: 34px; line-height: 1; font-weight: 700; color: #B45309; }
        .hero-label { margin-top: 6px; font-size: 12px; color: #92400E; font-weight: 600; }
        .hero-aside { display: grid; gap: 8px; align-content: center; }
        .hero-title { font-size: 14px; font-weight: 700; color: #92400E; }
        .hero-finding { font-size: 13px; color: #78350F; line-height: 1.5; }
        .hero-chips { display: flex; flex-wrap: wrap; gap: 6px; }
        .hero-chip { font-size: 11px; color: #92400E; border: 1px solid rgba(146,64,14,0.18); background: rgba(255,255,255,0.6); border-radius: 999px; padding: 3px 8px; }

        .ai-report-kpi-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px;
        }

        .kpi-card {
            border: 1px solid var(--border-light);
            border-radius: 12px;
            background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
            padding: 12px;
            box-shadow: var(--shadow-sm);
        }

        .kpi-label {
            display: block;
            color: var(--text-secondary);
            font-size: 12px;
            margin-bottom: 6px;
        }

        .kpi-value {
            display: block;
            color: var(--text-primary);
            font-size: 24px;
            line-height: 1.1;
            font-weight: 700;
            letter-spacing: 0.2px;
        }

        .ai-report-focus-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 12px;
        }

        .focus-panel {
            border: 1px solid var(--border-light);
            border-radius: 12px;
            padding: 12px;
            background: var(--bg-secondary);
            box-shadow: var(--shadow-sm);
            border-left-width: 4px;
        }

        .focus-head {
            margin-bottom: 8px;
            display: grid;
            gap: 8px;
        }

        .focus-head h4 {
            margin: 0;
            font-size: 14px;
            color: var(--text-primary);
            font-weight: 700;
        }

        .focus-metrics {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .metric-chip {
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            border: 1px solid var(--border-light);
            background: var(--bg-primary);
            padding: 2px 8px;
            font-size: 11px;
            color: var(--text-secondary);
        }

        .focus-panel.tone-amber { border-left-color: #F59E0B; background: #FFFBEB; }
        .focus-panel.tone-blue { border-left-color: #3B82F6; background: #EFF6FF; }
        .focus-panel.tone-purple { border-left-color: #A855F7; background: #FAF5FF; }
        .focus-panel.tone-red { border-left-color: #EF4444; background: #FEF2F2; }
        .focus-panel.tone-green { border-left-color: #10B981; background: #ECFDF5; }

        .ai-report-card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 12px;
        }
        .report-card {
            border: 1px solid var(--border-light);
            border-radius: 12px;
            background: var(--bg-secondary);
            box-shadow: var(--shadow-sm);
            padding: 12px;
            border-left-width: 4px;
        }
        .report-card .card-head { margin-bottom: 8px; }
        .report-card .card-title { display: block; font-size: 14px; font-weight: 700; color: var(--text-primary); }
        .report-card .card-sub { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
        .biz-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
        .biz-list li { color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
        .biz-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
        .biz-actions h5 { margin: 0 0 6px; color: var(--text-primary); font-size: 13px; }
        .card-rows { display: grid; gap: 6px; }
        .card-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px dashed var(--border-light); padding-bottom: 5px; }
        .card-row:last-child { border-bottom: none; padding-bottom: 0; }
        .row-label { font-size: 13px; color: var(--text-secondary); }
        .row-count { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--primary); }

        .report-card.tone-amber { border-left-color: #F59E0B; background: #FFFBEB; }
        .report-card.tone-amber .row-count { background: #F59E0B; }
        .report-card.tone-blue { border-left-color: #3B82F6; background: #EFF6FF; }
        .report-card.tone-blue .row-count { background: #3B82F6; }
        .report-card.tone-purple { border-left-color: #A855F7; background: #FAF5FF; }
        .report-card.tone-purple .row-count { background: #A855F7; }
        .report-card.tone-red { border-left-color: #EF4444; background: #FEF2F2; }
        .report-card.tone-red .row-count { background: #EF4444; }
        .report-card.tone-green { border-left-color: #10B981; background: #ECFDF5; }
        .report-card.tone-green .row-count { background: #10B981; }
        .report-card.tone-yellow { border-left-color: #EAB308; background: #FEFCE8; }
        .report-card.tone-yellow .row-count { background: #EAB308; }
        .report-card.tone-cyan { border-left-color: #06B6D4; background: #ECFEFF; }
        .report-card.tone-cyan .row-count { background: #06B6D4; }

        .ai-report-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        .bottom-panel {
            border: 1px solid var(--border-light);
            background: var(--bg-secondary);
            border-radius: 12px;
            padding: 12px;
            box-shadow: var(--shadow-sm);
        }
        .bottom-panel h4 { margin: 0 0 8px; font-size: 14px; color: var(--text-primary); }
        .bottom-panel ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
        .bottom-panel li { color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
        .supplement-groups {
            max-height: 360px;
            overflow: auto;
            display: grid;
            gap: 10px;
            padding-right: 4px;
        }
        .supplement-group {
            border: 1px solid var(--border-light);
            border-radius: 10px;
            background: var(--bg-primary);
            padding: 10px;
        }
        .supplement-group h5 {
            margin: 0 0 6px;
            font-size: 13px;
            font-weight: 700;
            color: var(--text-primary);
        }
        .supplement-group ul { margin: 0; padding-left: 16px; display: grid; gap: 5px; }
        .supplement-group li { color: var(--text-secondary); font-size: 12px; line-height: 1.45; }

        .ai-report-full-sections {
            display: grid;
            gap: 10px;
        }

        .ai-report-full-sections .full-title {
            margin: 0;
            font-size: 15px;
            color: var(--text-primary);
            font-weight: 700;
        }

        .full-section-card {
            border: 1px solid var(--border-light);
            border-radius: 12px;
            background: var(--bg-secondary);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
        }

        .full-section-card > summary {
            list-style: none;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 12px;
            background: var(--bg-tertiary);
            border-bottom: 1px solid var(--border-light);
        }

        .full-section-card > summary::-webkit-details-marker {
            display: none;
        }

        .full-section-card > summary .name {
            font-size: 14px;
            color: var(--text-primary);
            font-weight: 600;
        }

        .full-section-card > summary .count {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .full-table-wrap {
            max-height: 280px;
            overflow: auto;
        }

        .full-table {
            width: 100%;
            border-collapse: collapse;
            table-layout: fixed;
        }

        .full-table th,
        .full-table td {
            border-bottom: 1px solid var(--border-light);
            padding: 8px 10px;
            font-size: 12px;
            text-align: left;
            vertical-align: top;
            color: var(--text-primary);
        }

        .full-table th {
            position: sticky;
            top: 0;
            background: var(--bg-tertiary);
            z-index: 1;
            color: var(--text-secondary);
            font-weight: 600;
        }

        .full-table td.path {
            word-break: break-all;
            color: var(--text-secondary);
            font-family: var(--font-mono);
        }

        .full-table .type-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 2px 8px;
            border-radius: 999px;
            border: 1px solid var(--border-medium);
            background: var(--bg-primary);
            color: var(--text-secondary);
            font-size: 11px;
            font-weight: 600;
            text-transform: lowercase;
        }

        .full-table td.value {
            white-space: pre-wrap;
            word-break: break-word;
            line-height: 1.55;
            color: var(--text-primary);
        }

        .theme-dark .ai-report-hero,
        [data-theme="dark"] .ai-report-hero {
            background: linear-gradient(135deg, rgba(120,53,15,0.36), rgba(146,64,14,0.24));
            border-color: rgba(245, 158, 11, 0.35);
        }
        .theme-dark .hero-main,
        [data-theme="dark"] .hero-main { background: rgba(0,0,0,0.18); }
        .theme-dark .hero-number,
        [data-theme="dark"] .hero-number { color: #FCD34D; }
        .theme-dark .hero-label, .theme-dark .hero-title, .theme-dark .hero-finding, .theme-dark .hero-chip,
        [data-theme="dark"] .hero-label, [data-theme="dark"] .hero-title, [data-theme="dark"] .hero-finding, [data-theme="dark"] .hero-chip {
            color: #FDE68A;
        }

        @media (max-width: 900px) {
            .ai-report-modal-mask {
                padding: 10px;
            }

            .ai-report-modal {
                width: 100%;
                max-height: 92vh;
            }

            .ai-report-modal-header h3 {
                font-size: 20px;
            }

            .ai-report-hero {
                grid-template-columns: 1fr;
            }

            .biz-actions {
                grid-template-columns: 1fr;
            }

            .ai-report-bottom-grid {
                grid-template-columns: 1fr;
            }

            .ai-report-page {
                height: auto;
                min-height: calc(100vh - 48px);
                overflow: visible;
            }

            .ai-report-table-wrap {
                min-height: 300px;
            }
        }

        /* ===== Sales Report V2 — 穿透式分析 ===== */
        .ai-report-modal--wide {
            width: min(1320px, 96vw);
        }

        .sr-v2 {
            display: flex;
            flex-direction: column;
            gap: 36px;
            padding: 24px 40px 40px;
            background: #FAFAFA;
            font-family: 'IBM Plex Mono', 'SF Mono', ui-monospace, monospace;
            color: #0A0A0A;
        }

        .sr-v2-header {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
        }

        .sr-v2-header-left {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .sr-v2-title {
            font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
            font-size: 32px;
            font-weight: 600;
            letter-spacing: -1.5px;
            color: #0A0A0A;
            margin: 0;
            line-height: 1.2;
        }

        .sr-v2-meta {
            font-size: 12px;
            color: #5E5E5E;
            margin: 0;
        }

        .sr-v2-divider {
            height: 1px;
            background: #E5E5E5;
            width: 100%;
            flex-shrink: 0;
        }

        .sr-v2-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 11px;
            font-weight: 500;
            border: none;
            cursor: pointer;
            border-radius: 0;
            transition: background 0.15s;
        }

        .sr-v2-btn-outline {
            background: transparent;
            border: 1px solid #E5E5E5;
            color: #5E5E5E;
        }

        .sr-v2-btn-outline:hover {
            background: #F0F0F0;
            color: #0A0A0A;
        }

        .sr-v2-btn-sm {
            padding: 4px 10px;
            font-size: 11px;
        }

        /* Section */
        .sr-v2-section {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .sr-v2-section-label {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .sr-v2-section-bar {
            width: 3px;
            height: 20px;
            display: inline-block;
            flex-shrink: 0;
        }

        .sr-v2-section-title {
            font-family: 'Sora', -apple-system, sans-serif;
            font-size: 20px;
            font-weight: 600;
            letter-spacing: -1px;
            color: #0A0A0A;
        }

        .sr-v2-section-tag {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 10px;
            font-weight: 500;
            padding: 3px 8px;
        }

        /* KPI */
        .sr-v2-kpi-row {
            display: flex;
            width: 100%;
        }

        .sr-v2-kpi {
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1;
            padding: 0 24px;
        }

        .sr-v2-kpi--first {
            padding-left: 0;
            border-right: 1px solid #E5E5E5;
        }

        .sr-v2-kpi--last {
            padding-right: 0;
            border-left: 1px solid #E5E5E5;
        }

        .sr-v2-kpi-label {
            font-size: 11px;
            color: #999999;
        }

        .sr-v2-kpi-value {
            font-family: 'Sora', -apple-system, sans-serif;
            font-size: 28px;
            font-weight: 700;
            letter-spacing: -1px;
        }

        /* Findings */
        .sr-v2-findings-row {
            display: flex;
            gap: 32px;
        }

        .sr-v2-findings-col {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .sr-v2-findings-title {
            font-family: 'Sora', -apple-system, sans-serif;
            font-size: 13px;
            font-weight: 600;
            color: #0A0A0A;
            margin: 0;
        }

        .sr-v2-finding-item {
            font-size: 12px;
            color: #5E5E5E;
            line-height: 1.6;
            margin: 0;
        }

        .sr-v2-text-muted {
            color: #999999;
        }

        .sr-v2-analysis-overview {
            font-size: 13px;
            color: #4A4A4A;
            line-height: 1.7;
            margin: 8px 0 12px;
            padding: 10px 14px;
            background: #FAFAFA;
            border-left: 3px solid #DC2626;
            border-radius: 0 6px 6px 0;
        }

        /* Note Grid */
        .sr-v2-note-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 20px;
        }

        .sr-v2-note-card {
            background: #FFFFFF;
            border: 1px solid #E5E5E5;
            border-left: 3px solid #D4D4D8;
            padding: 18px 20px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            min-height: 220px;
        }

        .sr-v2-note-card.tone-blue {
            border-left-color: #3B82F6;
        }

        .sr-v2-note-card.tone-red {
            border-left-color: #DC2626;
        }

        .sr-v2-note-card.tone-green {
            border-left-color: #16A34A;
        }

        .sr-v2-note-card.tone-amber {
            border-left-color: #F59E0B;
        }

        .sr-v2-note-card.tone-purple {
            border-left-color: #7C3AED;
        }

        .sr-v2-note-head {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .sr-v2-note-title {
            font-family: 'Sora', -apple-system, sans-serif;
            font-size: 16px;
            font-weight: 600;
            letter-spacing: -0.4px;
            color: #0A0A0A;
            margin: 0;
        }

        .sr-v2-note-metrics {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .sr-v2-note-chip {
            display: inline-flex;
            align-items: center;
            padding: 4px 8px;
            font-size: 10px;
            font-weight: 500;
            color: #525252;
            background: #F5F5F5;
            border: 1px solid #E5E5E5;
        }

        .sr-v2-note-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .sr-v2-note-list li {
            position: relative;
            padding-left: 14px;
            font-size: 12px;
            line-height: 1.7;
            color: #4A4A4A;
        }

        .sr-v2-note-list li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 9px;
            width: 5px;
            height: 5px;
            border-radius: 999px;
            background: currentColor;
            opacity: 0.45;
        }

        /* Dimension Grid */
        .sr-v2-dim-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .sr-v2-dim-card {
            background: #FFFFFF;
            border: 1px solid #E5E5E5;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .sr-v2-dim-card-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .sr-v2-dim-card-title {
            font-family: 'Sora', -apple-system, sans-serif;
            font-size: 14px;
            font-weight: 600;
            color: #0A0A0A;
        }

        .sr-v2-dim-card-total {
            font-family: 'Sora', -apple-system, sans-serif;
            font-size: 24px;
            font-weight: 600;
            letter-spacing: -1px;
        }


        .sr-v2-dim-card-sep {
            height: 1px;
            background: #E5E5E5;
        }

        .sr-v2-dim-card-items {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .sr-v2-dim-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            padding: 4px 8px;
            margin: -4px -8px;
            border-radius: 4px;
            transition: background 0.15s;
        }

        .sr-v2-dim-row:hover {
            background: #F8FAFC;
        }

        .sr-v2-dim-row--active {
            background: #EFF6FF;
        }

        .sr-v2-dim-row-left {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .sr-v2-dim-dot {
            width: 6px;
            height: 6px;
            border-radius: 3px;
            flex-shrink: 0;
        }

        .sr-v2-dim-row-name {
            font-size: 13px;
            color: #5E5E5E;
        }

        .sr-v2-dim-row-right {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .sr-v2-dim-row-count {
            font-family: 'Sora', -apple-system, sans-serif;
            font-size: 16px;
            font-weight: 600;
        }

        .sr-v2-dim-row-arrow {
            color: #999999;
            font-size: 14px;
        }

        .sr-v2-dim-row-empty {
            font-size: 12px;
            color: #999999;
        }

        /* Drill Hint */
        .sr-v2-drill-hint {
            background: #F8FAFC;
            border: 1px solid #E5E5E5;
            border-radius: 6px;
            padding: 12px 16px;
            text-align: center;
            font-size: 11px;
            color: #999999;
        }

        /* Drilldown Panel */
        .sr-v2-drilldown {
            background: #FFFFFF;
            border: 1px solid #E5E5E5;
            overflow: hidden;
        }

        .sr-v2-drilldown-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            border-bottom: 1px solid #E5E5E5;
            background: #F8FAFC;
        }

        .sr-v2-drilldown-title {
            font-family: 'Sora', -apple-system, sans-serif;
            font-size: 14px;
            font-weight: 600;
            color: #0A0A0A;
        }

        .sr-v2-drilldown-count {
            font-weight: 400;
            color: #999999;
            margin-left: 8px;
        }

        .sr-v2-drilldown-list {
            max-height: 400px;
            overflow-y: auto;
        }

        .sr-v2-drilldown-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 20px;
            border-bottom: 1px solid #F5F5F5;
            gap: 12px;
        }

        .sr-v2-drilldown-item:last-child {
            border-bottom: none;
        }

        .sr-v2-drilldown-item:hover {
            background: #FAFAFA;
        }

        .sr-v2-drilldown-item-body {
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1;
            min-width: 0;
        }

        .sr-v2-drilldown-item-meta {
            font-size: 11px;
            color: #999999;
        }

        .sr-v2-drilldown-item-text {
            font-size: 13px;
            color: #0A0A0A;
            line-height: 1.5;
        }

        .sr-v2-drilldown-empty {
            padding: 32px;
            text-align: center;
            color: #999999;
            font-size: 13px;
        }

        /* V2 Dark theme */
        .theme-dark .sr-v2,
        [data-theme="dark"] .sr-v2 {
            background: #1A1A1A;
            color: #FAFAFA;
        }

        .theme-dark .sr-v2-title,
        .theme-dark .sr-v2-section-title,
        .theme-dark .sr-v2-findings-title,
        .theme-dark .sr-v2-dim-card-title,
        .theme-dark .sr-v2-drilldown-title,
        .theme-dark .sr-v2-drilldown-item-text,
        [data-theme="dark"] .sr-v2-title,
        [data-theme="dark"] .sr-v2-section-title,
        [data-theme="dark"] .sr-v2-findings-title,
        [data-theme="dark"] .sr-v2-dim-card-title,
        [data-theme="dark"] .sr-v2-drilldown-title,
        [data-theme="dark"] .sr-v2-drilldown-item-text {
            color: #FAFAFA;
        }

        .theme-dark .sr-v2-meta,
        .theme-dark .sr-v2-finding-item,
        .theme-dark .sr-v2-dim-row-name,
        .theme-dark .sr-v2-note-list li,
        [data-theme="dark"] .sr-v2-meta,
        [data-theme="dark"] .sr-v2-finding-item,
        [data-theme="dark"] .sr-v2-dim-row-name,
        [data-theme="dark"] .sr-v2-note-list li {
            color: #A0A0A0;
        }

        .theme-dark .sr-v2-note-title,
        [data-theme="dark"] .sr-v2-note-title {
            color: #FAFAFA;
        }

        .theme-dark .sr-v2-dim-card,
        .theme-dark .sr-v2-note-card,
        .theme-dark .sr-v2-drilldown,
        [data-theme="dark"] .sr-v2-dim-card,
        [data-theme="dark"] .sr-v2-note-card,
        [data-theme="dark"] .sr-v2-drilldown {
            background: #222222;
            border-color: #333333;
        }

        .theme-dark .sr-v2-note-chip,
        [data-theme="dark"] .sr-v2-note-chip {
            color: #D4D4D8;
            background: #2A2A2A;
            border-color: #3A3A3A;
        }

        .theme-dark .sr-v2-divider,
        .theme-dark .sr-v2-dim-card-sep,
        .theme-dark .sr-v2-drill-hint,
        .theme-dark .sr-v2-drilldown-header,
        [data-theme="dark"] .sr-v2-divider,
        [data-theme="dark"] .sr-v2-dim-card-sep,
        [data-theme="dark"] .sr-v2-drill-hint,
        [data-theme="dark"] .sr-v2-drilldown-header {
            background: #333333;
            border-color: #333333;
        }

        .theme-dark .sr-v2-dim-row:hover,
        [data-theme="dark"] .sr-v2-dim-row:hover {
            background: #2A2A2A;
        }

        .theme-dark .sr-v2-dim-row--active,
        [data-theme="dark"] .sr-v2-dim-row--active {
            background: rgba(59, 130, 246, 0.15);
        }

        .theme-dark .sr-v2-drilldown-item:hover,
        [data-theme="dark"] .sr-v2-drilldown-item:hover {
            background: #2A2A2A;
        }

        .theme-dark .sr-v2-drilldown-item,
        [data-theme="dark"] .sr-v2-drilldown-item {
            border-bottom-color: #333333;
        }

        .theme-dark .sr-v2-kpi,
        [data-theme="dark"] .sr-v2-kpi {
            border-color: #333333;
        }

        .theme-dark .sr-v2-btn-outline,
        [data-theme="dark"] .sr-v2-btn-outline {
            border-color: #444444;
            color: #A0A0A0;
        }

        .theme-dark .sr-v2-btn-outline:hover,
        [data-theme="dark"] .sr-v2-btn-outline:hover {
            background: #333333;
            color: #FAFAFA;
        }

        /* V2 Header scope badge */
        .sr-v2-title-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .sr-v2-scope-badge {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 600;
            line-height: 1.4;
            white-space: nowrap;
        }

        /* V2 Sub-reports accordion */
        .sr-v2-accordion {
            border: 1px solid #E5E7EB;
            border-radius: 6px;
            overflow: hidden;
        }
        .sr-v2-accordion-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 20px;
            background: #F8FAFC;
            cursor: pointer;
            user-select: none;
        }
        .sr-v2-accordion-toggle:hover {
            background: #F1F5F9;
        }
        .sr-v2-accordion-toggle-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .sr-v2-accordion-bar {
            display: inline-block;
            width: 3px;
            height: 16px;
            border-radius: 2px;
            flex-shrink: 0;
        }
        .sr-v2-accordion-title {
            font-size: 14px;
            font-weight: 600;
            color: #1E293B;
        }
        .sr-v2-accordion-pill {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 600;
            line-height: 1.4;
        }
        .sr-v2-accordion-hint {
            font-size: 12px;
            color: #94A3B8;
        }
        .sr-v2-accordion-btn {
            border: none;
            padding: 6px 14px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            white-space: nowrap;
        }
        .sr-v2-accordion-btn:hover {
            opacity: 0.9;
        }
        .sr-v2-accordion-body {
            border-top: 1px solid #E5E7EB;
        }
        .sr-v2-accordion-loading,
        .sr-v2-accordion-empty {
            padding: 24px 20px;
            text-align: center;
            color: #94A3B8;
            font-size: 13px;
        }
        .sr-v2-accordion-head {
            display: flex;
            align-items: center;
            padding: 10px 20px;
            background: #FAFAFA;
            border-bottom: 1px solid #E5E7EB;
            font-size: 12px;
            font-weight: 600;
            color: #64748B;
        }
        .sr-v2-accordion-row {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            border-bottom: 1px solid #F1F5F9;
            transition: background 0.15s;
        }
        .sr-v2-accordion-row:last-child {
            border-bottom: none;
        }
        .sr-v2-accordion-row:hover {
            background: #F8FAFC;
        }
        .sr-v2-acc-col {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: #334155;
        }
        .sr-v2-acc-col--name {
            flex: 1;
            min-width: 0;
            font-weight: 600;
        }
        .sr-v2-acc-col--num {
            width: 70px;
            text-align: center;
            justify-content: center;
        }
        .sr-v2-acc-col--rate {
            width: 120px;
        }
        .sr-v2-acc-col--action {
            width: 90px;
            justify-content: flex-end;
        }
        .sr-v2-acc-bar {
            display: inline-block;
            height: 4px;
            border-radius: 2px;
            min-width: 2px;
        }
        .sr-v2-acc-link--team {
            color: #4F46E5;
            cursor: pointer;
        }
        .sr-v2-acc-link--team:hover {
            text-decoration: underline;
        }
        .sr-v2-acc-link--company {
            color: #EA580C;
            cursor: pointer;
        }
        .sr-v2-acc-link--company:hover {
            text-decoration: underline;
        }
        .sr-v2-acc-goto {
            background: transparent;
            border: 1px solid;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            white-space: nowrap;
        }
        .sr-v2-acc-goto:hover {
            opacity: 0.8;
        }

        /* Accordion dark theme */
        .theme-dark .sr-v2-accordion,
        [data-theme="dark"] .sr-v2-accordion {
            border-color: #333333;
        }
        .theme-dark .sr-v2-accordion-toggle,
        [data-theme="dark"] .sr-v2-accordion-toggle {
            background: #2A2A2A;
        }
        .theme-dark .sr-v2-accordion-toggle:hover,
        [data-theme="dark"] .sr-v2-accordion-toggle:hover {
            background: #333333;
        }
        .theme-dark .sr-v2-accordion-title,
        [data-theme="dark"] .sr-v2-accordion-title {
            color: #E2E8F0;
        }
        .theme-dark .sr-v2-accordion-body,
        [data-theme="dark"] .sr-v2-accordion-body {
            border-top-color: #333333;
        }
        .theme-dark .sr-v2-accordion-head,
        [data-theme="dark"] .sr-v2-accordion-head {
            background: #2A2A2A;
            border-bottom-color: #333333;
            color: #94A3B8;
        }
        .theme-dark .sr-v2-accordion-row,
        [data-theme="dark"] .sr-v2-accordion-row {
            border-bottom-color: #333333;
        }
        .theme-dark .sr-v2-accordion-row:hover,
        [data-theme="dark"] .sr-v2-accordion-row:hover {
            background: #2A2A2A;
        }
        .theme-dark .sr-v2-acc-col,
        [data-theme="dark"] .sr-v2-acc-col {
            color: #CBD5E1;
        }

        /* V2 Responsive */
        @media (max-width: 1100px) {
            .sr-v2-note-grid,
            .sr-v2-dim-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 700px) {
            .sr-v2 {
                padding: 16px 20px 24px;
                gap: 24px;
            }

            .sr-v2-title {
                font-size: 24px;
            }

            .sr-v2-note-grid,
            .sr-v2-dim-grid {
                grid-template-columns: 1fr;
            }

            .sr-v2-kpi-row {
                flex-direction: column;
                gap: 12px;
            }

            .sr-v2-kpi {
                padding: 0;
                border: none !important;
            }

            .sr-v2-findings-row {
                flex-direction: column;
                gap: 20px;
            }

            .sr-v2-note-card {
                min-height: auto;
                padding: 16px;
            }
        }

        .page {
            display: none;
            width: 100%;
            max-width: 100%;
            overflow: visible;
            box-sizing: border-box;
            min-height: calc(100vh - 48px);
            height: auto;
            position: relative;
            z-index: 1;
        }

        .page.active {
            display: block;
            width: 100%;
            max-width: 100%;
            overflow: visible;
            box-sizing: border-box;
            min-height: calc(100vh - 48px);
            height: auto;
        }

        .config-info {
            background: rgba(74, 111, 165, 0.1);
            padding: 15px;
            border-radius: 6px;
            margin-bottom: 20px;
            border-left: 3px solid var(--steel-blue);
        }

        .config-info p {
            margin: 5px 0;
            font-family: 'Barlow', sans-serif;
            color: var(--steel-blue);
            font-size: 13px;
        }

        /* 平板适配 (768px - 1024px) */
        @media (min-width: 768px) and (max-width: 1024px) {
            * {
                -webkit-tap-highlight-color: transparent;
            }

            body {
                font-size: 16px;
            }

            .sidebar {
                width: 210px;
            }

            .main-content {
                margin-left: 210px;
                padding: 16px;
                height: 100vh;
                overflow-x: visible;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }

            .card {
                padding: 16px;
                border-radius: 16px;
            }

            .page-header h1 {
                font-size: 1.5em;
            }

            /* 数据源管理页面：左右分栏改为上下布局 */
            .dbconfig-layout {
                flex-direction: column !important;
            }

            .dbconfig-layout .card {
                width: 100% !important;
                margin-bottom: 16px;
            }

            /* 标注对象和标注方法区域：在平板上改为上下布局 */
            .annotation-layout-container {
                flex-direction: column !important;
                gap: 12px !important;
                width: 100% !important;
                overflow: visible !important;
                box-sizing: border-box !important;
            }

            .annotation-layout-container > div {
                width: 100% !important;
                flex: none !important;
                min-width: 0 !important;
                max-width: 100% !important;
                overflow: visible !important;
                box-sizing: border-box !important;
            }

            div[style*="display: flex"][style*="gap: 16px"][style*="margin-bottom: 12px"] {
                flex-direction: column !important;
                gap: 12px !important;
            }

            div[style*="display: flex"][style*="gap: 16px"][style*="margin-bottom: 12px"] > div {
                width: 100% !important;
                flex: none !important;
            }

            /* 标签列表在平板上显示3列（排除Ollama标签页，保持4列） */
            .tags-grid-container:not(.ollama-tags-grid),
            div[style*="grid-template-columns: repeat(4, 1fr)"]:not(.ollama-tags-grid),
            div[style*="grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))"] {
                grid-template-columns: repeat(3, 1fr) !important;
            }
            
            /* Ollama标签页始终保持4列 */
            .ollama-tags-grid {
                grid-template-columns: repeat(4, 1fr) !important;
            }
            
            /* 标签分析页配置信息在平板上显示2列 */
            .tag-analysis-content div[style*="grid-template-columns: repeat(auto-fit"] {
                grid-template-columns: repeat(2, 1fr) !important;
            }
            
            /* 标签分析页在平板上优化布局 */
            .tag-analysis-content {
                gap: 15px !important;
            }
            
            .tag-analysis-content .card {
                min-width: calc(50% - 10px) !important;
            }
            
            /* 标签网格在平板上显示3列 */
            .tags-grid-container {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
            }
            
            /* 标签分析页算力资源在平板上显示 */
            .tag-analysis-page div[style*="display: flex; gap: 10px"] {
                flex-wrap: wrap !important;
            }
            
            /* 标签分析页在平板上优化 */
            .tag-analysis-content {
                gap: 15px !important;
            }
            
            .tag-analysis-content > .card {
                flex-basis: calc(50% - 10px) !important;
                min-width: 300px !important;
            }
        }
        
        /* 大屏幕优化 (1400px+) */
        @media (min-width: 1400px) {
            /* 标签网格在大屏上每行显示更多（至少6个） */
            .tags-grid-container {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
            }
            
            /* 标签分析页在大屏上显示更宽 */
            .tag-analysis-content {
                max-width: 1400px;
                margin: 0 auto;
            }
        }
        
        /* 超大屏幕优化 (1920px+) */
        @media (min-width: 1920px) {
            /* 标签网格在超大屏上每行显示更多（至少8个） */
            .tags-grid-container {
                grid-template-columns: repeat(4, 1fr) !important;
            }

            /* 标注方法区域优化：确保可以滚动和完整显示 */
            .annotation-method-container {
                max-height: none !important;
                overflow: visible !important;
                position: relative !important;
                width: 100% !important;
                min-width: 0 !important;
                box-sizing: border-box !important;
            }

            div[style*="background: linear-gradient(135deg, #fff8f0"] {
                max-height: none !important;
                overflow: visible !important;
                position: relative;
            }

            /* 选择标注范围区域优化 */
            div[style*="选择标注范围"] + div,
            div[style*="font-weight: 600"][style*="选择标注范围"] {
                position: relative;
            }

            /* 选择标注范围标题行优化 - Safari兼容 - 强制修复 */
            .annotation-method-container .tag-range-header {
                display: flex !important;
                flex-wrap: nowrap !important;
                gap: 4px !important;
                align-items: center !important;
                justify-content: space-between !important;
                width: 100% !important;
                max-width: 100% !important;
                overflow: visible !important;
                position: relative !important;
                z-index: 5 !important;
                box-sizing: border-box !important;
            }

            .annotation-method-container .tag-range-header > label {
                flex: 1 1 auto !important;
                min-width: 0 !important;
                max-width: calc(100% - 70px) !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                white-space: nowrap !important;
            }

            /* 右上角展开/折叠按钮容器优化 - Safari兼容 - 强制修复 */
            .annotation-method-container .tag-expand-control {
                flex: 0 0 60px !important;
                min-width: 60px !important;
                width: 60px !important;
                max-width: 60px !important;
                flex-shrink: 0 !important;
                display: block !important;
                overflow: visible !important;
                position: relative !important;
                z-index: 1000 !important;
                box-sizing: border-box !important;
                margin: 0 !important;
                padding: 0 !important;
            }

            /* 标签选择样式 */
            .tag-label-selected {
                background: #e3f2fd !important;
                border-color: #2196f3 !important;
                cursor: pointer !important;
            }

            .tag-label-selected:not(.tag-label-disabled) {
                cursor: pointer !important;
            }

            .tag-label-disabled {
                cursor: not-allowed !important;
                opacity: 0.6 !important;
                background: #f5f5f5 !important;
                border-color: #e0e0e0 !important;
            }

            .tag-label-selected.tag-label-disabled {
                background: #e3f2fd !important;
                border-color: #2196f3 !important;
                opacity: 0.6 !important;
            }

            /* 只作用于标签选择区域，避免影响其他对话框 */
            .tag-selector label:not(.tag-label-selected):not(.tag-label-disabled),
            .annotation-method-container label:not(.tag-label-selected):not(.tag-label-disabled) {
                background: white !important;
                border-color: #e0e0e0 !important;
                cursor: pointer !important;
            }

            /* 展开/折叠按钮优化 - Safari兼容 - 强制修复 */
            .annotation-method-container .tag-expand-btn {
                flex-shrink: 0 !important;
                min-width: 50px !important;
                width: 100% !important;
                max-width: 60px !important;
                position: relative !important;
                z-index: 1001 !important;
                display: block !important;
                visibility: visible !important;
                opacity: 1 !important;
                padding: 4px 8px !important;
                box-sizing: border-box !important;
                margin: 0 !important;
            }

            /* 标签列表网格布局优化：在平板上显示3列，确保标签名完整显示 */
            .annotation-method-container .tags-grid-container {
                display: grid !important;
                -webkit-display: grid !important;
                grid-template-columns: repeat(3, 1fr) !important;
                -webkit-grid-template-columns: repeat(3, 1fr) !important;
                gap: 8px !important;
                column-gap: 8px !important;
                -webkit-column-gap: 8px !important;
                row-gap: 8px !important;
                max-height: none !important;
                overflow: visible !important;
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
                margin: 0 !important;
                padding: 12px !important;
            }

            /* 标签项优化，确保文本完整显示 */
            .annotation-method-container .tags-grid-container > label {
                min-width: 0 !important;
                max-width: 100% !important;
                overflow: visible !important;
                word-break: break-word !important;
            }

            .annotation-method-container .tags-grid-container > label > span {
                overflow: visible !important;
                text-overflow: clip !important;
                white-space: normal !important;
                word-wrap: break-word !important;
                max-width: 100% !important;
                display: block !important;
                line-height: 1.4 !important;
            }

            /* 兼容内联样式 - 强制覆盖为3列 */
            .annotation-method-container div[style*="grid-template-columns"] {
                display: grid !important;
                grid-template-columns: repeat(3, 1fr) !important;
                -webkit-grid-template-columns: repeat(3, 1fr) !important;
                gap: 8px !important;
                width: 100% !important;
                max-width: 100% !important;
                padding: 12px !important;
            }

            /* 确保标注方法容器有足够宽度 */
            .annotation-method-container {
                min-width: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
            }

            /* 确保标签项不会溢出 */
            .annotation-method-container .tags-grid-container label {
                min-width: 0 !important;
                max-width: 100% !important;
                overflow: hidden !important;
            }

            .annotation-method-container .tags-grid-container label span {
                display: block !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                white-space: nowrap !important;
                max-width: 100% !important;
            }

            /* 当标签列表被折叠时，允许滚动 - Safari兼容 */
            .tags-grid-container[style*="max-height: 240px"],
            .tags-grid-container {
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch !important;
            }

            /* Safari特定修复：确保按钮和4列布局可见 - 使用最高优先级 */
            @media screen and (-webkit-min-device-pixel-ratio: 0) {
                /* 强制按钮可见 */
                .annotation-method-container .tag-expand-btn {
                    display: inline-block !important;
                    visibility: visible !important;
                    opacity: 1 !important;
                    position: relative !important;
                    z-index: 9999 !important;
                    width: auto !important;
                    min-width: 50px !important;
                    max-width: none !important;
                    flex-shrink: 0 !important;
                    -webkit-flex-shrink: 0 !important;
                }

                /* 强制按钮容器可见 */
                .annotation-method-container .tag-expand-control {
                    visibility: visible !important;
                    opacity: 1 !important;
                    display: flex !important;
                    -webkit-display: flex !important;
                    flex-shrink: 0 !important;
                    -webkit-flex-shrink: 0 !important;
                    width: auto !important;
                    min-width: 60px !important;
                    max-width: none !important;
                }

                /* 强制4列布局 */
                .annotation-method-container .tags-grid-container {
                    display: grid !important;
                    -webkit-display: grid !important;
                    grid-template-columns: repeat(4, 1fr) !important;
                    -webkit-grid-template-columns: repeat(4, 1fr) !important;
                    width: 100% !important;
                    max-width: 100% !important;
                    overflow: visible !important;
                }

                /* 确保标题行正确显示 */
                .annotation-method-container .tag-range-header {
                    display: flex !important;
                    -webkit-display: flex !important;
                    width: 100% !important;
                    max-width: 100% !important;
                    overflow: visible !important;
                }

                /* 确保标注方法容器宽度足够 */
                .annotation-method-container {
                    width: 100% !important;
                    max-width: 100% !important;
                    min-width: 0 !important;
                    overflow: visible !important;
                }

                /* 确保布局容器宽度足够 */
                .annotation-layout-container {
                    width: 100% !important;
                    max-width: 100% !important;
                    overflow: visible !important;
                }
            }

            /* 全选选项优化：固定在顶部 */
            div[style*="margin-bottom: 8px"][style*="padding: 8px 10px"][style*="background: #f0f0f0"] {
                position: sticky;
                top: 0;
                z-index: 10;
                background: #f0f0f0 !important;
                margin-bottom: 8px !important;
            }

            /* 标注方法区域整体优化 */
            .annotation-method-container {
                display: flex !important;
                flex-direction: column !important;
                min-height: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
                overflow: visible !important;
            }

            div[style*="background: linear-gradient(135deg, #fff8f0"] {
                display: flex;
                flex-direction: column;
                min-height: 0;
            }

            /* 在平板上隐藏提示文字，只显示按钮（节省空间） - Safari兼容 */
            .tag-expand-hint {
                display: none !important;
                visibility: hidden !important;
                width: 0 !important;
                height: 0 !important;
                overflow: hidden !important;
            }

            /* 表单布局优化 */
            .form-row-4 {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }

            .form-row-3 {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }

            .form-row-2 {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            /* 按钮优化 */
            .btn {
                padding: 8px 18px;
                font-size: 15px;
            }

            .btn-small {
                padding: 5px 12px;
                font-size: 13px;
            }

            /* 标题和文本优化 */
            h2 {
                font-size: 1.1em;
            }

            h3 {
                font-size: 1em;
            }

            /* 配置卡片头部按钮组优化 */
            .card > div[style*="display: flex"][style*="justify-content: space-between"] {
                flex-wrap: wrap;
                gap: 8px;
            }

            .card > div[style*="display: flex"][style*="justify-content: space-between"] > div:last-child {
                flex-wrap: wrap;
                gap: 8px;
            }

            /* 按钮组在平板上的优化 */
            .card > div[style*="display: flex"] > div[style*="display: flex"][style*="gap: 10px"] {
                flex-wrap: wrap;
                gap: 8px !important;
            }

            .card > div[style*="display: flex"] > div[style*="display: flex"][style*="gap: 10px"] > button {
                flex: 0 0 auto;
                min-width: auto;
            }

            /* 输入框优化 */
            .form-group input,
            .form-group textarea,
            .form-group select {
                padding: 8px 12px;
                font-size: 15px;
            }

            /* 标签管理表格优化 */
            .table-container {
                overflow-x: auto;
            }

            table {
                font-size: 14px;
            }

            /* 训练标注页面表格优化 */
            .customer-tags-table {
                table-layout: fixed;
                width: 100%;
            }

            .customer-tags-table th,
            .customer-tags-table td {
                max-width: 33.33%;
                word-wrap: break-word;
                word-break: break-word;
                white-space: normal;
                overflow-wrap: break-word;
                vertical-align: top;
            }

            .customer-tags-table th {
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .customer-tags-table td {
                overflow: visible;
            }

            /* 工作流配置优化 */
            .workflow-config-item {
                padding: 12px;
            }

            .workflow-config-item h3 {
                font-size: 17px;
            }

            /* 结果容器优化 */
            .result-container {
                height: calc(100vh - 250px);
                min-height: 450px;
            }

            /* 数据源管理页面自适应布局 */
            .dbconfig-page {
                height: calc(100vh - 48px);
                min-height: calc(100vh - 48px);
                max-height: calc(100vh - 48px);
            }
            
            .dbconfig-page-content {
                display: flex;
                flex-direction: column;
                flex: 1;
                min-height: 0;
            }
            
            /* 用户管理页面自适应布局 */
            .users-page {
                height: calc(100vh - 48px);
                min-height: calc(100vh - 48px);
                max-height: calc(100vh - 48px);
            }
            
            .users-page-content {
                display: flex;
                flex-direction: column;
                flex: 1;
                min-height: 0;
            }

            /* 任务状态栏优化 */
            .task-status-bar {
                font-size: 13px;
                padding: 8px 12px;
            }

            /* 摘要信息优化 */
            .summary {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }

            /* 模态框优化 */
            .modal,
            div[style*="position: fixed"][style*="z-index"] {
                padding: 16px;
            }

            /* 下拉框优化 */
            select[size] {
                max-height: 200px;
            }

            /* 表格优化 */
            .table-container {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            table {
                min-width: 600px;
            }

            table th,
            table td {
                padding: 8px;
                font-size: 14px;
            }

            /* 模态框优化 */
            div[style*="position: fixed"][style*="z-index"] > div {
                max-width: 90%;
                padding: 20px;
            }

            /* 下拉菜单优化 */
            div[style*="position: absolute"][style*="z-index: 1000"] {
                min-width: 180px;
                max-width: 90vw;
            }

            /* 配置卡片标题区域优化 */
            .card h2 {
                font-size: 1.1em;
                margin-bottom: 0;
            }

            /* 表单组间距优化 */
            .form-group {
                margin-bottom: 12px;
            }

            /* 工作流配置项优化 */
            .workflow-config-item {
                margin-bottom: 10px;
            }

            /* 导航菜单优化 */
            .nav-link {
                padding: 10px 12px;
                font-size: 15px;
            }

            /* 侧边栏优化 */
            .nav-section-label {
                padding: 6px 16px 10px;
                font-size: 10px;
            }

            .nav-link {
                padding: 9px 12px;
                font-size: 14px;
            }

            .nav-link .nav-icon {
                font-size: 16px;
                width: 22px;
            }

            /* 页面头部优化 */
            .page-header {
                padding: 12px 0;
                margin-bottom: 16px;
            }

            /* 按钮组间距优化 */
            div[style*="gap: 10px"] {
                gap: 8px !important;
            }

            /* 当前配置标签优化 */
            span[style*="当前配置"] {
                font-size: 0.85em !important;
                padding: 3px 8px !important;
            }

            /* 执行结果区域优化 */
            .result-panel,
            .log-panel {
                font-size: 14px;
            }

            /* 进度条优化 */
            .progress-bar {
                height: 8px;
            }

            /* 摘要卡片优化 */
            .summary-item {
                padding: 12px;
            }

            /* 输入框组优化 */
            .form-row-4 > .form-group {
                margin-bottom: 10px;
            }

            /* 按钮禁用状态优化 */
            .btn:disabled {
                opacity: 0.5;
                cursor: not-allowed;
            }

            /* 滚动条优化 */
            ::-webkit-scrollbar {
                width: 8px;
                height: 8px;
            }

            ::-webkit-scrollbar-track {
                background: #f1f1f1;
                border-radius: 4px;
            }

            ::-webkit-scrollbar-thumb {
                background: #888;
                border-radius: 4px;
            }

            ::-webkit-scrollbar-thumb:hover {
                background: #555;
            }

            /* 确保页面内容可以完整显示 */
            .page {
                min-height: auto;
                padding-bottom: 20px;
            }

            /* 优化卡片内容区域 */
            .card {
                max-width: 100%;
                overflow: visible;
            }

            /* 优化表单区域，确保内容不被截断 */
            form {
                overflow: visible;
            }

            /* 优化标签选择区域 */
            div[style*="display: grid"][style*="grid-template-columns"] {
                max-width: 100%;
                overflow: visible;
            }

            /* 确保按钮区域可以换行 */
            div[style*="display: flex"][style*="gap: 10px"] {
                flex-wrap: wrap;
            }

            /* 移动端：标签列表显示2列（排除Ollama标签页） */
            .annotation-method-container .tags-grid-container,
            .tags-grid-container:not(.ollama-tags-grid),
            div[style*="display: grid"][style*="grid-template-columns: repeat(3"]:not(.ollama-tags-grid),
            div[style*="grid-template-columns: repeat(4"]:not(.ollama-tags-grid) {
                grid-template-columns: repeat(2, 1fr) !important;
                -webkit-grid-template-columns: repeat(2, 1fr) !important;
                gap: 6px !important;
                padding: 10px !important;
            }
            
            /* Ollama标签页始终保持4列 */
            .ollama-tags-grid {
                grid-template-columns: repeat(4, 1fr) !important;
                -webkit-grid-template-columns: repeat(4, 1fr) !important;
            }

            /* 标签项在移动端优化，确保文本完整显示 */
            .annotation-method-container .tags-grid-container > label > span {
                white-space: normal !important;
                word-wrap: break-word !important;
                line-height: 1.4 !important;
            }

            /* 确保所有内容区域都可以滚动 */
            .main-content > .page {
                min-height: 100%;
            }

            /* 优化页面头部，避免占用过多空间 */
            .page-header {
                margin-bottom: 16px;
                padding: 0 12px;
            }

            /* 优化底部间距，确保最后的内容可见 */
            .page > div:last-child {
                padding-bottom: 40px;
            }
        }

        /* 小屏幕手机适配 (max-width: 480px) */
        @media (max-width: 480px) {
            /* 小屏幕手机：标签列表显示1列（排除Ollama标签页，保持4列） */
            .annotation-method-container .tags-grid-container,
            .tags-grid-container:not(.ollama-tags-grid),
            div[style*="grid-template-columns"]:not(.ollama-tags-grid) {
                grid-template-columns: 1fr !important;
                -webkit-grid-template-columns: 1fr !important;
                gap: 6px !important;
                padding: 10px !important;
            }

            /* 标签项在小屏幕上完整显示 */
            .annotation-method-container .tags-grid-container > label {
                width: 100% !important;
            }

            .annotation-method-container .tags-grid-container > label > span {
                white-space: normal !important;
                word-wrap: break-word !important;
                line-height: 1.5 !important;
            }
        }

        /* 移动端适配 (max-width: 768px) */
        @media (max-width: 768px) {
            body {
                font-size: 15px;
            }

            .sidebar {
                width: 180px;
            }

            .main-content {
                margin-left: 180px;
                padding: 12px;
                height: 100vh;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }

            .form-row,
            .form-row-3,
            .form-row-4 {
                grid-template-columns: 1fr;
            }

            .summary {
                grid-template-columns: 1fr;
            }
            
            .result-container {
                height: calc(100vh - 280px);
                min-height: 400px;
                max-height: calc(100vh - 280px);
            }
            
            .result-panel,
            .log-panel {
                max-height: 100%;
            }
            
            .task-status-bar {
                bottom: 10px;
                min-width: 280px;
                max-width: 90%;
            }
            
            .task-status-bar-inline {
                font-size: 10px;
                padding: 3px 6px;
            }
            
            .task-status-content {
                gap: 6px;
            }
            
            .task-status-buttons {
                gap: 3px;
            }
            
            .task-status-text {
                font-size: 10px;
            }
            
            .task-progress-info {
                font-size: 9px;
                padding: 1px 4px;
            }

            /* 数据源管理页面：左右分栏改为上下布局 */
            .dbconfig-layout {
                flex-direction: column !important;
            }

            .dbconfig-layout .card {
                width: 100% !important;
            }

            /* 标注方法区域在移动端优化 */
            div[style*="display: flex"][style*="gap: 16px"][style*="margin-bottom: 12px"] {
                flex-direction: column !important;
            }

            /* 标签列表在移动端改为2列 */
            .tags-grid-container:not(.ollama-tags-grid),
            div[style*="grid-template-columns: repeat(4, 1fr)"]:not(.ollama-tags-grid),
            div[style*="grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))"] {
                grid-template-columns: repeat(2, 1fr) !important;
            }
            
            /* Ollama标签页保持4列 */
            .ollama-tags-grid {
                grid-template-columns: repeat(4, 1fr) !important;
            }

            /* 标签分析页在移动端优化 */
            .tag-analysis-content {
                flex-direction: column !important;
                gap: 10px !important;
            }

            .tag-analysis-content .card {
                min-width: 100% !important;
                width: 100% !important;
                flex: 1 1 100% !important;
            }
            
            /* 标签网格在移动端每行显示2-3个 */
            .tags-grid-container {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
                gap: 6px !important;
                padding: 8px !important;
            }
            
            /* 配置信息在移动端显示单列 */
            .tag-analysis-page div[style*="grid-template-columns: repeat(auto-fit"] {
                grid-template-columns: 1fr !important;
            }
            
            /* 移动端选项开关垂直排列 */
            .tag-analysis-page div[style*="display: flex; gap: 20px; flex-wrap: wrap"] {
                flex-direction: column !important;
                gap: 10px !important;
            }
            
            /* 配置信息网格在移动端单列显示 */
            .tag-analysis-content div[style*="grid-template-columns: repeat(auto-fit"] {
                grid-template-columns: 1fr !important;
            }

            /* 选择标注范围标题行在移动端优化 */
            div[style*="display: flex"][style*="justify-content: space-between"][style*="margin-bottom: 6px"] {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            /* 展开/折叠按钮在移动端优化 */
            button[style*="padding: 4px 12px"][style*="font-size: 12px"][style*="background: #667eea"] {
                width: 100%;
                margin-top: 4px;
            }
        }
