/* CSS Document */

        /* 独立搜索模块样式 - 不会影响页面其他元素 */
        .standalone-search-module {
            width: 80%;
            margin: 20px auto;
            background: white;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            padding: 25px;
            transition: all 0.3s ease;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
            position: relative;
        }
        
        .standalone-search-module .search-header {
            text-align: center;
            margin-bottom: 20px;
            color: #333;
            font-size: 24px;
            font-weight: 600;
        }
        
        .standalone-search-module .search-box {
            width: 100%;
            display: flex;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            margin-bottom: 20px;
        }
        
        .standalone-search-module .search-input {
            flex: 1;
            padding: 12px 16px;
            border: 1px solid #e0e0e0;
            border-right: none;
            outline: none;
            font-size: 15px;
            background: #f9f9f9;
            box-sizing: border-box;
        }
        
        .standalone-search-module .search-btn {
            padding: 12px 24px;
            background: #4a6cf7;
            color: white;
            border: none;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        
        .standalone-search-module .search-btn:hover {
            background: #3a5ce5;
        }
        
        .standalone-search-module .engine-selector-wrapper {
            position: relative;
            min-height: 45px;
        }
        
        .standalone-search-module .engine-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: flex-start;
            align-items: flex-start;
            padding-right: 100px; /* 为折叠按钮留出足够空间 */
        }
        
        .standalone-search-module .engine-btn {
            padding: 10px 14px;
            background: #f5f7ff;
            border: 1px solid #e0e6ff;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s ease;
            color: #555;
            white-space: nowrap;
            box-sizing: border-box;
            position: relative;
            flex-shrink: 0;
            height: 38px;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .standalone-search-module .engine-btn:hover {
            background: #e1e9ff;
            transform: translateY(-1px);
        }
        
        .standalone-search-module .engine-btn.active {
            background: #4a6cf7;
            color: white;
            border-color: #3a5ce5;
        }
        
        .standalone-search-module .engine-btn.active::after {
            content: attr(data-order);
            position: absolute;
            top: -6px;
            right: -6px;
            background: #ff4757;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        
        /* 折叠按钮样式 */
        .standalone-search-module .toggle-btn {
            position: absolute;
            right: 0;
            top: 0;
            padding: 8px 16px;
            background: #4a6cf7;
            color: white;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(74, 108, 247, 0.3);
            white-space: nowrap;
        }
        
        .standalone-search-module .toggle-btn:hover {
            background: #3a5ce5;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(74, 108, 247, 0.4);
        }
        
        .standalone-search-module .toggle-btn i {
            transition: transform 0.3s ease;
            font-size: 14px;
        }
        
        .standalone-search-module .toggle-btn.expanded i {
            transform: rotate(180deg);
        }
        
        /* 折叠区域样式 */
        .standalone-search-module .collapsed-engines {
            display: none;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #e9ecef;
            animation: fadeIn 0.3s ease;
        }
        
        .standalone-search-module .collapsed-engines.show {
            display: flex;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .standalone-search-module {
                width: 95%;
                padding: 20px;
            }
            
            .standalone-search-module .search-box {
                flex-direction: column;
                border-radius: 8px;
                overflow: visible;
                box-shadow: none;
            }
            
            .standalone-search-module .search-input {
                border: 1px solid #e0e0e0;
                border-radius: 8px 8px 0 0;
                margin-bottom: 0;
            }
            
            .standalone-search-module .search-btn {
                border-radius: 0 0 8px 8px;
                margin-top: 0;
            }
            
            .standalone-search-module .engine-selector {
                gap: 6px;
                padding-right: 90px;
            }
            
            .standalone-search-module .engine-btn {
                padding: 8px 12px;
                font-size: 12px;
                height: 36px;
            }
            
            .standalone-search-module .toggle-btn {
                padding: 6px 12px;
                font-size: 12px;
            }
        }
        
        @media (max-width: 480px) {
            .standalone-search-module .search-header {
                font-size: 20px;
            }
            
            .standalone-search-module .engine-selector {
                padding-right: 80px;
            }
            
            .standalone-search-module .engine-btn {
                padding: 7px 10px;
                font-size: 11px;
                height: 34px;
            }
            
            .standalone-search-module .toggle-btn {
                padding: 5px 10px;
                font-size: 11px;
            }
        }
		