/* ── 视频分辨率转换工具页 ── */

/* 上传区域 */
.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 {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.file-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    background: #f8f9fb;
    border-bottom: 1px solid #e8eaf0;
}

.file-name {
    font-size: 0.88rem;
    color: #555;
    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;
}

.file-meta {
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    color: #888;
}

/* 参数选项 */
.task-options {
    margin-top: 1.2rem;
}

.option-group {
    margin-bottom: 1rem;
}

.option-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.format-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.format-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}

.format-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.format-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.res-hint {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: #999;
}

/* 结果区域 */
.result-success {
    text-align: center;
    padding: 1.5rem;
}

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

.result-msg {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

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

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

    .format-btns {
        gap: 0.4rem;
    }

    .format-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.82rem;
    }
}