    /* 分析页面全局布局 */
    .analysis-container { display: flex !important; flex-direction: row !important; height: calc(100vh - var(--statau-navbar-offset)); width: 100%; overflow: hidden; }

    /* 左侧导航栏 */
    #sidebar {
        width: 250px;
        background: var(--bg-secondary);
        color: var(--text-primary);
        padding-top: 20px;
        overflow-y: auto;
        flex-shrink: 0;
        border-right: 1px solid var(--border-color);
    }

    .nav-link-sidebar {
        color: var(--text-secondary);
        cursor: pointer;
        padding: 12px 20px;
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        transition: all 0.3s ease;
        border-left: 2px solid transparent;
    }

    .nav-link-sidebar:hover {
        color: var(--accent-primary);
        background: var(--bg-tertiary);
        border-left-color: var(--accent-primary);
    }

    .nav-link-sidebar.active {
        color: var(--accent-primary);
        background: var(--bg-elevated);
        border-left-color: var(--accent-primary);
        box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.1);
    }

    .sidebar-header {
        font-size: 0.625rem;
        font-weight: 700;
        color: var(--text-muted);
        padding: 10px 20px 5px 20px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    /* 右侧内容区 */
    .content-area {
        flex: 1;
        padding: 0;
        height: 100%;
        overflow-y: auto;
        background: var(--gradient-surface);
        position: relative;
    }

    .analysis-boot-loader {
        position: absolute;
        inset: 0;
        z-index: 80;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        background: color-mix(in srgb, var(--bg-secondary) 94%, var(--bg-primary) 6%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }

    .analysis-boot-loader-card {
        width: min(520px, 92%);
        padding: 30px 28px;
        border: 1px solid var(--border-color);
        border-radius: 24px;
        background: color-mix(in srgb, var(--bg-elevated) 90%, var(--bg-secondary) 10%);
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
        text-align: center;
    }

    .analysis-boot-spinner {
        width: 58px;
        height: 58px;
        margin: 0 auto 18px;
        border-radius: 50%;
        border: 4px solid color-mix(in srgb, var(--border-color) 74%, transparent 26%);
        border-top-color: var(--accent-primary);
        border-right-color: color-mix(in srgb, var(--accent-primary) 56%, #22c55e 44%);
        animation: analysis-boot-spin 0.9s linear infinite;
    }

    .analysis-boot-title {
        color: var(--text-primary);
        font-size: 1.08rem;
        font-weight: 800;
        letter-spacing: 0.02em;
    }

    .analysis-boot-subtitle {
        margin-top: 8px;
        color: var(--text-secondary);
        font-size: 0.86rem;
        line-height: 1.7;
    }

    @keyframes analysis-boot-spin {
        to { transform: rotate(360deg); }
    }

    .analysis-container.is-booting .analysis-boot-loader {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .analysis-container.is-booting .analysis-topbar,
    .analysis-container.is-booting .analysis-main {
        visibility: hidden;
    }

    .analysis-boot-loader {
        position: absolute;
        inset: 0;
        z-index: 80;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        background: color-mix(in srgb, var(--bg-secondary) 94%, var(--bg-primary) 6%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }

    .analysis-boot-loader-card {
        width: min(520px, 92%);
        padding: 30px 28px;
        border: 1px solid var(--border-color);
        border-radius: 24px;
        background: color-mix(in srgb, var(--bg-elevated) 90%, var(--bg-secondary) 10%);
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
        text-align: center;
    }

    .analysis-boot-spinner {
        width: 58px;
        height: 58px;
        margin: 0 auto 18px;
        border-radius: 50%;
        border: 4px solid color-mix(in srgb, var(--border-color) 74%, transparent 26%);
        border-top-color: var(--accent-primary);
        border-right-color: color-mix(in srgb, var(--accent-primary) 56%, #22c55e 44%);
        animation: analysis-boot-spin 0.9s linear infinite;
    }

    .analysis-boot-title {
        color: var(--text-primary);
        font-size: 1.08rem;
        font-weight: 800;
        letter-spacing: 0.02em;
    }

    .analysis-boot-subtitle {
        margin-top: 8px;
        color: var(--text-secondary);
        font-size: 0.86rem;
        line-height: 1.7;
    }

    @keyframes analysis-boot-spin {
        to { transform: rotate(360deg); }
    }

    .analysis-container.is-booting .analysis-boot-loader {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .analysis-container.is-booting .analysis-topbar,
    .analysis-container.is-booting .analysis-main {
        visibility: hidden;
    }

    /* 隐藏右侧内容区滚动条 */
    .content-area::-webkit-scrollbar {
        width: 0px;
    }

    .analysis-topbar {
        position: sticky;
        top: 0;
        z-index: 30;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        align-items: end;
        min-height: 44px;
        padding: 6px 14px 0 14px;
        border-bottom: 1px solid var(--border-color);
        background: color-mix(in srgb, var(--bg-secondary) 98%, var(--bg-primary) 2%);
        backdrop-filter: blur(10px);
    }

    .analysis-tabs-list {
        display: flex;
        align-items: end;
        gap: 6px;
        min-height: 30px;
        overflow-x: auto;
        padding-bottom: 0;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }

    .analysis-tabs-list::-webkit-scrollbar {
        display: none;
    }

    .analysis-tab-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        max-width: 220px;
        min-height: 30px;
        padding: 0 8px 0 12px;
        border: 1px solid var(--border-color);
        border-radius: 12px 12px 0 0;
        border-bottom-color: transparent;
        background: color-mix(in srgb, var(--bg-elevated) 90%, var(--bg-secondary) 10%);
        color: var(--text-secondary);
        cursor: pointer;
        transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
    }

    .analysis-tab-chip.is-pending {
        opacity: 0.82;
    }

    .analysis-tab-chip.is-pending::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background: color-mix(in srgb, var(--accent-primary) 68%, #22c55e 32%);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.42);
        animation: analysis-tab-pulse 1.1s ease-out infinite;
        flex: 0 0 auto;
    }

    .analysis-tab-chip.is-entering {
        animation: analysis-tab-enter 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .analysis-tab-chip.is-closing {
        opacity: 0;
        transform: translateY(-6px) scale(0.96);
        transition: opacity 0.18s ease, transform 0.18s ease;
        pointer-events: none;
    }

    @keyframes analysis-tab-enter {
        from {
            opacity: 0;
            transform: translateY(-10px) scale(0.94);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes analysis-tab-pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.42);
        }
        70% {
            box-shadow: 0 0 0 7px rgba(59, 130, 246, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
        }
    }

    .analysis-tab-chip:hover {
        border-color: color-mix(in srgb, var(--border-color) 78%, var(--text-secondary) 22%);
        background: color-mix(in srgb, var(--bg-elevated) 94%, var(--bg-secondary) 6%);
        color: var(--text-primary);
    }

    .analysis-tab-chip.active {
        border-color: color-mix(in srgb, var(--border-color) 70%, var(--text-primary) 30%);
        background: color-mix(in srgb, var(--bg-primary) 10%, var(--bg-elevated) 90%);
        color: var(--text-primary);
        box-shadow: none;
    }

    .analysis-tab-chip .tab-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.82rem;
        font-weight: 600;
    }

    .analysis-tab-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: inherit;
        opacity: 0.72;
        flex: 0 0 auto;
    }

    .analysis-tab-close:hover {
        background: color-mix(in srgb, var(--bg-tertiary) 86%, transparent 14%);
        opacity: 1;
    }

    .analysis-tabs-actions {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .analysis-tabs-empty {
        width: 8px;
        height: 8px;
        margin-left: 2px;
        border-radius: 999px;
        background: rgba(148, 163, 184, 0.28);
        flex: 0 0 auto;
    }

    .analysis-tab-tool {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 999px;
        border: 1px solid var(--border-color);
        background: color-mix(in srgb, var(--bg-elevated) 86%, transparent 14%);
        color: var(--text-secondary);
        transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
    }

    .analysis-tab-tool:hover {
        border-color: rgba(96, 165, 250, 0.52);
        color: #dbeafe;
        background: rgba(59, 130, 246, 0.08);
    }

    .analysis-tab-tool:disabled {
        opacity: 0.42;
        cursor: default;
        pointer-events: none;
        border-color: var(--border-color);
        color: var(--text-muted);
        background: color-mix(in srgb, var(--bg-elevated) 86%, transparent 14%);
    }

    .analysis-tab-tool.batch-export-trigger {
        color: color-mix(in srgb, var(--accent-primary) 78%, var(--text-primary) 22%);
        border-color: color-mix(in srgb, var(--accent-primary) 36%, var(--border-color) 64%);
        background: color-mix(in srgb, var(--accent-primary) 9%, var(--bg-elevated) 91%);
    }

    .batch-export-modal .modal-content {
        overflow: hidden;
        border: 1px solid color-mix(in srgb, var(--accent-primary) 22%, var(--border-color) 78%);
        border-radius: 22px;
        background: color-mix(in srgb, var(--bg-elevated) 94%, var(--bg-secondary) 6%);
        box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    }

    .batch-export-modal [hidden] {
        display: none !important;
    }

    .batch-export-modal .modal-header {
        align-items: center;
        padding: 18px 24px;
        border-bottom: 1px solid var(--border-color);
        background:
            radial-gradient(circle at 12% -20%, rgba(59, 130, 246, 0.2), transparent 42%),
            color-mix(in srgb, var(--bg-tertiary) 72%, var(--bg-elevated) 28%);
    }

    .batch-export-title-wrap {
        display: flex;
        align-items: center;
        gap: 13px;
    }

    .batch-export-title-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
        border: 1px solid rgba(96, 165, 250, 0.38);
        border-radius: 13px;
        color: #dbeafe;
        background: linear-gradient(145deg, rgba(37, 99, 235, 0.9), rgba(14, 116, 144, 0.86));
        box-shadow: 0 10px 26px rgba(37, 99, 235, 0.2);
    }

    .batch-export-step[hidden] {
        display: none !important;
    }

    .batch-export-step.is-entering {
        animation: batch-export-step-enter 0.18s ease-out;
    }

    @keyframes batch-export-step-enter {
        from { opacity: 0; transform: translateY(5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .batch-export-modal .modal-body {
        padding: 22px 24px;
    }

    .batch-export-section + .batch-export-section {
        margin-top: 22px;
    }

    .batch-export-section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
    }

    .batch-export-section-title {
        margin: 0;
        color: var(--text-primary);
        font-size: 0.86rem;
        font-weight: 750;
        letter-spacing: 0.02em;
    }

    .batch-export-count {
        display: inline-flex;
        align-items: center;
        min-height: 25px;
        padding: 3px 10px;
        border: 1px solid color-mix(in srgb, var(--accent-primary) 24%, var(--border-color) 76%);
        border-radius: 999px;
        color: color-mix(in srgb, var(--accent-primary) 74%, var(--text-primary) 26%);
        background: color-mix(in srgb, var(--accent-primary) 8%, transparent 92%);
        font-size: 0.75rem;
        font-weight: 700;
    }

    .batch-export-selection-actions {
        display: inline-flex;
        gap: 6px;
    }

    .batch-export-selection-actions .btn {
        padding: 2px 9px;
        font-size: 0.75rem;
    }

    .batch-export-tab-list {
        display: grid;
        gap: 8px;
        max-height: 235px;
        overflow-y: auto;
        padding-right: 3px;
    }

    .batch-export-order-list {
        display: grid;
        gap: 8px;
        max-height: 220px;
        overflow-y: auto;
        padding-right: 3px;
    }

    .batch-export-order-item {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        min-height: 52px;
        padding: 8px 10px;
        border: 1px solid var(--border-color);
        border-radius: 13px;
        color: var(--text-primary);
        background: color-mix(in srgb, var(--bg-secondary) 78%, var(--bg-elevated) 22%);
        transition: border-color 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
    }

    .batch-export-order-item.is-dragging {
        opacity: 0.48;
        transform: scale(0.985);
    }

    .batch-export-order-handle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border: 0;
        color: var(--text-muted);
        background: transparent;
        cursor: grab;
    }

    .batch-export-order-handle:active {
        cursor: grabbing;
    }

    .batch-export-order-number {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 25px;
        height: 25px;
        border-radius: 8px;
        color: color-mix(in srgb, var(--accent-primary) 78%, var(--text-primary) 22%);
        background: color-mix(in srgb, var(--accent-primary) 10%, transparent 90%);
        font-size: 0.74rem;
        font-weight: 800;
    }

    .batch-export-order-name {
        overflow: hidden;
        font-size: 0.84rem;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .batch-export-order-actions {
        display: inline-flex;
        gap: 4px;
    }

    .batch-export-order-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 29px;
        height: 29px;
        padding: 0;
        border: 1px solid var(--border-color);
        border-radius: 9px;
        color: var(--text-secondary);
        background: color-mix(in srgb, var(--bg-elevated) 76%, transparent 24%);
    }

    .batch-export-order-action:hover:not(:disabled) {
        border-color: color-mix(in srgb, var(--accent-primary) 48%, var(--border-color) 52%);
        color: var(--accent-primary);
    }

    .batch-export-order-action:disabled {
        opacity: 0.3;
    }

    .batch-export-tab-option {
        position: relative;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 11px;
        min-height: 58px;
        padding: 10px 12px;
        border: 1px solid var(--border-color);
        border-radius: 14px;
        color: var(--text-primary);
        background: color-mix(in srgb, var(--bg-secondary) 76%, var(--bg-elevated) 24%);
        cursor: pointer;
        transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
    }

    .batch-export-tab-option:hover {
        transform: translateY(-1px);
        border-color: color-mix(in srgb, var(--accent-primary) 38%, var(--border-color) 62%);
    }

    .batch-export-tab-option:has(input:checked) {
        border-color: color-mix(in srgb, var(--accent-primary) 54%, var(--border-color) 46%);
        background: color-mix(in srgb, var(--accent-primary) 8%, var(--bg-elevated) 92%);
    }

    .batch-export-tab-option input {
        width: 1.02rem;
        height: 1.02rem;
        margin: 0;
    }

    .batch-export-tab-name {
        overflow: hidden;
        color: var(--text-primary);
        font-size: 0.84rem;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .batch-export-tab-meta {
        margin-top: 3px;
        color: var(--text-muted);
        font-size: 0.74rem;
    }

    .batch-export-ai-status {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 4px 8px;
        border-radius: 999px;
        color: var(--text-muted);
        background: color-mix(in srgb, var(--bg-tertiary) 74%, transparent 26%);
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .batch-export-ai-status.has-report {
        color: #047857;
        background: rgba(16, 185, 129, 0.12);
    }

    .batch-export-option-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .batch-export-choice {
        position: relative;
        margin: 0;
    }

    .batch-export-choice input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .batch-export-choice-card {
        display: flex;
        align-items: center;
        gap: 9px;
        min-height: 48px;
        padding: 9px 11px;
        border: 1px solid var(--border-color);
        border-radius: 13px;
        color: var(--text-secondary);
        background: color-mix(in srgb, var(--bg-secondary) 78%, var(--bg-elevated) 22%);
        cursor: pointer;
        transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
    }

    .batch-export-choice-card i {
        color: color-mix(in srgb, var(--accent-primary) 70%, var(--text-secondary) 30%);
        font-size: 1rem;
    }

    .batch-export-choice input:checked + .batch-export-choice-card {
        border-color: color-mix(in srgb, var(--accent-primary) 58%, var(--border-color) 42%);
        color: var(--text-primary);
        background: color-mix(in srgb, var(--accent-primary) 10%, var(--bg-elevated) 90%);
        box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-primary) 14%, transparent 86%);
    }

    .batch-export-mode-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .batch-export-mode-card {
        align-items: center;
        min-height: 52px;
    }

    .batch-export-mode-card strong {
        display: block;
        color: inherit;
        font-size: 0.82rem;
    }

    .batch-export-interpretation {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 13px 14px;
        border: 1px solid var(--border-color);
        border-radius: 14px;
        background: color-mix(in srgb, var(--bg-secondary) 78%, var(--bg-elevated) 22%);
    }

    .batch-export-interpretation strong {
        color: var(--text-primary);
        font-size: 0.83rem;
    }

    .batch-export-empty {
        padding: 28px 18px;
        border: 1px dashed var(--border-color);
        border-radius: 14px;
        color: var(--text-muted);
        background: color-mix(in srgb, var(--bg-secondary) 68%, transparent 32%);
        text-align: center;
        font-size: 0.82rem;
    }

    .batch-export-modal .modal-footer {
        justify-content: space-between;
        gap: 12px;
        padding: 15px 24px;
        border-top: 1px solid var(--border-color);
        background: color-mix(in srgb, var(--bg-secondary) 62%, var(--bg-elevated) 38%);
    }

    .batch-export-footer-summary {
        color: var(--text-muted);
        font-size: 0.76rem;
    }

    @media (max-width: 767.98px) {
        .batch-export-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .batch-export-mode-grid { grid-template-columns: 1fr; }
        .batch-export-modal .modal-header,
        .batch-export-modal .modal-body,
        .batch-export-modal .modal-footer { padding-left: 16px; padding-right: 16px; }
        .batch-export-tab-option { grid-template-columns: auto minmax(0, 1fr); }
        .batch-export-ai-status { grid-column: 2; justify-self: start; }
        .batch-export-order-item { grid-template-columns: auto auto minmax(0, 1fr); }
        .batch-export-order-actions { grid-column: 3; justify-self: start; }
        .batch-export-modal .modal-footer { align-items: stretch; flex-direction: column; }
        .batch-export-modal .modal-footer .d-flex { width: 100%; }
        .batch-export-modal .modal-footer .btn { flex: 1; }
    }

    .analysis-main {
        padding: 8px 18px 22px;
    }

    .analysis-frame-loader {
        position: absolute;
        inset: 46px 18px 18px;
        z-index: 35;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .analysis-frame-loader.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .content-area.is-view-loading .analysis-main {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.16s ease, visibility 0.16s ease;
    }

    .analysis-frame-loader-card {
        width: min(420px, 90%);
        padding: 34px 28px 30px;
        border-radius: 28px;
        border: 1px solid color-mix(in srgb, var(--border-color) 70%, rgba(59, 130, 246, 0.2) 30%);
        background:
            radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 58%),
            color-mix(in srgb, var(--bg-primary) 78%, var(--bg-secondary) 22%);
        box-shadow: 0 26px 68px rgba(15, 23, 42, 0.18);
        text-align: center;
        backdrop-filter: blur(16px);
    }

    .analysis-frame-loader-spinner {
        width: 56px;
        height: 56px;
        margin: 0 auto 18px;
        border-radius: 50%;
        border: 4px solid color-mix(in srgb, var(--border-color) 70%, transparent 30%);
        border-top-color: var(--accent-primary);
        border-right-color: color-mix(in srgb, var(--accent-primary) 54%, #22c55e 46%);
        animation: analysis-boot-spin 0.8s linear infinite;
    }

    .analysis-frame-loader-title {
        color: var(--text-primary);
        font-size: 1.06rem;
        font-weight: 800;
        letter-spacing: 0.02em;
    }

    .analysis-frame-loader-subtitle {
        margin-top: 10px;
        color: var(--text-secondary);
        font-size: 0.86rem;
        line-height: 1.8;
    }

    #upload-card {
        margin-top: 2px;
    }

    .analysis-upload-progress-percent {
        display: none;
        min-width: 4ch;
        margin-right: 0.5rem;
        color: var(--accent-primary);
        font-size: 1rem;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
        letter-spacing: 0.02em;
        text-align: right;
    }

    /* 变量列表容器 */
    .var-list-container {
        border: 1px solid var(--border-color);
        height: 160px;
        overflow-y: auto;
        background: var(--bg-tertiary);
        padding: 10px;
        border-radius: var(--radius-md);
    }

    /* 表格样式 */
    .table-editable-container { text-align: center; margin-top: 20px; overflow-x: auto; }
    .table-title-input {
        display: block;
        margin: 0 auto;
        padding: 2px 8px;
        background: transparent;
        font-size: 1.2em;
        font-weight: bold;
        text-align: center;
        width: 80%;
        min-height: 1.8em;
        border-bottom: 1px dashed var(--border-color);
        color: var(--text-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: text;
    }

    .analysis-member-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        margin-left: 6px;
        padding: 0;
        border: 0;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.12);
        color: currentColor;
        font-size: 0.72rem;
        line-height: 1;
        opacity: 0.82;
        vertical-align: middle;
    }

    .analysis-member-badge[hidden] {
        display: none !important;
    }
    .table-title-input:focus { outline: none; border-bottom: 1px solid var(--accent-primary); }

    /* 学术表格基础样式 */
    .academic-table { border-collapse: collapse; margin: 0 auto; font-family: "Times New Roman", serif; background: var(--bg-secondary); box-shadow: 0 4px 6px rgba(0,0,0,0.3); min-width: 50%; }
    .academic-table td, .academic-table th { padding: 6px 12px; white-space: nowrap; }

    /* Loading 样式 */
    .spinner-border-sm { width: 1rem; height: 1rem; border-width: 0.15em; }

    /* 模块显隐控制 */
    .analysis-module { display: none; }
    .analysis-module.active { display: block; }

    /* 预览模态框样式 */
    #previewModal .modal-body { max-height: 70vh; overflow-y: auto; }
    #previewModal .table td, #previewModal .table th { white-space: nowrap; }

    /* ========== 暗色主题覆盖 ========== */
    /* 卡片 */
    .card {
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
    }

    .card-header {
        background: var(--bg-tertiary) !important;
        border-bottom: 1px solid var(--border-accent) !important;
        color: var(--text-primary) !important;
    }

    .card-body {
        background: var(--bg-secondary) !important;
    }

    /* 表单控件 */
    .form-control, .form-select {
        background: var(--bg-tertiary) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-primary) !important;
    }

    .form-control:focus, .form-select:focus {
        background: var(--bg-tertiary) !important;
        border-color: var(--accent-primary) !important;
        box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1) !important;
        color: var(--text-primary) !important;
    }

    .form-control::placeholder {
        color: var(--text-muted) !important;
    }

    .form-check-input {
        background-color: var(--bg-tertiary) !important;
        border-color: var(--border-color) !important;
        border-width: 2px !important;
    }

    /* 浅色主题下的复选框 - 更深的边框 */
    [data-theme="light"] .form-check-input {
        background-color: #ffffff !important;
        border-color: #94a3b8 !important;
    }

    /* 浅色主题下的输入框/下拉框 - 略深一点的边框，保证灰色分区里也能看清 */
    [data-theme="light"] .form-control,
    [data-theme="light"] .form-select {
        border-color: #cbd5e1 !important;
    }

    .form-check-input:checked {
        background-color: var(--accent-primary) !important;
        border-color: var(--accent-primary) !important;
    }

    .form-check-label {
        color: var(--text-secondary) !important;
    }

    /* 标签 */
    label, .small {
        color: var(--text-secondary) !important;
    }

    /* 按钮 */
    .btn-light {
        background: var(--bg-tertiary) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-secondary) !important;
    }

    .btn-light:hover {
        background: var(--bg-elevated) !important;
        border-color: var(--accent-primary) !important;
        color: var(--accent-primary) !important;
    }

    /* 模态框 */
    .modal-content {
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
    }

    .modal-header {
        background: var(--bg-tertiary) !important;
        border-bottom: 1px solid var(--border-accent) !important;
    }

    .modal-body {
        background: var(--bg-secondary) !important;
    }

    .modal-footer {
        background: var(--bg-tertiary) !important;
        border-top: 1px solid var(--border-accent) !important;
    }

    .modal-title {
        color: var(--text-primary) !important;
    }

    .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
    }

    /* 表格 */
    .table {
        color: var(--text-secondary) !important;
    }

    .table thead th {
        background: var(--bg-tertiary) !important;
        color: var(--text-primary) !important;
        border-color: var(--border-color) !important;
    }

    .table tbody td {
        border-color: var(--border-color) !important;
    }

    .table-hover tbody tr:hover {
        background: var(--bg-tertiary) !important;
    }

    /* Alert */
    .alert {
        background: var(--bg-tertiary) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-primary) !important;
    }

    .alert-warning {
        border-color: var(--accent-warning) !important;
        background: rgba(245, 158, 11, 0.1) !important;
    }

    .alert-info {
        border-color: var(--accent-primary) !important;
        background: rgba(0, 212, 255, 0.1) !important;
        color: var(--text-primary) !important;
    }

    .alert-success {
        border-color: #10b981 !important;
        background: rgba(16, 185, 129, 0.1) !important;
        color: var(--text-primary) !important;
    }

    .alert-light {
        background: var(--bg-tertiary) !important;
        border-color: var(--border-color) !important;
        color: var(--text-primary) !important;
    }

    /* 表格样式增强 - 确保在暗色模式下正确显示 */
    .table-bordered {
        border-color: var(--border-color) !important;
    }

    .table-bordered th,
    .table-bordered td {
        border-color: var(--border-color) !important;
        background: var(--bg-secondary) !important;
    }

    .table-light {
        background: var(--bg-tertiary) !important;
    }

    .table-light th {
        background: var(--bg-tertiary) !important;
        color: var(--text-primary) !important;
    }

    .table-sm th,
    .table-sm td {
        color: var(--text-secondary) !important;
    }

    /* 模型检验结果中的文本颜色 */
    #test-table-output p,
    #test-table-output strong {
        color: var(--text-primary) !important;
    }

    #test-table-output .text-muted {
        color: var(--text-muted) !important;
    }

    /* 确保所有卡片内的段落文字可见 */
    .card-body p {
        color: var(--text-primary) !important;
    }

    .card-body strong {
        color: var(--text-primary) !important;
    }

    /* 背景色 */
    .bg-light {
        background: var(--bg-tertiary) !important;
    }

    .bg-white {
        background: var(--bg-secondary) !important;
    }

    /* 文本颜色 */
    .text-primary {
        color: var(--accent-primary) !important;
    }

    /* 隐藏侧边栏滚动条样式 */
    #sidebar::-webkit-scrollbar {
        width: 0px;
    }

    /* Accordion手风琴样式 */
    .accordion-item {
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
    }

    .accordion-button {
        background: var(--bg-tertiary) !important;
        color: var(--text-primary) !important;
        border: none !important;
    }

    .accordion-button:not(.collapsed) {
        background: var(--bg-elevated) !important;
        color: var(--accent-primary) !important;
        box-shadow: none !important;
    }

    .accordion-button:focus {
        box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1) !important;
    }

    .accordion-button::after {
        filter: invert(1) grayscale(100%) brightness(200%);
    }

    .accordion-body {
        background: var(--bg-secondary) !important;
        color: var(--text-secondary) !important;
    }
