.mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.mode-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
    font-family: inherit;
}

.mode-card:hover {
    transform: translateY(-1px);
    border-color: #c7d2fe;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08);
}

.mode-card.active {
    border-color: #2563eb;
    background: #eff6ff;
}

.mode-icon {
    font-size: 1.8rem;
}

.mode-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.mode-desc {
    font-size: 0.86rem;
    color: #6b7280;
    line-height: 1.7;
}

.mode-note {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    background: #f8fbff;
    color: #1e3a8a;
    font-size: 0.88rem;
    line-height: 1.7;
}

.task-options {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    background: #fff;
}

.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;
    margin-top: 0;
}

.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;
    margin-top: 1rem;
}

.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;
}

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

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

.format-hint {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.7;
}

.wt-progress,
.task-result {
    margin-top: 1.2rem;
}

.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) {
    .mode-grid {
        grid-template-columns: 1fr;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

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