.pdfw-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.2rem;
    align-items: stretch;
}

.pdfw-main {
    min-width: 0;
}

.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 {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.85rem;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
}

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

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

.upload-hint {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.7;
}

.file-info {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
    background: #fff;
}

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

.file-name {
    min-width: 0;
    font-size: 0.88rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-change {
    flex: 0 0 auto;
    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.65rem 1rem;
    font-size: 0.82rem;
    color: #777;
}

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

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

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

.format-hint {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.7;
}

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

.result-success {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
}

.result-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 0.85rem;
    border-radius: 8px;
    background: #ecfdf5;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

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

.result-detail {
    font-size: 0.86rem;
    color: #666;
    margin-bottom: 1.1rem;
    line-height: 1.7;
}

.pdfw-side {
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    padding: 1rem;
    background: #f8fbff;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pdfw-side-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

.pdfw-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.pdfw-check-list li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.86rem;
    color: #374151;
    line-height: 1.6;
}

.pdfw-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
}

.pdfw-side-note {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid #dbeafe;
    font-size: 0.8rem;
    line-height: 1.7;
    color: #666;
}

.feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

@media (max-width: 760px) {
    .pdfw-layout {
        grid-template-columns: 1fr;
    }

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