/* 操作台 */
.doc-view .dc-step {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--border-color);
}
.doc-view .dc-step:last-of-type { border-bottom: none; }
.doc-view .dc-step-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}
.doc-view .dc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color, #3b82f6);
    color: #fff;
    font-size: 12px;
}
.doc-view .dc-hint {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
}
.doc-view .dc-link {
    color: var(--primary-color, #3b82f6);
    cursor: pointer;
    text-decoration: underline;
}

/* 拖拽区 */
.doc-view .dc-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: var(--background-color);
}
.doc-view .dc-dropzone:hover,
.doc-view .dc-dropzone.dragover {
    border-color: var(--primary-color, #3b82f6);
    background: var(--surface-color);
}
.doc-view .dc-drop-icon { font-size: 26px; margin-bottom: 6px; }

/* 已上传文件列表 */
.doc-view .dc-filelist {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.doc-view .dc-fileitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
    font-size: 13px;
}
.doc-view .dc-fileitem .dc-fname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-view .dc-fileitem .dc-fsize { color: var(--text-secondary); font-size: 12px; }
.doc-view .dc-fileitem .dc-fremove {
    border: none; background: none; color: #e5484d; cursor: pointer; font-size: 13px;
}
.doc-view .dc-fileitem .dc-fstatus { font-size: 12px; color: var(--text-secondary); }

/* 进度 */
.doc-view .dc-progress { margin-top: 8px; }
.doc-view .dc-progress-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.doc-view .dc-progress-bar {
    height: 10px;
    border-radius: 6px;
    background: var(--background-color);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.doc-view .dc-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-color, #3b82f6);
    transition: width .3s;
}
.doc-view .dc-progress-text { font-size: 12px; color: var(--text-secondary); margin: 8px 0; }
.doc-view .dc-log {
    max-height: 160px;
    overflow: auto;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.doc-view .dc-log .dc-log-line { white-space: pre-wrap; word-break: break-all; }

/* 结果摘要 */
.doc-view .dc-results { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.doc-view .dc-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
    font-size: 13px;
}
.doc-view .dc-result-item .dc-rname { flex: 1; }
.doc-view .dc-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.doc-view .dc-score-ok { background: #16a34a; }
.doc-view .dc-score-mid { background: #d97706; }
.doc-view .dc-score-low { background: #e5484d; }
.doc-view .dc-result-item .dc-rdownload {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
}
