/* ── 视频转文字工具页 ── */

/* 上传区域 */
.upload-area {
    border: 2px dashed #d0d5dd;
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fafbfc;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #2563eb;
    background: #f0f4ff;
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.upload-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.4rem;
}

.upload-link {
    color: #2563eb;
    cursor: pointer;
    font-weight: 500;
}

.upload-hint {
    font-size: 0.82rem;
    color: #999;
}

/* 文件信息 */
.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #f8f9fb;
    border: 1px solid #e8eaf0;
    border-radius: 8px;
}

.file-info-name {
    font-size: 0.9rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.btn-change {
    font-size: 0.82rem;
    color: #2563eb;
    background: none;
    border: 1px solid #2563eb;
    border-radius: 4px;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    font-family: inherit;
}

.btn-change:hover {
    background: #f0f4ff;
}

/* 结果区域 */
.result-area {
    margin-top: 1.2rem;
}

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

.result-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.btn-copy {
    font-size: 0.82rem;
    color: white;
    background: #2563eb;
    border: none;
    border-radius: 4px;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
    font-family: inherit;
}

.btn-copy:hover {
    background: #1d4ed8;
}

.result-text {
    width: 100%;
    min-height: 160px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    line-height: 1.7;
    color: #333;
    background: #fafbfc;
    resize: vertical;
    box-sizing: border-box;
}

.result-text:focus {
    outline: none;
    border-color: #2563eb;
}

/* 移动端适配 */
@media (max-width: 640px) {
    .upload-area {
        padding: 2rem 1rem;
    }

    .upload-icon {
        font-size: 2rem;
    }
}
