/* PDF 压缩 — 商业化工具页（靛蓝主题） */
.pc-card {
    min-height: 520px;
}

.pc-card.is-working {
    box-shadow: 0 8px 32px rgba(99, 102, 241, .12);
}

.pc-card .ai-tool-card-badge {
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

.pc-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #fff 100%);
    border-bottom: 1px solid rgba(99, 102, 241, .1);
}

.pc-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;
}

.pc-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;
}

.pc-step.is-active {
    background: #fff;
    border-color: #6366f1;
    color: #4f46e5;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, .15);
}

.pc-step.is-active .pc-step-num {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
}

.pc-step.is-done {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}

.pc-step.is-done .pc-step-num {
    background: #6366f1;
    color: #fff;
}

.pc-step-arrow {
    width: 18px;
    height: 2px;
    background: linear-gradient(90deg, #d0d7de, #6366f1);
    border-radius: 1px;
    opacity: .45;
}

.pc-hero {
    padding: 24px 28px 28px;
}

.pc-hero-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

.pc-upload-inner {
    min-height: 300px;
    cursor: pointer;
    user-select: none;
}

.pc-demo-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}

.pc-demo {
    position: relative;
    width: 88px;
    height: 100px;
    border-radius: 12px;
    border: 2px solid #e0e6ed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    text-align: center;
}

.pc-demo--large {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #f87171;
}

.pc-demo--small {
    background: linear-gradient(135deg, #eef2ff, #c7d2fe);
    border-color: #818cf8;
}

.pc-demo-icon {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.pc-demo--large .pc-demo-icon {
    color: #dc2626;
}

.pc-demo--small .pc-demo-icon {
    color: #4f46e5;
}

.pc-demo-label {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
}

.pc-demo-arrow {
    font-size: 20px;
    color: #6366f1;
    font-weight: 700;
}

.pc-upload-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    text-align: center;
}

.pc-upload-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 18px;
    text-align: center;
    max-width: 420px;
}

.pc-upload-hint {
    font-size: 12px;
    color: #94a3b8;
    margin: 14px 0 0;
    text-align: center;
}

.pc-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    font-size: 12px;
    color: #4338ca;
    font-weight: 600;
}

.pc-aside {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
}

.pc-aside-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.pc-aside-tip {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 16px;
}

.pc-aside-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pc-aside-list li {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.pc-aside-list li strong {
    display: block;
    color: #1e293b;
    font-size: 13px;
    margin-bottom: 2px;
}

.pc-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;
}

.pc-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;
}

.pc-features li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 16px 12px;
    background: #f5f3ff;
    border: 1px solid #e0e7ff;
    border-radius: 14px;
}

.pc-feature-icon {
    font-size: 24px;
}

.pc-features strong {
    font-size: 14px;
    color: #1a1a2e;
}

.pc-features span:last-child {
    font-size: 12px;
    color: #888;
}

.pc-workspace,
.pc-result {
    padding: 28px 24px 32px;
}

.pc-file-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f5f3ff;
    border: 1px solid #e0e7ff;
    border-radius: 16px;
    margin-bottom: 16px;
}

.pc-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;
}

.pc-file-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px;
    word-break: break-all;
}

.pc-file-meta {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.pc-mode-block {
    margin-bottom: 24px;
    padding: 20px 22px 22px;
    background: linear-gradient(180deg, #fafaff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.pc-mode-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.pc-mode-head-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    font-size: 16px;
}

.pc-mode-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
}

.pc-mode-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

.pc-mode-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pc-mode-cards.is-disabled {
    opacity: .65;
    pointer-events: none;
}

.pc-mode-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 14px 14px;
    background: #fff;
    border: 2px solid #e8ecf0;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    user-select: none;
}

.pc-mode-card:hover {
    border-color: #a5b4fc;
    box-shadow: 0 4px 16px rgba(99, 102, 241, .08);
}

.pc-mode-card.is-active {
    border-color: #6366f1;
    background: linear-gradient(180deg, #fff 0%, #eef2ff 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, .12);
}

.pc-mode-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pc-mode-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: #fff;
}

.pc-mode-card-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 4px;
    margin: -3px 0 0 -4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    transition: transform .15s;
}

.pc-mode-card.is-active .pc-mode-card-check {
    border-color: #6366f1;
    background: #6366f1;
}

.pc-mode-card.is-active .pc-mode-card-check::after {
    transform: rotate(-45deg) scale(1);
}

.pc-mode-card-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
}

.pc-mode-card-icon {
    font-size: 24px;
    line-height: 1;
}

.pc-mode-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.pc-mode-card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.pdf-tool-progress--indigo .ai-tool-progress-bar {
    background: linear-gradient(90deg, #6366f1, #818cf8);
}

.pc-result {
    text-align: center;
}

.pc-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(99, 102, 241, .25);
}

.pc-result-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.pc-result-name {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
    word-break: break-all;
}

.pc-result .ai-tool-actions {
    justify-content: center;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.pc-result .ai-tool-btn-primary {
    text-decoration: none;
    display: inline-block;
}

.pc-content {
    padding: 0 24px 28px;
    border-top: 1px solid #eef2f7;
}

.pc-content .content-texthtml {
    margin: 20px 0 0;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

@media (max-width: 900px) {
    .pc-hero-grid {
        grid-template-columns: 1fr;
    }

    .pc-features {
        grid-template-columns: 1fr;
    }

    .pc-mode-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pc-hero,
    .pc-workspace,
    .pc-result {
        padding: 16px;
    }

    .pc-step-text {
        display: none;
    }

    .pc-step.is-active .pc-step-text {
        display: inline;
    }
}

@media screen and (max-width: 480px) {
    .pc-card {
        min-height: auto;
    }

    .pc-hero,
    .pc-workspace,
    .pc-result {
        padding: 12px 8px;
    }

    .pc-hero-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pc-hero-content,
    .pc-hero-visual {
        width: 100%;
    }

    .pc-steps {
        padding: 10px 8px;
        gap: 4px 6px;
    }

    .pc-step {
        font-size: 11px;
        padding: 4px 8px;
    }

    .pc-upload-inner {
        padding: 20px 12px;
    }

    .pc-aside {
        display: none;
        width: 100%;
    }

    .pc-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pc-file-card {
        width: 100%;
        max-width: 100%;
    }

    .pc-mode-block {
        padding: 14px 12px;
    }

    .pc-mode-cards {
        grid-template-columns: 1fr;
    }

    .pc-result .ai-tool-btn-primary,
    .pc-result .ai-tool-actions {
        width: 100%;
    }
}
