/* 文件类工具公共样式 /css/tools/file-tool.css
   拖拽区 / 文件列表 / 进度条 —— 供所有图片、PDF、文档类工具复用 */

.ft-drop {
    border: 2px dashed var(--c-border);
    border-radius: 14px;
    background: var(--c-surface-soft);
    padding: 22px 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.ft-drop:hover,
.ft-drop.over {
    border-color: var(--c-primary);
    background: rgba(0, 150, 220, .06);
}

.ft-drop-ico { font-size: 30px; display: block; margin-bottom: 6px; opacity: .85; }
.ft-drop-txt { font-size: 13.5px; font-weight: 700; color: var(--c-text); }
.ft-drop-sub { font-size: 11.5px; color: var(--c-text-muted); margin-top: 4px; }

/* 文件列表 */
.ft-list { margin-top: 12px; }

.ft-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    background: var(--c-surface-soft);
    margin-bottom: 7px;
    min-width: 0;
}

.ft-thumb {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
}

.ft-thumb-txt {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.ft-meta { flex: 1 1 auto; min-width: 0; }

.ft-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--c-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ft-sub { font-size: 11px; color: var(--c-text-muted); margin-top: 2px; }

.ft-del {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-bg-soft);
    color: var(--c-text-sub);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.ft-del:hover { border-color: #e0447c; color: #e0447c; }

/* 进度条 */
.ft-progress {
    margin-top: 12px;
    height: 8px;
    border-radius: 99px;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    overflow: hidden;
}

.ft-progress-fill {
    height: 100%;
    width: 0;
    background: var(--c-primary);
    border-radius: 99px;
    transition: width .2s ease;
}

.ft-progress-txt {
    font-size: 11.5px;
    color: var(--c-text-muted);
    margin-top: 6px;
    text-align: center;
}

/* 结果文件列表 */
.ft-out {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    background: var(--c-surface-soft);
    margin-bottom: 7px;
}

.ft-out-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--c-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ft-out-sub { font-size: 11px; color: var(--c-text-muted); }

/* 提示条 */
.ft-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    background: rgba(20, 24, 32, .92);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s;
}

.ft-toast.show { opacity: 1; }

.ft-empty {
    font-size: 12.5px;
    color: var(--c-text-muted);
    padding: 10px 2px;
    text-align: center;
}
