*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    line-height: 1.6;
}

h1{
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin: 40px 0 60px 0;
}

form{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;

}

#search-input{
    width: 60%;
    max-width: 400px;
    padding: 10px 20px;
    border: none;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
    font-size: 18px;
    color: black;  
}

#search-button{
    background-color: green;
    padding: 10px 20px;
    border: none;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
    font-size: 18px;
    color: white;  
    cursor: pointer;
    margin-left: 10px;
}

.search-results{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.search-result{
    margin-bottom: 60px;
    width: calc(30% - 20px); 
    height: 100%;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);

}

.search-result img {
    width: 100%; /* 让图片充满容器宽度 */
    height: 100%; /* 让高度按比例自动调整 */
    object-fit: cover;
    
}

.search-result:hover img {
    opacity: 0.8;
    
}

.search-result a{
    display: block;
    font-size: 20px;
    text-decoration: none;
    color: black;
    padding: 10px;
    text-transform: capitalize;


}


#show-more-button{
    background-color: rgb(85, 85, 207);
    padding: 10px 20px;
    border: none;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
    font-size: 18px;
    color: white;  
    cursor: pointer;
    margin: 30px auto;
    display: block;
    border-radius: 5px;
    display: none;
}

@media  screen and (max-width:768px) {
    .search-results{
        padding: 20px;
    }
    .search-result{
        width: 45%;
    }
}

@media  screen and (max-width:480px) {
    .search-result{
        width: 100%;
    }
}