  /* 产品比较样式 */
        .compare-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        .compare-header h2 {
            font-size: 26px;
            color: #1e3c72;
            border-left: 4px solid #e31e24;
            padding-left: 15px;
            margin: 0;
        }
        .compare-controls {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .toggle-same-params {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: #666;
        }
        .toggle-switch {
            position: relative;
            width: 40px;
            height: 20px;
            background: #ddd;
           
            cursor: pointer;
            transition: background 0.2s;
        }
        .toggle-switch.active {
            background: #e31e24;
        }
        .toggle-switch::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            background: #fff;
          
            top: 2px;
            left: 2px;
            transition: left 0.2s;
        }
        .toggle-switch.active::after {
            left: 22px;
        }
        .product-selection {
            margin-bottom: 25px;
        }
        .product-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }
        .product-item {
            border: 1px solid #ddd;
          
            padding: 15px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .product-item.selected {
            border-color: #e31e24;
            background: rgba(227,30,36,0.05);
        }
        .product-item:hover {
            border-color: #e31e24;
        }
        .product-item h4 {
            font-size: 14px;
            margin: 0 0 8px 0;
            color: #333;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .product-item p {
            font-size: 12px;
            color: #666;
            margin: 0;
        }
        .pagination {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 15px;
        }
        .page-btn {
            padding: 6px 12px;
            border: 1px solid #ddd;
            
            background: #fff;
            cursor: pointer;
            transition: all 0.2s;
        }
        .page-btn.active {
            background: #e31e24;
            color: #fff;
            border-color: #e31e24;
        }
        .page-btn:hover:not(.active) {
            border-color: #e31e24;
            color: #e31e24;
        }
        .compare-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        .compare-table th, .compare-table td {
            padding: 12px 15px;
            border: 1px solid #eee;
            text-align: left;
        }
        .compare-table th {
            background: #f8f9fa;
            font-weight: 600;
            color: #333;
        }
        .compare-table .param-name {
            font-weight: 600;
            color: #2c3e50;
        }
        .same-param {
            background: #f8f9fa;
        }
        .compare-empty {
            text-align: center;
            padding: 40px;
            color: #666;
            font-size: 16px;
        }
        
        @media (max-width: 640px) {
            .modal-container { padding: 25px 18px; }
            .consult-modal .contact-form h2 { font-size: 22px; }
            .compare-modal .modal-container {
                width: 95%;
                padding: 20px 15px;
            }
            .compare-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            .compare-controls {
                width: 100%;
                justify-content: space-between;
            }
            .compare-table {
                font-size: 12px;
            }
            .compare-table th, .compare-table td {
                padding: 8px 10px;
            }
        }