.file-open-bar {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.file-open-bar .toolbar-hint {
    font-size: 0.82rem;
    color: var(--text-color);
    opacity: 0.6;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.file-card {
    background: var(--feature-card-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.card-header h2 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-color);
    word-break: break-all;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.remove-file {
    background: transparent;
    border: 1px solid var(--input-border);
    color: var(--text-color);
    border-radius: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.25s ease;
}

.remove-file:hover {
    background: rgba(220, 53, 69, 0.15);
    border-color: #dc3545;
    color: #dc3545;
}

.recon-status {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.7rem;
    font-variant-numeric: tabular-nums;
}

.editor-pane {
    display: flex;
    flex-direction: column;
    background: var(--feature-card-bg);
    border-radius: 10px;
    border: 1px solid var(--input-border);
    padding: 1rem 1.25rem;
}

.recon-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
    font-size: 0.82rem;
    color: var(--text-color);
    font-variant-numeric: tabular-nums;
}

.src-hint {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.6;
}

.mdEditor {
    flex: 1;
    min-height: 320px;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
    padding: 0.9rem 1rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--input-text);
    font-family: "Sarasa Fixed SC", "Sarasa Mono SC", "Noto Sans Mono CJK SC", "NSimSun", Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre;
    overflow-wrap: normal;
    tab-size: 4;
}

.mdEditor:focus {
    outline: none;
    border-color: #00dbde;
}

/* CodeMirror 编辑框：等宽字体 + 与 .mdEditor 一致的外观 */
.editor-pane .CodeMirror {
    flex: 1;
    height: 360px;
    box-sizing: border-box;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--input-text);
    font-family: "Sarasa Fixed SC", "Sarasa Mono SC", "Noto Sans Mono CJK SC", "NSimSun", Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
}

.editor-pane .CodeMirror-focused {
    border-color: #00dbde;
}

.editor-pane .CodeMirror-lines {
    padding: 0.7rem 0.4rem;
}

.editor-pane .CodeMirror pre.CodeMirror-line,
.editor-pane .CodeMirror pre.CodeMirror-line-like {
    font-family: inherit;
}

.btn.secondary {
    padding: 9px 14px;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn.secondary:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
}

.btn.primary {
    padding: 9px 14px;
    background-color: #00b3c4;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn.primary:hover {
    background-color: #0099aa;
    transform: translateY(-2px);
}

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

/* ============ Loading 遮罩 ============ */
.loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    padding: 1.25rem;
}

.loader-overlay.active {
    display: flex;
}

.loader-box {
    max-width: 500px;
    width: 100%;
    padding: 1.75rem 2rem;
    background: var(--feature-card-bg);
    border: 1px solid var(--input-border);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.loader-spinner {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 4px solid var(--input-border);
    border-top-color: #00dbde;
    animation: spin 0.9s linear infinite;
}

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

.loader-title {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    color: var(--text-color);
}

.loader-sub {
    margin: 0 0 1.1rem;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.65;
}

.loader-progress {
    margin-bottom: 1rem;
}

.loader-bar {
    height: 8px;
    border-radius: 4px;
    background: var(--input-border);
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00dbde, #0099aa);
    border-radius: 4px;
    transition: width 0.35s ease;
}

.loader-phase {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
}