.product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }
        
        .product-card {
            border: 1px solid #dee2e6;
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.3s;
            cursor: pointer;
            position: relative;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .delete-product {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(231, 76, 60, 0.8);
            color: white;
            border: none;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            z-index: 10;
        }
        
        .product-image {
            height: 140px;
            background: #f5f5f5;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        
        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .product-info {
            padding: 12px;
        }
        
        .product-title {
            font-size: 14px;
            margin-bottom: 8px;
            height: 40px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        
        .product-price {
            color: var(--danger-color);
            font-weight: bold;
            font-size: 16px;
        }
        
        /* 修复插入产品的布局 */
        .inserted-product {
            border: 1px dashed var(--primary-color);
            border-radius: 8px;
            padding: 15px;
            margin: 15px 0;
            background: #f0f8ff;
            display: flex;
            gap: 15px;
            position: relative;
        }
        
        .inserted-product .delete-product {
            top: 10px;
            right: 10px;
        }
        
        .inserted-product img {
            width: 150px;
            height: 150px;
            object-fit: cover;
            border-radius: 6px;
        }
        
        .product-details {
            flex: 1;
        }
        
        .product-details h5 {
            margin-bottom: 8px;
            color: #333;
        }
        
        .product-details .price {
            color: var(--danger-color);
            font-weight: bold;
            margin-bottom: 8px;
        }
        
        .custom-modal-header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
        }
        
        .source-modal-header {
            background: linear-gradient(135deg, #9b59b6, #e74c3c);
            color: white;
        }
        
        .toolbar-btn {
            display: flex;
            align-items: center;
            gap: 5px;
            margin-right: 8px;
            margin-bottom: 8px;
        }
        
        .btn-toolbar {
            background: white;
            border: 1px solid #ced4da;
            color: #495057;
        }
        
        .btn-toolbar:hover {
            background: #e9ecef;
            border-color: #adb5bd;
        }
        
        .btn-toolbar.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        @media (max-width: 992px) {
            .editor-section {
                flex-direction: column;
            }
            
            .editor-panel {
                border-right: none;
                border-bottom: 1px solid #dee2e6;
            }
            
            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
            
            .inserted-product {
                flex-direction: column;
                text-align: center;
            }
            
            .inserted-product img {
                width: 100%;
                height: 150px;
            }
        }
        
        .stats-card {
            background: white;
            border-radius: 8px;
            padding: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            border-left: 4px solid var(--primary-color);
        }
        
        .stats-value {
            font-size: 24px;
            font-weight: bold;
            color: var(--primary-color);
        }
        
        .stats-label {
            font-size: 14px;
            color: #6c757d;
        }
        
        .markdown-shortcuts {
            background: #f8f9fa;
            border-radius: 5px;
            padding: 10px;
            margin-top: 10px;
            font-size: 13px;
        }
        
        .shortcut-item {
            display: inline-block;
            margin-right: 15px;
            color: #6c757d;
        }
        
        .shortcut-key {
            background: #e9ecef;
            padding: 2px 6px;
            border-radius: 3px;
            font-family: monospace;
            margin-right: 5px;
        }
        
        
        .declaration-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
            padding: 2rem;
            margin-bottom: 2rem;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-left: 4px solid var(--primary-color);
        }