.pdfv-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pdfv-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pdfv-section {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.pdfv-section h3 {
    font-size: 0.95em;
    color: #2c3e50;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdfv-section h3 i {
    color: #e74c3c;
}

/* 上传区 */
.pdfv-upload {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.pdfv-upload:hover,
.pdfv-upload.dragover {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.pdfv-upload i {
    font-size: 1.8em;
    color: #e74c3c;
    margin-bottom: 8px;
}

.pdfv-upload p {
    color: #666;
    font-size: 0.85em;
    margin: 0 0 4px;
}

.pdfv-hint {
    color: #999;
    font-size: 0.75em;
}

/* 文件信息 */
.pdfv-file-info {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdfv-file-name {
    font-size: 0.85em;
    font-weight: 600;
    color: #2c3e50;
    word-break: break-all;
}

.pdfv-file-size {
    font-size: 0.8em;
    color: #718096;
}

/* 表单 */
.pdfv-form-row {
    margin-bottom: 10px;
}

.pdfv-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.pdfv-input:focus {
    border-color: #e74c3c;
}

/* 按钮 */
.pdfv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pdfv-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pdfv-btn-primary {
    background: #e74c3c;
    color: #fff;
}

.pdfv-btn-primary:hover:not(:disabled) {
    background: #c0392b;
}

.pdfv-btn-outline {
    background: #fff;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.pdfv-btn-outline:hover:not(:disabled) {
    background: #fef2f2;
}

.pdfv-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 使用次数信息 */
.pdfv-usage-info {
    background: #e8f4fd;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85em;
    color: #2c3e50;
    text-align: center;
}

.pdfv-usage-info i {
    color: #3498db;
    margin-right: 4px;
}

/* VIP遮罩 */
.pdfv-vip-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: rgba(0,0,0,0.75);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    backdrop-filter: blur(2px);
}

.pdfv-vip-mask-inner {
    text-align: center;
    color: #fff;
    padding: 30px;
}

.pdfv-vip-mask-icon {
    font-size: 3em;
    margin-bottom: 12px;
}

.pdfv-vip-mask-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 8px;
}

.pdfv-vip-mask-desc {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.pdfv-vip-mask-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.pdfv-vip-btn {
    background: #3498db;
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.pdfv-vip-btn:hover {
    background: #2980b9;
}

.pdfv-vip-btn-single {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.pdfv-vip-btn-single:hover {
    background: #c0392b;
}

/* 主区域 */
.pdfv-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    min-width: 0;
}

.pdfv-main.has-vip-mask {
    min-height: 500px;
}

/* 预览区域 */
.pdfv-preview-wrap {
    position: relative;
    background: #f0f0f0;
    border-radius: 12px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    border: 1px solid #e0e0e0;
}

.pdfv-placeholder {
    text-align: center;
    color: #999;
    padding: 60px 20px;
}

.pdfv-placeholder i {
    font-size: 3em;
    margin-bottom: 12px;
    color: #bdc3c7;
}

.pdfv-placeholder p {
    margin: 0;
    font-size: 0.9em;
}

/* canvas 容器 */
.pdfv-canvas-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    width: 100%;
    min-height: 100%;
}

.pdfv-canvas-wrap canvas {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: #fff;
    max-width: 100%;
}

/* 控制栏 - 固定在底部 */
.pdfv-controls {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    z-index: 5;
    border: 1px solid #eee;
}

.pdfv-control-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdfv-ctrl-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.85em;
}

.pdfv-ctrl-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #e74c3c;
    color: #e74c3c;
}

.pdfv-ctrl-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pdfv-ctrl-btn-download {
    width: auto;
    padding: 0 14px;
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.pdfv-ctrl-btn-download:hover:not(:disabled) {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

.pdfv-page-input-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px 8px;
}

.pdfv-page-input {
    width: 50px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
    text-align: center;
    outline: none;
}

.pdfv-page-input:focus {
    border-color: #e74c3c;
}

.pdfv-page-total {
    font-size: 0.85em;
    color: #718096;
    white-space: nowrap;
}

.pdfv-zoom-text {
    font-size: 0.85em;
    color: #555;
    min-width: 44px;
    text-align: center;
    font-weight: 600;
}

/* 使用提示 */
.pdfv-tips {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.pdfv-tips h4 {
    font-size: 1em;
    color: #2c3e50;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdfv-tips h4 i {
    color: #f39c12;
}

.pdfv-tip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pdfv-tip-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid #e74c3c;
}

.pdfv-tip-item strong {
    display: block;
    font-size: 0.9em;
    color: #2c3e50;
    margin-bottom: 4px;
}

.pdfv-tip-item p {
    font-size: 0.8em;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* 加载状态 */
.pdfv-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #666;
    font-size: 0.9em;
}

.pdfv-loading i {
    font-size: 2em;
    color: #e74c3c;
}

/* 错误提示 */
.pdfv-error {
    text-align: center;
    color: #e74c3c;
    padding: 40px 20px;
}

.pdfv-error i {
    font-size: 2em;
    margin-bottom: 8px;
}

/* 响应式 */
@media (max-width: 768px) {
    .pdfv-container {
        grid-template-columns: 1fr;
    }
    .pdfv-tip-grid {
        grid-template-columns: 1fr;
    }
    .pdfv-controls {
        gap: 12px;
        padding: 10px 12px;
    }
    .pdfv-preview-wrap {
        min-height: 350px;
    }
}
