        /* div9img 样式 */
        #div9img {
            position: fixed;
            z-index: 99999;
            display: none;
            min-width: 320px;
            max-width: 700px;
            background: #ffffffa0;
            border-radius: 16px;
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(0, 0, 0, 0.05),
                0 8px 32px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            opacity: 0;
            transform: translateY(10px) scale(0.98);
            transition: 
                opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: auto;
            font-family: -apple-system, BlinkMacSystemFont, sans-serif;
        }
        
        #div9img.show {
            display: block;
            opacity: 1;
            transform: translateY(0) scale(1);
        }
        
        /* 预览头部 */
        .preview-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 18px;
            background: #f8fafc70;
            border-bottom: 1px solid #e2e8f0;
            user-select: none;
            cursor: move;
        }
        
        .preview-header:active {
            cursor: grabbing;
        }
        
        .preview-title {
            font-size: 14px;
            font-weight: 600;
            color: #475569;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .preview-controls {
            display: flex;
            gap: 6px;
        }
        
        .preview-btn {
            width: 28px;
            height: 28px;
            border-radius: 6px;
            border: 1px solid #e2e8f0;
            background: white;
            color: #64748b;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            transition: all 0.15s;
        }
        
        .preview-btn:hover {
            background: #f1f5f9;
            color: #334155;
            border-color: #cbd5e1;
        }
        
        .preview-btn.close:hover {
            background: #ef4444;
            color: white;
            border-color: #dc2626;
        }
        
        /* 预览内容 */
        .preview-content {
            padding: 0;
            max-height: 60vh;
            overflow: auto;
        }
        
        /* 加载状态 */
        .loading-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 50px 30px;
            text-align: center;
        }
        
        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #e2e8f0;
            border-top-color: #3b82f6;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 15px;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .loading-text {
            color: #64748b;
            font-size: 14px;
        }
        
        /* 图片样式 */
        .preview-image {
            width: 100%;
            max-height: 700px;
            height: auto;
            display: block;
        }
        
        /* 错误状态 */
        .error-state {
            padding: 40px 25px;
            text-align: center;
        }
        
        .error-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
            opacity: 0.7;
        }
        
        .error-title {
            font-size: 16px;
            font-weight: 600;
            color: #dc2626;
            margin-bottom: 8px;
        }
        
        .error-message {
            color: #6b7280;
            font-size: 13px;
            line-height: 1.5;
        }
        
        /* 数据预览 */
        .data-preview {
            padding: 20px;
        }
        
        .data-title {
            font-size: 14px;
            font-weight: 600;
            color: #4b5563;
            margin-bottom: 12px;
        }
        
        pre {
            background: #f8fafc;
            padding: 12px;
            border-radius: 8px;
            overflow: auto;
            max-height: 300px;
            font-size: 12px;
            line-height: 1.5;
            margin: 0;
            font-family: 'Monaco', 'Menlo', monospace;
        }