/* PDF 转 Word — 商业化工具页 */
.pw-card {
    min-height: 520px;
}

.pw-card.is-working {
    box-shadow: 0 8px 32px rgba(13, 110, 253, .12);
}

.pw-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #eef4ff 0%, #f0f7ff 50%, #fff 100%);
    border-bottom: 1px solid rgba(13, 110, 253, .1);
}

.pw-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid #e8ecf0;
    color: #888;
    font-size: 12px;
    transition: all .3s;
}

.pw-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e8ecf0;
    color: #666;
    font-size: 11px;
    font-weight: 700;
}

.pw-step.is-active {
    background: #fff;
    border-color: #0d6efd;
    color: #0d6efd;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(13, 110, 253, .15);
}

.pw-step.is-active .pw-step-num {
    background: linear-gradient(135deg, #0d6efd, #4dabf7);
    color: #fff;
}

.pw-step.is-done {
    background: #eef4ff;
    border-color: #b8d4fe;
    color: #0b5ed7;
}

.pw-step.is-done .pw-step-num {
    background: #0d6efd;
    color: #fff;
}

.pw-step-arrow {
    width: 18px;
    height: 2px;
    background: linear-gradient(90deg, #d0d7de, #0d6efd);
    border-radius: 1px;
    opacity: .45;
}

.pw-hero {
    padding: 24px 28px 28px;
}

.pw-hero-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

.pw-upload-inner {
    min-height: 300px;
    cursor: pointer;
    user-select: none;
}

.pw-demo-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}

.pw-demo {
    position: relative;
    width: 88px;
    height: 100px;
    border-radius: 12px;
    border: 2px solid #e0e6ed;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    text-align: center;
}

.pw-demo--pdf {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #f87171;
}

.pw-demo--doc {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #60a5fa;
}

.pw-demo-icon {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.5px;
}

.pw-demo--pdf .pw-demo-icon {
    color: #dc2626;
}

.pw-demo--doc .pw-demo-icon {
    color: #2563eb;
}

.pw-demo-label {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
}

.pw-demo-arrow {
    font-size: 20px;
    color: #0d6efd;
    font-weight: 700;
}

.pw-upload-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    text-align: center;
}

.pw-upload-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 18px;
    text-align: center;
    max-width: 420px;
}

.pw-upload-hint {
    font-size: 12px;
    color: #94a3b8;
    margin: 14px 0 0;
    text-align: center;
}

.pw-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    background: #eef4ff;
    border: 1px solid #b8d4fe;
    border-radius: 999px;
    font-size: 12px;
    color: #0b5ed7;
    font-weight: 600;
}

.pw-aside {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
}

.pw-aside-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.pw-aside-tip {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 16px;
}

.pw-aside-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pw-aside-list li {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.pw-aside-list li strong {
    display: block;
    color: #1e293b;
    font-size: 13px;
    margin-bottom: 2px;
}

.pw-aside-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.pw-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eef2f7;
    list-style: none;
}

.pw-features li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 16px 12px;
    background: #f8fbff;
    border: 1px solid #e8f0fe;
    border-radius: 14px;
}

.pw-feature-icon {
    font-size: 24px;
    line-height: 1;
}

.pw-features strong {
    font-size: 14px;
    color: #1a1a2e;
}

.pw-features span:last-child {
    font-size: 12px;
    color: #888;
}

.pw-workspace,
.pw-result {
    padding: 28px 24px 32px;
}

.pw-file-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    margin-bottom: 8px;
}

.pw-file-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #dc2626;
}

.pw-file-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px;
    word-break: break-all;
}

.pw-file-meta {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.pw-result {
    text-align: center;
}

.pw-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(16, 185, 129, .25);
}

.pw-result-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.pw-result-name {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
    word-break: break-all;
}

.pw-result .ai-tool-actions {
    justify-content: center;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.pw-result .ai-tool-btn-primary {
    text-decoration: none;
    display: inline-block;
}

.pw-content {
    padding: 0 24px 28px;
    border-top: 1px solid #eef2f7;
}

.pw-content .content-texthtml {
    margin: 20px 0 0;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

@media (max-width: 900px) {
    .pw-hero-grid {
        grid-template-columns: 1fr;
    }

    .pw-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pw-hero {
        padding: 16px;
    }

    .pw-workspace,
    .pw-result {
        padding: 20px 16px 24px;
    }

    .pw-steps {
        padding: 12px;
    }

    .pw-step-text {
        display: none;
    }

    .pw-step.is-active .pw-step-text {
        display: inline;
    }
}

@media screen and (max-width: 480px) {
    .pw-card {
        min-height: auto;
    }

    .pw-hero,
    .pw-workspace,
    .pw-result {
        padding: 12px 8px;
    }

    .pw-hero-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pw-hero-content,
    .pw-hero-visual {
        width: 100%;
    }

    .pw-steps {
        padding: 10px 8px;
        gap: 4px 6px;
    }

    .pw-step {
        font-size: 11px;
        padding: 4px 8px;
    }

    .pw-upload-inner {
        padding: 20px 12px;
    }

    .pw-aside {
        display: none;
        width: 100%;
    }

    .pw-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pw-file-card {
        width: 100%;
        max-width: 100%;
    }

    .pw-result .ai-tool-btn-primary,
    .pw-result .ai-tool-actions {
        width: 100%;
    }
}
