/* 百度风格搜索框样式 */
.baidu-search-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 20px 16px;
    position: relative;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    gap: 0;
    border: none;
    padding: 0;
    box-shadow: none;
    background-color: transparent;
    overflow: visible;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 460px;
    height: 48px;
    border: 1px solid #667eea;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    transition: box-shadow 0.3s ease;
    background-color: white;
    overflow: hidden;
    position: relative;
}

.search-input-wrapper:hover, .search-input-wrapper:focus-within {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
}

.baidu-search-input {
    flex: 1;
    height: 48px;
    border: none;
    outline: none;
    font-size: 16px;
    line-height: 48px;
    color: #333;
    background: transparent;
    border-radius: 0;
    padding: 0 48px 0 16px;
    width: 100%;
}

.search-icon {
    color: #667eea;
    font-size: 16px;
    margin: 0 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.search-icon:hover {
    color: #764ba2;
    transform: scale(1.1);
}

.baidu-search-button {
    height: 48px;
    padding: 0 24px;
    margin-left: 12px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    min-width: 120px;
}

.baidu-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.baidu-search-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .baidu-search-container {
        flex-direction: column;
        max-width: 100%;
        gap: 12px;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .search-input-wrapper {
        width: 100%;
        max-width: 100%;
        height: 48px;
        border: 1px solid #667eea;
        border-radius: 24px;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
        background-color: white;
    }
    
    .baidu-search-input {
        width: 100%;
        height: 48px;
        border: none;
        border-radius: 24px;
        padding: 0 48px 0 16px;
        box-shadow: none;
    }
    
    .search-icon {
        display: block;
        color: #667eea;
        font-size: 16px;
        cursor: pointer;
        margin: 0 16px 0 0;
    }
    
    .baidu-search-button {
        height: 48px;
        font-size: 16px;
        margin-left: 0;
        align-self: center;
        border-radius: 24px;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 0 24px;
        min-width: 120px;
    }
}

/* 苹果14及类似分辨率（390px宽）的适配 */
@media (max-width: 414px) {
    .search-input-wrapper {
        height: 52px;
    }
    
    .baidu-search-input {
        height: 52px;
        font-size: 17px;
        line-height: 52px;
        padding: 0 48px 0 16px;
    }
    
    .baidu-search-button {
        height: 52px;
        padding: 0 28px;
        font-size: 17px;
        border-radius: 26px;
        min-width: 130px;
    }
}