.pdf-tool-container {
    max-width: 800px;
    margin: 0 auto;
}

.upload-area {
    background: white;
    border: 3px dashed #667eea;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover,
.upload-area.dragover {
    background: #f8f9ff;
    border-color: #764ba2;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload-area p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.select-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.select-btn:hover {
    transform: translateY(-2px);
}

.ocr-option {
    margin-top: 1.5rem;
    text-align: left;
    padding: 0 2rem;
}

.ocr-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #666;
    font-size: 0.9rem;
}

.ocr-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.ocr-hint {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
    margin-left: 1.5rem;
}

.progress-area {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.progress-area p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s;
}

.result-area {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.result-header h3 {
    color: #333;
    margin: 0;
}

.result-actions {
    display: flex;
    gap: 1rem;
}

.reset-btn,
.copy-btn,
.download-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.copy-btn {
    background: #f0f0f0;
    color: #333;
}

.copy-btn:hover {
    background: #e0e0e0;
}

.download-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.download-btn:hover {
    transform: translateY(-2px);
}

.text-preview {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.text-preview textarea {
    width: 100%;
    min-height: 400px;
    padding: 1.5rem;
    border: none;
    background: transparent;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    resize: vertical;
    outline: none;
}

.page-count {
    text-align: center;
    color: #999;
    margin-top: 1rem;
    font-size: 0.9rem;
}